]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
* Makefile.in (write_entries_to_file): Quote words.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
fd4a16cd 12008-08-06 Michael Matz <matz@suse.de>
2
3 * Makefile.in (write_entries_to_file): Quote words.
4 * gengtype.c: (read_input_line): Skip over leading white-space.
5
a76109da 62008-08-06 Marc Gauthier <marc@tensilica.com>
7
8 * config.gcc: Match more processor names for Xtensa.
9 * configure.ac: Likewise.
10 * doc/install.texi (Specific): Likewise.
11 * configure: Regenerate.
12
f4e36c33 132008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14
15 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
16 * calls.c (avoid_likely_spilled_reg): Likewise.
17 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
19 * config/i386/i386.c (ix86_expand_special_args_builtin,
20 ix86_secondary_reload): Likewise.
21 * except.c (struct eh_region, gen_eh_region_catch,
22 remove_unreachable_regions, duplicate_eh_regions,
23 assign_filter_values, build_post_landing_pads,
24 sjlj_find_directly_reachable_regions, remove_eh_handler,
25 reachable_next_level, foreach_reachable_handler,
26 can_throw_internal_1, can_throw_external_1,
27 collect_one_action_chain): Likewise.
28 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
29 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
30 * function.c (update_temp_slot_address, instantiate_new_reg,
31 instantiate_virtual_regs_in_rtx,
32 instantiate_virtual_regs_in_insn): Likewise.
33 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
34 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
35 gimplify_cleanup_point_expr): Likewise.
36 * ipa-cp.c (ipcp_lattice_changed): Likewise.
37 * passes.c (next_pass_1): Likewise.
38 * print-tree.c (print_node_brief, print_node): Likewise.
39 * profile.c (branch_prob): Likewise.
40 * tree-dump.c (dump_register): Likewise.
41 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
42 Likewise.
43 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
44 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
45 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
46 copy_arguments_for_versioning, copy_static_chain): Likewise.
47 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
48 add_new_name_mapping, register_new_name_mapping): Likewise.
49 * tree-mudflap.c (mf_xform_derefs): Likewise.
50 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
51 get_init_expr, combine_chains): Likewise.
52 * tree-pretty-print.c (dump_generic_node): Likewise.
53 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
54 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
55 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
56 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
57
755ece1f 582008-08-06 H.J. Lu <hongjiu.lu@intel.com>
59
60 PR middle-end/37010
61 * calls.c (expand_call): Use the biggest preferred stack
62 boundary.
63
16a3f6b8 642008-08-06 Michael Matz <matz@suse.de>
65
66 PR target/36613
67 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
68 for reused reload, instead of overwriting them.
69
c6586120 702008-08-06 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR middle-end/37009
73 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
74 for incoming stack boundary.
75
76 * function.c (assign_parm_find_entry_rtl): Update
77 parm_stack_boundary.
78
79 * function.h (rtl_data): Add parm_stack_boundary.
80
81 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
82 parm_stack_boundary for incoming stack boundary.
83
62e42324 842008-08-06 Joseph Myers <joseph@codesourcery.com>
85
86 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
87 for unrepresentable subregs or treat them as equal to other regs
88 or subregs with the same register number.
89
a6090c11 902008-08-06 Aldy Hernandez <aldyh@redhat.com>
91
92 PR middle-end/35432
93 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
94 if want_value.
95
aa5f4f32 962008-08-06 Jan Hubicka <jh@suse.cz>
97
98 * predict.c (maybe_hot_frequency_p): When profile is absent, all
99 frequencies might be hot.
100
7721da81 1012008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
102
103 * reload.c (find_reloads): Force constants into literal pool
104 also if they are wrapped in a SUBREG.
105
86265ed0 1062008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
107
108 PR target/35659
109 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
110 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
111 Don't allow predicated instructions for data speculation.
112 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
113 declaration.
114
97ba5522 1152008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
116
117 * haifa-sched.c (extend_global): Split to extend_global_data and
118 extend_region_data. Update all uses.
119 (extend_all): Rename to extend_block_data.
120
42de5f34 1212008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
122
123 * sched-rgn.c (new_ready): Check if instruction can be
124 speculatively scheduled before attempting speculation.
125 (debug_rgn_dependencies): Remove wrongful assert.
126
ed76b2ae 1272008-08-05 Bob Wilson <bob.wilson@acm.org>
128
129 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
130
b4b5d826 1312008-08-05 Bob Wilson <bob.wilson@acm.org>
132
133 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
134 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
135 va_size, and type_size.
136
4a115954 1372008-08-04 Jason Merrill <jason@redhat.com>
138
139 PR c++/37016
140 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
141 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
142
c4bbd93d 1432008-08-05 Richard Henderson <rth@redhat.com>
144
145 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
146 * configure: Rebuild.
147
e5fe9218 1482008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
149
150 PR tree-opt/37024
151 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
152 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
153 is a conversion.
154
fb39ff6e 1552008-08-05 Richard Henderson <rth@redhat.com>
156
157 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
158 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
159 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
160 * common.opt (fdwarf2-cfi-asm): New.
161 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
162 * config.in, configure: Rebuild.
163 * dwarf2asm.c (dw2_asm_output_data_raw): New.
164 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
165 (dw2_force_const_mem): Externalize.
166 * dwarf2asm.h: Update.
167 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
168 generate a real label.
169 (output_cfi_directive): New.
170 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
171 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
172 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
173 and .cfi_lsda.
174 (dwarf2out_end_epilogue): Emit .cfi_endproc.
175 (output_loc_operands_raw, output_loc_sequence_raw): New.
176 (output_cfa_loc_raw): New.
177
bf63d1a1 1782008-08-05 Paul Brook <paul@codesourcery.com>
179
180 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
181 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
182 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
183 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
184 * config/arm/arm.h (TARGET_VFPD32): Define.
185 (TARGET_VFP3): Use TARGET_VFPD32.
186 (fputype): Add FPUTYPE_VFP3D16.
187 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
188 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
189 * config/arm/arm-cores.def: Add cortex-r4f.
190 * config/arm/arm-tune.md: Regenerate.
191
a0fb380f 1922008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
193
194 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
195 Reword some comments throughout the file.
196
197 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
198 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
199 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
200 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
201
202 (MFC_START_ENABLE): Remove PPU-only define.
203 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
204 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
205
206 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
207 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
208 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
209 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
210 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
211 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
212 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
213
214 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
215 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
216 (mfc_sdcrt, mfc_sdcrtst): Likewise.
217 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
218
219 (spu_read_machine_status): Fix typo.
220
38aca5eb 2212008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
222
223 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
224 SUBREG of multi-word hard register.
225 * config/spu/spu.c (valid_subreg): Likewise.
226 (adjust_operand): Handle SUBREGs of multi-word hard registers.
227
0cfdcbde 2282008-08-04 Richard Guenther <rguenther@suse.de>
229
230 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
231 the candidate with the stripped base if that base is different
232 from the original base even for offset zero.
233
dd7d1eeb 2342008-08-04 Richard Guenther <rguenther@suse.de>
235
236 PR middle-end/36691
237 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
238 check for no_overflow.
239
71407938 2402008-08-04 Richard Guenther <rguenther@suse.de>
241
242 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
243
dca1b68c 2442008-08-04 Paul Brook <paul@codesourcery.com>
245
246 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
247 (arm_order_regs_for_local_alloc): New function.
248 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
249 prototype.
250 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
251
ec4713e0 2522008-08-04 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR target/37012
255 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
256 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
257 (ix86_expand_epilogue): Likewise.
258
4b69831a 2592008-08-04 H.J. Lu <hongjiu.lu@intel.com>
260
261 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
262 in comments.
263
9d3c460a 2642008-08-03 Uros Bizjak <ubizjak@gmail.com>
265
266 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
267 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
268 (*movv2sf_internal_rex64): Ditto.
269
a0d18cec 2702008-08-03 Jan Hubicka <jh@suse.cz>
271
272 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
273 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
274 * expmed.c (expand_smod_pow2): Likewise.
275
a07c5315 2762008-08-03 Uros Bizjak <ubizjak@gmail.com>
277
278 PR target/36992
279 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
280 alternative 0 of operand 1.
281 (*vec_concatv2di_rex64_sse): Ditto.
282 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
283 of operand 1.
284 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
285 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
286 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
287 (*movv2sf_internal_rex64): Ditto.
288
56c7c824 2892008-08-02 Richard Guenther <rguenther@suse.de>
290
291 PR target/35252
292 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
293 (ssedoublesizemode): New mode attribute.
294 (sse_shufps): Call gen_sse_shufps_v4sf.
295 (sse_shufps_1): Macroize.
296 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
297 (sse2_shufpd_1): Macroize.
298 (vec_extract_odd, vec_extract_even): New expanders.
299 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
300 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
301 * i386.c (ix86_expand_vector_init_one_nonzero): Call
302 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
303 (ix86_expand_vector_set): Likewise.
304 (ix86_expand_reduc_v4sf): Likewise.
305
0a56b9f7 3062008-08-01 Doug Kwan <dougkwan@google.com>
307
308 * matrix-reorg.c: Re-enable all code.
309 (struct malloc_call_data): Change CALL_STMT to gimple type.
310 (collect_data_for_malloc_call): Tuplify.
a07c5315 311 (struct access_site_info): Change STMT to gimple type.
0a56b9f7 312 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
313 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
314 (struct free_info): Change STMT to gimple type.
a07c5315 315 (struct matrix_access_phi_node): Change PHI to gimple type.
0a56b9f7 316 (get_inner_of_cast_expr): Remove.
317 (may_flatten_matrices_1): Tuplify.
318 (may_flatten_matrices): Ditto.
319 (mark_min_matrix_escape_level): Ditto.
a07c5315 320 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
0a56b9f7 321 (ssa_accessed_in_call_rhs): New
322 (ssa_accessed_in_assign_rhs): New
323 (record_access_alloc_site_info): Tuplify.
324 (add_allocation_site): Ditto.
325 (analyze_matrix_allocation_site): Ditto.
326 (analyze_transpose): Ditto.
327 (get_index_from_offset): Ditto.
328 (update_type_size): Ditto.
329 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
330 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
331 (analyze_accesses_for_phi_node): Tuplify.
332 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
333 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
334 (analyze_matrix_accesses): Tuplify.
335 (check_var_data): New call-back type for check_var_notmodified_p.
336 (check_var_notmodified_p): Tuplify and use call-back struct to
337 return statement found.
338 (can_calculate_expr_before_stmt): Factor out statement related code
339 into ...
340 (can_calculate_stmt_before_stmt): New.
a07c5315 341 (check_allocation_function): Tuplify.
0a56b9f7 342 (find_sites_in_func): Ditto.
343 (record_all_accesses_in_func): Ditto.
344 (transform_access_sites): Ditto.
345 (transform_allocation_sites): Ditto.
346 (matrix_reorg): Re-enable.
347 (gate_matrix_reorg): Re-enable.
348
8aa5820b 3492008-08-01 Jakub Jelinek <jakub@redhat.com>
350
351 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
352 for labels for which it hasn't been set yet. If it has been set,
353 stop walking insns and continue with next worklist item.
354 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
355 if the only BARRIER is at the very end of a function.
356
f6754469 3572008-08-01 H.J. Lu <hongjiu.lu@intel.com>
358
359 * cfgexpand.c (expand_stack_alignment): Assert that
360 stack_realign_drap and drap_rtx must match.
361
362 * function.c (instantiate_new_reg): If DRAP is used to realign
363 stack, replace virtual_incoming_args_rtx with internal arg
364 pointer.
365
f00b5e35 3662008-08-01 Richard Guenther <rguenther@suse.de>
367
368 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
369 loop information only if we initialized it.
370 (execute_pre): Call fini_pre with in_fre.
371 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
372 if we do not unroll because we hit max-completely-peeled-insns.
373 Use our estimation for consistency, do allow shrinking.
374
b41d57ae 3752008-08-01 H.J. Lu <hongjiu.lu@intel.com>
376
377 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
378 with MIN_STACK_BOUNDARY.
379 (ix86_update_stack_boundary): Likewise.
380 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
381 STACK_BOUNDARY.
382
383 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
384 (MIN_STACK_BOUNDARY): This.
385
f7ea7934 3862008-08-01 Richard Guenther <rguenther@suse.de>
387
388 PR middle-end/36997
389 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
390
4109127f 3912008-08-01 Richard Guenther <rguenther@suse.de>
392
393 PR tree-optimization/36988
394 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
395 do not matter if that doesn't change volatile qualification.
396
9a8d280d 3972008-08-01 Paolo Bonzini <bonzini@gnu.org>
398
399 * configure.ac: Do not generate libada-mk. Do not subst
400 host_cc_for_libada.
401 * libada-mk.in: Remove.
402 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
403 * configure: Regenerate.
404
4052008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
406
9478582c 407 * tree-pass.h: Added comment about not dumping passes with name
408 starting with star in struct opt_pass.
409 * passes.c (register_dump_files_1): Don't do dump for a pass with
410 name starting with star.
411 * doc/passes.texi (Pass manager): Mention pass names and special
412 meaning of star prefix to avoid dump.
413
606c99b0 4142008-07-31 Adam Nemet <anemet@caviumnetworks.com>
415
416 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
417 to MIPS64r2.
418 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
419 (ISA_MIPS64R2): New macro.
420 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
421 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
422 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
423 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
424 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
425 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
426 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
427 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
428 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
429 Move up to keep list alphabetically sorted.
430 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
431 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
432 processor.
433 * doc/invoke.texi (MIPS Options): Add -mips64r2.
434 (-march=@var{arch}): Add mips64r2.
435
fb7bb288 4362008-07-31 H.J. Lu <hongjiu.lu@intel.com>
437
438 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
439
b35c122b 4402008-07-31 Steve Ellcey <sje@cup.hp.com>
441
442 * expr.c (expand_assignment): Check for complete type.
443
7b70fdf7 4442008-07-31 H.J. Lu <hongjiu.lu@intel.com>
445
446 PR debug/36977
447 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
448
449 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
450 for stack alignment.
451
a07c5315 452 * function.h (rtl_data): Add stack_realign_tried. Update comments.
7b70fdf7 453
36ff3a45 4542008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
455
456 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
a07c5315 457 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
36ff3a45 458
9396ae97 4592008-07-31 Jakub Jelinek <jakub@redhat.com>
460
461 PR rtl-optimization/36419
462 * dwarf2out.c (barrier_args_size): New variable.
463 (compute_barrier_args_size, compute_barrier_args_size_1): New
464 functions.
465 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
466 if not called yet in the current function, use barrier_args_size
467 array to find the new args_size value.
468 (dwarf2out_frame_debug): Free and clear barrier_args_size.
469
3d3b5ccd 4702008-07-31 H.J. Lu <hongjiu.lu@intel.com>
471
472 PR debug/36980
473 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
474 rule 19.
475
fe3cf4b3 4762008-07-31 H.J. Lu <hongjiu.lu@intel.com>
477
478 PR debug/36976
479 * dwarf2out.c (dwarf2out_args_size_adjust): New.
480 (dwarf2out_stack_adjust): Use it.
481 (dwarf2out_frame_debug_expr): Likewise.
482
a92910ae 4832008-07-31 Richard Guenther <rguenther@suse.de>
484
485 PR tree-optimization/36978
486 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
487 the generated condition.
488
ea18e2e5 4892008-07-31 Richard Guenther <rguenther@suse.de>
490
491 * passes.c (init_optimization_passes): Always call
492 pass_early_warn_uninitialized.
a07c5315 493 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
ea18e2e5 494 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
495 * doc/passes.texi (Warn for uninitialized variables): Adjust.
496
7f1c321c 4972008-07-31 Jakub Jelinek <jakub@redhat.com>
498
2c281b15 499 PR c/36970
500 * builtins.c (maybe_emit_free_warning): New function.
501 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
502 maybe_emit_free_warning for BUILT_IN_FREE.
503
01d2a17d 504 PR debug/36278
505 * dwarf2out.c (get_context_die): New function.
506 (force_decl_die, force_type_die): Use it.
507 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
508 returns NULL, force generation of DW_TAG_typedef and put that into
509 DW_AT_import.
510
7f1c321c 511 PR preprocessor/36649
512 * c-pch.c (c_common_read_pch): Save and restore
513 line_table->trace_includes across PCH restore.
514
69c2baa9 5152008-07-30 Eric Botcazou <ebotcazou@adacore.com>
516
517 PR ada/36554
518 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
519
efc49b99 5202008-07-30 Rafael Avila de Espindola <espindola@google.com>
521
522 PR 36974
7f1c321c 523 * final.c (call_from_call_insn): Handle COND_EXEC.
efc49b99 524
befa808c 5252008-07-30 H.J. Lu <hongjiu.lu@intel.com>
526
527 * builtins.c (std_gimplify_va_arg_expr): Replace
528 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
529 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
530
27a7a23a 5312008-07-30 Joey Ye <joey.ye@intel.com>
532 H.J. Lu <hongjiu.lu@intel.com>
533
534 * builtins.c (expand_builtin_setjmp_receiver): Replace
535 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
536 (expand_builtin_apply_args_1): Likewise.
537 (expand_builtin_longjmp): Need DRAP for stack alignment.
538 (expand_builtin_apply): Likewise.
539
540 * caller-save.c (setup_save_areas): Call assign_stack_local_1
541 instead of assign_stack_local to allow alignment reduction.
542
543 * calls.c (emit_call_1): Need DRAP for stack alignment if
544 return pops.
545 (expand_call): Replace virtual_incoming_args_rtx with
546 crtl->args.internal_arg_pointer.
547 * stmt.c (expand_nl_goto_receiver): Likewise.
548
549 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
550 alignment and store to stack_alignment_estimated and
551 max_used_stack_slot_alignment.
552 (expand_one_var): Likewise.
553 (expand_stack_alignment): New function.
554 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
555 and stack_alignment_estimated fields in rtl_data. Call
556 expand_stack_alignment at end.
557
558 * defaults.h (INCOMING_STACK_BOUNDARY): New.
559 (MAX_STACK_ALIGNMENT): Likewise.
560 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
561 (SUPPORTS_STACK_ALIGNMENT): Likewise.
562
563 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
564 stack alignment when generating virtual registers.
565
566 * function.c (assign_stack_local): Renamed to ...
567 (assign_stack_local_1): This. Add a parameter to indicate
568 if it is OK to reduce alignment.
569 (assign_stack_local): Use it.
570 (instantiate_new_reg): Instantiate virtual incoming args rtx
571 to vDRAP if stack realignment and DRAP is needed.
572 (assign_parms): Collect parameter/return type alignment and
573 contribute to stack_alignment_estimated.
574 (locate_and_pad_parm): Likewise.
575 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
576 with crtl->args.internal_arg_pointer.
577
578 * function.h (rtl_data): Add new field drap_reg,
579 max_used_stack_slot_alignment, stack_alignment_estimated,
580 stack_realign_needed, need_drap, stack_realign_processed and
581 stack_realign_finalized.
582 (stack_realign_fp): New macro.
583 (stack_realign_drap): Likewise.
584
585 * global.c (compute_regsets): Frame pointer is needed when
586 stack is realigned. Can eliminate frame pointer when stack is
587 realigned and dynamic realigned argument pointer isn't used.
588
589 * reload1.c (update_eliminables): Frame pointer is needed
590 when stack is realigned.
591 (init_elim_table): Can eliminate frame pointer when stack is
592 realigned and dynamic realigned argument pointer isn't used.
593
594 * rtl.h (assign_stack_local_1): Declare new funtion.
595
596 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
597 (TARGET_GET_DRAP_RTX): Likewise.
598 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
599 TARGET_GET_DRAP_RTX.
600
a07c5315 601 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
27a7a23a 602
603 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
604 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
605
6062008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
607 H.J. Lu <hongjiu.lu@intel.com>
608
609 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
610 vdrap_reg, stack_realign and drap_reg_saved.
611 (add_cfi): Don't allow redefining CFA when DRAP is used.
612 (reg_save): Handle stack alignment.
613 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
614 alignment. Don't generate DWARF information for (set fp sp)
615 when DRAP is used.
616 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
617 to INVALID_REGNUM.
618 (int_loc_descriptor): Move prototype forward. Also define if
619 DWARF2_UNWIND_INFO is true.
620 (output_cfa_loc): Handle DW_CFA_expression.
621 (build_cfa_aligned_loc): New.
622 (based_loc_descr): Update assert for stack realign. For local
623 variables, use sp+offset when stack is aligned without drap and
624 fp+offset when stack is aligned with drap. For arguments, use
625 cfa+offset when drap is used to align stack.
626
6272008-07-30 Joey Ye <joey.ye@intel.com>
628 H.J. Lu <hongjiu.lu@intel.com>
629
630 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
631 Break long line.
632 (ix86_gen_andsp): New.
633 (ix86_user_incoming_stack_boundary): Likewise.
634 (ix86_default_incoming_stack_boundary): Likewise.
635 (ix86_incoming_stack_boundary): Likewise.
636 (ix86_can_eliminate): Likewise.
637 (find_drap_reg): Likewise.
638 (ix86_update_stack_boundary): Likewise.
639 (ix86_get_drap_rtx): Likewise.
640 (ix86_finalize_stack_realign_flags): Likewise.
641 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
642 (TARGET_GET_DRAP_RTX): Likewise.
643 (override_options): Overide option value for new options.
644 (ix86_function_ok_for_sibcall): Remove check for
645 force_align_arg_pointer.
646 (ix86_handle_cconv_attribute): Likewise.
647 (ix86_function_regparm): Likewise.
a07c5315 648 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
27a7a23a 649 (ix86_va_start): Replace virtual_incoming_args_rtx with
650 crtl->args.internal_arg_pointer.
651 (ix86_select_alt_pic_regnum): Check DRAP register.
652 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
653 (ix86_compute_frame_layout): Compute frame layout wrt stack
654 realignment.
a07c5315 655 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
27a7a23a 656 (ix86_expand_prologue): Decide if stack realignment is needed
657 and generate prologue code accordingly.
658 (ix86_expand_epilogue): Generate epilogue code wrt stack
659 realignment is really needed or not.
660
661 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
662 (ABI_STACK_BOUNDARY): Likewise.
663 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
664 (STACK_REALIGN_DEFAULT): Likewise.
665 (INCOMING_STACK_BOUNDARY): Likewise.
666 (MAX_STACK_ALIGNMENT): Likewise.
667 (ix86_incoming_stack_boundary): Likewise.
668 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
669 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
670 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
671 (machine_function): Remove force_align_arg_pointer.
672
673 * config/i386/i386.md (BX_REG): New.
674 (R13_REG): Likewise.
675
676 * config/i386/i386.opt (mforce_drap): New.
677 (mincoming-stack-boundary): Likewise.
678 (mstackrealign): Add Init(-1).
679
680 * config/i386/i386-protos.h (ix86_can_eliminate): New
681
6822008-07-30 H.J. Lu <hongjiu.lu@intel.com>
683
684 * doc/extend.texi: Update force_align_arg_pointer.
685
686 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
687 -mstackrealign.
688
689 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
690 (INCOMING_STACK_BOUNDARY): Likewise.
691 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
692 (TARGET_GET_DRAP_RTX): Likewise.
693
14eddddd 6942008-07-30 Andreas Schwab <schwab@suse.de>
695
696 PR rtl-optimization/36929
697 * dse.c (replace_inc_dec): Use emit_insn_before instead of
698 add_insn_before and fix argument order.
699 (replace_inc_dec_mem): Handle NULL rtx.
700
1f89f64b 7012008-07-30 Andrew Jenner <andrew@codesourcery.com>
702
703 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
14eddddd 704 function.
1f89f64b 705 (arm_compute_initial_elimination_offset): Use it.
706 (arm_compute_save_reg_mask): Include static chain save slot when
707 calculating alignment.
708 (arm_get_frame_offsets): Ditto.
709 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
710 that we can use to decrement the stack when the stack decrement
711 could be too big for an immediate value in a single insn.
712 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
713
fb2d5860 7142008-07-30 Richard Guenther <rguenther@suse.de>
715
716 PR tree-optimization/36967
717 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
718 Release defs of statements we remove.
719
605560da 7202008-07-30 Nathan Froyd <froydnj@codesourcery.com>
721
14eddddd 722 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
723 instead of NULL_RTVEC.
605560da 724
8ec4a3ba 7252008-07-30 Nathan Froyd <froydnj@codesourcery.com>
726
727 PR target/35866
728
729 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
730 vector modes.
731
9cb02f75 7322008-07-30 Rafael Avila de Espindola <espindola@google.com>
733
a07c5315 734 * final.c (call_from_call_insn): New.
735 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
9cb02f75 736
3bed0958 7372008-07-30 Paolo Bonzini <bonzini@gnu.org>
738
739 * configure.ac: Substitute ADA_CFLAGS.
740 * configure: Regenerate.
741 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
742 * Makefile.in: Remove mention of X_* variables.
743 * config/pa/x-ada-hpux10: Remove.
744 * config/pa/x-ada: Remove.
745
746 * doc/fragments.texi: Update.
747
2ecaeb04 7482008-07-30 Olivier Hainque <hainque@adacore.com>
dd594257 749
750 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
751 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
752 __dso_handle explicitly here.
753
2561cea2 7542008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
755
756 PR 34389
757 * c-typeck.c (build_binary_op): Encapsulate code into...
758 * c-common.c (shorten_binary_op): ...this new function.
759 (conversion_warning): Use the new function. Handle non-negative
760 constant in bitwise-and.
761 * c-common.h (shorten_binary_op): Declare.
14eddddd 762
926b9599 7632008-07-30 Olivier Hainque <hainque@adacore.com>
764
765 * scan.c (make_sstring_space): Add explicit conversions of
766 allocator's return value.
767 * fix-header.c (recognized_function): Likewise.
768
a4cb9727 7692008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
770
771 * doc/cpp.texi: Update to GFDL 1.2.
772 * doc/gcc.texi: Do not list GPL as Invariant Section.
773 * doc/gccint.texi: Likewise. Update copyright years.
774 * doc/install.texi: Update copyright years.
775
739af769 7762008-07-30 Alan Modra <amodra@bigpond.net.au>
777
778 PR target/36955
779 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
780 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
781
81549c4d 7822008-07-29 Jan Hubicka <jh@suse.cz>
783
784 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
785 (grokdeclarator): Likewise.
786 * langhooks.c (lhd_warn_unused_global_decl): Use
787 DECL_DECLARED_INLINE_P.
788 * print-tree.c (print_node): Remove DECL_INLINE check.
789
4be5a86a 7902008-07-29 Richard Guenther <rguenther@suse.de>
791
792 PR tree-optimization/36945
793 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
794 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
795 Record invariant addresses un-decomposed.
796 (copy_reference_ops_from_call): Record reference call
797 arguments properly. Simplify.
798 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
799 helper split out from ...
800 (create_component_ref_by_pieces): ... here. Simplify.
801 Prepare for recursive invocation for call arguments.
802 (create_expression_by_pieces): Adjust call to
803 create_component_ref_by_pieces.
804 (compute_avail): Process operand 2 of reference ops.
805
1eb667ae 8062008-07-29 Richard Guenther <rguenther@suse.de>
807
a07c5315 808 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
1eb667ae 809
abb259a7 8102008-07-29 Jakub Jelinek <jakub@redhat.com>
811
812 * c-format.c (check_format_types): Revert unwanted checkin.
813
1c2f0012 8142008-07-29 Jan Hubicka <jh@suse.cz>
815
816 * flags.h (flag_really_no_inline): Remove.
817 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
818 * toplev.c (flag_really_no_inline): Remove.
819 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
820 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
821 (cgraph_decide_inlining_incrementally): Likewise.
822 (compute_inline_parameters): Likewise.
823 * opts.c (decode_options): Simplify.
824 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
825 * common.opt (finline): Initialize to 1.
826 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
827
8282008-07-29 Jan Hubicka <jh@suse.cz>
7dfb44a0 829
830 * predict.c (always_optimize_for_size_p): New function.
831 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
832 optimize_edge_for_size_p, optimize_edge_for_speed_p,
833 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
834 functions.
835 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
836 * function.c (prepare_function_start): Set default profile.
837 * function.h (rtl_data): Add maybe_hot_insn_p.
838 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
839 (construct_exit_block): Likewise.
840 (tree_expand_cfg): Likewise.
841 * basic-block.h
842 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
843 optimize_edge_for_size_p, optimize_edge_for_speed_p,
844 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
845 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
846 Declare.
847
f901d289 8482008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
849
850 PR 34985
851 * c-decl.c (merge_decls): Merge USED flags.
14eddddd 852
d529bef4 8532008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
854
855 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
856 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
857 next_stack, lab_false and lab_over trees.
858
644c6d4c 8592008-07-28 Richard Guenther <rguenther@suse.de>
860
861 PR tree-optimization/36957
862 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
863 (useless_type_conversion_p): Remove.
864 (types_compatible_p): Remove.
865 * gimple.h (tree_ssa_useless_type_conversion): Declare.
866 (useless_type_conversion_p): Declare.
867 (types_compatible_p): Declare.
868 (gimple_expr_type): Return the base type only if it is
869 trivially convertible to the subtype.
870
9fce6407 8712008-07-28 Andreas Tobler <a.tobler@schweiz.org>
872
873 * configure.ac: Use the m4_do macro to concatenate the warnings into
874 one string in ACX_PROG_CC_WARNING_OPTS,
875 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
876 * configure: Regenerate.
877
2d9a4f3c 8782008-07-28 Richard Guenther <rguenther@suse.de>
879
880 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
881 (insert_fake_stores): Remove.
882 (realify_fake_stores): Likewise.
883 (execute_pre): Remove dead code.
a07c5315 884 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
2d9a4f3c 885 (find_func_aliases): Deal with it here instead.
886 Re-enable gcc_unreachable call.
887
75a70cf9 8882008-07-28 Richard Guenther <rguenther@suse.de>
889
890 Merge from gimple-tuples-branch.
891
892 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
893 * gimple.def: New file.
894 * gsstruct.def: Likewise.
895 * gimple-iterator.c: Likewise.
896 * gimple-pretty-print.c: Likewise.
897 * tree-gimple.c: Removed. Merged into ...
898 * gimple.c: ... here. New file.
899 * tree-gimple.h: Removed. Merged into ...
900 * gimple.h: ... here. New file.
901
902 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
903 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
904 --enable-checking=gimple flag.
905 * config.in: Likewise.
906 * configure: Regenerated.
907
908 * tree-ssa-operands.h: Tuplified.
909 * tree-vrp.c: Likewise.
910 * tree-loop-linear.c: Likewise.
911 * tree-into-ssa.c: Likewise.
912 * tree-ssa-loop-im.c: Likewise.
913 * tree-dump.c: Likewise.
914 * tree-complex.c: Likewise.
915 * cgraphbuild.c: Likewise.
916 * tree-ssa-threadupdate.c: Likewise.
917 * tree-ssa-loop-niter.c: Likewise.
918 * tree-pretty-print.c: Likewise.
919 * tracer.c: Likewise.
920 * gengtype.c: Likewise.
921 * tree-loop-distribution.c: Likewise.
922 * tree-ssa-loop-unswitch.c: Likewise.
923 * cgraph.c: Likewise.
924 * cgraph.h: Likewise.
925 * tree-ssa-loop-manip.c: Likewise.
926 * value-prof.c: Likewise.
927 * tree-ssa-loop-ch.c: Likewise.
928 * tree-tailcall.c: Likewise.
929 * value-prof.h: Likewise.
930 * tree.c: Likewise.
931 * tree.h: Likewise.
932 * tree-pass.h: Likewise.
933 * ipa-cp.c: Likewise.
934 * tree-scalar-evolution.c: Likewise.
935 * tree-scalar-evolution.h: Likewise.
936 * target.h: Likewise.
937 * lambda-mat.c: Likewise.
938 * tree-phinodes.c: Likewise.
939 * diagnostic.h: Likewise.
940 * builtins.c: Likewise.
941 * tree-ssa-alias-warnings.c: Likewise.
942 * cfghooks.c: Likewise.
943 * fold-const.c: Likewise.
944 * cfghooks.h: Likewise.
945 * omp-low.c: Likewise.
946 * tree-ssa-dse.c: Likewise.
947 * ipa-reference.c: Likewise.
948 * tree-ssa-uncprop.c: Likewise.
949 * toplev.c: Likewise.
950 * tree-gimple.c: Likewise.
951 * tree-gimple.h: Likewise.
952 * tree-chrec.c: Likewise.
953 * tree-chrec.h: Likewise.
954 * tree-ssa-sccvn.c: Likewise.
955 * tree-ssa-sccvn.h: Likewise.
956 * cgraphunit.c: Likewise.
957 * tree-ssa-copyrename.c: Likewise.
958 * tree-ssa-ccp.c: Likewise.
959 * tree-ssa-loop-ivopts.c: Likewise.
960 * tree-nomudflap.c: Likewise.
961 * tree-call-cdce.c: Likewise.
962 * ipa-pure-const.c: Likewise.
963 * c-format.c: Likewise.
964 * tree-stdarg.c: Likewise.
965 * tree-ssa-math-opts.c: Likewise.
966 * tree-ssa-dom.c: Likewise.
967 * tree-nrv.c: Likewise.
968 * tree-ssa-propagate.c: Likewise.
969 * ipa-utils.c: Likewise.
970 * tree-ssa-propagate.h: Likewise.
971 * tree-ssa-alias.c: Likewise.
972 * gimple-low.c: Likewise.
973 * tree-ssa-sink.c: Likewise.
974 * ipa-inline.c: Likewise.
975 * c-semantics.c: Likewise.
976 * dwarf2out.c: Likewise.
977 * expr.c: Likewise.
978 * tree-ssa-loop-ivcanon.c: Likewise.
979 * predict.c: Likewise.
980 * tree-ssa-loop.c: Likewise.
981 * tree-parloops.c: Likewise.
982 * tree-ssa-address.c: Likewise.
983 * tree-ssa-ifcombine.c: Likewise.
984 * matrix-reorg.c: Likewise.
985 * c-decl.c: Likewise.
986 * tree-eh.c: Likewise.
987 * c-pretty-print.c: Likewise.
988 * lambda-trans.c: Likewise.
989 * function.c: Likewise.
990 * langhooks.c: Likewise.
991 * ebitmap.h: Likewise.
992 * tree-vectorizer.c: Likewise.
993 * function.h: Likewise.
994 * langhooks.h: Likewise.
995 * tree-vectorizer.h: Likewise.
996 * ipa-type-escape.c: Likewise.
997 * ipa-type-escape.h: Likewise.
998 * domwalk.c: Likewise.
999 * tree-if-conv.c: Likewise.
1000 * profile.c: Likewise.
1001 * domwalk.h: Likewise.
1002 * tree-data-ref.c: Likewise.
1003 * tree-data-ref.h: Likewise.
1004 * tree-flow-inline.h: Likewise.
1005 * tree-affine.c: Likewise.
1006 * tree-vect-analyze.c: Likewise.
1007 * c-typeck.c: Likewise.
1008 * gimplify.c: Likewise.
1009 * coretypes.h: Likewise.
1010 * tree-ssa-phiopt.c: Likewise.
1011 * calls.c: Likewise.
1012 * tree-ssa-coalesce.c: Likewise.
1013 * tree.def: Likewise.
1014 * tree-dfa.c: Likewise.
1015 * except.c: Likewise.
1016 * except.h: Likewise.
1017 * cfgexpand.c: Likewise.
1018 * tree-cfgcleanup.c: Likewise.
1019 * tree-ssa-pre.c: Likewise.
1020 * tree-ssa-live.c: Likewise.
1021 * tree-sra.c: Likewise.
1022 * tree-ssa-live.h: Likewise.
1023 * tree-predcom.c: Likewise.
1024 * lambda.h: Likewise.
1025 * tree-mudflap.c: Likewise.
1026 * ipa-prop.c: Likewise.
1027 * print-tree.c: Likewise.
1028 * tree-ssa-copy.c: Likewise.
1029 * ipa-prop.h: Likewise.
1030 * tree-ssa-forwprop.c: Likewise.
1031 * ggc-page.c: Likewise.
1032 * c-omp.c: Likewise.
1033 * tree-ssa-dce.c: Likewise.
1034 * tree-vect-patterns.c: Likewise.
1035 * tree-ssa-ter.c: Likewise.
1036 * tree-nested.c: Likewise.
1037 * tree-ssa.c: Likewise.
1038 * lambda-code.c: Likewise.
1039 * tree-ssa-loop-prefetch.c: Likewise.
1040 * tree-inline.c: Likewise.
1041 * tree-inline.h: Likewise.
1042 * tree-iterator.c: Likewise.
1043 * tree-optimize.c: Likewise.
1044 * tree-ssa-phiprop.c: Likewise.
1045 * tree-vect-transform.c: Likewise.
1046 * tree-object-size.c: Likewise.
1047 * tree-outof-ssa.c: Likewise.
1048 * cfgloop.c: Likewise.
1049 * system.h: Likewise.
1050 * tree-profile.c: Likewise.
1051 * cfgloop.h: Likewise.
1052 * c-gimplify.c: Likewise.
1053 * c-common.c: Likewise.
1054 * tree-vect-generic.c: Likewise.
1055 * tree-flow.h: Likewise.
1056 * c-common.h: Likewise.
1057 * basic-block.h: Likewise.
1058 * tree-ssa-structalias.c: Likewise.
1059 * tree-switch-conversion.c: Likewise.
1060 * tree-ssa-structalias.h: Likewise.
1061 * tree-cfg.c: Likewise.
1062 * passes.c: Likewise.
1063 * ipa-struct-reorg.c: Likewise.
1064 * ipa-struct-reorg.h: Likewise.
1065 * tree-ssa-reassoc.c: Likewise.
1066 * cfgrtl.c: Likewise.
1067 * varpool.c: Likewise.
1068 * stmt.c: Likewise.
1069 * tree-ssanames.c: Likewise.
1070 * tree-ssa-threadedge.c: Likewise.
1071 * langhooks-def.h: Likewise.
1072 * tree-ssa-operands.c: Likewise.
1073 * config/alpha/alpha.c: Likewise.
1074 * config/frv/frv.c: Likewise.
1075 * config/s390/s390.c: Likewise.
1076 * config/m32c/m32c.c: Likewise.
1077 * config/m32c/m32c-protos.h: Likewise.
1078 * config/spu/spu.c: Likewise.
1079 * config/sparc/sparc.c: Likewise.
1080 * config/i386/i386.c: Likewise.
1081 * config/sh/sh.c: Likewise.
1082 * config/xtensa/xtensa.c: Likewise.
1083 * config/stormy16/stormy16.c: Likewise.
1084 * config/ia64/ia64.c: Likewise.
1085 * config/rs6000/rs6000.c: Likewise.
1086 * config/pa/pa.c: Likewise.
1087 * config/mips/mips.c: Likewise.
1088
d0a9db40 10892008-07-28 Simon Baldwin <simonb@google.com>
1090
1091 * c-pragma.c (handle_pragma_message): New function.
1092 (init_pragma): Register handle_pragma_message.
1093 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1094 documentation.
1095
f760f583 10962008-07-27 Victor Kaplansky <victork@il.ibm.com>
1097
1098 PR tree-optimization/35252
1099 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1100 REALPART_EXPR to be considered as same load operation.
1101
127fb64d 11022008-07-27 Eric Botcazou <ebotcazou@adacore.com>
1103
1104 PR tree-optimization/36830
1105 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1106 (expressions_equal_p): Return false if only one operand is null.
1107
c801e5cf 11082008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
1109
1110 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1111 version requirements.
1112
efc8f8d6 11132008-07-26 Olivier Hainque <hainque@adacore.com>
1114
1115 * collect2.c (symkind): New enum. Symbol kinds we care about.
1116 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
1117 code and head comment accordingly.
1118 (scan_prog_file): Use symkind names instead of bare integers.
14eddddd 1119
8d8c4c8d 11202008-07-25 Jan Hubicka <jh@suse.cz>
1121
a07c5315 1122 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1123 DECL_INLINE.
8d8c4c8d 1124 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1125 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1126 * dojump.c (clear_pending_stack_adjust): Likewise.
1127 * print-tree.c (print_node): Ignore DECL_INLINE.
1128 * tree-inline.c (inlinable_function_p): Likewise.
14eddddd 1129
a50eecc9 11302008-07-25 Michael Meissner <gnu@the-meissners.org>
1131
1132 * doc/extend.texi (hot attribute): Document that the hot attribute
1133 turns on -O3 for some ports.
1134 (cold attribute): Document that the cold attribute turns on -Os
1135 for some ports
1136
1137 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1138 reflect function specific option support.
1139
1140 * target.h (struct target_option_hooks): Add fields to say whether
1141 the cold attribute implies -Os and the hot attribute implies -O3.
1142
1143 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1144 By default, do not turn on -Os for cold functions.
1145 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1146 not turn on -O3 for hot functions.
1147
1148 * c-common.c (handle_hot_attribute): Use target hook to determine
1149 if hot functions should enable -O3.
1150 (handle_cold_attribute): Use target hook to determine if cold
1151 functions should enable -Os.
1152
1153 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1154 (override_options): Move disable scheduling to
1155 optimization_options.
1156 (optimization_options): Disable scheduling here, not
1157 override_options.
1158 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1159 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1160
1161 * config/ia64/ia64.c (ia64_override_options): Move setting
1162 scheduling flags to ia64_optimization_options.
1163 (ia64_optimization_options): Disable scheduling options here, and
1164 not in ia64_override_options.
1165 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1166 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1167
11682008-07-25 H.J. Lu <hongjiu.lu@intel.com>
1169
1170 PR target/36936
1171 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1172
886eebf8 11732008-07-25 Martin Jambor <mjambor@suse.cz>
1174
1175 PR tree-optimization/36926
1176 * ipa-prop.c (ipa_analyze_call_uses): Call
1177 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1178
6c4a5e40 11792008-07-25 Joseph Myers <joseph@codesourcery.com>
1180
1181 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1182 movv2si_internal): Add mem = reg alternative.
1183
08715a1a 11842008-07-25 Andreas Tobler <a.tobler@schweiz.org>
1185
1186 PR bootstrap/36918
1187 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1188 DEFAULT_PCC_STRUCT_RETURN to 127.
1189
6329636b 11902008-07-24 Jan Hubicka <jh@suse.cz>
1191
1192 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1193 (build_cgraph_edges): Likewise.
1194 * cgraph.c (cgraph_node): Do not update assembler hash.
1195 (cgraph_remove_node): Drop non-unit-at-a-time code.
1196 * tree-pass.h (pass_O0_always_inline): Remove.
1197 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1198 * toplev.c (process_options): Flag unit-at-a-time does not imply
1199 no section anchors.
1200 * cgraphunit.c: Update comments.
1201 (decide_is_function_needed): Drop non-unit-at-a-time mode.
1202 (cgraph_assemble_pending_functions): Remove.
1203 (cgraph_reset_node): Drop non-unit-at-a-time code.
1204 (cgraph_finalize_function): Likewise.
1205 (cgraph_analyze_function): Likewise.
1206 (cgraph_finalize_compilation_unit): Likewise.
1207 (cgraph_expand_function): Likewise.
1208 (cgraph_optimize): Likesise.
1209 (save_inline_function_body): Likewise.
1210 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1211 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1212 * ipa-inline.c: Update comments.
1213 (enum inlining_mode): remove INLINE_SPEED.
1214 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1215 (cgraph_mark_inline_edge): Likewise.
1216 (try_inline): Likewise.
1217 (cgraph_decide_inlining_incrementally): Likewise.
1218 (cgraph_gate_inlining): Remove.
1219 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1220 (cgraph_gate_early_inlining): Likewise.
1221 (gate_inline_passes): Remove.
1222 (pass_inline_parameters, pass_ipa_inline): Remove gates.
14eddddd 1223 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6329636b 1224 pass_O0_always_inline): Remove.
1225 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1226 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1227 * opts.c (no_unit_at_a_time_default): Remove.
1228 (decode_options): Remove flag_unit_at_a_time reset and warning.
1229 * opts.h (no_unit_at_a_time_default): Remove.
1230 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1231 early in GNU dialect.
1232 (merge_decls): Update comment; drop unit-at-a-time check.
1233 (finish_decl): Likewise.
1234 (grok_declaration): Remove flag_inline_trees code.
1235 (finish_functions): Return on function returning non-void on all
1236 statics.
1237 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1238 * cfgexpand.c (expand_one_static_var): Remove.
1239 (expand_one_var): Remove expand_one_static_var call.
1240 (expand_used_vars_for_block): Remove flag_unit_a_time check.
1241 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1242 and flag_unit_at_a-time compatibility checks.
1243 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1244 * tree-inline.c (flag_inline_trees): Remove.
1245 (inlinable_function_p): Don't check it.
1246 (expand_call_inline): Remove non-unit-at-a-time code.
1247 * tree-inline.h (flag_inline_trees): Remove.
1248 * tree-optimize.c (execute_early_local_optimizations): Remove
1249 unit-at-a-time checks.
1250 (tree_rest_of_compilation): Likewise.
1251 * combine.c (setup_incoming_promotions): Likewise.
1252 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1253 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1254 * passes.c (pass_inline_parameters): Update comments; remove
1255 O0_alwaysinline pass.
1256 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1257 (execute_one_pass): Likewise.
1258 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1259 (ix86_function_sseregparm): Likewise.
1260 * arm.c (arm_function_in_section_p): Likewise.
1261 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1262 * varpool.c: Update comments.
1263 (decide_is_variable_needed): Remove unit-at-a-time checks.
1264 (varpool_finalize_decl): Likewise.
1265
5ebb86bf 12662008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
1267
1268 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1269 to 2 instead of -1.
a07c5315 1270 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
5ebb86bf 1271
d38b38c1 12722008-07-24 Kai Tietz <kai.tietz@onevision.com>
1273
1274 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1275 imp symbol extension.
1276
14eddddd 1277 2008-07-23 Ian Lance Taylor <iant@google.com>
1f10095d 1278
1279 * tree-vrp.c (infer_value_range): Ignore asm statements when
1280 looking for memory accesses for -fdelete-null-pointer-checks.
1281
f952c224 12822008-07-24 Ben Elliston <bje@au.ibm.com>
1283
1284 * config/spu/spu-c.c (__vector_keyword): New variable.
1285 (vector_keyword): Likewise.
1286 (spu_categorize_keyword): New function.
1287 (spu_macro_to_expand): Likewise.
1288 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1289 compiling an ISO C dialect.
1290
ce9abfc3 12912008-07-24 Ben Elliston <bje@au.ibm.com>
1292
1293 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1294 conventional usage.
1295
69f31627 12962008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1297
1298 * configure: Regenerate.
1299 * configure.ac: Require texinfo 4.7.
1300 * doc/install.texi: Document texinfo 4.7 requirement.
1301
f8daee9b 13022008-07-23 Martin Jambor <mjambor@suse.cz>
1303
14eddddd 1304 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
f8daee9b 1305 rather than for DECL_SAVED_TREE.
1306 * ipa-prop.c: Include diagnostic.h.
14eddddd 1307 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
f8daee9b 1308 thoroughly.
1309 (ipa_detect_param_modifications): Function rewritten from scratch.
1310 (ipa_compute_jump_functions): Changed accesses to modification flags.
1311 (ipa_free_node_params_substructures): Update flags destruction.
1312 (ipa_node_duplication_hook): Update flags duplication.
1313 (ipa_print_all_params_modified): Updated flag access.
1314 * ipa-prop.h (struct ipa_param_flags): New structure.
14eddddd 1315 (struct ipa_node_params): New field modification_analysis_done,
1316 modified_flags changed into param_flags.
1317 (ipa_is_ith_param_modified): Changed to use new flags.
f8daee9b 1318 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1319
1320 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1321 ipa-cp.c and split into two functions.
1322 (ipa_print_node_jump_functions): New function.
1323 (compute_scalar_jump_functions): New function.
1324 (type_like_member_ptr_p): New function.
1325 (compute_pass_through_member_ptrs): New function.
1326 (fill_member_ptr_cst_jump_function): New function.
1327 (determine_cst_member_ptr): New function.
1328 (compute_cst_member_ptr_arguments): New function.
1329 (ipa_compute_jump_functions): Complete rewrite.
1330 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1331 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1332 (struct ipa_member_ptr_cst): New structure.
1333 (union jump_func_value): New field member_cst.
1334 * ipa-cp.c (ipcp_lat_is_insertable): New function.
1335 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1336 jump function types.
1337 (ipcp_print_all_lattices): Slight fprintf rearrangement.
1338 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1339 instead of ipcp_print_all_jump_functions.
1340 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1341 only for replacable scalars.
1342
1343 * doc/invoke.texi (Optimize options): Add description of
1344 -findirect-inlining.
1345 * common.opt (flag_indirect_inlining): New flag.
14eddddd 1346 * opts.c (decode_options): Set flag_indirect_inlining when
f8daee9b 1347 optimize >= 3.
1348
1349 * ipa-inline.c: Include ipa-prop.h.
1350 (inline_indirect_intraprocedural_analysis): New function.
1351 (inline_generate_summary): Allocate parameter and argument info
1352 structures, call inline_indirect_intraprocedural_analysis on each
14eddddd 1353 node when doing indirect inlining and deallocate indirect inlining
f8daee9b 1354 data structures in the end.
1355 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1356 (free_all_ipa_structures_after_iinln): New function.
14eddddd 1357 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
f8daee9b 1358 done.
1359 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1360
1361 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1362 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1363 of computing the frequency separately.
1364 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1365 of computing the frequency separately.
14eddddd 1366 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
f8daee9b 1367 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1368 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1369 (ipa_get_stmt_member_ptr_load_param): New function.
1370 (ipa_is_ssa_with_stmt_def): New function.
1371 (ipa_note_param_call): New function.
1372 (ipa_analyze_call_uses): New function.
1373 (ipa_analyze_stmt_uses): New function.
1374 (ipa_analyze_params_uses): New function.
1375 (ipa_free_node_params_substructures): Also free the param_calls linked
1376 list.
1377 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1378 (ipa_print_node_param_flags): New function.
1379 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1380 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1381 * ipa-prop.h (struct ipa_param_flags): New field called.
1382 (struct ipa_param_call_note): New structure.
1383 (struct ipa_node_params): New fields param_calls and
1384 uses_analysis_done.
1385 (ipa_is_ith_param_called): New function.
1386 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1387 ipa_analyze_params_uses and dump parameter flags.
1388
1389 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1390 ipa_propagate_indirect_call_infos if performing indirect inlining,
1391 pass a new parameter new_edges to it.
1392 (add_new_edges_to_heap): New fucntion.
1393 (cgraph_decide_inlining_of_small_functions): New vector
1394 new_indirect_edges for newly found indirect edges , call
1395 ipa_propagate_indirect_call_infos after inlining.
1396 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1397 inlining if performing indirect inlining. Call
1398 free_all_ipa_structures_after_iinln when doing so too.
1399 (inline_generate_summary): Do not call
1400 free_all_ipa_structures_after_iinln here.
1401 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1402 (print_edge_addition_message): New function.
1403 (update_call_notes_after_inlining): New function.
1404 (propagate_info_to_inlined_callees): New function.
1405 (ipa_propagate_indirect_call_infos): New function.
1406 * ipa-prop.h: Include cgraph.h
1407 (struct ipa_param_call_note): Fields reordered, new field processed.
1408 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1409 flag indirect_call.
1410 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1411 rediscovered call statements.
1412 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1413 (dump_cgraph_node): Dump also the indirect_call flag.
1414 (cgraph_clone_edge): Copy also the indirect_call flag.
1415 * tree-inline.c (copy_bb): Do not check for fndecls from call
1416 expressions, check for edge availability when moving clones.
1417 (get_indirect_callee_fndecl): New function.
1418 (expand_call_inline): If callee declaration is not apprent from
1419 the statement, try calling get_indirect_callee_fndecl. Do not
1420 issue warnings or call sorry when not inlinings an indirect edge.
1421 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1422
1423 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1424 bit more frandly to matching.
1425 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1426 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1427 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
14eddddd 1428
5cd72fe5 14292008-07-23 Michael Meissner <gnu@the-meissners.org>
1430
1431 PR 36907
1432 * opth-gen.awk: Suppress function specific features when building
1433 target libraries.
1434 * optc-gen.awk: Ditto.
1435
8864917d 14362008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1437
1438 PR 35058
1439 * diagnostic.c (pedwarn): Add opt parameter.
1440 (pedwarn0): New.
1441 * c-tree.h (pedwarn_init): Add opt parameter.
1442 (pedwarn_c90): Likewise.
1443 (pedwarn_c99): Likewise.
1444 * c-errors.c (pedwarn_c99): Likewise.
1445 (pedwarn_c90): Likewise.
1446 * toplev.h (pedwarn): Update declaration.
1447 (pedwarn0): Declare.
1448 * c-lex.c: All calls to pedwarn changed.
1449 * builtins.c: All calls to pedwarn changed.
1450 * toplev.c: All calls to pedwarn changed.
1451 * c-decl.c: All calls to pedwarn changed.
1452 * c-typeck.c: All calls to pedwarn changed.
1453 * c-common.c: All calls to pedwarn changed.
1454 * c-parser.c: All calls to pedwarn changed.
14eddddd 1455
822bda9c 14562008-07-23 Michael Meissner <gnu@the-meissners.org>
1457 Karthik Kumar <karthikkumar@gmail.com>
1458
1459 * attribs.c (file scope): Include c-common.h.
1460 (decl_attributes): Add support for #pragma GCC optimize and
1461 #pragma GCC option.
1462
1463 * targhooks.c (default_can_inline_p): New function that is the
1464 default for the TARGET_CAN_INLINE_P target hook.
1465
1466 * targhooks.h (default_can_inline_p): Add declaration.
1467
1468 * tree.c (cl_optimization_node): New static tree for building
1469 OPTIMIZATION_NODE tree.
1470 (cl_target_option_node): New static tree for building
1471 TARGET_OPTION_NODE tree.
1472 (cl_option_hash_table): New hash table for hashing
1473 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1474 (cl_option_hash_hash): New function to provide the hash value for
1475 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1476 (cl_option_hash_eq): New function to provide an equality test for
1477 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1478 (tree_code_size): Add support for OPTIMIZATION_NODE and
1479 TARGET_OPTION_NODE trees.
1480 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1481 TARGET_OPTION_NODE trees.
1482 (build_optimization_node): Build a tree that has all of the
1483 current optimization options.
1484 (build_target_option_node): Build a tree that has the target
1485 options that might be changed on a per function basis.
1486
1487 * tree.h (file scope): Include options.h.
1488 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1489 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1490 (TREE_OPTIMIZATION): Ditto.
1491 (TREE_TARGET_SPECIFIC): Ditto.
1492 (struct tree_function_decl): Add fields for remembering the
1493 current optimization options and target specific options.
1494 (struct tree_optimization_option): New tree variant that remembers
1495 the optimization options.
1496 (struct tree_target_option): New tree variant that remembers the
1497 target specific flags that might change for compiling a particular
1498 function.
1499 (union tree_node): Include tree_optimization_option and
1500 tree_target_option fields.
1501 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1502 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1503 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1504 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1505 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1506 optimization and target options.
1507 (optimization_default_node): New macro to refer to global_trees
1508 field.
1509 (optimization_current_node): Ditto.
1510 (optimization_cold_node): Ditto.
1511 (optimization_hot_node): Ditto.
1512 (target_option_default_node): Ditto.
1513 (target_option_current_node): Ditto.
1514 (current_option_pragma): Ditto.
1515 (current_optimize_pragma): Ditto.
1516
1517 * target.h (struct gcc_target): Add valid_option_attribute_p,
1518 target_option_save, target_option_restore, target_option_print,
1519 target_option_pragma_parse, and can_inline_p hooks.
1520
1521 * toplev.h (parse_optimize_options): Add declaration.
1522 (fast_math_flags_struct_set_p): Ditto.
1523
1524 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1525 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1526 optimize is used.
1527
1528 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1529 tree_can_inline_p hook to see if one function can inline another.
1530 (cgraph_decide_inlining): Ditto.
1531 (cgraph_decide_inlining_incrementally): Ditto.
1532
1533 * opts.c (decode_options): Add support for running multiple times
1534 to allow functions with different target or optimization options
1535 than was specified on the command line.
1536 (fast_math_flags_struct_set_p): New function that is similar to
1537 fast_math_flags_set_p, except it uses the values in the
1538 cl_optimization structure instead of global variables.
1539
1540 * optc-gen.awk: Add support for TargetSave to allow a back end to
1541 declare new fields that need to be saved when using function
1542 specific options. Include flags.h and target.h in the options.c
1543 source. Add support for Save to indicate which options can be set
1544 for individual functions. Generate cl_optimize_save,
1545 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1546 cl_target_option_restore, cl_target_option_print functions to
1547 allow functions to use different optimization or target options.
1548
1549 * opt-functions.awk (var_type_struct): Return the type used for
1550 storing the field in a structure.
1551
1552 * opth-gen.awk: Add support for TargetSave to allow a back end to
1553 declare new fields that need to be saved when using function
1554 specific options. Add support for Save to indicate which options
1555 can be set for individual functions. Only generate one extern for
1556 Mask fields. Generate cl_optimization and cl_target_option
1557 structures to remember optimization and target options.
1558
1559 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1560 collecting new tree nodes.
1561 (TS_TARGET_OPTION): Ditto.
1562
1563 * c-decl.c (merge_decls): Merge function specific target and
1564 optimization options.
1565
1566 * function.c (invoke_set_current_function_hook): If the function
1567 uses different optimization options, change the global variables
1568 to reflect this.
1569
1570 * coretypes.h (struct cl_optimization): Add forward reference.
1571 (struct cl_target_option): Ditto.
1572
1573 * c-pragma.c (option_stack): New static vector to remember the
1574 current #pragma GCC option stack.
1575 (handle_pragma_option): New function to support #pragma GCC option
1576 to change target options.
1577 (optimize_stack): New static vector to remember the current
1578 #pragma GCC optimize stack.
1579 (handle_pragma_optimize): New function to support #pragma GCC
1580 optimize to change optimization options.
1581 (init_pragma): Add support for #pragma GCC optimize and #pragma
1582 GCC option.
1583
1584 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1585 optimization options.
1586 (TARGET_OPTION_NODE): New tree code for remembering certain target
1587 options.
1588
1589 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1590 TARGET_OPTION_NODE trees.
1591
1592 * common.opt (-O): Add Optimization flag.
1593 (-Os): Ditto.
1594 (-fmath-errno): Ditto.
1595 (-falign-functions): Add UInteger flag to make sure flag gets full
1596 int in cl_optimization structure.
1597 (-falign-jumps): Ditto.
1598 (-falign-labels): Ditto.
1599 (-falign-loops): Ditto.
1600 (-fsched-stalled-insns): Ditto.
1601 (-fsched-stalled-insns-dep): Ditto.
1602
1603 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1604 definition.
1605 (TARGET_OPTION_SAVE): Ditto.
1606 (TARGET_OPTION_RESTORE): Ditto.
1607 (TARGET_OPTION_PRINT): Ditto.
1608 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1609 (TARGET_CAN_INLINE_P): Ditto.
1610 (TARGET_INITIALIZER): Add new hooks.
1611
1612 * tree-inline.c (tree_can_inline_p): New function to determine
1613 whether one function can inline another. Check if the functions
1614 use compatible optimization options, and also call the backend
1615 can_inline_p hook.
1616
1617 * tree-inline.h (tree_can_inline_p): Add declaration.
1618
1619 * c-common.c (c_common_attribute): Add support for option and
1620 optimize attributes.
1621 (handle_option_attribute): Add support for the option attribute to
1622 allow the user to specify different target options for compiling a
1623 specific function.
1624 (handle_optimize_attribute): Add support for the optimize
1625 attribute to allow the user to specify different optimization
1626 options for compiling a specific function.
1627 (handle_hot_attribute): Turn on -O3 optimization for this one
1628 function if it isn't the default optimization level.
1629 (handle_cold_attribute): Turn on -Os optimization for this one
1630 function if it insn't the default optimization.
1631 (const_char_p): New const char * typedef.
1632 (optimize_args): New static vector to remember the optimization
1633 arguments.
1634 (parse_optimize_options): New function to set up the optimization
a07c5315 1635 arguments from either the optimize attribute or #pragma GCC optimize.
822bda9c 1636
1637 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1638 (builtin_define_std): Ditto.
1639
1640 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
a07c5315 1641 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
822bda9c 1642 (x86_64-*-*): Ditto.
1643
1644 * Makefile.in (TREE_H): Add options.h.
1645 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1646
1647 * doc/extend.texi (option attribute): Document new attribute.
1648 (optimize attribute): Ditto.
1649 (hot attribute): Document hot attribute sets -O3.
1650 (cold attribute): Document cold attribute sets -Os.
1651 (#pragma GCC option): Document new pragma.
1652 (#pragma GCC optimize): Ditto.
1653
1654 * doc/options.texi (TargetSave): Document TargetSave syntax.
1655 (UInteger): Document UInteger must be used for certain flags.
1656 (Save): Document Save option to create target specific options
1657 that can be saved/restored on a function specific context.
1658
a07c5315 1659 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
822bda9c 1660 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1661
a07c5315 1662 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
822bda9c 1663 (TARGET_OPTION_SAVE): Ditto.
1664 (TARGET_OPTION_RESTORE): Ditto.
1665 (TARGET_OPTION_PRINT): Ditto.
1666 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1667 (TARGET_CAN_INLINE_P): Ditto.
1668
1669 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1670 -mfpmath=sse,387.
1671 (-mfpmath=both): Ditto.
1672
16732008-07-23 Michael Meissner <gnu@the-meissners.org>
1674 Karthik Kumar <karthikkumar@gmail.com>
1675
a07c5315 1676 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
822bda9c 1677 (TARGET_POPCNT): Ditto.
1678 (TARGET_SAHF): Ditto.
1679 (TARGET_AES): Ditto.
1680 (TARGET_PCLMUL): Ditto.
1681 (TARGET_CMPXCHG16B): Ditto.
1682 (TARGET_RECIP): Move switch into target_flags.
1683 (TARGET_FUSED_MADD): Ditto.
1684 (ix86_arch_features): Make an unsigned char type.
1685 (ix86_tune_features): Ditto.
1686 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1687 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1688 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1689
1690 * config/i386/i386.opt (arch): New TargetSave field to define
a07c5315 1691 fields that need to be saved for function specific option support.
822bda9c 1692 (tune): Ditto.
1693 (fpmath): Ditto.
1694 (branch_cost): Ditto.
1695 (ix86_isa_flags_explicit): Ditto.
1696 (tune_defaulted): Ditto.
1697 (arch_specified): Ditto.
1698 (-m128-long-double): Add Save flag to save option for target
1699 specific option support.
1700 (-m80387): Ditto.
1701 (-maccumulate-outgoing-args): Ditto.
1702 (-malign-double): Ditto.
1703 (-malign-stringops): Ditto.
1704 (-mfancy-math-387): Ditto.
1705 (-mhard-float): Ditto.
1706 (-mieee-fp): Ditto.
1707 (-minline-all-stringops): Ditto.
1708 (-minline-stringops-dynamically): Ditto.
1709 (-mms-bitfields): Ditto.
1710 (-mno-align-stringops): Ditto.
1711 (-mno-fancy-math-387): Ditto.
1712 (-mno-push-args): Ditto.
1713 (-mno-red-zone): Ditto.
1714 (-mpush-args): Ditto.
1715 (-mred-zone): Ditto.
1716 (-mrtd): Ditto.
1717 (-msseregparm): Ditto.
1718 (-mstack-arg-probe): Ditto.
1719 (-m32): Ditto.
1720 (-m64): Ditto.
1721 (-mmmx): Ditto.
1722 (-m3dnow): Ditto.
1723 (-m3dnowa): Ditto.
1724 (-msse): Ditto.
1725 (-msse2): Ditto.
1726 (-msse3): Ditto.
1727 (-msse4.1): Ditto.
1728 (-msse4.2): Ditto.
1729 (-msse4): Ditto.
1730 (-mno-sse4): Ditto.
1731 (-msse4a): Ditto.
1732 (-msse5): Ditto.
1733 (-mrecip): Move flag into target_flags.
1734 (-mcld): Ditto.
1735 (-mno-fused-madd): Ditto.
1736 (-mfused-madd): Ditto.
1737 (-mabm): Move flag into ix86_isa_flags.
1738 (-mcx16): Ditto.
1739 (-mpopcnt): Ditto.
1740 (-msahf): Ditto.
1741 (-maes): Ditto.
1742 (-mpclmul): Ditto.
1743
1744 * config/i386/i386-c.c: New file for #pragma support.
1745 (ix86_target_macros_internal): New function to #define or #undef
1746 target macros based when the user uses the #pragma GCC option to
1747 change target options.
1748 (ix86_pragma_option_parse): New function to add #pragma GCC option
1749 support.
1750 (ix86_target_macros): Move defining the target macros here from
1751 TARGET_CPU_CPP_BUILTINS in i386.h.
1752 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1753 defined, initialize any subtarget #pragmas.
1754
1755 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1756 REGISTER_TARGET_PRAGMAS.
1757
1758 * config/i386/t-i386: New file for x86 dependencies.
1759 (i386.o): Make dependencies mirror the include files used.
1760 (i386-c.o): New file, add dependencies.
1761
a07c5315 1762 * config/i386/i386-protos.h (override_options): Add bool argument.
822bda9c 1763 (ix86_valid_option_attribute_tree): Add declaration.
1764 (ix86_target_macros): Ditto.
1765 (ix86_register_macros): Ditto.
1766
1767 * config/i386/i386.c (ix86_tune_features): Move initialization of
1768 the target masks to initial_ix86_tune_features to allow functions
1769 to have different target options. Make type unsigned char,
1770 instead of unsigned int.
1771 (initial_ix86_tune_features): New static vector to hold processor
1772 masks for the tune variables.
1773 (ix86_arch_features): Move initialization of the target masks to
1774 initial_ix86_arch_features to allow functions to have different
a07c5315 1775 target options. Make type unsigned char, instead of unsigned int.
822bda9c 1776 (initial_ix86_arch_features): New static vector to hold processor
1777 masks for the arch variables.
1778 (enum ix86_function_specific_strings): New enum to describe the
1779 string options used for attribute((option(...))).
1780 (ix86_target_string): New function to return a string that
1781 describes the target options.
1782 (ix86_debug_options): New function to print the current options in
1783 the debugger.
1784 (ix86_function_specific_save): New function hook to save the
a07c5315 1785 function specific global variables in the cl_target_option structure.
822bda9c 1786 (ix86_function_specific_restore): New function hook to restore the
1787 function specific variables from the cl_target_option structure to
1788 the global variables.
1789 (ix86_function_specific_print): New function hook to print the
1790 target specific options in the cl_target_option structure.
1791 (ix86_valid_option_attribute_p): New function hook to validate
1792 attribute((option(...))) arguments.
1793 (ix86_valid_option_attribute_tree): New function that is common
1794 code between attribute((option(...))) and #pragma GCC option
a07c5315 1795 support that parses the options and returns a tree holding the options.
822bda9c 1796 (ix86_valid_option_attribute_inner_p): New helper function for
1797 ix86_valid_option_attribute_tree.
1798 (ix86_can_inline_p): New function hook to decide if one function
1799 can inline another on a target specific basis.
1800 (ix86_set_current_function); New function hook to switch target
1801 options if the user used attribute((option(...))) or #pragma GCC
1802 option.
1803 (ix86_tune_defaulted): Move to static file scope from
1804 override_options.
1805 (ix86_arch_specified): Ditto.
1806 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1807 ix86_isa_flags.
1808 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1809 (OPTION_MASK_ISA_ABM_SET): Ditto.
1810 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1811 (OPTION_MASK_ISA_CX16_SET): Ditto.
1812 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1813 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1814 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1815 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1816 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1817 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1818 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1819 (struct ptt): Move to static file scope from override_options.
1820 (processor_target_table): Ditto.
1821 (cpu_names): Ditto.
a07c5315 1822 (ix86_handle_option): Add support for options that are now isa options.
822bda9c 1823 (override_options): Add support for declaring functions that
1824 support different target options than were specified on the
1825 command line. Move struct ptt, processor_target_table, cpu_names,
1826 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1827 Add bool argument. Fix up error messages so the appropriate error
1828 is given for either command line or attribute.
1829 (ix86_previous_fndecl): New static to remember previous function
1830 declaration to see if we need to change target options.
1831 (ix86_builtins_isa): New array to record the ISA of each builtin
1832 function.
1833 (def_builtin): Always create the builtin function, even if the
1834 current ISA doesn't support it.
1835 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1836 tests for those builtins.
1837 (ix86_init_builtins): Remove TARGET_MMX test for calling
1838 ix86_init_mmx_sse_builtins.
1839 (ix86_expand_builtin): If the current ISA doesn't support a given
1840 builtin, signal an error.
1841 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1842 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1843 (TARGET_OPTION_SAVE): Ditto.
1844 (TARGET_OPTION_RESTORE): Ditto.
1845 (TARGET_OPTION_PRINT): Ditto.
1846 (TARGET_CAN_INLINE_P): Ditto.
1847
45a9206a 18482008-07-22 Rafael Avila de Espindola <espindola@google.com>
1849
a07c5315 1850 * c-typeck.c (build_external_ref): Don't call assemble_external.
1851 * final.c (output_operand): Call assemble_external.
45a9206a 1852
cf695b54 18532008-07-21 DJ Delorie <dj@redhat.com>
1854
1855 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1856 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1857
b79906a3 18582008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1859
1860 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1861 original insn and splitter contents into ...
1862 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1863 flag_unsafe_math_optimizations. Add dummy scratch register.
1864 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1865 !flag_unsafe_math_optimizations. Returns number with next
1866 highest magnitude if this is still less or equal to the true
1867 quotient in magnitude.
1868
4718112e 18692008-07-21 Rafael Avila de Espindola <espindola@google.com>
bdbc474b 1870
1871 * Makefile.in: Replace toplev.h with TOPLEV_H.
1872 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1873 * c-lex.c (fe_file_change): Don't set in_system_header.
1874 * c-parser.c (c_token): Remove in_system_header.
1875 (c_lex_one_token): Don't set in_system_header.
1876 (c_parser_set_source_position_from_token): Don't set in_system_header.
1877 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1878 diagnostic_info.
1879 (warning_at): New.
1880 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1881 * flags.h (in_system_header): Remove.
1882 * function.c (saved_in_system_header): Remove.
1883 (push_cfun): Don't set in_system_header.
1884 (pop_cfun): Don't set in_system_header.
1885 (push_struct_function): Don't set in_system_header.
1886 * input.h (expanded_location): Add sysp.
1887 (in_system_header_at): New.
1888 (in_system_header): New.
1889 * toplev.c (in_system_header): Remove.
1890 * toplev.h: Include input.h
1891 (warning_at): New.
1892 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1893 * tree-ssa.c (warn_uninit): Call warning_at.
1894 (warn_uninitialized_var): Update calls to warn_uninit.
1895 (warn_uninitialized_phi): Update calls to warn_uninit.
1896 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1897 (expand_location): Initialize xloc.sysp.
1898 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1899 (tree_decl_with_vis): Remove in_system_header_flag.
1900
04da991f 19012008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1902
1903 PR target/36822
1904 * recog.c (asm_operand_ok): Change the order of the extra
1905 memory constraint checks.
1906
6428c36d 19072008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1908
1909 PR tree-opt/36879
1910 * tree-switch-conversion.c (build_one_array): Call
14eddddd 1911 varpool_mark_needed_node and varpool_finalize_decl
6428c36d 1912 instead of assemble_variable.
1913
bff4202c 19142008-07-19 Jan Hubicka <jh@suse.cz>
1915
1916 * cgraph.c (cgraph_add_new_function): Do early local passes.
1917 * tree-nrv.c (gate_pass_return_slot): New gate.
1918 (pass_nrv): Add the gate.
1919 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1920 functions.
1921 (coalesce_ssa_name): Coalesce SSA names.
1922 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1923 not optimizing so unused user vars remains visible.
1924 * common.opt (flag_tree_ter): Always enable by default.
1925 * tree-ssa-ter.c: Include flags.h
1926 (is_replaceable_p): Check that locations match; when aliasing is missing
1927 be conservative about loads.
1928 * tree-optimize.c (gate_init_datastructures): Remove.
1929 (pass_init_datastructures): New.
1930 * passes.c: Reorder passes so we always go into SSA.
1931
8188ae06 19322008-07-19 Jan Hubicka <jh@suse.cz>
1933
1934 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1935 * doc/invoke.texi (--combine): Likewise.
1936 (-finline-functions-called-once): Update levels when enabled.
1937 (-funit-at-a-time): Document new behaviour.
1938 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1939 -fno-section-anchors when disabled explicitly.
1940 (inline params): They are not ignored now.
1941 (precompiled headers): Remove unit-at-a-time as being incompatible.
1942 * opts.c (decode_options): Handle unit-at-a-time as alias;
1943 imply -fno-section-anchors when toplevel reorder is disabled
1944 explicitly.
1945 * common.opt (ftoplevel-reorder): Set default value to 2.
1946 (funit-at-a-time): Set default value to 1.
1947 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1948 to 2.
1949
ff1b14e4 19502008-07-19 Jan Hubicka <jh@suse.cz>
1951
1952 * builtins.c (expand_builtin_int_roundingfn,
1953 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1954 it is not useful.
1955
8c8a7011 19562008-07-19 Richard Guenther <rguenther@suse.de>
1957
1958 PR bootstrap/36864
1959 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1960 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1961 * tree-ssa-pre.c (get_expr_value_id): For newly created
1962 constant value-ids make sure to add the expression to its
1963 expression-set.
1964
ae9150f2 19652008-07-19 Jakub Jelinek <jakub@redhat.com>
1966
1967 PR middle-end/36877
1968 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1969 return value of the builtin is ignored.
1970
65c05dfd 19712008-07-19 Olivier Hainque <hainque@adacore.com>
1972
1973 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1974 bits, a C conformant malloc implementation has to provide.
1975 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1976
25fe2cca 19772008-07-19 Joseph Myers <joseph@codesourcery.com>
1978
1979 PR target/36780
1980 PR target/36827
1981 * reload.c (find_reloads_subreg_address): Only reload address if
1982 reloaded == 0, not for reloaded != 1.
1983
1984 Revert:
1985 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1986 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1987 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1988 m32c_legitimize_reload_address.
1989
1990 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1991 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1992 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1993
544cd34c 19942008-07-19 Olivier Hainque <hainque@adacore.com>
1995
1996 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1997 argument, saying whether nested array are to be collapsed
1998 into a single array type DIE with multiple subscripts.
1999 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
2000 issues, centralize the nested array types collapsing control and
2001 disable the transformation for Ada.
14eddddd 2002
fd31868b 20032008-07-18 Uros Bizjak <ubizjak@gmail.com>
2004
2005 PR target/36786
2006 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
2007 x86_64_shift_adj.
2008 (x86_64_shift_adj_2): New expander.
2009 (x86_64_shift_adj_3): Ditto.
2010 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
2011 to split TImode operands.
2012 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
2013 (ix86_split_lshr): Ditto.
2014
b0726616 20152008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
2016
2017 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
2018 and __CHAR32_TYPE__.
2019 * c-typeck.c (digest_init): Support char16_t and char32_t.
2020 (set_nonincremental_init_from_string): Idem.
2021
c8b779eb 20222008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2023
2024 PR middle-end/36859
2025 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
2026 PREFERRED_STACK_BOUNDARY.
2027 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2028
7951924d 20292008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 PR middle-end/36858
2032 * function.c (locate_and_pad_parm): Cap boundary earlier.
2033
4e496818 20342008-07-17 Julian Brown <julian@codesourcery.com>
2035
2036 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
2037 no-op for targets which don't use DLLs.
2038
86c96e3a 20392008-07-17 Martin Jambor <mjambor@suse.cz>
2040
2041 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
2042 that nodes are relevant by examining the node->analyzed flag.
2043 (ipcp_init_stage): Check which nodes are relevant, assert that the
2044 relevant ones are also required.
2045 (ipcp_propagate_stage): Check on the side arrays are properly
2046 allocated.
2047 (ipcp_print_all_jump_functions): Make sure not to touch any node
2048 that is not analyzed or an edge that does not have a corresponding
2049 entry in the on-the-side vectors.
2050 (ipcp_function_scale_print): Likewise.
2051 (ipcp_update_callgraph): Check that the node is relevant.
2052 (ipcp_insert_stage): Check that the node is relevant. Check there is
2053 an info for every node and edge.
2054 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
2055 (ipa_print_all_tree_maps): Likewise and a new variable info.
2056 (ipa_print_all_params_modified): Likewise.
2057 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2058
19f42ddf 20592008-07-17 Roman Zippel <zippel@linux-m68k.org>
2060
2061 PR target/25343
2062 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2063
1a665a74 20642008-07-17 Paolo Bonzini <bonzini@gnu.org>
2065
2066 PR rtl-optimization/36753
2067 * fwprop.c (use_killed_between): Don't shortcut
2068 single-definition global registers.
2069
304e5318 20702008-07-16 Jan Hubicka <jh@suse.cz>
2071
2072 * cgraph.h (varpool_empty_needed_queue): Declare.
2073 * cgraphunit.c (output_in_order): Mark all variables as needed;
2074 empty the queue.
2075 * varpool.c (varpool_assemble_node): Update debug queue.
2076 (varpool_assemble_pending_decls): Don't do it here.
2077 (varpool_empty_needed_queue): New function.
2078
8878935b 20792008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2080
2081 * recog.c (peephole2_optimize): Fix formatting.
2082
c32319fc 20832008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2084
2085 * c-pch.c (get_ident): Avoid C++ keywords.
2086 * combine-stack-adj.c (single_set_for_csa): Likewise.
2087 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2088 output_asm_insn): Likewise.
2089 * reload.c (push_secondary_reload, find_reusable_reload,
2090 push_reload, combine_reloads, find_reloads,
2091 debug_reload_to_stream): Likewise.
2092 * reload.h (struct reload): Likewise.
2093 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2094 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2095 emit_output_reload_insns): Likewise.
2096 * targhooks.c (default_secondary_reload): Likewise.
2097 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2098
47cfb7f4 20992008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2100
2101 * recog.c (validate_change_1, validate_change,
2102 validate_unshare_change, validate_replace_rtx_1, struct
2103 funny_match, constrain_operands, peephole2_optimize): Avoid C++
2104 keywords.
2105 * reload.c (push_secondary_reload, secondary_reload_class,
2106 scratch_reload_class, find_valid_class, find_reusable_reload,
2107 push_reload, find_dummy_reload, find_reloads_address_1,
2108 find_reloads_address_part, find_equiv_reg): Likewise.
2109 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2110 choose_reload_regs): Likewise.
2111 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2112 Likewise.
2113 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2114 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2115 * sched-rgn.c (concat_INSN_LIST): Likewise.
2116 * stor-layout.c (mode_for_size, mode_for_size_tree,
2117 smallest_mode_for_size): Likewise.
2118
6659485c 21192008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2120
2121 * cfg.c (dump_reg_info): Avoid C++ keywords.
2122 * dwarf2asm.c (dw2_force_const_mem,
2123 dw2_asm_output_encoded_addr_rtx): Likewise.
fd31868b 2124 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
6659485c 2125 * expmed.c (expand_shift): Likewise.
2126 * global.c (find_reg): Likewise.
2127 * graph.c (draw_edge): Likewise.
2128 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2129 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2130 widen_clz, widen_bswap, expand_parity, expand_unop,
2131 emit_cmp_and_jump_insn_1): Likewise.
2132 * postreload.c (reload_cse_simplify_operands): Likewise.
2133 * ra.h (add_neighbor): Likewise.
2134 * reg-stack.c (remove_regno_note, change_stack): Likewise.
2135 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2136 record_reg_classes, copy_cost, record_address_regs,
2137 invalid_mode_change_p): Likewise.
2138 * regrename.c (regrename_optimize, scan_rtx_reg,
2139 dump_def_use_chain, find_oldest_value_reg,
2140 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2141
3e36a7e0 21422008-07-16 David Edelsohn <edelsohn@gnu.org>
2143
2144 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2145 MASK_POWERPC64 for power4 in previous commit.
2146
888fe6b2 21472008-07-16 Olivier Hainque <hainque@adacore.com>
2148
2149 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2150 instead of bare conversion to cast const-ness away.
2151
b542c964 21522008-07-16 Anatoly Sokolov <aesok@post.ru>
2153
2154 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2155 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2156 * config/xtensa/xtensa.c (xtensa_function_value): New function.
2157 (TARGET_FUNCTION_VALUE): Define.
2158
10c896da 21592008-07-16 David Edelsohn <edelsohn@gnu.org>
2160
2161 * config/rs6000/rs6000.c (processor_target_table): Add
2162 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2163
440e164f 21642008-07-16 Joseph Myers <joseph@codesourcery.com>
2165
2166 PR target/36827
2167 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2168 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2169 m32c_legitimize_reload_address.
2170
6a1a89a6 21712007-07-16 Rafael Avila de Espindola <espindola@google.com>
2172
a07c5315 2173 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2174 DECL_IN_SYSTEM_HEADER in sync.
6a1a89a6 2175
7739c729 21762008-07-15 Daniel Berlin <dberlin@dberlin.org>
2177
2178 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2179 * tree-ssa-pre.c (pre_expr_eq): Ditto
2180 (get_constant_for_value_id): Take a type as an argument.
2181 (fully_constant_expression): Pass in type.
2182 (find_or_generate_expression): Short circuit constant case.
2183 (create_expression_by_pieces): Remove special casing of
2184 pointer_plus.
2185 (do_regular_insertion): Short circuit constant case.
2186 (do_partial_partial_insertion): Ditto.
2187
94b087ba 21882008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2189
2190 PR target/36782
2191 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2192
21862716 21932008-07-15 Bob Wilson <bob.wilson@acm.org>
14eddddd 2194
21862716 2195 * config/xtensa/libgcc-xtensa.ver: New file.
2196 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
14eddddd 2197
9ce37fa7 21982008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2199
2200 * df-problems.c (df_set_note): Avoid C++ keywords.
2201 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2202 * dse.c (record_store, remove_useless_values): Likewise.
2203 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2204 gen_reg_rtx_offset, operand_subword, change_address_1,
2205 change_address, adjust_address_1, offset_address,
2206 widen_memory_access, emit_copy_of_insn_after): Likewise.
2207 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2208 * fwprop.c (should_replace_address, propagate_rtx_1,
2209 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2210 Likewise.
2211 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2212 gcse_emit_move_after, update_ld_motion_stores): Likewise.
2213 * lcm.c (compute_insert_delete, pre_edge_lcm,
2214 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2215 * lower-subreg.c (resolve_reg_notes): Likewise.
2216 * mode-switching.c (optimize_mode_switching): Likewise.
2217
d328ebdf 22182008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2219
2220 * bt-load.c (add_btr_def, migrate_btr_def,
2221 branch_target_load_optimize): Avoid C++ keywords.
2222 * caller-save.c (insert_restore, insert_save, insert_one_insn):
2223 Likewise.
2224 * combine.c (subst, simplify_set, make_extraction,
fd31868b 2225 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
d328ebdf 2226 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
fd31868b 2227 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
d328ebdf 2228
f06537f2 22292008-07-15 Richard Guenther <rguenther@suse.de>
2230
2231 PR middle-end/36369
2232 * c-common.c (strict_aliasing_warning): Do not warn for
2233 TYPE_REF_CAN_ALIAS_ALL pointers.
2234 (c_common_get_alias_set): may_alias types are not special.
2235 * tree.c (build_pointer_type_for_mode): Look up the may_alias
2236 attribute and set can_ref_all accordingly.
2237 (build_reference_type_for_mode): Likewise.
2238 * doc/extend.texi (may_alias): Clarify.
2239
890c45ff 22402008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2241
2242 PR target/36780
2243 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2244 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2245
280e075d 22462008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2247
2248 PR target/31568
2249 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2250 gcc_assert, instead call output_operand_lossage.
2251
7b36f9ab 22522008-07-15 Kai Tietz <kai.tietz@onevision.com>
2253
2254 * builtins.c (std_canonical_va_list): Treat structure based
2255 va_list types.
2256
310b57a1 22572008-07-15 Ben Elliston <bje@au.ibm.com>
2258
2259 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2260
7cb6f926 22612007-07-14 Rafael Avila de Espindola <espindola@google.com>
2262
2263 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2264 is set.
2265
eabc9864 22662008-07-14 Jan Hubicka <jh@suse.cz>
2267
2268 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2269 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2270 fix predicates and constraints.
2271 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2272 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2273
657e4193 22742008-07-14 Doug Kwan <dougkwan@google.com>
2275
2276 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2277 additional option file arm/eabi.opt.
2278 * config/arm/eabi.h (File): New configuration file for EABI targets.
2279 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2280 SUBSUBTARGET_EXTRA_SPECS.
2281 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2282 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2283 from STARTFILE_SPEC so that it can be referenced in an override.
2284 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2285 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2286 can be referenced in an override.
2287 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2288 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2289 so that it can be referenced in an override.
2290 (LINK_SPEC): Use BPABI_LINK_SPEC.
2291 * config/arm/eabi.opt (File): New.
2292
36eba48c 22932008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2294
2295 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2296 (FIXED_VALUE_H): New variable.
2297 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2298 input.h, fixed-value.h.
2299 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2300 (BASIC_BLOCK_H): Use $(BITMAP_H).
2301 (FUNCTION_H): Add varray.h.
2302 (IPA_REFERENCE_H): Use $(BITMAP_H).
2303 (CGRAPH_H): Add $(BASIC_BLOCK_H).
2304 (DF_H): Use $(BITMAP_H).
2305 (GGC_H): Add statistics.h.
2306 (INSN_ADDR_H): New.
2307 (INSN_ATTR_H): Use it.
2308 (SYSTEM_H): Add safe-ctype.h, filenames.h.
2309 (INPUT_H): New.
2310 (SYMTAB_H): Add $(OBSTACK_H).
2311 (CPP_INTERNAL_H): New.
2312 (TREE_DUMP_H): Add tree-pass.h.
2313 (TREE_FLOW_H): Use $(BITMAP_H)
2314 (PRETTY_PRINT_H): Use $(INPUT_H).
2315 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2316 (GSTAB_H): New.
2317 (BITMAP_H): New.
2318 (many object files): Fix lots of header dependencies throughout.
2319
bdaa15c6 23202008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2321
2322 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2323 New macros.
2324 (s-gtyp-input): Use them to write tmp-gi.list.
2325 (echo_to_gi.list): Remove.
2326
8883e700 23272008-07-14 Richard Guenther <rguenther@suse.de>
2328
2329 * tree-ssa-sccvn.c (pre_info): Remove.
2330 (switch_to_PRE_table): Likewise.
fd31868b 2331 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
8883e700 2332 (set_hashtable_value_ids): Do not create value-ids for the
2333 optimistic tables.
2334 (run_scc_vn): Remove double test. Remove bogus special-case
2335 in value-number printing.
2336 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2337 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2338 SSA_NAME_VALUE.
2339 * tree-flow-inline.h (get_value_handle): Remove.
2340 * tree-flow.h (get_value_handle): Remove.
2341
1763aab8 23422008-07-14 Martin Jambor <mjambor@suse.cz>
2343
2344 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2345 in which we generate arithmetics is not a subrange.
2346
355d1d37 23472008-07-14 Martin Jambor <mjambor@suse.cz>
2348
2349 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2350
adb79ed9 23512008-07-14 Richard Guenther <rguenther@suse.de>
2352
fd31868b 2353 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
adb79ed9 2354
08b5e262 23552008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2356
2357 PR target/36745
2358 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2359 reload for symbol refs moved to r0 with -fPIC.
2360 (legitimize_pic_address): Use the target register as temporary
2361 reg if possible.
2362 (emit_symbolic_move): Adjust comment.
2363 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2364 New expanders.
2365
89768577 23662008-07-14 Ben Elliston <bje@au.ibm.com>
2367
2368 * c-common.h (C_CPP_HASHNODE): New macro.
2369 * coretypes.h (struct cpp_token): Forward declare.
2370 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2371 the context-sensitive keyword method.
2372 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2373 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2374 expand_bool_pixel): New.
2375 (altivec_categorize_keyword): New function.
2376 (init_vector_keywords): New function.
2377 (rs6000_macro_to_expand): Likewise.
2378 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2379 compiling an ISO C dialect.
2380
3c295d52 23812008-07-13 Daniel Berlin <dberlin@dberlin.org>
2382
fd31868b 2383 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
3c295d52 2384 (create_expression_by_pieces): Fix typo.
2385 (do_regular_insertion): Use debug counter here too.
2386
80e221c0 23872008-07-14 Hans-Peter Nilsson <hp@axis.com>
2388
2389 PR target/35492.
2390 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2391 CONST_OK_FOR_LETTER_P. All port-local users changed.
2392 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2393 implement Kp matching power-of-two.
2394 (CONSTRAINT_LEN): Define to match.
2395 * config/cris/cris.md: Replace all use of constraint K with Kc.
2396 ("*btst*): Use Kp for operand 0 of last alternative.
2397
defc07a6 23982008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2399
2400 PR testsuite/36440
2401 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2402 and quad formats.
2403
ac2722c5 24042008-07-13 Jan Hubicka <jh@suse.cz>
2405
2406 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2407 to be mangled too.
2408
5a6ca2d1 24092008-07-13 Richard Guenther <rguenther@suse.de>
2410
2411 PR middle-end/36811
2412 * langhooks.c (lhd_print_error_function): Deal with recursive
2413 BLOCK trees.
2414
28485874 24152008-07-12 Jan Hubicka <jh@suse.cz>
2416
2417 * cgraph.c (assembler_name_hash): New static var.
2418 (hash_node_by_assembler_name, eq_assembler_name): New.
2419 (cgraph_node_for_asm): Use hashtable.
2420 (cgraph_remove_node): Maintain hashtable.
2421 (change_decl_assembler_name): Sanity check that names are not changing
2422 after aliasing was processed.
2423 * cgraph.h (varpoon_node): Add next GGC marker.
2424 * tree.c (decl_assembler_name_equal): Constify.
2425 (decl_assembler_name_hash): New.
2426 * tree.h (decl_assembler_name_equal): Constify.
2427 (decl_assembler_name_hash): Update.
2428
29387458 24292008-07-12 David Daney <ddaney@avtrex.com>
2430
2431 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2432 sb1 and r5000 cpus.
2433
ccb1cd1e 24342008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2435
2436 * doc/md.texi: Document the MIPS "v" constraint.
2437 * config/mips/mips.h (reg_class): Revert last change.
2438 (REG_CLASS_NAMES): Likewise.
2439 (REG_CLASS_CONTENTS): Likewise.
2440 * config/mips/mips.c (mips_regno_to_class): Likewise.
2441 * config/mips/constraints.md (v): Likewise, but add documentation.
2442 Add a comment to say that this constraint should not be used in
2443 gcc code.
2444
b853c5af 24452008-07-11 DJ Delorie <dj@redhat.com>
2446
2447 * config/h8300/h8300.md (length): Fix branch offset limit.
2448
14eddddd 24492008-07-11 Anatoly Sokolov <aesok@post.ru>
5431d4c2 2450
2451 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2452 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2453 (avr_hard_regno_scratch_ok): New function.
2454 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2455 * config/avr/avr.md (all peepholes that request a scratch register):
2456 Remove avr_peep2_scratch_safe use.
2457
5c6e5756 24582008-07-11 Tom Tromey <tromey@redhat.com>
2459 Ian Lance Taylor <iant@google.com>
2460
2461 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2462 (struct c_common_resword): Define.
2463 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2464 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2465 (c_common_reswords, num_c_common_reswords): Declare.
2466 * c-common.c (c_common_reswords): New global const array.
2467 (num_c_common_reswords): New const int.
2468 * c-parser.c (struct resword, reswords): Don't define.
2469 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2470 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2471 than reswords. If warning about C++ keywords, give them a special
2472 RID code.
2473 (c_lex_one_token): Warn about C++ keywords. Call
2474 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2475 (c_parser_external_declaration): Look for RID_xxx rather than
2476 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2477 (c_parser_statement_after_labels): Likewise.
2478 (c_parser_objc_class_instance_variables): Likewise.
2479 (c_parser_objc_class_declaration): Likewise.
2480 (c_parser_objc_try_catch_statement): Likewise.
2481 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2482 (declspecs_add_type): Likewise.
2483
781dec7f 24842008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2485
2486 * ggc-page.c (alloc_page):
2487 Substituting xmalloc, xcalloc with
2488 XNEWVEC and XCNEWVAR macros which add the
2489 needed casts.
2490
cda99cdb 24912008-07-11 Richard Guenther <rguenther@suse.de>
2492
2493 PR tree-optimization/36765
2494 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2495 aliases from HEAP vars to SMTs.
2496
ac242e0f 24972008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2498
2499 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2500 * configure.ac (loose_warn): Move -Wc++-compat from here...
2501 (strict_warn): ...to here.
2502 * configure: Regenerate.
2503
9061ead2 25042008-07-10 Joseph Myers <joseph@codesourcery.com>
2505
2506 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2507 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2508 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2509 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2510 excluding more specific h8300-*-* and sh-*-* targets.
2511
a2c47f0e 25122008-07-10 Daniel Berlin <dberlin@dberlin.org>
2513
fd31868b 2514 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
a2c47f0e 2515 (eliminate): Ditto.
2516 (execute_pre): Call loop_optimizer_finalize in early exit.
2517
6c504100 25182008-07-10 Jakub Jelinek <jakub@redhat.com>
2519
9f49e155 2520 PR middle-end/36790
2521 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2522 uids in the bitmap, not just VAR_DECL uids.
2523
6c504100 2524 PR rtl-optimization/36419
2525 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2526 (combine_stack_adjustments_for_block): Call it if needed. Delete
2527 correct insn.
2528 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2529 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2530 prologue sp adjustment.
2531
02b841e2 25322008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2533
2534 PR other/28322
6c504100 2535 * opts.c (print_ignored_options): Report postponed diagnostics for
02b841e2 2536 unknown -Wno-* options as warnings, not errors.
6c504100 2537 (postpone_unknown_option_error): Renamed to...
2538 (postpone_unknown_option_warning): ... this.
02b841e2 2539
f8e28d54 25402008-07-09 Doug Kwan <dougkwan@google.com>
2541
2542 Revert:
2543 2008-07-08 Doug Kwan <dougkwan@google.com>
2544
2545 * config/arm/arm.opt (mandroid): New option.
2546 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2547 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2548 (CC1_SPEC): Same.
2549 (CC1PLUS_SPEC): Same.
2550 (LIB_SPEC): Same.
2551 (STARTFILE_SPEC): Same.
2552 (ENDFILE_SPEC): Same.
2553 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2554 used.
2555
57cd3a30 25562008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2557
2558 PR target/35802
2559 * config/mips/mips.h (reg_class): Remove V1_REG.
2560 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2561 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2562 instead of V1_REGS.
2563 (mips_get_tp): New function.
2564 (mips_legitimize_tls_address): Use it.
2565 * config/mips/constraints.md (v): Delete.
2566 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2567 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2568 After reload, split into a move and ...
2569 (*tls_get_tp_<mode>_split): ...this new instruction.
2570
4b7a8d97 25712008-07-09 David Daney <ddaney@avtrex.com>
2572
2573 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2574
dac18d1a 25752008-07-09 Jakub Jelinek <jakub@redhat.com>
2576
2577 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2578 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2579 Add c argument.
2580 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2581 htab_delete should be called. Don't free c.
2582 (lookup_tmp_var): Create temp_htab lazily.
2583 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2584 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2585 callers.
2586 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2587 lower_omp_ordered, lower_omp_critical, lower_omp_for,
14eddddd 2588 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
dac18d1a 2589 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2590 * tree-sra.c (generate_element_init): Likewise.
2591 * tree-mudflap.c (execute_mudflap_function_ops,
2592 execute_mudflap_function_decls): Likewise.
2593 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2594 * tree-gimple.h (struct gimplify_ctx): New type.
2595 (push_gimplify_context): Adjust prototype.
2596
6a61fe70 25972008-07-09 Daniel Berlin <dberlin@dberlin.org>
2598
2599 * tree-ssa-pre.c (phi_translate_1): Update placement of
2600 add_to_value calls.
2601
747bf50d 26022008-07-09 Anatoly Sokolov <aesok@post.ru>
2603
2604 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2605 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2606 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2607 * targhooks.c (default_hard_regno_scratch_ok): New function.
2608 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2609 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2610 * recog.c: Include "target.h".
2611 (peep2_find_free_register): Add check for global regs. Add target
2612 specific check.
2613 * Makefile.in (recog.o): Depend on target.h.
2614
de4eeeaf 26152008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2616
2617 * config/sh/sh.c (sh_canonical_va_list_type): New.
2618 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2619
b5f30e7c 26202008-07-09 Raksit Ashok <raksit@google.com>
2621
2622 * doc/invoke.texi (Option Summary): Mention new option
2623 -Wdisallowed-function-list=...
2624 (Warning Options): Document -Wdisallowed-function-list=...
2625 * common.opt (Wdisallowed-function-list=): New flag.
2626 * flags.h (warn_disallowed_functions): External definition of new
2627 boolean warning flag.
2628 (warn_if_disallowed_function_p): Declare new function.
2629 * opts.c (warning_disallowed_functions): New static variable.
2630 (warn_disallowed_functions): New boolean warning flag.
2631 (warn_if_disallowed_function_p): New function.
2632 (add_comma_separated_to_vector): Rename
2633 add_instrument_functions_exclude_list to this.
2634 (common_handle_option): Handle new option. Rename calls to
2635 add_instrument_functions_exclude_list into calls to
2636 add_comma_separated_to_vector.
2637 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2638 based on flag warn_disallowed_functions.
2639
2a624fb1 26402008-07-09 Christian Bruel <christian.bruel@st.com>
2641
2642 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2643 instead of get_attr_length.
2644
2657a7d5 26452008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2646
2647 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2648 keywords.
2649 * genemit.c (gen_insn): Likewise.
2650 * gengtype.c (note_def_vec): Likewise.
2651 * gengtype.h (note_def_vec): Likewise.
2652 * genoutput.c (struct data, output_insn_data, process_template,
2653 gen_expand, gen_split, note_constraint): Likewise.
2654 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2655 make_insn_sequence): Likewise.
2656 * gensupport.c (record_insn_name): Likewise.
2657
f4336f5d 26582008-07-08 Doug Kwan <dougkwan@google.com>
2659
2660 * config/arm/arm.opt (mandroid): New option.
2661 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2662 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2663 (CC1_SPEC): Same.
2664 (CC1PLUS_SPEC): Same.
2665 (LIB_SPEC): Same.
2666 (STARTFILE_SPEC): Same.
2667 (ENDFILE_SPEC): Same.
2668 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2669 used.
2670
4e85cee6 26712008-07-08 Raksit Ashok <raksit@google.com>
2672
2673 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2674 (set_storage_via_setmem): Fix expected_align parameter.
2675 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2676 missing from the list.
2677 * doc/md.texi (movmem): Explicitly state that expected alignment is
2678 to be expressed in bytes.
2679 (setmem): Explicitly state that expected alignment is to be expressed
2680 in bytes.
2681
c05815b0 26822008-07-08 Joseph Myers <joseph@codesourcery.com>
2683
2684 * reload.c (find_reloads_subreg_address): Do not require validity
2685 of address in original mode before reloading address.
2686
149d23ac 26872008-07-07 Tianwei Sheng <tianweis@google.com>
2688
2689 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2690 bounds array access.
2691
dd384a24 26922008-07-08 Jakub Jelinek <jakub@redhat.com>
2693
fd31868b 2694 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
dd384a24 2695
f6c33c78 26962008-07-05 Daniel Berlin <dberlin@dberlin.org>
14eddddd 2697
f6c33c78 2698 Fix PR tree-optimization/23455
2699 Fix PR tree-optimization/35286
2700 Fix PR tree-optimization/35287
2701 * Makefile.in (OBJS-common): Remove tree-vn.o.
fd31868b 2702 (tree-vn.o): Remove.
f6c33c78 2703 * dbgcnt.def: Add treepre_insert debug counter.
2704 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2705 (debug_value_expressions): Ditto.
2706 (print_value_expressions): Ditto.
2707 * tree-pretty-print.c (dump_generic_node): Updated for
2708 VALUE_HANDLE removal.
2709 * tree-ssa-dom.c (record_equality): Ditto.
2710 (cprop_operand): Ditto.
2711 (lookup_avail_expr): Ditto.
2712 * tree-ssa-threadedge.c
2713 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2714 (simplify_control_stmt_condition): Ditto.
2715 * tree.c (tree_code_size): Ditto.
2716 (tree_node_structure): Ditto.
2717 (iterative_hash_expr): Ditto.
2718 * tree.def: Ditto.
2719 * tree.h (VALUE_HANDLE_ID): Ditto.
2720 (VALUE_HANDLE_EXPR_SET): Ditto.
2721 (struct tree_value_handle): Ditto.
2722 (union tree_node): Ditto.
2723 * treestruct.def: Ditto.
2724 * tree-vn.c: Removed.
2725 * tree-ssa-pre.c: Rewritten entirely.
2726 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2727 (constant_value_ids): Ditto.
2728 (vn_nary_op_t): Moved to header.
2729 (vn_phi_t): Ditto.
2730 (vn_reference_op_t): Ditto
2731 (vn_reference_t): Ditto.
2732 (next_value_id): New variable.
2733 (VN_INFO): Add an assert.
2734 (vn_constant_eq): New function.
2735 (vn_constant_hash): Ditto.
2736 (get_or_alloc_constant_value_id): Ditto.
2737 (value_id_constant_p): Ditto.
2738 (vn_reference_compute_hash): De-staticify.
2739 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
fd31868b 2740 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2741 (valueize_refs): Update opcode if it changes from ssa name to constant.
f6c33c78 2742 (vn_reference_lookup_1): Add new argument.
2743 (vn_reference_lookup): Ditto.
2744 (vn_reference_lookup_pieces): New function.
fd31868b 2745 (vn_reference_insert): Add return type. Modify to deal with value ids.
f6c33c78 2746 (vn_reference_insert_pieces): New function.
2747 (vn_nary_op_compute_hash): De-staticify.
2748 (vn_nary_op_eq): Ditto.
2749 (vn_nary_op_lookup_pieces): New function.
14eddddd 2750 (vn_nary_op_lookup): Add new argument.
f6c33c78 2751 (vn_nary_op_insert_pieces): New function.
fd31868b 2752 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
f6c33c78 2753 (vn_phi_insert): Ditto.
2754 (visit_unary_op): Update for callee changes.
2755 (visit_binary_op): Ditto.
2756 (visit_reference_op_load): Ditto.
2757 (visit_reference_op_store): Ditto.
2758 (init_scc_vn): Init next_value_id, constant_to_value_id and
14eddddd 2759 constant_value_ids.
f6c33c78 2760 (free_scc_vn): Free them.
2761 (set_hashtable_value_ids): New function.
2762 (run_scc_vn): Use it.
2763 (get_max_value_id): New function.
2764 (get_next_value_id): Ditto.
2765 (expressions_equal_p): Moved from tree-vn.c
2766 (sort_vuses): Ditto.
2767 (sort_vuses_heap): Ditto.
2768 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2769 above).
2770 * tree.c (iterative_hash_hashval_t): Made non-static
2771 * tree.h (iterative_hash_hashval_t): Declare it.
14eddddd 2772
545eff8f 27732008-07-08 Martin Jambor <mjambor@suse.cz>
2774
2775 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2776 instead of ipa_create_node_params.
2777 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2778 ipa_check_create_edge_args, free them with
2779 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2780
2781 * ipa-prop.c: Include flags.h and tree-inline.h.
2782 (ipa_node_params_vector): New variable.
2783 (ipa_edge_args_vector): New variable.
2784 (edge_removal_hook_holder): New variable.
2785 (node_removal_hook_holder): New variable.
2786 (edge_duplication_hook_holder): New variable.
2787 (node_duplication_hook_holder): New variable.
2788 (ipa_detect_param_modifications): Check for presence of modified flags.
2789 (ipa_compute_jump_functions): Check for presence of jump functions.
2790 (ipa_free_edge_args_substructures): New function.
2791 (ipa_create_node_params): Removed.
2792 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2793 (ipa_free_node_params_substructures): New function.
2794 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2795 vector.
2796 (ipa_edge_removal_hook): New function.
2797 (ipa_node_removal_hook): New function.
2798 (duplicate_array): New function.
2799 (ipa_edge_duplication_hook): New function.
2800 (ipa_node_duplication_hook): New function.
2801 (ipa_register_cgraph_hooks): New function.
2802 (ipa_unregister_cgraph_hooks): New function.
2803 (free_all_ipa_structures_after_ipa_cp): New function.
14eddddd 2804
545eff8f 2805 * ipa-prop.h: Include vec.h.
2806 (ipa_node_params_t): New typedef with vector types for it.
2807 (ipa_edge_args_t): New typedef with vector types for it.
2808 (IPA_NODE_REF): Changed to access an on-the-side vector.
2809 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2810 (ipa_check_create_node_params): New function.
2811 (ipa_check_create_edge_args): New function.
14eddddd 2812
545eff8f 2813 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2814 all users.
14eddddd 2815
0a7b2ad2 28162008-07-07 Tom Tromey <tromey@redhat.com>
2817
2818 * configure, config.in: Rebuilt.
2819 * configure.ac: Don't check for scandir or alphasort.
2820
c2cdd8e8 28212008-07-07 Joseph Myers <joseph@codesourcery.com>
2822
2823 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2824 types immediately after creating them.
2825
ad0527c9 28262008-07-07 Joseph Myers <joseph@codesourcery.com>
2827
2828 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2829
48926532 28302008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2831
fd31868b 2832 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2833 dump_constraint_graph.
2834 (dump_constraint_edge): New function.
2835 (dump_constraint_graph): New function.
2836 (debug_constraint_graph): New function.
2837 (dump_constraint): Removed useless comparison.
2838 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2839 (dump_constraint_graph): Declare.
2840 (debug_constraint_graph): Declare.
2841 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
48926532 2842
fdb1dbc8 28432008-07-07 Kai Tietz <kai.tietz@onevision.com>
2844
2845 * config/i386/i386.c (is_va_list_char_pointer): New.
2846 (ix86_va_start): Replace compare with ms_va_list_type_node
2847 by is_va_list_char_pointer.
2848 (ix86_gimplify_va_arg): Likewise.
2849
dd1c9157 28502008-07-07 Martin Jambor <mjambor@suse.cz>
2851
2852 * cgraph.c (cgraph_edge_max_uid): New variable.
2853 (struct cgraph_edge_hook_list): New type.
2854 (struct cgraph_node_hook_list): New type.
2855 (struct cgraph_2edge_hook_list): New type.
2856 (struct cgraph_2node_hook_list): New type.
2857 (first_cgraph_edge_removal_hook): New variable.
2858 (first_cgraph_node_removal_hook): New variable.
2859 (first_cgraph_edge_duplicated_hook): New variable.
2860 (first_cgraph_node_duplicated_hook): New variable.
2861 (cgraph_add_edge_removal_hook): New function.
2862 (cgraph_remove_edge_removal_hook): New function.
2863 (cgraph_call_edge_removal_hooks): New function.
2864 (cgraph_add_node_removal_hook): New function.
2865 (cgraph_remove_node_removal_hook): New function.
2866 (cgraph_call_node_removal_hooks): New function.
2867 (cgraph_add_edge_duplication_hook): New function.
2868 (cgraph_remove_edge_duplication_hook): New function.
2869 (cgraph_call_edge_duplication_hooks): New function.
2870 (cgraph_add_node_duplication_hook): New function.
2871 (cgraph_remove_node_duplication_hook): New function.
2872 (cgraph_call_node_duplication_hooks): New function.
2873 (cgraph_create_edge): Assign to edge uid.
2874 (cgraph_remove_edge): Call edge removal hooks.
2875 (cgraph_node_remove_callees): Call edge removal hooks.
2876 (cgraph_node_remove_callers): Call edge removal hooks.
2877 (cgraph_remove_node): Call node removal hooks.
2878 (cgraph_clone_edge): Call edge duplication hooks.
2879 (cgraph_clone_node): Call node duplication hooks.
2880
2881 * cgraph.h (cgraph_edge): New field uid.
2882 (cgraph_edge_hook): New type.
2883 (cgraph_node_hook): New type.
2884 (cgraph_2edge_hook): New type.
2885 (cgraph_2node_hook): New type.
2886
4b15d28a 28872008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2888
2889 * config.in: Regenerate.
2890
098cc23f 28912008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2892
2893 * gcc.c (print_sysroot): New.
2894 (option_map, display_help, process_command): Handle the
2895 -print-sysroot option.
2896 (main): Print the sysroot if requested.
2897 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
14eddddd 2898
8f7df81f 28992008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2900
2901 PR target/34780
2902 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2903
1cf0636a 29042008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2905
fd31868b 2906 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1cf0636a 2907 (assign_parm_setup_block_p): Also check mode of entry_parm.
2908
e7354ddb 29092008-07-07 Richard Guenther <rguenther@suse.de>
2910
2911 * tree-ssa-structalias.h (set_used_smts): Remove.
2912 * tree-ssa-structalias.c (used_smts): Likewise.
2913 (set_used_smts): Likewise.
2914 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2915 call to set_used_smts.
2916
57e6b870 29172008-07-07 Richard Guenther <rguenther@suse.de>
2918
2919 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2920 (new_var_info): Set it to false.
2921 (solution_set_add): Correctly handle pointers outside a var and
2922 inside a field.
2923 (type_safe): Treat variables with is_full_var properly.
2924 (do_sd_constraint): Likewise.
2925 (do_ds_constraint): Likewise.
2926 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2927 (get_constraint_for_ptr_offset): New function.
2928 (get_constraint_for_component_ref): For addresses at least include
2929 the last field of the variable. Handle is_full_vars properly.
2930 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2931 (handle_ptr_arith): Remove.
2932 (find_func_aliases): Simplify assignment handling.
2933 (create_function_info_for): For parameter and result varinfos set
2934 is_full_var flag.
2935 (create_variable_info_for): Set is_full_var flag whenever we
2936 just created a single varinfo for a decl.
2937 (init_alias_vars): Initialize use_field_sensitive from
2938 max-fields-for-field-sensitive parameter.
2939
7a827b07 29402008-07-07 Richard Guenther <rguenther@suse.de>
2941
2942 PR tree-optimization/36713
2943 * tree-flow-inline.h (is_call_used): New function.
2944 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2945 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2946 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2947
33be53f9 29482008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2949
2950 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
14eddddd 2951
fe0647d9 29522008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2953
2954 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2955
27f1c610 29562008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2957 Nathan Sidwell <nathan@codesourcery.com>
2958
2959 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2960 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2961 tmake_file.
2962 * config/m68k/t-linux: New.
2963 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2964 default.
2965
29662008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2967
2968 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2969 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2970 by MAC/EMAC.
2971
561c1db5 29722008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2973
2974 * gcc.c (execute): Fix -Wc++-compat warning.
2975
9c562a7e 29762008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2977
2978 PR target/36720
2979 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2980 constant for little endian.
2981
279ee6d4 29822008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2983
2984 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2985 mips_base_mips16 instead of TARGET_MIPS16.
2986 (mips_base_mips16): Declare.
2987 * config/mips/mips.c (mips_base_mips16): Make global.
2988 (was_mips16_p): Remove GTY marker.
2989 (was_mips16_pch_p): New variable.
2990 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2991 (mips_override_options): Force to non-MIPS16 mode initially.
2992 Do not complain about MIPS16 PIC incompatibilities here.
2993 Only allow -mgpopt if -mexplicit-relocs is in force for
2994 non-MIPS16 code.
2995
1d5a5c71 29962008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2997
2998 * configure.ac: Check for caddr_t, define to char * if not defined.
2999 * configure: Regenerate.
3000 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
3001 (mmap_gt_pch_use_address): Likewise.
3002 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
3003
9bdfd02b 30042008-07-06 Richard Guenther <rguenther@suse.de>
3005
3006 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
3007 (new_var_info): Deal with it.
3008 (solution_set_add): Likewise.
3009 (bitpos_of_field): Make signed, fix.
3010 (struct fieldoff): Remove type and decl fields. Make size field
3011 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
3012 flags.
3013 (fieldoff_compare): Deal with it.
3014 (push_fields_onto_fieldstack): Remove has_union argument, glob
3015 adjacent non-pointer fields together.
3016 (create_function_info_for): Do not set has_union.
3017 (create_variable_info_for): Simplify.
3018
5f57a8b1 30192008-07-06 Kai Tietz <kai.tietz@onevision.com>
3020
3021 * config.gcc (extra_headers): Add cross-stdarg.h for target
3022 x86_64-*-* and i?86-*-*.
3023 * config/i386/cross-stdarg.h: New.
3024 * builtins.c (std_fn_abi_va_list): New.
3025 (std_canonical_va_list_type): New.
3026 (stabilize_va_list): Replace va_list_type_node use by
3027 mtarget.canonical_va_list_type.
3028 (gimplify_va_arg_expr): Likewise.
3029 (expand_builtin_va_copy): Replace va_list_type_node use by
3030 mtarget.fn_abi_va_list.
3031 * tree-sra.c (is_va_list_type): New helper.
3032 (decl_can_be_decomposed_p): Replace
3033 va_list_type_node use by is_va_list_type.
3034 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
3035 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3036 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
3037 * config/i386/i386-protos.h (ix86_get_valist_type): New.
3038 (ix86_enum_va_list): New.
3039 * config/i386/i386.c (sysv_va_list_type_node): New.
3040 (ms_va_list_type_node): New.
3041 (ix86_function_type_abi): Remove sorry.
3042 (ix86_build_builtin_va_list_abi): New.
3043 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
3044 for 64-bit targets.
3045 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
3046 (ix86_init_builtins_va_builtins_abi): New.
3047 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
3048 for 64-bit targets.
3049 (ix86_handle_abi_attribute): New.
3050 (attribute_spec): Add sysv_abi and ms_abi.
3051 (ix86_fn_abi_va_list): New.
3052 (ix86_canonical_va_list_type): New.
3053 (ix86_enum_va_list): New.
3054 (TARGET_FN_ABI_VA_LIST): New.
3055 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3056 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3057 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3058 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3059 (TARGET_ENUM_VA_LIST): New.
3060 * expr.h (std_fn_abi_va_list): New.
3061 (std_canonical_va_list_type): New.
3062 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3063 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3064 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3065 TARGET_CANONICAL_VA_LIST_TYPE.
3066 * target.h (struct gcc_target): Add fn_abi_va_list hook
3067 and canonical_va_list_type hook.
3068
0bafabac 30692008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3070
3071 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3072 integral and pointer types.
3073
ede24ab1 30742008-07-04 Roger Sayle <roger@eyesopen.com>
3075
fd31868b 3076 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
ede24ab1 3077 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3078
721de066 30792008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3080
3081 PR target/36684
fd31868b 3082 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
721de066 3083
49a931ef 30842008-07-04 Jakub Jelinek <jakub@redhat.com>
3085
3086 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3087 build_gimple_modify_stmt.
3088 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
3089 gimple operand. Use fold_build* instead of build*.
3090
fc733d7a 30912008-07-04 Richard Guenther <rguenther@suse.de>
3092
3093 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3094 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3095 properly to compute the reachability set if we do field-sensitive PTA.
3096 * invoke.texi (max-fields-for-field-sensitive): Document default.
3097 * opts.c (decode_options): Set max-fields-for-field-sensitive to
3098 100 for optimize >= 2.
3099
9866f82d 31002008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3101
3102 * ggc-zone.c (lookup_page_table_if_allocated,
3103 set_page_table_entry, zone_find_object_size, alloc_small_page,
3104 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3105 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3106 -Wc++-compat and/or -Wcast-qual warnings.
3107
358f6a0e 31082008-07-04 Alan Modra <amodra@bigpond.net.au>
3109
3110 PR target/36634
3111 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3112 pic_offset_table_rtx to be marked as used here.
3113 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3114 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3115 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3116 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3117 !TARGET_SECURE_PLT.
3118
b8ede6a9 31192008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3120
3121 * alloc-pool.c (hash_descriptor, eq_descriptor,
3122 alloc_pool_descriptor): Fix -Wc++-compat warnings.
3123 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3124 Likewise.
3125 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3126 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
fd31868b 3127 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
b8ede6a9 3128 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3129 Likewise.
3130
14f25899 31312008-07-03 Eric Botcazou <ebotcazou@adacore.com>
3132
3133 * tree-flow.h (loop_only_exit_p): Declare.
3134 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3135 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3136 the number of iterations if it is constant. Otherwise, if this is the
3137 only possible exit of the loop, use the conservative estimate on the
3138 number of iterations of the entire loop if available.
3139
fdbb505a 31402008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
3141
3142 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3143 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3144 Add synchronization functions.
3145 * config/sync.c: New file.
3146 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3147 (LIBGCC_SYNC_CFLAGS): Likewise.
3148
64d0a531 31492008-07-03 Uros Bizjak <ubizjak@gmail.com>
3150
3151 PR target/36710
3152 * config/i386/i386.md (mode): Add TF to "mode" attribute.
3153 (*pushtf_sse): New insn pattern.
3154 (pushtf splitters): New splitters.
3155
08f62b1b 31562008-07-03 Michael Meissner <gnu@the-meissners.org>
3157
3158 PR middle-end/35736
3159 * predict.c (build_predict_expr): Use void_type_node for the tree
3160 type, instead of NULL_TREE.
3161
a826d79c 31622008-07-03 H.J. Lu <hongjiu.lu@intel.com>
3163
3164 * config/i386/i386.c (contains_aligned_value_p): Return true
3165 for TCmode.
3166 (ix86_data_alignment): Align TCmode to 128bits.
3167 (ix86_local_alignment): Likewise.
3168
9f92e1a2 31692008-07-03 Andrew Haley <aph@redhat.com>
3170
3171 PR bootstrap/33304
3172 * vec.h (VEC_TA): New.
3173 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3174 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3175 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3176 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3177 (C_COMMON_FIXED_TYPES): Remove first arg.
3178 (C_COMMON_FIXED_MODE_TYPES): Likewise.
3179 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3180 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3181 not to use empty macro arguments.
3182
97a90309 31832008-07-02 Joseph Myers <joseph@codesourcery.com>
3184
3185 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3186 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3187 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3188 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3189 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3190 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3191 config/ia64/crtn.asm, config/m68hc11/larith.asm,
3192 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3193 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3194 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3195 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3196 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3197 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3198 config/rs6000/e500crtres64gpr.asm,
3199 config/rs6000/e500crtres64gprctr.asm,
3200 config/rs6000/e500crtrest32gpr.asm,
3201 config/rs6000/e500crtrest64gpr.asm,
3202 config/rs6000/e500crtresx32gpr.asm,
3203 config/rs6000/e500crtresx64gpr.asm,
3204 config/rs6000/e500crtsav32gpr.asm,
3205 config/rs6000/e500crtsav64gpr.asm,
3206 config/rs6000/e500crtsav64gprctr.asm,
3207 config/rs6000/e500crtsavg32gpr.asm,
3208 config/rs6000/e500crtsavg64gpr.asm,
3209 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3210 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3211 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3212 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3213 config/sparc/sol2-cn.asm: Remove .file directives.
3214
94c13a9e 32152008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
3216
3217 * resource.c (mark_referenced_resources): Look inside
3218 UNSPEC_VOLATILEs and ASM_INPUTs.
3219
a1ddb869 32202008-07-02 Ian Lance Taylor <iant@google.com>
3221
3222 * rtlanal.c (add_reg_note): New function.
3223 * rtl.h (add_reg_note): Declare.
3224 * auto-inc-dec.c (attempt_change): Use add_reg_note.
3225 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3226 * builtins.c (expand_builtin_longjmp): Likewise.
3227 (expand_builtin_nonlocal_goto): Likewise.
3228 * calls.c (emit_call_1, expand_call): Likewise.
3229 * cfgexpand.c (add_reg_br_prob_note): Likewise.
3230 * cfglayout.c (fixup_reorder_chain): Likewise.
3231 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3232 (commit_one_edge_insertion): Likewise.
3233 * combine.c (move_deaths, distribute_notes): Likewise.
3234 * df-problems.c (df_set_note): Likewise.
3235 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3236 (set_unique_reg_note): Likewise.
3237 (emit_copy_of_insn_after): Likewise.
3238 * expr.c (expand_expr_real): Likewise.
3239 * gcse.c (add_label_notes): Likewise.
3240 * haifa-sched.c (create_check_block_twin): Likewise.
3241 * jump.c (mark_jump_label_1): Likewise.
3242 * loop-doloop.c (add_test, doloop_modify): Likewise.
3243 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3244 * lower-subreg.c (move_eh_region_note): Likewise.
3245 * optabs.c (emit_libcall_block): Likewise.
3246 * predict.c (predict_insn): Likewise.
3247 (combine_predictions_for_insn): Likewise.
3248 * recog.c (peephole2_optimize): Likewise.
3249 * regmove.c (try_auto_increment): Likewise.
3250 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3251 * reload.c (find_reloads): Likewise.
3252 * reload1.c (fixup_eh_region_note): Likewise.
3253 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3254 * reorg.c (delete_prior_computation): Likewise.
3255 (delete_computation, dbr_schedule): Likewise.
3256 * config/pa/pa.c (legitimize_pic_address): Likewise.
3257 * config/sh/sh.c (sh_reorg): Likewise.
3258
b3fd46a0 32592008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3260
3261 PR target/36669
3262 * config/libgcc-glibc.ver: Add %exclude.
3263 * config/m32r/libgcc-glibc.ver: Likwise.
3264 * config/s390/libgcc-glibc.ver: Likwise.
3265 * config/sh/libgcc-glibc.ver: Likwise.
3266 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3267
3268 * config/i386/libgcc-glibc.ver: New.
3269
3270 * config/i386/libgcc-x86_64-glibc.ver: Removed.
3271
32722008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3273
3274 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3275 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3276 i[34567]86-*-linux*, x86_64-*-linux*. Add
3277 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3278 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3279 x86_64-*-linux*. Add i386/t-linux to tmake_file for
3280 i[34567]86-*-linux*, x86_64-*-linux*.
3281
3282 * libgcc-std.ver: Add empty GCC_4.4.0.
3283
3284 * mkmap-symver.awk: Support multiple versions per symbol.
3285
3286 * config/i386/i386.c (ix86_init_builtins): Always define
3287 __builtin_fabsq and __builtin_copysignq with fallbacks.
3288 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3289 and __builtin_copysignq if SSE2 isn't available.
3290
3291 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3292 (LIBGCC2_TF_CEXT): Likwise.
3293 (TF_SIZE): Likwise.
3294
3295 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3296
3297 * config/i386/sfp-machine.h: Moved to libgcc.
3298
3299 * config/i386/sfp-machine.h: New.
3300 * config/i386/t-linux: Likwise.
3301
3302 * config/i386/t-darwin: Remove softfp_wrap_start and
3303 softfp_wrap_end.
3304 * config/i386/t-darwin64: Likewise.
3305
3306 * config/i386/t-fprules-softfp64: Renamed to ...
3307 * config/i386/t-fprules-softfp: This.
3308
3309 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3310 and softfp_wrap_end.
3311
f82f1250 33122008-07-02 Jason Merrill <jason@redhat.com>
3313
b26a4c3c 3314 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3315
f82f1250 3316 * tree.c (ctor_to_list): New fn.
3317 * tree.h: Declare it.
3318 (CONSTRUCTOR_ELT): New macro.
3319 (CONSTRUCTOR_NELTS): New macro.
3320
7b879cb3 33212008-07-02 Richard Guenther <rguenther@suse.de>
3322
3323 * tree-ssa-structalias.c (struct variable_info): Reorder
3324 to fill padding on 64bit hosts. Make collapsed_to an int.
3325 (get_varinfo_fc): Deal with that.
3326 (new_var_info): Likewise.
3327 (collapse_rest_of_var): Likewise.
3328
4aba1ac0 33292008-07-02 Joshua Sumali <jsumali@redhat.com>
3330
3331 * doc/install.texi (--enable-java-home): Document.
3332 (--enable-aot-compile-rpm): Likewise.
3333 (--with-arch-directory): Likewise.
3334 (--with-os-directory): Likewise.
3335 (--with-origin-name): Likewise.
3336 (--with-arch-suffix): Likewise.
3337 (--with-jvm-root-dir): Likewise.
3338 (--with-jvm-jar-dir): Likewise.
3339 (--with-python-dir): Likewise.
3340
cc5ef3f4 33412008-07-02 Richard Guenther <rguenther@suse.de>
3342
3343 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3344 from decls explicitly. Merge operand checking from tuples.
3345
e28b8a69 33462008-07-02 Martin Jambor <mjambor@suse.cz>
3347
3348 * tree-switch-conversion.c: Included timevar.h which I forgot before.
14eddddd 3349
f28b0a6a 33502008-07-02 Martin Jambor <mjambor@suse.cz>
3351
3352 * tree-switch-conversion.c: Included timevar.h
3353 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3354
3355 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3356
cc17b19b 33572008-07-02 Martin Jambor <mjambor@suse.cz>
3358
3359 * tree-switch-conversion.c: Corrected various comments and
3360 whitespace issues
3361 (build_constructors): Fixed minor formatting mistakes.
3362
3363 * invoke.texi (Optimize Options): Corrected the
3364 switch-conversion-max-branch-ratio parameter.
3365
c3e89507 33662008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3367
3368 * final.c (asm_insn_count): Return zero for an empty asm body.
3369
b64035d2 33702008-07-02 Richard Guenther <rguenther@suse.de>
3371
3372 * bitmap.h (bitmap_set_bit): Return bool.
3373 (bitmap_clear_bit): Likewise.
3374 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3375 write to the bitmap if it would.
3376 (bitmap_clear_bit): Likewise.
3377 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3378 bitmap_set_bit return value.
3379 (add_pred_graph_edge): Likewise.
3380 (add_graph_edge): Likewise.
3381 (do_sd_constraint): Likewise.
3382 (do_ds_constraint): Likewise.
3383
c0b4d131 33842008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3385
3386 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3387 Fix -Wc++-compat and/or -Wcast-qual warnings.
3388 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3389 gen_regparm_prefix): Likewise.
3390 * vmsdbgout.c (write_modbeg, lookup_filename,
3391 vmsdbgout_source_line, vmsdbgout_init): Likewise.
3392
019ee3ed 33932008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3394
3395 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3396 defaults.h definition apply.
3397
77c0eeb4 33982008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3399
3400 * function.c (assign_parm_remove_parallels): New.
3401 (assign_parm_setup_block_p): Do not return true for non-BLKmode
3402 PARALLELs.
3403 (assign_parm_setup_block): Do not handle them.
3404 (assign_parm_setup_reg, assign_parm_setup_stack): Call
3405 assign_parm_remove_parallels.
3406
ed7c4e62 34072008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3408
3409 * c-typeck.c (convert_for_assignment): Use
3410 vector_targets_convertible_p.
3411 * c-common.c (vector_targets_convertible_p): New.
3412 * c-common.h (vector_targets_convertible_p): New prototype.
3413 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3414 opaque_p_V2SI_type_node.
3415
e2239f8a 34162008-07-01 Steve Ellcey <sje@cup.hp.com>
3417
3418 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3419 RFmode constants.
3420
aea30ade 34212008-07-01 Uros Bizjak <ubizjak@gmail.com>
3422
3423 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3424 TFmode constants via two element DImode vector for hosts with
3425 HOST_BITS_PER_WIDE_INT < 64.
3426 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3427 also for HOST_BITS_PER_WIDE_INT < 64.
3428
79520942 34292008-07-01 Richard Guenther <rguenther@suse.de>
3430
3431 PR tree-optimization/36666
3432 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3433 (get_constraint_exp_from_ssa_var): Split into ...
3434 (get_constraint_exp_for_temp): ... this ...
3435 (get_constraint_for_ssa_var): ... and that.
3436 Return constraint expressions for all touched sub-fields
3437 if the results address is not taken.
3438 (process_constraint): Remove assertion that aggregate
3439 assignments do not happen at this place.
3440 (get_constraint_for_component_ref): Add address_p argument.
3441 Return constraint expressions for all touched sub-fields
3442 if the results address is not taken.
3443 (do_deref): Use get_constraint_exp_for_temp.
3444 (get_constraint_for_1): Rename from ...
aea30ade 3445 (get_constraint_for): ... this. Add the old function as wrapper.
79520942 3446 (do_structure_copy): Use get_constraint_for_1.
3447
a347af29 34482008-07-01 Martin Jambor <mjambor@suse.cz>
79520942 3449
64d0a531 3450 * Makefile.in (tree-switch-conversion.o): Add.
3451 (OBJS-common): Add tree-swtch-conversion.o.
3452 * passes.c (init_optimization_passes): Add pass_convert_switch.
3453 * tree-pass.h: (pass_convert_switch): Add.
3454 * tree-switch-conversion.c: New file.
3455 * gcc.dg/tree-ssa/cswtch.c: New testcase.
3456 * common.opt (ftree-cswtch): New option.
3457 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3458 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3459 * opts.c (decode_options): Set flag_tree_switch_conversion when
3460 optimization level is >= 2.
3461 * doc/invoke.texi (Optimize Options): Added description of
3462 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
a347af29 3463
f4316735 34642008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3465
3466 * config/darwin-driver.c (darwin_default_min_version): Fix
3467 -Wc++-compat warnings.
3468
aea30ade 34692008-06-30 Uros Bizjak <ubizjak@gmail.com>
b527440e 3470
3471 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3472 of operand 0.
3473
df6632c5 34742008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3475
aea30ade 3476 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
14eddddd 3477
ce299759 34782008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3479
918ad608 3480 PR rtl-optimization/34744
aea30ade 3481 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
64d0a531 3482 (df_scan_free_internal): Free data structures not
ce299759 3483 allocated in storage pools.
3484 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
aea30ade 3485 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
ce299759 3486 df_scan_free_mws_vec.
3487 * dse.c (dse_step6): Free offset_map_p and offset_map_n
3488 unconditionally.
3489
3ddbdaa6 34902008-06-30 H.J. Lu <hongjiu.lu@intel.com>
3491
3492 * config/i386/i386.c (contains_aligned_value_p): Return true
3493 for __float128.
b527440e 3494 (ix86_function_arg_boundary): Return its natural boundary
3ddbdaa6 3495 for __float128.
3496 (return_in_memory_32): Don't check TDmode.
3497 (ix86_split_to_parts): Support splitting into 4 parts and
3498 support TFmode for 32bit target.
3499 (ix86_split_long_move): Support splitting into 4 parts.
3500 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3501 for SSE2.
b527440e 3502 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3ddbdaa6 3503 (ix86_init_builtins): Here.
3504 (ix86_scalar_mode_supported_p): Always return true for TFmode.
3505 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
14eddddd 3506 'q' and 'w', respectively.
3ddbdaa6 3507
3508 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3509 TARGET_64BIT.
3510 (movtf_internal): Likewise.
3511 (<code>tf2): Likewise.
3512 (*absnegtf2_sse): Likewise.
3513 (copysign<mode>3): Likewise.
3514 (copysign<mode>3_const): Likewise.
3515 (copysign<mode>3_var): Likewise.
3516 (define_split UNSPEC_COPYSIGN): Likewise.
3517 * config/i386/sse.md (*nandtf3): Likewise.
3518 (<code>tf3): Likewise.
3519 (*<code>tf3): Likewise.
3520
6b9eb5ee 35212008-06-30 Joey Ye <joey.ye@intel.com>
3522 H.J. Lu <hongjiu.lu@intel.com>
3523
3524 * global.c (compute_regsets): Set frame_pointer_needed here.
b527440e 3525 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
6b9eb5ee 3526
2c43234d 35272008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3528
3529 * doc/install.texi (specific): Expand Windows build notes.
3530
b3d251d4 35312008-06-30 Ira Rosen <irar@il.ibm.com>
3532
3533 PR tree-optimization/36648
3534 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3535 number of prolog iterations by step. Fix the comment.
3536
a7d6b13e 35372008-06-30 Richard Guenther <rguenther@suse.de>
3538
3539 PR middle-end/36671
3540 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3541 handle calls from ECF_MALLOC functions.
3542 (handle_pure_call): ECF_MALLOC functions do not return
3543 call-used memory.
3544 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3545
2734b515 35462008-06-29 Andreas Schwab <schwab@suse.de>
3547
d54128c3 3548 * config/m68k/m68k.c (print_operand): Always print a float
3549 constant in hex.
3550 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3551 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3552 Remove macros.
3553
2734b515 3554 * config/rs6000/x-linux64: Remove never used file.
3555
339d7079 35562008-06-29 Richard Guenther <rguenther@suse.de>
3557
3558 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3559 prototype.
3560 (struct alias_info): Move ...
3561 * tree-ssa-alias.c: ... here.
3562 (update_alias_info): Declare.
3563 (compute_may_aliases): Call it.
3564 (update_alias_info): New function.
3565 * tree-ssa-structalias.c (update_alias_info): Move ...
3566 * tree-ssa-alias.c (update_alias_info_1): ... here.
3567 * tree-ssa-structalias.c (process_constraint_1): Remove
3568 unused from_call argument. Rename to ...
3569 (process_constraint): ... this. Delete old wrapper.
3570 (make_constraint_to): Adjust callers.
3571 (handle_const_call): Likewise.
3572 (handle_pure_call): Likewise.
3573 (init_base_vars): Likewise.
3574 (handle_lhs_call): Likewise. Remove unnecessary constraint.
3575 (find_func_aliases): We don't need structure copies for
3576 complex types.
3577 (make_constraint_from_anything): Remove.
3578 (create_variable_info_for): For globals make constraints
3579 from escaped, not from anything.
3580 (compute_points_to_sets): Do not call update_alias_info.
3581 (ipa_pta_execute): Use make_constraint_from.
3582
9d61b2aa 35832008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3584
3585 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3586 (bitmap.o-warn, dominance.o-warn): New.
3587 * configure.ac (cxx_compat_warn): Delete.
3588 (loose_warn): Add -Wcast-qual and -Wc++-compat.
3589 * system.h: Remove #pragma diagnostic for -Wcast-qual and
3590 -Wc++-compat.
3591 * configure: Regenerate.
3592
3593 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3594 warnings.
3595
c768b48b 35962008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3597
3598 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3599 * df-scan.c (df_notes_rescan): Likewise.
3600 * ggc-page.c (set_page_table_entry): Likewise.
3601 * intl.c (gcc_gettext_width): Likewise.
3602 * varasm.c (get_unnamed_section, get_noswitch_section,
3603 get_section): Likewise.
3604
bb3a657a 36052008-06-28 Andrew Jenner <andrew@codesourcery.com>
3606
3607 * regrename.c (build_def_use): Don't copy RTX.
3608
e66bbea3 36092008-06-28 Sandra Loosemore <sandra@codesourcery.com>
3610
3611 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3612 (Type Attributes): Fix nesting of @table and @subsection. Adjust
3613 punctuation. Use @ref instead of @xref.
3614 (Function Names): Remove stray @display/@end display.
3615 (C++ Attributes): Use @ref instead of @xref.
3616 (Deprecated Features): Fix punctuation around @xref.
3617 (Backwards Compatibility): Likewise.
3618 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3619
49923c51 36202008-06-28 Joseph Myers <joseph@codesourcery.com>
3621
3622 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3623 constants for E500 double.
3624
0d57cc93 36252008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3626
3627 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3628 element type of const_vector.
3629
aea30ade 36302008-06-28 Uros Bizjak <ubizjak@gmail.com>
8c68a50a 3631
3632 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3633 Remove FLAGS_REG clobber from expander pattern.
3634 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3635 (anddi3, andsi3, andhi3, andqi3): Ditto.
3636 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3637 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3638 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3639 (ashlsi3, ashlhi3, ashlqi3): Ditto.
3640 (ashrsi3, ashrhi3, ashrqi3): Ditto.
3641 (lshrsi3, lshrhi3, lshrqi3): Ditto.
3642 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3643 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3644
9f41ce98 36452008-06-28 Richard Guenther <rguenther@suse.de>
3646
3647 * tree-ssa-structalias.c (callused_id, var_callused,
3648 callused_tree): Add.
3649 (handle_pure_call): New function.
3650 (find_func_aliases): Call it.
3651 (find_what_p_points_to): Handle the call-used set.
3652 (clobber_what_escaped): Likewise.
3653 (compute_call_used_vars): New function.
3654 (init_base_vars): Init the call-used variable.
3655 (do_sd_constraint): Do not propagate the solution from CALLUSED
3656 but use CALLUSED as a placeholder.
3657 (solve_graph): Likewise.
3658 * tree-flow-inline.h (gimple_call_used_vars): New function.
3659 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3660 (compute_call_used_vars): Declare.
3661 * tree-ssa-alias.c (set_initial_properties): Call
3662 compute_call_used_vars.
3663 (reset_alias_info): Clear call-used variables.
3664 (add_call_clobber_ops): Assert we are not called for const/pure
3665 functions. Remove handling of them.
3666 (add_call_read_ops): Handle pure functions by adding the
3667 call-used set of variables as VUSEs.
3668 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3669 (delete_tree_ssa): Free it.
3670 * tree-dfa.c (remove_referenced_var): Clear the var from the
3671 call-used bitmap.
3672
1c73f824 36732008-06-28 Kai Tietz <kai.tietz@onevision.com>
3674
3675 * tree.c (build_varargs_function_type_list): New.
3676 (build_function_type_list_1): New.
3677 (build_function_type_list): Use build_function_type_list_1.
3678 * tree.h (build_varargs_function_type_list): New.
3679
e442af0b 36802008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3681
3682 PR target/34856
3683 * config/spu/spu.c (spu_builtin_splats): Do not generate
3684 invalid CONST_VECTOR expressions.
3685 (spu_expand_vector_init): Likewise.
3686
c312b853 36872008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
3688
3689 * optabs.c (libfunc_decls): New variable.
3690 (libfunc_decl_hash, libfunc_decl_eq): New functions.
3691 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3692 for the same function twice.
3693
aea30ade 36942008-06-27 Uros Bizjak <ubizjak@gmail.com>
34c1bdea 3695
3696 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3697 ix86_expand_binary_operator directly.
3698 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
3699 for operand 2.
3700 (*ashrti3_1): Ditto.
3701 (*lshrti3_1): Ditto.
3702 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3703 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3704 using only one splitter. Conditionaly execute splitter before or
3705 after peephole2 pass.
3706 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3707 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
3708 Use only one alternative in asm template.
3709 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3710 in asm template.
3711 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3712 "J" operand constraint for operand 2.
3713 (*ashldi3_cconly_rex64): Ditto.
3714 (*ashrdi3_cmp_rex64): Ditto.
3715 (*ashrdi3_cconly_rex64): Ditto.
3716 (*lshrdi3_cmp_rex64): Ditto.
3717 (*lshrdi3_cconly_rex64): Ditto.
3718 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3719 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3720 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3721 gen_x86_shrd_1.
3722
1d22f541 37232008-06-27 Jakub Jelinek <jakub@redhat.com>
3724
8c68a50a 3725 * gimplify.c (omp_is_private): Don't return true if decl is not
3726 already private on #pragma omp for or #pragma omp parallel for.
919041c7 3727
1d22f541 3728 PR debug/36617
3729 * tree-cfg.c (struct move_stmt_d): Replace block field with
3730 orig_block and new_block fields.
3731 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3732 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3733 (move_block_to_fn): Replace vars_map and new_label_map arguments
3734 with struct move_stmt_d pointer.
3735 (replace_block_vars_by_duplicates): New function.
3736 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3737 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3738 all subblocks of ORIG_BLOCK to the new function. Call
3739 replace_block_vars_by_duplicates.
3740 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3741 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3742 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3743 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3744 (expand_omp): Temporarily set input_location to the location of
3745 region's controlling stmt.
3746 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3747 BIND_EXPR, push ctx->block_vars and gimplification vars into
3748 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3749 into dest function.
3750 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3751 there are any BLOCK_VARS.
3752 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3753 OMP_PARALLEL or OMP_TASK stmt.
3754 (lower_omp): Save and restore input_location around the lower_omp_1
3755 call.
3756
0b3bf4d6 37572008-06-27 Richard Guenther <rguenther@suse.de>
3758
3759 PR tree-optimization/36400
3760 PR tree-optimization/36373
3761 PR tree-optimization/36344
3762 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3763 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3764 (update_alias_info): Remove call clobbering code.
3765 (make_constraint_to): New helper function.
3766 (make_escape_constraint): Likewise.
3767 (handle_rhs_call): Use it on all pointer containing arguments.
3768 Also mark the static chain escaped.
3769 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3770 instead of ANYTHING.
3771 (make_constraint_from): New helper split out from ...
3772 (make_constraint_from_anything): ... here.
3773 (find_func_aliases): Add constraints for escape sites.
3774 (intra_create_variable_infos): Make constraints from NONLOCAL
3775 for parameters.
3776 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3777 as ANYTHING.
3778 (clobber_what_p_points_to): Remove.
3779 (clobber_what_escaped): New function.
3780 (init_base_vars): Init NONLOCAL and ESCAPED.
3781 (do_sd_constraint): Do not propagate the solution from ESCAPED
3782 but use ESCAPED as a placeholder.
3783 (solve_graph): Likewise.
3784 * tree-flow.h (clobber_what_p_points_to): Remove.
3785 (clobber_what_escaped): Declare.
3786 * tree-ssa-alias.c (set_initial_properties): Call it.
3787 Remove code clobbering escaped pointers.
3788
285aabd1 37892008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3790
3791 * function.c (allocate_struct_function): Only allocate a unique
3792 funcdef_no if the decl is nonzero.
3793
58cdf9da 37942008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3795
3796 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3797 * config/mips/mips.c (mips_split_const_insns): New function.
3798 * config/mips/mips.md (move_type): New attribute.
8c68a50a 3799 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
58cdf9da 3800 (dword_mode): New attribute.
3801 (type): Avoid long line. Map "move_type"s to "type"s,
3802 choosing "multi" for doubleword moves if appropriate.
3803 Swap MTC/MFC comments to match their declaration order.
3804 (extended_mips16): Default to "yes" if "move_type" is "sll0",
3805 "type" is "branch" or "jal" is "direct".
3806 (length): Handle "extended_mips16" first. Make the default
3807 "0" for "ghost" instructions. Set the length from "move_type".
3808 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3809 of "type", with "sll0" for the register alternative. Remove the
3810 "extended_mips16" attribute.
3811 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3812 of "type", with "shift_shift" for the register alternative.
3813 Remove the "length" attribute.
3814 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3815 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3816 of "type", with "andi" for the register alternative.
3817 (*zero_extendqihi2): Likewise.
3818 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3819 of "andi" instead of a "type" of "arith".
3820 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3821 instead of "type".
3822 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3823 (mov_<store>r, *mov<mode>_ra): Likewise.
3824 (extendsidi2): Use "move_type" instead of "type", with "move"
3825 for the register alternative.
3826 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3827 of "type", with "signext" for the register alternative.
3828 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3829 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3830 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3831 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3832 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3833 (unnamed branch insn): Likewise.
3834 (*movdi_gp32_fp64): Fold into...
3835 (*movdi_32bit): ...here.
3836 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3837 (*movdf_hardfloat): ...this new pattern.
3838 (*movdf_softfloat): Remove redundant FPR alternatives.
3839 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3840 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3841 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
3842 the "move" attribute.
3843 (*movdi_32bit): Use "move_type" instead of "type" and remove the
3844 "length" attribute. Use "fpload" and "fpstore" instead of "load"
3845 and "store" for COP loads and stores.
3846 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3847 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3848 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3849 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3850 (*movtf_mips16, *movv2sf): Likewise.
3851 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3852 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3853 (mfhc1<mode>): Use "move_type" instead of "move".
3854 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3855 (loadgp_blockage): Remove the "length" attribute.
3856 (blockage, set_got_version, update_got_version): Likewise.
3857 (call_internal): Remove the "extended_mips16" attribute.
3858 (call_value_internal, call_value_multiple_internal): Likewise.
3859 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3860 instead of "move".
3861 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3862 the "length" attribute.
3863
225ab426 38642008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3865
3866 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3867 -Wcast-qual warnings.
3868 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3869 handle_pragma_pop_macro): Likewise.
3870 * collect2.c (resolve_lib_name): Likewise.
3871 * config/arc/arc.c (arc_init): Likewise.
3872 * config/arm/arm.c (neon_builtin_compare,
3873 locate_neon_builtin_icode): Likewise.
8c68a50a 3874 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
225ab426 3875 * config/bfin/bfin.c (bfin_init_machine_status,
3876 bfin_optimize_loop): Likewise.
3877 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3878 * config/cris/cris.c (cris_init_expanders): Likewise.
3879 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3880 * config/darwin.c (machopic_indirection_eq,
8c68a50a 3881 machopic_indirection_name, machopic_output_indirection): Likewise.
225ab426 3882 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3883 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3884 frv_optimize_membar): Likewise.
3885 * config/i386/cygwin.h (mingw_scan,
3886 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3887 * config/i386/cygwin1.c (mingw_scan): Likewise.
3888 * config/i386/i386.c (machopic_output_stub): Likewise.
3889 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3890 i386_pe_unique_section): Likewise.
3891 * config/ia64/ia64.c (ia64_init_machine_status,
3892 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3893 Likewise.
3894 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3895 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3896 * config/m68k/m68k.c (m68k_handle_option,
3897 m68k_sched_md_init_global): Likewise.
8c68a50a 3898 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3899 mcore_unique_section): Likewise.
225ab426 3900 * config/mips/mips.c (mips_block_move_straight,
8c68a50a 3901 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3902 Likewise.
225ab426 3903 * config/mmix/mmix.c (mmix_init_machine_status,
3904 mmix_encode_section_info): Likewise.
8c68a50a 3905 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
225ab426 3906 * config/rs6000/rs6000.c (rs6000_init_machine_status,
3907 print_operand_address, output_toc, redefine_groups,
3908 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3909 * config/s390/s390.c (s390_init_machine_status): Likewise.
3910 * config/score/score.c (score_block_move_straight,
3911 score_block_move_loop_body): Likewise.
3912 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3913 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3914 * emit-rtl.c (find_auto_inc): Likewise.
3915 * gcc.c (translate_options, process_command): Likewise.
3916 * reorg.c (dbr_schedule): Likewise.
3917 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3918 * xcoffout.c (xcoffout_declare_function): Likewise.
3919
13ac4c84 39202008-06-27 Daniel Berlin <dberlin@dberlin.org>
3921
3922 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3923 ipa-pta working again.
3924
2b3ae3ef 39252008-06-27 David Edelsohn <edelsohn@gnu.org>
3926
3927 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3928 genautomata.
3929
39302008-06-27 Edmar Wienskoski <edmar@freescale.com>
3931
3932 * config.gcc (powerpc*-*-*): Add new core e500mc.
3933 * config/rs6000/e500mc.md: New file.
3934 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3935 e500mc.
3936 (rs6000_override_options): Add e500mc case to
3937 processor_target_table. Altivec and Spe options not allowed
3938 with e500mc. Add isel instruction to e500mc by
3939 default. Initialize rs6000_cost for e500mc.
3940 (rs6000_issue_rate): Set issue rate for e500mc.
3941 * config/rs6000/rs6000.h (processor_type): Add
3942 PROCESSOR_PPCE500MC.
3943 (ASM_CPU_SPEC): Add e500mc.
3944 Set TARGET_ISEL to rs6000_isel.
3945 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3946 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3947 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3948 Include e500mc.md.
3949 * doc/invoke.texi: Add e500mc to list of cpus.
3950
748f1ae5 39512008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3952
3953 PR c/34867
3954 * c-lex.c (lex_charconst): Initialize unsignedp.
3955
db04b5ab 39562008-06-27 Olivier Hainque <hainque@adacore.com>
83402e8d 3957
3958 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3959 documented assumptions.
3960
39c7766b 39612008-06-26 H.J. Lu <hongjiu.lu@intel.com>
3962
3963 * dwarf2out.c: Remove trailing white spaces. Break long line
3964 in comments.
3965
047a7e40 39662008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
3967
3968 * libfuncs.h (LTI_synchronize): New libfunc_index.
3969 (synchronize_libfunc): Declare.
3970 * builtins.c (expand_builtin_synchronize): Consider using
3971 synchronize_libfunc before falling back on an asm blockage.
3972 * config/mips/mips.c: Include libfuncs.h
3973 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3974
9ef25fc1 39752008-06-26 Nathan Froyd <froydnj@codesourcery.com>
3976
3977 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3978 parameter. Copy stack_reg to r11 where appropriate.
3979 (no_global_regs_above): Add gpr parameter.
3980 (rs6000_stack_info): Only add padding for SPE save area if we
3981 are saving SPE GPRs and CR.
3982 (saveres_routine_syms): New variable.
3983 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3984 Define.
3985 (rs6000_savres_routine_sym): New function.
3986 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3987 split out of...
3988 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
3989 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
3990 Tweak FPR out-of-line saving.
3991 (rs6000_make_savres_rtx): New function.
3992 (rs6000_use_multiple_p): New function.
3993 (rs6000_savres_strategy): New function.
3994 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
3995 out-of-line if appropriate.
3996 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3997 if we are optimizing for size.
3998 (GP_SAVE_INLINE): Define.
3999 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
4000 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
4001 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
4002 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
4003 (*save_fpregs_<mode>): Add use of r11.
4004 (*restore_gpregs_<mode>): New insn.
4005 (*return_and_restore_gpregs_<mode>): New insn.
4006 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
4007 use r11.
4008 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
4009 (*restore_gpregs_spe): New insn.
4010 (*return_and_restore_gpregs_spe): New insn.
4011 * config/rs6000/predicates.md (save_world_operation): Fix check.
4012
25ae9ba2 40132008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4014
4015 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
4016 this point, so assert that.
4017
6dae3408 40182008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4019
4020 * cfganal.c: Include vec.h and vecprim.h.
4021 (compute_idf): Import from...
4022 * tree-into-ssa (compute_idf): ...here.
4023 * basic-block.h (compute_idf): Export.
4024
4d6b6a7f 40252008-06-26 Joseph Myers <joseph@codesourcery.com>
4026
4027 * c-decl.c (merge_decls): Use !current_function_decl to check for
4028 extern declaration of C99 inline function being at file scope.
4029
e4e3261b 40302008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
4031
4032 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
4033
364c0c59 40342008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4035
4036 * alias.c (record_alias_subset, init_alias_analysis): Fix
4037 -Wc++-compat and/or -Wcast-qual warnings.
4038 * attribs.c (lookup_attribute_spec): Likewise.
4039 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
4040 copy_bb, connect_traces,
4041 find_rarely_executed_basic_blocks_and_cr): Likewise.
4042 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
4043 note_btr_set, migrate_btr_defs): Likewise.
4044 * builtins.c (result_vector, expand_builtin_memcpy,
4045 expand_builtin_mempcpy_args, expand_builtin_strncpy,
4046 builtin_memset_read_str, expand_builtin_printf,
4047 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
4048 Likewise.
4049 * caller-save.c (mark_set_regs): Likewise.
4050 * calls.c (expand_call, emit_library_call_value_1): Likewise.
4051 * cgraph.c (cgraph_edge): Likewise.
4052 * combine.c (likely_spilled_retval_1): Likewise.
4053 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
4054 htab_counts_entry_del, get_coverage_counts): Likewise.
4055 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
4056 new_cselib_val): Likewise.
4057 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4058 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4059 Likewise.
4060 * df-core.c (df_compact_blocks): Likewise.
4061 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4062 * df-scan.c (df_grow_reg_info, df_ref_create,
4063 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4064 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4065 df_record_entry_block_defs, df_record_exit_block_uses,
4066 df_bb_verify): Likewise.
4067 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4068 DF_REF_EXTRACT_MODE_CONST): New.
4069 * dominance.c (get_immediate_dominator, get_dominated_by,
4070 nearest_common_dominator, root_of_dom_tree,
4071 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4072 -Wc++-compat and/or -Wcast-qual warnings.
4073 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4074 record_store, replace_read, check_mem_read_rtx, scan_insn,
4075 dse_step1, dse_record_singleton_alias_set): Likewise.
4076 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4077
2457c754 40782008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4079
4080 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4081 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4082 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4083 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4084 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4085 add_ranges_num, add_ranges_by_labels, file_info_cmp,
4086 file_name_acquire, output_file_names, add_const_value_attribute,
4087 premark_used_types_helper, file_table_eq, file_table_hash,
4088 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4089 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4090 -Wcast-qual warnings.
4091 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4092 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4093 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4094 gen_reg_rtx, start_sequence, init_emit): Likewise.
4095 * et-forest.c (et_new_occ, et_new_tree): Likewise.
4096 * except.c (init_eh_for_function, gen_eh_region,
4097 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4098 arh_to_landing_pad, arh_to_label, add_action_record,
4099 add_call_site, switch_to_exception_section): Likewise.
4100 * expmed.c (synth_mult): Likewise.
4101 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4102 store_expr): Likewise.
4103 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4104 Likewise.
4105 * function.c (assign_stack_temp_for_type,
4106 allocate_struct_function, match_asm_constraints_1): Likewise.
4107 * gcov-io.c (gcov_allocate): Likewise.
4108 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4109 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4110 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4111 record_one_set, insert_expr_in_table, insert_set_in_table,
4112 dump_hash_table, compute_hash_table_work, alloc_hash_table,
4113 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4114 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4115 -Wcast-qual warnings.
4116
65b198c2 41172008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4118
4119 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4120 -Wcast-qual warnings.
4121 * gcc.c (process_command): Likewise.
4122 * genattrtab.c (oballoc): Use XOBNEW.
4123 (oballocvec): Define.
4124 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4125 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4126 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4127 -Wc++-compat and/or -Wcast-qual warnings.
4128 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4129 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4130 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4131 gen_presence_absence_set, gen_automaton, gen_regexp_el,
4132 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4133 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4134 add_excls, process_presence_absence_names,
4135 process_presence_absence_patterns, add_presence_absence,
4136 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4137 get_free_state, add_arc, get_free_automata_list_el,
4138 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4139 transform_3, cache_presence, create_ainsns, create_automata,
4140 create_state_ainsn_table, dfa_insn_code_enlarge,
4141 output_trans_func, output_min_issue_delay_func,
4142 output_dead_lock_func, output_reset_func,
4143 output_get_cpu_unit_code_func, output_dfa_start_func,
4144 expand_automata): Likewise.
4145 * genextract.c (gen_insn): Likewise.
4146 * gengtype-lex.l: Likewise.
4147 * gengtype.c (read_input_list, adjust_field_type,
4148 process_gc_options): Likewise.
4149 * genoutput.c (note_constraint): Likewise.
4150 * genpreds.c (mangle, add_constraint): Likewise.
4151 * genrecog.c (process_define_predicate, new_decision,
4152 add_to_sequence): Likewise.
4153 * gensupport.c (record_insn_name): Likewise.
4154
4077bf7a 41552008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4156
4157 * config/i386/driver-i386.c (detect_caches_amd,
4158 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4159 and/or -Wcast-qual warnings.
4160 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4161 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4162 gt_pch_save): Likewise.
4163 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4164 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4165 * global.c (compute_regsets): Likewise.
4166 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4167 finish_graph_dump_file): Likewise.
4168 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4169 unlink_bb_notes): Likewise.
4170 * integrate.c (get_hard_reg_initial_val): Likewise.
4171 * ipa-prop.c (ipa_push_func_to_list): Likewise.
4172 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4173 * local-alloc.c (update_equiv_regs): Likewise.
4174 * loop-invariant.c (check_invariant_table_size,
4175 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4176 Likewise.
4177 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4178 altered_reg_used, mark_altered): Likewise.
4179 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4180 insert_var_expansion_initialization,
4181 combine_var_copies_in_loop_exit, apply_opt_in_copies,
4182 release_var_copies): Likewise.
4183 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4184 analyze_matrix_decl, add_allocation_site, analyze_transpose,
4185 analyze_accesses_for_phi_node, check_var_notmodified_p,
4186 check_allocation_function, find_sites_in_func,
4187 record_all_accesses_in_func, transform_access_sites,
4188 transform_allocation_sites): Likewise.
4189 * omp-low.c (new_omp_region, create_omp_child_function_name,
4190 check_omp_nesting_restrictions, check_combined_parallel,
4191 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4192 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4193 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4194 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4195 Likewise.
4196 * opts-common.c (prune_options): Likewise.
4197 * opts.c (add_input_filename, print_filtered_help,
4198 get_option_state): Likewise.
4199 * params.c (add_params): Likewise.
4200 * passes.c (set_pass_for_id, next_pass_1,
4201 do_per_function_toporder, pass_fini_dump_file): Likewise.
4202 * postreload.c (reload_cse_simplify_operands): Likewise.
4203 * predict.c (tree_predicted_by_p, tree_predict_edge,
4204 clear_bb_predictions, combine_predictions_for_bb): Likewise.
4205
f7f3687c 42062008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4207
4208 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4209 warnings.
4210 * recog.c (check_asm_operands, validate_change_1): Likewise.
4211 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4212 subst_asm_stack_regs): Likewise.
4213 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4214 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4215 * regmove.c (reg_is_remote_constant_p): Likewise.
4216 * regrename.c (regrename_optimize, scan_rtx_reg,
4217 kill_clobbered_value, kill_set_value, kill_autoinc_value):
4218 Likewise.
4219 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4220 regstat_compute_calls_crossed): Likewise.
4221 * reload1.c (init_reload, new_insn_chain,
4222 has_nonexceptional_receiver, reload, copy_reloads,
4223 calculate_needs_all_insns, init_elim_table): Likewise.
4224 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4225 * rtl.c (shallow_copy_rtx_stat): Likewise.
4226 * rtlanal.c (parms_set): Likewise.
4227 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4228 sbitmap_resize, sbitmap_vector_alloc): Likewise.
4229 * sched-ebb.c (earliest_block_with_similiar_load,
4230 add_deps_for_risky_insns): Likewise.
4231 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4232 schedule_region): Likewise.
4233 * see.c (eq_descriptor_pre_extension,
4234 hash_descriptor_pre_extension, hash_del_pre_extension,
4235 eq_descriptor_properties, hash_descriptor_properties,
4236 hash_del_properties, see_seek_pre_extension_expr,
4237 see_initialize_data_structures, see_print_register_properties,
4238 see_print_pre_extension_expr, see_delete_merged_def_extension,
4239 see_delete_unmerged_def_extension, see_emit_use_extension,
4240 see_pre_delete_extension, see_map_extension, see_commit_changes,
4241 see_analyze_merged_def_local_prop,
4242 see_analyze_merged_def_local_prop,
4243 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4244 see_set_prop_merged_def, see_set_prop_unmerged_def,
4245 see_set_prop_unmerged_use, see_print_one_extension,
4246 see_merge_one_use_extension, see_merge_one_def_extension,
4247 see_store_reference_and_extension, see_update_uses_relevancy,
4248 see_update_defs_relevancy): Likewise.
4249 * statistics.c (hash_statistics_hash, hash_statistics_eq,
4250 hash_statistics_free, curr_statistics_hash): Likewise.
4251 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4252 expand_asm_operands, expand_return, case_bit_test_cmp,
4253 expand_case): Likewise.
4254 * stor-layout.c (start_record_layout): Likewise.
4255 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4256 gt_pch_save_stringpool): Likewise.
4257 * tree-data-ref.c (hash_stmt_vertex_info,
4258 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4259 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4260
aea30ade 42612008-06-25 Uros Bizjak <ubizjak@gmail.com>
b4b9436b 4262
4263 PR target/36627
4264 * config/i386/i386.md : Change constraints of HImode and QImode
4265 immediate operands from "i" to "n". Change SImode "ni" constraint to
4266 "i" and SImode "rmi" constraint to "g". Remove all constraints
4267 from const0_operand and const1_operand predicated operands.
4268 (i): Change QImode and HImode attribute from "i" to "n".
4269 (*subqi_2): Change HImode operands to QImode.
4270 (*subqi_3): Ditto.
4271
fcbc7faf 42722008-06-25 Olivier Hainque <hainque@adacore.com>
4273
4274 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4275 sed substitutions.
4276
d2864a71 42772008-06-25 Richard Guenther <rguenther@suse.de>
4278
4279 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4280 not overflow the result type.
4281
d2a3be90 42822008-06-25 Richard Guenther <rguenther@suse.de>
4283
4284 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4285 (vn_lookup): Likewise.
4286
9e8a83b4 42872008-06-25 Richard Guenther <rguenther@suse.de>
4288
4289 PR tree-optimization/35518
4290 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4291 * tree-sra.c (instantiate_element): Use fold_build3 to build
4292 BIT_FIELD_REFs.
4293 (try_instantiate_multiple_fields): Likewise.
4294
5fbfd29f 42952008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4296
4297 * config/rs6000/rs6000.md: Change all string instruction's clobber to
4298 be early clobbers.
4299
43d7fb40 43002008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4301
4302 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4303 use_backchain_to_restore_sp to true
4304 if the offset of the link register save area would go over the 32k - 1
4305 offset limit of the load
4306 instructions.
4307
60786093 43082008-06-25 Hans-Peter Nilsson <hp@axis.com>
4309
4310 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4311 anchor for the type-punning blurb. Cross-reference "Structures
4312 unions enumerations and bit-fields implementation". Provide a
4313 cast-through-pointer example. Make final sentence self-contained.
4314 * doc/implement-c.texi (Structures unions enumerations and
4315 bit-fields implementation): Cross-reference the type-punning blurb
4316 in the -fstrict-aliasing documentation.
4317
51adbc8a 43182008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4319
4320 PR middle-end/36594
4321 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4322 the memory instead of the memory itself for the save area.
4323
2ac441f7 43242008-06-24 Olivier Hainque <hainque@adacore.com>
b4b9436b 4325 Nicolas Roche <roche@adacore.com>
2ac441f7 4326
4327 * gengtype.c (srcdir_len): size_t instead of int.
4328 (get_file_realbasename): New function. For F a filename, the real
4329 basename of F, with all the path components stripped.
4330 (get_file_srcdir_relative_path): New function. For F a filename, the
4331 relative path to F from $(srcdir).
4332 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4333 get_file_realbasename. Adjust the head comment.
4334 (get_prefix_langdir_index): New function. For F a filename, return the
4335 lang_dir_names[] relative index of the language directory that is
4336 a prefix in F.
4337 (get_file_langdir): For F a filename, return the name of the language
4338 directory where F is located.
4339 (get_file_gtfilename): New function. The gt- output file name for an
4340 input filename F.
4341 (get_output_file_with_visibility): Replace in-line computations with
4342 uses of get_file_gtfilename and get_prefix_langdir_index.
4343 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4344
5d4305e1 43452008-06-24 Jakub Jelinek <jakub@redhat.com>
4346
4347 PR tree-optimization/36504
4348 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4349 references without base address.
4350
54d759e3 43512008-06-23 Uros Bizjak <ubizjak@gmail.com>
4352
b4b9436b 4353 PR middle-end/36584
54d759e3 4354 * calls.c (expand_call): Increase alignment for recursive functions.
4355
b07c9e91 43562008-06-23 Anatoly Sokolov <aesok@post.ru>
4357
4358 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4359 (TARGET_FUNCTION_VALUE): New define.
4360 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4361 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4362
28bfa791 43632008-06-23 Uros Bizjak <ubizjak@gmail.com>
4364
4365 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4366 (fmod<mode>3): Ditto.
4367 (remainderxf3): Ditto.
4368 (remainder<mode>3): Ditto.
4369
bbdb51da 43702008-06-23 Jakub Jelinek <jakub@redhat.com>
4371
ac56145e 4372 PR target/36533
4373 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4374 REG is a hard register.
4375
bbdb51da 4376 PR tree-optimization/36508
4377 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4378 499, don't check it at all in release compilers.
4379
a4ed2957 43802008-06-23 Uros Bizjak <ubizjak@gmail.com>
4381
4382 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4383 together with SSE_TARGET_MATH to disable insn pattern.
4384 (*fop_<MODEF:mode>_2_i387): Ditto.
4385 (*fop_<MODEF:mode>_3_i387): Ditto.
4386
393d07b1 43872008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
4388
4389 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
14eddddd 4390
1e2bc67f 43912008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4392
4393 PR middle-end/34906
4394 * gimplify.c (gimplify_asm_expr): Check the return code of
4395 parse_output_constraint call, set function return and is_inout
4396 value if it failed.
4397
7d339f93 43982008-06-22 Ian Lance Taylor <iant@google.com>
4399
4400 * c-lex.c (narrowest_unsigned_type): Change itk to int.
4401 (narrowest_signed_type): Likewise.
4402 * c-typeck.c (c_common_type): Change local variable mclass to enum
4403 mode_class, twice.
4404 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4405 tcc_comparison, not the tree code itself.
4406 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4407 (c_expand_expr): Cast modifier to enum expand_modifier.
4408 * c-common.h (C_RID_CODE): Add casts.
4409 (C_SET_RID_CODE): Define.
4410 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4411 (c_lex_one_token): Add cast to avoid warning.
4412 (c_parser_objc_type_name): Rename local typename to type_name.
4413 (check_no_duplicate_clause): Change code parameter to enum
4414 omp_clause_code.
4415 (c_parser_omp_var_list_parens): Change kind parameter to enum
4416 omp_clause_code.
4417 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4418 c_parser_omp_list_var_parens.
4419 (c_parser_omp_threadprivate): Likewise.
4420 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4421 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4422 * c-format.c (NO_FMT): Define.
4423 (printf_length_specs): Use NO_FMT.
4424 (asm_fprintf_length_specs): Likewise.
4425 (gcc_diag_length_specs): Likewise.
4426 (scanf_length_specs): Likewise.
4427 (strfmon_length_specs): Likewise.
4428 (gcc_gfc_length_specs): Likewise.
4429 (printf_flag_specs): Change 0 to STD_C89.
4430 (asm_fprintf_flag_specs): Likewise.
4431 (gcc_diag_flag_specs): Likewise.
4432 (gcc_cxxdiag_flag_specs): Likewise.
4433 (scanf_flag_specs): Likewise.
4434 (strftime_flag_specs): Likewise.
4435 (strfmon_flag_specs): Likewise.
4436 (print_char_table): Likewise.
4437 (asm_fprintf_char_table): Likewise.
4438 (gcc_diag_char_table): Likewise.
4439 (gcc_tdiag_char_table): Likewise.
4440 (gcc_cdiag_char_table): Likewise.
4441 (gcc_cxxdiag_char_table): Likewise.
4442 (gcc_gfc_char_table): Likewise.
4443 (scan_char_table): Likewise.
4444 (time_char_table): Likewis.
4445 (monetary_char_table): Likewise.
4446 * c-format.h (BADLEN): Likewise.
4447
e014fc6a 44482008-06-21 Ian Lance Taylor <iant@google.com>
4449
4450 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4451 Define END_OF_BASE_TREE_CODES around inclusion.
4452 * tree.c (tree_code_type): New global array.
4453 (tree_code_length, tree_code_name): Likewise.
4454 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4455 $(lang_tree_files).
4456 (all-tree.def, s-alltree): New targets.
4457 (gencheck.h, s-gencheck): Remove.
4458 (tree.o): Depend upon all-tree.def.
4459 (build/gencheck.o): Remove gencheck.h dependency.
4460 (mostlyclean): Don't remove gencheck.h.
4461 * c-common.h (enum c_tree_code): Remove.
4462 * c-lang.c (tree_code_type): Remove.
4463 (tree_code_length, tree_code_name): Remove.
4464 * gencheck.c (tree_codes): Include all-tree.def, rather than
4465 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
4466 after it is used.
4467 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4468 than tree.def.
4469 * cp/cp-tree.h (enum cplus_tree_code): Remove.
4470 (operator_name_info): Size to MAX_TREE_CODES.
4471 (assignment_operator_name_info): Likewise.
4472 * cp/cp-lang.c (tree_code_type): Remove.
4473 (tree_code_length, tree_code_name): Remove.
4474 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4475 (assignment_operator_name_info): Likewise.
4476 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4477 MAX_TREE_CODES.
4478 * cp/mangle.c (write_expression): Likewise.
4479 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4480 * fortran/f95-lang.c (tree_code_type): Remove.
4481 (tree_code_length, tree_code_name): Remove.
4482 * java/java-tree.h (enum java_tree_code): Remove.
4483 * java/lang.c (tree_code_type): Remove.
4484 (tree_code_length, tree_code_name): Remove.
4485 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4486 * objc/objc-act.h (enum objc_tree_code): Remove.
4487 * objc/objc-lang.c (tree_code_type): Remove.
4488 (tree_code_length, tree_code_name): Remove.
4489 * objcp/objcp-lang.c (tree_code_type): Remove.
4490 (tree_code_length, tree_code_name): Remove.
4491 * ada/ada-tree.h (enum gnat_tree_code): Remove.
4492 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4493 * ada/misc.c (tree_code_type): Remove.
4494 (tree_code_length, tree_code_name): Remove.
4495
bcd373f7 44962008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
4497
4498 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4499 the grand_bitmap_obstack.
4500
45ba1503 45012008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4502
4503 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4504 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
54d759e3 4505 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
45ba1503 4506 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4507 move_stmt_r, new_label_mapper): Likewise.
4508 * tree-complex.c (cvc_lookup): Likewise.
4509 * tree-dfa.c (create_function_ann): Likewise.
4510 * tree-dump.c (dump_register): Likewise.
4511 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4512 find_phi_replacement_condition): Likewise.
4513 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4514 tree_function_versioning): Likewise.
4515 * tree-into-ssa.c (cmp_dfsnum): Likewise.
4516 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4517 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4518 get_nonlocal_debug_decl, convert_nonlocal_reference,
4519 convert_nonlocal_omp_clauses, get_local_debug_decl,
4520 convert_local_reference, convert_local_omp_clauses,
4521 convert_nl_goto_reference, convert_nl_goto_receiver,
4522 convert_tramp_reference, convert_call_expr): Likewise.
4523 * tree-outof-ssa.c (contains_tree_r): Likewise.
4524 * tree-parloops.c (reduction_phi, initialize_reductions,
4525 eliminate_local_variables_1, add_field_for_reduction,
4526 add_field_for_name, create_phi_for_local_result,
4527 create_call_for_reduction_1, create_loads_for_reductions,
4528 create_stores_for_reduction, create_loads_and_stores_for_name):
4529 Likewise.
4530 * tree-phinodes.c (allocate_phi_node): Likewise.
a4ed2957 4531 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4532 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
45ba1503 4533 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4534 * tree-ssa-coalesce.c (compare_pairs): Likewise.
4535 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4536 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4537 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
14eddddd 4538 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
45ba1503 4539 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4540 vn_nary_op_insert): Likewise.
4541 * tree-ssa.c (redirect_edge_var_map_add,
4542 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4543 * tree-vectorizer.c (vectorize_loops): Likewise.
4544 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4545 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4546 tree_cons_stat, build1_stat, build_variant_type_copy,
4547 decl_init_priority_lookup, decl_fini_priority_lookup,
4548 decl_priority_info, decl_restrict_base_lookup,
4549 decl_restrict_base_insert, decl_debug_expr_lookup,
4550 decl_debug_expr_insert, decl_value_expr_lookup,
4551 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4552 type_hash_add, get_file_function_name, tree_check_failed,
4553 tree_not_check_failed, tree_range_check_failed,
4554 omp_clause_range_check_failed, build_omp_clause,
4555 build_vl_exp_stat): Likewise.
4556 * value-prof.c (gimple_histogram_value,
4557 gimple_duplicate_stmt_histograms): Likewise.
4558 * var-tracking.c (attrs_list_insert, attrs_list_copy,
4559 unshare_variable, variable_union_info_cmp_pos, variable_union,
4560 dataflow_set_different_1, dataflow_set_different_2,
4561 vt_find_locations, variable_was_changed, set_variable_part,
a4ed2957 4562 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
45ba1503 4563 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4564 section_entry_hash, object_block_entry_eq,
4565 object_block_entry_hash, create_block_symbol,
4566 initialize_cold_section_name, default_function_rodata_section,
4567 strip_reg_name, set_user_assembler_name, const_desc_eq,
4568 build_constant_desc, output_constant_def, lookup_constant_def,
4569 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4570 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4571 default_internal_label): Likewise.
4572 * varray.c (varray_init, varray_grow): Likewise.
4573 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4574
439f71d5 45752008-06-20 Uros Bizjak <ubizjak@gmail.com>
4576
4577 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4578 operators for "test" insn. Macroize insn using SWI mode macro.
4579 (*jcc_fused_2): Ditto.
4580 (*jcc_fused_3): Macroize insn using SWI mode macro.
4581 (*jcc_fused_4): Ditto.
4582
08b9f3f2 45832008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
4584
439f71d5 4585 * tree-ssa-pre.c: Fix typo in comment.
4586 (init_antic, fini_antic): Add explicit funtions for
4587 initializing and deinitializing ANTIC and AVAIL sets.
4588 (create_expression_by_pieces): Fix typo in comment.
4589 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4590 (execute_pre): Eventually dump details about ANTIC_IN.
08b9f3f2 4591
25a1c410 45922008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4593
4594 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4595 * gcc.c (translate_options, init_spec, store_arg, read_specs,
4596 add_to_obstack, file_at_path, find_a_file, execute,
4597 add_preprocessor_option, add_assembler_option, add_linker_option,
4598 process_command, insert_wrapper, do_option_spec, do_self_spec,
4599 spec_path, do_spec_1, is_directory, main, used_arg,
4600 getenv_spec_function): Likewise.
4601 * tlink.c (symbol_hash_lookup, file_hash_lookup,
4602 demangled_hash_lookup, symbol_push, file_push, frob_extension):
4603 Likewise.
4604
14c9ac55 46052008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
4606
4607 * doc/rtl.texi: Updated subreg section.
08b9f3f2 4608
f6430caa 46092008-06-19 Jakub Jelinek <jakub@redhat.com>
4610
4611 PR c++/36523
4612 * cgraphunit.c (cgraph_process_new_functions): Don't clear
4613 node->needed and node->reachable.
4614 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4615 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4616 (expand_task_call): Don't call expand_task_copyfn.
4617 (expand_task_copyfn): Renamed to...
4618 (finalize_task_copyfn): ... this.
4619
6d3124f6 46202008-06-19 Jan Hubicka <jh@suse.cz>
4621
4622 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4623 clobbering framepointer.
4624
f366e311 46252008-06-19 Jan Hubicka <jh@suse.cz>
4626
4627 * tree-optimize.c (execute_early_local_optimizations): Set
4628 cgraph_state only at first invocation.
4629
453ca61e 46302008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4631
4632 * system.h (-Wc++-compat): Activate as a warning, no an error.
4633
21991e41 46342008-06-19 Uros Bizjak <ubizjak@gmail.com>
4635
4636 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4637 instead of "#" in insn asm template.
4638 (*jcc_fused_2): Ditto.
4639
7d709e5f 46402008-06-19 Uros Bizjak <ubizjak@gmail.com>
4641
4642 * config/i386/i386.h (ix86_tune_indices)
4643 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4644 (TARGET_FUSE_CMP_AND_BRANCH): New define.
4645 * config/i386/i386.md (*jcc_fused_1): New insn pattern
4646 (*jcc_fused_2): Ditto.
4647 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
21991e41 4648 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
7d709e5f 4649 (print operand): Handle 'E' and 'e' code.
4650
f0fcebc8 46512008-06-19 Anatoly Sokolov <aesok@post.ru>
4652
4653 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4654 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4655 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4656
c04e3894 46572008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
4658
4659 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4660 node->decl.
4661 (cgraph_expand_function): Use local copy of decl.
4662 (cgraph_expand_all_functions): Remove redundant initialization of
4663 order_pos.
4664 (cgraph_optimize): Reword internal_error message.
4665
46662008-06-19 Chung-Lin Tang <ctang@marvell.com>
4e86c60d 4667
4668 * arm-protos.h (arm_return_in_memory): Remove public
4669 arm_return_in_memory() prototype.
4670 * arm.c (arm_return_in_memory): Add static prototype, add target
4671 hook macro, change definition and comments.
4672 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4673
6be7e425 46742008-06-19 Ben Elliston <bje@au.ibm.com>
4675
4676 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4677 real.c: Remove references to IEEE 754R.
4678 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4679 * doc/libgcc.texi (Decimal float library routines): Likewise.
4680
1bd43494 46812008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4682
4683 * targhooks.h (struct gcc_target): New member unwind_word_mode.
4684 (default_unwind_word_mode): Add prototype.
4685 * targhooks.c (default_unwind_word_mode): New function.
4686 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4687 instead of word_mode.
4688 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4689 (TARGET_INITIALIZER): Use it.
4690
4691 * c-common.c (handle_mode_attribute): Support "unwind_word"
4692 mode attribute.
4693 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4694
4695 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4696 word_mode to access SjLj_Function_Context member "data".
4697 (sjlj_emit_dispatch_table): Likewise. Also, perform type
4698 conversion from targetm.eh_return_filter_mode () to
4699 targetm.unwind_word_mode () if they differ.
4700
4701 * builtin-types.def (BT_UNWINDWORD): New primitive type.
4702 (BT_FN_UNWINDWORD_PTR): New function type.
4703 (BT_FN_WORD_PTR): Remove.
4704 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4705 * except.c (expand_builtin_extend_pointer): Convert pointer to
4706 targetm.unwind_word_mode () instead of word_mode.
4707
4708 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4709 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4710 (spu_unwind_word_mode): New function.
4711 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4712 (TARGET_UNWIND_WORD_MODE): Define.
4713 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4714
aa71ecd4 47152008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4716
4717 * config/spu/spu.c (reg_align): Remove.
4718 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4719 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4720 (spu_split_store): Likewise.
4721
c04e3894 47222008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
95d2f3cc 4723
4724 * gcc/tree-vn.c: Fix typo in comment.
4725
070eb4db 47262008-06-18 Jan Hubicka <jh@suse.cz>
4727
4728 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4729 toplevel reorder too.
4730
11d1b809 47312008-06-18 Jan Hubicka <jh@suse.cz>
4732
4733 * c-opts.c (c_common_post_options): PCH is not compatible with
4734 no-unit-at-a-time.
4735 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4736 -fno-toplevel-reorder by default now.
4737
2489ab9d 47382008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4739
4740 PR documentation/30739
4741 * doc/install.texi (Prerequisites): Document dependency on awk.
4742
3b10edae 47432008-06-18 Uros Bizjak <ubizjak@gmail.com>
4744 Ian Lance Taylor <iant@google.com>
4745
4746 PR rtl-optimization/35604
4747 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4748 only want to change jump destinations, not eventual label comparisons.
4749
27c9bdfe 47502008-06-16 Jan Hubicka <jh@suse.cz>
4751
4752 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4753 syntax errors.
4754 (cgraph_analyze_function): Likewise.
4755
0da03d11 47562008-06-16 Jan Hubicka <jh@suse.cz>
4757
4758 * cgraph.h (cgraph_mark_if_needed): New function.
4759 * cgraphunit.c (cgraph_mark_if_needed): New function.
4760 * c-decl.c (duplicate_decl): Use it.
4761
44ffce27 47622008-06-16 Jan Hubicka <jh@suse.cz>
4763
4764 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4765 lowering.
4766
81a0bd53 47672008-06-16 Jan Hubicka <jh@suse.cz>
4768
4769 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4770
69f36814 47712008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
4772 Kazu Hirata <kazu@codesourcery.com>
4773 Maxim Kuvyrkov <maxim@codesourcery.com
4774
4775 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4776 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4777 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4778 EXTRA_SPEC_FUNCTIONS.
4779 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4780 (DRIVER_SELF_SPECS): Adjust.
4781 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4782 * config/mips/st.h, config/mips/t-st: New.
4783 * config/mips/driver-native.c, config/mips/x-native: New.
4784 * doc/invoke.texi (MIPS): Document 'native' value for -march and
4785 -mtune options.
4786
d598f4ff 47872008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4788
4789 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4790 from it.
4791 (ISA_HAS_FP_CONDMOVE): New macro.
4792 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4793 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4794 (ISA_HAS_NMADD3_NMSUB3): New macro.
4795 * config/mips/mips.c (mips_rtx_costs): Update.
4796 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4797 compiling for ST Loongson 2E/2F.
4798 (madd<mode>): Rename to madd4<mode>. Update.
4799 (madd3<mode>): New pattern.
4800 (msub<mode>): Rename to msub4<mode>. Update.
4801 (msub3<mode>): New pattern.
4802 (nmadd<mode>): Rename to nmadd4<mode>. Update.
4803 (nmadd3<mode>): New pattern.
4804 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
4805 (nmadd3<mode>_fastmath): New pattern.
4806 (nmsub<mode>): Rename to nmsub4<mode>. Update.
4807 (nmsub3<mode>): New pattern.
4808 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
4809 (nmsub3<mode>_fastmath): New pattern.
4810 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4811
158b6cc9 48122008-06-18 Steven Bosscher <steven@gcc.gnu.org>
4813
4814 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4815 (DF_REF_INSN_INFO): New.
4816 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4817 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4818 with a NULL DF_REF_INSN_INFO.
4819 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4820 DF_INSN_SET.
4821 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4822 DF_INSN_INFO_EQ_USES): New.
4823 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4824 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4825 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4826 * df-core.c: Update comment for above changes.
4827 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4828 DF_INSN_UID_* macros.
4829 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4830 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4831 insn rtx. Update all callers.
4832 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4833 df_ref_create_structure, df_insn_refs_collect): Likewise.
4834 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4835 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4836 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4837 macros to access the insn refs.
4838 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4839 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4840 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4841 for accessing the refs.
4842 (try_fwprop_subst): Likewise.
4843 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4844 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4845 for accessing the refs.
4846 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4847 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4848 to look at the insn refs.
4849 (record_uses): Likewise.
4850 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4851 function anymore.
4852 (mark_artificial_uses): Don't mark_insn for artificial refs.
4853 (mark_reg_rependencies): Likewise.
4854
4855 * doc/rtl.texi: Remove documentation of ADDRESSOF.
4856
5b2c7553 48572008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4858
4859 * configure: Regenerate.
4860
996f916d 48612008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4862
4863 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
14eddddd 4864 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4865 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
996f916d 4866
03468e21 48672008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4868
4869 * config/avr/avr.c (avr_mcu_t): Add attiny167.
14eddddd 4870 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4871 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
03468e21 4872
12d142e2 48732008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4874
4875 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
14eddddd 4876 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4877 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12d142e2 4878
8f4173dc 48792008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4880
4881 * tree-ssa-sccvn.c: Fix format of comments.
4882
48832008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
94206a66 4884
4885 * cgraph.c: Remove unneeded forward declarations of eq_node()
4886 and hash_node().
4887
1e5b92fa 48882008-06-17 Steven Bosscher <steven@gcc.gnu.org>
4889
4890 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4891 REG_RETVAL notes.
4892 (see_update_relevancy): Likewise.
4893 * fwprop.c (try_fwprop_subst): Likewise.
4894 * rtlanal.c (noop_move_p): Likewise.
4895 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4896 notes to non-existing libcall blocks.
4897 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
4898 Remove orig_set.
4899 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4900 (dead_libcall_p): Remove.
4901 (delete_trivially_dead_insns): Don't use it.
4902 * web.c (union_defs): Remove comment about keeping nops.
4903 * gcse.c (hash_scan_insn): Don't take libcall pointers.
4904 (compute_hash_table_work): Don't track libcall notes.
4905 (do_local_cprop): Don't take libcall pointers. Don't update
4906 libcall notes.
4907 (adjust_libcall_notes): Deleted.
4908 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4909 ever have existed in the first place).
4910 (replace_store_insn): Don't try to remove libcall notes.
4911 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4912 (resolve_reg_notes): Don't call them.
4913 (resolve_simple_move): Likewise.
4914 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4915 Don't remove REG_RETVAL notes.
4916 * emit-rtl.c (try_split): Don't update libcall notes.
4917 (emit_copy_of_insn_after): Dito.
4918 * cselib.c (cselib_current_insn_in_libcall): Remove.
4919 (cselib_process_insn): Don't set/clear it.
4920 (new_elt_loc_list): Don't record it.
4921 (cselib_init): Don't initialize it.
4922 * cselib.c (struct elt_loc_list): Remove in_libcall field.
4923 * loop-invariant.c (find_invariant_insn): Don't look for libcall
4924 notes.
4925 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4926 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4927 (init_deps): Don't initialize it.
4928 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4929 * combine.c (delete_noop_moves): Don't update libcall notes.
4930 (can_combine_p): Remove now pointless #if 0 block.
4931 (try_combine): Remove another obsolete #if 0 block.
4932 (distribute_notes): Don't distribute libcall notes.
4933 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4934 * dce.c (libcall_dead_p): Remove.
4935 (delete_unmarked_insns): Don't handle libcall blocks.
4936 (preserve_libcall_for_dce): Remove.
4937 (prescan_insns_for_dce): Don't special-case libcall block insns.
14eddddd 4938 * reload1 (reload): Don't handle libcall notes.
1e5b92fa 4939 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4940 documentation.
4941
0c4e93a2 49422008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4943
4944 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4945 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4946 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4947
45a559b0 49482008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4949
4950 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4951 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
14eddddd 4952 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
45a559b0 4953
b9de6413 49542008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4955
4956 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4957
cd5987b1 49582008-06-16 Ira Rosen <irar@il.ibm.com>
4959
4960 PR tree-optimization/36493
4961 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4962 the arguments list. Use VECTYPE to create vector pointer.
4963 (vectorizable_store): Fail if accesses through a pointer to vectype
4964 do not alias the original memory reference operands.
4965 Call vect_create_data_ref_ptr without the removed argument.
4966 (vectorizable_load): Likewise.
4967 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4968 removed argument.
4969
73de90a3 49702008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
4971
4972 PR target/36336
14eddddd 4973 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
73de90a3 4974 reg_equiv_constant.
4975
dc5599bf 49762008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4977
4978 * config/mips/loongson2ef.md: New file.
4979 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4980 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4981 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4982 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4983 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4984 and loongson_2f.
4985 (loongson2ef.md): New include.
4986 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4987 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4988 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4989 (loongson_gt_<mode>, loongson_extract_halfword)
4990 (loongson_insert_halfword_0, loongson_insert_halfword_2)
4991 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4992 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4993 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4994 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4995 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4996 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4997 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4998 (vec_interleave_low<mode>): Define type attribute.
4999 * config/mips/mips.c (mips_ls2): New static variable.
5000 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
5001 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
5002 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
5003 Implement target scheduling hooks.
5004 (mips_multipass_dfa_lookahead): Update to handle tuning for
5005 Loongson 2E/2F.
5006 (mips_sched_init): Initialize data for Loongson scheduling.
5007 (mips_ls2_variable_issue): New static function.
5008 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
5009 Add sanity check.
5010 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
5011 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
5012 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
5013 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
5014 Handle ST Loongson 2E/2F cores.
5015 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
5016
bde357c8 50172008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5018
5019 * omp-low.c (extract_omp_for_data): Fix comment typo.
5020 * c.opt: Fix typo.
5021
c24c5fac 50222008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5023
5024 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
5025 FIXME note about gcc/config.guess.
5026 * doc/options.texi (Option file format): Remove non-ASCII bytes.
5027 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
5028 * doc/cppopts.texi: Likewise.
5029 * doc/extend.texi: Likewise.
5030 * doc/gcc.texi: Likewise.
5031 * doc/gccint.texi: Likewise.
5032 * doc/gcov.texi: Likewise.
5033 * doc/gty.texi: Likewise.
5034 * doc/hostconfig.texi: Likewise.
5035 * doc/install.texi: Likewise.
5036 * doc/invoke.texi: Likewise.
5037 * doc/loop.texi: Likewise.
5038 * doc/makefile.texi: Likewise.
5039 * doc/md.texi: Likewise.
5040 * doc/passes.texi: Likewise.
5041 * doc/tm.texi: Likewise.
5042 * doc/tree-ssa.texi: Likewise.
5043 * doc/trouble.texi: Likewise.
5044
9636921b 50452008-06-15 Mark Shinwell <shinwell@codesourcery.com>
5046 Nathan Sidwell <nathan@codesourcery.com>
5047 Maxim Kuvyrkov <maxim@codesourcery.com>
5048 Richard Sandiford <rdsandiford@googlemail.com>
14eddddd 5049
9636921b 5050 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
5051 * config/mips/mips-protos.h (mips_expand_vector_init): New.
5052 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
5053 builtins.
5054 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
5055 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
5056 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5057 V8QImode cases.
5058 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5059 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5060 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5061 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5062 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5063 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5064 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5065 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5066 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5067 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5068 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5069 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5070 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5071 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5072 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5073 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5074 (mips_builtins): Add Loongson builtins.
5075 (mips_loongson_2ef_bdesc): New.
5076 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5077 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5078 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5079 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5080 New.
5081 (mips_expand_vector_init): New.
5082 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5083 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5084 if appropriate.
5085 * config/mips/mips.md: Add unspec numbers for Loongson
5086 builtins. Include loongson.md.
5087 (MOVE64): Include Loongson vector modes.
5088 (SPLITF): Include Loongson vector modes.
5089 (HALFMODE): Handle Loongson vector modes.
5090 * config/mips/loongson.md: New.
5091 * config/mips/loongson.h: New.
5092 * config.gcc: Add loongson.h header for mips*-*-* targets.
5093 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5094
10e9fb7b 50952008-06-14 Joseph Myers <joseph@codesourcery.com>
5096
5097 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5098 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5099 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5100 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5101 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5102 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5103 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5104 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5105 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5106 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5107 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5108 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5109 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5110 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5111 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5112 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5113 Remove use_fixproto=yes.
5114 (ia64*-*-hpux*): Remove comment about using fixproto.
5115 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5116
71a71532 51172008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5118
5119 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5120 library rebuilds.
5121 * configure: Regenerate.
5122
b2f0b2a3 51232008-06-13 Eric Botcazou <ebotcazou@adacore.com>
5124
5125 PR middle-end/36520
5126 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5127 before evaluating it.
5128
56f06eef 51292008-06-13 Jakub Jelinek <jakub@redhat.com>
5130
5131 PR c/36507
5132 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5133 nested inline functions.
5134 (start_decl, start_function): Don't invert DECL_EXTERNAL
5135 for nested inline functions.
5136
6b8ae4a5 51372008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5138
5139 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5140 splits that must be made for correctness.
5141
a7e9ba74 51422008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5143
5144 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5145 (AVAIL_NON_MIPS16): Likewise.
5146 (mips_builtin_description): Replace target_flags with a predicate.
5147 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5148 (dspr2_32): New availability predicates.
5149 (MIPS_BUILTIN): New macro.
5150 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5151 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5152 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5153 Replace the TARGET_FLAGS parameters with AVAIL parameters.
5154 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5155 (mips_dsp_32only_bdesc): Merge into...
5156 (mips_builtins): ...this new array.
5157 (mips_bdesc_map, mips_bdesc_arrays): Delete.
5158 (mips_init_builtins): Update after above changes.
5159 (mips_expand_builtin_1): Merge into...
5160 (mips_expand_builtin): ...here and update after above changes.
5161
ee16bf96 51622008-06-12 Paul Brook <paul@codesourcery.com>
5163
5164 * longlong.h (__arm__): Define count_leading_zeros.
5165 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5166 (clzsi2, clzdi2): New functions.
5167 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5168 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5169 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5170 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5171 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5172 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5173 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5174 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5175 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5176 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5177
53457e36 51782008-06-12 Kazu Hirata <kazu@codesourcery.com>
5179
5180 * config/m68k/m68k.c (m68k_tune_flags): New.
5181 (override_options): Compute m68k_tune_flags.
5182 (MULL_COST, MULW_COST): Update for various variants of CFV2.
5183 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5184
6d5a0fbe 51852008-06-12 Jakub Jelinek <jakub@redhat.com>
5186
5187 PR middle-end/36506
3b10edae 5188 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
6d5a0fbe 5189
74cbc691 51902008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5191
5192 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5193 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5194
3bfa8ada 51952008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5196
5197 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5198 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5199
9884aaf8 52002008-06-12 Jakub Jelinek <jakub@redhat.com>
5201
5202 PR middle-end/36506
5203 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5204 reductions.
5205
c7b79592 52062008-06-12 Richard Guenther <rguenther@suse.de>
5207
5208 PR tree-optimization/36345
5209 * tree-flow.h (struct ptr_info_def): Align escape_mask,
5210 add memory_tag_needed flag.
5211 (may_alias_p): Declare.
5212 * tree-ssa-alias.c (may_alias_p): Export.
5213 (set_initial_properties): Use memory_tag_needed flag.
5214 (update_reference_counts): Likewise.
5215 (reset_alias_info): Reset memory_tag_needed flag.
5216 (create_name_tags): Check memory_tag_needed flag.
5217 (dump_points_to_info_for): Dump it.
5218 * tree-ssa-structalias.c (struct variable_info): Remove
5219 directly_dereferenced flag.
5220 (new_var_info): Do not initialize it.
5221 (process_constraint_1): Do not set it.
5222 (update_alias_info): Set is_dereferenced flag.
5223 (set_uids_in_ptset): Use may_alias_p.
5224 (set_used_smts): Check memory_tag_needed flag.
5225 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
5226 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5227 memory_tag_needed flag.
5228 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5229 from broken design.
5230
22ba0b7d 52312008-06-12 Kai Tietz <kai.tietz@onevision.com>
5232
3b10edae 5233 * config/i386/i386.c (ix86_compute_frame_layout): Disable
5234 red zone for w64 abi.
22ba0b7d 5235 (ix86_expand_prologue): Likewise.
5236 (ix86_force_to_memory): Likewise.
5237 (ix86_free_from_memory): Likewise.
5238
4269e853 52392008-06-11 Edmar Wienskoski <edmar@freescale.com>
5240
5241 PR target/36425
5242 * config/rs6000/rs6000.c (rs6000_override_options): Set
3b10edae 5243 rs6000_isel conditionally to the absence of comand line override.
4269e853 5244 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5245 Remove duplicate rs6000_isel setting.
5246 * config/rs6000/eabispe.h: Ditto.
5247
62d823d0 52482008-06-11 Richard Guenther <rguenther@suse.de>
5249
5250 * alias.c (get_alias_set): Use the element alias-set for arrays.
5251 (record_component_aliases): For arrays and vectors do nothing.
5252 * c-common.c (strict_aliasing_warning): Handle the cases
5253 of alias set zero explicitly.
5254 * Makefile.in (dfp.o-warn): Add -Wno-error.
5255
f067c6b7 52562008-06-11 Joseph Myers <joseph@codesourcery.com>
5257
5258 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5259 tune_32 tune_64.
5260 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5261 tune_32 tune_64 to supported_defaults. Allow values not
5262 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5263 x86_64. Do not override cpu_32 or cpu_64 values from target name.
5264 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5265 with_cpu_64 to generic for 64-bit-supporting configurations, not
5266 with_cpu. Remove FIXMEs.
5267 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5268 --with-arch-64, --with-tune-32, --with-tune-64): Document.
5269 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5270 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5271 arch_32 and arch_64.
5272
6933ebec 52732008-06-11 Eric Botcazou <ebotcazou@adacore.com>
3b10edae 5274 Olivier Hainque <hainque@adacore.com>
6933ebec 5275
5276 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5277 Use DECL_SIZE_UNIT to retrieve the size of the field.
5278
2359dba8 52792008-06-11 Joseph Myers <joseph@codesourcery.com>
5280
5281 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5282 with function calls after declarations. Lay out
5283 neon_float_type_node before further use.
5284
2fd0b5dc 52852008-06-11 Richard Guenther <rguenther@suse.de>
5286
5287 * tree-flow.h (may_point_to_global_var): Declare.
5288 * tree-ssa-alias.c (may_point_to_global_var): New function.
5289 * tree-ssa-sink.c (is_hidden_global_store): Use it.
5290
2f42448a 52912008-06-10 Kazu Hirata <kazu@codesourcery.com>
5292
5293 * configure.ac: Teach that fido supports .debug_line.
5294 * configure: Regenerate.
5295
35df0168 52962008-06-10 Tom Tromey <tromey@redhat.com>
5297
5298 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5299 debug hook.
5300
4d6f3aad 53012008-06-10 Joseph Myers <joseph@codesourcery.com>
5302
5303 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5304 (encode_decimal64, decode_decimal64, encode_decimal128,
5305 decode_decimal128): Reverse order of 32-bit parts of value if host
5306 and target endianness differ.
5307
5b17b7ae 53082008-06-10 Vinodha Ramasamy <vinodha@google.com>
3b10edae 5309
5310 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5b17b7ae 5311 Avoid division by 0.
5312 (tree_mod_pow2_value_transform): Likewise.
5313 (tree_ic_transform): Likewise.
5314 (tree_stringops_transform): Likewise.
5315 (tree_mod_subtract_transform): Likewise.
5316 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5317 (copy_edges_for_bb): Likewise.
5318 (initialize_cfun): Likewise.
5319
839b1bd1 53202008-06-10 Uros Bizjak <ubizjak@gmail.com>
5321
5322 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5323 nonmemory_operand. Add "N" operand constraint.
5324 (*btsi): Ditto.
5325 (*jcc_btdi_mask_rex64): New instruction and split pattern.
5326 (*jcc_btsi_mask): Ditto.
5327 (*jcc_btsi_mask_1): Ditto.
5328
aec85d50 53292008-06-10 Joseph Myers <joseph@codesourcery.com>
5330
5331 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5332 TYPE_CANONICAL for copied element type.
5333
c9021e73 53342008-06-10 Uros Bizjak <ubizjak@gmail.com>
5335
5336 PR target/36473
5337 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5338 Add m_CORE2 and m_GENERIC.
5339 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5340 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5341 (*btsi): Ditto.
5342 (*jcc_btdi_rex64): New instruction and split pattern.
5343 (*jcc_btsi): Ditto.
5344 (*jcc_btsi_1): Ditto.
5345 (*btsq): Fix Intel asm dialect operand order.
5346 (*btrq): Ditto.
5347 (*btcq): Ditto.
5348
248c3e88 53492008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5350
5351 PR middle-end/36447
14eddddd 5352 * simplify-rtx.c (simplify_subreg): Add check for shift count
248c3e88 5353 greater than size.
5354
208414ec 53552008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5356
5357 * doc/md.texi: Synchronize with later constraints.md change.
5358 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5359 with a C implementation.
5360 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5361 MFLO handling.
5362 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5363 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5364 when moving to and from MD_REGNUM.
5365 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5366 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5367 Handle byte and halfword moves.
5368 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5369 separately.
5370 * config/mips/constraints.md (h): Turn into NO_REGS.
5371 (l, x): Update documentation.
5372 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5373 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5374 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5375 (HILO): New mode iterator.
5376 (MOVE128): Add TI.
5377 (any_div): New code iterator.
5378 (u): Extend code attribute to div and udiv.
5379 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5380 d_operand in the splitters. Remove redundant CONST_INT checks.
5381 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5382 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5383 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5384 accordingly, using normal moves instead of unspecs to move LO into
5385 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5386 (<u>mulsidi3): Handle expansion in C code.
5387 (<u>mulsidi3_32bit_internal): Rename to...
5388 (<u>mulsidi3_32bit): ...this.
5389 (<u>mulsidi3_32bit_r4000): Fix insn separator.
5390 (*<u>mulsidi3_64bit): Rename to...
5391 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
5392 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
5393 to set LO and HI to the multiplication result. Use a normal move
5394 for MFLO and an unspec for MFHI.
5395 (*<u>mulsidi3_64bit_parts): Replace with...
5396 (<u>mulsidi3_64bit_hilo): ...this new instruction.
5397 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5398 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5399 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
5400 instead of HI. Split the instruction into a separate multiplication
5401 and MFHI if !TARGET_FIX_R4000.
5402 (<su>muldi3_highpart): Likewise.
5403 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5404 and the "=h" clobber.
5405 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5406 (<u>mulditi3): New expander.
5407 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5408 (madsi): Remove "=h" clobber.
5409 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5410 Force the modulus result to be a GPR and split the instruction into
5411 a division followed by an MFHI after reload.
5412 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5413 (*lea_high64): Use d_operand in the define_peephole2. Likewise
5414 the MIPS16 HIGH define_split.
5415 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5416 of acc<->gpr moves to "multi".
5417 (*movdi_64bit): Replace the single "x" alternative with
5418 alternatives for moving into and out of "a".
5419 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
5420 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5421 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5422 Use d_operand in the splitters. Remove redundant CONST_INT checks.
5423 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
5424 (movti): New expander.
5425 (*movti, *movti_mips16): New insns.
5426 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5427 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5428 (mthi<GPR:mode>_<HILO:mode>): Likewise.
5429 * config/mips/predicates.md (fpr_operand): Delete.
5430 (d_operand): New predicate.
5431
43da04c5 54322008-06-09 Michael Meissner <michael.meissner@amd.com>
5433
5434 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5435 failure on some Bourne shells.
5436 (x86_64-*-*): Ditto.
5437
ccabcb22 54382008-06-09 Kai Tietz <kai.tietz@onevision.com>
5439
5440 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5441
2b5c4649 54422008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5443
5444 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5445 (sparc-sun-solaris2*): Likewise.
5446
83d2008b 54472008-06-09 Arnaud Charlet <charlet@adacore.com
5448
5449 * doc/install.texi: Update requirements to build the Ada compiler.
5450
a0319c5b 54512008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
5452
5453 * df-scan.c (struct df_scan_problem_data): Remove the
5454 mw_link_pool alloc pool.
5455 (df_scan_free_internal): Don't free it.
5456 (df_scan_alloc): Don't allocate it.
5457 * df.h (struct df_link): Update comment.
5458
e98feecb 54592008-06-08 Nathan Sidwell <nathan@codesourcery.com>
5460
5461 * except.h: Correct checks for when SJLJ exceptions must be used.
5462
107dac72 54632008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5464
5465 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5466 default.
14eddddd 5467
9841cd80 54682008-06-08 Joseph Myers <joseph@codesourcery.com>
5469
5470 PR tree-optimization/36218
5471 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5472 configure for the build system.
5473 (BUILD_LDFLAGS): Define.
5474 * configure: Regenerate.
5475 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5476
afe7695c 54772008-07-08 Anatoly Sokolov <aesok@post.ru>
5478
5479 PR target/36424
5480 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
14eddddd 5481 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5482 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
afe7695c 5483
c456b35e 54842008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
5485
5486 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5487
6af9f7ea 54882008-06-07 Joseph Myers <joseph@codesourcery.com>
5489
5490 * config.gcc (Obsolete configurations): Remove list of
5491 configurations.
5492 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5493 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
5494 targets matched by those patterns.
5495 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5496 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5497 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5498 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5499 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5500 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5501 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5502 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5503 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5504 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5505 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5506 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5507 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5508 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5509 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5510 Make code for Solaris 7 and greater unconditional for Solaris.
5511 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5512 Remove --with-* handling.
5513 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5514 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5515 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5516 LINK_OS_WINDISS_SPEC): Remove.
5517 * config/rs6000/sysv4.opt (mwindiss): Remove.
5518 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5519 * configure: Regenerate.
5520 * doc/cpp.texi: Don't mention BeOS.
5521 * doc/extend.texi (interrupt): Don't mention MS1.
5522 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5523 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5524 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5525 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5526 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5527 Remove.
5528 * doc/invoke.texi (MT Options): Remove.
5529 (-mwindiss): Remove.
5530 (CRIS Options): Remove cris-axis-aout references.
5531 (HPPA Options): Don't mention hppa1.1-*-pro.
5532 * doc/md.texi: (MorphoTech family): Remove.
5533 * libgcc2.c: Don't handle UWIN.
5534 * config/alpha/t-unicosmk: Remove.
5535 * config/alpha/unicosmk.h: Remove.
5536 * config/arm/kaos-arm.h: Remove.
5537 * config/arm/kaos-strongarm.h: Remove.
5538 * config/arm/strongarm-coff.h: Remove.
5539 * config/arm/strongarm-elf.h: Remove.
5540 * config/arm/strongarm-pe.h: Remove.
5541 * config/arm/t-strongarm-pe: Remove.
5542 * config/arm/t-xscale-coff: Remove.
5543 * config/arm/t-xscale-elf: Remove.
5544 * config/arm/xscale-coff.h: Remove.
5545 * config/arm/xscale-elf.h: Remove.
5546 * config/chorus.h: Remove.
5547 * config/cris/aout.h: Remove.
5548 * config/cris/aout.opt: Remove.
5549 * config/cris/t-aout: Remove.
5550 * config/i386/beos-elf.h: Remove.
5551 * config/i386/kaos-i386.h: Remove.
5552 * config/i386/ptx4-i.h: Remove.
5553 * config/i386/sco5.h: Remove.
5554 * config/i386/sco5.opt: Remove.
5555 * config/i386/sysv4-cpp.h: Remove.
5556 * config/i386/sysv5.h: Remove.
5557 * config/i386/t-beos: Remove.
5558 * config/i386/t-sco5: Remove.
5559 * config/i386/t-uwin: Remove.
5560 * config/i386/uwin.asm: Remove.
5561 * config/i386/uwin.h: Remove.
5562 * config/kaos.h: Remove.
5563 * config/mips/windiss.h: Remove.
5564 * config/mt: Remove directory.
5565 * config/pa/pa-osf.h: Remove.
5566 * config/pa/pa-pro-end.h: Remove.
5567 * config/pa/t-pro: Remove.
5568 * config/ptx4.h: Remove.
5569 * config/rs6000/beos.h: Remove.
5570 * config/rs6000/kaos-ppc.h: Remove.
5571 * config/rs6000/t-beos: Remove.
5572 * config/rs6000/windiss.h: Remove.
5573 * config/sh/kaos-sh.h: Remove.
5574 * config/sol2-6.h: Remove.
5575 * config/sparc/sol26-sld.h: Remove.
5576 * config/sparc/sysv4-only.h: Remove.
5577 * config/vax/bsd.h: Remove.
5578 * config/vax/t-memfuncs: Remove.
5579 * config/vax/ultrix.h: Remove.
5580 * config/vax/vaxv.h: Remove.
5581 * config/windiss.h: Remove.
5582
aea30ade 55832008-06-06 Uros Bizjak <ubizjak@gmail.com>
e7323ddd 5584
5585 PR rtl-optimization/36438
5586 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5587 for vector shifts with constant scalar shift operands.
5588
b3c53ba7 55892008-06-06 Sandip Matte <sandip@rmicorp.com>
5590
5591 * doc/invoke.texi: Document -march=xlr.
5592 * config/mips/xlr.md: New file.
5593 * config/mips/mips.md: Include it.
5594 (cpu): Add "xlr".
5595 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5596 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5597 (mips_rtx_cost_data): Likewise.
5598
c2010fcc 55992008-06-06 Nathan Froyd <froydnj@codesourcery.com>
5600
5601 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5602 PRE_INC and PRE_DEC cases.
5603
538f00d1 56042008-06-06 Jakub Jelinek <jakub@redhat.com>
5605
cc60e593 5606 PR rtl-optimization/36419
5607 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5608 the emitting jump insn.
5609
538f00d1 5610 PR target/36362
5611 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5612 is not bool, boolify the whole *expr_p and convert to the desired type.
5613
fd6481cf 56142008-06-06 Jakub Jelinek <jakub@redhat.com>
5615
e7323ddd 5616 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
fd6481cf 5617 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5618 Add omp_private_outer_ref hook, add another argument to
5619 omp_clause_default_ctor hook.
5620 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5621 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5622 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5623 hook_tree_tree_tree_tree_null.
5624 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5625 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5626 * hooks.c (hook_tree_tree_tree_tree_null): New function.
5627 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5628 * tree.def (OMP_TASK): New tree code.
5629 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5630 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5631 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5632 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5633 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5634 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5635 OMP_CLAUSE_COLLAPSE_EXPR): Define.
5636 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5637 (OMP_DIRECTIVE_P): Add OMP_TASK.
5638 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5639 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5640 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5641 and OMP_CLAUSE_UNTIED entries.
5642 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
5643 num_ops to 2.
5644 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5645 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5646 * tree-pretty-print.c (dump_omp_clause): Handle
5647 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5648 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5649 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5650 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
5651 warning about unsigned iterators. Change decl/init/cond/incr
5652 arguments to TREE_VECs, check arguments for all collapsed loops.
5653 (c_finish_omp_taskwait): New function.
5654 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5655 ws_clauses.
5656 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
5657 default_function_array_conversion on init. Add par_clauses argument.
5658 If decl is present in parallel's lastprivate clause, change it to
5659 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5660 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
5661 collapse count in clauses.
5662 (c_parser_omp_for, c_parser_omp_parallel): Adjust
5663 c_parser_omp_for_loop callers.
5664 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5665 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5666 (c_parser_omp_clause_name): Handle collapse and untied clauses.
5667 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5668 functions.
5669 (c_parser_omp_clause_schedule): Handle schedule(auto).
5670 Include correct location in the error message.
5671 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5672 and PRAGMA_OMP_CLAUSE_UNTIED.
5673 (OMP_TASK_CLAUSE_MASK): Define.
5674 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5675 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5676 * tree-nested.c (convert_nonlocal_omp_clauses,
5677 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5678 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5679 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5680 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5681 OMP_CLAUSE_DECL.
5682 (conver_nonlocal_reference, convert_local_reference,
5683 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
5684 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5685 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5686 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5687 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5688 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5689 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5690 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5691 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5692 OMP_CLAUSE_UNTIED.
5693 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5694 * c-common.h (c_finish_omp_taskwait): New prototype.
5695 * gimple-low.c (lower_stmt): Handle OMP_TASK.
5696 * tree-parloops.c (create_parallel_loop): Create 1 entry
5697 vectors for OMP_FOR_{INIT,COND,INCR}.
5698 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5699 (make_edges): Handle OMP_TASK.
5700 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5701 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5702 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5703 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5704 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5705 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5706 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5707 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5708 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5709 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5710 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5711 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5712 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5713 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5714 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5715 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5716 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5717 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5718 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5719 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5720 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5721 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5722 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5723 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5724 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5725 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5726 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5727 original iterator is present in lastprivate clause or if
5728 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5729 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5730 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5731 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5732 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5733 if it is set, lookup var in outer contexts too. Handle
5734 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5735 to be implicitly determined firstprivate for task regions.
5736 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5737 if it is set, lookup var in outer contexts too. Set
5738 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5739 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5740 OMP_CLAUSE_UNTIED. Take region_type as last argument
5741 instead of in_parallel and in_combined_parallel.
5742 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5743 Adjust callers.
5744 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
e7323ddd 5745 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
fd6481cf 5746 (new_omp_context): Set default_kind to
5747 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5748 (omp_region_type): New enum.
5749 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5750 fields, add region_type.
5751 (new_omp_context): Take region_type as argument instead of is_parallel
5752 and is_combined_parallel.
5753 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5754 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5755 ctx->is_combined_parallel checks.
5756 (gimplify_omp_task): New function.
5757 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5758 OMP_CLAUSE_UNTIED.
5759 * omp-low.c (extract_omp_for_data): Use schedule(static)
5760 for schedule(auto). Handle pointer and unsigned iterators.
5761 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5762 Add loops argument. Extract data for collapsed OMP_FOR loops.
5763 (expand_parallel_call): Assert sched_kind isn't auto,
5764 map runtime schedule to index 3.
5765 (struct omp_for_data_loop): New type.
5766 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5767 Add loop, loops, collapse and iter_type fields.
5768 (workshare_safe_to_combine_p): Disallow combined for if
5769 iter_type is unsigned long long. Don't combine collapse > 1 loops
5770 unless all bounds and steps are constant. Adjust extract_omp_for_data
5771 caller.
5772 (expand_omp_for_generic): Handle pointer, unsigned and long long
5773 iterators. Handle collapsed OMP_FOR loops. Adjust
5774 for struct omp_for_data changes. If libgomp function doesn't return
5775 boolean_type_node, add comparison of the return value with 0.
5776 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5777 pointer, unsigned and long long iterators. Adjust for struct
5778 omp_for_data changes.
5779 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5780 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
5781 unsigned long long. Allocate loops array, pass it to
5782 extract_omp_for_data. For collapse > 1 loops use always
5783 expand_omp_for_generic.
5784 (omp_context): Add sfield_map and srecord_type fields.
5785 (is_task_ctx, lookup_sfield): New functions.
5786 (use_pointer_for_field): Use is_task_ctx helper. Change first
5787 argument's type from const_tree to tree. Clarify comment.
5788 In OMP_TASK disallow copy-in/out sharing.
5789 (build_sender_ref): Call lookup_sfield instead of lookup_field.
5790 (install_var_field): Add mask argument. Populate both record_type
5791 and srecord_type if needed.
5792 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5793 in srecord_type.
5794 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5795 and DECL_FIELD_OFFSET.
5796 (scan_sharing_clauses): Adjust install_var_field callers. For
5797 firstprivate clauses on explicit tasks allocate the var by value in
5798 record_type unconditionally, rather than by reference.
5799 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5800 Use is_taskreg_ctx instead of is_parallel_ctx.
5801 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5802 (create_omp_child_function_name): Add task_copy argument, use
5803 *_omp_cpyfn* names if it is true.
5804 (create_omp_child_function): Add task_copy argument, if true create
5805 *_omp_cpyfn* helper function.
5806 (scan_omp_parallel): Adjust create_omp_child_function callers.
5807 Rename parallel_nesting_level to taskreg_nesting_level.
5808 (scan_omp_task): New function.
5809 (lower_rec_input_clauses): Don't run constructors for firstprivate
14eddddd 5810 explicit task vars which are initialized by *_omp_cpyfn*.
fd6481cf 5811 Pass outer var ref to omp_clause_default_ctor hook if
5812 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5813 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5814 OMP_CLAUSE_REDUCTION_INIT.
5815 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5816 avoid duplicate setting of fields. Handle
5817 OMP_CLAUSE_PRIVATE_OUTER_REF.
5818 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
5819 copy-out if TREE_READONLY, only copy-in.
5820 (expand_task_copyfn): New function.
5821 (expand_task_call): New function.
5822 (struct omp_taskcopy_context): New type.
5823 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5824 New functions.
5825 (lower_omp_parallel): Rename to...
5826 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5827 Call create_task_copyfn if srecord_type is needed. Adjust
5828 sender_decl type.
5829 (task_shared_vars): New variable.
5830 (check_omp_nesting_restrictions): Warn if work-sharing,
5831 barrier, master or ordered region is closely nested inside OMP_TASK.
5832 Add warnings for barrier if closely nested inside of work-sharing,
5833 ordered, or master region.
5834 (scan_omp_1): Call check_omp_nesting_restrictions even for
5835 GOMP_barrier calls. Rename parallel_nesting_level to
5836 taskreg_nesting_level. Handle OMP_TASK.
5837 (lower_lastprivate_clauses): Even if some lastprivate is found on a
5838 work-sharing construct, continue looking for them on parent parallel
5839 construct.
5840 (lower_omp_for_lastprivate): Add lastprivate clauses
5841 to the beginning of dlist rather than end. Adjust for struct
5842 omp_for_data changes.
5843 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5844 not after it. Handle collapsed OMP_FOR loops, adjust for
e7323ddd 5845 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
fd6481cf 5846 (get_ws_args_for): Adjust extract_omp_for_data caller.
5847 (scan_omp_for): Handle collapsed OMP_FOR
5848 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5849 (lower_omp_single_simple): If libgomp function doesn't return
5850 boolean_type_node, add comparison of the return value with 0.
5851 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5852 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
5853 (parallel_nesting_level): Rename to...
5854 (taskreg_nesting_level): ... this.
5855 (is_taskreg_ctx): New function.
5856 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5857 of is_parallel_ctx.
5858 (execute_lower_omp): Rename parallel_nesting_level to
5859 taskreg_nesting_level.
5860 (expand_omp_parallel): Rename to...
5861 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5862 Call omp_task_call for OMP_TASK regions.
5863 (expand_omp): Adjust caller, handle OMP_TASK.
5864 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5865
5866 * bitmap.c (bitmap_default_obstack_depth): New variable.
5867 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5868 if argument is NULL and bitmap_default_obstack is already initialized.
5869 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5870 at the end.
5871 * matrix-reorg.c (matrix_reorg): Likewise.
5872
cbdcfa59 58732008-06-06 Uros Bizjak <ubizjak@gmail.com>
5874
5875 * config/i386/i386.md (*indirect_jump): Macroize using P
5876 mode iterator. Remove !TARGET_64BIT from insn constraints.
5877 (*tablejump_1): Ditto.
5878 (*indirect_jump_rex64): Remove insn pattern.
5879 (*tablejump_1_rex64): Ditto.
5880 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5881 and eh_return_si insn patterns.
5882
ddca26d5 58832008-06-06 Richard Guenther <rguenther@suse.de>
5884
5885 * tree-ssa-structalias.c (merge_smts_into): Remove.
5886 (find_what_p_points_to): Do not bother to compute the
5887 points-to set for pt_anything pointers.
5888 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5889 for pt_anything pointers is ok.
5890
8bd98e13 58912008-06-06 Jan Hubicka <jh@suse.cz>
5892
5893 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5894
f0b5f617 58952008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5896
5897 * cgraph.c: Fix typos in comments.
5898 (cgraph_availability_names): Fix string typo.
5899 * fold-const.c: Fix typos in comments.
5900 (fold_binary): Fix typo in warning.
5901 * genautomata.c: Fix typos in comments.
5902 (check_presence_pattern_sets): Fix typo in local variable.
5903 (output_description): Fix typo in output.
5904 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5905 * hwint.h: Likewise.
5906 * matrix-reorg.c (check_allocation_function): Likewise.
5907 * omega.c (smooth_weird_equations): Likewise.
5908 * auto-inc-dec.c: Fix typos in comments.
5909 * bb-reorder.c: Likewise.
5910 * builtins.c: Likewise.
5911 * c-common.c: Likewise.
5912 * c-cppbuiltin.c: Likewise.
5913 * c-parser.c: Likewise.
5914 * c-pretty-print.c: Likewise.
5915 * cfgcleanup.c: Likewise.
5916 * cfgexpand.c: Likewise.
5917 * cfghooks.c: Likewise.
5918 * cfglayout.c: Likewise.
5919 * cfgloopmanip.c: Likewise.
5920 * cgraphunit.c: Likewise.
5921 * coverage.c: Likewise.
5922 * dbxout.c: Likewise.
5923 * df-byte-scan.c: Likewise.
5924 * df-core.c: Likewise.
5925 * df-problems.c: Likewise.
5926 * df-scan.c: Likewise.
5927 * dfp.c: Likewise.
5928 * dominance.c: Likewise.
5929 * domwalk.c: Likewise.
5930 * dse.c: Likewise.
5931 * dwarf2out.c: Likewise.
5932 * emit-rtl.c: Likewise.
5933 * et-forest.c: Likewise.
5934 * function.c: Likewise.
5935 * function.h: Likewise.
5936 * gcc.c: Likewise.
5937 * gcov-io.c: Likewise.
5938 * gcov.c: Likewise.
5939 * gcse.c: Likewise.
5940 * genattrtab.c: Likewise.
5941 * ggc-page.c: Likewise.
5942 * gimplify.c: Likewise.
5943 * gthr-lynx.h: Likewise.
5944 * haifa-sched.c: Likewise.
5945 * ipa-cp.c: Likewise.
5946 * ipa-inline.c: Likewise.
5947 * ipa-prop.h: Likewise.
5948 * ipa-pure-const.c: Likewise.
5949 * ipa-struct-reorg.c: Likewise.
5950 * ipa-struct-reorg.h: Likewise.
5951 * ipa-type-escape.c: Likewise.
5952 * ipa.c: Likewise.
5953 * loop-doloop.c: Likewise.
5954 * mips-tfile.c: Likewise.
5955 * mkmap-flat.awk: Likewise.
5956 * mkmap-symver.awk: Likewise.
5957 * modulo-sched.c: Likewise.
5958 * omp-low.c: Likewise.
5959 * optabs.c: Likewise.
5960 * optabs.h: Likewise.
5961 * opts.c: Likewise.
5962 * passes.c: Likewise.
5963 * postreload-gcse.c: Likewise.
5964 * postreload.c: Likewise.
5965 * predict.c: Likewise.
5966 * pretty-print.h: Likewise.
5967 * profile.c: Likewise.
5968 * protoize.c: Likewise.
5969 * ra-conflict.c: Likewise.
5970 * real.c: Likewise.
5971 * recog.c: Likewise.
5972 * regclass.c: Likewise.
5973 * regs.h: Likewise.
5974 * reload.c: Likewise.
5975 * rtl-error.c: Likewise.
5976 * rtlanal.c: Likewise.
5977 * scan.h: Likewise.
5978 * sched-rgn.c: Likewise.
5979 * see.c: Likewise.
5980 * stmt.c: Likewise.
5981 * target.h: Likewise.
5982 * tree-dfa.c: Likewise.
5983 * tree-eh.c: Likewise.
5984 * tree-flow-inline.h: Likewise.
5985 * tree-inline.c: Likewise.
5986 * tree-into-ssa.c: Likewise.
5987 * tree-loop-distribution.c: Likewise.
5988 * tree-nested.c: Likewise.
5989 * tree-parloops.c: Likewise.
5990 * tree-pass.h: Likewise.
5991 * tree-pretty-print.c: Likewise.
5992 * tree-profile.c: Likewise.
5993 * tree-scalar-evolution.c: Likewise.
5994 * tree-sra.c: Likewise.
5995 * tree-ssa-alias-warnings.c: Likewise.
5996 * tree-ssa-ccp.c: Likewise.
5997 * tree-ssa-coalesce.c: Likewise.
5998 * tree-ssa-dom.c: Likewise.
5999 * tree-ssa-dse.c: Likewise.
6000 * tree-ssa-forwprop.c: Likewise.
6001 * tree-ssa-live.c: Likewise.
6002 * tree-ssa-live.h: Likewise.
6003 * tree-ssa-loop-im.c: Likewise.
6004 * tree-ssa-loop-ivopts.c: Likewise.
6005 * tree-ssa-loop-niter.c: Likewise.
6006 * tree-ssa-loop-prefetch.c: Likewise.
6007 * tree-ssa-phiopt.c: Likewise.
6008 * tree-ssa-phiprop.c: Likewise.
6009 * tree-ssa-sccvn.c: Likewise.
6010 * tree-ssa-ter.c: Likewise.
6011 * tree-ssa-threadupdate.c: Likewise.
6012 * tree-ssa.c: Likewise.
6013 * tree-vect-analyze.c: Likewise.
6014 * tree-vect-transform.c: Likewise.
6015 * tree-vectorizer.c: Likewise.
6016 * tree-vn.c: Likewise.
6017 * tree-vrp.c: Likewise.
6018 * tree.c: Likewise.
6019 * tree.def: Likewise.
6020 * tree.h: Likewise.
6021 * unwind-dw2-fde.c: Likewise.
6022 * unwind.inc: Likewise.
6023 * value-prof.c: Likewise.
6024 * vmsdbgout.c: Likewise.
6025
ecaa8a98 60262008-06-05 David Edelsohn <edelsohn@gnu.org>
6027
6028 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
6029 always place FP constants in the TOC for TARGET_POWERPC64.
6030 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
6031
bea66da5 60322008-06-05 Joseph Myers <joseph@codesourcery.com>
6033
6034 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
6035 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
6036 enable for TARGET_E500_DOUBLE.
6037 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
6038 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
6039 floating-point modes like integer modes for E500 double.
6040 (rs6000_legitimate_offset_address_p): Likewise.
6041 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
6042 addressing for DDmode for E500 double.
6043 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
6044 modes as using 64-bits of registers for E500 double.
6045 (spe_build_register_parallel): Do not handle DDmode or TDmode.
6046 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
6047 specially for E500 double.
6048 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
6049 TDmode for E500 double.
6050 (rs6000_gimplify_va_arg): Only handle SDmode in registers
6051 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
6052 (rs6000_split_multireg_move): Do not handle TDmode specially for
6053 E500 double.
6054 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
6055 using 64-bit registers for E500 double.
6056 (emit_frame_save): Do not handle DDmode specially for E500 double.
6057 (gen_frame_mem_offset): Likewise.
6058 (rs6000_function_value): Do not call spe_build_register_parallel
6059 for DDmode or TDmode.
6060 (rs6000_libcall_value): Likewise.
6061 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6062 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6063 for E500 double.
6064
4d8c4ef0 60652008-06-04 H.J. Lu <hongjiu.lu@intel.com>
6066
6067 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6068 in comments.
6069
98d31fbc 60702008-06-04 Junjie Gu <jgu@tensilica.com>
6071
6072 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6073 comparison for frame pointers.
6074
6ce48f50 60752008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6076
6077 PR target/27386
e7323ddd 6078 * config/avr/avr.h (PUSH_ROUNDING): Remove.
6ce48f50 6079
4a46f016 60802008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6081
6082 PR target/30243
6083 * builtins.c (expand_builtin_signbit): Don't take lowpart when
14eddddd 6084 register is already smaller or equal to required mode.
4a46f016 6085
e6a23add 60862008-06-04 Xinliang David Li <davidxl@google.com>
6087
14eddddd 6088 * tree-call-cdce.c: New file.
e6a23add 6089 (cond_dead_built_in_calls): New static variable.
6090 (input_domain): New struct.
6091 (check_pow): New function.
6092 (check_builtin_call): Ditto.
6093 (check_target_format): Ditto.
6094 (is_call_dce_candidate): Ditto.
6095 (gen_one_condition): Ditto.
6096 (gen_conditions_for_domain): Ditto.
6097 (get_domain): Ditto.
6098 (gen_conditions_for_pow_cst_base): Ditto.
6099 (gen_conditions_for_pow_int_base): Ditto.
6100 (gen_conditions_for_pow): Ditto.
6101 (get_no_error_domain): Ditto.
6102 (gen_shrink_wrap_conditions): Ditto.
6103 (shrink_wrap_one_built_in_call): Ditto.
6104 (shink_wrap_conditional_dead_built_in_calls): Ditto.
6105 (tree_call_cdce): Ditto.
6106 (gate_call_cdce): Ditto.
6107 (pass_call_cdce): New gimple pass.
6108 * passes.c: (init_optimization_passes): New pass.
6109 * tree-pass.h: New pass declaration.
6110 * opts.c (decode_options): New flag setting.
6111 * common.opt: Add -ftree-builtin-call-dce flag.
6112 * Makefile.in: Add new source file.
6113 * tempvar.def: New tv_id.
6114 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6115
2795c63e 61162008-06-04 Richard Guenther <rguenther@suse.de>
6117
e7323ddd 6118 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
2795c63e 6119 (is_call_clobbered): Always check var_ann->call_clobbered.
6120 (mark_call_clobbered): Always set var_ann->call_clobbered.
6121 (clear_call_clobbered): Always clear var_ann->call_clobbered.
6122 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6123 (reset_alias_info): Clear call clobbering info on MTAGs and
6124 globals as well.
6125 (set_pt_anything): Set pt_global_mem.
6126 (create_tag_raw): Adjust comment.
6127 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6128
6c19bc3c 61292008-06-04 Joseph Myers <joseph@codesourcery.com>
e7323ddd 6130 Maxim Kuvyrkov <maxim@codesourcery.com>
6c19bc3c 6131
6132 * config/m68k/m68k.opt (mxgot): New option.
6133 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6134 (m68k_output_addr_const_extra): New.
6135 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6136 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6137 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6138 * doc/invoke.texi (M680x0 Options): Document -mxgot.
6139
4761d19f 61402008-06-04 Richard Guenther <rguenther@suse.de>
6141
6142 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6143 negative or non-representable offsets.
6144
b280471c 61452008-06-03 H.J. Lu <hongjiu.lu@intel.com>
6146
e7323ddd 6147 * config/i386/i386.c (ix86_gen_leave): New.
b280471c 6148 (ix86_gen_pop1): Likewise.
6149 (ix86_gen_add3): Likewise.
6150 (ix86_gen_sub3): Likewise.
6151 (ix86_gen_sub3_carry): Likewise.
6152 (ix86_gen_one_cmpl2): Likewise.
6153 (ix86_gen_monitor): Likewise.
6154 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6155 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6156 ix86_gen_one_cmpl2 and ix86_gen_monitor.
6157 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6158 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6159 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6160 (ix86_expand_epilogue): Updated.
6161 (print_operand): Handle integer register operand for 'z'.
6162 (ix86_expand_strlensi_unroll_1): Likewise.
6163 (ix86_expand_strlen): Likewise.
6164 (ix86_expand_builtin): Likewise.
6165 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6166 mov{q}/mov{l} and add{q}/add{l}.
6167
53056963 61682008-06-03 Kai Tietz <kai.tietz@onevision.com>
6169
8b0b11a3 6170 * config/i386/i386.md (P): New mode iterator.
6171 (SFmode push_operand splitter): Macroize DImode and SImode pushes
6172 using P mode iterator.
aecf75a3 6173 (DFmode push_operand splitter): Ditto.
6174 (XFmode push_operand splitter): Ditto.
8b0b11a3 6175 (DFmode float_extend SFmode push_operand splitter): Ditto.
6176 (XFmode float_extend SFmode push_operand splitter): Do not generate
aecf75a3 6177 SImode pushes for 64bit target. Macroize Dimode and SImode
6178 pushes using P mode iterator.
6179 (XFmode float_extend DFmode push_operand splitter): Ditto.
53056963 6180
f589a94a 61812008-06-03 Kai Tietz <kai.tietz@onevision.com>
6182
6183 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
e7323ddd 6184 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
f589a94a 6185 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6186 return type to int.
6187 (ix86_call_abi_override): Remove check for call_used_regs.
6188
ad2b0b69 61892008-06-03 Richard Guenther <rguenther@suse.de>
6190
6191 * tree-ssa-structalias.c (find_func_aliases): Add constraints
6192 for the lhs of calls if the return type contains pointers.
6193
d3feb168 61942008-06-03 Kai Tietz <kai.tietz@onevision.com>
6195
6196 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6197 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
e7323ddd 6198 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
d3feb168 6199 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6200 of cfun and DEFAULT_ABI to deceide abi mode.
6201 (DEFAULT_ABI): New.
6202 (REG_PARM_STACK_SPACE): Removed.
6203 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6204 (STACK_BOUNDARY): Use default target to deceide stack boundary.
6205 * config/i386/i386-protos.h (ix86_cfun_abi): New.
6206 (ix86_function_abi): Likewise.
6207 (ix86_function_type_abi): Likewise.
6208 (ix86_call_abi_override): Likewise.
6209 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6210 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6211 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6212 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6213 specific defines.
6214 (X86_64_REGPARM_MAX): New.
6215 (X86_64_SSE_REGPARM_MAX): New.
6216 (X64_REGPARM_MAX): New.
6217 (X64_SSE_REGPARM_MAX): New.
6218 (X86_32_REGPARM_MAX): New.
6219 (X86_32_SSE_REGPARM_MAX): New.
6220 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6221 (ix86_function_regparm): Handle user calling abi.
6222 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6223 by DEFAULT_ABI versus SYSV_ABI check.
6224 (ix86_reg_parm_stack_space): New.
6225 (ix86_function_type_abi): New.
6226 (ix86_call_abi_override): New.
6227 (ix86_function_abi): New.
6228 (ix86_cfun_abi): New.
6229 (init_cumulative_args): Call abi specific initialization.
6230 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6231 (function_arg_64): Extend SSE_REGPARM_MAX check.
6232 (function_arg (): Remove TARGET_64BIT_MS_ABI.
6233 (ix86_pass_by_reference): Likewise.
6234 (ix86_function_value_regno_p): Likewise.
6235 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6236 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6237 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6238 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6239 (setup_incoming_varargs_64): Adjust regparm for call abi.
6240 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6241 (ix86_va_start): Likewise.
6242 (ix86_gimplify_va_arg): Likewise.
6243 (ix86_expand_prologue): Likewise.
6244 (output_pic_addr_const): Likewise.
6245 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6246 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6247 (x86_output_mi_thunk): Likewise.
6248 (x86_function_profiler): Likewise.
6249 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6250 (SYSV_ABI, MS_ABI): New constants.
6251 (DEFAULT_ABI): New.
6252 (init_regs): Add prototype of function in regclass.c file.
6253 (OVERRIDE_ABI_FORMAT): New.
6254 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6255 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6256 (OUTGOING_REG_PARM_STACK_SPACE): New.
6257 (ix86_reg_parm_stack_space): New prototype.
6258 (CUMULATIVE_ARGS): Add call_abi member.
6259 (machine_function): Add call_abi member.
e7323ddd 6260 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6261 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
d3feb168 6262
14eddddd 62632008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
b1665fa2 6264
6265 PR target/34879
6266 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6267 (avr_builtin_setjmp_frame_value): New function.
6268 * config/avr/avr.md (nonlocal_goto_receiver): Define.
6269 (nonlocal_goto): Define.
6270
27f8bb47 62712008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
6272
6273 * config/mips/mips.c (mips_emit_loadgp): Return early if
6274 there is nothing do to, otherwise emit a blockage if
6275 !TARGET_EXPLICIT_RELOCS || crtl->profile.
6276 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6277
dea92435 62782008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6279
6280 * configure.ac: Drop unneeded backslash ending up in config.in.
6281 * acinclude.m4: Likewise.
6282 * config.in: Regenerate.
6283
eb7df8c2 62842008-05-26 Jan Hubicka <jh@suse.cz>
6285
6286 * predict.c (maybe_hot_frequency_p): Break out of...
6287 (maybe_hot_bb_p): ... here.
6288 (maybe_hot_edge_p): New.
6289 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6290 * basic-block.h (maybe_hot_edge_p): Declare.
6291
052f0ad8 62922008-05-31 Uros Bizjak <ubizjak@gmail.com>
6293
6294 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6295 (*cmpfp_<mode>_cc): Ditto.
6296 (*fp_jcc_8<mode>_387): Ditto.
6297 (*fop_<MODEF:mode>_2_i387): Ditto.
6298 (*fop_<MODEF:mode>_3_i387): Ditto.
6299 (*fop_xf_2_i387): Ditto.
6300 (*fop_xf_3_i387): Ditto.
6301
40d0b157 63022008-06-02 Tomas Bily <tbily@suse.cz>
6303
052f0ad8 6304 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
40d0b157 6305
ebcfa83a 63062008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6307
6308 * config/mips/mips.c (mips_valid_offset_p): New function.
6309 (mips_valid_lo_sum_p): Likewise.
6310 (mips_classify_address): Use them.
6311 (mips_force_address): New function.
6312 (mips_legitimize_address): Use it.
6313 * config/mips/mips.md (MOVE128): New mode iterator.
6314 (movtf): Require TARGET_64BIT. Remove empty strings.
6315 (*movtf_internal): Rename to...
6316 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
6317 of "R" and use {,fp}{load,store} attributes instead of "multi".
6318 Use a separate define_split.
6319 (*movtf_mips16): New pattern.
6320
250b65e6 63212008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6322
6323 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6324 * config/mips/mips.c (mips_expand_before_return): New function.
6325 (mips_expand_epilogue): Call it.
6326 * config/mips/mips.md (return): Turn into a define_expand.
6327 (*return): New insn.
6328
18b42941 63292008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6330
6331 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6332 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6333 functions. Do not emit uses and clobbers of CONCATs; individually
6334 use and clobber their operands.
6335 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6336 gen_clobber, emit_use and gen_use.
6337 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6338 (expand_builtin_return): Likewise.
6339 * cfgbuild.c (count_basic_blocks): Likewise.
6340 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6341 * explow.c (emit_stack_restore): Likewise.
6342 * expmed.c (extract_bit_field_1): Likewise.
6343 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6344 (emit_move_multi_word, store_constructor): Likewise.
6345 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6346 (thread_prologue_and_epilogue_insns): Likewise.
6347 * lower-subreg.c (resolve_simple_move): Likewise.
6348 * optabs.c (widen_operand, expand_binop): Likewise.
6349 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6350 * reload.c (find_reloads): Likewise.
6351 * reload1.c (eliminate_regs_in_insn): Likewise.
6352 * stmt.c (expand_nl_goto_receiver): Likewise.
6353 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6354 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6355 * config/arm/arm.c (arm_load_pic_register): Likewise.
6356 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6357 * config/arm/arm.md (untyped_return): Likewise.
6358 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6359 * config/avr/avr.c (expand_prologue): Likewise.
6360 * config/bfin/bfin.c (do_unlink): Likewise.
6361 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6362 * config/cris/cris.c (cris_expand_prologue): Likewise.
6363 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6364 (machopic_legitimize_pic_address): Likewise.
6365 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6366 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6367 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6368 (ix86_expand_convert_uns_didf_sse): Likewise.
6369 (ix86_expand_vector_init_general): Likewise.
6370 * config/ia64/ia64.md (eh_epilogue): Likewise.
6371 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6372 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6373 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6374 (config/iq2000/iq2000.c): Likewise.
6375 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6376 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6377 (builtin_longjmp): Likewise.
6378 * config/mn10300/mn10300.md (call, call_value): Likewise.
6379 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6380 * config/pdp11/pdp11.md (abshi2): Likewise.
6381 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6382 * config/s390/s390.c (s390_emit_prologue): Likewise.
6383 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6384 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6385 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6386 * config/sh/sh.c (prepare_move_operands): Likewise.
6387 (output_stack_adjust, sh_expand_epilogue): Likewise.
6388 (sh_set_return_address, sh_expand_t_scc): Likewise.
6389 * config/sparc/sparc.c (load_pic_register): Likewise.
6390 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6391 * config/spu/spu.c (spu_expand_epilogue): Likewise.
6392 * config/v850/v850.c (expand_epilogue): Likewise.
6393
e858c923 63942008-05-31 Anatoly Sokolov <aesok@post.ru>
6395
6396 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6397 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6398 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
14eddddd 6399 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6400 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
e858c923 6401 stack pointer register.
14eddddd 6402 (output_movhi): Remove code for interrupt specific writing to the
e858c923 6403 stack pointer register.
6404
b3b7419f 64052008-05-31 Richard Guenther <rguenther@suse.de>
6406
6407 PR tree-optimization/34244
6408 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6409 (tree_expr_nonzero_warnv_p): Likewise.
6410 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6411 ssa_name_nonnegative_p.
6412 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6413 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6414 not tree_expr_nonzero_warnv_p.
6415
6416 PR tree-optimization/36262
6417 Revert
6418 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
6419
052f0ad8 6420 PR tree-optimization/34244
6421 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6422 (record_numbers_of_iterations): New function.
6423 (execute_vrp): Cache the numbers of iterations of loops.
6424 * tree-scalar-evolution.c (scev_reset_except_niters):
6425 New function.
6426 (scev_reset): Use scev_reset_except_niters.
6427 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
b3b7419f 6428
20c31f65 64292008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
6430
6431 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6432 __WORKAROUND_RETS when appropriate.
6433
6c24dca6 64342008-05-31 Uros Bizjak <ubizjak@gmail.com>
6435
6436 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6437 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6438 mode iterator.
6439 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6440 *fop_df_comm_sse insn patterns using MODEF mode iterator.
6441 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6442 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6443 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6444 *fop_df_1_mixed insn patterns using MODEF mode iterator.
6445 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6446 *fop_df_1_sse insn patterns using MODEF mode iterator.
6447 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6448 *fop_df_1_i387 insn patterns using MODEF mode iterator.
6449 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6450 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6451 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6452 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6453 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6454 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6455 (*fop_xf_4_i387): Use <MODE> for mode attribute.
6456 (*fop_xf_5_i387): Ditto.
6457 (*fop_xf_6_i387): Ditto.
6458
40238f64 64592008-05-30 Richard Guenther <rguenther@suse.de>
6460
6461 * builtins.c (build_string_literal): Avoid generating
6462 a non-gimple_val result.
6463
5346190f 64642008-05-30 DJ Delorie <dj@redhat.com>
6465
6466 * exec-tool.in: Use an environment variable (private) instead of a
6467 file (shared) as a semaphore, so as to not break parallel builds.
6468
b31c801f 64692008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6470
6471 * optabs.c (maybe_encapsulate_block): Remove.
6472 (emit_libcall_block): Adjust accordingly.
6473 * optabs.h (maybe_encapsulate_block): Remove prototype.
6474
6475 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6476 Don't use maybe_encapsulate_block.
6477
9a5755c0 64782008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6479
6480 * config/rs6000/rs6000.c (rs6000_legitimize_address,
6481 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6482 rtx is a SYMBOL_REF before calling get_pool_constant.
6483
e7b454ed 64842008-05-30 Eric Botcazou <ebotcazou@adacore.com>
6485
6486 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6487
f4d02485 64882008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
6489
6490 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6491 rather than OS names to choose INO_T_EQ definition.
6492 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6c24dca6 6493 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
f4d02485 6494
32006f36 64952008-05-29 Daniel Franke <franke.daniel@gmail.com>
6496
6497 PR target/36348
6498 * config/darwin-f.c: New.
6499 * config/t-darwin: Added rule to build darwin-f.o.
6500 * config.gcc: Defined new variable, fortran_target_objs.
6501 (*-*-darwin*): Set fortran_target_objs.
6502 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6c24dca6 6503 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
32006f36 6504 * configure: Regenerated.
6505
211cafb2 65062008-05-29 H.J. Lu <hongjiu.lu@intel.com>
6507
6508 PR target/35771
6509 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6510 canonical type if needed.
6511
d82c8605 65122008-05-29 Eric Botcazou <ebotcazou@adacore.com>
6513
6514 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6515
e2486556 65162008-05-29 Richard Guenther <rguenther@suse.de>
6517
6518 PR tree-optimization/36343
6519 PR tree-optimization/36346
6520 PR tree-optimization/36347
6521 * tree-flow.h (clobber_what_p_points_to): Declare.
6522 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6523 pointed-to variable is dereferenced is irrelevant to whether
6524 the pointer can access the pointed-to variable.
6525 (clobber_what_p_points_to): New function.
6526 * tree-ssa-alias.c (set_initial_properties): Use it.
6527 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6528 call clobber check for NMTs.
6529
6525819b 65302008-05-28 Seongbae Park <seongbae.park@gmail.com>
14eddddd 6531
6525819b 6532 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6533 for printing gcov_type.
6534
69eee21d 65352008-05-28 Seongbae Park <seongbae.park@gmail.com>
6536
6537 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6538 and the eh region information.
6539 * value-prof.c (gimple_move_stmt_histograms): New function.
6540 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6541
e8a6d961 65422008-05-28 Andreas Tobler <a.tobler@schweiz.org>
6543
6544 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6545
31434f4a 65462008-05-28 Seongbae Park <seongbae.park@gmail.com>
6547
6548 * value-prof.c (tree_ic_transform): Print counts.
6549 * tree-profile.c (tree_gen_ic_func_profiler):
6c24dca6 6550 Clear __gcov_indreict_call_callee variable to avoid misattribution
6551 of the profile.
31434f4a 6552
f8aa77dc 65532008-05-28 Rafael Espindola <espindola@google.com>
6554
6555 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6556 invalid sharing.
6557
4277273a 65582008-05-28 Richard Guenther <rguenther@suse.de>
6559
6560 PR tree-optimization/36339
6561 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6562 and clobbering code out of the loop.
6563
e68d6a13 65642008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6565
6566 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6567 letters defined.
6568
6569 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6570 s390_contiguous_bitmask_p, s390_symref_operand_p,
6571 s390_check_symref_alignment, s390_reload_larl_operand,
6572 s390_reload_symref_address): New functions.
6573 (s390_branch_condition_mnemonic): Support compare and branch
6574 instructions.
6575 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6576 and 'W' constraints.
6577 (s390_secondary_reload): Add secondary reloads for unaligned
6578 symbol refs or symbol refs to floating point or QI/TI mode
6579 integer values.
6580 (legitimate_address_p): Accept symbol references as addresses.
6581 (s390_expand_insv): Use rotate and insert selected bits
6582 instruction for insv when building for z10.
6583 (print_operand_address): Handle symbol ref addresses.
6c24dca6 6584 (print_operand): Output modifier 'c' added for signed byte values.
e68d6a13 6585 (s390_encode_section_info): Mark symbol refs with
6586 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6587
6588 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6589 (length attribute): RRF, RRR have 4 byte length.
6590 (FPALL, INTALL): New mode iterators added.
6591 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6592 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6593 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6594 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6595 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6596 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6597 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6598 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6599 instructions.
6600 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6601 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6602 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6603 reload<INTALL:mode><P:mode>_toreg_z10,
6604 reload<FPALL:mode><P:mode>_tomem_z10,
6605 reload<FPALL:mode><P:mode>_toreg_z10,
6606 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6607 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6608 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6609 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6610 definition.
6611 (movmem, clrmem, cmpmem): New splitters added.
6612
6613 * config/s390/predicates.md (larl_operand): Use
6614 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6615 SYMBOL_REF_ALIGN1_P.
6616 (s390_signed_integer_comparison,
6617 s390_unsigned_integer_comparison): New predicates.
6618
6619 * config/s390/s390-protos.h (s390_check_symref_alignment,
6620 s390_contiguous_bitmask_p, s390_reload_larl_operand,
6621 s390_reload_symref_address,
6622 s390_compare_and_branch_condition_mask): Prototypes added.
6623
6624 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6625 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6626 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6627
a850370e 66282008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6629
6630 * config/s390/s390.c (z10_cost): New cost function for z10.
6c24dca6 6631 (s390_handle_arch_option, override_options): Support -march=z10 switch.
a850370e 6632 (s390_issue_rate): Adjust issue rate for z10.
6633 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6634 (processor_flags): Add PF_Z10.
6635 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6636 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6637 * gcc/config.gcc: Add z10.
6638
dd7b9387 66392008-05-28 Richard Guenther <rguenther@suse.de>
6640
6641 PR tree-optimization/36291
6642 * tree-flow. h (struct gimple_df): Remove var_anns member.
6643 * tree-flow-inline.h (gimple_var_anns): Remove.
6644 (var_ann): Simplify.
6645 * tree-dfa.c (create_var_ann): Simplify.
6646 (remove_referenced_var): Clear alias info from var_anns of globals.
6647 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6648 (delete_tree_ssa): Clear alias info from var_anns of globals.
6649 Do not free var_anns.
6650 (var_ann_eq): Remove.
6651 (var_ann_hash): Likewise.
6652
e07ac3b5 66532008-05-28 Mark Shinwell <shinwell@codesourcery.com>
6654
6655 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6656 and loongson2f entries.
6657 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6658 * config/mips/mips.h (processor_type): Add Loongson-2E
6659 and Loongson-2F entries.
6660 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6661 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6662 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6663 * doc/invoke.texi (MIPS Options): Document loongson2e
6664 and loongson2f processor names.
6665
892c4765 66662008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6667
6668 PR target/35767
6669 PR target/35771
6670 * config/i386/i386.c (ix86_function_arg_boundary): Use
6671 alignment of canonical type.
6672 (ix86_expand_vector_move): Check unaligned memory access for
6673 all SSE modes.
6674
a3f14923 66752008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6676
6677 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6678 Moved to the front of file.
6679
c0fd44c1 66802008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
6681 H.J. Lu <hongjiu.lu@intel.com>
6682
6683 * dwarf2out.c (current_fde): New.
6684 (add_cfi): Use it.
6685 (lookup_cfa:): Likewise.
6686 (dwarf2out_end_epilogue): Likewise.
6687 (dwarf2out_note_section_used): Likewise.
6688
7c13dce4 66892008-05-27 Michael Matz <matz@suse.de>
6690
6691 PR c++/27975
6692 * c.opt (Wenum-compare): New warning option.
6693 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
6694
7528fb13 66952008-05-27 Michael Matz <matz@suse.de>
6696
6697 PR middle-end/36326
6698 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6699 non-BLKmode types.
6700 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6701 into memory as tail calls.
6702
c7287953 67032008-05-27 Richard Guenther <rguenther@suse.de>
6704
6705 PR tree-optimization/36339
6706 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6707 pointers cause all addressable variables to be call clobbered.
6708
36f0904b 67092008-05-27 Richard Guenther <rguenther@suse.de>
6710
6711 PR tree-optimization/36245
6c24dca6 6712 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
36f0904b 6713
8fe52251 67142008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6715
6716 * config/s390/s390.md: Replace all occurences of the 'm'
6717 constraint with 'RT'.
6718
562d1970 67192008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6720
6721 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6722 definitions added.
6723 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6724 "*movdi_64".
6725 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6726 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6727 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6728
39a1a66f 67292008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6730
6731 * reload.c: (find_reloads): Skip alternatives according to the
6732 "enabled" attribute. Constify the constraint variable.
6733 * recog.c (get_attr_enabled): Add default implementation.
6734 (extract_insn): Set the alternative_enabled_p array
6735 in the recog_data struct.
6736 (preprocess_constraints, constrain_operands): Skip
6737 alternatives according to the "enabled" attribute
6738 * recog.h (struct recog_data): New field alternative_enabled_p.
6739 (skip_alternative): New inline function.
6c24dca6 6740 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
39a1a66f 6741 (record_reg_classes): Skip alternative according to the
6742 "enabled" attribute.
6743
6744 * doc/md.texi: Add documention for the "enabled" attribute.
6745
e9ff93b1 67462008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6747
6748 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6749 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6750 constraint with TARGET_MEM_CONSTRAINT.
6751 * recog.c (asm_operand_ok, preprocess_constraints,
6752 constrain_operands): Likewise.
6753 * regclass.c (record_reg_classes): Likewise.
6c24dca6 6754 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
e9ff93b1 6755 * reload1.c (maybe_fix_stack_asms): Likewise.
6c24dca6 6756 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
e9ff93b1 6757 * recog.h: Adjust comment.
6758 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6c24dca6 6759 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
e9ff93b1 6760 * doc/md.texi: Add a note to description of 'm' constraint.
6761 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6762
1040f7a1 67632008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6764
6765 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6766 that the bitfield is of integral type before testing its precision.
6767
c2e00795 67682008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
14eddddd 6769 Sa Liu <saliu@de.ibm.com>
c2e00795 6770
14eddddd 6771 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
c2e00795 6772 __modti3, __udivti3, __umodti3 and __udivmodti4.
6773 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6774 that implement TImode mul and div functions.
6775 * config/spu/multi3.c: New. Implement __multi3.
6776 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6777 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6778 functions on SPU.
6779
5f155083 67802008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
6781
6782 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6783 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6784 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6785 tls_sysv_suffix): New mode and mode attribute iterators.
6786 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6787 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6788 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6789 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6790 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6791 iterators.
6792
035e2eea 67932008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6794
6795 PR tree-optimization/36329
6796 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6797 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6798 * cgraphbuild.c (initialize_inline_failed): Use the latter
6799 macro in lieu of the former.
6800 * ipa-inline.c (cgraph_mark_inline): Likewise.
6801 (cgraph_decide_inlining_of_small_function): Likewise.
6802 (cgraph_decide_inlining): Likewise.
6803 (cgraph_decide_inlining_incrementally): Likewise.
6804
c2e91982 68052008-05-26 Tristan Gingold <gingold@adacore.com>
6c24dca6 6806 Anatoly Sokolov <aesok@post.ru>
c2e91982 6807
6808 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6809 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14eddddd 6810 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
c2e91982 6811 optimization for 'avr6' architecture.
6812
38c615ca 68132008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
6814
6815 PR target/34932
6816 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6817
64919a86 68182008-05-26 Richard Guenther <rguenther@suse.de>
6819
6820 * tree-ssa-sccvn.c (expr_has_constants): Declare.
6c24dca6 6821 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
64919a86 6822
ad33891d 68232008-05-26 H.J. Lu <hongjiu.lu@intel.com>
6824
6825 PR middle-end/36253
6c24dca6 6826 * caller-save.c (insert_restore): Verify alignment of spill space.
ad33891d 6827 (insert_save): Likewise.
ad33891d 6828 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
ad33891d 6829 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6830 (STACK_SLOT_ALIGNMENT): Likewise.
ad33891d 6831 * function.c (LOCAL_ALIGNMENT): Removed.
6832 (get_stack_local_alignment): New.
6833 (assign_stack_local): Use it. Set alignment on stack slot.
6834 (assign_stack_temp_for_type): Use get_stack_local_alignment.
ad33891d 6835 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6836 (STACK_SLOT_ALIGNMENT): New.
ad33891d 6837 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6838 stack slot in XFmode.
6839
6840 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6841
6aa4d29f 68422008-05-26 Kai Tietz <kai.tietz@onevision.com>
6843
6844 PR/36321
6845 * config/i386/i386.md (allocate_stack_worker_64): Make sure
6846 argument operand in rax isn't removed.
6847
32054974 68482008-05-26 Richard Guenther <rguenther@suse.de>
6849
6850 PR middle-end/36300
6851 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6852 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
6853
3f798f0c 68542008-05-26 Daniel Franke <franke.daniel@gmail.com>
6855
6856 PR bootstrap/36331
6857 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6858
39aecd3b 68592008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
6860
6861 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6862 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6863
939e9bf1 68642008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6865
6c24dca6 6866 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
939e9bf1 6867 build a trampoline if we don't want one.
6868 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6869 return zero for nested functions if we don't want a trampoline.
6870
c50688b2 68712008-05-26 Daniel Franke <franke.daniel@gmail.com>
6872
6873 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6874
2ecc6bc5 68752008-05-26 Daniel Franke <franke.daniel@gmail.com>
6876
6877 PR fortran/18428
6878 * c.opt: Removed undocumented option '-lang-fortran'.
6879 * c-common.h: Removed global variable 'lang_fortran'.
6880 * c-opts.c (c_common_handle_option): Removed code to handle
6881 option '-lang-fortran'. Updated includes.
6882 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6883 definition of '__GFORTRAN__'.
6884 (define__GNUC__): Reimplemented to use BASEVER and
6885 cpp_define_formatted.
6886 (builtin_define_with_value_n): Removed.
6887 * c-incpath.h: Renamed to ...
6888 * incpath.h: ... this.
6889 * c-incpath.c: Renamed to ...
6890 * incpath.c: ... this. Updated includes.
6891 * fix-header.c: Updated includes.
6892 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6893 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6894 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6895
eba15a75 68962008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6897
6898 * tree.h: Update the table of flags used on tree nodes.
6899 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6900 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6901 (FORCED_LABEL): Add access check.
6902 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6903 (ASM_INPUT_P): Likewise.
6904 (ASM_VOLATILE_P): Likewise.
6905 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6906 (OMP_SECTION_LAST): Access private_flag directly.
6907 (OMP_RETURN_NOWAIT): Likewise.
6908 (OMP_PARALLEL_COMBINED): Likewise.
6909 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6910 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6911 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6912 deprecated_flag directly.
6913
459f72f5 69142008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6915
6916 * final.c (frame_pointer_needed): Removed.
6917 * flags.h (frame_pointer_needed): Likewise.
6918
6919 * function.h (rtl_data): Add frame_pointer_needed.
6920 (frame_pointer_needed): New.
6921
ccf1c0f1 69222008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6923
6924 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6925
ad6cd748 69262008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6927
6928 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6929 SRC is a REG.
6930
eec9c06d 69312008-05-25 Alan Modra <amodra@bigpond.net.au>
6932
6933 * c-common.c (strip_array_types): Move function to..
6934 * tree.c: ..here.
6935 (get_inner_array_type): Delete.
6936 * c-common.h (strip_array_types): Move declaration to..
6937 * tree.h: ..here.
6938 (get_inner_array_type): Delete.
6939 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6940 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6941 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6942 * config/pa/pa.c (emit_move_sequence): Likewise.
6943
d6ceb52b 69442008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6945
6946 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6947 attribute to 34.
6948
6a5dfe57 69492008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6950
6951 * function.c: Include target hook for nonlocal_goto frame value.
6952
a5134ced 69532008-05-24 Richard Guenther <rguenther@suse.de>
6954
6c24dca6 6955 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6956 variable can be only accessed through a pointer or a union.
a5134ced 6957
921b27c0 69582008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6959
6960 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6961 * doc/extend.texi: Likewise.
6962
a8651e7d 69632008-05-23 DJ Delorie <dj@redhat.com>
6964
8e9e5256 6965 * config/m32c/jump.md (untyped_call): Add.
6966
a8651e7d 6967 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6968 for A24 to PSImode.
6969 (m32c_address_cost): Detail costs for indirect offsets.
6970
d37446aa 69712008-05-23 Rafael Espindola <espindola@google.com>
6972
6973 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6974 if a node is a SUBREG.
6975 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6976 is a SUBREG.
6977
658e203c 69782008-05-23 Paul Brook <paul@codesourcery.com>
6979 Carlos O'Donell <carlos@codesourcery.com>
6980
6981 * doc/extend.texi: Clarify use of __attribute__((naked)).
6982 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6983 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6984 * function.c (use_register_for_decl): Use
6985 targetm.calls.allocate_stack_slots_for_args.
6c24dca6 6986 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6987 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
658e203c 6988 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6989
9ca16083 69902008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6991
6992 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6993
e5ae4a00 69942008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6995
6996 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6997 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6998 is only rounded once.
6999
480610cc 70002008-05-23 Richard Guenther <rguenther@suse.de>
7001
6c24dca6 7002 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
480610cc 7003
144c3e90 70042008-05-23 Uros Bizjak <ubizjak@gmail.com>
7005 Jakub Jelinek <jakub@redhat.com>
7006
7007 PR target/36079
7008 * configure.ac: Handle --enable-cld.
7009 * configure: Regenerated.
7010 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
7011 * config/i386/i386.h (struct machine_function): Add needs_cld field.
7012 (ix86_current_function_needs_cld): New define.
7013 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
7014 (cld): New isns pattern.
7015 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
7016 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
7017 * config/i386/i386.opt (mcld): New option.
7018 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
7019 TARGET_CLD and ix86_current_function_needs_cld.
7020 (override_options): Use -mcld by default for 32-bit code if
7021 USE_IX86_CLD.
7022
7023 * doc/install.texi (Options specification): Document --enable-cld.
7024 * doc/invoke.texi (Machine Dependent Options)
6c24dca6 7025 [i386 and x86-64 Options]: Add -mcld option.
7026 (Intel 386 and AMD x86-64 Options): Document -mcld option.
144c3e90 7027
facab2ce 70282008-05-23 Kai Tietz <kai.tietz@onevison.com>
7029 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
7030 (return_in_memory_64): Likewise.
7031 (return_in_memory_ms_64): Likewise.
7032
19fbe3a4 70332008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7034
7035 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
7036 * builtins.c (fold_builtin_fpclassify): New.
7037 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
7038 * builtins.def (BUILT_IN_FPCLASSIFY): New.
7039 * c-common.c (handle_type_generic_attribute): Adjust to accept
7040 fixed arguments before an elipsis.
7041 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
7042 * doc/extend.texi: Document __builtin_fpclassify.
7043
945e498c 70442008-05-22 Aldy Hernandez <aldyh@redhat.com>
7045
7046 * omp-low.c (gate_expand_omp_ssa): Remove.
7047 (pass_expand_omp_ssa): Remove.
7048 (gate_expand_omp): Do not check for flag_openmp_ssa.
7049 * common.opt (-fopenmp-ssa): Remove.
7050 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
7051
d47be40b 70522008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
7053
7054 * config/sh/sh.opt (mfixed-range): New option.
7055 * config/sh/sh-protos.h (sh_fix_range): Declare.
7056 * config/sh/sh.c (sh_fix_range): New function.
7057 * config/sh/sh.h (sh_fixed_range_str): Declare.
7058 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7059 is not empty.
7060 * doc/invoke.texi (SH Options): Document -mfixed-range.
7061
6d528959 70622008-05-22 Kai Tietz <kai.tietz@onevision.com>
7063
7064 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7065 it before the redeclaration.
7066
58f62c92 70672008-05-22 Anatoly Sokolov <aesok@post.ru>
7068
7069 * config/avr/avr.c (get_sequence_length): Add new function.
7070 (expand_prologue, expand_epilogue): Remove duplicate code.
7071
66b0f9ff 70722008-05-22 Rafael Espindola <espindola@google.com>
7073
7074 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7075 sharing.
7076
cbc9c660 70772008-05-22 H.J. Lu <hongjiu.lu@intel.com>
7078
7079 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7080 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7081
7082 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7083 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7084 (vect_update_misalignment_for_peel): Likewise.
7085 (vector_alignment_reachable_p): Likewise.
7086 * tree-vect-transform.c (vectorizable_load): Likewise.
7087 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
144c3e90 7088 (get_vectype_for_scalar_type): Pass mode of scalar_type
7089 to UNITS_PER_SIMD_WORD.
cbc9c660 7090
7091 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7092 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7093 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7094 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7095 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7096
8aee17d5 70972008-05-22 Ira Rosen <irar@il.ibm.com>
7098
7099 PR tree-optimization/36293
7100 * tree-vect-transform.c (vect_transform_strided_load): Don't check
7101 if the first load must be skipped because of a gap.
7102
3391cd1e 71032008-05-22 Richard Guenther <rguenther@suse.de>
7104
7105 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
7106 more cases of offset disambiguation that is possible if
7107 strict-aliasing rules apply.
7108 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7109 for basic offset and type-based disambiguation.
7110
2062830c 71112008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7112
7113 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7114 ix86_expand_vector_set on V16QImode for SSE4.1.
7115
b832fb57 71162008-05-21 Tom Tromey <tromey@redhat.com>
7117
7118 * c.opt (Wimport): Mark as undocumented.
7119 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7120 -Wno-import.
7121 (Warning Options): Likewise.
7122 * doc/cppopts.texi: Don't mention -Wimport.
7123
fa5e5a2f 71242008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7125
7126 PR tree-optimization/36287
7127 PR tree-optimization/36286
7128 * lambda-code.c (build_access_matrix): Do not use the loop->num
7129 for computing the number of induction variables: use the loop depth
7130 instead.
7131
a7a19493 71322008-05-21 Kai Tietz <kai.tietz@onevision.com>
7133
7134 PR/36280
7135 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7136 option -f(no-)leading-underscore.
7137
da17f4f5 71382008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7139
7140 * config/i386/i386.c (ix86_expand_vector_init_general): Use
7141 GET_MODE_NUNITS (mode).
7142
257bc844 71432008-05-21 Peter Bergner <bergner@vnet.ibm.com>
7144
7145 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7146 (-mmulhw): Add 464 to description.
7147 (-mdlmzb): Likewise.
7148 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7149 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7150 464fp entries.
7151 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7152 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7153 * config/rs6000/rs6000.md: Update comments for 464.
7154
f21a7ed8 71552008-05-21 Janis Johnson <janis187@us.ibm.com>
7156
7157 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7158
3ce6ef72 71592008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7160
7161 * config/i386/sse.md (vec_extractv4sf): Removed.
7162 (vec_extractv2df): Likewise.
7163 (vec_extractv2di): Likewise.
7164 (vec_extractv4si): Likewise.
7165 (vec_extractv8hi): Likewise.
7166 (vec_extractv16qi): Likewise.
7167 (vec_extract<mode>): New.
7168
77d27e3a 71692008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7170
7171 * config/i386/sse.md (vec_setv4sf): Removed.
7172 (vec_setv2df): Likewise.
7173 (vec_setv2di): Likewise.
7174 (vec_setv4si): Likewise.
7175 (vec_setv8hi): Likewise.
7176 (vec_setv16qi): Likewise.
7177 (vec_set<mode>): New.
7178
5995ca8e 71792008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7180
7181 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7182 goto for vec_concat and vec_interleave.
7183
c262fafb 71842008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7185
7186 * config/i386/sse.md (vec_initv4sf): Removed.
7187 (vec_initv2df): Likewise.
7188 (vec_initv2di): Likewise.
7189 (vec_initv4si): Likewise.
7190 (vec_initv8hi): Likewise.
7191 (vec_initv16qi): Likewise.
7192 (vec_init<mode>): New.
7193
f3340cb8 71942008-05-21 Joseph Myers <joseph@codesourcery.com>
7195
7196 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7197
dfecde36 71982008-05-21 Tom Tromey <tromey@redhat.com>
7199
7200 * ggc-zone.c (lookup_page_table_if_allocated): New function.
7201 (zone_find_object_offset): Likewise.
7202 (gt_ggc_m_S): Likewise.
7203 (highest_bit): Likewise.
7204 * ggc-page.c (gt_ggc_m_S): New function.
7205 * stringpool.c (string_stack): Remove.
7206 (init_stringpool): Update.
7207 (ggc_alloc_string): Use ggc_alloc.
7208 (maybe_delete_ident): New function.
7209 (ggc_purge_stringpool): Likewise.
7210 (gt_ggc_m_S): Remove.
7211 * ggc-common.c (ggc_protect_identifiers): New global.
7212 (ggc_mark_roots): Call ggc_purge_stringpool. Use
7213 ggc_protect_identifiers.
7214 * ggc.h (ggc_protect_identifiers): Declare.
7215 (gt_ggc_m_S): Update.
7216 (ggc_purge_stringpool): Declare.
7217 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7218 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7219 special case.
7220 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7221
64c6f17e 72222008-05-21 David S. Miller <davem@davemloft.net>
7223
7224 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7225 tmake_file.
7226
66dc78fc 72272008-05-21 Eric Botcazou <ebotcazou@adacore.com>
7228
7229 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7230 once finished.
7231
3499ff60 72322008-05-20 David Daney <ddaney@avtrex.com>
7233
7234 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
144c3e90 7235 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7236 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3499ff60 7237 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7238 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7239 (atomic_hiqi_op): New define_code_iterator.
144c3e90 7240 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
3499ff60 7241 mips_expand_compare_and_swap_12.
7242 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
144c3e90 7243 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
3499ff60 7244 (sync_<optab><mode>, sync_old_<optab><mode>,
7245 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
144c3e90 7246 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
3499ff60 7247 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7248 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
144c3e90 7249 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
3499ff60 7250 (test_and_set_12): New insn.
7251 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7252 sync_new_<optab><mode>, sync_old_nand<mode>,
7253 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
7254 clobber to operand 0 for SI and DI mode insns.
7255 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7256 mips_gen_fn_4): New typedefs.
7257 (mips_gen_fn_ptrs): Define new union type.
7258 (mips_expand_compare_and_swap_12): Remove declaration.
7259 (mips_expand_atomic_qihi): Declare function.
7260 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7261 (mips_expand_atomic_qihi): ... this. Use new generator function
7262 parameter.
7263 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7264 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6c24dca6 7265 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
3499ff60 7266 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7267 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7268 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7269 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7270 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7271 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6c24dca6 7272 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7273 New macros.
3499ff60 7274
ad0a2696 72752008-05-20 H.J. Lu <hongjiu.lu@intel.com>
7276
7277 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7278 the missing break.
7279
a6e595be 72802008-05-20 Anatoly Sokolov <aesok@post.ru>
7281
7282 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7283 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7284 (avr_attribute_table): Add 'OS_main' function attribute.
7285 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7286 functions with 'OS_main' attribute.
7287
000ef0a0 72882008-05-20 Richard Guenther <rguenther@suse.de>
7289
7290 PR tree-optimization/35204
7291 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7292 helper, split out from ...
7293 (DFS): ... here. Make the DFS walk non-recursive.
7294
c968a07c 72952008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7296 Jan Sjodin <jan.sjodin@amd.com>
7297
7298 PR tree-optimization/36181
7299 * tree-parloops.c (loop_has_vector_phi_nodes): New.
7300 (parallelize_loops): Don't parallelize when the loop has vector
7301 phi nodes.
7302
b79b3386 73032008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7304 Sebastian Pop <sebastian.pop@amd.com>
7305
144c3e90 7306 * tree-loop-linear.c (gather_interchange_stats): Look in the access
7307 matrix, and never look at the tree representation of the memory
7308 accesses.
b79b3386 7309 (linear_transform_loops): Computes parameters and access matrices.
144c3e90 7310 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7311 when fails.
b79b3386 7312 (access_matrix_get_index_for_parameter): New.
7313 * tree-data-ref.h (struct access_matrix): New.
7314 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7315 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7316 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7317 am_vector_index_for_loop): New.
7318 (struct data_reference): Add field access_matrix.
7319 (DR_ACCESS_MATRIX): New.
7320 (compute_data_dependences_for_loop): Update declaration.
7321 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7322 * lambda.h (lambda_vector_vec_p): Declared.
7323 * lambda-code.c: Depend on pointer-set.h.
7324 (lambda_collect_parameters_from_af, lambda_collect_parameters,
7325 av_for_af_base, av_for_af, build_access_matrix,
7326 lambda_compute_access_matrices): New.
7327 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7328
79f39dd4 73292008-05-20 Joseph Myers <joseph@codesourcery.com>
7330
7331 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7332 $SOURCEDIR/include.
7333
8ceddf57 73342008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7335 Sebastian Pop <sebastian.pop@amd.com>
7336
7337 PR tree-optimization/36206
7338 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7339 FOLD_CONVERSIONS.
7340 (instantiate_scev_1): Rename flags to fold_conversions.
7341 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7342 outeside instantiation_loop.
7343 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7344 (evolution_function_is_affine_or_constant_p): Removed.
7345 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7346 instantiate_scev.
7347 (analyze_siv_subscript): Pass in the loop nest number.
14eddddd 7348 Call evolution_function_is_affine_in_loop instead of
8ceddf57 7349 evolution_function_is_affine_p.
7350 (analyze_overlapping_iterations): Pass in the loop nest number.
7351
73522008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7353 Sebastian Pop <sebastian.pop@amd.com>
7354
7355 PR tree-optimization/36206
7356 * tree-chrec.h (chrec_fold_op): New.
144c3e90 7357 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7358 and other trees.
8ceddf57 7359
4a01a435 73602008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7361
7362 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7363 (DIRS_EQ): New.
144c3e90 7364 (remove_duplicates): Do not set inode on non-inode systems.
7365 Use DIRS_EQ.
4a01a435 7366
b4b98cc1 73672008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7368
7369 * config.gcc (tm_file): Update comments about relative pathnames.
7370
581f8050 73712008-05-20 Richard Guenther <rguenther@suse.de>
7372
144c3e90 7373 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
581f8050 7374 * tree-ssa-sccvn.c (process_scc): Likewise.
7375 * tree-ssa-sink.c (execute_sink_code): Likewise.
7376 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7377 * tree-vrp.c (process_assert_insertions): Likewise.
7378 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7379 (perform_tree_ssa_dce): Likewise.
7380 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7381 (dump_dominator_optimization_stats): Likewise.
7382 * tree-vectorizer.c (vectorize_loops): Likewise.
7383
fbeb30a9 73842008-05-20 Richard Guenther <rguenther@suse.de>
7385
7386 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7387
29b1845f 73882008-05-20 Kai Tietz <kai.tietz@onevision.com>
7389
7390 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7391 (ix86_i386elf_return_in_memory): Likewise.
7392 (ix86_i386interix_return_in_memory): Likewise.
7393 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7394 (SUBTARGET_RETURN_IN_MEMORY): New.
7395 * config/i386/i386elf.h: Likewise.
7396 * config/i386/ptx4-i.h: Likewise.
7397 * config/i386/sol2-10.h: Likewise.
7398 * config/i386/sysv4.h: Likewise.
7399 * config/i386/vx-common.h: Likewise.
7400 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7401 * config/i386/i386.c (ix86_return_in_memory): Made static and
7402 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7403 (ix86_i386elf_return_in_memory): Removed.
7404 (ix86_i386interix_return_in_memory): Removed.
7405 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7406 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7407
1529d1a4 74082008-05-20 Alexandre Oliva <aoliva@redhat.com>
7409
7410 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7411
63505f79 74122008-05-19 Xinliang David Li <davidxl@google.com>
7413
14eddddd 7414 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
63505f79 7415 * opts.c: Ditto.
7416 * common.opt: Ditto.
7417 * doc/invoke.texi: Ditto.
7418
7c952a13 74192008-05-19 Eric Botcazou <ebotcazou@adacore.com>
7420
7421 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
8084aa18 7422 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7c952a13 7423
740a43a0 74242008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7425
1e79e2f4 7426 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
740a43a0 7427 sizes of operand array from 8/4 to 4/2.
7428 (ix86_expand_vector_init_general): Change size of operand array
7429 from 32 to 16. Remove op0, op1 and half_mode.
7430
75997dc1 74312008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7432
7433 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7434 (ix86_expand_vector_init_interleave): Likewise.
6c24dca6 7435 (ix86_expand_vector_init_general): Use them. Assert
7436 word_mode == SImode when n_words == 4.
75997dc1 7437
83a49fcb 74382008-05-19 Uros Bizjak <ubizjak@gmail.com>
7439
7440 * config/i386/i386.c (ix86_secondary_reload): New static function.
7441 (TARGET_SECONDARY_RELOAD): New define.
7442 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7443 * config/i386/i386.md (reload_outqi): Remove.
7444
c319d56a 74452008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7446
7447 PR middle-end/35509
c319d56a 7448 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7449 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
7450 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7451 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7452 (fold_builtin_1): Likewise.
7453 * builtins.def (BUILT_IN_ISINF_SIGN): New.
7454 c-common.c (check_builtin_function_arguments): Handle
7455 BUILT_IN_ISINF_SIGN.
7456 * doc/extend.texi: Document __builtin_isinf_sign.
7457 * fold-const.c (operand_equal_p): Handle COND_EXPR.
7458
5ec0139d 74592008-05-18 Eric Botcazou <ebotcazou@adacore.com>
7460
7461 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7462 EH cleanup at the end of the pass, search for those that have been
7463 turned into forwarder blocks and do the cleanup on their successor.
7464
7c3ee715 74652008-05-18 Richard Guenther <rguenther@suse.de>
7466
7467 * tree-cfg.c (verify_gimple_expr): Allow conversions from
7468 pointers to sizetype and vice versa.
7469
5ade25c6 74702008-05-18 Xinliang David Li <davidxl@google.com>
7471
7472 * gcc/tree-ssa-dce.c: Coding style fix.
14eddddd 7473 (check_pow): Documentation comment.
5ade25c6 7474 (check_log): Documenation comment. Coding style fix.
7475 (is_unnecessary_except_errno_call): Ditto.
7476 (gen_conditions_for_pow): Ditto.
7477 (gen_conditions_for_log): Ditto.
7478 (gen_shrink_wrap_conditions): Ditto.
7479 (shrink_wrap_one_built_in_calls): Ditto.
7480 * gcc/doc/invoke.texi: Better documentation string.
14eddddd 7481 * ChangeLog: Fix wrong change log entries from
5ade25c6 7482 May 17 checkin on function call DCE.
7483
42073dec 74842008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
7485
5cf36634 7486 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
42073dec 7487
51a32119 74882008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7489
7490 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7491 * df-problems.c (simulation routines): Fixed block comment to
7492 properly say how to add forwards scanning functions.
14eddddd 7493
9609c446 74942008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7495
7496 * tree-inline.c (setup_one_parameter): Remove dead code.
7497
101f2414 74982008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7499
7500 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7501 a BIT_AND_EXPR only for an INTEGER_TYPE.
7502
5ade25c6 75032008-05-17 Xinliang David Li <davidxl@google.com>
7504
7505 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14eddddd 7506 (check_pow, check_log, is_unnecessary_except_errno_call): New
7507 functions to check for eliminating math functions that are pure
5ade25c6 7508 except for setting errno.
7509 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7510 general condition expressions for shrink-wrapping pow/log calls.
7511 (gen_shrink_wrap_conditions): Ditto.
7512 (shrink_wrap_one_built_in_call): Ditto.
7513 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7514 (mark_operand_necessary): If debugging, output if OP is necessary.
7515 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7516 unnecessary.
7517 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7518 opt level >= 2.
7519 * gcc/common.opt: New user flag -ftree-builtin-dce.
7520 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7521
b7746092 75222008-05-16 David S. Miller <davem@davemloft.net>
7523
5cf36634 7524 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
b7746092 7525 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7526
296a3469 75272008-05-16 Uros Bizjak <ubizjak@gmail.com>
7528
7529 PR target/36246
7530 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7531
a1d42f3a 75322008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7533
7534 * ifcvt.c (dead_or_predicable): Rename
7535 df_simulate_one_insn_backwards to df_simulate_one_insn.
7536 * recog.c (peephole2_optimize): Ditto.
83a49fcb 7537 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7538 Ditto.
a1d42f3a 7539 * df.h: Rename df_simulate_one_insn_backwards to
7540 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
7541 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7542 scanning of defs and uses.
7543 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7544 (df_simulate_one_insn_forwards): Removed.
7545
af6cf582 75462008-05-16 Doug Kwan <dougkwan@google.com>
7547
7548 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7549 QNaN & SNaN.
7550 (real_from_string): Handle NaNs and Inf as approriate.
7551
76ee6ef2 75522008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7553
7554 * doc/gty.texi (Source Files Containing Type Information): Note
7555 that headers should appear first in the gtfiles list.
7556
75572008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7558
7559 * tree.def (COND_EXEC): Properly documented this code.
7560
75612008-05-16 Diego Novillo <dnovillo@google.com>
7562
7563 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7564 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7565 the new field.
7566
ec415c45 75672008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7568
7569 * tree-ssa-dse (max_stmt_uid): Removed.
14eddddd 7570 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
ec415c45 7571 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7572 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7573 * function.h (cfun.last_stmt_uid): New field.
7574 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5cf36634 7575 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7576 New functions.
ec415c45 7577 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7578 (create_stmt_ann): Initialize the ann->uid field.
7579 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7580 with new calls.
7581 * tree-flow.h (renumber_gimple_stmt_uids): New function.
7582
c27baad4 75832008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7584
7585 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7586 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7587 (init_empty_tree_cfg): Call it.
7588
75892008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7590
296a3469 7591 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
7592 Update all users.
c27baad4 7593
46412a37 75942008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7595
7596 * doc/invoke.text (-fdump-tree-*-verbose): New option.
7597 * tree-dump.c (dump_options): New verbose option.
7598 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7599 Add verbose dump.
7600 * tree-pass.h (TDF_VERBOSE): New dump flag.
296a3469 7601 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
46412a37 7602 (tree-flow.h): Added include.
296a3469 7603 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
46412a37 7604
cfef164f 76052008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
7606
d4cae31e 7607 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7608
cfef164f 7609 From Jie Zhang <jie.zhang@analog.com>
ec415c45 7610 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
cfef164f 7611 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7612 mcpu=bf561-none and mcpu=bf561-0.2.
7613 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7614 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7615 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7616 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5cf36634 7617 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
296a3469 7618 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
cfef164f 7619 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
7620 option.
7621 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7622 (cputype_selected): Remove.
7623 (bfin_handle_option): Don't use cputype_selected.
7624 (override_options): When no mcpu option, enable all workarounds.
7625 Don't use bfin_workarounds.
7626 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7627 processor type.
7628 (DEFAULT_CPU_TYPE): Don't define.
7629
ae8f99a0 76302008-05-16 Richard Guenther <rguenther@suse.de>
7631
7632 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7633 on deletion of the last stmt.
7634
3bcc6ec5 76352008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7636
7637 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7638 V8HImode for SSE2 and V16QImode for SSE4.1.
7639
9c1bff7a 76402008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7641
7642 * cgraph.h (compute_inline_parameters): Made public.
7643 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7644 variable_generate_summary, function_write_summary,
5cf36634 7645 variable_write_summary, variable_read_summary. Added generate_summary,
7646 write_summary, read_summary.
9c1bff7a 7647 * cgraphunit.c (cgraph_process_new_functions): Changed call from
7648 pass_ipa_inline.function_generate_summary, to
14eddddd 7649 compute_inline_parameters.
9c1bff7a 7650 * ipa-inline.c (compute_inline_parameters): Made public and added
7651 node parameter.
7652 (compute_inline_parameters_for_current): New function.
296a3469 7653 (pass_inline_param): Now calls compute_inline_parameters_for_current.
9c1bff7a 7654 (inline_generate_summary): Removed parameter and made to loop over
7655 all cgraph nodes.
7656 (pass_ipa_inline): Updated for new IPA_PASS structure.
7657 * passes.c (execute_ipa_summary_passes): Now is called once per
7658 pass rather than once per node*pass.
14eddddd 7659
b2afd900 76602008-05-15 Anatoly Sokolov <aesok@post.ru>
7661
14eddddd 7662 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
b2afd900 7663 avr_have_mul_p, avr_asm_only_p): Remove variables.
7664 (avr_override_options): Remove initialization of removed variables.
14eddddd 7665 (avr_file_start): Convert removed variables to fields of
7666 'struct base_arch_s *avr_current_arch'.
b2afd900 7667 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7668 (AVR_HAVE_MUL): (Ditto.).
7669 (AVR_HAVE_MOVW): (Ditto.).
14eddddd 7670 (AVR_HAVE_LPMX): (Ditto.).
7671 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
b2afd900 7672 avr_asm_only_p): Remove declaration.
7673
2fbcc8e9 76742008-05-15 Diego Novillo <dnovillo@google.com>
7675
296a3469 7676 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2fbcc8e9 7677 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7678
d9a71d72 76792008-05-15 Adam Nemet <anemet@caviumnetworks.com>
7680
7681 PR middle-end/36194
296a3469 7682 * combine.c (check_conversion): Rename back to check_promoted_subreg.
7683 Don't call record_truncated_value from here.
7684 (record_truncated_value): Turn it into a for_each_rtx callback.
7685 (record_truncated_values): New function.
7686 (combine_instructions): Call note_uses with record_truncated_values.
14eddddd 7687 Change name of check_conversion to check_promoted_subreg.
d9a71d72 7688
07e23beb 76892008-05-15 Janis Johnson <janis187@us.ibm.com>
7690
7691 * doc/sourcebuild.texi: Document support for torture tests.
7692
e66b310f 76932008-05-15 Uros Bizjak <ubizjak@gmail.com>
7694
7695 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7696 to alternative 4 of operand 2.
7697
9659d177 76982008-05-15 Richard Guenther <rguenther@suse.de>
7699
7700 * tree-pass.h (current_pass): Declare.
7701 (get_pass_for_id): Likewise.
7702 * passes.c (passes_by_id, passes_by_id_size): New globals.
7703 (set_pass_for_id): New function.
7704 (get_pass_for_id): Likewise.
7705 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7706 (execute_function_todo): Flush per function statistics.
7707 * toplev.c (compile_file): Init statistics.
7708 (general_init): Do early statistics initialization.
7709 (finalize): Finish statistics.
7710 * statistics.h (statistics_early_init): Declare.
7711 (statistics_init): Likewise.
7712 (statistics_fini): Likewise.
7713 (statistics_fini_pass): Likewise.
7714 (statistics_counter_event): Likewise.
7715 (statistics_histogram_event): Likewise.
7716 * statistics.c: New file.
7717 * Makefile.in (OBJS-common): Add statistics.o.
7718 (statistics.o): Add dependencies.
7719 * doc/invoke.texi (-fdump-statistics): Document.
7720
7721 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7722 (insert): Likewise.
7723 (execute_pre): Use statistics_counter_event.
7724 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7725 (substitute_and_fold): Increment it. Use statistics_counter_event.
7726
79d869d0 77272008-05-15 Diego Novillo <dnovillo@google.com>
7728
7729 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7730
7731 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7732 * tree-ssa-alias.c (new_type_alias): Remove references to
7733 sub-variables from comment.
7734 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7735
374ba45c 77362008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7737
7738 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7739 attribute to 1 only for insertps alternative.
7740
16f1c0ab 77412008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7742
7743 * config/bfin/bfin.md (loadbytes): New pattern.
7744 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7745 (bfin_init_builtins): Initialize it.
7746 (bdesc_1arg): Add it.
7747
c8357361 77482008-05-15 Sa Liu <saliu@de.ibm.com>
7749
7750 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7751 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7752 * testsuite/lib/target-supports.exp: Add
7753 check_effective_target_fortran_integer_16.
7754
0a619688 77552008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7756
7757 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7758 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7759 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7760 (TARGET_RETURN_IN_MEMORY): Define.
7761
58e1c141 77622008-05-15 Richard Guenther <rguenther@suse.de>
7763
7764 PR middle-end/36244
7765 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7766 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7767 represent unmodifiable vars.
7768
43a3cf90 77692008-05-15 Richard Guenther <rguenther@suse.de>
7770
7771 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7772 INDIRECT_REF and TARGET_MEM_REF.
7773 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7774 TARGET_MEM_REF.
7775
d3d9aac1 77762008-05-15 Uros Bizjak <ubizjak@gmail.com>
7777 H.J. Lu <hongjiu.lu@intel.com>
7778
7779 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7780 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7781 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
7782 insn alternatives. Add missing alternatives.
7783 (*vec_concatv2di_rex64_sse4_1): Likewise.
7784 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7785 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7786 Require TARGET_SSE.
7787
a973ed42 77882008-05-15 Richard Guenther <rguenther@suse.de>
7789
7790 PR tree-optimization/36009
7791 PR tree-optimization/36204
7792 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7793 (determine_invariantness_stmt): Record the loop a store is
7794 always executed in.
7795 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7796 dependency.
7797
9f41aa1d 77982008-05-15 Richard Guenther <rguenther@suse.de>
7799
7800 PR tree-optimization/34330
7801 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7802 through the pointer will alias the SMT.
7803
ea6b825e 78042008-05-14 Andreas Tobler <a.tobler@schweiz.org>
7805
7806 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7807
4f8380cf 78082008-05-14 H.J. Lu <hongjiu.lu@intel.com>
7809
7810 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7811
4d54df85 78122008-05-14 Michael Meissner <michael.meissner@amd.com>
7813 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7814
7815 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7816 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7817 (vashl_optab): New optab for vector/vector shifts.
7818 (vashr_optab): Ditto.
7819 (vlshr_optab): Ditto.
7820 (vrotl_optab): Ditto.
7821 (vrotr_optab): Ditto.
7822 (optab_subtype): New enum for optab_for_tree_code call.
7823 (optab_for_tree_code): Add enum optab_subtype argument.
7824
7825 * optabs.c (optab_for_tree_code): Take an additional argument to
7826 distinguish between a vector shift by a scalar and vector shift by
7827 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
7828 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
7829 vector shift by a vector.
7830 (expand_widen_pattern_expr): Pass additional argument to
7831 optab_for_tree_code.
7832
7833 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7834 vrotl_optab, vrotr_optab.
7835
7836 * expr.c (expand_expr_real_1): Update calls to
7837 optab_for_tree_code to distinguish between vector shifted by a
7838 scalar and vector shifted by a vector.
7839 * tree-vectorizer.c (supportable_widening_operation): Ditto.
7840 (supportable_narrowing_operation): Ditto.
7841 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7842 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7843 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7844 (vect_create_epilog_for_reduction): Ditto.
7845 (vectorizable_reduction): Ditto.
7846 (vectorizable_operation): Ditto.
7847 (vect_strided_store_supported): Ditto.
7848 (vect_strided_load_supported): Ditto.
7849 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7850 * expmed.c (expand_shift): Ditto.
7851
7852 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7853 scalar type.
7854 (ashr@var{m}3): Ditto.
7855 (vashl@var{m}3): Document new vector/vector shift standard name.
7856 (vashr@var{m}3): Ditto.
7857 (vlshr@var{m}3): Ditto.
7858 (vrotl@var{m}3): Ditto.
7859 (vrotr@var{m}3): Ditto.
7860
d3d9aac1 7861 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
4d54df85 7862 (PPERM_INVERT): Ditto.
7863 (PPERM_REVERSE): Ditto.
7864 (PPERM_REV_INV): Ditto.
7865 (PPERM_ZERO): Ditto.
7866 (PPERM_ONES): Ditto.
7867 (PPERM_SIGN): Ditto.
7868 (PPERM_INV_SIGN): Ditto.
7869 (PPERM_SRC1): Ditto.
7870 (PPERM_SRC2): Ditto.
7871
7872 * config/i386/sse.md (mulv2di3): Add SSE5 support.
7873 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7874 allows a memory operand to be the value being added, and split it
7875 to improve vectorization.
7876 (sse5_pmacsdqh_mem): Ditto.
7877 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7878 (sse5_mulv2div2di3_high): Ditto.
7879 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7880 (vec_pack_trunc_v4si): Ditto.
7881 (vec_pack_trunc_v2di): Ditto.
7882 (sse5_pcmov_<mode>): Remove code that tried to use use
7883 andps/andnps instead of pcmov.
7884 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7885 pmacsdqh instructions.
7886 (vec_widen_smult_lo_v4si): Ditto.
7887
7888 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7889 (PPERM_INVERT): Ditto.
7890 (PPERM_REVERSE): Ditto.
7891 (PPERM_REV_INV): Ditto.
7892 (PPERM_ZERO): Ditto.
7893 (PPERM_ONES): Ditto.
7894 (PPERM_SIGN): Ditto.
7895 (PPERM_INV_SIGN): Ditto.
7896 (PPERM_SRC1): Ditto.
7897 (PPERM_SRC2): Ditto.
7898 (ix86_expand_sse_movcc): Move the SSE5 test after the if
7899 true/false tests.
7900 (ix86_expand_int_vcond): If SSE5 generate all possible integer
7901 comparisons.
7902 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7903 says ignore whether the last reference is a memory operand.
7904
79052008-05-14 Michael Meissner <michael.meissner@amd.com>
7906 Paolo Bonzini <bonzini at gnu dot org>
7907
7908 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7909 shift patterns.
7910
d3d9aac1 7911 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
4d54df85 7912 (vlshr<mode>3): Rename from vlshr<mode>3.
7913 (vashr<mode>3): Rename from vashr<mode>3.
7914 (mulv4sf3): Change the names of vector shift patterns.
7915 (mulv4si3): Ditto.
7916 (negv4sf2): Ditt.
7917
7918 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7919 shift insns.
7920
d3d9aac1 7921 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
4d54df85 7922 (SI_SHLHI): Ditto.
7923 (SI_SHL): Ditto.
7924 (SI_SHLI): Ditto.
7925 (SI_ROTH): Ditto.
7926 (SI_ROTHI): Ditto.
7927 (SI_ROT): Ditto.
7928 (SI_ROTI): Ditto.
7929 (SPU_RL_0): Ditto.
7930 (SPU_RL_1): Ditto.
7931 (SPU_RL_2): Ditto.
7932 (SPU_RL_3): Ditto.
7933 (SPU_RL_4): Ditto.
7934 (SPU_RL_5): Ditto.
7935 (SPU_RL_6): Ditto.
7936 (SPU_RL_7): Ditto.
7937 (SPU_SL_0): Ditto.
7938 (SPU_SL_1): Ditto.
7939 (SPU_SL_2): Ditto.
7940 (SPU_SL_3): Ditto.
7941 (SPU_SL_4): Ditto.
7942 (SPU_SL_5): Ditto.
7943 (SPU_SL_6): Ditto.
7944 (SPU_SL_7): Ditto.
7945
7946 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7947 (floatunssidf2_internal): Change vector/vector shift names.
7948 (floatunsdidf2_internal): Ditto.
7949 (mulv8hi3): Ditto.
7950 (ashrdi3): Ditto.
7951 (ashrti3): Ditto.
7952 (cgt_df): Ditto.
7953 (cgt_v2df): Ditto.
7954 (dftsv): Ditto.
7955 (vashl<mode>3): Rename from ashl<mode>3.
7956 (vashr<mode>3): Rename from ashr<mode>3.
7957 (vlshr<mode>3): Rename from lshr<mode>3.
7958 (vrotl<mode>3): Rename from rotl<mode>3.
7959
5c1def65 79602008-05-14 Michael Meissner <michael.meissner@amd.com>
7961
7962 PR target/36224
d3d9aac1 7963 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7964 multiply gives the wrong value when doing widening multiplies.
5c1def65 7965 (vec_widen_smult_lo_v4si): Ditto.
7966
2dd6f9ed 79672008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7968
7969 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7970 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
14eddddd 7971 emit_library_call_value.
2dd6f9ed 7972 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7973 * tree.h (ECF_LIBCALL_BLOCK): Removed.
14eddddd 7974 * calls.c (initialize_argument_information, precompute_arguments,
2dd6f9ed 7975 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7976 (precompute_arguments): Removed flags parameter.
7977 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
14eddddd 7978
77ad2905 79792008-05-14 Richard Guenther <rguenther@suse.de>
7980
7981 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7982 Make sure to register the store if the use is a PHI_NODE.
7983
220144ca 79842008-05-14 Olivier Hainque <hainque@adacore.com>
7985
7986 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7987 memory if the component is to be referenced in BLKmode according
7988 to get_inner_reference.
7989
34a0af10 79902008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7991
7992 * calls.c (emit_library_call_value_1): Restore code clearing
d3d9aac1 7993 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
34a0af10 7994
de4e1ab6 79952008-05-14 Olivier Hainque <hainque@adacore.com>
7996 Nicolas Roche <roche@adacore.com>
7997
7998 * configure.ac: Add support for a "gcc_subdir" variable in
7999 config-lang.in, to denote a subdirectory where the language/GCC
8000 integration files are to be found.
8001 * configure: Regenerate.
8002
a53e5ca3 80032008-05-14 Ira Rosen <irar@il.ibm.com>
8004
8005 PR tree-optimization/36098
8006 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
8007 value for the first load in the group in case of a gap.
8008 (vect_build_slp_tree): Check that there are no gaps in loads.
8009
e29831db 80102008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
8011
8012 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
8013 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
8014 expand_copysign_bit, ): Change call to emit_no_conflict_block to
8015 emit_insn and remove unneeded code to construct extra args.
8016 (emit_no_conflict_block): Removed.
8017 * optabls.h: (emit_no_conflict_block): Removed.
8018 * cse.c (cse_extended_basic_block): Remove search for
d3d9aac1 8019 REG_NO_CONFLICT note.
e29831db 8020 * global.c: Removed incorrect comment added in revision 117.
8021 * expr.c (convert_move): Change call to emit_no_conflict_block to
8022 emit_insn.
8023 * recog.c: Change comments so that they do not mention
8024 REG_NO_CONFLICT.
8025 * local_alloc.c (combine_regs): Removed last parameter.
8026 (no_conflict_p): Removed.
8027 (block_alloc): Removed note, no_conflict_combined_regno and set
8028 local vars. Removed all code to process REG_NO_CONFLICT blocks.
8029 (combine_regs): Removed already_dead and code to look for
8030 REG_NO_CONFLICT notes.
8031 * lower_subreg (remove_retval_note): Removed code to look for
8032 REG_NO_CONFLICT block.
8033 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
8034 (resolve_clobber): Remove code to process libcalls that have
8035 REG_NO_CONFLICT notes.
8036 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
8037 case.
d3d9aac1 8038 * combine.c (can_combine_p, distribute_notes): Removed
8039 REG_NO_CONFLICT case.
8040 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
8041 to emit_insns.
e29831db 8042 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
8043 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
d3d9aac1 8044 Ditto.
e29831db 8045 * reg-notes.def (NO_CONFLICT): Removed.
ea6b825e 8046
b5264126 80472008-05-14 David S. Miller <davem@davemloft.net>
8048
8049 * config/sparc/sparc.c (sparc_profile_hook): If
d3d9aac1 8050 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
b5264126 8051 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
8052 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8053
8ecc497a 80542008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
8055
8056 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8057
b5606623 80582008-05-13 Uros Bizjak <ubizjak@gmail.com>
8059
8060 PR target/36222
8061 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8062 and op1 expansion before vector concat to have less live pseudos.
8063
0f4d0c21 80642008-05-13 H.J. Lu <hongjiu.lu@intel.com>
8065
8066 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8067 ix86_expand_vector_set if supported.
8068
bcaa2770 80692008-05-13 Diego Novillo <dnovillo@google.com>
8070 Kenneth Zadeck <zadeck@naturalbridge.com>
8071
8072 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8073
8074 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8075 phinodes_print_statistics, init_ssanames, fini_ssanames,
b5606623 8076 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8077 release_ssa_name, release_defs, replace_ssa_name_symbol,
bcaa2770 8078 ssanames_print_statistics): Move ...
8079 * tree-flow.h: ... here.
b5606623 8080 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8081 Use FN instead of cfun.
bcaa2770 8082 (make_ssa_name_fn): Rename from make_ssa_name.
b5606623 8083 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
bcaa2770 8084 * tree-flow-inline.h (make_ssa_name): Move from
b5606623 8085 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
bcaa2770 8086 * omp-low.c (expand_omp_parallel):
8087 * tree-flow-inline.h (redirect_edge_var_map_result):
d3d9aac1 8088 * tree-ssa.c (init_tree_ssa): Add argument FN.
8089 Use it instead of cfun. Update all users.
bcaa2770 8090
fb9753dc 80912008-05-13 Tom Tromey <tromey@redhat.com>
8092
8093 PR preprocessor/22168:
8094 * doc/cpp.texi (Top): Update menu.
8095 (Alternatives to Wrapper #ifndef): New node.
8096 (Other Directives): Document deprecation.
8097 (Obsolete Features): Remove menu.
8098 (Assertions): Merge node into Obsolete Features.
8099 (Obsolete once-only headers): Move earlier; rename to Alternatives
8100 to Wrapper #ifndef.
8101 * doc/cppopts.texi: Update.
8102 * c.opt (Wdeprecated): Enable for C and ObjC.
8103 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8104 (C++ Dialect Options): Move -Wno-deprecated from here to...
8105 (Warning Options): ... here.
8106
4b475af8 81072008-05-13 Richard Guenther <rguenther@suse.de>
8108
8109 PR middle-end/36227
8110 * fold-const.c (fold_sign_changed_comparison): Do not allow
8111 changes in pointer-ness.
8112
5bfdcfc8 81132008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
8114
8115 PR target/24713
8116 * config/sh/sh.c (sh_expand_prologue): Don't clear
8117 RTX_FRAME_RELATED_P for push insns.
8118
012da5f6 81192008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
8120
8121 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8122
f2323747 81232008-05-12 Anatoly Sokolov <aesok@post.ru>
8124
8125 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8126 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8127 Use 'machine->is_leaf' instead of 'leaf_func_p'.
8128
b4a46c88 81292008-05-12 H.J. Lu <hongjiu.lu@intel.com>
8130
8131 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8132 (*vec_concatv4sf_sse): This.
8133 (*sse2_concatv2si): Renamed to ...
8134 (*vec_concatv2si_sse2): This.
8135 (*sse1_concatv2si): Renamed to ...
8136 (*vec_concatv2si_sse): This.
8137 (*vec_concatv2di_rex): Renamed to ...
8138 (*vec_concatv2di_rex64): This.
8139 (*vec_concatv2si_sse4_1): New.
8140 (*vec_concatv2di_rex64_sse4_1): Likewise.
8141
5612e2f1 81422008-05-12 Uros Bizjak <ubizjak@gmail.com>
8143
8144 PR rtl-optimization/36111
8145 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8146 that was created for swappable operands.
8147
f1984c57 81482008-05-12 Samuel Tardieu <sam@rfc1149.net>
8149
8150 PR ada/36001
8151 * Makefile.in: Substitute GNATMAKE and GNATBIND.
8152 * configure.ac: Add call to ACX_PROG_GNAT.
8153
63433b97 81542008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
8155
8156 * optc-gen.awk: Fix comment typo.
8157
715b4b24 81582008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8159
8160 * pretty-print.c (pp_integer_with_precision): Use
8161 HOST_LONG_LONG_FORMAT.
8162
16aa7503 81632008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
8164
8165 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
14eddddd 8166
54f3117f 81672008-05-10 H.J. Lu <hongjiu.lu@intel.com>
8168
8169 * config/i386/i386.c (bdesc_ptest): Removed.
8170 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8171 (bdesc_args): Add __builtin_ia32_ptestz128,
8172 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8173 (ix86_init_mmx_sse_builtins): Updated.
8174 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8175 (ix86_expand_builtin): Updated.
8176
9ac19c3a 81772008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
8178
8179 * tree-cfg.c (valid_fixed_convert_types_p): New function.
8180 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8181
058d05d5 81822008-05-10 Uros Bizjak <ubizjak@gmail.com>
8183
8184 * value-prof.c (interesting_stringop_to_profile): Do not
8185 return early for BUILT_IN_MEMPCPY.
8186
9a27561f 81872008-05-09 H.J. Lu <hongjiu.lu@intel.com>
8188
8189 * calls.c (expand_call): Don't use callgraph to increase
8190 preferred_stack_boundary.
8191
8192 * cgraph.h (cgraph_rtl_info): Use unsigned on
8193 preferred_incoming_stack_boundary.
8194
8195 * final.c (rest_of_clean_state): Use unsigned on
8196 preferred_stack_boundary.
8197
14984eca 81982008-05-09 Tom Tromey <tromey@redhat.com>
8199
8200 PR preprocessor/22231:
8201 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8202 proceeding.
8203
5a4b7e1e 82042008-05-09 Uros Bizjak <ubizjak@gmail.com>
8205
8206 PR tree-optimization/36129
5612e2f1 8207 * tree-ssa-ccp.c: Include value-prof.h.
5a4b7e1e 8208 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8209 built-in function was folded to a constant.
5612e2f1 8210 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
5a4b7e1e 8211
afd80ffb 82122008-05-09 Jan Sjodin <jan.sjodin@amd.com>
8213 Sebastian Pop <sebastian.pop@amd.com>
8214
8215 * tree-scalar-evolution.c: Document instantiate_scev.
8216 (instantiate_parameters_1): Renamed instantiate_scev_1.
8217 Don't use the same loop for instantiation_loop and evolution_loop.
8218 (instantiate_scev): New.
8219 (instantiate_parameters): Moved...
8220 (resolve_mixers): Update call to instantiate_scev_1 to pass the
8221 same loop twice. Maintains the semantics for this function.
8222 * tree-scalar-evolution.h (instantiate_scev): Declare.
8223 (instantiate_parameters): ...here. Now static inline.
8224 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8225 instead of resolve_mixers.
8226
5da71d4f 82272008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8228
8229 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8230
72dd6141 82312008-05-09 Tomas Bily <tbily@suse.cz>
8232
8233 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8234 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8235 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8236 * c-common.c (c_common_truthvalue_conversion): Likewise.
8237 * tree-object-size.c (compute_object_offset): Likewise.
8238 * tree-inline.c (estimate_num_insns_1): Likewise.
8239 * varasm.c (const_hash_1, compare_constant, copy_constant)
8240 (compute_reloc_for_constant, output_addressed_constants)
8241 (initializer_constant_valid_p): Likewise.
8242 * c-omp.c (check_omp_for_incr_expr): Likewise.
8243 * gimplify.c (gimplify_expr): Likewise.
8244 * c-typeck.c (c_finish_return): Likewise.
8245 * tree-vectorizer.c (supportable_widening_operation)
8246 (supportable_narrowing_operation): Likewise.
8247 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8248 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8249 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8250 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8251 (descr_info_loc): Likewise.
8252 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8253 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8254 (fold_unary): Likewise.
8255 * builtins.c (get_pointer_alignment): Likewise.
8256 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8257 (instantiate_parameters_1): Likewise.
8258 * tree.c (expr_align, stabilize_reference): Likewise.
8259 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8260 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8261 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8262 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8263 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
5612e2f1 8264 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8265 Likewise.
72dd6141 8266 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8267 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8268 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8269 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8270 (forward_propagate_comparison)
8271 (tree_ssa_forward_propagate_single_use_vars): Likewise.
8272 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8273 * emit-rtl.c (component_ref_for_mem_expr)
8274 (set_mem_attributes_minus_bitpos): Likewise.
8275 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
5612e2f1 8276 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8277 Likewise.
72dd6141 8278 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8279 (build_function_call, pointer_diff, build_compound_expr)
8280 (c_finish_return): Likewise.
8281 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
5612e2f1 8282 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8283 Likewise.
72dd6141 8284 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8285 * expr.c (is_aligning_offset): Likewise.
8286 * tree-ssa-alias.c (is_escape_site): Likewise.
8287 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8288 (check_all_va_list_escapes): Likewise.
8289 * tree-ssa-loop-ivopts.c (determine_base_object)
8290 (determine_common_wider_type): Likewise.
8291 * dojump.c (do_jump): Likewise.
8292 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8293 * tree-gimple.c (is_gimple_cast): Likewise.
8294 * fold-const.c (decode_field_reference, )
8295 (fold_sign_changed_comparison, fold_unary, fold_comparison)
8296 (fold_binary): Likewise.
8297 * tree-ssa-alias-warnings.c (find_alias_site_helper)
8298 (already_warned_in_frontend_p): Likewise.
8299 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8300 * tree.c (really_constant_p, get_unwidened): Likewise.
8301 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8302 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5612e2f1 8303 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8304 Likewise.
8305 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8306 CONVERT_EXPR_P.
72dd6141 8307 (CONVERT_EXPR_P): Define.
8308 (CASE_CONVERT): Define.
14eddddd 8309
0b7b55ea 83102008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8311
8312 PR middle-end/36117
5612e2f1 8313 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8314 (delete_unmarked_insns): When deleting a call, call
0b7b55ea 8315 delete_unreachable_blocks.
8316 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5612e2f1 8317 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8318
70393469 83192008-05-08 Richard Guenther <rguenther@suse.de>
8320
8321 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8322 (-ftree-salias): Likewise.
8323 (salias-max-implicit-fields): Remove param documentation.
8324 (salias-max-array-elements): Likewise.
8325 * tree-pass.h (pass_create_structure_vars): Remove.
8326 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8327 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8328 * tree-ssa-alias.c (create_structure_vars): Remove.
8329 (gate_structure_vars): Likewise.
8330 (pass_create_structure_vars): Likewise.
8331 (gate_build_alias): Likewise.
8332 (pass_build_alias): Adjust to run always and dump the function.
8333 * common.opt (ftree-salias): Hide.
8334 * passes.c (init_optimization_passes): Remove
8335 pass_create_structure_vars, adjust comment.
8336 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8337 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8338 * opts.c (decode_options): Do not set flag_tree_salias.
8339 (common_handle_option): Add OPT_ftree_salias to the backward
8340 compatibility section.
8341
3423d8f7 83422008-05-08 Richard Guenther <rguenther@suse.de>
8343
8344 * tree-flow-inline.h (var_can_have_subvars): Move ...
8345 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8346 * tree-flow.h (var_can_have_subvars): Remove.
8347 (push_fields_onto_fieldstack): Remove.
8348 (sort_fieldstack): Likewise.
8349 (struct fieldoff): Move ...
8350 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8351 alias_set and base_for_components fields.
8352 (sort_fieldstack): Make static.
8353 (push_fields_onto_fieldstack): Likewise. Remove code that
8354 handles anything but RECORD_TYPEs. Remove alias_set and
8355 base_for_components handling.
8356 (create_variable_info_for): Adjust.
8357
15e88abc 83582008-05-08 Seongbae Park <seongbae.park@gmail.com>
2953c811 8359
15e88abc 8360 * common.opt (Wframe-larger-than=): Shorten the help message
8361 to one line.
8362 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8363
7076cb5d 83642008-05-08 Rafael Espindola <espindola@google.com>
8365
8366 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8367 trap.
8368 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8369 trap and that both operands are gimple values.
8370 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8371 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8372 is a fp operation.
8373
25a52e22 83742008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8375
8376 * read-rtl.c (join_c_conditions): Return the first string if the
8377 two strings are equal.
8378
c7a4c804 83792008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8380
8381 * gensupport.h (pred_data): Add a "num_codes" field.
8382 (add_predicate_code): Declare.
8383 * gensupport.c (add_predicate_code): New function.
8384 (std_pred_table): Add an "allows_const_p" field.
8385 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8386 Remove the (incomplete) list of such codes from the codes field.
8387 (init_predicate_table): Use add_predicate_code. Add all
8388 RTX_CONST_OBJs if allows_const_p is true.
8389 * genrecog.c (process_define_predicate): Use add_predicate_code.
8390
40efb338 83912008-05-08 David Daney <ddaney@avtrex.com>
8392 Richard Sandiford <rsandifo@nildram.co.uk>
14eddddd 8393
40efb338 8394 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8395 special case of constant zero operands.
8396 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8397 old and new values. Special case constant zero values.
8398 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8399 fails.
8400 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8401 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8402
f35ba9d1 84032008-05-08 Paolo Bonzini <bonzini@gnu.org>
8404
8405 PR target/36090
8406 * simplify-rtx.c (simplify_plus_minus): Create CONST of
8407 similar RTX_CONST_OBJ before CONST_INT.
8408
fbf51400 84092008-05-08 Steve Ellcey <sje@cup.hp.com>
8410
8411 * stmt.c (expand_stack_restore): Change sa mode if needed.
8412
df2a16e5 84132008-05-08 Richard Guenther <rguenther@suse.de>
8414
8415 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8416 return type to bool.
8417 (ix86_sol10_return_in_memory): Likewise.
8418 (ix86_i386elf_return_in_memory): Likewise.
8419 (ix86_i386interix_return_in_memory): Likewise.
8420 * config/i386/i386.c (ix86_return_in_memory): Likewise.
8421 (ix86_sol10_return_in_memory): Likewise.
8422 (ix86_i386elf_return_in_memory): Likewise.
8423 (ix86_i386interix_return_in_memory): Likewise.
8424
60e2260d 84252008-05-08 Kai Tietz <kai.tietz@onevision.com>
8426
19d05520 8427 PR bootstrap/36180
60e2260d 8428 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8429 fndecl argument.
19d05520 8430 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8431 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8432 declared in front.
60e2260d 8433
2afb4be3 84342008-05-08 Richard Guenther <rguenther@suse.de>
8435
8436 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8437 * tree-data-ref.h (struct dr_alias): Remove subvars field.
8438 (DR_SUBVARS): Remove.
8439 * tree-dfa.c (dump_subvars_for): Remove.
8440 (debug_subvars_for): Likewise.
8441 (dump_variable): Do not dump subvars.
8442 (remove_referenced_var): Do not remove subvars.
8443 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8444 (lookup_subvars_for_var): Remove.
8445 (get_subvars_for_var): Likewise.
8446 (get_subvars_at): Likewise.
8447 (get_first_overlapping_subvar): Likewise.
8448 (overlap_subvar): Likewise.
8449 * tree-flow.h (subvar_t): Remove.
8450 (struct var_ann_d): Remove subvars field.
8451 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8452 argument. Remove special handling of SFTs.
8453 (compute_tag_properties): Likewise.
8454 (set_initial_properties): Likewise.
8455 (compute_call_clobbered): Likewise.
8456 (count_mem_refs): Likewise.
8457 (compute_memory_partitions): Likewise.
8458 (compute_flow_insensitive_aliasing): Likewise.
8459 (setup_pointers_and_addressables): Likewise.
8460 (new_type_alias): Likewise.
8461 (struct used_part): Remove.
8462 (used_portions): Likewise.
8463 (struct used_part_map): Likewise.
8464 (used_part_map_eq): Likewise.
8465 (used_part_map_hash): Likewise.
8466 (free_used_part_map): Likewise.
8467 (up_lookup): Likewise.
8468 (up_insert): Likewise.
8469 (get_or_create_used_part_for): Likewise.
8470 (create_sft): Likewise.
8471 (create_overlap_variables_for): Likewise.
8472 (find_used_portions): Likewise.
8473 (create_structure_vars): Likewise.
8474 * tree.def (STRUCT_FIELD_TAG): Remove.
8475 * tree.h (MTAG_P): Adjust.
8476 (struct tree_memory_tag): Remove base_for_components and
8477 unpartitionable flags.
8478 (struct tree_struct_field_tag): Remove.
8479 (SFT_PARENT_VAR): Likewise.
8480 (SFT_OFFSET): Likewise.
8481 (SFT_SIZE): Likewise.
8482 (SFT_NONADDRESSABLE_P): Likewise.
8483 (SFT_ALIAS_SET): Likewise.
8484 (SFT_UNPARTITIONABLE_P): Likewise.
8485 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8486 (union tree_node): Remove sft field.
8487 * alias.c (get_alias_set): Remove special handling of SFTs.
8488 * print-tree.c (print_node): Remove handling of SFTs.
8489 * tree-dump.c (dequeue_and_dump): Likewise.
8490 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8491 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8492 * tree-predcom.c (set_alias_info): Do not set subvars.
8493 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8494 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8495 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8496 (add_vars_for_offset): Remove.
8497 (add_virtual_operand): Remove special handling of SFTs.
8498 (add_call_clobber_ops): Likewise.
8499 (add_call_read_ops): Likewise.
8500 (get_asm_expr_operands): Likewise.
8501 (get_modify_stmt_operands): Likewise.
8502 (get_expr_operands): Likewise.
8503 (add_to_addressable_set): Likewise.
8504 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8505 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5612e2f1 8506 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2afb4be3 8507 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8508 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8509 (tree_node_structure): Likewise.
8510 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8511 handling of SFTs.
8512 (find_what_p_points_to): Likewise.
8513
8d44e5fa 85142008-05-08 Sa Liu <saliu@de.ibm.com>
8515
8516 * config/spu/spu.md: Fixed subti3 pattern.
8d44e5fa 8517
5949e049 85182008-05-08 Richard Guenther <rguenther@suse.de>
8519
8520 PR middle-end/36154
8521 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8522 sure to create a representative for trailing arrays for PTA.
8523
07018da0 85242008-05-08 Richard Guenther <rguenther@suse.de>
8525
8526 PR middle-end/36172
8527 * fold-const.c (operand_equal_p): Two objects which types
8528 differ in pointerness are not equal.
8529
19d05520 85302008-05-08 Kai Tietz <kai.tietz@onevision.com>
22c61100 8531
8532 * calls.c (compute_argument_block_size): Add argument tree fndecl.
8533 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8534 (emit_library_call_value_1): Add new variable fndecl initialized by
8535 NULL_TREE. It should be the decl type of orgfun, but this information
8536 seems not to be available here, so it uses the default calling abi.
8537 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8538 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8539 by TARGET_RETURN_IN_MEMORY.
8540 * config/i386/i386-interix.h: Likewise.
8541 * config/i386/i386.h: Likewise.
8542 * config/i386/i386elf.h: Likewise.
8543 * config/i386/ptx4-i.h: Likewise.
8544 * config/i386/sol2-10.h: Likewise.
8545 * config/i386/sysv4.h: Likewise.
8546 * config/i386/vx-common.h: Likewise.
8547 * config/cris/cris.h: Removed #if 0 clause.
19d05520 8548 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
22c61100 8549 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8550 argument.
8551 (ix86_sol10_return_in_memory): Likewise.
8552 (ix86_i386elf_return_in_memory): New.
8553 (ix86_i386interix_return_in_memory): New.
8554 * config/mt/mt-protos.h (mt_return_in_memory): New.
8555 * config/mt/mt.c: Likewise.
8556 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8557 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
8558 * config/bfin/bfin.h: Likewise.
8559 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8560 argument.
8561 * config/bfin/bfin.c: Likewise.
8562 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8563 * config/alpha/unicosmk.h: Likewise.
8564 * config/i386/cygming.h: Likewise.
8565 * config/iq2000/iq2000.h: Likewise.
8566 * config/mips/mips.h: Likewise.
8567 * config/mn10300/mn10300.h: Likewise.
8568 * config/rs6000/rs6000.h: Likewise.
8569 * config/score/score.h: Likewise.
8570 * config/spu/spu.h: Likewise.
8571 * config/v850/v850.h: Likewise.
8572 * defaults.h: Likewise.
8573 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
19d05520 8574 * expr.c (emit_block_move): Adjust use of
8575 OUTGOING_REG_PARM_STACK_SPACE.
22c61100 8576 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8577 OUTGOING_REG_PARM_STACK_SPACE.
8578 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8579
957f873e 85802008-05-08 Jakub Jelinek <jakub@redhat.com>
8581
8582 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8583 on OMP_RETURN for OMP_FOR.
8584
845c3089 8585 PR debug/35896
8586 * dwarf2out.c (dw_expand_expr, common_check): Removed.
8587 (fortran_common): New function.
8588 (gen_variable_die): Call fortran_common instead of common_check,
8589 adjust for it returning tree instead of rtx. Formatting.
8590
957f873e 85912008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9c2a0c05 8592
19d05520 8593 PR rtl/7335
8594 PR rtl/33826
8595 * see.c (see_copy_insn): Copy new pure const attributes for new call.
8596 * c-decl.c (merge_decls): Ditto.
8597 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8598 to RTL_CONST_OR_PURE_CALL_P.
8599 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8600 Initialized DECL_LOOPING_CONST_PURE.
8601 (process_call_operands): Set tree_side_effects properly.
8602 * tree.h (TREE_READONLY_DECL_P): Removed.
8603 (DECL_IS_PURE): Renamed to DECL_PURE_P.
8604 (DECL_LOOPING_OR_CONST_P): New macro.
8605 (struct tree_function_decl): Added looping_const_or_pure_p.
8606 (ECF_*) Renumbered.
8607 (ECF_LOOPING_OR_CONST_P): New macro.
8608 * rtlanal.c (pure_const_p): Removed.
8609 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8610 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8611 to RTL_CONST_CALL_P.
8612 * ipa-pure-const.c (pure_const_state_e): Added looping field.
8613 (check_decl, check_tree, check_call, scan_function): Initialize
8614 looping.
8615 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8616 (static_execute): Set looping true for recursive functions.
8617 Undo setting state to IPA_NEITHER for recursive functions.
14eddddd 8618 * cse.c (cse_insn):
19d05520 8619 * ifcvt.c (noce_can_store_speculate_p): Changed
14eddddd 8620 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
19d05520 8621 RTL_CONST_OR_PURE_CALL_P.
8622 * dse.c (scan_insn): Ditto.
8623 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8624 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8625 RTL_CONST_OR_PURE_CALL_P.
8626 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8627 pure_call_p to RTL_CONST_CALL_P.
8628 * gimplify.c (gimplify_call_expr): Clear side effects for
8629 non-looping pure and constant calls.
8630 * calls.c (emit_call_1): Set rtl flags from ecf flags.
8631 (flags_from_decl_or_type): Set ecf flags from decl flags.
8632 (initialize_argument_information): Turn off
8633 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8634 Change const to pure if callee_copies is true rather than just
8635 turning off const.
8636 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8637 way of marking pure calls.
8638 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8639 Remove hack that was supposed to fix pr7335 and remove old
8640 way of marking pure calls.
8641 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8642 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8643 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8644 RTL_CONST_OR_PURE_CALL_P.
8645 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8646 * loop-invariant.c (find_exits, find_invariant_bb): Changed
8647 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8648 * sched-deps.c (schedule_analyze): Ditto.
8649 * rtl.h (struct rtx_def): Use call field, unchanging field, and
8650 return_val field of calls to represent pure and const function info.
8651 (CONST_OR_PURE_CALL_P): Deleted macro.
8652 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8653 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8654 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8655 TREE_READONLY.
8656 * tree-optimize.c (execute_fixup_cfg): Added test for
8657 ECF_LOOPING_CONST_OR_PURE.
8658 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8659 DECL_PURE_P.
8660 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8661 effects for looping pure or const calls.
14eddddd 8662 (verify_gimple_expr): Added verification code.
19d05520 8663 * config/alpha/alpha.c (alpha_legitimize_address,
8664 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8665 RTL_CONST_CALL_P.
8666 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8667 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8668 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8669 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8670 RTL_CONST_OR_PURE_CALL_P.
8671 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8672 and const calls to be deleted.
9c2a0c05 8673
19d05520 86742008-05-07 Uros Bizjak <ubizjak@gmail.com>
7c839b3f 8675
8676 PR target/35714
8677 * config/i386/mmx.md (mmx_subv2sf3): New expander.
8678 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8679 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8680 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8681 to handle nonimmediate operands.
8682 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8683 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
8684 to handle nonimmediate operands.
8685 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8686 (mmx_pmulhrwv4hi3): New expander. Use
8687 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8688 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8689 (sse2_umulv1siv1di3): New expander. Use
8690 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8691 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8692 (mmx_eq<mode>3): New expander. Use
8693 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8694 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8695 (mmx_uavgv8qi3): New expander. Use
8696 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8697 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8698 (mmx_uavgv4hi3): New expander. Use
8699 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8700
8701 * config/i386/sse.md
2485795e 8702 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7c839b3f 8703 to handle nonimmediate operands.
2485795e 8704 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7c839b3f 8705 to handle nonimmediate operands.
2485795e 8706 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7c839b3f 8707 to handle nonimmediate operands.
2485795e 8708 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7c839b3f 8709 to handle nonimmediate operands.
2485795e 8710 (sse2_unpckhpd_exp): New expander. Use
7c839b3f 8711 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2485795e 8712 (sse2_unpcklpd_exp): New expander. Use
7c839b3f 8713 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2485795e 8714 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7c839b3f 8715 to handle nonimmediate operands.
7c839b3f 8716 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
8717 to handle nonimmediate operands.
8718 (*sse2_<plusminus_insn><mode>3): Rename from
8719 sse2_<plusminus_insn><mode>3 insn pattern.
8720 (sse2_<plusminus_insn><mode>3): New expander. Use
8721 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8722 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8723 (sse2_umulv2siv2di3): New expander. Use
8724 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8725 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8726 (sse4_1_mulv2siv2di3): New expander. Use
8727 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8728 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8729 (sse2_pmaddwd): New expander. Use
8730 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8731 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8732 (sse2_eq<mode>3): New expander. Use
8733 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8734 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8735 (sse4_1_eqv2di3): New expander. Use
8736 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8737 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8738 (sse2_uavgv16qi3): New expander. Use
8739 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8740 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8741 (sse2_uavgv16qi3): New expander. Use
8742 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8743 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8744 (sse2_uavgv8hi3): New expander. Use
8745 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8746 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8747 (ssse3_pmulhrswv8hi3): New expander. Use
8748 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8749 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8750 (ssse3_pmulhrswv4hi3): New expander. Use
8751 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8752
8753 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8754 (<sse>_vmmul<mode>3): Ditto.
8755 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8756 (divv2df3): Ditto.
8757 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8758 (ssse3_pmaddubsw): Ditto.
8759
2485795e 8760 * config/i386/i386.c (struct_builtin_description)
8761 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8762 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8763 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8764 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8765 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8766 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8767 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8768 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8769 (ix86_fixup_binary_operands): Assert that src1
7c839b3f 8770 and src2 must have the same mode when swapped.
8771 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8772 and ix86_binary_operator_ok. Do not force operands in registers
8773 when optimizing.
8774
c4d6511c 87752008-05-07 Jan Hubicka <jh@suse.cz>
8776
8777 * cgraph.c (dump_cgraph_node): Update.
8778 * cgraph.h (cgraph_local_info): Break out inline summary.
8779 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8780 hook.
8781 * ipa-inline (inline_summary): New accestor function.
8782 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8783 cgraph_decide_inlining, compute_inline_parameters): Update.
8784 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8785
3c904dda 87862008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8787
8788 Cleanup ColdFire scheduling support and add V4 pipeline model.
8789
8790 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8791 (define_attr cpu): Add cfv4 value.
8792 (define_attr type, define_attr type1): Merge into a single 'type'
8793 attribute. Update all uses.
8794 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8795 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
8796 Update all uses.
8797 (define_attr opx_mem, define_attr opy_mem): Remove.
8798 (define_attr op_mem): Clean up, update comment.
8799 (define_attr size): Use specific values instead of general int.
8800 (define_attr guess, define_attr split): Remove. Update all uses.
8801 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8802 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8803 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8804 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8805 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8806 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8807 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8808 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8809 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8810 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8811 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8812 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8813 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8814 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8815 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8816 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8817 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8818 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8819 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8820 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8821 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8822 Update or set attributes.
8823 (stack_tie): New fake instruction.
8824
8825 * config/m68k/m68k.h (TUNE_CFV4): New macro.
8826 (m68k_sched_attr_size): Update declaration.
8827 (m68k_sched_attr_type2): Remove.
8828 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8829 Declare new bypass predicates.
8830
8831 * config/m68k/m68k.c (m68k_sched_issue_rate,
8832 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8833 implementations.
8834 (TARGET_SCHED_ISSUE_RATE,
8835 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8836 (override_options): Handle scheduling for ColdFire V4 core.
8837 (m68k_expand_prologue): Emit stack_tie.
8838 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8839 'OP_TYPE_FPN'. Update all uses.
8840 (sched_guess_p): Remove.
8841 (sched_address_type): Handle symbolic addresses.
8842 (sched_get_operand): New static function.
8843 (sched_operand_type): Merge into sched_attr_op_type.
8844 (sched_attr_op_type): Handle FP registers, handle quick constants,
8845 update.
8846 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8847 (m68k_sched_attr_size): Update. Move logic to ...
8848 (sched_get_attr_size_int): New static function.
8849 (sched_get_opxy_mem_type): New static function.
8850 (m68k_sched_attr_op_mem): Update.
8851 (m68k_sched_attr_type2): Remove.
8852 (sched_cfv4_bypass_data): New static variable.
8853 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8854 (m68k_sched_issue_rate): Implement scheduler hook.
8855 (struct _sched_ib: enabled_p): New field.
8856 (m68k_sched_variable_issue): Update. Handle V4.
8857 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8858 sched_dump_class_func_t, sched_dump_split_class,
8859 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8860 sched_dump_dfa_class, m68k_sched_dump): Remove.
8861 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8862 hook.
8863 (m68k_sched_init_global): Remove statisctics dumping, introduce
8864 sanity check that all instructions have pipeline reservations. Handle
8865 ColdFire V4 core.
8866 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8867 Handle ColdFire V4 core.
8868 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8869 New static functions.
8870 (m68k_sched_address_bypass_p): New bypass predicate.
8871 (sched_get_indexed_address_scale): New static function.
8872 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8873
8874 * cf.md: Update comments.
8875 (define_attr type2): Remove. Use 'type' attribute instead.
8876 Update all uses.
8877 (cf_ib): Rename to cfv123_ib. Update all uses.
8878 (cf_oep): Rename to cfv123_oep. Update all uses.
8879 (cf_chr): Rename to cfv123_chr. Update all uses.
8880 (cf_mem): Rename to cfv123_mem. Update all uses.
8881 (cf_mac): Move to more appropriate place.
8882 (cfv123_guess): New automaton and cpu_unit.
8883 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8884 Update uses of 'size' attribute. Handle before reload scheduling.
8885 (cfv123_guess): New dummy reservation for unhandled instructions.
8886 (cfv4_*): Pipeline description of ColdFire V4 core.
8887 (ignore): New reservation to handle 'ignore' type.
8888
7de2c0c8 88892008-05-07 Ian Lance Taylor <iant@google.com>
8890
8891 PR middle-end/36013
8892 * gimplify.c (find_single_pointer_decl_1): Don't look through
8893 indirections.
8894 (find_single_pointer_decl): Adjust comments.
8895
790368c5 88962008-05-07 Jakub Jelinek <jakub@redhat.com>
8897
7db628eb 8898 PR middle-end/36137
8899 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8900 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8901
790368c5 8902 PR middle-end/36106
8903 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8904 integral type rather than floating point, then VIEW_CONVERT_EXPR
8905 to the floating point type.
8906
790368c5 89072008-05-07 Uros Bizjak <ubizjak@gmail.com>
c08d707d 8908
8909 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8910 TFmode op0 to register.
8911
333adf28 89122008-05-07 Alan Modra <amodra@bigpond.net.au>
8913
8914 * c-decl.c (grokdeclarator): Comment typo.
8915
7231cbf7 89162008-05-06 Aldy Hernandez <aldyh@redhat.com>
8917
8918 * tree-flow.h: Remove prototype for computed_goto_p.
8919 * tree-cfg.c (computed_goto_p): Make static.
8920
1b57040b 89212008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8922
8923 PR target/35657
4e82296c 8924 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1b57040b 8925 (contains_aligned_value_p): This. Handle _Decimal128.
8926 (ix86_function_arg_boundary): Only align _Decimal128 to its
8927 natural boundary and handle it properly.
8928
d60eadfa 89292008-05-06 Martin Jambor <mjambor@suse.cz>
8930
1b57040b 8931 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8932 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8933 (ipcp_method_set_orig_node): Removed.
8934 (ipcp_cval_get_cvalue_type): Removed.
8935 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8936 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8937 (ipcp_cval_set_cvalue_type): Removed.
8938 (ipcp_cval_get_cvalue): Removed.
8939 (ipcp_cval_set_cvalue): Removed.
8940 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8941 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8942 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8943 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8944 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8945 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8946 (ipcp_get_ith_lattice): Changed parameters.
8947 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8948 (ipcp_lattice_from_jfunc): Changed parameters.
d60eadfa 8949 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8950 (ipcp_method_cval_print): Added temporary variable info.
8951 (ipcp_redirect): Removed already unused local variable caller.
8952 (ipcp_redirect): New temporary variable orig_callee_info
8953 (ipcp_redirect): Removed newly unused local variable callee.
8954 (ipcp_redirect): Removed (a bit confusing) local variable type.
8955 (ipcp_insert_stage): Added local variable info.
14eddddd 8956 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
d60eadfa 8957 renamed too
8958 (ipcp_formal_create): Removed.
8959 (ipcp_method_cval_set): Removed.
8960 (ipcp_propagate_stage): Renamed lattice variables.
8961 (ipcp_method_cval_set_cvalue_type): Removed.
8962 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14eddddd 8963 (ipcp_print_all_lattices): Changed printed strings to refer to
d60eadfa 8964 lattices rather than cvals.
8965 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8966 (ipcp_propagate_const): Changed formal parameters.
8967 (build_const_val): Changed formal parameters.
8968 (ipcp_insert_stage): Removed useless variable cvalue
8969 (build_const_val): Changed formal parameters.
8970 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8971 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8972 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8973 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14eddddd 8974 (ipcp_print_func_profile_counts): Changed string from "method" to
d60eadfa 8975 "function"
8976 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8977 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8978 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8979 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8980 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8981 (ipcp_lat_is_const): Changed parameters and made inline.
8982 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8983 (ipcp_redirect): Renamed to ipcp_need_redirect_p
14eddddd 8984 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
d60eadfa 8985 the predicate condition directly
8986 (ipcp_propagate_stage): Added local variable args. Removed local
8987 variable callee. (Both are mere code simplifications.)
8988 (ipcp_method_dont_insert_const): Renamed to
8989 ipcp_node_not_modifiable_p.
8990 (ipcp_node_not_modifiable_p): Made inline.
8991 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8992 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8993 (ipcp_print_all_lattices): Removed variable cvalue
8994 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8995 Updated comments.
8996
b257ce27 89972008-05-06 Olivier Hainque <hainque@adacore.com>
8998
8999 * tree-sra.c (try_instantiate_multiple_fields): Early return
9000 if field has POINTER_TYPE.
9001
f3d1e86a 90022008-05-06 Kai Tietz <kai.tietz@onevision.com>
9003
9004 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
9005 by using 'q' specifier for instruction.
9006 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
9007
6c87a432 90082008-05-06 Anatoly Sokolov <aesok@post.ru>
9009
9010 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9011 Change mode of zero_extract from QImode to HImode.
9012 (sign bit tests peepholes): (Ditto.).
9013
2886ab73 90142008-05-06 Uros Bizjak <ubizjak@gmail.com>
9015
9016 * config/i386/mmx.md: Remove double backslashes from asm templates.
4e82296c 9017 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2886ab73 9018 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9019 to handle nonimmediate operands.
4e82296c 9020 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2886ab73 9021 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9022 to handle nonimmediate operands.
4e82296c 9023 (*mmx_<code>v2sf3_finite): New insn pattern.
9024 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2886ab73 9025 (mmx_<code>v2sf3): New expander. Use
9026 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9027 (mmx_<plusminus_insn><mode>3): New expander. Use
9028 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4e82296c 9029 (*mmx_<plusminus_insn><mode>3): New insn pattern.
2886ab73 9030 (mmx_add<mode>3): Removed.
9031 (mmx_ssadd<mode>3): Ditto.
9032 (mmx_usadd<mode>3): Ditto.
9033 (mmx_sub<mode>3): Ditto.
9034 (mmx_sssub<mode>3): Ditto.
9035 (mmx_ussub<mode>3): Ditto.
4e82296c 9036 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2886ab73 9037 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
9038 to handle nonimmediate operands.
4e82296c 9039 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2886ab73 9040 insn pattern.
9041 (mmx_smulv4hi3_highpart): New expander. Use
9042 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4e82296c 9043 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2886ab73 9044 insn pattern.
9045 (mmx_umulv4hi3_highpart): New expander. Use
9046 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4e82296c 9047 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2886ab73 9048 (mmx_<code>v4hi3): New expander. Use
9049 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4e82296c 9050 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2886ab73 9051 (mmx_<code>v8qi3): New expander. Use
9052 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4e82296c 9053 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2886ab73 9054 (mmx_<code><mode>3): New expander. Use
9055 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9056
0300832e 90572008-05-05 Jan Hubicka <jh@suse.cz>
9058
9059 PR tree-optimization/36118
9060 * passes.c (pass_init_dump_file): Fix dump header.
9061
6ec63422 90622008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9063
9064 PR middle-end/36141
2886ab73 9065 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9066 VCE for function decls.
6ec63422 9067
e0b803aa 90682008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9069
9070 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9071
801ff5b2 90722008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9073
9074 * config/i386/i386.md (sat_plusminus): New.
9075 (plusminus_insn): Likewise.
9076 (plusminus_mnemonic): Likewise.
9077 (addsub): Removed.
9078 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9079 (*<addsub><mode>3_cc_overflow): Renamed to ...
9080 (*<plusminus_insn><mode>3_cc_overflow): This.
9081 (*<addsub>si3_zext_cc_overflow): Renamed to ...
9082 (*<plusminus_insn>si3_zext_cc_overflow): This.
9083
e0b803aa 9084 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
801ff5b2 9085 (<plusminus_insn><mode>3): This.
9086 (*<addsub><mode>3): Renamed to ...
9087 (*<plusminus_insn><mode>3): This.
9088 (<sse>_vm<addsub><mode>3): Renamed to ...
9089 (<sse>_vm<plusminus_insn><mode>3): This.
9090 (sse3_h<addsub>v4sf3): Renamed to ...
9091 (sse3_h<plusminus_insn>v4sf3): This.
9092 (sse3_h<addsub>v2df3): Renamed to ...
9093 (sse3_h<plusminus_insn>v2df3): This.
9094 (<plusminus_insn><mode>3): New.
9095 (*<plusminus_insn><mode>3): Likewise.
9096 (sse2_<plusminus_insn><mode>3): Likewise.
9097 (add<mode>): Removed.
9098 (*add<mode>3): Likewise.
9099 (sse2_ssadd<mode>3): Likewise.
9100 (sse2_usadd<mode>3): Likewise.
9101 (sub<mode>3): Likewise.
9102 (*sub<mode>3): Likewise.
9103 (sse2_sssub<mode>3): Likewise.
9104 (sse2_ussub<mode>3): Likewise.
9105
2915f97e 91062008-05-05 Benjamin Kosnik <bkoz@redhat.com>
9107
801ff5b2 9108 * gthr-single.h: Add in required interface elements as per gthr.h.
9109 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9110 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14eddddd 9111 Generalize UNUSED macro.
801ff5b2 9112 (__gthread_once): Add.
9113 (__gthread_key_create): Add.
2886ab73 9114 (__gthread_key_delete): Add.
801ff5b2 9115 (__gthread_getspecific): Add.
2886ab73 9116 (__gthread_setspecific): Add.
14eddddd 9117
50f39ec6 91182008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
9119
2915f97e 9120 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9121 the same size types for the indirect reference on the rhs, then
9122 create a VCE.
50f39ec6 9123
56dffa8c 91242008-05-05 Uros Bizjak <ubizjak@gmail.com>
9125
9126 * config/i386/i386.md
9127 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9128 one insn template instead of template series.
9129 (*xordi_1_rex64): Ditto.
9130 (*xordi_2_rex64): Ditto.
9131
960a79c4 91322008-05-05 Ira Rosen <irar@il.ibm.com>
9133
56dffa8c 9134 PR tree-optimization/36119
960a79c4 9135 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9136 in case of SLP.
9137
7309a3bb 91382008-06-04 Jan Hubicka <jh@suse.cz>
9139
9140 tree-optimization/36100
9141 * tree-pass.h (pass_O0_always_inline): Declare.
9142 * ipa-inline.c (inline_transform): Remove dead code.
9143 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9144 pass_O0_always_inline): New.
9145 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9146
a3d42209 91472008-05-04 Kai Tietz <kai.tietz@onevision.com>
9148
9149 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9150 mnemonic in this_param move for TARGET_64BIT.
9151
501ec29a 91522008-05-04 Uros Bizjak <ubizjak@gmail.com>
9153
9154 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9155 (*strmovsi_rex_1): Ditto.
9156 (*strsetsi_1): Ditto.
9157 (*strsetsi_rex_1): Ditto.
9158
9159 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9160 adddicc expanders using SWI mode iterator.
9161
bb157d27 91622008-05-04 H.J. Lu <hongjiu.lu@intel.com>
9163
9164 PR target/36121
501ec29a 9165 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9166 argument handling.
bb157d27 9167
1168681b 91682008-05-04 David S. Miller <davem@davemloft.net>
9169
9170 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9171 (sparc*-*-linux*): Use linux.h in tm_file.
9172 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9173 compiler defaulting to 32-bit.
9174 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9175 no longer needed.
9176 * config/sparc/linux.h: Remove definitions now obtained
9177 properly from linux.h
9178 * config/sparc/linux64.h: Likewise.
9179 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9180 don't want this setting for 32-bit builds in a biarch compiler.
9181 * doc/install.texi: Add sparc-linux to list of targets
9182 supporting --enable-targets=all.
9183
94f4bf58 91842008-05-03 Andrew Pinski <pinskia@gmail.com>
9185
9186 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9187
31f7fbf0 91882008-05-03 H.J. Lu <hongjiu.lu@intel.com>
9189
9190 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9191 after V4SI_FTYPE_V8HI.
9192 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9193 case V4SI_FTYPE_V2DF.
9194
957f873e 91952008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1449dbde 9196
9197 * doc/invoke.texi (max-flow-memory-locations): Removed.
9198 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14eddddd 9199
e629070d 92002008-05-03 Richard Guenther <rguenther@suse.de>
9201
9202 PR middle-end/34973
9203 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9204
bbb5db40 92052008-05-02 David S. Miller <davem@davemloft.net>
9206
9207 * config.gcc (need_64bit_hwint): Document libcpp dependency.
9208
8e31b4b2 92092008-05-02 Simon Baldwin <simonb@google.com>
9210
9211 PR bootstrap/36108
9212 * c-common.h (warn_array_subscript_range): Removed.
9213 * c-common.c (warn_array_subscript_range): Ditto.
9214 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9215 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9216
875a66b2 92172008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9218
9219 * config/i386/i386.c (ix86_special_builtin_type): New.
9220 (bdesc_special_args): Likewise.
9221 (ix86_expand_special_args_builtin): Likewise.
9222 (ix86_init_mmx_sse_builtins): Updated.
9223 (ix86_expand_builtin): Updated.
9224 (ix86_expand_store_builtin): Removed.
9225 (ix86_expand_unop_builtin): Likewise.
9226
9227 * config/i386/mm3dnow.h (__v2sf): Moved to ...
9228 * config/i386/mmintrin.h (__v2sf): Here.
9229
9230 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9231 const __v2sf.
9232 (_mm_loadl_pi): Likewise.
9233 (_mm_storeh_pi): Replace __v2si with __v2sf.
9234 (_mm_storel_pi): Likewise.
9235
9236 * doc/extend.texi: Correct __builtin_ia32_loadhps,
9237 __builtin_ia32_loadlps, __builtin_ia32_storehps,
9238 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9239 __builtin_ia32_loadlpd.
9240
92412008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9242
9243 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9244 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9245 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
9246 (ix86_init_mmx_sse_builtins): Updated.
9247 (ix86_expand_args_builtin): Likewise.
9248 (ix86_expand_builtin): Likewise.
9249 (ix86_expand_unop1_builtin): Renamed to ...
9250 (ix86_expand_unop_vec_merge_builtin): This.
9251
fba7ae09 92522008-05-01 Jan Hubicka <jh@suse.cz>
9253
9254 PR bootstrap/36100
9255 * ipa-inline.c (inline_generate_summary): Make static.
9256 (inline_transform): Do not call inlining at -O0; make static.
9257 * passes.c (execute_todo): Add sanity check.
9258 (execute_one_ipa_transform_pass): Execute proper flags.
9259
c67bf066 92602008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9261
9262 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9263 (DECL_NONADDRESSABLE_P): Likewise.
9264 * alias.c (record_component_aliases): Fix comment.
9265
98cb064a 92662008-05-01 Simon Baldwin <simonb@google.com>
9267
9268 * c-common.h (warn_array_subscript_range): New function.
9269 * c-common.c (warn_array_subscript_range): Ditto.
9270 * tree-vrp.c (check_array_ref): Corrected code to agree with
9271 comment, ignoring only arrays of size 0 or size 1.
9272 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9273
49698f18 92742008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9275
9276 * config/i386/i386.c (ix86_builtin_type): Replace
9277 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9278 (bdesc_args): Updated.
9279 (ix86_init_mmx_sse_builtins): Likewise.
9280 (ix86_expand_args_builtin): Likewise.
9281
9282 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9283 with __v1di.
9284
9285 * doc/extend.texi: Correct __builtin_ia32_palignr.
9286
2424d00f 92872008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9288
9289 PR target/36095
9290 * config/i386/i386.c (bdesc_crc32): Removed.
9291 (ix86_expand_crc32): Likewise.
9292 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9293 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9294 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
9295 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9296 UINT_FTYPE_UINT_UCHAR.
9297 (bdesc_args): Updated. Add crc32 builtins.
9298 (ix86_init_mmx_sse_builtins): Updated.
9299 (ix86_expand_args_builtin): Updated to support subreg.
9300
9301 * doc/extend.texi: Correct __builtin_ia32_crc32di.
9302
68e3904e 93032008-05-01 Jan Hubicka <jh@suse.cz>
9304
9305 * tree-pass.h (opt_pass): Add IPA_PASS.
9306 (varpool_node, cgraph_node): Forward declare.
9307 (ipa_opt_pass): Define.
9308 (pass_ipa_inline): Turn into ipa_opt_pass.
9309 (pass_apply_inline): Remove.
9310 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9311 (apply_inline): Turn into ....
9312 (inline_transform): ... this one.
9313 (inline_generate_summary): New function.
9314 (pass_apply_inline): Remove.
9315 * function.h (ipa_opt_pass): Forward declare structure; typedef;
9316 vector.
9317 (struct function): Add ipa_transforms_to_apply.
9318 * passes.c (register_one_dump_file): Work on IPA_PASS.
9319 (init_optimization_passes): Remove pass_inline_parameters and
9320 pass_apply_inline.
9321 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9322 (execute_one_pass) ... here; apply transforms when possible.
9323 (add_ipa_transform_pass, execute_ipa_summary_asses,
9324 execute_one_ipa_transform_pass): New.
9325 (execute_ipa_pass_list): Update for IPA_PASS type.
9326
95a18f4e 93272008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9328
9329 * config/i386/i386.c (ix86_builtin_type): Add
9330 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9331 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9332 (bdesc_args): Add SSE4a builtins.
9333 (ix86_init_mmx_sse_builtins): Updated.
9334 (ix86_expand_args_builtin): Likewise.
9335 (ix86_expand_builtin): Likewise.
9336
30063220 93372008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9338
9339 * config/i386/i386.c (ix86_builtin_type): Add
9340 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9341 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9342 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9343 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9344 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9345 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9346 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9347 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9348 and DI_FTYPE_DI_DI_INT.
9349 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9350 (ix86_init_mmx_sse_builtins): Updated.
9351 (ix86_expand_args_builtin): Likewise.
9352 (ix86_expand_builtin): Likewise.
9353 (ix86_expand_binop_imm_builtin): Removed.
9354
9355 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9356
acc0a673 93572008-04-30 Richard Guenther <rguenther@suse.de>
9358
9359 PR tree-optimization/32921
9360 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9361
6025a5e6 93622008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9363
9364 * config/arm/arm.c (arm_unwind_emit): Use
9365 crtl->all_throwers_are_sibcalls instead of
9366 cfun->all_throwers_are_sibcalls.
9367 (arm_output_fn_unwind): Likewise.
9368 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9369 instead of cfun->uses_pic_offset_table.
9370 (frv_expand_prologue): Likewise.
9371 (frv_frame_pointer_required): Likewise.
9372 (frv_expand_fdpic_call): Likewise.
9373 (frv_emit_movsi): Likewise.
9374 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9375 cfun->returns_pcc_struct instead of
9376 current_function_returns_pcc_struct.
9377 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9378 instead of cfun->calls_eh_return.
9379 (m32c_pushm_popm): Likewise.
9380 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9381 "extern" declaration.
9382
912f109f 93832008-04-30 Richard Guenther <rguenther@suse.de>
9384
9385 PR tree-optimization/21636
9386 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9387 constant address.
9388 (evaluate_stmt): Print the likely value.
9389 (ccp_visit_stmt): Avoid excessive vertical spacing.
9390
55c10931 93912008-04-30 Rafael Espindola <espindola@google.com>
9392
9393 * builtins.c (fold_call_expr): Return realret.
9394 * tree-ssa-threadedge.c
9395 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9396 __builtin_object_size.
9397
0bfd146e 93982008-04-30 Seongbae Park <seongbae.park@gmail.com>
9399
9400 * gcc.c (wrapper_string): New variable.
9401 (insert_wrapper): New function.
9402 (execute): New option -wrapper.
9403 * doc/invoke.texi (Overall Options): New driver option -wrapper.
9404
19872d0b 94052008-04-30 Nathan Froyd <froydnj@codesourcery.com>
9406
501ec29a 9407 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9408 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9409 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9410 from...
9411 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
9412 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9413 config/rs6000/e500crtres64gprctr.asm,
9414 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9415 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9416 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9417 config/rs6000/e500crtsav64gprctr.asm,
9418 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9419 config/rs6000/e500crtsavg64gprctr.asm: New files.
9420 * config/rs6000/t-ppccomm: Add build rules for new files.
9421 (LIB2FUNCS_STATIC_EXTRA): Add new files.
9422 * config/rs6000/t-netbsd: Add build rules for new files.
9423 (LIB2FUNCS_STATIC_EXTRA): New variable.
9424 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9425 (CRTSAVRES_DEFAULT_SPEC): Likewise.
9426 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
19872d0b 9427
6f50184d 94282008-04-30 H.J. Lu <hongjiu.lu@intel.com>
9429
9430 * config/i386/i386.c (ix86_builtin_type): Add
9431 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9432 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9433 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9434 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9435 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9436 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9437 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9438 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9439 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9440 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9441 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9442 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9443 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9444 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9445 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9446 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9447 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9448 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9449 V1DI_FTYPE_V2SI_V2SI.
9450 (bdesc_2arg): Moved to ...
9451 (bdesc_args): Here.
9452 (ix86_init_mmx_sse_builtins): Updated.
9453 (ix86_expand_args_builtin): Updated. Take a pointer
9454 to const struct builtin_description. Handle comparison
9455 builtin functions.
501ec29a 9456 (ix86_expand_sse_compare): Take a new argument for swapping operands.
6f50184d 9457 (ix86_expand_builtin): Updated.
9458
9459 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9460 (ssse3_pmaddubsw128): This.
9461 (ssse3_pmaddubswv4hi3): Renamed to ...
9462 (ssse3_pmaddubsw): This.
9463
501ec29a 9464 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
6f50184d 9465 (__builtin_ia32_packssdw128): Likewise.
501ec29a 9466 (__builtin_ia32_packuswb128): Likewise.
6f50184d 9467 (__builtin_ia32_pmaddubsw): Likewise.
9468 (__builtin_ia32_pmaddubsw128): Likewise.
9469
c9686d06 94702008-04-30 Richard Guenther <rguenther@suse.de>
9471
9472 PR tree-optimization/14847
9473 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9474 (recognize_bits_test): Use it.
9475 (recognize_single_bit_test): Likewise.
9476
1fc19b80 94772008-04-30 Martin Jambor <mjambor@suse.cz>
9478
9479 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9480 instead of setting number of formal parameters to zero.
14eddddd 9481 (ipcp_init_stage): Do not set the number of actual parameters to zero
1fc19b80 9482 either.
9483 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9484 which are called with variable number of arguments.
9485 (ipcp_insert_stage): Explicitely skipping all nodes which are
9486 called with variable number of arguments.
14eddddd 9487 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
1fc19b80 9488 number of parameters.
9489
9490 * ipa-prop.h (struct ipa_node_params): Added flag
9491 called_with_var_arguments
9492 (ipa_set_param_count): Added. Changed sole setter to use it.
9493 (ipa_get_param_count): Added. All readers of param_count
9494 converted to use it instead.
9495 (ipa_set_called_with_variable_arg): Added.
9496 (ipa_is_called_with_var_arguments): Added.
9497 (ipa_get_ith_param): Added. All readers of param_decls converted
9498 to use it instead.
14eddddd 9499 (ipa_set_cs_argument_count): Added, sole writer to argument_count
9500 changed to use it.
1fc19b80 9501 (ipa_get_cs_argument_count): Added, all readers of argument_count
9502 changed to cal it.
14eddddd 9503 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
1fc19b80 9504 to use it.
14eddddd 9505
1fc19b80 9506 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9507 (struct ipcp_lattice): Renamed cval_type to type
9508 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9509
9510 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9511 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9512 (ipcp_insert_stage): Changed the type of variable cvalue to tree
9513 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9514 (build_const_val): Changed the type of parameter cvalue to tree
9515 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9516 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14eddddd 9517
9518 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9519 constant
1fc19b80 9520
9521 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9522 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9523 (ipa_add_method): Renamed to ipa_push_func_to_list
9524 (ipa_remove_method): Renamed to ipa_pop_func_from_list
9525 (ipa_callsite_param_count): Removed.
9526 (ipa_callsite_param_count_set): Removed.
9527 (ipa_callsite_param): Removed.
9528 (ipa_callsite_callee): Removed.
9529 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9530 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9531 (ipa_method_formal_count): Removed.
9532 (ipa_method_formal_count_set): Removed.
9533 (ipa_method_get_tree): Removed.
9534 (ipa_method_tree_map_create): Removed.
9535 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9536 (ipa_create_param_decls_array): Creates the array itself
14eddddd 9537 (ipa_create_param_decls_array): Temporary variable info instead of
1fc19b80 9538 a few dereferences.
9539 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9540 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9541 (get_type): Removed.
9542 (ipa_jf_get_info_type): Removed.
9543 (ipa_node_create): Renamed to ipa_create_node_params
9544 (ipa_free): Renamed to ipa_free_all_node_params
9545 (ipa_nodes_create): Renamed to ipa_create_all_node_params
9546 (ipa_edges_create): Renamed to ipa_create_all_edge_args
9547 (ipa_edges_free): Renamed to ipa_free_all_edge_args
9548 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14eddddd 9549 (ipa_free_all_node_params): Deallocation to jump_functions moved to
1fc19b80 9550 ipa_free_all_edge_args
9551 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9552 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9553 (ipa_create_methodlist_node): Removed.
9554 (ipa_methodlist_method): Removed.
9555 (ipa_methodlist_method_set): Removed.
9556 (ipa_methodlist_next_method): Removed.
9557 (ipa_methodlist_next_method_set): Removed.
9558 (ipa_method_is_modified): Removed.
9559 (ipa_method_modify_create): Removed.
14eddddd 9560 (ipa_method_modify_init): Temporary variable info instead of a few
1fc19b80 9561 dereferences.
14eddddd 9562 (ipa_detect_param_modifications): Temporary variable info instead of
1fc19b80 9563 a few dereferences.
14eddddd 9564 (ipa_compute_jump_functions): Temporary variable info instead of
1fc19b80 9565 a few dereferences.
9566 (ipa_method_modify_set): Removed.
9567 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14eddddd 9568 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
1fc19b80 9569 than craph_node as the first parameter.
9570 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9571 (ipa_method_modify_init): Removed.
14eddddd 9572 (ipa_compute_jump_functions): Added a temp variable instead of
1fc19b80 9573 repeatadly dereferencing the cgraph_edge.aux pointer
9574 (ipa_callsite_param_set_type): Removed.
14eddddd 9575 (ipa_compute_jump_functions): i renamed to index and moved to
1fc19b80 9576 an inner block
9577 (ipa_callsite_param_set_info_type_formal): Removed.
9578 (ipa_callsite_param_set_info_type): Removed.
9579 (ipa_callsite_param_map_create): Removed.
9580 (ipa_callsite_tree): Removed.
9581 (ipa_callsite_caller): Removed.
9582 (ipa_pop_func_from_list): return_method removed to return_func
9583
9584 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9585 prefixed all values with IPA_. Changed all users.
14eddddd 9586 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9587 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9588 and FORMAL_IPATYPE IPA_PASS_THROUGH.
1fc19b80 9589 (union parameter_info): Renamed to jump_func_value.
9590 (union jump_func_value): Renamed value to constant
9591 (struct ipa_jump_func): Renamed info_type to value
9592 (struct ipa_node): Renamed to ipa_node_params
9593 (struct ipa_node_params): Renamed ipa_arg_num to param_count
9594 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9595 (struct ipa_node_params): Renamed ipa_mod to modified_flags
9596 (struct ipa_edge): Renamed to ipa_edge_args
9597 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9598 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9599 (struct ipa_methodlist): Renamed to ipa_func_list
9600 (struct ipa_func_list): method_p renamed to node, next_method
9601 renamed to next
9602 (ipa_methodlist_p): Removed, switched all users to struct pointer
9603 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9604
cd30e128 96052008-04-30 Alan Modra <amodra@bigpond.net.au>
9606
9607 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9608 (rs6000_emit_epilogue): Use backchain to restore only when we
9609 have a large frame. Make use of frame pointer to restore if we
9610 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9611
f005400e 96122008-04-29 Paolo Bonzini <bonzini@gnu.org>
9613
9614 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9615 Add mode to zero_extract.
9616 (sign bit tests peepholes): (Ditto.).
9617
ea4dd78d 96182008-04-29 H.J. Lu <hongjiu.lu@intel.com>
9619
9620 * config/i386/i386.c (ix86_builtins): Replace Prescott New
9621 Instructions in comments with SSE3.
9622 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
9623 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9624 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9625 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9626 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9627 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9628 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9629 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9630 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9631 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9632 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9633 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9634 (bdesc_sse_args): Renamed to ...
9635 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9636 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9637 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9638 IX86_BUILTIN_FABSQ.
9639 (bdesc_1arg): Moved to ...
9640 (bdesc_args): Here.
9641 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
9642 Instructions in comments with SSE3.
9643 (ix86_expand_sse_operands_builtin): Renamed to ...
9644 (ix86_expand_args_builtin): This. Updated.
9645 (ix86_expand_unop1_builtin): Update comments.
9646 (ix86_expand_builtin): Updated.
9647
b2a225ba 96482008-04-29 Richard Guenther <rguenther@suse.de>
9649
9650 PR tree-optimization/36078
9651 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9652 Update virtual SSA form after cleaning up the CFG.
9653
f4cd9b29 96542008-04-29 Richard Guenther <rguenther@suse.de>
9655
9656 PR middle-end/15255
9657 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9658
d0cfbbf2 96592008-04-29 Richard Guenther <rguenther@suse.de>
9660
9661 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9662 (compute_may_aliases): Do not call finalize_ref_all_pointers.
9663 (compute_flow_insensitive_aliasing): Do not treat
9664 PTR_IS_REF_ALL pointers special.
9665 (get_smt_for): Likewise.
9666 (may_alias_p): Re-structure.
9667 (is_escape_site): A ref-all pointer conversion is not an escape site.
9668 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9669 PTR_IS_REF_ALL pointers special.
9670 * tree-ssa-structalias.h (struct alias_info): Remove
9671 ref_all_symbol_mem_tag field.
9672 (PTR_IS_REF_ALL): Remove.
9673
c79abec2 96742008-04-29 Richard Guenther <rguenther@suse.de>
9675
9676 PR middle-end/36077
9677 * fold-const.c (extract_muldiv_1): In combining division constants
9678 make sure to never overflow.
9679
d458baea 96802008-04-29 Nick Clifton <nickc@redhat.com>
9681
9682 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9683
13c2c394 96842008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9685
9686 PR bootstrap/35169
9687 * optc-gen.awk: Work around HP-UX/IA awk bug.
9688
f6ecd416 96892008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
9690
9691 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9692 2008-04-25 commit.
9693
e263da54 96942008-04-28 Uros Bizjak <ubizjak@gmail.com>
9695
9696 PR target/36073
9697 * config/i386/i386.md
9698 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9699 Change operand 1 predicate to nonimmediate_operand.
9700
ae093573 97012008-04-28 Jakub Jelinek <jakub@redhat.com>
9702
9703 PR debug/36060
9704 * dwarf2out.c (struct die_struct): Mark as chain_circular through
9705 die_sub field.
9706 * gengtype.c (walk_type, write_func_for_structure): Handle
9707 chain_circular.
9708 * doc/gty.texi: Document chain_circular.
9709
b06d96b5 97102008-04-28 Richard Guenther <rguenther@suse.de>
9711
9712 PR tree-optimization/36066
9713 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9714 SCEV and loop.
9715
a369a55c 97162008-04-28 Uros Bizjak <ubizjak@gmail.com>
9717
9718 PR target/36064
e263da54 9719 * config/i386/i386.md
9720 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
a369a55c 9721 Use match_scratch instead of match_operand for operands 3 and 4.
9722
d88fd237 97232008-04-27 Richard Guenther <rguenther@suse.de>
9724
9725 PR tree-optimization/18754
9726 PR tree-optimization/34223
9727 * tree-pass.h (pass_complete_unrolli): Declare.
9728 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9729 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9730 Rewrite loop into loop closed SSA form if it is not already.
9731 (tree_unroll_loops_completely): Re-structure to iterate over
9732 innermost loops with intermediate CFG cleanups.
9733 Unroll outermost loops only if requested or the code does not grow
9734 doing so.
9735 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9736 loops are available.
9737 (tree_vectorize): Instead do so here.
9738 (tree_complete_unroll): Also unroll outermost loops.
9739 (tree_complete_unroll_inner): New function.
9740 (gate_tree_complete_unroll_inner): Likewise.
9741 (pass_complete_unrolli): New pass.
9742 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9743 uses outside of the loop.
9744 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14eddddd 9745 form if it is available.
d88fd237 9746 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9747 * passes.c (init_optimization_passes): Schedule complete inner
9748 loop unrolling pass before the first CCP pass after final inlining.
9749
38475469 97502008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9751
9752 * targhooks.h (default_emutls_var_fields,
9753 default_emutls_var_init): Declare.
9754 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9755 * target.h (struct gcc_target): Add struct emutls member.
9756 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9757 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9758 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9759 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9760 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9761 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9762 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9763 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9764 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9765 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9766 emit debug information.
9767 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9768 * varasm.c: Include targhooks.h.
9769 (emutls_object_section, emutls_tmpl_section): New.
9770 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9771 (EMUTLS_SEPARATOR): New.
9772 (prefix_name): New.
9773 (get_emutls_object_name): New.
9774 (default_emutls_var_fields): New, broken out of ...
9775 (get_emutls_object_type): ... here. Adjust to use target hooks.
9776 (get_emutls_init_templ_addr): Adjust to use target hooks.
9777 (emutls_decl): Adjust to use target hooks.
9778 (emutls_finish): Likewise.
9779 (default_emutls_var_init): New, broken out of ...
9780 (assemble_variable): ... here. Adjust to use target hooks.
9781 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9782 SECCAT_EMUTLS_TMPL.
9783 * c-common.c (handle_section_attribute): Prevent overriding
9784 sections for emulated tls with special sections.
9785 * config/i386/i386.c (x86_64_elf_select_section): Add
9786 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9787 (x86_64_elf_unique_section): Likewise.
9788 * config/vxworks.c: Include tree.h.
9789 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9790 (vxworks_override_options): Set TLS scheme.
ae093573 9791 * doc/tm.texi (Emulated TLS): New node.
38475469 9792
7e3b64b4 97932008-04-26 Simon Baldwin <simonb@google.com>
9794
9795 PR c/35652
9796 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9797 with propagated string constants.
9798
500d8ed2 97992008-04-26 Uros Bizjak <ubizjak@gmail.com>
9800
9801 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9802 constraint for operand 2 when operand 0 is memory operand.
9803 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9804 operand 0 is memory operand.
9805 (fix_trunc<mode>_i387_with_temp): Ditto.
9806 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9807 operand 2 when operand 1 is memory operand.
9808 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9809 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9810 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9811 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9812 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9813 operands 2,3 and 4 when operand 1 is memory operand.
9814 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9815 is memory operand.
9816 (fistdi2_floor_with_temp): Ditto.
9817 (fist<mode>2_floor_with_temp): Ditto.
9818 (fistdi2_ceil_with_temp): Ditto.
9819 (fist<mode>2_ceil_with_temp): Ditto.
9820 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9821
346c9aaf 98222008-04-26 David Daney <ddaney@avtrex.com>
9823
9824 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9825 unspec_volitile.
9826 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9827 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9828 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9829 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9830 (compare_and_swap_12): New insn.
9831 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9832 * config/mips/mips.c (mips_force_binary): New function.
9833 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9834 (mips_expand_compare_and_swap_12): New function.
9835 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9836
18d50ae6 98372008-04-25 Jan Hubicka <jh@suse.cz>
9838
9839 PR testsuite/35843
9840 * cfgexpand.c (pass_expand): Turn into RTL pass.
9841 * passes.c (execute_one_pass): Do pass typechecking after execution.
9842 * tree-pass.h (pass_expand): Turn into RTL pass.
9843
9844 * function.h (struct rtl_data): Move here fields
9845 accesses_prior_frames, calls_eh_return, saves_all_registers,
9846 has_nonlocal_goto, has_asm_statement, is_thunk,
9847 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9848 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9849 arg_pointer_save_area_init from struct function; turn into bool.
9850 (struct function): Move
9851 calls_eh_return, saves_all_registers, has_nonlocal_goto,
9852 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9853 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9854 tail_call_emit, arg_pointer_save_area_init
9855 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
9856 (current_function_returns_struct, current_function_returns_pcc_struct,
9857 current_function_calls_setjmp, current_function_calls_alloca,
9858 current_function_accesses_prior_frames,
9859 current_function_calls_eh_return, current_function_is_thunk,
9860 current_function_stdarg, current_function_profile,
9861 current_function_limit_stack, current_function_uses_pic_offset_table,
9862 current_function_uses_const_pool, current_function_has_nonlocal_label,
9863 current_function_saves_all_registers,
9864 current_function_has_nonlocal_goto,
9865 current_function_has_asm_statement): Remove accesor macros.
9866 * ra-conflict.c (global_conflicts): Update.
9867 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9868 (suitable_for_tail_call_opt_p): Update.
9869 * builtins.c (expand_builtin_return_addr): Update.
9870 (expand_builtin_setjmp_setup): Update.
9871 (expand_builtin_nonlocal_goto): Update.
9872 * final.c (final_start_function): Update.
9873 (profile_function): Update.
9874 (leaf_function_p): Update.
9875 (only_leaf_regs_used): Update.
9876 * df-scan.c (df_get_exit_block_use_set): Update.
9877 * dojump.c (clear_pending_stack_adjust): Update.
9878 * tree-stdarg.c (gate_optimize_stdarg): Update.
9879 * gimple-low.c (lower_function_body): Update.
9880 * global.c (compute_regsets): Update.
9881 (global_alloc): Update.
9882 * dwarf2out.c (dwarf2out_begin_prologue): Update.
9883 * expr.c (expand_assignment): Update.
9884 * dse.c (dse_step0): Update.
9885 (dse_step1): Update.
9886 * c-decl.c (store_parm_decls): Update.
9887 * local-alloc.c (combine_regs): Update.
9888 (find_free_reg): Update.
9889 * function.c (assign_parms_augmented_arg_list): Update.
9890 (assign_parm_find_data_types): Update.
9891 (assign_parms): Update.
9892 (allocate_struct_function): Update.
9893 (expand_function_start): Update.
9894 (expand_function_end): Update.
9895 (get_arg_pointer_save_area): Update.
9896 (thread_prologue_and_epilogue_insns): Update.
9897 (rest_of_match_asm_constraints): Update.
9898 * stor-layout.c (variable_size): Update.
9899 * gcse.c (gcse_main): Update.
9900 (bypass_jumps): Update.
9901 * gimplify.c (gimplify_function_tree): Update.
9902 * calls.c (emit_call_1): Update.
9903 (expand_call): Update.
9904 * bt-load.c (compute_defs_uses_and_gen): Update.
9905 * except.c (sjlj_assign_call_site_values): Update.
9906 (sjlj_emit_function_enter): Update.
9907 (can_throw_external): Update.
9908 (set_nothrow_function_flags): Update.
9909 (expand_builtin_unwind_init): Update.
9910 (expand_eh_return): Update.
9911 (convert_to_eh_region_ranges): Update.
9912 (output_function_exception_table): Update.
9913 * emit-rtl.c (gen_tmp_stack_mem): Update.
9914 * cfgexpand.c (expand_used_vars): Update.
9915 (tree_expand_cfg): Update.
9916 * cfgcleanup.c (rest_of_handle_jump): Update.
9917 * explow.c (allocate_dynamic_stack_space): Update.
9918 * varasm.c (assemble_start_function): Update.
9919 (force_const_mem): Update.
9920 (mark_constant_pool): Update.
9921 * tree-optimize.c (tree_rest_of_compilation): Update.
9922 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9923 * tree-cfg.c (notice_special_calls): Update.
9924 (is_ctrl_altering_stmt): Update.
9925 (tree_can_make_abnormal_goto): Update.
9926 (tree_purge_dead_abnormal_call_edges): Update.
9927 * config/alpha/predicates.md: Update.
9928 * config/alpha/alpha.c (alpha_sa_mask): Update.
9929 (alpha_sa_size): Update.
9930 (alpha_does_function_need_gp): Update.
9931 (alpha_expand_prologue): Update.
9932 (alpha_start_function): Update.
9933 (alpha_output_function_end_prologue): Update.
9934 (alpha_expand_epilogue): Update.
9935 * config/frv/frv.c (frv_stack_info): Update.
9936 (frv_expand_epilogue): Update.
9937 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9938 (s390_register_info): Update.
9939 (s390_frame_info): Update.
9940 (s390_init_frame_layout): Update.
9941 (s390_can_eliminate): Update.
9942 (save_gprs): Update.
9943 * config/spu/spu.c (spu_split_immediate): Update.
9944 (need_to_save_reg): Update.
9945 (spu_expand_prologue): Update.
9946 (spu_expand_epilogue): Update.
9947 * config/sparc/sparc.md: Update.
9948 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9949 (sparc_tls_got): Update.
9950 (legitimize_pic_address): Update.
9951 (sparc_emit_call_insn): Update.
9952 (sparc_expand_prologue): Update.
9953 (output_return): Update.
9954 (print_operand): Update.
9955 (sparc_function_ok_for_sibcall): Update.
9956 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9957 * config/m32r/m32r.md: Update.
9958 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9959 (m32r_compute_frame_size): Update.
9960 (m32r_expand_prologue): Update.
9961 (m32r_expand_epilogue): Update.
9962 (m32r_legitimize_pic_address): Update.
9963 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9964 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9965 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9966 (gen_push): Update.
9967 (ix86_save_reg): Update.
9968 (ix86_compute_frame_layout): Update.
9969 (ix86_expand_prologue): Update.
9970 (ix86_expand_epilogue): Update.
9971 * config/sh/sh.c (output_stack_adjust): Update.
9972 (calc_live_regs): Update.
9973 (sh5_schedule_saves): Update.
9974 (sh_expand_prologue): Update.
9975 (sh_expand_epilogue): Update.
9976 (sh_setup_incoming_varargs): Update.
9977 (sh_allocate_initial_value): Update.
9978 (sh_get_pr_initial_val): Update.
9979 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9980 * config/sh/sh.md (label:): Update.
9981 * config/avr/avr.c (out_movhi_mr_r): Update.
9982 * config/crx/crx.h (enum): Update.
9983 * config/xtensa/xtensa.h (along): Update.
9984 * config/stormy16/stormy16.c Update.
9985 (xstormy16_compute_stack_layout): Update.
9986 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9987 (fr30_expand_prologue): Update.
9988 * config/cris/cris.c (cris_conditional_register_usage): Update.
9989 (cris_reg_saved_in_regsave_area): Update.
9990 (cris_initial_frame_pointer_offset): Update.
9991 (cris_simple_epilogue): Update.
9992 (cris_expand_prologue): Update.
9993 (cris_expand_epilogue): Update.
9994 (cris_expand_pic_call_address): Update.
9995 (cris_asm_output_symbol_ref): Update.
9996 (cris_asm_output_label_ref): Update.
9997 * config/cris/cris.md Update.
9998 * config/iq2000/iq2000.c (compute_frame_size): Update.
9999 (iq2000_expand_epilogue): Update.
10000 * config/mt/mt.h (save_direction): Update.
10001 * config/mn10300/mn10300.c (mn10300_function_value): Update.
10002 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10003 (ia64_secondary_reload_class): Update.
10004 * config/m68k/m68k.c (m68k_save_reg): Update.
10005 (m68k_expand_prologue): Update.
10006 (m68k_expand_epilogue): Update.
10007 (legitimize_pic_address): Update.
10008 * config/rs6000/rs6000.c (rs6000_got_register): Update.
10009 (first_reg_to_save): Update.
10010 (first_altivec_reg_to_save): Update.
10011 (compute_vrsave_mask): Update.
10012 (compute_save_world_info): Update.
10013 (rs6000_stack_info): Update.
10014 (spe_func_has_64bit_regs_p): Update.
10015 (rs6000_ra_ever_killed): Update.
10016 (rs6000_emit_eh_reg_restore): Update.
10017 (rs6000_emit_allocate_stack): Update.
10018 (rs6000_emit_prologue): Update.
10019 (rs6000_emit_epilogue): Update.
10020 (rs6000_output_function_epilogue): Update.
10021 (output_profile_hook): Update.
10022 (rs6000_elf_declare_function_name): Update.
10023 * config/rs6000/rs6000.h (rs6000_args): Update.
10024 * config/rs6000/rs6000.md: Update.
10025 * config/mcore/mcore.c (mcore_expand_prolog): Update.
10026 * config/arc/arc.c (arc_output_function_epilogue): Update.
10027 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
10028 * config/darwin.c (machopic_function_base_name): Update.
10029 * config/score/score3.c (score3_compute_frame_size): Update.
10030 (rpush): Update.
10031 (rpop): Update.
10032 (score3_epilogue): Update.
10033 * config/score/score7.c (score7_compute_frame_size): Update.
10034 (score7_prologue): Update.
10035 (score7_epilogue): Update.
10036 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
10037 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10038 * config/arm/arm.c (use_return_insn): Update.
10039 (require_pic_register): Update.
10040 (arm_load_pic_register): Update.
10041 (arm_compute_save_reg0_reg12_mask): Update.
10042 (arm_compute_save_reg_mask): Update.
10043 (thumb1_compute_save_reg_mask): Update.
10044 (output_return_instruction): Update.
10045 (arm_output_function_prologue): Update.
10046 (arm_output_epilogue): Update.
10047 (arm_get_frame_offsets): Update.
10048 (arm_expand_prologue): Update.
10049 (thumb_pushpop): Update.
10050 (thumb_exit): Update.
10051 (thumb1_expand_prologue): Update.
10052 (thumb1_expand_epilogue): Update.
10053 (arm_unwind_emit): Update.
10054 (arm_output_fn_unwind): Update.
10055 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
10056 * config/arm/arm.md: Update.
10057 * config/pa/pa.md: Update.
10058 * config/pa/pa.c (legitimize_pic_address): Update.
10059 (compute_frame_size): Update.
10060 (hppa_expand_prologue): Update.
10061 (hppa_expand_epilogue): Update.
10062 (borx_reg_operand): Update.
10063 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10064 (HARD_REGNO_RENAME_OK): Update.
10065 * config/mips/mips.c (mips_global_pointer): Update.
10066 (mips_save_reg_p): Update.
10067 (mips_compute_frame_info): Update.
10068 (mips_frame_pointer_required): Update.
10069 (mips_expand_prologue): Update.
10070 (mips_expand_epilogue): Update.
10071 (mips_can_use_return_insn): Update.
10072 (mips_reorg_process_insns): Update.
10073 * config/v850/v850.c (compute_register_save_size): Update.
10074 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10075 * config/mmix/mmix.c (along): Update.
10076 (mmix_expand_epilogue): Update.
10077 * config/bfin/bfin.c (legitimize_pic_address): Update.
10078 (must_save_p): Update.
10079 (stack_frame_needed_p): Update.
10080 (add_to_reg): Update.
10081 (bfin_expand_prologue): Update.
10082 * stmt.c (expand_asm_operands): Update.
10083 * reload1.c (reload): Update.
10084 (init_elim_table): Update.
10085
9407e9ac 100862008-04-25 Bob Wilson <bob.wilson@acm.org>
14eddddd 10087
9407e9ac 10088 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
14eddddd 10089
f96e219b 100902008-04-25 H.J. Lu <hongjiu.lu@intel.com>
10091
501ec29a 10092 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
f96e219b 10093 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
10094 (mov<mode>): Removed.
10095 (*movv4sf_internal): Likewise.
10096 (*movv2df_internal): Likewise.
10097
29ed6076 100982008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10099
10100 * config.gcc (crx-*-elf): Remove deprecation.
10101
a64de0e6 101022008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
10103
10104 * config/i386/cygming-crtend.c (register_frame_ctor): Register
10105 __gcc_deregister_frame with atexit.
10106 (deregister_frame_dtor): Remove.
10107
d636296f 101082008-04-24 Nathan Froyd <froydnj@codesourcery.com>
ff84f6db 10109 Nathan Sidwell <nathan@codesourcery.com>
10110
48d0a424 10111 * config/rs6000/rs6000.opt (mspe): Remove Var property.
ff84f6db 10112 (misel): Likewise.
48d0a424 10113 * config/rs6000/rs6000.h (rs6000_spe): Declare.
ff84f6db 10114 (rs6000_isel): Likewise.
48d0a424 10115 * config/rs6000/rs6000.c (rs6000_spe): New variable.
ff84f6db 10116 (rs6000_isel): New variable.
48d0a424 10117 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
ff84f6db 10118
d991e6e8 101192008-04-24 Jakub Jelinek <jakub@redhat.com>
10120
10121 PR c++/35758
10122 * c-common.c (handle_vector_size_attribute): Call
10123 lang_hooks.types.reconstruct_complex_type instead of
10124 reconstruct_complex_type.
10125 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10126 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10127 * langhooks.h (struct lang_hooks_for_types): Add
10128 reconstruct_complex_type hook.
10129 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10130 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10131
d43cee80 101322008-04-24 Richard Guenther <rguenther@suse.de>
10133
10134 * c-common.h (check_builtin_function_arguments): Declare.
10135 * c-common.c (validate_nargs): New function.
10136 (check_builtin_function_arguments): Likewise.
10137 * c-typeck.c (build_function_call): Call
10138 check_builtin_function_arguments.
10139 * builtins.c (fold_builtin_classify): Remove error reporting code.
10140 (fold_builtin_unordered_cmp): Likewise.
10141 (fold_builtin_1): Likewise.
10142 (fold_builtin_n): Likewise.
10143
5791999f 101442008-04-24 Jakub Jelinek <jakub@redhat.com>
10145
10146 PR tree-optimization/36008
10147 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10148 the original op1, rather than delta by step.
10149
e06f9c34 101502008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
48d0a424 10151 Sebastian Pop <sebastian.pop@amd.com>
e06f9c34 10152
10153 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10154 eliminate_local_variables_stmt, eliminate_local_variables,
10155 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10156 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10157 of code delimited by two edges in the CFG.
10158 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10159 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
14eddddd 10160 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
e06f9c34 10161 the case of parallelisation of reductions.
10162 (expr_invariant_in_region_p): New.
10163
10164 * tree-flow.h (gather_blocks_in_sese_region): Declared.
10165 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10166
664af971 101672008-04-24 Ira Rosen <irar@il.ibm.com>
48d0a424 10168 Richard Guenther <rguenther@suse.de>
664af971 10169
10170 PR tree-optimization/36034
10171 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10172 incapable of dealing with loads with gaps.
10173
ced5bc56 101742008-04-24 Rafael Espindola <espindola@google.com>
10175
10176 * tree-flow.h (vrp_evaluate_conditional): Change signature.
10177 * tree-ssa-propagate.c (fold_predicate_in): Update call to
10178 vrp_evaluate_conditional.
10179 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
48d0a424 10180 (vrp_evaluate_conditional): Split the cond argument.
10181 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10182 (simplify_stmt_for_jump_threading): Update call to
ced5bc56 10183 vrp_evaluate_conditional.
10184
06d44c00 101852008-04-24 Ira Rosen <irar@il.ibm.com>
10186
10187 PR tree-optimization/35982
10188 * tree-vect-analyze.c (vect_check_interleaving): Check that the
10189 interleaved data-refs are of the same type.
10190
d351f137 101912008-04-24 Danny Smith <dannysmith@users.net>
10192
48d0a424 10193 * c-format.c (check_format_info_main): Use strncmp rather than a
10194 magic prefix to handle multichar length specs.
d351f137 10195 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10196 Don't prefix "I64" and "I32" with '\0'.
10197
85637477 101982008-04-24 Jakub Jelinek <jakub@redhat.com>
10199
10200 PR target/36015
10201 * config/i386/i386.c (init_cumulative_args): Don't pass anything
10202 in registers for -m32 only if stdarg_p (fntype).
10203
39925406 102042008-04-24 Uros Bizjak <ubizjak@gmail.com>
10205
10206 PR rtl-optimization/36006
10207 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10208 temp to op0 in order to avoid invalid rtx sharing.
10209
c7d4e749 102102008-04-23 Paolo Bonzini <bonzini@gnu.org>
10211
10212 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
10213 check TREE_INVARIANT.
10214 * tree-gimple.c (is_gimple_address): New.
10215 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10216 * tree-gimple.h (is_gimple_address): New.
10217 * tree.h (decl_address_invariant_p): New.
10218 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10219 (build_string): Likewise.
10220 (decl_address_invariant_p): New, from is_gimple_invariant_address.
10221 (tree_invariant_p_1): Likewise.
10222 (save_expr): Use it.
10223 (tree_invariant_p): New.
10224 (skip_simple_arithmetic): Use it.
10225 (stabilize_reference_1): Use it.
10226 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10227 simplify.
10228 (build1_stat): Drop code to compute TREE_INVARIANT.
10229 (build2_stat): Drop code to compute TREE_INVARIANT.
10230 (build3_stat): Drop code to compute TREE_INVARIANT.
10231 (build4_stat): Drop code to compute TREE_INVARIANT.
10232 (build5_stat): Drop code to compute TREE_INVARIANT.
10233 (build7_stat): Drop code to compute TREE_INVARIANT.
10234 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10235 * tree.h (struct tree_base): Remove invariant_flag.
10236 (TREE_INVARIANT): Remove.
10237 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10238 (fold_builtin_expect): Check TREE_CONSTANT.
10239 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10240 * c-tree.h (c_expr_to_decl): Drop third parameter.
10241 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10242 (build_c_cast): Don't set TREE_INVARIANT.
10243 (pop_init_level): Don't set TREE_INVARIANT.
10244 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10245 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10246 TREE_CONSTANT.
10247 (gimplify_init_constructor): Don't set TREE_INVARIANT.
10248 (gimplify_addr_expr): Adjust comment.
10249 * tree-mudflap.c (mf_build_string):
10250 * print-tree.c (print_node): Don't print TREE_INVARIANT.
10251 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10252 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10253 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10254 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10255 * langhooks.h (struct lang_hooks): Drop third parameter from
10256 expr_to_decl.
10257
4f8f2f76 102582008-04-23 Richard Guenther <rguenther@suse.de>
10259
10260 PR tree-optimization/27799
10261 PR tree-optimization/32921
10262 PR tree-optimization/32624
10263 * tree-ssa-structalias.c (merge_smts_into): Only merge the
10264 SMTs aliases and the tag itself into the solution.
10265 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10266 merge the points-to solution back into the SMT aliases.
10267 (may_alias_p): Use alias_set_subset_of instead of
10268 aliases_conflict_p. A pointer which points to
10269 memory with alias set zero may access any variable.
10270
6c711ccf 102712008-04-23 Richard Guenther <rguenther@suse.de>
10272
10273 * alias.c (alias_set_subset_of): Correctly handle asking
10274 if zero is a subset of an alias set with zero child.
10275 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10276 (compute_flow_insensitive_aliasing): Correctly walk all
10277 pointers. Do not unnecessarily union sets.
10278
2802826e 102792008-04-23 Richard Guenther <rguenther@suse.de>
10280
10281 PR middle-end/36021
10282 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10283
1aa0d4ff 102842008-04-22 Tomas Bily <tbily@suse.cz>
10285
39925406 10286 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10287 unreachable case.
10288 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10289 NON_LVALUE_EXPR.
10290 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10291 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10292 * tree-inline.c (estimate_num_insns_1): Likewise.
10293 * varasm.c (const_hash_1, compare_constant, copy_constant)
10294 (compute_reloc_for_constant, output_addressed_constants): Likewise.
10295 * emit-rtl.c (component_ref_for_mem_expr)
10296 (set_mem_attributes_minus_bitpos): Likewise.
10297 * expr.c (highest_pow2_factor, expand_expr_real_1, )
10298 (is_aligning_offset): Likewise.
10299 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10300 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10301 * dojump.c (do_jump): Likewise.
10302 * builtins.c (get_pointer_alignment, get_memory_rtx)
10303 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10304 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
1aa0d4ff 10305
08491912 103062008-04-23 Jakub Jelinek <jakub@redhat.com>
10307
10308 PR rtl-optimization/36017
10309 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10310 expanding the library call.
10311
7ded8d6e 103122008-04-22 Ian Lance Taylor <iant@google.com>
10313
10314 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10315 than size_in_bytes.
10316
dd7bfdc0 103172008-04-22 Pat Haugen <pthaugen@us.ibm.com>
10318
10319 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10320 of LR/CTR moves for Power6.
10321
957f873e 103222008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
023c2d03 10323
10324 PR middle-end/36003
10325 * passes.c (init_optimization_passes): Remove
10326 pass_fast_rtl_byte_dce.
14eddddd 10327
6e22f3c7 103282008-04-22 Uros Bizjak <ubizjak@gmail.com>
10329
10330 PR target/29096
10331 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10332 builtin functions to generate faster code.
10333 (_mm_cvtpu16_ps): Ditto.
10334 (_mm_cvtpi32x2_ps): Ditto.
10335
12f2d5e9 103362008-04-22 Nick Clifton <nickc@redhat.com>
10337
2b945500 10338 * common.opt (ftree-loop-distribution): Add Optimization
10339 attribute.
10340
ca852515 10341 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10342 (frv_expand_builtin_va_start): Likewise.
10343
12f2d5e9 10344 * config/arm/arm.c (thumb_find_work_register): Fix location of
10345 argument register count.
10346
2ccdedfd 103472008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10348
10349 Support scheduling for ColdFire V1 and V3 microarchitecture.
10350 Improve scheduling of multiplication instructions.
10351
10352 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10353 (mac): New instruction attribute.
10354 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10355 (m68k_sched_mac): New variable.
10356 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10357 Handle cfv1 and cfv3.
10358 (max_insn_size): New static variable.
10359 (struct _sched_ib): New type.
10360 (sched_ib): New static variable.
10361 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10362 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10363 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10364 Update.
10365 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10366 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10367 new variables. Update.
10368 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10369 Add modeling of cfv3 instruction buffer. Update.
10370 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10371 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10372 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10373 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10374 a particular reservation applies to.
10375 (type2): Reorganize attribute values. Rename alu to alu_reg,
10376 alu_l to alu, move_l to omove. Join move to alu. Split mul
10377 to mul_l and mul_w.
10378 (cf_ib_*): Simplify description of instruction buffer.
10379 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10380 (cf_mem): Split into cf_mem1 and cf_mem2.
10381 (cf_v2_move_??): Rename to cfv12_alu_??.
10382 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10383 (cf_v2_mul_??): Remove reservations.
10384 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10385 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10386 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10387 appropriate place.
10388 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10389 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10390 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10391 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10392 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10393 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10394 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10395 expansions of the above reservations for instructions of sizes
10396 1, 2 and 3 words.
10397
a86fc23b 103982008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10399
10400 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10401
fe66e922 104022008-04-21 Adam Nemet <anemet@caviumnetworks.com>
10403
10404 * coverage.c: Include tree-pass.h.
10405 (coverage_counter_alloc): Print da_file_name to the dump file.
10406
957f873e 104072008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
fe66e922 10408
349621f0 10409 * sbitmap.c (sbitmap_range_empty_p): New function.
10410 * sbitmap.h (sbitmap_range_empty_p): New function.
fe66e922 10411 * bitmap.h: Now includes obstack.h.
349621f0 10412
fe66e922 104132008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
957f873e 10414 Kenneth Zadeck <zadeck@naturalbridge.com>
bf1f8fbc 10415
10416 * dbgcnt.def (ra_byte_scan): Added.
10417 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
14eddddd 10418 when the last hit happens for a counter.
bf1f8fbc 10419 * timevar.def (TV_DF_BYTE_LR): New variable.
10420 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10421 * passes.c (pass_fast_rtl_byte_dce): New pass.
10422 * fwprop.c (update_df): Added mode to call df_ref_create.
10423 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10424 DF_REF_EXTRACT_OFFSET.
14eddddd 10425 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
bf1f8fbc 10426 DF_BYTE_LR_OUT, df_byte_lr): New macro.
10427 (df_mm): New enum.
10428 (df_ref_extract): Added mode field.
10429 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10430 DF_REF_EXTRACT_OFFSET.
10431 (DF_REF_EXTRACT_MODE): New macro.
10432 (df_byte_lr_bb_info): New structure.
14eddddd 10433 (df_print_byte_regset, df_compute_accessed_bytes,
bf1f8fbc 10434 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10435 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10436 df_byte_lr_simulate_uses,
10437 df_byte_lr_simulate_artificial_refs_at_top,
10438 df_byte_lr_simulate_artificial_refs_at_end,
10439 df_compute_accessed_bytes): New function.
10440 (df_ref_create): Add parameter.
10441 (df_byte_lr_get_bb_info): New inline function.
10442 * df-scan.c (df_ref_record, df_uses_record,
10443 df_ref_create_structure): Added mode parameter.
14eddddd 10444 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
bf1f8fbc 10445 df_defs_record, df_uses_record, df_get_conditional_uses,
14eddddd 10446 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
bf1f8fbc 10447 df_entry_block_defs_collect, df_exit_block_uses_collect):
10448 Added mode parameter to calls to df_ref_record, df_uses_record,
10449 df_ref_create_structure.
39925406 10450 (df_ref_equal_p, df_ref_compare): Added test for modes.
bf1f8fbc 10451 (df_ref_create_structure): Added code to set mode. Renamed
10452 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10453 DF_REF_EXTRACT_OFFSET.
10454 * df-core.c (df_print_byte_regset): New function.
10455 * df-byte-scan.c: New file.
10456 * df-problems.c (df_rd_transfer_function): Removed unnecessary
14eddddd 10457 calls to BITMAP_FREE.
bf1f8fbc 10458 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10459 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
14eddddd 10460 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10461 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
bf1f8fbc 10462 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10463 df_byte_lr_local_compute, df_byte_lr_init,
14eddddd 10464 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10465 df_byte_lr_transfer_function, df_byte_lr_free,
bf1f8fbc 10466 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
14eddddd 10467 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
bf1f8fbc 10468 df_byte_lr_simulate_uses,
10469 df_byte_lr_simulate_artificial_refs_at_top,
10470 df_byte_lr_simulate_artificial_refs_at_end): New function.
10471 * dce.c (byte_dce_process_block): New function.
10472 (dce_process_block): au is now passed in rather than computed
10473 locally. Changed loops that look at artificial defs to not look
14eddddd 10474 for conditional or partial ones, because there never are any.
10475 (fast_dce): Now is able to drive byte_dce_process_block or
bf1f8fbc 10476 dce_process_block depending on the kind of dce being done.
10477 (rest_of_handle_fast_dce): Add parameter to fast_dce.
10478 (rest_of_handle_fast_byte_dce): New function.
10479 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10480 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10481
798b415d 104822008-04-21 Daniel Franke <franke.daniel@gmail.com>
10483
10484 PR fortran/35019
10485 * gcc.h: Added fortran options that take arguments to
10486 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10487 macros.
10488
5749b7fb 104892008-04-20 Eric Botcazou <ebotcazou@adacore.com>
10490
10491 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10492 scalarization if on the LHS and not a full access.
10493
0c8e56a8 104942008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10495
5749b7fb 10496 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
0c8e56a8 10497
d31e54f1 104982008-04-18 Rafael Espindola <espindola@google.com>
5749b7fb 10499
d31e54f1 10500 * tree-vrp.c (find_case_label_index): Fix the binary search.
10501 (find_case_label_range): New.
10502 (vrp_visit_switch_stmt): Use find_case_label_range.
10503 (simplify_switch_using_ranges): Use find_case_label_range.
10504
65903740 105052008-04-18 Eric Botcazou <ebotcazou@adacore.com>
10506
10507 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10508 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10509
662dbd74 105102008-04-18 Tom Tromey <tromey@redhat.com>
10511
10512 PR libcpp/15500:
10513 * doc/cpp.texi (Implementation-defined behavior): Mention
10514 -finput-charset.
10515
9fa14f44 105162008-04-18 Ian Lance Taylor <iant@google.com>
10517
10518 * fold-const.c (pointer_may_wrap_p): New static function.
10519 (fold_comparison): Add another test for pointer overflow. Use
10520 pointer_may_wrap_p to disable some false positives.
10521
924bbf02 105222008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
14eddddd 10523
924bbf02 10524 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10525 (fname_as_string): Match updated cpp_interpret_string prototype.
10526 (fix_string_type): Support char16_t* and char32_t*.
10527 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10528 derivative) nodes. Register as builtin if C++0x.
10529 (c_parse_error): Support CPP_CHAR{16,32}.
14eddddd 10530 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
924bbf02 10531 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10532 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10533 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10534 CTI_CHAR32_ARRAY_TYPE>: New elements.
10535 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10536 char32_type_node, signed_char32_type_node, char16_array_type_node,
10537 char32_array_type_node): New defines.
10538 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10539 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10540 (lex_string): Support CPP_STRING{16,32}, match updated
10541 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10542 (lex_charconst): Support CPP_CHAR{16,32}.
10543 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10544 and CPP_STRING{16,32}.
10545
6a88da51 105462008-04-18 Paolo Bonzini <bonzini@gnu.org>
10547
10548 PR bootstrap/35457
10549 * aclocal.m4: Regenerate.
10550 * configure: Regenerate.
10551
edb7afe8 105522008-04-18 Jan Hubicka <jh@suse.cz>
10553
10554 * except.c (dw2_size_of_call_site_table,
10555 sjlj_size_of_call_site_table): Use vector API for call_site_record.
10556
10557 * cgraphbuild.c (build_cgraph_edges): Update.
10558 * tree-pass.h: Update comment.
10559 * final.c (leaf_function_p): Update.
10560 (leaf_renumber_regs): Update.
10561 (rest_of_clean_state): Update.
10562 * omp-low.c (expand_omp_parallel): Update.
10563 * ipa-reference.c (analyze_function): Update.
10564 * reorg.c (find_end_label): Update.
10565 (optimize_skip): Update.
10566 (fill_simple_delay_slots): Update.
10567 (fill_simple_delay_slots): Update.
10568 (make_return_insns): Update.
10569 (dbr_schedule): Update.
10570 * gimple-low.c (record_vars_into): Update.
10571 * cfgbuild.c (make_edges): Update.
10572 * function.c (assign_stack_local): Update.
10573 (assign_parm_adjust_stack_rtl): Update.
10574 (locate_and_pad_parm): Update.
10575 (allocate_struct_function): Do not initialize stack_alignment_needed
10576 and preferred_stack_boundary here.
10577 (stack_protect_prologue): Update.
10578 (stack_protect_epilogue): Update.
10579 (expand_function_start): Initialize stack_alignment_needed,
10580 preferred_stack_boundary and max_jumptable_ents.
10581 (expand_function_end): Update.
10582 (free_after_compilation): Do not NULLify epilogue_delay_list.
10583 * function.h (struct rtl_data): Add stack_protect_guard,
10584 stack_alignment_needed,
10585 preferred_stack_boundary, epilogue_delay_list.
10586 (struct function): Remove value_histograms, stack_alignment_needed,
10587 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10588 last_label_uid,
10589 unexpanded_var_list, stack_protect_guard.
10590 (current_function_epilogue_delay_list): Remove.
10591 * ipa-type-escape.c (analyze_function): Update.
10592 * gimplify.c (pop_gimplify_context): Update comment.
10593 * calls.c (expand_call): Update.
10594 (emit_library_call_value_1): Update.
10595 * except.c (set_nothrow_function_flags): Update.
10596 * cfgexpand.c (get_decl_align_unit): Update.
10597 (create_stack_guard): Update.
10598 (estimated_stack_frame_size): Update.
10599 (expand_used_vars): Update.
10600 (tree_expand_cfg): Free histogram earliers, init expansion variables.
10601 * explow.c (allocate_dynamic_stack_space): Update.
10602 * tree-ssa-live.c (remove_unused_locals): Update.
10603 * varasm.c (mark_constant_pool): Update.
10604 * tree-inline.c (remap_decls): Update.
10605 (initialize_cfun): Update.
10606 (declare_return_variable): Update.
10607 (inline_forbidden_p): Update.
10608 (expand_call_inline): Update.
10609 (declare_inline_vars): Update.
10610 (tree_function_versioning): Update.
10611 * tree-flow.h (value_histograms): New.
10612 (VALUE_HISTOGRAMS): New macro.
10613 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10614 last_label_uid.
10615 * tree-cfg.c (set_bb_for_stmt): Update.
10616 (replace_by_duplicate_decl): Update.
10617 (move_block_to_fn): Update.
10618 (new_label_mapper): Update.
10619 (dump_function_to_file): Update.
10620 * ipa-struct-reorg.c (build_data_structure): Update.
10621 * cfgrtl.c (print_rtl_with_bb): Update.
10622 * reload1.c (reload): Update.
10623 (reload): Update.
10624 * config/i386/i386.c (setup_incoming_varargs_64,
10625 ix86_compute_frame_layout): Update.
10626 * config/arc/arc.c (arc_output_function_epilogue): Update.
10627
4f364038 106282008-04-18 Marius Strobl <marius@FreeBSD.org>
10629
10630 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10631 for FreeBSD as well.
10632 * gthr-posix95.h: Likewise.
10633
a6c18cd6 106342008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
10635
10636 PR rtl-optimization/35838
10637 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10638 out the byte offset of the first subreg.
10639
cdb04b84 106402008-04-17 Uros Bizjak <ubizjak@gmail.com>
10641
10642 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10643 to split_ti instead of three separate calls with single member arrays.
10644 (subti3 splitter): Ditto.
10645 (adddi3 splitter): Ditto with split_di.
10646 (subdi3 splitter): Ditto.
10647 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10648 two separate calls with single member arrays. Swap match_dup
10649 operands 1 and 2 to better fit into the array.
10650 (negdi2 splitter): Ditto with split_di.
10651 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
10652 two separate calls with single member arrays. Swap match_dup operands
10653 6 and 7 to better fit into the array.
10654
382e3eba 106552008-04-17 H.J. Lu <hongjiu.lu@intel.com>
10656
10657 * config/i386/i386.c (sse_builtin_type): New.
10658 (bdesc_sse_args): Likewise.
10659 (bdesc_sse_3arg): Removed.
10660 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10661 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10662 IX86_BUILTIN_ROUNDPS.
10663 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
10664 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
10665 IX86_BUILTIN_ROUNDPS.
10666 (ix86_expand_sse_4_operands_builtin): Removed.
10667 (ix86_expand_sse_operands_builtin): New.
10668 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10669 and CODE_FOR_sse4_1_roundps.
10670 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10671 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
10672
0dd5aca6 106732008-04-17 Alan Modra <amodra@bigpond.net.au>
10674
10675 PR target/35907
10676 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10677 regs before frame pop when needed. If use_backchain_to_restore_sp
10678 then load backchain into a temp reg to restore vr and vrsave. Add
10679 code to restore vr after frame pop if possible.
10680
659ce413 106812008-04-17 Richard Guenther <rguenther@suse.de>
10682
10683 * tree-vn.c (expressions_equal_p): Do not check type
10684 equality or compatibility before calling operand_equal_p.
10685 * fold-const.c (operand_equal_p): Check equivalence of
10686 integer constants before bailing out due to signedness or
10687 precision differences.
10688 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10689 spurious differences in type qualification. Ignore types
10690 for COMPONENT_REFs at all.
10691
9037a84c 106922008-04-17 Christian Bruel <christian.bruel@st.com>
10693
10694 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10695 msw_skip comparison.
14eddddd 10696
520c4c09 106972008-04-16 Jakub Jelinek <jakub@redhat.com>
10698
e264d515 10699 PR c/35739
10700 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10701 reg type.
10702
520c4c09 10703 PR tree-optimization/35899
10704 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10705 rather than TREE_OPERAND.
10706
5628aad4 107072008-04-16 Uros Bizjak <ubizjak@gmail.com>
10708
10709 PR target/35944
10710 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10711 temporary registers. Change operand predicate to general_operand.
10712 (remainderxf3): Ditto.
10713
00ae4124 107142008-04-16 Richard Guenther <rguenther@suse.de>
10715
10716 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10717 * tree-affine.c (aff_combination_expand): Look through some
10718 conversions.
10719
7df7561b 107202008-04-15 Doug Kwan <dougkwan@google.com>
10721
10722 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10723 for hex printing.
10724 * tree-pretty-print.c (dump_generic_node): Ditto.
10725 * final.c (output_addr_const): Ditto.
10726 * dwarf2out.c (output_cfi): Ditto.
10727 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10728 * print-rtl.c (print_rtx): Ditto.
10729 * print-tree.c (print_node_brief, print_node): Ditto.
10730 * c-common.c (match_case_to_enum_1): Ditto.
10731 * sched-vis.c (print_value): Ditto.
10732 * config/i386/i386.c (print_operand): Cast to long unsigned int
10733 for hex printing.
10734
c5aaf380 107352008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10736 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10737 MS Windows VirtualProtect function.
10738
4dd3de56 107392008-04-15 Jan Hubicka <jh@suse.cz>
10740
10741 * gengtype.c (write_root): Param_is argument is OK.
10742 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10743 * function.h: Include varray.h
10744 (rtl_eh): New stucture based on except.c one.
10745 (call_site_record): New forward declaration and vector type.
10746 * calls.c (emit_call_1): Do not call
10747 note_current_region_may_contain_throw.
10748 * except.c (eh_status): Remove cur_region, try_region since they are
10749 unused.
10750 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10751 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
14eddddd 10752 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
4dd3de56 10753 Remove call_site_data_used, call_site_data_size.
10754 Turn call_site_record into vector in function.h.
10755 (note_current_region_may_contain_throw): Remove.
10756 (get_exception_pointer, get_exception_filter): Do not take struct
10757 function argument; update.
10758 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10759 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10760 build_post_landing_pads, dw2_build_landing_pads,
10761 sjlj_assign_call_site_values, sjlj_mark_call_sites,
14eddddd 10762 sjlj_emit_function_enter, sjlj_emit_function_enter,
4dd3de56 10763 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10764 sjlj_build_landing_pads, finish_eh_generation,
10765 remove_exception_handler_label, remove_eh_handler,
10766 maybe_remove_eh_handler, add_reachable_handler,
5628aad4 10767 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10768 add_action_record, collect_one_action_chain, add_call_site,
10769 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4dd3de56 10770 sjlj_output_call_site_table, output_function_exception_table,
10771 * except.h (note_current_region_may_contain_throw): Remove
10772 (get_exception_pointer, get_exception_filter): Do not take struct
10773 function argument.
10774 * Makefile.in (GTFILES): Put varargs before struct function.
10775
220322c1 107762008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10777
10778 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10779 punt for STRING_CST.
10780 (get_constraint_for): Deal with STRING_CST here instead.
10781
fc50275a 107822008-04-15 Richard Guenther <rguenther@suse.de>
10783
10784 * tree-ssa-propagate.c (substitute_and_fold): Substitute
10785 statements in a basic-block with a backward walk. Do not
10786 substitute into dead statements but instead remove those.
10787
77975172 107882008-04-15 Richard Guenther <rguenther@suse.de>
10789
10790 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10791 to zero, thus disable creation of SFTs.
10792
154edec0 107932008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10794
10795 * tree-predcom.c (suitable_reference_p): Return false if the
10796 reference can throw.
10797
1f93c018 107982008-04-15 Jakub Jelinek <jakub@redhat.com>
10799
10800 PR c/35751
10801 * c-decl.c (finish_decl): If extern or static var has variable
10802 size, set TREE_TYPE (decl) to error_mark_node.
10803
d14c123b 108042008-04-15 Rafael Espindola <espindola@google.com>
10805
1f93c018 10806 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
d14c123b 10807 variable arg1.
10808
fb05ee87 108092008-04-15 Richard Guenther <rguenther@suse.de>
10810
10811 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10812 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10813 (visit_reference_op_load): Do walk vuse-vdef chains on
10814 vn_reference_lookup.
10815 (visit_reference_op_store): But do not here.
10816 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10817 vn_reference_lookup.
10818 (vn_lookup_with_vuses): But do so here.
10819
d0fe3bd7 108202008-04-14 Ian Lance Taylor <iant@google.com>
10821
10822 * fold-const.c (fold_overflow_warning): Remove assertion.
10823
b71600b1 108242008-04-15 Ben Elliston <bje@au.ibm.com>
10825
10826 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10827 temp1 local variables.
10828
108292008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
3c3b31c6 10830
10831 PR target/35661
10832 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10833 ".text.unlikely" section as executable.
10834
aaff414b 108352008-04-14 James E. Wilson <wilson@tuliptree.org>
10836
10837 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10838 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10839 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10840 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10841 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10842 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10843 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10844
e867fa7f 108452008-04-14 Ian Lance Taylor <iant@google.com>
10846
10847 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10848 * fold-const.c (fold_comparison): If appropriate, test
10849 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10850 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10851 reassociating a pointer type.
10852 * doc/invoke.texi (Optimize Options): Document that
10853 -fstrict-overflow applies to pointer wraparound.
10854
393edb51 108552008-04-13 Jan Hubicka <jh@suse.cz>
10856
10857 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10858
415d43a4 108592008-04-12 Andrew Pinski <pinskia@gmail.com>
10860
10861 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10862 we are going to "save the world".
10863
8c6db08a 108642008-04-13 Hans-Peter Nilsson <hp@axis.com>
10865
10866 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10867 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10868 operand 0 constraint, not "=".
10869
1f6c309f 108702008-04-11 James E. Wilson <wilson@tuliptree.org>
10871
10872 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10873
07509ef3 108742008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10875
10876 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10877 of size of positions_needed * CHAR_BIT.
10878
4e43e20a 108792008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10880
10881 PR middle-end/35897
10882 * dse.c (store_info): Change positions_needed to unsigned
10883 HOST_WIDE_INT.
10884 (lowpart_bitmask): New.
10885 (record_store): Cast to unsigned HOST_WIDE_INT for
10886 positions_needed. Assert width <= size of positions_needed *
10887 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
10888 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
10889 lowpart_bitmask to set mask.
10890
87943377 108912008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
10892
10893 * config/bfin/constraints.md: New file.
10894 * config/bfin/bfin.md: Include it.
10895 (adddi3): Use satisfies_constraint functions instead of the old macros.
10896 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10897 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10898 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10899 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10900 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10901 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10902 EXTRA_CONSTRAINT): Delete.
10903 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10904 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10905 of the old macros.
10906 * config/bfin/bfin.c: Include "tm-constrs.h".
10907 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10908 Use satisfies_constraint functions instead of the old macros.
10909 * doc/md.texi (Blackfin Constraints): Update file name reference.
10910
ffeeba75 109112008-04-11 Richard Guenther <rguenther@suse.de>
10912
10913 PR tree-optimization/35869
10914 * tree-vrp.c (execute_vrp): Move switch statement update after
10915 jump threading. Schedule another cfg cleanup run.
10916
1ccba7b7 109172008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10918
10919 PR c/35744
10920 * attribs.c (decl_attributes): Return early on errorneous node.
10921
83901169 109222008-04-10 Oleg Ryjkov <olegr@google.com>
10923
10924 * tree.h (struct tree_base): Added a new flag default_def_flag.
10925 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10926
fc7383ad 109272008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10928
10929 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10930
4f0b6f04 109312008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10932
10933 PR target/35768
10934 * pa.md: Define mode iterator P. Define mode attribute dwc.
10935 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10936 (icacheflush): Likewise.
10937 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10938 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10939
5dfbd18f 109402008-04-11 Ben Elliston <bje@au.ibm.com>
10941
10942 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10943
984bd637 109442008-04-10 Rafael Espindola <espindola@google.com>
10945
1f93c018 10946 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
984bd637 10947 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10948 (extract_range_from_expr): The same.
10949
40e4a59d 109502008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10951
10952 * config/mips/mips.md (GPR2): New mode iterator.
10953 (seq): Add comment.
10954 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10955 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10956 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10957 Rewrite these to take two modes, the mode of comparison and the
10958 mode of the destination.
10959 * config/mips/mips.c (mips_expand_scc): Instead of having
10960 paradoxical subreg as destination, expand "narrowing" scc if mode
10961 of comparison is SI and target is requested in DI mode.
10962 (mips_emit_int_order_test): Update comment. Make mode of
10963 comparison match CMP0 rather than TARGET. When creating inverse
10964 target use mode of TARGET.
10965
44d32dba 109662008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10967
10968 * gcov-dump.c (tag_summary): Only print summaries for the first
10969 GCOV_COUNTERS_SUMMABLE counters.
10970
f9162d6c 109712008-04-10 Uros Bizjak <ubizjak@gmail.com>
10972
10973 * config/i386/i386.md (absneg): New code iterator.
10974 (absnegprefix): New code attribute.
10975 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10976 patterns using absneg code iterator.
10977 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10978 using absneg code iterator.
10979 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10980 *neg<mode>2 patterns using absneg code iterator.
10981 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10982 *negextendsfdf2 patterns using absneg code iterator.
10983 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10984 *negextendsfxf2 patterns using absneg code iterator.
10985 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10986 *negextendsfdf2 patterns using absneg code iterator.
10987 * config/i386/sse.md (<code><mode>2): Macroize expander from
14eddddd 10988 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
f9162d6c 10989
175ddbd8 109902008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10991
10992 * config/s390/s390.h: Remove the remains of the recent search
10993 & replace action of current_function_outgoing_args_size.
10994
5c919262 109952008-04-10 Ira Rosen <irar@il.ibm.com>
10996
10997 PR tree-optimization/35821
10998 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10999 NEW_STMT_LIST is not NULL.
11000
f3b662a5 110012008-04-09 David Edelsohn <edelsohn@gnu.org>
11002
11003 PR libstdc++/35597
11004 * toplev.c (process_options): Remove -ffunction-sections debugging
11005 warning.
11006
eeadedeb 110072008-04-09 Peter Bergner <bergner@vnet.ibm.com>
11008
11009 PR middle-end/PR28690
11010 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
11011 than gen_rtx_fmt_ee to perform more canonicalizations.
11012
c4c94b80 110132008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11014
11015 PR driver/35665
11016 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
11017
04ba083d 110182008-04-09 Richard Guenther <rguenther@suse.de>
11019
11020 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
11021 (dump_function_to_file): Dump function arguments with types.
11022
ff5dd140 110232008-04-08 Richard Guenther <rguenther@suse.de>
11024
11025 * fold-const.c (fold_widened_comparison): Do not allow
11026 sign-changes that change the result.
11027
d44615ce 110282008-04-08 Janis Johnson <janis187@us.ibm.com>
11029
11030 PR target/35839
11031 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
11032 kinds of indirect references.
11033
b3b9cde3 110342008-04-08 David Edelsohn <edelsohn@gnu.org>
11035
11036 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
11037 GNU Fortran language string.
11038
18f22ec3 110392008-04-08 Rafael Espindola <espindola@google.com>
11040
11041 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
11042 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
11043 * tree.h (tree_call_nonnegative_warnv_p): New.
11044
a9f6414b 110452008-04-08 Jan Hubicka <jh@suse.cz>
11046
11047 * function.c (free_after_compilation): Clear out regno_reg_rtx
11048 pointer.
11049
d7cbf087 110502008-04-08 Peter Bergner <bergner@vnet.ibm.com>
11051
11052 Revert
11053 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11054
11055 PR middle-end/PR28690
11056 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11057 same precedence as REG_POINTER and MEM_POINTER operands.
11058
63a29e85 110592008-04-08 Richard Guenther <rguenther@suse.de>
11060
11061 PR middle-end/35834
11062 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11063 for adding index to base.
11064
11d6399c 110652008-04-08 Kai Tietz <kai.tietz@onevision.com>
11066
11067 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11068 (MINGW_ENABLE_EXECUTE_STACK): New.
11069 (IN_LIBGCC2): For libgcc include windows.h file for
11070 function declarations.
11071
fbedf334 110722008-04-08 Hans-Peter Nilsson <hp@axis.com>
11073
11074 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11075 and tem2 if tem1 is not a REG or MULT.
11076
abe32cce 110772008-04-08 Jan Hubicka <jh@suse.cz>
11078
11079 * function.h (incomming_args): Break out of struct function.
11080 (function_subsections): Break out of struct function.
11081 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11082 return_rtx and hard_reg_initial_vals from struct function.
11083 Kill inl_max_label_num.
11084 (current_function_pops_args, current_function_args_info,
11085 current_function_args_size, current_function_args_size,
11086 current_function_pretend_args_size,
11087 current_function_outgoing_args_size,
11088 current_function_internal_arg_pointer, current_function_return_rtx):
11089 Kill compatibility accestor macros.
11090 * builtins.c (expand_builtin_apply_args_1): Update.
11091 (expand_builtin_next_arg): Update.
11092 * df-scan.c (df_get_call_refs): Update.
11093 * dbxout.c (dbxout_function_end): Update.
11094 * dwarf2out.c (dwarf2out_switch_text_section): Update.
11095 (output_line_info): Update.
11096 (secname_for_decl): Update.
11097 (dwarf2out_var_location): Update.
11098 * function.c (free_after_compilation): Update.
11099 (assign_parm_find_stack_rtl): Update.
11100 (assign_parms): Update.
11101 (expand_dummy_function_end): Update.
11102 (expand_function_end): Update.
11103 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11104 (expand_call): Update.
11105 (emit_library_call_value_1): Update.
11106 (store_one_arg): Update.
11107 * varasm.c (initialize_cold_section_name): Update.
11108 (unlikely_text_section): Update.
11109 (unlikely_text_section_p): Update.
11110 (assemble_start_function): Update.
11111 (assemble_end_function): Update.
11112 (default_section_type_flags): Update.
11113 (switch_to_section): Update.
11114 * integrate.c (set_decl_abstract_flags): Update.
11115 (get_hard_reg_initial_val): Update.
11116 (has_hard_reg_initial_val): Update.
11117 (allocate_initial_values): Update.
11118 * resource.c (init_resource_info): Update.
11119 * config/alpha/alpha.c (NUM_ARGS): Update.
11120 (direct_return): Update.
11121 (alpha_va_start): Update.
11122 (alpha_sa_size): Update.
11123 (alpha_initial_elimination_offset): Update.
11124 (alpha_expand_prologue): Update.
11125 (alpha_start_function): Update.
11126 (alpha_expand_epilogue): Update.
11127 (unicosmk_initial_elimination_offset):
11128 * config/alpha/alpha.md (call expander): Update.
11129 * config/s390/s390.c (s390_register_info): Update.
11130 (s390_register_info): Update.
11131 (s390_frame_info): Update.
11132 (s390_initial_elimination_offset): Update.
11133 (s390_build_builtin_va_list): Update.
11134 (s390_va_start): Update.
11135 * config/spu/spu.c (direct_return): Update.
11136 (spu_expand_prologue): Update.
11137 (spu_initial_elimination_offset): Update.
11138 (spu_build_builtin_va_list): Update.
11139 (spu_va_start): Update.
11140 * config/sparc/sparc.c (sparc_init_modes): Update.
11141 (sparc_compute_frame_size): Update.
11142 (function_value): Update.
11143 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11144 * config/i386/i386.md (return expander): Update.
11145 * config/i386/i386.c (ix86_va_start): Update.
11146 (ix86_can_use_return_insn_p): Update.
11147 (ix86_compute_frame_layout): Update.
11148 (ix86_expand_epilogue): Update.
11149 * config/sh/sh.c (output_stack_adjust): Update.
11150 (calc_live_regs): Update.
11151 (sh_expand_prologue): Update.
11152 (sh_builtin_saveregs): Update.
11153 (sh_va_start): Update.
11154 (initial_elimination_offset): Update.
11155 (sh_allocate_initial_value): Update.
11156 (sh_function_ok_for_sibcall): Update.
11157 (sh_get_pr_initial_val): Update.
11158 * config/sh/sh.md (return expander): Update.
11159 * config/avr/avr.c (frame_pointer_required_p): UPdate.
11160 * config/crx/crx.c (crx_compute_frame): UPdate.
11161 (crx_initial_elimination_offset): UPdate.
11162 * config/xtensa/xtensa.c (compute_frame_size): Update
11163 (xtensa_builtin_saveregs): Update.
11164 (xtensa_va_start): Update.
11165 (order_regs_for_local_alloc): Update.
11166 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11167 (xstormy16_expand_builtin_va_start): Update.
11168 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11169 * config/m68hc11/m68hc11.md (return expanders): Update.
11170 * config/m68hc11/m68hc11.c (expand_prologue): Update.
11171 (expand_epilogue): Update.
11172 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11173 (cris_simple_epilogue): Update.
11174 (cris_expand_prologue): Update.
11175 (cris_expand_epilogue): Update.
11176 * config/iq2000/iq2000.c (iq2000_va_start): Update.
11177 (compute_frame_size): Update.
11178 * config/mt/mt.c (mt_compute_frame_size): Update.
11179 * config/mn10300/mn10300.c (expand_prologue): Update.
11180 (expand_epilogue): Update.
11181 (initial_offset): Update.
11182 (mn10300_builtin_saveregs):
11183 * config/mn10300/mn10300.md (return expander): Update.
11184 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11185 (ia64_initial_elimination_offset): Update.
11186 (ia64_initial_elimination_offset): Update.
11187 (ia64_expand_prologue): Update.
11188 * config/m68k/m68k.md (return expander): Update.
11189 * config/rs6000/rs6000.c (rs6000_va_start): Update.
11190 (rs6000_stack_info): Update.
11191 * config/mcore/mcore.c (layout_mcore_frame): Update.
11192 (mcore_expand_prolog): Update.
11193 * config/arc/arc.c (arc_compute_frame_size): Update.
11194 * config/score/score3.c (score3_compute_frame_size): Update.
11195 * config/score/score7.c (score7_compute_frame_size): Update.
11196 * config/arm/arm.c (use_return_insn): Update.
11197 (thumb_find_work_register): Update.
11198 (arm_compute_save_reg_mask): Update.
11199 (arm_output_function_prologue): Update.
11200 (arm_output_epilogue): Update.
11201 (arm_size_return_regs): Update.
11202 (arm_get_frame_offsets): Update.
11203 (arm_expand_prologue): Update.
11204 (thumb_exit): Update.
11205 (thumb_unexpanded_epilogue): Update.
11206 (thumb1_output_function_prologue): Update.
11207 * config/pa/pa.md (return expander): Update.
11208 * config/pa/pa.c (compute_frame_size): Update.
11209 (hppa_builtin_saveregs): Update.
11210 * config/mips/mips.c (mips_va_start): Update.
11211 (mips16_build_function_stub): Update.
11212 (mips_compute_frame_info): Update.
11213 (mips_restore_gp): Update.
11214 (mips_output_function_prologue): Update.
11215 (mips_expand_prologue): Update.
11216 * config/v850/v850.c (compute_frame_size): Update.
11217 (expand_prologue): * config/mmix/mmix.c (along): update.
11218 (mmix_initial_elimination_offset): update.
11219 (mmix_reorg): update.
11220 (mmix_use_simple_return): update.
11221 (mmix_expand_prologue): update.
11222 (mmix_expand_epilogue): Update.
11223 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11224 (emit_link_insn): Update.
11225
cb373d8c 112262008-04-08 Anatoly Sokolov <aesok@post.ru>
11227
14eddddd 11228 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11229 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
cb373d8c 11230 instructions.
14eddddd 11231 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
cb373d8c 11232 atmega103 device.
11233
fd6ffb7c 112342008-04-07 Jan Hubicka <jh@suse.cz>
11235
11236 * function.h (rtl): Rename to x_rtl.
11237 (crtl): New define.
11238 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11239 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11240 used_temp_slots avail_temp_slots, temp_slot_level,
11241 nonlocal_goto_handler_labels): Update accesstors.
11242 (rtl): New global variable.
11243 (struct function): Move some fileds to rtl_data.
11244 (get_arg_pointer_save_area): Update prototype.
11245 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11246 get_arg_pointer_save_area.
11247 * expr.c (init_expr): Update
11248 * function.c (get_frame_size): Update
11249 (assign_stack_local): Update
11250 (expand_function_end): Update.
11251 (get_art_pointer_save_area): Update
14eddddd 11252 * function.h
fd6ffb7c 11253 * emit-rtl.c (rtl): Declare.
11254 (regno_reg_rtx): Declare.
11255 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11256 Update.
11257 (gen_reg_rtx): Update.
11258 * varasm.c (n_deferred_constatns): Update accestor.
11259 (init_varasm_status): Do not allocate varasm_status.
11260 (force_const_mem, get_pool_size, output_constant_pool): Update.
11261 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11262 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11263 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11264 * sparc/sparc.h (INIT_EXPANDERS): Update.
11265 * ia64/ia64.h (INIT_EXPANDERS): Update.
11266
92d21e32 112672008-04-07 James E. Wilson <wilson@tuliptree.org>
11268
11269 * reload.c (push_secondary_reload): Add missing break to for loop.
11270
ae12ddda 112712008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11272
11273 PR middle-end/PR28690
11274 * rtlanal.c: Update copyright years.
11275 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11276 as REG_POINTER and MEM_POINTER operands.
11277 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11278 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11279 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11280 * gcse.c: Update copyright years.
11281 (pre_delete): Call gen_reg_rtx_and_attrs.
11282 (hoist_code): Likewise.
11283 (build_store_vectors): Likewise.
11284 (delete_store): Likewise.
11285 * loop-invariant.c (move_invariant_reg): Likewise.
11286 Update copyright years.
11287
ae3049cd 112882008-04-07 Uros Bizjak <ubizjak@gmail.com>
11289
11290 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11291 control string instead of quoted.
11292
957f873e 112932008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6cbc0aeb 11294
ae3049cd 11295 * doc/rtl.texi: Rewrite of subreg section.
11296
814cfa37 112972008-04-07 Kai Tietz <kai.tietz@onevision.com>
11298
ae3049cd 11299 PR/35842
11300 * config/i386/i386.c (legitimize_pic_address): Add treating
11301 of dllimport SYM_REF's.
11302 (legitimize_dllimport_symbol): Add prototype.
814cfa37 11303
27e9f331 113042008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11305
11306 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
11307 reference in constructor with non self-referential type.
11308
ff3ae375 113092008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11310
11311 Removal of Return with Depressed Stack Pointer support
11312 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11313 (ECF_SP_DEPRESSED): Likewise.
11314 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11315 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11316 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11317 (expand_call): Do not test ECF_SP_DEPRESSED.
11318 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11319 * function.c (keep_stack_depressed): Delete.
11320 (handle_epilogue_set): Likewise.
11321 (update_epilogue_consts): Likewise.
11322 (emit_equiv_load): Likewise.
11323 (thread_prologue_and_epilogue_insns): Remove support for Return with
11324 Depressed Stack Pointer.
11325 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11326
48674266 113272008-04-06 Richard Guenther <rguenther@suse.de>
11328
11329 PR tree-optimization/35400
11330 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11331 information from SSA_NAMEs.
11332
4f0e2214 113332008-04-06 Anatoly Sokolov <aesok@post.ru>
11334
11335 * config/avr/avr.h (avr_mega_p): Remove declaration.
11336 (AVR_MEGA): Remove macro.
11337 * config/avr/avr.c (avr_mega_p): Remove variable.
11338 (avr_override_options): Remove inicializion of avr_mega_p.
11339 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11340 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11341 (avr_jump_mode): (Ditto.).
11342 (avr_output_progmem_section_asm_op): (Ditto.).
11343 (avr_asm_init_sections): (Ditto.).
11344 (avr_asm_init_sections): (Ditto.).
11345 (avr_rtx_costs): (Ditto.).
11346 * config/avr/avr.md: (Ditto.).
14eddddd 11347 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
4f0e2214 11348 '__AVR_MEGA__'.
11349
d8b498d3 113502008-04-06 Richard Guenther <rguenther@suse.de>
11351
11352 PR tree-optimization/35842
11353 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11354 is_gimple_invariant_address.
11355
00c6e780 113562008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11357
11358 * gcc.c (default_compilers): Sync Fortran extensions list with
11359 that in fortran/lang-specs.h.
11360 * doc/invoke.texi: Likewise.
11361 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11362 * dwarf2out.c (gen_compile_unit_die): Likewise.
11363
58f96ec3 113642008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11365
11366 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11367
e1dbffbf 113682008-04-05 Uros Bizjak <ubizjak@gmail.com>
11369
11370 PR target/12329
11371 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11372 attribute is used for nested functions.
11373
5d48fdb4 113742008-04-05 Jan Hubicka <jh@suse.cz>
11375
3eedda05 11376 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11377
5d48fdb4 11378 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11379 letter argument.
11380 (dump_files): Update.
11381 (enable_rtl_dump_file): Do not accept letter argument.
11382 * tree-pass.h (dump_file_info): Remove letter argument.
11383 * toplev.c (decode_d_option): Update -da handling.
11384 * toplev.h (enable_rtl_dump_file): Update prototype.
11385 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11386 it out based on pass type.
11387 (register_dump_files_1): Likewise.
11388 (init_optimization_passes): Update register_one_dump_file calls.
e1dbffbf 11389 (execute_one_pass): Sanity check that IPA passes are called at IPA
11390 level and RTL passes at RTL level.
5d48fdb4 11391 (execute_pass_list): IPA pass can not be after or subpass of
11392 GIMPLE/RTL pass.
11393 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11394 disallov RTL subpasses of IPA subpasses.
11395
eb5bb63e 113962008-04-05 Ben Elliston <bje@au.ibm.com>
11397
11398 * tree-cfg.c (need_fake_edge_p): Return false for calls to
11399 builtins that return exactly once and do not throw. Cache call to
11400 call_expr_flags.
11401
67f57040 114022008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11403
11404 PR rtl-optimization/34916
11405 PR middle-end/35519
11406 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11407 between instruction pairs.
11408
96a7f216 114092008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
11410
11411 * doc/invoke.texi: Document -mbitops for SH.
11412 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11413 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11414 * config/sh/sh.c (print_operand): Add %t operand code.
11415 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11416 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11417 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11418 (extendqihi2): Likewise.
11419 (movqi_i): Likewise.
11420 (insv): Use bset, bclr and bst instructions for SH2A if possible.
11421 (extv): Use bld instruction for SH2A if possible.
11422 (extzv): Likewise.
11423 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11424 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11425 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11426 (bset.b, bclr.b): Define peepholes.
11427 * config/sh/sh.opt (mbitops): New option.
11428
d35d5b75 114292008-04-04 Janis Johnson <janis187@us.ibm.com>
11430
11431 PR target/35620
11432 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11433 and view convert expression.
11434
5018e7cd 114352008-04-04 Jakub Jelinek <jakub@redhat.com>
11436
11437 PR target/35364
11438 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11439
1d9ef704 114402008-04-04 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11443
11444 * config/i386/cpuid.h (bit_AES): New.
11445 (bit_PCLMUL): Likewise.
11446
11447 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11448 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
11449 SSE2 if AES or PCLMUL is enabled.
11450 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11451 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11452 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11453 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11454 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11455 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11456 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11457 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11458 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11459 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11460 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11461 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11462 __builtin_ia32_aeskeygenassist128 and
11463 __builtin_ia32_pclmulqdq128.
11464 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11465 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11466 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
11467
11468 * config/i386/i386.h (TARGET_AES): New.
11469 (TARGET_PCLMUL): Likewise.
11470 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11471
11472 * config/i386/i386.md (UNSPEC_AESENC): New.
11473 (UNSPEC_AESENCLAST): Likewise.
11474 (UNSPEC_AESDEC): Likewise.
11475 (UNSPEC_AESDECLAST): Likewise.
11476 (UNSPEC_AESIMC): Likewise.
11477 (UNSPEC_AESKEYGENASSIST): Likewise.
413347ff 11478 (UNSPEC_PCLMUL): Likewise.
1d9ef704 11479
11480 * config/i386/i386.opt (maes): New.
11481 (mpclmul): Likewise.
11482
11483 * config/i386/sse.md (aesenc): New pattern.
11484 (aesenclast): Likewise.
11485 (aesdec): Likewise.
11486 (aesdeclast): Likewise.
11487 (aesimc): Likewise.
11488 (aeskeygenassist): Likewise.
11489 (pclmulqdq): Likewise.
11490
11491 * config/i386/wmmintrin.h: New.
11492
11493 * doc/extend.texi: Document AES and PCLMUL built-in function.
11494
11495 * doc/invoke.texi: Document -maes and -mpclmul.
11496
b75409ba 114972008-04-04 Paolo Bonzini <bonzini@gnu.org>
11498
11499 * function.c (free_after_parsing): Replace with
11500 cxx_push_function_context from C++ front-end.
11501 (allocate_struct_function): Don't call langhook.
11502 * langhooks.h (struct lang_hooks_for_functions): Delete.
11503 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11504 member "function".
11505 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11506 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11507 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11508 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11509 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11510 remove LANG_HOOKS_FUNCTION_INITIALIZER.
11511 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11512
11513 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11514 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
14eddddd 11515
87d31deb 115162008-04-04 Jakub Jelinek <jakub@redhat.com>
11517
11518 PR c/35440
11519 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11520 for all types.
11521
226c5ce4 115222008-04-04 Richard Guenther <rguenther@suse.de>
11523
11524 PR middle-end/35823
11525 * fold-const.c (optimize_minmax_comparison): Use the correct
11526 type for the constant in the simplified comparison.
11527
4c8b808d 115282008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
11529
11530 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11531 Pass L2 size as "--param l2-cache-size" to the compiler.
11532 (decode_l2_cache): New function to decode L2 cache parameters using
11533 0x8000006 extended cpuid function.
11534 (detect_caches_amd): Determine parameters of L2 cache using
11535 decode_l2_caches function.
11536 (decode_caches_intel): Decode L2 cache parameters.
11537 (detect_caches_intel): Determine L2 cache parameters using
11538 decode_caches_intel and decode_l2_caches functions.
11539
da19f93f 115402008-04-03 Bob Wilson <bob.wilson@acm.org>
11541
11542 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11543 secondary input reload for subword loads from the constant pool.
11544
3a58582a 115452008-04-03 Janis Johnson <janis187@us.ibm.com>
11546
2bedfb20 11547 PR target/35713
11548 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11549 constants of the appropriate size for runtime calculations.
11550
3a58582a 11551 PR c/35712
11552 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11553 decimal-float literal constant zero.
11554
e7327393 115552008-04-03 Jakub Jelinek <jakub@redhat.com>
11556
3cc31756 11557 PR c/35738
11558 * c-parser.c (c_parser_omp_atomic): Call
11559 default_function_array_conversion on the RHS.
11560
e7327393 11561 PR middle-end/35818
11562 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11563 call is_variable_sized if decl has incomplete type.
11564
e0d72b88 115652008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11566
11567 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11568
21d7f1af 115692008-04-03 Adam Nemet <anemet@caviumnetworks.com>
11570
11571 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11572 iterators.
ae3049cd 11573 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
21d7f1af 11574 (sgt<u>): Merge sgt and sgtu into new expander.
11575 (sgt, sgtu): Remove expanders.
ae3049cd 11576 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
21d7f1af 11577 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11578 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11579 *sgtu_<mode>_mips16 into new pattern.
11580 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11581 (sge<u>): Merge sge and sgeu into new expander.
11582 (sge, sgeu): Remove expanders.
11583 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11584 new pattern.
11585 (*sge_<mode>, second *sge_<mode>): Remove patterns.
11586 (slt<u>): Merge slt and sltu into new expander.
11587 (slt, sltu): Remove expanders.
ae3049cd 11588 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
21d7f1af 11589 (*slt_<mode>, *sltu_<mode>): Remove patterns.
11590 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11591 *sltu_<mode>_mips16 into new pattern.
11592 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11593 (sle<u>): Merge sle and sleu into new expander.
11594 (sle, sleu): Remove expanders.
ae3049cd 11595 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
21d7f1af 11596 (*sle_<mode>, *sleu_<mode>): Remove patterns.
11597 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11598 *sleu_<mode>_mips16 into new pattern.
11599 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11600
d5b52ebc 116012008-04-03 Jan Hubicka <jh@suse.cz>
11602
11603 PR tree-optimization/35795
11604 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11605 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11606 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11607 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11608 * score/score3.c (score3_output_mi_thunk): Likewise.
11609 * score/score7.c (score7_output_mi_thunk): Likewise.
11610 * mips/mips.c (mips_output_mi_thunk): Likewise.
11611
0d27ac1e 116122008-04-03 Richard Guenther <rguenther@suse.de>
11613
11614 * tree-vrp.c (extract_range_from_unary_expr): Handle all
11615 conversions. Simplify code.
11616
6c5df66e 116172008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11618
11619 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11620
6fb2153a 116212008-04-03 Tom Tromey <tromey@redhat.com>
11622 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11623
11624 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11625 * config/bfin/t-bfin-linux (generated_files): Add
11626 linux-sysroot-suffix.h.
11627 * doc/install.texi (Prerequisites): Require make 3.80.
11628 * doc/sourcebuild.texi (Front End Directory): Document new
11629 variable.
11630 * Makefile.in (generated_files): New variable.
11631 (ALL_HOST_OBJS): New variable.
11632 ($(ALL_HOST_OBJS)): New target.
11633
32020b10 116342008-04-03 Paolo Bonzini <bonzini@gnu.org>
11635
d5b52ebc 11636 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11637 (remap_block): Call id->transform_lang_insert_block instead
11638 of langhook.
11639 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11640 Set id.transform_lang_insert_block to NULL.
11641 (clone_body): Move to cp/optimize.c
11642 * tree-inline.h (struct copy_body_data): Change
11643 transform_lang_insert_block to function pointer.
11644 (copy_generic_body, copy_decl_no_change): Export.
11645 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11646 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11647 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11648
11649 * c-tree.h (insert_block): Kill.
11650 * c-decl.c (insert_block): Kill.
32020b10 11651
d2764e2d 116522008-04-03 Paolo Bonzini <bonzini@gnu.org>
11653
d5b52ebc 11654 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11655 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11656 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11657 argument.
11658 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11659 argument, call {push,pop}_function_context from here.
11660 * c-parser.c: Use c_{push,pop}_function_context.
11661
11662 * function.c (push_function_context_to): Move meat ...
11663 (push_function_context): ... here. Simplify.
11664 * function.c (pop_function_context_from): Move meat ...
11665 (pop_function_context): ... here. Simplify.
11666 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11667 leave_nested).
11668 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11669 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11670 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11671 * tree.h (push_function_context_to, pop_function_context_from): Remove.
d2764e2d 11672
3fc499d6 116732008-04-03 Ben Elliston <bje@au.ibm.com>
11674
11675 * expmed.c (extract_force_align_mem_bit_field): Remove.
11676
469b75f7 116772008-04-03 Richard Guenther <rguenther@suse.de>
11678
11679 PR middle-end/35800
11680 * expr.h (try_casesi): Adjust prototype.
11681 * expr.c (try_casesi): Take fallback label as extra parameter.
11682 Use that for gen_casesi if default_label is NULL.
11683 * stmt.c (expand_case): Pass fallback label to try_casesi,
11684 make sure to fill gaps with a fallback label if default_label
11685 is not present.
11686
bdc98a90 116872008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
11688
11689 PR target/35801
11690 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11691
6b2813fb 116922008-04-03 Ben Elliston <bje@au.ibm.com>
11693
11694 * expmed.c (extract_split_bit_field): Remove if (0) code.
11695 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11696 (do_ds_constraint): Likewise.
11697
34c3de48 116982008-04-02 Joseph Myers <joseph@codesourcery.com>
11699
11700 * doc/cppopts.texi (-dU): Document.
11701 * c-common.h (flag_dump_macros): Update comment.
11702 * c-opts.c (handle_OPT_d): Handle -dU.
11703 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11704 dump_queued_macros, cb_used_define, cb_used_undef): New.
11705 (init_pp_output): Handle -dU.
11706 (cb_line_change): Call dump_queued_macros.
11707 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11708
48310879 117092008-04-02 Anatoly Sokolov <aesok@post.ru>
11710
14eddddd 11711 * config/avr/predicates.md (io_address_operand): New predicate.
48310879 11712 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11713 * config/avr/avr.c (avr_io_address_p): Remove function.
14eddddd 11714 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
48310879 11715 'avr_io_address_p' function.
11716 (out_movhi_r_mr): (Ditto.).
11717 (out_movqi_mr_r): (Ditto.).
11718 (out_movhi_mr_r): (Ditto.).
11719 (avr_address_cost): (Ditto.).
11720
470d0bc8 117212008-04-02 Uros Bizjak <ubizjak@gmail.com>
11722
11723 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11724 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11725 in 32bit mode when XMM registers are available to avoid store
11726 forwarding stalls.
11727 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11728 corresponding post-reload splitters.
11729
b1417d7e 117302008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11731
11732 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11733 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11734 __builtin_ia32_roundss.
11735 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11736 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11737 __builtin_ia32_roundss.
11738 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11739 IX86_BUILTIN_SHUFPD here.
11740
b6bc2701 117412008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11742
11743 * config/i386/i386.md (plogic): New.
11744 (plogicprefix): Likewise.
11745
11746 * config/i386/mmx.md (mmx_<code><mode>3): New.
11747 (mmx_and<mode>3): Removed.
11748 (mmx_ior<mode>3): Likewise.
11749 (mmx_xor<mode>3): Likewise.
11750
11751 * config/i386/sse.md (<code><mode>3): New.
11752 (*<code><mode>3): Likewise.
11753 (*<code><mode>3): Likewise.
11754 (<code><mode>3): Likewise.
11755 (*sse_<code><mode>3): Likewise.
11756 (*sse2_<code><mode>3): Likewise.
11757 (<code>tf3): Likewise.
11758 (*<code>tf3): Likewise.
11759 (and<mode>3): Likewise.
11760 (*and<mode>3): Likewise.
11761 (ior<mode>3): Removed.
11762 (*ior<mode>3): Likewise.
11763 (xor<mode>3): Likewise.
11764 (*xor<mode>3): Likewise.
11765 (*and<mode>3): Likewise.
11766 (*ior<mode>3): Likewise.
11767 (*xor<mode>3): Likewise.
11768 (and<mode>3): Likewise.
11769 (*sse_and<mode>3): Likewise.
11770 (*sse2_and<mode>3): Likewise.
11771 (andtf3): Likewise.
11772 (*andtf3): Likewise.
11773 (ior<mode>3): Likewise.
11774 (*sse_ior<mode>3): Likewise.
11775 (*sse2_ior<mode>3): Likewise.
11776 (iortf3): Likewise.
11777 (*iortf3): Likewise.
11778 (xor<mode>3): Likewise.
11779 (*sse_xor<mode>3): Likewise.
11780 (*sse2_xor<mode>3): Likewise.
11781 (xortf3): Likewise.
11782 (*xortf3): Likewise.
11783
72c30859 117842008-04-02 Richard Guenther <rguenther@suse.de>
11785
11786 PR tree-optimization/14495
11787 PR tree-optimization/34793
11788 * tree-vrp.c (struct switch_update): New structure.
11789 (to_remove_edges, to_update_switch_stmts): New VECs.
11790 (simplify_switch_using_ranges): New function. Remove not taken
11791 case labels and edges.
11792 (simplify_stmt_using_ranges): Call it.
11793 (identify_jump_threads): Mark edges we have queued for removal
11794 so we don't thread them.
11795 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11796 case label vector.
11797 * tree-cfg.c (group_case_labels): Deal with missing default label.
11798 (tree_verify_flow_info): Allow missing default label.
11799 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11800 (emit_case_nodes): Likewise.
11801 (expand_case): Do not rely on the default label to be present.
11802 * expr.c (try_casesi): Deal with NULL default_label.
11803 (do_tablejump): Likewise.
11804
b6d7b6c5 118052008-04-02 Richard Guenther <rguenther@suse.de>
11806
11807 PR tree-optimization/14495
11808 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11809 SWITCH_EXPR here ...
11810 (vrp_visit_switch_stmt): ... but here (new function).
11811 (find_case_label_index): New helper function.
11812 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11813
217c0c86 118142008-04-02 Paolo Bonzini <bonzini@gnu.org>
11815
11816 * fwprop.c: Fix ISO-C99ism.
11817
794723c1 118182008-04-02 Paolo Bonzini <bonzini@gnu.org>
11819
11820 PR bootstrap/35752
11821 * Makefile.in (objdir): Set it here.
11822 * configure.ac: Not here. Find dynamic linker characteristics.
11823 * exec-tool.in: Use them.
11824 * aclocal.m4: Regenerate.
11825 * configure: Regenerate.
11826
1a105fae 118272008-04-02 Paolo Bonzini <bonzini@gnu.org>
11828
11829 * expr.c (expand_var): Delete it.
11830 * expr.h (expand_var): Delete prototype.
11831 * function.c (expand_function_start): Use expand_decl instead.
11832 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11833 langhook.
11834
f533acbe 118352008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
11836
11837 PR rtl-optimization/35542
11838 * fwprop.c (forward_propagate_and_simplify): Replace
11839 loc_reg_mentioned_in_p with reg_mentioned_p.
11840
f8f13645 118412008-04-02 Paolo Bonzini <bonzini@gnu.org>
11842
f533acbe 11843 PR rtl-optimization/35281
f8f13645 11844 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11845 (propagate_rtx_1): Handle PR_HANDLE_MEM.
11846 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11847 (varying_mem_p): Move above propagate_rtx.
11848 (all_uses_available_at): Do not check MEMs.
11849
a00913c7 118502008-04-02 Rafael Espindola <espindola@google.com>
11851
11852 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11853 (register_edge_assert_for_2): Split the cond argument.
11854 (register_edge_assert_for_1): Adjust for the change in
11855 register_edge_assert_for_2.
11856 (register_edge_assert_for): Split the cond argument.
11857 (find_switch_asserts): Adjust for the change in
11858 register_edge_assert_for.
11859
c8c521bb 118602008-04-02 Kai Tietz <kai.tietz@onevision.com>
11861
11862 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
1f93c018 11863 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
c61eb773 11864 offsets for 64-bit mingw.
1f93c018 11865 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
c61eb773 11866 abi for x86_64-pc-mingw.
c8c521bb 11867
22cdb855 118682008-04-02 Richard Guenther <rguenther@suse.de>
11869
11870 * tree-vrp.c (extract_range_from_assert): Make sure to not
11871 produce range min/max with TREE_OVERFOW set.
11872 If merging a anti-range and a range keep the anti-range if
11873 the range covers all values of the type.
11874 (register_edge_assert_for_2): Only allow sign-changing
11875 conversions in detecting canonical range checks. Also
11876 register an assert for the unsigned name if useful.
11877
11878 PR tree-optimization/35787
11879 * tree-vrp.c (vrp_val_max): New function.
11880 (vrp_val_min): Likewise.
11881 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11882 (vrp_val_is_min): Likewise.
11883 (supports_overflow_infinity): Use vrp_val_{min,max}.
11884 (negative_overflow_infinity): Likewise.
11885 (positive_overflow_infinity): Likewise.
11886 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11887 (is_positive_overflow_infinity): Likewise.
11888 (is_overflow_infinity): Likewise.
11889 (avoid_overflow_infinity): Use vrp_val_{min,max} and
11890 vrp_val_is_{min,max}.
11891 (set_and_canonicalize_value_range): Canonicalize anti-ranges
11892 to ranges if possible. Avoid empty ranges.
11893
10494d65 118942008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11895
11896 PR middle-end/35705
11897 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11898 the expression is a function address.
11899
a12691f0 119002008-04-01 George Helffrich <george@gcc.gnu.org>
11901
ae093573 11902 PR fortran/35154, fortran/23057
a12691f0 11903 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11904 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11905 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11906 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11907 in common.
11908 (dbxout_syms): Check for COMMON-based symbol and wrap in
11909 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11910 in bracket for efficiency.
11911
11912 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11913 using DW_TAG_common_block + member offset.
11914 (add_pubname_string): New function.
11915 (dw_expand_expr): New function to find block name and offset for
11916 COMMON var.
11917 (common_check): New function to check whether symbol in Fortran COMMON.
11918 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11919
fa3b771a 119202008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11921
11922 PR c/35436
11923 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11924
dbec73a5 119252008-04-02 Ben Elliston <bje@au.ibm.com>
11926
11927 * config/v850/v850.md (casesi): Remove if (0) code.
11928 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11929 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11930
3a8f2ab9 119312008-04-01 Uros Bizjak <ubizjak@gmail.com>
11932
11933 * config/i386/i386.md (rex64suffix): New mode attribute.
11934 (floathi<mode>2): Disable expander for SSE math.
11935 (*floathi<mode>2_1): New insn insn_and_split pattern.
11936 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11937 corresponding post-reload splitters.
11938 (*floathi<mode>2_i387): New macroized insn pattern.
11939 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11940 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11941 insn_and_split pattern.
11942 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11943 New macroized instruction patterns and corresponding post-reload
11944 splitters.
11945 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11946 and corresponding post-reload splitters.
11947 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11948 New macroized instruction patterns.
11949 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11950 macroized instruction patterns and corresponding post-reload splitters.
11951 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11952 corresponding post-reload splitters.
11953 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11954 New macroized instruction patterns.
11955 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11956 corresponding post-reload splitters.
11957 (*floatsi<mode>2_i387): New macroized instruction patterns.
11958
9409fce7 119592008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11960
11961 * config/i386/i386.md (smaxmin): New.
11962 (umaxmin): Likewise.
11963 (maxminiprefix): Likewise.
11964 (maxminfprefix): Likewise.
11965 (<code><mode>3): Likewise.
11966 (smin<mode>3): Removed.
11967 (smax<mode>3): Likewise.
11968
11969 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11970 (mmx_<code>v4hi3): Likewise.
11971 (mmx_<code>v8qi3): Likewise.
11972 (mmx_smaxv2sf3): Removed.
11973 (mmx_sminv2sf3): Likewise.
11974 (mmx_umaxv8qi3): Likewise.
11975 (mmx_smaxv4hi3): Likewise.
11976 (mmx_uminv8qi3): Likewise.
11977 (mmx_sminv4hi3): Likewise.
11978
11979 * config/i386/sse.md (<addsub><mode>3): New.
11980 (*<addsub><mode>3): Likewise.
11981 (<sse>_vm<addsub><mode>3): Likewise.
11982 (<maxmin><mode>3): Likewise.
11983 (*<maxmin><mode>3_finite): Likewise.
11984 (*<maxmin><mode>3): Likewise.
11985 (<sse>_vm<maxmin><mode>3): Likewise.
11986 (sse3_h<addsub>v4sf3): Likewise.
11987 (sse3_h<addsub>v2df3): Likewise.
11988 (<maxmin>v16qi3): Likewise.
11989 (*<maxmin>v16qi3): Likewise.
11990 (<maxmin>v8hi3): Likewise.
11991 (*<maxmin>v8hi3): Likewise.
11992 (*sse4_1_<maxmin><mode>3): Likewise.
11993 (*sse4_1_<maxmin><mode>3): Likewise.
11994 (add<mode>3): Removed.
11995 (*add<mode>3): Likewise.
11996 (<sse>_vmadd<mode>3): Likewise.
11997 (sub<mode>3): Likewise.
11998 (*sub<mode>3): Likewise.
11999 (<sse>_vmsub<mode>3): Likewise.
12000 (smin<mode>3): Likewise.
12001 (*smin<mode>3_finite): Likewise.
12002 (*smin<mode>3): Likewise.
12003 (<sse>_vmsmin<mode>3): Likewise.
12004 (smax<mode>3): Likewise.
12005 (*smax<mode>3_finite): Likewise.
12006 (*smax<mode>3): Likewise.
12007 (<sse>_vmsmax<mode>3): Likewise.
12008 (sse3_haddv4sf3): Likewise.
12009 (sse3_haddv2df3): Likewise.
12010 (sse3_hsubv4sf3): Likewise.
12011 (sse3_hsubv2df3): Likewise.
12012 (umaxv16qi3): Likewise.
12013 (*umaxv16qi3): Likewise.
12014 (smaxv8hi3): Likewise.
12015 (*smaxv8hi3): Likewise.
12016 (*sse4_1_smax<mode>3): Likewise.
12017 (*sse4_1_umax<mode>3): Likewise.
12018 (uminv16qi3): Likewise.
12019 (*uminv16qi3): Likewise.
12020 (sminv8hi3): Likewise.
12021 (*sminv8hi3): Likewise.
12022 (*sse4_1_smin<mode>3): Likewise.
12023 (*sse4_1_umin<mode>3): Likewise.
12024
d3ec693f 120252008-04-01 Rafael Espindola <espindola@google.com>
12026
12027 * tree-cfg.c (verify_expr): remove in_phi.
9409fce7 12028 (verify_stmt): Don't call walk_tree with verify_expr. Use
d3ec693f 12029 is_gimple_min_invariant instead of is_gimple_val.
12030
eae7da65 120312008-04-01 Joseph Myers <joseph@codesourcery.com>
12032
12033 * doc/include/gpl_v3.texi: Update for manpage generation.
12034 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
12035 gpl.texi.
12036 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
12037 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
12038 gpl_v3.texi instead of gpl.texi.
12039 (gpl.pod): New.
12040
f2225b1a 120412008-04-01 Jakub Jelinek <jakub@redhat.com>
12042
12043 PR pch/13675
12044 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
12045
7433d1d6 120462008-04-01 Rafael Espindola <espindola@google.com>
12047
12048 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
12049 (extract_code_and_val_from_cond): Use
12050 extract_code_and_val_from_cond_with_ops.
12051
1321f22c 120522008-04-01 Jan Hubicka <jh@suse.cz>
12053
12054 * function.c (free_after_compilation): Free epilogue_delay_list.
12055 (prepare_function_start): Assert that previous compilation was freed.
12056
08d2afb4 120572008-04-01 Jan Hubicka <jh@suse.cz>
12058 Jim Wilson <wilson@tuliptree.org>
12059 Andreas Tobler <andreast@gcc.gnu.org>
12060
12061 PR middle-end/35781
12062 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12063 rtl.emit instead cfun->emit.
12064 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12065 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12066
21b45faa 120672008-04-01 Ben Elliston <bje@au.ibm.com>
12068
12069 * doc/c-tree.texi (Function Basics): Fix grammatical error.
12070
3e3a0e9c 120712008-03-31 Seongbae Park <seongbae.park@gmail.com>
12072
12073 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12074 New options
12075 (fprofile-use): Add var flag_profile_use
3a8f2ab9 12076 * coverage.c (coverage_begin_output): Do not open a gcno file for
12077 output only if -ftest-coverage is set.
3e3a0e9c 12078 Do not add getpwd() to gcda file path.
3a8f2ab9 12079 (build_gcov_info): Check the new flag
3e3a0e9c 12080 flag_profile_datafile_relative_path.
12081 (coverage_init): Use profile_data_prefix.
12082 Read profile counter only if flag_profile_use is set.
12083 * opts.c (common_handle_option): New option fprofile-use=,
12084 fprofile-dir=, fprofile-generate=.
12085 * toplev.c (profile_data_prefix): New variable definition.
12086 * toplev.h (profile_data_prefix): New declaration.
12087 * doc/invoke.tex (Option Summary, Optimization Options):
12088 Add new options.
12089
4e508025 120902008-03-31 James E. Wilson <wilson@tuliptree.org>
12091
3a8f2ab9 12092 * varasm.c (output_constant_pool_1): In LABEL_REF check,
12093 use tmp consistently.
4bd8d9a1 12094
4e508025 12095 PR target/35695
12096 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12097 * config/ia64/ia64.c (rtx_needs_barrier): Handle
12098 UNSPEC_FR_RECIP_APPROX_RES.
12099 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12100
e911c0fe 121012008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
12102
12103 PR c/35750
12104 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12105
70a866cf 121062008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
12107
12108 PR middle-end/30186
12109 * fold-const.c (fold_indirect_ref_1): Support accessing non first
12110 element of the vector via a pointer.
12111
168de4c5 121122008-03-31 Ian Lance Taylor <iant@google.com>
12113
3a8f2ab9 12114 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
168de4c5 12115
b079a207 121162008-03-31 Jan Hubicka <jh@suse.cz>
12117
12118 * builtins.c (expand_builtin_setjmp_receiver): Update call of
12119 get_arg_pointer_save_area.
12120 * expr.c (init_expr): Just clear out rtl.expr.
12121 * function.c (free_after_compilation): Clear out whole RTL structure.
12122 (get_func_frame_size): Merge into ...
12123 (get_frame_size): ... this one.
12124 (assign_stack_local_1): Merge into ...
12125 (assign_stack_local): ... this one.
12126 (expand_function_end): Update call of get_arg_pointer_save_area.
12127 (get_art_pointer_save_area): Remove cfun argument.
12128 * function.h (emit_status): regno_pointer_align does not need length
12129 attribute. Move x_regno_reg_rtx to ...
12130 (regno_reg_rtx): ... new global array.
12131 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12132 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
3a8f2ab9 12133 apply_args_value, forced_labels, stack_pointer_delta):
12134 Update accestors.
b079a207 12135 (struct varasm_status): Move here from varasm.c
12136 (struct rtl_data): New. Move here some fields from struct function.
12137 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12138 frame_offset, stack_check_probe_note, arg_pointer_save_area,
12139 used_temp_slots avail_temp_slots, temp_slot_level,
12140 nonlocal_goto_handler_labels): Update accesstors.
12141 (rtl): New global variable.
12142 (struct function): Move some fileds to rtl_data.
12143 (get_arg_pointer_save_area): Update prototype.
12144 * emit-rtl.c (rtl): Declare.
12145 (regno_reg_rtx): Declare.
3a8f2ab9 12146 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12147 Update.
b079a207 12148 (gen_reg_rtx): Update.
12149 (init_virtual_regs): Do not tate emit_status argument.
12150 (init_emit): Do not allocate emit.
12151 * varasm.c (varasm_statuc): Move to function.h.
12152 (n_deferred_constatns): Update accestor.
12153 (init_varasm_status): Do not allocate varasm_status.
12154 (force_const_mem, get_pool_size, output_constant_pool): Update.
12155 * stmt.c (force_label_rtx): Do not use x_ prefixes.
12156 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12157
13ecee21 121582008-03-31 Zdenek Dvorak <ook@ucw.cz>
12159
12160 PR rtl-optimization/35729
12161 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12162 references.
12163
0010688c 121642008-03-31 H.J. Lu <hongjiu.lu@intel.com>
12165
12166 PR target/32000
12167 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12168 load/store if memory is unaligned.
12169 (*movti_rex64): Likewise.
12170
12171 * config/i386/predicates.md (misaligned_operand): New.
12172
435e1a75 121732008-03-31 Andrew Pinski <pinskia@gmail.com>
12174
12175 PR tree-opt/35431
12176 * tree-ssa-phiopt.c (conditional_replacement): Return early for
12177 complex types.
12178
80538812 121792008-03-31 Jan Beulich <jbeulich@novell.com>
12180
12181 * config/ia64/constraints.md: Add 'j' constraint.
12182 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12183 (movdi_internal): Likewise.
12184
ae4400fc 121852008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
12186
12187 PR c/35748
12188 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12189
7b18adb1 121902008-03-30 H.J. Lu <hongjiu.lu@intel.com>
12191
12192 PR target/35757
12193 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12194 proper error message for the third argument on blendpd and
12195 blendps.
12196
12197 * config/i386/sse.md (blendbits): New.
12198 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12199
54bd17de 122002008-03-30 Eric Botcazou <ebotcazou@adacore.com>
12201
12202 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12203
8db0c0ff 122042008-03-30 Richard Guenther <rguenther@suse.de>
12205
12206 PR middle-end/31023
12207 * fold-const.c (fold_sign_changed_comparison): Do leave
12208 conversions to base-types alone.
12209
29c144d1 122102008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
12211
12212 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12213 the link register if one altivec register is be saved.
12214
55007e96 122152008-03-30 Ben Elliston <bje@au.ibm.com>
12216
12217 * final.c (final_scan_insn): Remove if (0) code.
12218
b3cafa91 122192008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
12220
12221 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12222
18861bde 122232008-03-28 H.J. Lu <hongjiu.lu@intel.com>
12224
12225 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12226 of V4SFmode to ix86_binary_operator_ok.
12227
d173d680 122282008-03-28 Uros Bizjak <ubizjak@gmail.com>
12229
12230 * config/i386/i386.c (override_options): Initialize
12231 ix86_veclib_handler to ix86_veclibabi_svml when
12232 -mveclibabi=svml is used.
12233 (ix86_veclibabi_svml): New function for SVML ABI style
12234 vectorization support.
12235 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12236
93116081 122372008-03-28 Rafael Espindola <espindola@google.com>
12238
12239 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12240 (tree_binary_nonnegative_warnv_p): Make it public.
12241 (tree_single_nonnegative_warnv_p): Make it public.
12242 (tree_invalid_nonnegative_warnv_p): Make it public.
12243 (tree_unary_nonzero_warnv_p): Make it public.
12244 (tree_binary_nonzero_warnv_p): Make it public
12245 (tree_single_nonzero_warnv_p): Make it public.
12246 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12247 (extract_range_from_binary_expr): Split the expr argument.
12248 (extract_range_from_unary_expr): Split the expr argument.
12249 (extract_range_from_comparison): Split the expr argument.
12250 (extract_range_from_expr): Use the new aux functions.
12251 (vrp_evaluate_conditional_warnv): Use
12252 vrp_evaluate_conditional_warnv_with_ops.
12253 * tree.h (tree_unary_nonzero_warnv_p): Declare.
12254 (tree_binary_nonzero_warnv_p): Declare.
12255 (tree_single_nonzero_warnv_p): Declare.
12256 (tree_expr_nonzero_warnv_p): Declare.
12257 (tree_unary_nonnegative_warnv_p): Declare.
12258 (tree_binary_nonnegative_warnv_p): Declare.
12259 (tree_single_nonnegative_warnv_p): Declare.
12260 (tree_invalid_nonnegative_warnv_p): Declare.
12261
bed8bec4 122622008-03-28 Richard Guenther <rguenther@suse.de>
12263
12264 PR tree-optimization/30317
12265 PR tree-optimization/30911
12266 PR tree-optimization/34793
12267 * tree-vrp.c (set_and_canonicalize_value_range): New function.
12268 (struct assert_locus_d): New member EXPR.
12269 (register_new_assert_for): Add EXPR parameter to support
12270 ASSERT_EXPR <name, expr OP limit>.
12271 (register_edge_assert_for_1): Adjust callers.
12272 (find_assert_locations): Likewise.
d173d680 12273 (process_assert_insertions_for): Build condition from expression.
bed8bec4 12274 (extract_range_from_assert): Handle ASSERT_EXPRs
12275 of the form ASSERT_EXPR <name, expr OP limit>.
12276 (register_edge_assert_for_2): New helper registering
12277 asserts for comparisons. Recognize range tests of the form
12278 (unsigned)i - CST1 OP CST2.
12279 (register_edge_assert_for_1): Use it.
12280 (register_edge_assert_for): Likewise.
12281 (needs_overflow_infinity): Integer sub-types
12282 do not need overflow infinities.
12283 (vrp_val_is_max): The extreme values of integer sub-types
12284 are those of the base type.
12285 (vrp_val_is_min): Likewise.
12286 * tree.def (ASSERT_EXPR): Document extra allowed conditional
12287 expressions.
12288
55f3f40f 122892008-03-28 Nick Clifton <nickc@redhat.com>
12290
12f2d5e9 12291 PR target/31110
55f3f40f 12292 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
d173d680 12293 Return GENERAL_REGS for stack adjustment reloads.
55f3f40f 12294
cb47bce8 122952008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12296
12297 PR target/31334
12298 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12299 const_vector when all the vectors are constant.
12300
a22be2c5 123012008-03-27 Bob Wilson <bob.wilson@acm.org>
12302
12303 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12304 comparisons.
12305 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12306 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12307 (scc_sf): New.
12308 (s<code>_sf): Use new scc_sf attribute for opcode names.
12309
21886706 123102008-03-27 Tom Tromey <tromey@redhat.com>
12311
12312 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12313 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12314 config/spu/t-spu-elf, config/i386/t-interix,
12315 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12316 config/i386/x-darwin, config/i386/x-mingw32,
12317 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12318 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12319 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12320 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12321 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12322 config/rs6000/x-darwin, config/rs6000/t-rs6000,
12323 config/score/t-score-elf, config/arm/t-strongarm-pe,
12324 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12325 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12326 Revert automatic dependency patch.
12327
4f0ebb16 123282008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12329
12330 PR target/35657
12331 * config/i386/i386.c (ix86_function_arg_boundary): Align
12332 decimal floating point to its natural boundary.
12333
dd691fd8 123342008-03-27 Richard Guenther <rguenther@suse.de>
12335
12336 PR middle-end/35716
12337 * fold-const.c (fold_comparison): Restrict distinct decl
12338 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12339 solely rely on operand_equal_p.
12340
059a60f3 123412008-03-27 Richard Guenther <rguenther@suse.de>
12342
12343 PR c/32511
12344 * c-common.c (handle_weak_attribute): Reject combination of
12345 weak and inline.
12346
590d65aa 123472008-03-27 Richard Guenther <rguenther@suse.de>
12348
12349 PR tree-optimization/32810
12350 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12351 conversions from DECL_INITIAL.
12352 (fold_const_aggregate_ref): Likewise from constructor elements.
12353
063a8bce 123542008-03-27 Zdenek Dvorak <ook@ucw.cz>
12355
12356 * tree-affine.h (aff_combination_expand): Declare.
12357 (get_inner_reference_aff): Likewise.
12358 * tree-affine.c (aff_combination_expand): Split out from
12359 tree_to_aff_combination_expand.
12360 (get_inner_reference_aff): New function.
12361 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
d173d680 12362 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12363 (struct lim_aux_data): sm_done field removed.
12364 (mem_ref_loc_p, mem_ref_locs_p): New types.
12365 (struct mem_ref): Added id, stored, accesses_in_loop,
12366 indep_loop, dep_loop, indep_ref, dep_ref fields.
12367 Removed is_stored, locs and next fields.
12368 (memory_accesses): New variable.
12369 (movement_possibility): Do not allow moving statements
12370 that store to memory.
12371 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12372 New functions.
12373 (determine_max_movement): For statements with memory references,
12374 find the outermost loop in that the reference is independent.
12375 (move_computations_stmt): Mark the virtual operands for renaming.
12376 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12377 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12378 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12379 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12380 create_vop_ref_mapping, analyze_memory_references,
12381 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12382 get_all_locs_in_loop, ref_always_accessed_p,
12383 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12384 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12385 store_motion_loop, store_motion): New functions.
12386 (struct vop_to_refs_elt): New type.
12387 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12388 memref_hash, memref_eq, hoist_memory_references): Rewritten.
12389 (schedule_sm): Replaced by...
12390 (execute_sm): ... this.
12391 (determine_lsm_ref, hoist_memory_references,
12392 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12393 find_more_ref_vops, free_mem_ref, free_mem_refs,
12394 determine_lsm_loop, determine_lsm): Removed.
12395 (tree_ssa_lim_finalize): Free data structures used by store motion.
12396 (tree_ssa_lim): Call analyze_memory_references. Use
12397 store_motion instead of determine_lsm.
063a8bce 12398
58a8c75f 123992008-03-27 Paolo Bonzini <bonzini@gnu.org>
12400
12401 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12402 rename tmake_file to m68hc11/t-m68hc11.
12403 (mcore): Set inhibit_libc to true.
12404 * config.host (alpha*-dec-*vms*): Set extra_programs.
12405 (interix3*): Don't use host_xmake_file.
12406 * configure.ac: Let config.gcc override inhibit_libc.
12407 * configure: Regenerate.
12408
12409 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12410 * config/t-openbsd-thread: Remove commented out lines.
14eddddd 12411
58a8c75f 12412 * config/x-interix: Remove.
12413
12414 * config/m68hc11/t-m68hc11-gas: Rename to...
12415 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
12416
12417 * config/mcore/t-mcore: Remove T_CFLAGS.
12418 * config/mcore/t-mcore-pe: Likewise.
12419
b9146087 124202008-03-27 Paolo Bonzini <bonzini@gnu.org>
12421
12422 * configure.ac: Replace custom __GNU_SOURCE test with
12423 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
12424 * aclocal.m4: Regenerate.
12425 * configure: Regenerate.
12426 * config.in: Regenerate.
12427
ffdf1c47 124282008-03-27 Richard Guenther <rguenther@suse.de>
12429
12430 * fold-const.c (target.h): Include.
12431 (fold_comparison): Fold comparison of addresses of decls
12432 that bind locally or of constants. Consolidate address folding code.
12433 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12434 results from fold_binary_to_constant.
12435 (compare_values_warnv): Likewise.
12436
d159b72d 124372008-03-27 Andrew Pinski <pinskia@gmail.com>
12438
12439 PR middle-end/35429
12440 * fold-const.c (fold_truthop): Check for integeral types when folding
12441 a == 0 && b == 0 and a != 0 || b != 0 .
12442
bed74a71 124432008-03-26 Eric Botcazou <ebotcazou@adacore.com>
12444
12445 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12446
7e8061cf 124472008-03-26 Andreas Schwab <schwab@suse.de>
12448
12449 * doc/invoke.texi: Fix use of @item vs. @itemx.
12450
f731500e 124512008-03-26 Tom Tromey <tromey@redhat.com>
12452
12453 * Makefile.in (build/gensupport.o, build/print-rtl.o,
12454 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12455 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12456 build/gencodes.o, build/genconditions.o, build/genconfig.o,
12457 build/genconstants.o, build/genemit.o, build/genextract.o,
12458 build/genflags.o, build/genmddeps.o, build/genopinit.o,
12459 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12460 options.h.
12461
e7d6ed86 124622008-03-26 Richard Guenther <rguenther@suse.de>
12463
12464 Revert
12465 2008-03-26 Richard Guenther <rguenther@suse.de>
12466
12467 * fold-const.c (target.h): Include.
12468 (fold_comparison): Fold comparison of addresses of two decls
12469 that bind locally. Consolidate address folding code.
12470
3fa759a9 124712008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12472
12473 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12474 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12475 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12476 dconstsqrt2, dconstthird, dconste and/or dconst10.
12477 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12478 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12479 dconstsqrt2, dconste): Delete.
12480 (init_emit_once): Likewise. Simplify initializing dconstm1.
12481 Constify variable.
12482 * real.c (get_real_const): New.
12483 * real.h (dconst3, dconst10, dconstm2, dconstthird,
12484 dconstsqrt2, dconste): Delete.
12485 (real_value_const, get_real_const): New.
12486
3a8a26d5 124872008-03-26 H.J. Lu <hongjiu.lu@intel.com>
12488
12489 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12490
12491 * config/i386/i386.c (ix86_function_arg_boundary): Check
12492 BIGGEST_ALIGNMENT instead of 128.
12493 (setup_incoming_varargs_64): Likewise.
12494
ae69189e 124952008-03-26 Tom Tromey <tromey@redhat.com>
12496
12497 * Makefile.in (DEPFILES): Add missing '/'.
12498
60f42188 124992008-03-26 Richard Guenther <rguenther@suse.de>
12500
12501 * fold-const.c (target.h): Include.
12502 (fold_comparison): Fold comparison of addresses of two decls
12503 that bind locally. Consolidate address folding code.
12504
a0ebe2ee 125052008-03-26 Nick Clifton <nickc@redhat.com>
12506
12507 PR target/31232
12508 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12509 not allow INT+INT as a legitimate addressing mode.
12510
e607210a 125112008-03-26 Richard Guenther <rguenther@suse.de>
12512
12513 * tree-flow.h (widen_bitfield): Remove declaration.
12514 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12515 (widen_bitfield): Remove function.
12516 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12517 code.
12518
f082efb4 125192008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12520
5c00ef9c 12521 PR target/31558
f082efb4 12522 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12523 error_mark_node's.
12524
1e32b0c4 125252008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
12526
12527 PR rtl-optimization/35232
12528 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12529 (forget_old_reloads_1, forget_marked_reloads): Don't clear
12530 reg_reloaded_call_part_clobbered here.
12531 (reload_regs_reach_end_p): New function.
12532 (reload_reg_rtx_for_input): New variable.
12533 (reload_reg_rtx_for_output): Likewise.
12534 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
14eddddd 12535 when reassigning a pseudo register. Load reloadreg from
1e32b0c4 12536 reload_reg_rtx_for_input, moving the mode and register
12537 calculation to...
12538 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
12539 instead of the original when deciding whether an input reload
12540 would be a no-op or whether an output reload can be deleted.
12541 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12542 when setting up new_spill_reg_store. Load it from
12543 reload_reg_rtx_for_output, moving the mode and register
12544 calculation to...
12545 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
12546 instead of the original when deciding whether an output reload
12547 would be a no-op. Do the same when modifying insn notes.
12548 Use rtx_equal_p instead of == to compare the registers.
12549 (inherit_piecemeal_p): Take a mode and two register numbers
12550 as argument.
12551 (emit_reload_insns): Clear new_spill_reg_store for every hard
12552 register in the reload register. Remove spill registers
12553 from reg_reloaded_valid before considering whether to record
12554 inheritance information for them. Use reload_reg_rtx_for_output
12555 instead of reg_rtx when recording output reloads. Use
12556 reload_reg_rtx_for_input instead of reg_rtx when recording
12557 input reloads. Set or clear reg_reloaded_call_part_clobbered
12558 at the same time as setting reg_reloaded_valid.
12559 (delete_output_reload): Add a new_reload_reg parameter and use it
12560 instead of rld[j].reg_rtx.
12561 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12562 calls accordingly.
12563
72490eb6 125642008-03-25 Tom Tromey <tromey@redhat.com>
12565
12566 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12567 (build/genattr.o): Likewise.
12568 (build/genattrtab.o): Likewise.
12569 (build/gencodes.o): Likewise.
12570 (build/genconfig.o): Likewise.
12571 (build/genconstants.o): Likewise.
12572 (build/genemit.o): Likewise.
12573 (build/genextract.o): Likewise.
12574 (build/genflags.o): Likewise.
12575
1bdc4996 125762008-03-25 Bob Wilson <bob.wilson@acm.org>
14eddddd 12577
1bdc4996 12578 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12579 instead of size_int for integer types.
12580 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
12581 to match type of MINUS_EXPR.
14eddddd 12582
ac26af35 125832008-03-25 Tom Tromey <tromey@redhat.com>
12584
12585 * configure: Rebuilt.
12586 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12587 Makefile.
12588
277b05bb 125892008-03-25 Tom Tromey <tromey@redhat.com>
12590
12591 * config/x-solaris (host-solaris.o): Update.
12592 * config/x-linux (host-linux.o): Update.
12593 * config/x-hpux (host-hpux.o): Update.
12594 * config/x-darwin (host-darwin.o): Update.
12595 * config/v850/t-v850e (v850-c.o): Update.
12596 * config/v850/t-v850 (v850-c.o): Update.
12597 * config/t-vxworks (vxworks.o): Update.
12598 * config/t-sol2 (sol2-c.o, sol2.o): Update.
a4be8081 12599 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
277b05bb 12600 * config/spu/t-spu-elf (spu-c.o): Update.
12601 (spu.o): Remove.
12602 * config/sh/t-symbian (sh-c.o): Update.
12603 (symbian.o): Update.
12604 * config/sh/t-sh (sh-c.o): Update.
12605 * config/score/t-score-elf (score7.o, score3.o): Update.
12606 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12607 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12608 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12609 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12610 (rs6000.o): Remove.
12611 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12612 * config/m32c/t-m32c (m32c-pragma.o): Update.
12613 * config/ia64/t-ia64 (ia64-c.o): Update.
12614 * config/i386/x-mingw32 (host-mingw32.o): Update.
12615 * config/i386/x-i386 (driver-i386.o): Update.
12616 * config/i386/x-darwin (host-i386-darwin.o): Update.
12617 * config/i386/x-cygwin (host-cygwin.o): Update.
12618 * config/i386/t-nwld (nwld.o): Update.
12619 * config/i386/t-netware (netware.o): Update.
12620 * config/i386/t-interix (winnt.o): Update.
12621 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12622 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12623 msformat-c.o): Update.
12624 * config/bfin/t-bfin-linux (generated_files): Add
12625 linux-sysroot-suffix.h.
12626 * config/arm/t-wince-pe (pe.o): Update.
12627 * config/arm/t-strongarm-pe (pe.o): Update.
12628 * config/arm/t-pe (pe.o): Update.
12629 * config/arm/t-arm (arm-c.o): Update.
12630 * doc/install.texi (Prerequisites): Require make 3.80.
12631 * Makefile.in: Remove .o targets.
12632 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12633 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12634 (simple_generated_h, simple_generated_c): Move earlier.
12635 (generated_files): New variable.
12636 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12637 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12638 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12639 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12640 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12641 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12642 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12643 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12644 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12645 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12646 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12647 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12648 (.c.o): Remove.
12649 (COMPILE.base, COMPILE): New variables.
12650 (%.o): New pattern rule.
12651 (ALL_HOST_OBJS): New variable.
12652 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12653 (dummy-checksum.o, cc1-checksum.o): Remove.
12654 (DRIVER_SHLIB): New variable.
12655 (DRIVER_DEFINES): Use it.
12656 (gencondmd.c): Move out of build/.
12657 (s-conditions): Update.
12658 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12659 (ALL_BUILD_OBJS): Likewise.
12660 (build/%.o): Use BUILDCOMPILE.
12661 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12662 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12663 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12664 build/gencheck.o, build/gencodes.o, build/genconditions.o,
12665 build/genconfig.o, build/genconstants.o, build/genemit.o,
12666 build/genextract.o, build/genflags.o, build/genmddeps.o,
12667 build/genopinit.o, build/genoutput.o, build/genpeep.o,
12668 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12669 build/gen-protos.o, build/scan.o, build/fix-header.o,
12670 build/scan-decls.o): Simplify.
12671 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12672 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12673 prefix.o, toplev.o): Reduce to variable setting.
a4be8081 12674 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
277b05bb 12675 ($(out_object_file), gcc-options.o): New targets.
a4be8081 12676 ($(ALL_HOST_OBJS)): New target. Include dependency files.
277b05bb 12677 * configure: Rebuilt.
a4be8081 12678 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12679 * doc/sourcebuild.texi (Front End Directory): Document new variable.
277b05bb 12680
ebd21de4 126812008-03-25 Douglas Gregor <doug.gregor@gmail.com>
12682
a4be8081 12683 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12684 complain when we hit an error, return ERROR_MARK_NODE.
ebd21de4 12685
bc1c5420 126862008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12687
12688 * config/sh/constraints.md (Pso, Psz): New constraints.
12689 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12690 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12691
5897d9f3 126922008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12693
a4be8081 12694 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
5897d9f3 12695 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12696
5f3ca2f6 126972008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12698
12699 * config/sh/sh.md (prefetch): Add condition for SH2A target.
14eddddd 12700 (prefetch_sh2a): New.
5f3ca2f6 12701
419b390c 127022008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12703 Naveen.H.S <naveen.hs@kpitcummins.com>
12704
12705 * config/sh/constraints.md (I28): New constraint.
12706 * config/sh/sh.c (broken_move): Add support for movi20s.
a4be8081 12707 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
419b390c 12708
5241f4ad 127092008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
12710 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12711 Naveen.H.S <naveen.hs@kpitcummins.com>
12712
12713 * config/sh/sh.c (SH_ATTRIBUTES): Define.
12714 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12715 (print_operand): Handle resbank in %@ operand code.
12716 (sh_encode_section_info): New.
12717 (push_regs): Add conditions for resbank.
12718 (sh_expand_epilogue): Likewise.
12719 (sh_insert_attributes): Likewise.
12720 (sh_attribute_table): Likewise.
12721 (sh_handle_resbank_handler_attribute): New.
12722 (sh2a_handle_function_vector_handler_attribute): New.
12723 (sh2a_is_function_vector_call): New.
12724 (sh2a_get_function_vector_number): New.
12725 (sh2a_function_vector_p): New.
12726 (sh_cfun_resbank_handler_p): New.
12727 * config/sh/sh.md (calli): Emit jsr/n if possible.
12728 (calli_tbr_rel): New.
12729 (calli_pcrel): Emit jsr/n if possible.
12730 (return_i): Emit rts/n if possible.
12731 (call_valuei_tbr_rel): New.
12732 (call_valuei_pcrel): Add condition for SH2A target.
12733 (call_value): Likewise.
12734 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12735 (sh2a_get_function_vector_number): Likewise.
12736 (sh2a_is_function_vector_call): Likewise.
12737 * doc/extend.texi: Document TBR relative addressing of SH2A.
12738 (resbank): Add description for SH2A.
12739
80296012 127402008-03-24 Richard Guenther <rguenther@suse.de>
12741
12742 PR c/22371
12743 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12744 pointer assignments change conversions according to middle-end rules.
12745 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12746 * configure.ac: Include type checking in yes.
12747 * configure: Regenerate.
12748
43404f28 127492008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12750
12751 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12752 (diagnostic_report_diagnostic): Update. Handle ICEs here.
14eddddd 12753
0a824f63 127542008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12755
12756 * gthr-vxworks.h (UNUSED): Define.
12757
ffc0b1ed 127582008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12759
d173d680 12760 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
ffc0b1ed 12761
9d5b78d0 127622008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12763
12764 * doc/extend.texi (Function Attributes): Add missing comma in the
12765 example of the "alloc_size" attribute.
14eddddd 12766
933a719e 127672008-03-23 Uros Bizjak <ubizjak@gmail.com>
12768
12769 Revert:
12770 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12771
12772 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12773 32bit host.
12774
12775 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12776
12777 PR target/35496
12778 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12779 of the underlying type of a MS bitfield layout to the natural
12780 alignment of the type.
12781
12782 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12783
12784 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12785 to their natural alignment to avoid store forwarding stalls.
12786
0a685b29 127872008-03-22 Richard Guenther <rguenther@suse.de>
12788
12789 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12790 For PHI nodes verify the address is invariant.
12791 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12792 (get_symbol_constant_value): Use is_gimple_min_invariant.
12793 (maybe_fold_stmt_indirect): Likewise.
12794
10d4de0e 127952008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
12796
12797 PR rtl-optimization/33927
12798 * Makefile.in (dse.o): Depend on $(TM_P_H).
12799 * expr.h (extract_low_bits): Declare.
12800 * expmed.c (extract_low_bits): New function.
12801 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12802 * dse.c: Include tm_p.h.
12803 (find_shift_sequence): Remove the read_reg argument and return the
12804 read value. Emit the instructions instead of returning them.
12805 Iterate on new_mode rather than calculating it each time.
12806 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
12807 source to NEW_MODE and extract_low_bits to convert the shifted
12808 value to READ_MODE.
12809 (replace_read): Allow the load and store to have different mode
12810 classes. Use extract_low_bits when SHIFT == 0. Create the shift
12811 or extraction instructions before trying the replacement. Update
12812 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12813
941c7853 128142008-03-22 Uros Bizjak <ubizjak@gmail.com>
12815
12816 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12817 to their natural alignment to avoid store forwarding stalls.
12818
3a1e8d7a 128192008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12820
3a30a2a9 12821 PR target/27946
3a1e8d7a 12822 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12823 encouraging but not allowing gprs for input;
12824 change the input constraint to !f#r.
12825 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12826 gprs for output;
12827 change the output constraint to !f#r.
12828
89ba852b 128292008-03-21 Uros Bizjak <ubizjak@gmail.com>
12830
12831 PR target/13958
12832 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12833 corresponding post-reload splitters.
12834 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12835 when x87 FP math is selected.
12836 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12837 New function prototype.
12838 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12839 unreachable function to ease macroization of insn patterns.
12840
4cc34f6b 128412008-03-21 Martin Jambor <mjambor@suse.cz>
12842
12843 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12844 reference dumps if ddr is NULL or dependence is unknown.
12845
d9f903b8 128462008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12847
12848 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12849 unsigned extension into account.
12850 (ATOMIC_COMPARE_AND_SWAP): Likewise.
12851 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12852 Do computations on a scratch register.
12853
71d9af81 128542008-03-21 Richard Guenther <rguenther@suse.de>
12855
12856 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12857 Use is_gimple_min_invariant instead of TREE_INVARIANT.
12858 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12859 * tree-ssa-dom.c (record_equality): Likewise.
12860 * tree-inline.c (copy_body_r): Likewise.
12861 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12862 TREE_INVARIANT.
12863
5b54eabf 128642008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12865
12866 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12867 as 'delete_unused' argument.
12868
8ac2d49b 128692008-03-20 Richard Guenther <rguenther@suse.de>
12870
12871 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12872 special casing of constant qualifiers.
12873 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12874 care about them in general.
12875 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12876 regardless of their type.
12877 (fold_stmt_r): Forcefully fold *& if we end up with that.
12878
9d6f81ac 128792008-03-20 Paul Brook <paul@codesourcery.com>
12880
12881 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12882 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12883 linker flags.
12884 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12885 definition.
12886 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12887 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12888
f63eb5d3 128892008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
12890
12891 * common.opt (Wmudflap): New option.
12892 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12893 (mx_register_decls): Likewise.
12894 (mudflap_finish_file): Likewise.
12895 * doc/invoke.texi: Document -Wno-mudflap.
12896
128972008-03-20 Kai Tietz <kai.tietz@onevision.com>
635c5a98 12898
12899 * c-format.c (replace_format_name_to_system_name): New.
12900 (cmp_attribs): New.
12901 (convert_format_name_to_system_name): New.
12902 (decode_format_attr): Add use of convert_format_name_to_system_name.
12903 (format_types_orig): Add gnu_ prefix to names.
12904 (check_format_info_main): Special treating of \0 escaped names for
12905 supporting multi-character format specifiers as I32, I64.
12906 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12907 (gnu_target_overrides_format_attributes): New.
12908 * c-format.h: Add structure target_ovr_attr to hold
12909 system specific formatter names.
12910 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12911 msformat-c.o file to c_target_objs and cxx_target_objs.
12912 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12913 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12914 (TARGET_N_FORMAT_TYPES): New.
12915 * config/i386/msformat-c.c: New.
12916 * config/i386/t-cygming: Add build rule for msformat-c.o.
12917 * doc/extend.texi: Add new format names gnu_* and ms_* and
12918 further details.
12919 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12920
877e1093 129212008-03-20 Ira Rosen <irar@il.ibm.com>
12922
12923 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12924 optimizations turned on under -O3.
12925 (ftree-vectorize): Add that the flag is turned on with -O3.
12926
73b5bf07 129272008-03-20 Ben Elliston <bje@au.ibm.com>
12928
12929 * regmove.c (try_auto_increment): Fix spelling error in comment.
12930 * final.c (final_scan_insn): Likewise.
12931
59047d58 129322008-03-20 Uros Bizjak <ubizjak@gmail.com>
12933
12934 PR target/14552
12935 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12936 allocator preferences for "y" and "r" class registers.
12937 ("*mov<mode>_internal"): Ditto.
12938 ("*movv2sf_internal_rex64"): Ditto.
12939 ("*movv2sf_internal"): Ditto.
12940
c0e7e9f7 129412008-03-19 Michael Matz <matz@suse.de>
12942
12943 PR middle-end/35616
12944 * calls.c (expand_call): Check overlap of arguments with call
12945 address for sibcalls.
12946
bb51041c 129472008-03-19 Uros Bizjak <ubizjak@gmail.com>
12948
12949 PR target/35496
12950 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12951 of the underlying type of a MS bitfield layout to the natural
12952 alignment of the type.
12953
20099e35 129542008-03-19 Jan Hubicka <jh@suse.cz>
12955
12956 PR other/35094
12957 * toplev.c (decode_d_option): Handle all CPP flags.
12958 * tree-vrp.c: Update tree_pass descriptors.
12959 * regrename.c: Update tree_pass descriptors.
12960 * fwprop.c: Update tree_pass descriptors.
12961 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12962 * tree-into-ssa.c: Update tree_pass descriptors.
12963 * tree-dump.c: Update tree_pass descriptors.
12964 * tree-complex.c: Update tree_pass descriptors.
12965 * tree-dump.h: Update tree_pass descriptors.
12966 * see.c: Update tree_pass descriptors.
12967 * cgraphbuild.c: Update tree_pass descriptors.
12968 * tracer.c: Update tree_pass descriptors.
12969 * tree-loop-distribution.c: Update tree_pass descriptors.
12970 * cgraph.c: Update tree_pass descriptors.
12971 * postreload-gcse.c: Update tree_pass descriptors.
12972 * postreload.c: Update tree_pass descriptors.
12973 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12974 * tree-tailcall.c: Update tree_pass descriptors.
12975 * tree-pass.h (tree_opt_pass): Rename to ...
12976 (opt_pass) ... this one; add "type" field and remove letter field.
12977 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12978 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12979 all_lowering_passes): Update declaration.
12980 * ipa-cp.c: Update tree_pass descriptors.
12981 * final.c: Update tree_pass descriptors.
12982 * omp-low.c: Update tree_pass descriptors.
12983 * tree-ssa-dse.c: Update tree_pass descriptors.
12984 * ipa-reference.c: Update tree_pass descriptors.
12985 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12986 * auto-inc-dec.c: Update tree_pass descriptors.
12987 * reorg.c: Update tree_pass descriptors.
12988 * cgraphunit.c: Update tree_pass descriptors.
12989 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12990 * tree-ssa-ccp.c: Update tree_pass descriptors.
12991 * df-core.c: Update tree_pass descriptors.
12992 * mode-switching.c: Update tree_pass descriptors.
12993 * tree-nomudflap.c: Update tree_pass descriptors.
12994 * modulo-sched.c: Update tree_pass descriptors.
12995 * ipa-pure-const.c: Update tree_pass descriptors.
12996 * cse.c: Update tree_pass descriptors.
12997 * web.c: Update tree_pass descriptors.
12998 * tree-stdarg.c: Update tree_pass descriptors.
12999 * tree-ssa-math-opts.c: Update tree_pass descriptors.
13000 * tree-ssa-dom.c: Update tree_pass descriptors.
13001 * tree-nrv.c: Update tree_pass descriptors.
13002 * tree-ssa-alias.c: Update tree_pass descriptors.
13003 * loop-init.c: Update tree_pass descriptors.
13004 * gimple-low.c: Update tree_pass descriptors.
13005 * ipa-inline.c: Update tree_pass descriptors.
13006 * tree-ssa-sink.c: Update tree_pass descriptors.
13007 * global.c: Update tree_pass descriptors.
13008 * ifcvt.c: Update tree_pass descriptors.
13009 * jump.c: Update tree_pass descriptors.
13010 * predict.c: Update tree_pass descriptors.
13011 * tree-ssa-loop.c: Update tree_pass descriptors.
13012 * recog.c: Update tree_pass descriptors.
13013 * dse.c: Update tree_pass descriptors.
13014 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
13015 * tree-eh.c: Update tree_pass descriptors.
13016 * regmove.c: Update tree_pass descriptors.
13017 * local-alloc.c
13018 * function.c: Update tree_pass descriptors.
13019 * tree-vectorizer.c: Update tree_pass descriptors.
13020 * gcse.c: Update tree_pass descriptors.
13021 * ipa-type-escape.c: Update tree_pass descriptors.
13022 * tree-if-conv.c: Update tree_pass descriptors.
13023 * init-regs.c: Update tree_pass descriptors.
13024 * ipa.c: Update tree_pass descriptors.
13025 * tree-ssa-phiopt.c: Update tree_pass descriptors.
13026 * rtl-factoring.c: Update tree_pass descriptors.
13027 * lower-subreg.c: Update tree_pass descriptors.
13028 * bt-load.c: Update tree_pass descriptors.
13029 * tree-dfa.c: Update tree_pass descriptors.
13030 * except.c: Update tree_pass descriptors.
13031 * emit-rtl.c: Update tree_pass descriptors.
13032 * cfgexpand.c: Update tree_pass descriptors.
13033 * tree-cfgcleanup.c: Update tree_pass descriptors.
13034 * cfgcleanup.c: Update tree_pass descriptors.
13035 * tree-ssa-pre.c: Update tree_pass descriptors.
13036 * tree-sra.c: Update tree_pass descriptors.
13037 * tree-mudflap.c: Update tree_pass descriptors.
13038 * tree-ssa-copy.c: Update tree_pass descriptors.
13039 * cfglayout.c: Update tree_pass descriptors.
13040 * tree-ssa-forwprop.c: Update tree_pass descriptors.
13041 * tree-ssa-dce.c: Update tree_pass descriptors.
13042 * tree-ssa.c: Update tree_pass descriptors.
13043 * regclass.c: Update tree_pass descriptors.
13044 * integrate.c: Update tree_pass descriptors.
13045 * tree-optimize.c: Update tree_pass descriptors.
13046 * tree-ssa-phiprop.c: Update tree_pass descriptors.
13047 * tree-object-size.c: Update tree_pass descriptors.
13048 * combine.c: Update tree_pass descriptors.
13049 * tree-outof-ssa.c: Update tree_pass descriptors.
13050 * bb-reorder.c: Update tree_pass descriptors.
13051 * stack-ptr-mod.c: Update tree_pass descriptors.
13052 * var-tracking.c: Update tree_pass descriptors.
13053 * tree-profile.c: Update tree_pass descriptors.
13054 * tree-vect-generic.c: Update tree_pass descriptors.
13055 * reg-stack.c: Update tree_pass descriptors.
13056 * sched-rgn.c: Update tree_pass descriptors.
13057 * tree-ssa-structalias.c: Update tree_pass descriptors.
13058 * tree-cfg.c: Update tree_pass descriptors.
13059 * passes.c (current_pass): Update declaration.
13060 (finish_optimization_passes): Update.
13061 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13062 (register_one_dump_file, register_dump_files_1, next_pass_1):
a07c5315 13063 Update arguments.
20099e35 13064 (init_optimization_passes): Update handling of new types.
13065 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13066 * ipa-struct-reorg.c: Update tree_pass descriptors.
13067 * tree-ssa-reassoc.c: Update tree_pass descriptors.
13068 * combine-stack-adj.c: Update tree_pass descriptors.
13069 * cfgrtl.c: Update tree_pass descriptors.
13070 * dce.c: Update tree_pass descriptors.
13071 * tree-ssanames.c: Update tree_pass descriptors.
13072
25084579 130732008-03-19 Richard Guenther <rguenther@suse.de>
13074
13075 PR middle-end/35609
60f42188 13076 * tree-ssa.c (walk_data): New structure.
13077 (warn_uninitialized_var): If not always_executed warn with "maybe"
25084579 13078 instead of "is".
13079 (execute_early_warn_uninitialized): Compute post-dominators.
13080 Initialize always_executed before processing each basic block.
13081
671cfe26 130822008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
13083
13084 PR target/35504
13085 * config/i386/i386.c (x86_this_parameter): Calculate correct location
13086 of "this" pointer when "regparm = N" or "fastcall" is in effect.
13087
dd518ada 130882008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13089
13090 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13091
dcfc697f 130922008-03-18 Paolo Bonzini <bonzini@gnu.org>
13093
671cfe26 13094 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13095 is true.
13096 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13097 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13098 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
13099 target after ignore has been set, and move there also the commputation
13100 of subtarget and original_target.
13101 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13102 (LANG_HOOKS_INITIALIZER): Remove it.
13103 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
dcfc697f 13104
b9e98b8a 131052008-03-18 Richard Guenther <rguenther@suse.de>
13106
13107 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13108 found an expression with constants, note that in the VN for the lhs.
13109 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13110 fold them to constants if possible. Run cleanup_cfg if done so.
13111 (execute_pre): Return todo.
13112 (do_pre): Likewise.
13113 (execute_fre): Likewise.
13114 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13115 of constants.
13116 (get_prop_source_stmt): Look through pointer conversions.
13117
4a1849e3 131182008-03-18 Jan Hubicka <jh@suse.cz>
13119
13120 * tree-pretty-print.c: Include predict.h.
13121 (dump_generic_node): Dump predictor.
13122 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13123 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13124 * gimple-low.c (lower_stmt): Likewise.
13125 * expr.c (expand_expr_real): Likewise.
13126 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13127 them.
13128 (build_predict_expr, build_predict_expr): New.
13129 * predict.h (predictor_name, build_predict_expr): Update.
13130 * c-typeck.c (c_finish_bc_stmt): Add prediction.
13131 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13132 * predict.def (PRED_CONTINUE): Update hitrate.
13133 * tree.def (PREDICT_EXPR): Define.
13134 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13135 do not handle BIND_EXPR.
13136 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13137 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13138 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13139 operands.
13140
a6eaabef 131412008-03-18 Michael Matz <matz@suse.de>
13142
13143 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13144
ffb04365 131452008-03-18 Richard Guenther <rguenther@suse.de>
13146
13147 * tree-gimple.h (is_gimple_invariant_address): Declare.
13148 (is_gimple_constant): Likewise.
13149 * tree-gimple.c (is_gimple_constant): New function.
13150 (is_gimple_invariant_address): Likewise.
13151 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13152 and is_gimple_invariant_address.
13153 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13154 previous change.
13155 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13156 an addressable base.
13157
0c378ed9 131582008-03-18 Jakub Jelinek <jakub@redhat.com>
13159
13160 PR middle-end/35611
13161 * gimplify.c (gimplify_expr): Gimplify second operand of
13162 OMP_ATOMIC_LOAD.
13163
0b4a6afc 131642008-03-17 Richard Guenther <rguenther@suse.de>
13165
13166 PR tree-optimization/19637
13167 * fold-const.c (fold_unary): Remove restrictions of removing
13168 intermediate pointer-conversions (P2)(P1)P0.
13169 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13170 conversion to void pointer.
13171 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13172
e845094d 131732008-03-16 James E. Wilson <wilson@tuliptree.org>
13174
13175 PR debug/31510
13176 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13177 emulated thread local variables.
13178
25080779 131792008-03-16 Richard Guenther <rguenther@suse.de>
13180
13181 PR middle-end/35607
13182 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13183 expand TREE_INVARIANT operations that are not gimple invariant.
13184
7290f090 131852008-03-16 Hans-Peter Nilsson <hp@axis.com>
13186
13187 * doc/extend.texi (Alignment): Say that the ABI controls
13188 the __alignof__ for non-strict-alignment targets rather
13189 than being a recommendation.
13190
49a83a87 131912008-03-15 Paul Brook <paul@codesourcery.com>
13192
13193 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13194 annotations.
13195 (arm_output_fn_unwind): Mark functions that can not be unwound.
13196
72e333b2 131972008-03-15 Paul Brook <paul@codesourcery.com>
13198
13199 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13200 extension instructions.
13201
04236c3a 132022008-03-15 Richard Guenther <rguenther@suse.de>
13203
13204 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13205 and fold constant aggregate refs.
13206 (fold_const_aggregate_ref): Handle string constants
13207 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
13208 (evaluate_stmt): Simplify now that ccp_fold folds constant
13209 aggregate refs.
13210
8b054d5a 132112008-03-15 Paul Brook <paul@codesourcery.com>
13212
13213 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13214 (extzv): Use gen_extzv_t2.
13215 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13216
e004838d 132172008-03-15 Richard Guenther <rguenther@suse.de>
13218
13219 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13220 (fold_const_aggregate_ref): Likewise.
13221 (get_value): Return NULL if we don't have any values.
13222 (ccp_finalize): Set const_val to NULL after freeing it.
13223 * tree-flow.h (get_symbol_constant_value): Declare.
13224 (fold_const_aggregate_ref): Likewise.
13225 * tree-ssa-sccvn.c (try_to_simplify): Use them.
13226
b7488229 132272008-03-15 Richard Guenther <rguenther@suse.de>
13228
13229 PR middle-end/35593
13230 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13231 to not produce negative array indices if not allowed. Add
13232 parameter to indicate that.
13233 (maybe_fold_offset_to_component_ref): Allow negative array
13234 indices only for the first member of a structure.
13235 (maybe_fold_offset_to_reference): Allow negative array indices.
13236 (maybe_fold_stmt_addition): Likewise.
13237
90ef7269 132382008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
bb51041c 13239 Anatoly Sokolov <aesok@post.ru>
90ef7269 13240
1f93c018 13241 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
90ef7269 13242 (avr_arch): Add ARCH_AVR6.
13243 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
a07c5315 13244 (initial_elimination_offset): Initialize and use 'avr_pc_size'
90ef7269 13245 instead of fixed value 2.
13246 (print_operand_address): Use gs() asm specifier instead of pm().
13247 (avr_assemble_integer): (Ditto.).
13248 (avr_output_addr_vec_elt): (Ditto.).
13249 (print_operand): Handle "!" code.
14eddddd 13250 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
90ef7269 13251 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13252 (AVR_HAVE_EIJMP_EICALL): Define.
13253 (AVR_3_BYTE_PC): Redefine.
13254 (AVR_2_BYTE_PC): (Ditto.).
13255 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13256 (LINK_SPEC): Add atmega2560 and atmega2561.
14eddddd 13257 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
90ef7269 13258 (crtm2561.o).
14eddddd 13259 * config/avr/avr.md (call_insn): Use eicall instead of icall
90ef7269 13260 for 3 byte PC devices.
13261 (call_value_insn): (Ditto.).
13262 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13263 (indirect_jump): Use only for for 2 byte PC devices.
13264 (*tablejump): (Ditto.).
13265 (*indirect_jump_avr6): Add insn.
13266 (*tablejump_rjmp): Don't use for 3 byte PC devices.
14eddddd 13267 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
90ef7269 13268 instead of ijmp for 3 byte PC devices.
13269 (__tablejump2__): (Ditto.).
1f93c018 13270 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
14eddddd 13271 (MULITLIB_DIRNAMES): (Ditto.).
90ef7269 13272 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13273
28a2ab9f 132742008-03-15 Uros Bizjak <ubizjak@gmail.com>
13275
13276 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13277 "sse2_umulsidi3". Use V1DI mode for operand 0.
13278 ("mmx_psadbw"): Use V1DI mode for operand 0.
13279 * config/i386/i386-modes.def (V1SI): New vector mode.
13280 * config/i386/i386.c (struct builtin_description)
13281 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13282 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13283 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13284 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13285 v1di_ftype_v8qi_v8qi type.
13286 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13287
13288 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13289 __builtin_ia32_pmuludq]: Fix the mode of return value.
13290
a77a3698 132912008-03-15 Richard Guenther <rguenther@suse.de>
13292
13293 PR middle-end/35595
13294 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13295 being a PHI_NODE.
13296
2c613040 132972008-03-14 Bob Wilson <bob.wilson@acm.org>
14eddddd 13298
2c613040 13299 * doc/invoke.texi (Option Summary, Xtensa Options): Document
13300 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13301 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13302 unless TARGET_SERIALIZE_VOLATILE is enabled.
13303 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13304 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13305 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13306
404d6be4 133072008-03-14 Richard Guenther <rguenther@suse.de>
13308
13309 PR tree-optimization/34172
13310 * tree-flow.h (refs_may_alias_p): Declare.
13311 (get_single_def_stmt): Likewise.
13312 (get_single_def_stmt_from_phi): Likewise.
13313 (get_single_def_stmt_with_phi): Likewise.
13314 * tree-dfa.c (refs_may_alias_p): New function.
13315 (get_single_def_stmt): Likewise.
13316 (get_single_def_stmt_from_phi): Likewise.
13317 (get_single_def_stmt_with_phi): Likewise.
13318 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13319 (vn_reference_lookup_1): New helper function.
13320 (vn_reference_lookup): Walk the virtual use-def chain to
13321 continue searching for a match if the def does not alias the
13322 reference we are looking for.
13323
a7af6b24 133242008-03-14 David Edelsohn <edelsohn@gnu.org>
13325
13326 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
13327 archive and Perzl. Update The Written Word listing.
13328
1d9353f3 133292008-03-14 Richard Guenther <rguenther@suse.de>
13330
13331 PR tree-optimization/34043
13332 PR tree-optimization/33989
13333 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13334 when doing FRE.
13335 (bitmap_find_leader): Use extra argument to verify dominance
13336 relationship inside a basic-block.
13337 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13338 (find_leader_in_sets): Adjust.
13339 (create_component_ref_by_pieces): Take extra argument for
13340 dominance check, handle lookup failures.
13341 (find_or_generate_expression): Likewise.
13342 (create_expression_by_pieces): Likewise.
13343 (insert_into_preds_of_block): Adjust.
13344 (create_value_expr_from): If asked for, verify all operands
13345 are in the blocks AVAIL_OUT set.
13346 (make_values_for_stmt): Check for SSA_NAMEs that are life
13347 over an abnormal edge.
13348 (compute_avail): Remove such check.
13349 (do_SCCVN_insertion): New function.
13350 (eliminate): If we do not find a leader suitable for replacement
13351 insert a replacement expression from SCCVN if available.
13352 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13353 (struct vn_ssa_aux): Add needs_insertion flag.
13354 * tree-ssa-sccvn.c (may_insert): New global flag.
13355 (copy_reference_ops_from_ref): Value-number union member access
13356 based on its size, not type and member if insertion is allowed.
13357 (visit_reference_op_load): For a weak match from union type
13358 punning lookup a view-converted value and insert a SSA_NAME
13359 for that value if that is not found.
13360 (visit_use): Make dumps shorter. Do not disallow value numbering
13361 SSA_NAMEs that are life over an abnormal edge to constants.
13362 (free_scc_vn): Release inserted SSA_NAMEs.
13363 (run_scc_vn): New flag to specify whether insertion is allowed.
13364 Process SSA_NAMEs in forward order.
13365 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13366 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13367 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13368 pointer type to/from integral types that do not change the
13369 precision to regular conversions.
13370
c9f96750 133712008-03-13 Uros Bizjak <ubizjak@gmail.com>
13372
13373 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13374 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13375 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13376 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5b2ddfe1 13377 input arguments and the mode of return value. Built-in functions
13378 that operate on whole 64-bit MMX register now use V1DI mode.
c9f96750 13379
3992c686 133802008-03-13 Alon Dayan <alond@il.ibm.com>
13381 Olga Golovanevsky <olga@il.ibm.com>
13382
13383 PR tree-optimization/35041
13384 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13385 to locate the right position in a statement.
13386
517b0286 133872008-03-13 Uros Bizjak <ubizjak@gmail.com>
13388
13389 PR target/34000
13390 PR target/35553
13391 * config/i386/xmmintrin.h: Change all static inline functions to
13392 extern inline and add __gnu_inline__ attribute.
13393 * config/i386/bmintrin.h: Ditto.
13394 * config/i386/smmintrin.h: Ditto.
13395 * config/i386/tmmintrin.h: Ditto.
13396 * config/i386/mmintrin-common.h: Ditto.
13397 * config/i386/ammintrin.h: Ditto.
13398 * config/i386/emmintrin.h: Ditto.
13399 * config/i386/pmmintrin.h: Ditto.
13400 * config/i386/mmintrin.h: Ditto.
13401 * config/i386/mm3dnow.h: Ditto.
13402
a4890dc9 134032008-03-13 Jakub Jelinek <jakub@redhat.com>
13404
13405 PR middle-end/35185
13406 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13407 (lower_omp_2): New function.
13408 (lower_omp_1, lower_omp): Rewritten.
13409
ebba2dc7 134102008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
13411
13412 PR 35054
13413 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13414 with the phrase "Microsoft Windows compilers".
13415 (Push/Pop Macro Pragmas): New subsection. Document
13416 #pragma push_macro and pragma pop_macro.
13417
1c4adc7a 134182008-03-12 Paul Brook <paul@codesourcery.com>
13419
13420 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13421
1d9e8561 134222008-03-12 Paul Brook <paul@codesourcery.com>
13423
13424 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13425 (thumb2_alusi3_short): Exclude PLUS and MINUS.
13426 (thumb2_addsi_shortim): Rename ...
13427 (thumb2_addsi_short): ... to this. Allow register operands.
13428 (thumb2_subsi_short): New pattern.
13429 (thumb2_one_cmplsi2_short,
13430 thumb2_negsi2_short): New patterns and peepholes.
13431
e077db18 134322008-03-12 Paul Brook <paul@codesourcery.com>
13433
e077db18 13434 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13435
96b39775 134362008-03-12 Uros Bizjak <ubizjak@gmail.com>
13437
13438 * config/i386/i386.md (int_cond): New code iterator.
13439 (fp_cond): Ditto.
13440 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13441 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13442 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13443 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13444 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13445 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13446 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13447 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13448
bb21ed29 134492008-03-12 Paul Brook <paul@codesourcery.com>
13450
13451 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13452 instead of {arm,thumb}_compute_save_reg_mask.
13453 (output_return_instruction): Ditto.
13454 (thumb_unexpanded_epilogue): Ditto.
13455 (thumb1_expand_prologue): Ditto.
13456 (thumb1_output_function_prologue): Ditto.
13457 (arm_set_return_address): Ditto.
13458 (thumb_set_return_address): Ditto.
13459 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
13460 regs to achieve stack alignment.
13461 (thumb1_compute_save_reg_mask): Fix compiler warning.
13462 (arm_output_epilogue): Use offsets->saved_regs_mask.
13463 Adjust stack pointer by poping call clobered registers.
13464 (arm_expand_prologue): Use offsets->saved_regs_mask.
13465 Adjust stack pointer by pushing extra registers.
a4890dc9 13466 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
bb21ed29 13467
92b2f241 134682008-03-12 Paolo Bonzini <bonzini@gnu.org>
13469
13470 PR tree-opt/35422
13471 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13472 conversion to the operands of a multiplication.
13473
a2fd87ad 134742008-03-12 Richard Guenther <rguenther@suse.de>
13475
13476 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13477 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13478 * timevar.def (TV_TREE_PHIPROP): Add.
13479 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13480 pass description. Use TV_TREE_PHIPROP.
13481 * tree-ssa-forwprop.c: Remove phiprop code.
13482
e8a588af 134832008-03-12 Jakub Jelinek <jakub@redhat.com>
13484
13485 PR middle-end/35549
13486 * omp-low.c (maybe_lookup_decl): Constify first argument.
13487 (use_pointer_for_field): Change last argument from bool to
13488 omp_context *. Disallow shared copy-in/out in nested
13489 parallel if decl is shared in outer parallel too.
13490 (build_outer_var_ref, scan_sharing_clauses,
13491 lower_rec_input_clauses, lower_copyprivate_clauses,
13492 lower_send_clauses, lower_send_shared_vars): Adjust callers.
13493
c6ba58f9 134942008-03-12 Victor Kaplansky <victork@il.ibm.com>
13495 Ira Rosen <irar@il.ibm.com>
13496
13497 * tree-vectorizer.c (free_stmt_vec_info): New function.
13498 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13499 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13500 * tree-vectorizer.h (free_stmt_vec_info): Declare.
13501 * tree-vect-transform.c (vectorizable_conversion): Free
13502 vec_oprnds0 if it was allocated.
13503 (vect_permute_store_chain): Remove unused VECs.
13504 (vectorizable_store): Free VECs that are allocated in the..
13505 function.
13506 (vect_transform_strided_load, vectorizable_load): Likewise.
13507 (vect_remove_stores): Simplify the code.
13508 (vect_transform_loop): Move code to vect_remove_stores().
13509 Call vect_remove_stores() and free_stmt_vec_info().
13510
feb01ed5 135112008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13512
13513 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13514 TARGET_HPUX. Revise comment.
13515 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13516 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13517 Use sr4 variant of `be' instruction when not generating PIC code.
13518 (attr_length_call): Adjust for above change.
13519
6219f064 135202008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13521
13522 * ipa-reference.c (static_execute): Remove module_statics_const and
13523 associated setting code.
13524
47b5db9d 135252008-03-11 Uros Bizjak <ubizjak@gmail.com>
13526
13527 PR target/35540
13528 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
59047d58 13529 predicate for operand 1.
13530 (paritysi2_cmp): Use register_operand predicate for operand 2.
47b5db9d 13531 Use earlyclobber modifier for operand 1. Remove support for
13532 memory operands.
59047d58 13533 (paritydi2_cmp): Use register_operand predicate for operand 3.
47b5db9d 13534 Use earlyclobber modifier for operand 1. Remove support for
13535 memory operands.
13536
6640ca58 135372008-03-11 Paul Brook <paul@codesourcery.com>
47b5db9d 13538 Vladimir Prus <vladimir@codesourcery.com>
6640ca58 13539
13540 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13541 (arm_compute_save_reg0_reg12_mask): Always
13542 check if register 11 must be saved. Always safe hard frame pointer
13543 when frame_pointer_needeed.
13544 (arm_compute_save_reg_mask): Save IP and PC
13545 only with apcs frames.
13546 (arm_output_epilogue): Adjust Thumb2 codepath to
13547 be also invoked and work for ARM non-apcs frames.
13548 (arm_expand_prologue): Don't bother saving IP
13549 for non-apcs frame, since it's not clobbered by
13550 prologue code. Implement non-apcs frame
13551 layout.
13552
8ae2fa3b 135532008-03-11 Paolo Bonzini <bonzini@gnu.org>
13554
13555 PR rtl-optimization/35281
13556 * expr.c (convert_move): Use a new pseudo for the intermediate
13557 from_mode->word_mode result.
13558
c616456b 135592008-03-11 Paolo Bonzini <bonzini@gnu.org>
13560
6640ca58 13561 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13562 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13563 * toplev.c (compile_file): Don't call it.
c616456b 13564
e06aee53 135652008-03-11 Uros Bizjak <ubizjak@gmail.com>
13566
13567 PR middle-end/35526
13568 * expr.c (store_expr): Call emit_block_move if the mode
13569 of "temp" RTX is BLKmode.
13570
06240723 135712008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
e06aee53 13572 Richard Guenther <rguenther@suse.de>
06240723 13573
13574 PR tree-optimization/31358
13575 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13576 the step with a NULL_TREE.
13577 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13578 to sizetype if type is a pointer type.
13579 (add_candidate_1): Don't convert the base and step to
13580 the generic type if the orginal type is a pointer type.
13581 (add_iv_value_candidates): Use sizetype for the step
13582 if type is a pointer type.
13583 (cand_value_at): Likewise.
13584 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13585 for pointer types.
13586 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13587 Don't convert the tem affine to the type.
13588 (add_elt_to_tree): Use sizetype for the step if a pointer.
13589 Use POINTER_PLUS_EXPR for pointers.
13590 (aff_combination_to_tree): Use sizetype for the step if a
13591 pointer.
13592
267858a7 135932008-03-10 Vladimir Makarov <vmakarov@redhat.com>
13594
13595 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13596 Remove commutativity hint.
13597
b821e790 135982008-03-10 Jakub Jelinek <jakub@redhat.com>
13599
50389d5d 13600 PR c/35438
13601 PR c/35439
13602 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13603 errorneous type. Check that v is a VAR_DECL.
13604
b821e790 13605 PR middle-end/35099
13606 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13607
ff949d47 136082008-03-10 H.J. Lu <hongjiu.lu@intel.com>
13609
13610 PR tree-optimization/35494
13611 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13612 may be overriden at link and run time.
13613
466e11c3 136142008-03-10 Richard Guenther <rguenther@suse.de>
13615
13616 PR tree-optimization/34677
13617 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13618 (poolify_tree): Likewise.
13619 (modify_expr_template): Likewise.
13620 (poolify_modify_stmt): Likewise.
13621 (insert_fake_stores): Handle all component-ref style stores
13622 in addition to INDIRECT_REF. Also handle complex types.
13623 Do not poolify the inserted load.
13624 (realify_fake_stores): Do not rebuild the tree but only
13625 make it a SSA_NAME copy.
13626 (init_pre): Remove initialzation of modify_expr_template.
13627 Do not allocate modify_expr_node_pool.
13628 (fini_pre): Do not free modify_expr_node_pool.
13629
2c2d2f40 136302008-03-10 Paul Brook <paul@codesourcery.com>
13631
13632 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13633 to avoid conflicts.
13634
934a1e72 136352008-03-10 Paul Brook <paul@codesourcery.com>
e06aee53 13636 Mark Shinwell <shinwell@codesourcery.com>
934a1e72 13637
934a1e72 13638 * config/arm/cortex-r4.md: New.
13639 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13640 insn attributes.
13641 * config/arm/arm.md: Include cortex-r4.md.
13642 (insn): Add smmls, sdiv and udiv values.
13643 (generic_sched): Don't use generic scheduling for Cortex-R4.
13644 (arm_issue_rate): New function.
13645 (TARGET_SCHED_ISSUE_RATE): Define.
13646
767297d1 136472008-03-10 Sebastian Pop <sebastian.pop@amd.com>
13648
13649 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13650
10bf6100 136512008-03-10 Richard Guenther <rguenther@suse.de>
13652
13653 * tree-ssa-pre.c (get_sccvn_value): Simplify.
13654 (compute_avail): Do not add stmt uses to AVAIL_OUT.
13655
550a64af 136562008-03-10 Paolo Bonzini <bonzini@gnu.org>
13657
13658 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13659 Set default to true.
13660
2c3b9819 136612008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13662
13663 * c.opt (Wsynth): Deprecate.
13664 * doc/invoke.texi (Option Summary, Warning Options): Document
13665 -Wno-format-contains-nul.
13666
e2cb4221 136672008-03-09 Uros Bizjak <ubizjak@gmail.com>
13668
13669 PR target/35496
2f6e3388 13670 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
e2cb4221 13671 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13672
5c93936e 136732008-03-09 Ira Rosen <irar@il.ibm.com>
13674
13675 * config/rs6000/rs6000.c (builtin_description): Rename vector
13676 left shift operations.
13677 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13678 (altivec_vsl<VI_char>): Rename to ...
13679 (ashl<mode>3): ... new name.
13680 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13681 gen_ashlv4si3.
13682 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13683
a961cdc2 136842008-03-08 Richard Guenther <rguenther@suse.de>
13685
13686 * coverage.h (tree_coverage_counter_addr): Declare.
13687 * coverage.c (tree_coverage_counter_addr): New function.
13688 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13689 before using again.
13690 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13691 (tree_gen_one_value_profiler): Likewise.
13692 (tree_gen_ic_profiler): Likewise.
13693 (tree_gen_average_profiler): Likewise.
13694 (tree_gen_ior_profiler): Likewise.
13695
51a23cfc 136962008-03-08 Richard Guenther <rguenther@suse.de>
13697
13698 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13699 (vn_binary_op_insert): Likewise.
13700 (vn_unary_op_lookup): Likewise.
13701 (vn_unary_op_insert): Likewise.
13702 (vn_nary_op_lookup): Declare.
13703 (vn_nary_op_insert): Likewise.
13704 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13705 and binary hashes, use a single obstack for unary_op_pool
13706 and binary_op_pool.
13707 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13708 a single struct vn_nary_op_s. Store tree code length and
13709 a variable number of operands.
13710 (struct vn_reference_op_struct): Remove unused op2.
13711 (vn_reference_op_eq): Do not compare op2.
13712 (vn_reference_op_compute_hash): Do not compute hash of op2.
13713 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13714 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13715 with vn_nary_op_compute_hash.
13716 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13717 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13718 vn_nary_op_lookup.
13719 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13720 vn_nary_op_insert.
13721 (visit_unary_op): Call nary functions.
13722 (visit_binary_op): Likewise.
13723 (process_scc): Adjust for struct vn_tables_s changes.
13724 (allocate_vn_table): Likewise.
13725 (free_vn_table): Likewise.
13726 * tree-vn.c (vn_add): Call nary functions.
13727 (vn_lookup): Likewise.
13728
ce096d07 137292008-03-08 Jakub Jelinek <jakub@redhat.com>
13730
13731 PR target/35498
13732 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13733 wdst back after sync_compare_and_swapqhi_internal.
13734
7916ca8a 137352008-03-08 Uros Bizjak <ubizjak@gmail.com>
13736
13737 PR target/22152
13738 * config/i386/i386-modes.def (V1DI): New vector mode.
13739 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13740 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13741 (MMXMODE248): Ditto.
13742 (MMXMODE): Add V1DI mode.
13743 (mmxvecsize): Change DI mode to V1DI mode.
13744 ("mov<mode>): Use MMXMODEI8 mode iterator.
13745 ("*mov<mode>_internal_rex64"): Ditto.
13746 ("*mov<mode>_internal"): Ditto.
13747 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13748 ("mmx_sub<mode>3"): Ditto.
13749 ("mmx_adddi3"): Remove insn pattern.
13750 ("mmx_subdi3"): Ditto.
13751 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13752 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13753 ("mmx_ashl<mode>3"): Ditto.
13754 ("mmx_lshrdi3"): Remove insn pattern.
13755 ("mmx_ashldi3"): Ditto.
13756 * config/i386/i386.c (classify_argument): Handle V1DImode.
13757 (function_arg_advance_32): Ditto.
13758 (function_arg_32): Ditto.
13759 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13760 mmx_addv1di3 insn pattern.
13761 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13762 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13763 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13764 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13765 Remove definitions of built-in functions.
13766 (V1DI_type_node): New node.
13767 (v1di_ftype_v1di_int): Ditto.
13768 (v1di_ftype_v1di_v1di): Ditto.
13769 (v2si_ftype_v2si_si): Ditto.
13770 (v4hi_ftype_v4hi_di): Remove node.
13771 (v2si_ftype_v2si_di): Ditto.
13772 (ix86_init_mmx_sse_builtins): Handle V1DImode.
13773 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13774 Redefine builtins using def_builtin_const with *_ftype_*_int node.
13775 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13776 Add new builtins using def_builtin_const.
13777 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13778 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13779 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13780 * config/i386/mmintrin.h (__v1di): New typedef.
13781 (_mm_add_si64): Cast arguments to __v1di type.
13782 (_mm_sub_si64): Ditto.
13783 (_mm_sll_pi16): Cast __count to __v4hi type.
13784 (_mm_sll_pi32): Cast __count to __v2si type.
13785 (_mm_sll_si64): Cast arguments to __v1di type.
13786 (_mm_srl_pi16): Cast __count to __v4hi type.
13787 (_mm_srl_pi32): Cast __count to __v2si type.
13788 (_mm_srl_si64): Cast arguments to __v1di type.
13789 (_mm_sra_pi16): Cast __count to __v4hi type.
13790 (_mm_sra_pi32): Cast __count to __v2si type.
13791 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13792 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13793 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13794 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13795 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13796 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13797 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13798 (_mm_srai_pi32): Use __builtin_ia32_psradi.
13799 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13800 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13801 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13802 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13803
4d170403 138042008-03-07 Joseph Myers <joseph@codesourcery.com>
13805
13806 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13807
55100279 138082008-03-07 Peter Bergner <bergner@vnet.ibm.com>
13809
13810 PR target/35373
13811 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13812 reg+const addressing for Altivec modes. Don't generate reg+reg
13813 addressing for TFmode or TDmode quantities.
13814
29f51994 138152008-03-07 Paolo Bonzini <bonzini@gnu.org>
13816
13817 * c-common.c (vector_types_convertible_p): Call langhook
13818 instead of comptypes.
13819
6e6e51e5 138202008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13821
13822 PR tree-opt/35402
13823 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13824 integral and scalar float variables which have a
13825 NULL DECL_INITIAL.
13826
bf2e2aa9 138272008-03-06 Nathan Froyd <froydnj@codesourcery.com>
13828
13829 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13830 dwarf_register_span hook when emitting unwind information for
13831 register-to-memory saves.
13832 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13833 (rs6000_frame_related): Remove call to spe_synthesize_frame.
13834
83c5f690 138352008-03-06 Jakub Jelinek <jakub@redhat.com>
13836
13837 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13838 for the same VAR_DECL.
13839
167057eb 138402008-03-06 Tom Tromey <tromey@redhat.com>
13841
13842 * treelang: Delete.
13843 * doc/standards.texi (Standards): Don't mention treelang.
13844 * doc/invoke.texi (Overall Options): Don't mention treelang.
13845 * doc/install.texi (Prerequisites): Don't mention bison or
13846 treelang.
13847 (Configuration): Don't mention treelang.
13848 (Building): Likewise.
13849 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13850
8178351b 138512008-03-06 Paolo Bonzini <bonzini@gnu.org>
13852
13853 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13854 word-extractions out of a multi-word object.
13855
70337474 138562008-03-06 Richard Guenther <rguenther@suse.de>
13857
13858 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13859 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13860 result type and precision.
13861 * expr.c (get_inner_reference): Set unsignedp based on the result
13862 type of BIT_FIELD_REF.
13863 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13864 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13865 (try_instantiate_multiple_fields): Likewise. Use the correct type
13866 for BIT_FIELD_REF.
13867 (sra_build_assignment): Likewise.
13868 (sra_build_elt_assignment): Likewise.
13869 (sra_explode_bitfield_assignment): Likewise.
13870 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13871 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13872 set BIT_FIELD_REF_UNSIGNED.
13873 (vectorizable_load): Likewise.
13874
b357aba8 138752008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
13876
13877 * cse.c (cse_extended_basic_block): Invalidate artificial defs
13878 at bb start.
13879
1e020227 138802008-03-06 Richard Guenther <rguenther@suse.de>
13881
13882 * alias.c (struct alias_set_entry): Move has_zero_child field
13883 to pack with alias_set.
13884
4a8f8ebf 138852008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13886
13887 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13888 32bit host.
13889
f701cb4d 138902008-03-05 Ian Lance Taylor <iant@google.com>
13891
13892 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13893
957f873e 138942008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
30de5b55 13895
13896 * fwprop.c (update_df): Support width and offset parameters of
13897 df_ref_create.
13898 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13899 global_conflicts): Change DF_REF_EXTRACT to either
13900 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13901 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13902 * df-scan.c (df_ref_record, df_defs_record,
13903 df_ref_create_structure, df_def_record_1, df_uses_record,
13904 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13905 df_bb_refs_collect, df_entry_block_defs_collect,
13906 df_exit_block_uses_collect): Support new width and offset fields.
13907 (ref_extract_pool): New storage pool.
13908 (df_free_ref): New function.
13909 (df_reg_chain_unlink, df_free_collection_rec,
13910 df_sort_and_compress_refs): Call df_free_ref.
13911 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13912 of df_ref_extract.
13913 (df_ref_create_structure): Allocate df_ref_extract if offset and
13914 width fields are used.
13915 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
14eddddd 13916 (df_uses_record): Get offset and width from ZERO_EXTRACT
30de5b55 13917 and SIGN_EXTRACT.
13918 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13919 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13920 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13921 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13922 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13923 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13924 (df_ref_extract): New structure.
13925 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13926 (df_ref_create): Add width and offset parameters.
14eddddd 13927
a306ee43 139282008-03-05 Richard Guenther <rguenther@suse.de>
13929
13930 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13931 Use ranges_overlap_p.
13932 (offset_overlaps_with_access): Rename
13933 to ranges_overlap_p and move ...
13934 * tree-flow-inline.h (ranges_overlap_p): ... here.
13935
13936 * tree.h (get_inner_reference, handled_component_p): Update
13937 comments.
13938
13939 * tree.h (record_component_aliases, get_alias_set,
13940 alias_sets_conflict_p, alias_sets_must_conflict_p,
13941 objects_must_conflict_p): Move declarations ...
13942 * alias.h (record_component_aliases, get_alias_set,
13943 alias_sets_conflict_p, alias_sets_must_conflict_p,
13944 objects_must_conflict_p): ... here.
13945 Include coretypes.h.
13946 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13947
d03ba86f 139482008-03-05 Aldy Hernandez <aldyh@redhat.com>
13949
13950 * cfg.c: Include tree-flow.h.
13951 (remove_edge_raw): Call redirect_edge_var_map_clear.
13952 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13953 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13954 (redirect_edge_var_map_result): New.
13955 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13956 PENDING_STMT use with redirect_edge_var_map_*.
13957 * tree-ssa.c (edge_var_maps): New definition.
13958 (redirect_edge_var_map_add): New.
13959 (redirect_edge_var_map_clear): New.
13960 (redirect_edge_var_map_dup): New.
13961 (redirect_edge_var_map_vector): New.
13962 (redirect_edge_var_map_destroy): New.
13963 (ssa_redirect_edge): Replace PENDING_STMT use with
13964 redirect_edge_var_map_*.
13965 (flush_pending_stmts): Same.
13966 (delete_tree_ssa): Destroy edge var map.
13967 * tree-flow.h (struct _edge_var_map): New.
13968 Define edge_var_map vector type.
13969 Declare redirect_edge_var_map_* prototypes.
13970 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13971 * tree-cfg.c (reinstall_phi_args): Replace
13972 PENDING_STMT use with redirect_edge_var_map_*.
13973
7cf3d282 139742008-03-05 Richard Guenther <rguenther@suse.de>
13975
13976 PR tree-optimization/35472
13977 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13978 whose single use_stmt has a overlapping set of loaded and
13979 stored symbols as that use_stmt might be a noop assignment then.
13980
2349cd3e 139812008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13982
13983 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13984
70d2daf7 139852008-03-05 Richard Guenther <rguenther@suse.de>
13986
13987 PR c++/35336
13988 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13989 should be constants.
13990 * tree-cfg.c (verify_expr): Verify it.
13991 * fold-const.c (fold_truthop): Remove code generating
13992 BIT_FIELD_REFs of structure bases.
13993 (fold_binary): Likewise.
13994 (fold_ternary): Position and size of BIT_FIELD_REFs are
13995 always host integers.
13996 (make_bit_field_ref): Remove.
13997 (optimize_bit_field_compare): Remove.
13998 (all_ones_mask_p): Remove.
13999
a08778a2 140002008-03-05 Gabor Loki <loki@gcc.gnu.org>
14001
14002 PR gcc/33009
14003 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
14004 (split_block_and_df_analyze): New. Split basic block and rebuild
14005 dataflow.
14006 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
14007 SPLIT_BLOCK.
14008 (split_pattern_seq): Likewise.
14009 (erase_matching_seqs): Likewise.
14010 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
14011
ad7c187a 140122008-03-04 Geoff Keating <geoffk@apple.com>
14013
14014 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
14015 declaration and code.
14016 (tree_invalid_nonnegative_warnv_p): Likewise.
14017
57c56476 140182008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14019
14020 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
14021 examples. Truncate option-names then causing overfull hbox.
14022
d4f869a6 140232008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14024
14025 PR target/35222
14026 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
14027 on hpux10.
14028 * configure: Rebuilt.
14029
ea1a85df 140302008-03-04 Rafael Espindola <espindola@google.com>
14031
14032 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
14033 (tree_unary_nonnegative_warnv_p): New.
14034 (tree_binary_nonnegative_warnv_p): New.
14035 (tree_single_nonnegative_warnv_p): New.
14036 (tree_invalid_nonnegative_warnv_p): New.
14037 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
14038
88d4fcc4 140392008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14040
14041 PR 28322
14042 * opts.c (handle_option): Postpone 'unknown option' errors only for
14043 warning options.
14044
f98d7ce9 140452008-03-04 H.J. Lu <hongjiu.lu@intel.com>
14046
14047 PR target/35453
14048 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
14049 (_SIDD_XXX): This.
14050
937bceaf 140512008-03-04 Rafael Espindola <espindola@google.com>
14052
14053 * fold-const.c (tree_unary_nonzero_warnv_p): New.
14054 (tree_binary_nonzero_warnv_p): New.
14055 (tree_single_nonzero_warnv_p): New.
14056 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14057
01e93ec4 140582008-03-04 Uros Bizjak <ubizjak@gmail.com>
14059
14060 PR middle-end/35456
14061 * fold-const.c (fold_cond_expr_with_comparison): Prevent
14062 transformations for modes that have signed zeros.
14063 * ifcvt.c (noce_try_abs): Ditto.
14064
cfb92464 140652008-03-04 Joseph Myers <joseph@codesourcery.com>
14066
14067 * config/i386/i386.c (override_options): Force
14068 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14069
fb1b7d77 140702008-03-04 Jan Hubicka <jh@suse.cz>
14071
14072 PR c++/35262
14073 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14074 in last commit.
14075
9b980db1 140762008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14077
14078 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
bb51041c 14079 label to probe the stack.
9b980db1 14080
abefb712 140812008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14082
14083 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14084 (__gthr_win32_mutex_destroy): Declare.
14085 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14086 __gthr_win32_mutex_destroy.
14087 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
14088
99e909be 140892008-03-03 Jan Hubicka <jh@suse.cz>
14090
14091 PR c++/35262
14092 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14093 aggressive on inlining cold calls.
14094
802d9f2f 140952008-03-03 Richard Guenther <rguenther@suse.de>
14096
14097 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14098 struct copies into the expression table.
14099 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14100 (try_to_simplify): Likewise.
14101 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14102 integral and pointer arguments which do not change the
14103 precision to NOP_EXPRs.
14104 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14105 VIEW_CONVERT_EXPR case.
14106
663608f5 141072008-03-02 Sebastian Pop <sebastian.pop@amd.com>
14108
14109 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14110 defined in a loop at depth 0 is invariant.
14111 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14112 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14113 be called at loop depth 0.
14114
e46a4556 141152008-03-02 Jakub Jelinek <jakub@redhat.com>
14116
14117 PR driver/35420
14118 * gcc.c (process_command): Update copyright notice dates.
14119 * gcov.c (print_version): Likewise.
14120 * gcov-dump.c (print_version): Likewise.
14121 * mips-tfile.c (main): Likewise.
14122 * mips-tdump.c (main): Likewise.
14123
07317e69 141242008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14125
14126 PR 24924
14127 * c-common.c (flag_permissive): Delete.
14128 (constant_expression_warnings): Check flags first.
14129 (constant_expression_error): New.
14130 * c-common.h (flag_permissive): Delete.
14131 (constant_expression_error): Declare.
14132 * flags.h (flag_permissive): Declare. Update description.
14133 * diagnostic.c (pedwarn): Update.
14134 (permerror): New.
14135 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14136 (permissive_error_kind): New.
14137 * toplev.c (flag_permissive): Define. Update description.
14138 * toplev.h (permissive_error_kind): Declare.
14139 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14140 (pedwarn_c90): Use pedantic_warning_kind.
14141 * c-opts.c (c_common_post_options): flag_permissive does not affect
14142 flag_pedantic_errors.
14143
462a0c31 141442008-03-02 Joseph Myers <joseph@codesourcery.com>
14145
14146 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14147 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14148 __absvsi2, __absvDI2): Use unsigned arithmetic.
14149
64cf91f5 141502008-03-02 Andi Kleen <ak@suse.de>
e06aee53 14151 Richard Guenther <rguenther@suse.de>
64cf91f5 14152
14153 * struct-equiv.c: Remove file.
14154 * cfg_cleanup.c (condjump_equiv_p): Remove.
14155 * Makefile.in (OBJS-common): Remove struct-equiv.o.
14156 (struct-equiv.o): Remove rule.
14157 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14eddddd 14158 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
64cf91f5 14159 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14160
ba0b5cfc 141612008-03-01 Alexandre Oliva <aoliva@redhat.com>
14162
14163 * ifcvt.c (noce_process_if_block): Try to handle only the then
14164 block if the else block exists but isn't suitable.
14165
71239661 141662008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14167
14168 PR gcc/35063
14169 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14170 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14171 regression from previous patch.
14172
1cd3a344 141732008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14174
14175 PR gcc/35063
14176 * gthr.h: Add __gthread_mutex_destroy as a function that must be
14177 implemented.
14178 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14179 * gthr-single.h (__gthread_mutex_destroy): Likewise.
14180 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14181 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14182 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14183 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14184 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14185 (__gthread_mutex_destroy_function): Rename to
14186 __gthread_mutex_destroy.
14187 * gthr-dce.h (__gthread_mutex_destroy): Call
14188 pthread_mutex_destroy.
14189 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14190 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14191 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14192
a2bdd643 141932008-03-01 Alexandre Oliva <aoliva@redhat.com>
14194
14195 * df-scan.c (df_ref_chain_change_bb): Simplify.
14196 (df_insn_change_bb): Add new_bb argument. Simplify. Call
14197 set_block_for_insn if there's any change.
14198 * df.h ((df_insn_change_bb): Fix prototype.
14199 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14200 df_insn_change_bb, don't call set_block_for_insn.
14201 * emit-rtl.c (reorder_insns): Likewise.
14202 * haifa-sched.c (move_insn): Likewise.
14203
c8707f08 142042008-03-01 Alexandre Oliva <aoliva@redhat.com>
14205
14206 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14207
200ad982 142082008-03-01 Alexandre Oliva <aoliva@redhat.com>
14209
14210 * tree-flow-inline.h (next_readonly_imm_use): Return
14211 NULL_USE_OPERAND_P after the end.
14212
0045e505 142132008-03-01 Richard Guenther <rguenther@suse.de>
14214
14215 PR tree-optimization/35411
14216 * tree-sra.c (sra_build_assignment): Split conversion to
14217 final type to a separate statement if we are not assigning
14218 to a register.
14219
4a2f7014 142202008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14221
14222 * fold-const.c (fold_convertible_p): Correct the logic to follow
14223 that in fold_convert().
14224
e8e0078c 142252008-02-29 Douglas Gregor <doug.gregor@gmail.com>
14226
14227 PR c++/35315
14228 * tree-inline.c (build_duplicate_type): When we make a
14229 duplicate type, make it unique in the canonical types system.
14230
26cb3d1c 142312008-02-29 Tom Tromey <tromey@redhat.com>
14232
14233 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14234 input_file_stack_history, input_file_stack_restored): Remove.
14235 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14236 * input.h (struct file_stack): Remove.
14237 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14238 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14239 Likewise.
14240 * diagnostic.h (struct diagnostic_context) <last_module>: Change
14241 type.
14242 (diagnostic_last_module_changed): Add 'map' argument.
14243 (diagnostic_set_last_function): Likewise.
14244 * diagnostic.c (undiagnostic_report_current_module): Iterate using
14245 line map, not input_file_stack.
14246 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14247
a09d6770 142482008-02-29 Paul Brook <paul@codesourcery.com>
14249
14250 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14251
a7aa526d 142522008-02-29 Paul Brook <paul@codesourcery.com>
14253
14254 * config/arm/ieee754-df.S (muldf3): Use RET macros.
14255
d4cdfd27 142562008-02-29 Richard Guenther <rguenther@suse.de>
14257
14258 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14259 vn_lookup_or_add.
14260 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14261 value for comparing for a store match.
14262 (simplify_unary_expression): Do nothing for SSA_NAMEs.
14263 (try_to_simplify): Do not do a full-blown reference lookup.
14264
607ac910 142652008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14266
14267 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14268 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14269
14270 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14271
2fcf1fbb 142722008-02-29 Sebastian Pop <sebastian.pop@amd.com>
14273
14274 * tree-loop-linear.c (try_interchange_loops): Compare memory access
14275 strides against cache sizes.
14276
583c0935 142772008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14278
14279 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14280 constant to fpul.
14281
ad76ccf5 142822008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
14283
14284 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14285 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14286 is smaller than the original promoted value.
14287 (simplify_subreg): If OP is a SUBREG, try to preserve its
14288 SUBREG_PROMOTED_VAR_P information.
14289
b9584939 142902008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
14291
14292 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14293 (VN_INFO_GET): Allocate new objects on the obstack.
14294 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
14295 for rpo_numbers_temp, for consistency.
14296 (free_scc_vn): Free the obstack.
14297
801c5610 142982008-02-28 Sebastian Pop <sebastian.pop@amd.com>
14299
14300 * doc/invoke.texi: Document -ftree-loop-distribution.
14301 * tree-loop-distribution.c: New.
14302 * tree-pass.h (pass_loop_distribution): New.
14303 * graphds.h (struct graph): Add htab_t indices.
14304 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14305 * tree-vectorizer.c (rename_variables_in_loop): Extern.
14306 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14307 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14308 * tree-data-ref.c (debug_data_dependence_relations): New.
14309 (dump_data_dependence_relation): Also print data references.
14310 (free_data_ref): Extern.
14311 (same_access_functions): Moved...
14312 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14313 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14314 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14315 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14316 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14317 (stmts_from_loop): Skip LABEL_EXPR.
01e93ec4 14318 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14319 New.
801c5610 14320 (build_rdg): Initialize rdg->indices htab.
14321 (free_rdg, stores_from_loop, ref_base_address,
14322 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14323 have_similar_memory_accesses_1, ref_base_address_1,
14324 remove_similar_memory_refs): New.
14325 * tree-data-ref.h: Depend on tree-chrec.h.
14326 (debug_data_dependence_relations, free_data_ref): Declared.
14327 (same_access_functions): ... here.
01e93ec4 14328 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14329 New.
801c5610 14330 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14331 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14332 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14333 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14334 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14335 rdg_vertex_for_stmt): Declared.
14336 (struct rdg_edge): Add level.
14337 (RDGE_LEVEL): New.
14338 (free_rdg, stores_from_loop, remove_similar_memory_refs,
01e93ec4 14339 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14340 Declared.
801c5610 14341 (rdg_has_similar_memory_accesses): New.
14342 * tree-vect-analyze.c: Remove unused static decls.
14343 * lambda.h (dependence_level): New.
14344 * common.opt (ftree-loop-distribution): New.
14eddddd 14345 * tree-flow.h (mark_virtual_ops_in_bb,
801c5610 14346 slpeel_tree_duplicate_loop_to_edge_cfg,
14347 rename_variables_in_loop): Declared.
14348 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14349 (OBJS-common): Add tree-loop-distribution.o.
14350 (tree-loop-distribution.o): New rule.
14351 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14352 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14353 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14354
9c467f13 143552008-02-28 Joseph Myers <joseph@codesourcery.com>
14356
14357 PR target/33963
14358 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14359 other than structures and unions.
14360
c0ff55b3 143612008-02-28 Richard Guenther <rguenther@suse.de>
14362
14363 Revert:
14364 2008-02-26 Richard Guenther <rguenther@suse.de>
14365
14366 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14367 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14368 (lookup_decl_from_uid): Declare.
14369 (remove_decl_from_map): Likewise.
14370 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14371 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14372 (decl_for_uid_map): New global hashtable mapping DECL_UID
14373 to the decl tree.
14374 (init_ttree): Allocate it.
14375 (insert_decl_to_uid_decl_map): New helper function.
14376 (make_node_stat): Insert new decls into the map.
14377 (copy_node_stat): Likewise.
14378 (lookup_decl_from_uid): New function.
14379 (remove_decl_from_map): Likewise.
14380 (print_decl_for_uid_map_statistics): New helper.
14381 (dump_tree_statistics): Call it.
14382
14383 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14384 (referenced_var_iterator): Adjust.
14385 (FOR_EACH_REFERENCED_VAR): Adjust.
14386 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14387 (num_referenced_vars): Adjust.
14388 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14389 (first_referenced_var): Remove.
14390 (end_referenced_vars_p): Likewise.
14391 (next_referenced_var): Likewise.
14392 (referenced_var_iterator_set): New helper function.
14393 * tree-dfa.c (referenced_var_lookup): Adjust.
14394 (referenced_var_check_and_insert): Likewise.
14395 (remove_referenced_var): Likewise.
14396 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14397 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14398 (verify_call_clobbering): Likewise.
14399 (verify_memory_partitions): Likewise.
14400 (init_tree_ssa): Allocate bitmap instead of hashtable for
14401 referenced_vars.
14402 (delete_tree_ssa): Adjust.
14403 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14404 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14405 (compute_tag_properties): Likewise.
14406 (set_initial_properties): Likewise.
14407 (find_partition_for): Likewise.
14408 (update_reference_counts): Likewise.
14409 (dump_may_aliases_for): Likewise.
14410 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14411 (add_call_clobber_ops): Likewise.
14412 (add_call_read_ops): Likewise.
14413 (get_asm_expr_operands): Likewise.
14414 * tree-into-ssa.c (dump_decl_set): Likewise.
14415 (update_ssa): Likewise.
14416 * tree-sra.c (scan_function): Likewise.
14417 (decide_instantiations): Likewise.
14418 (scalarize_parms): Likewise.
14419 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14420 (dsa_named_for): Likewise.
14421 * tree-ssa-structalias.c (update_alias_info): Likewise.
14422 (merge_smts_into): Likewise.
14423
16b35285 144242008-02-27 David Daney <ddaney@avtrex.com>
14425
14426 PR target/34409
14427 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14428 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14429 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14430 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14431 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14432
d243d9c9 144332008-02-27 Uros Bizjak <ubizjak@gmail.com>
14434
14435 PR target/25477
14436 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14437 (BUILT_IN_NEXTTOWARD): Remove.
14438 (BUILT_IN_NEXTTOWARDF): Ditto.
14439 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14440 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
14441
de9ebaea 144422008-02-27 Tom Tromey <tromey@redhat.com>
14443
14444 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14445 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14446
5f398d1f 144472008-02-27 Jan Beulich <jbeulich@novell.com>
14448
14449 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14450 update the respective field on newdecl.
14451
9cc5df33 144522008-02-27 Revital Eres <eres@il.ibm.com>
14453
14454 PR rtl-optimization/34999
14455 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14456 crossing edges that ends with a call insn.
14457 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14458 call insn and clear the EDGE_CROSSING flag of the crossing edge
14459 when fixing fallthru edges.
14460
c2f5179d 144612008-02-27 Richard Guenther <rguenther@suse.de>
14462
c0ff55b3 14463 PR middle-end/35390
c2f5179d 14464 * fold-const.c (fold_unary): Return the correct argument,
14465 converted to the result type.
14466
6295ca72 144672008-02-27 Richard Guenther <rguenther@suse.de>
14468
14469 PR middle-end/34971
14470 * expr.c (expand_expr_real_1): Assert on rotates that operate
14471 on partial modes.
14472 * fold-const.c (fold_binary): Use the types precision, not the
14473 bitsize of the mode if folding rotate expressions. Build rotates
14474 only for full modes.
14475
146a4308 144762008-02-27 Jakub Jelinek <jakub@redhat.com>
14477
14478 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14479 and CPP_PRAGMA_EOL.
14480 * c-pragma.c (pragma_ns_name): New typedef.
14481 (registered_pp_pragmas): New variable.
14482 (c_pp_lookup_pragma): New function.
14483 (c_register_pragma_1): If flag_preprocess_only, do nothing
14484 for non-expanded pragmas, for expanded ones push pragma's
14485 namespace and name into registered_pp_pragmas vector.
14486 (c_invoke_pragma_handler): Register OpenMP pragmas even when
14487 flag_preprocess_only, don't register GCC pch_preprocess
14488 pragma if flag_preprocess_only.
14489 * c-opts.c (c_common_init): Call init_pragma even if
14490 flag_preprocess_only.
14491 * c-pragma.c (c_pp_lookup_pragma): New prototype.
14492 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14493 cpp_register_pragma if flag_preprocess_only.
14494
784c0df4 144952008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14496
14497 PR c/28800
14498 * c-parser.c (c_parser_translation_unit): Warn for empty
14499 translation unit, not empty source file.
14500
aaa37ad6 145012008-02-26 Paul Brook <paul@codesourcery.com>
14502
14503 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14504 operand for Thumb-2.
14505 * config/arm/arm.h (reg_class): Add CORE_REGS.
14506 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14507 (BASE_REG_CLASS): Use CORE_REGS.
14508 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14509 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14510 (REGNO_OK_FOR_INDEX_P): Exclude SP.
14511 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
14512 ARM_REGNO_OK_FOR_INDEX_P.
14513 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14514 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14515 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14516 (ldm/stm peepholes): Ditto.
14517 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14518 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14519 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14520 * config/arm/constraints.md: Enable "k" constraint on ARM.
14521
7effebe0 145222008-02-27 Ben Elliston <bje@au.ibm.com>
14523
14524 * config/rs6000/rs6000.c: Annotate cache line size field in all
14525 instances of struct processor_costs.
14526
4ff06051 145272008-02-26 David Edelsohn <edelsohn@gnu.org>
14528
14529 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14530 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14531 jump_bypass): New counters.
14532 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14533 * dce.c (gate_ud_dce): Same.
14534 (gate_fast_dce): Same.
14535 * dse.c (gate_dse1): New function.
14536 (gate_dse2): New function.
14537 (gate_dse): Merge results of new gate functions.
14538 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14539 (gate_handle_jump_bypass): Add dbg_cnt.
14540 (gate_handle_gcse): Add dbg_cnt.
14541 * ifcvt.c (gate_handle_if_conversion): Same.
14542 (gate_handle_if_after_combine): Same.
14543 (gate_handle_if_after_reload): Same.
14544 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14545
0fc88469 145462008-02-26 Edmar Wienskoski <edmar@freescale.com>
14547
14548 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14549 line sizes.
14550 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14551
3ef0a05e 145522008-02-26 Jason Merrill <jason@redhat.com>
14553
14554 PR c++/35315
14eddddd 14555 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
3ef0a05e 14556 alone if it's the naming decl for the type's main variant.
14557
9c85a98a 145582008-02-26 Tom Tromey <tromey@redhat.com>
14559
14560 * system.h (USE_MAPPED_LOCATION): Poison.
14561 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14562 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14563 (make_goto_expr_edges): Likewise.
14564 (remove_bb): Likewise.
14565 (execute_warn_function_return): Likewise.
14566 * basic-block.h (struct edge_def) <goto_locus>: Change type to
14567 location_t.
14568 * c-common.c (fname_decl): Remove old location code.
14569 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14570 location code.
14571 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14572 variant.
14573 (ASM_INPUT_SOURCE_LOCATION): Likewise.
14574 (gen_rtx_ASM_INPUT): Likewise.
14575 (gen_rtx_ASM_INPUT_loc): Likewise.
14576 (get_rtx_asm_OPERANDS): Remove.
14577 * cfglayout.c (insn_locators_alloc): Remove old location code.
14578 (set_curr_insn_source_location): Likewise.
14579 (curr_insn_locator): Likewise.
14580 * print-tree.c (print_node): Remove old location code.
14581 * tree-mudflap.c (mf_varname_tree): Remove old location code.
14582 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14583 * cfgexpand.c (expand_gimple_cond_expr): Don't use
14584 location_from_locus.
14585 (construct_exit_block): Remove old location code.
14586 * emit-rtl.c (force_next_line_note): Remove old location code.
14587 * profile.c (branch_prob): Remove old location code.
14588 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14589 LOC_LINE): Remove old-location variants.
14590 * langhooks.c (lhd_print_error_function): Remove old location
14591 code.
14592 * configure, config.in: Rebuilt.
14593 * configure.ac (--enable-mapped-location): Remove.
14594 * c-decl.c (c_init_decl_processing): Remove old location code.
14595 (finish_function): Likewise.
14596 * recog.c (decode_asm_operands): Remove old location code.
14597 * c-pch.c (c_common_read_pch): Remove old location code.
14598 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14599 variants.
14600 * gimple-low.c (lower_function_body): Remove old location code.
14601 * toplev.c (unknown_location): Remove.
14602 (push_srcloc): Remove old-location variant.
14603 (process_options): Remove old location code.
14604 (lang_dependent_init): Likewise.
14605 * input.h (UNKNOWN_LOCATION): Move definition.
14606 (location_t): Undeprecate.
14607 (source_locus): Remove.
14608 (location_from_locus): Remove.
14609 (struct location_s): Remove.
14610 Remove all old-location code.
14611 (input_line, input_filename): Remove.
14612 * final.c (final_scan_insn): Remove old location code.
14613 * diagnostic.c (diagnostic_build_prefix): Remove
14614 USE_MAPPED_LOCATION test.
14615 * tree.h (gimple_stmt) <locus>: Now a location_t.
14616 (tree_exp) <locus>: Likewise.
14617 (DECL_IS_BUILTIN): Remove old-location variant.
14618 (annotate_with_file_line, annotate_with_locus): Likewise.
14619 (expr_locus, set_expr_locus): Update.
14620 * tree.c (build1_stat): Remove old location code.
14621 (last_annotated_node): Remove.
14622 (annotate_with_file_line): Remove old-location variant.
14623 (annotate_with_locus): Likewise.
14624 (expr_location): Remove old location code.
14625 (set_expr_location): Likewise.
14626 (expr_has_location): Likewise.
14627 (expr_locus): Likewise.
14628 (set_expr_locus): Likewise.
14629 (expr_filename): Don't use location_from_locus.
14630 (expr_lineno): Likewise.
14631 * rtl-error.c (location_for_asm): Remove old location code.
14632 * c-lex.c (cb_line_change): Remove old location code.
14633 (fe_file_change): Likewise.
14634 (cb_def_pragma): Likewise.
14635 (c_lex_with_flags): Likewise.
14636 * gengtype.c (do_typedef): Don't special-case location types.
14637 (define_location_structures): Remove.
14638 (main): Don't call define_location_structures.
14639 * tree-pretty-print.c (dump_implicit_edges): Remove old location
14640 code.
14641
c0394294 146422008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14643
bb51041c 14644 PR 26264
c0394294 14645 * builtins.def (BUILT_IN_STDARG_START): Remove.
14646 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14647 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14648 * tree-inline.c (inline_forbidden_p_1): Likewise.
14eddddd 14649
20308404 146502008-02-26 Richard Guenther <rguenther@suse.de>
14651
14652 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14653 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14654 (lookup_decl_from_uid): Declare.
14655 (remove_decl_from_map): Likewise.
14656 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14657 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14658 (decl_for_uid_map): New global hashtable mapping DECL_UID
14659 to the decl tree.
14660 (init_ttree): Allocate it.
14661 (insert_decl_to_uid_decl_map): New helper function.
14662 (make_node_stat): Insert new decls into the map.
14663 (copy_node_stat): Likewise.
14664 (lookup_decl_from_uid): New function.
14665 (remove_decl_from_map): Likewise.
14666 (print_decl_for_uid_map_statistics): New helper.
14667 (dump_tree_statistics): Call it.
14668
14669 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14670 (referenced_var_iterator): Adjust.
14671 (FOR_EACH_REFERENCED_VAR): Adjust.
14672 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14673 (num_referenced_vars): Adjust.
14674 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14675 (first_referenced_var): Remove.
14676 (end_referenced_vars_p): Likewise.
14677 (next_referenced_var): Likewise.
14678 (referenced_var_iterator_set): New helper function.
14679 * tree-dfa.c (referenced_var_lookup): Adjust.
14680 (referenced_var_check_and_insert): Likewise.
14681 (remove_referenced_var): Likewise.
14682 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14683 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14684 (verify_call_clobbering): Likewise.
14685 (verify_memory_partitions): Likewise.
14686 (init_tree_ssa): Allocate bitmap instead of hashtable for
14687 referenced_vars.
14688 (delete_tree_ssa): Adjust.
14689 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14690 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14691 (compute_tag_properties): Likewise.
14692 (set_initial_properties): Likewise.
14693 (find_partition_for): Likewise.
14694 (update_reference_counts): Likewise.
14695 (dump_may_aliases_for): Likewise.
14696 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14697 (add_call_clobber_ops): Likewise.
14698 (add_call_read_ops): Likewise.
14699 (get_asm_expr_operands): Likewise.
14700 * tree-into-ssa.c (dump_decl_set): Likewise.
14701 (update_ssa): Likewise.
14702 * tree-sra.c (scan_function): Likewise.
14703 (decide_instantiations): Likewise.
14704 (scalarize_parms): Likewise.
14705 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14706 (dsa_named_for): Likewise.
14707 * tree-ssa-structalias.c (update_alias_info): Likewise.
14708 (merge_smts_into): Likewise.
14709
75130fc7 147102008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14711
14712 PR 34351
14713 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14714 * c-opts.c (c_common_handle_option): Wall enables
14715 Wvolatile-register-var.
14716 * common.opt: Move Wvolatile-register-var to...
14717 * c.opt: ...here.
14eddddd 14718
17c66687 147192008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14720
14721 * common.opt (Wlarger-than=): New.
14722 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14723 -Wlarger-than=.
14724 * opts.c (common_handle_option): Handle -Wlarger-than=.
14725 * optc-gen.awk: Likewise.
14726 * opth-gen.awk: Likewise.
14727 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14728 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14eddddd 14729
6cbbbc89 147302008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14731
14732 * c-common.c (match_case_to_enum_1): Add appropriate
14733 OPT_W* parameter to warning.
14734 (c_do_switch_warnings): Likewise.
14735 * c-typeck.c (warning_init): Add one more parameter following
14736 'warning' function.
14737 (push_init_level): Update call to warning_init.
14738 (pop_init_level): Likewise.
14739 (add_pending_init): Likewise.
14740 (output_init_element: Likewise.
14741
ddb48b82 147422008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14743
14744 PR 28322
14745 * toplev.c (toplev_main): If there are warnings or error, print
14746 errors for ignored options.
14747 * opts.c (ignored_options): New static variable.
14748 (postpone_unknown_option_error): New.
14749 (print_ignored_options): New.
14750 (handle_option): Postpone errors for unknown -Wno-* options.
14751 * opts.h (print_ignored_options): Declare.
14eddddd 14752
7ecd9299 147532008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14754
14755 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14756 to "ghost".
14757
3a0e28bd 147582008-02-25 Richard Guenther <rguenther@suse.de>
14759
14760 Revert:
14761 2008-02-25 Richard Guenther <rguenther@suse.de>
14762
14763 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14764 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14765 (lookup_decl_from_uid): Declare.
14766 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14767 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14768 (decl_for_uid_map): New global hashtable mapping DECL_UID
14769 to the decl tree.
14770 (init_ttree): Allocate it.
14771 (insert_decl_to_uid_decl_map): New helper function.
14772 (make_node_stat): Insert new decls into the map.
14773 (copy_node_stat): Likewise.
14774 (lookup_decl_from_uid): New function.
14775 (print_decl_for_uid_map_statistics): New helper.
14776 (dump_tree_statistics): Call it.
14777
14778 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14779 (referenced_var_iterator): Adjust.
14780 (FOR_EACH_REFERENCED_VAR): Adjust.
14781 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14782 (num_referenced_vars): Adjust.
14783 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14784 (first_referenced_var): Remove.
14785 (end_referenced_vars_p): Likewise.
14786 (next_referenced_var): Likewise.
14787 (referenced_var_iterator_set): New helper function.
14788 * tree-dfa.c (referenced_var_lookup): Adjust.
14789 (referenced_var_check_and_insert): Likewise.
14790 (remove_referenced_var): Likewise.
14791 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14792 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14793 (verify_call_clobbering): Likewise.
14794 (verify_memory_partitions): Likewise.
14795 (init_tree_ssa): Allocate bitmap instead of hashtable for
14796 referenced_vars.
14797 (delete_tree_ssa): Adjust.
14798 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14799 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14800 (compute_tag_properties): Likewise.
14801 (set_initial_properties): Likewise.
14802 (find_partition_for): Likewise.
14803 (update_reference_counts): Likewise.
14804 (dump_may_aliases_for): Likewise.
14805 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14806 (add_call_clobber_ops): Likewise.
14807 (add_call_read_ops): Likewise.
14808 (get_asm_expr_operands): Likewise.
14809 * tree-into-ssa.c (dump_decl_set): Likewise.
14810 (update_ssa): Likewise.
14811 * tree-sra.c (scan_function): Likewise.
14812 (decide_instantiations): Likewise.
14813 (scalarize_parms): Likewise.
14814 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14815 (dsa_named_for): Likewise.
14816 * tree-ssa-structalias.c (update_alias_info): Likewise.
14817 (merge_smts_into): Likewise.
14818
7e959c84 148192008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14820
14821 PR fortran/29549
14822 * doc/invoke.texi (-fcx-limited-range): Document new option.
14823 * toplev.c (process_options): Handle -fcx-fortran-rules.
bb51041c 14824 * common.opt: Add documentation for -fcx-fortran-rules.
7e959c84 14825
a8806066 148262008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14827
14828 PR c/35162
14829 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14830 actual behaviour and C99.
14eddddd 14831
b30c4a87 148322008-02-26 Ben Elliston <bje@au.ibm.com>
14833
14834 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14835 (ASM_CPU_POWER6_SPEC): Likewise.
14836 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14837 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14838 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14839
8ca26bdd 148402008-02-25 Richard Guenther <rguenther@suse.de>
14841
14842 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14843 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14844 (lookup_decl_from_uid): Declare.
14845 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14846 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14847 (decl_for_uid_map): New global hashtable mapping DECL_UID
14848 to the decl tree.
14849 (init_ttree): Allocate it.
14850 (insert_decl_to_uid_decl_map): New helper function.
14851 (make_node_stat): Insert new decls into the map.
14852 (copy_node_stat): Likewise.
14853 (lookup_decl_from_uid): New function.
14854 (print_decl_for_uid_map_statistics): New helper.
14855 (dump_tree_statistics): Call it.
14856
14857 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14858 (referenced_var_iterator): Adjust.
14859 (FOR_EACH_REFERENCED_VAR): Adjust.
14860 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14861 (num_referenced_vars): Adjust.
14862 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14863 (first_referenced_var): Remove.
14864 (end_referenced_vars_p): Likewise.
14865 (next_referenced_var): Likewise.
14866 (referenced_var_iterator_set): New helper function.
14867 * tree-dfa.c (referenced_var_lookup): Adjust.
14868 (referenced_var_check_and_insert): Likewise.
14869 (remove_referenced_var): Likewise.
14870 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14871 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14872 (verify_call_clobbering): Likewise.
14873 (verify_memory_partitions): Likewise.
14874 (init_tree_ssa): Allocate bitmap instead of hashtable for
14875 referenced_vars.
14876 (delete_tree_ssa): Adjust.
14877 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14878 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14879 (compute_tag_properties): Likewise.
14880 (set_initial_properties): Likewise.
14881 (find_partition_for): Likewise.
14882 (update_reference_counts): Likewise.
14883 (dump_may_aliases_for): Likewise.
14884 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14885 (add_call_clobber_ops): Likewise.
14886 (add_call_read_ops): Likewise.
14887 (get_asm_expr_operands): Likewise.
14888 * tree-into-ssa.c (dump_decl_set): Likewise.
14889 (update_ssa): Likewise.
14890 * tree-sra.c (scan_function): Likewise.
14891 (decide_instantiations): Likewise.
14892 (scalarize_parms): Likewise.
14893 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14894 (dsa_named_for): Likewise.
14895 * tree-ssa-structalias.c (update_alias_info): Likewise.
14896 (merge_smts_into): Likewise.
14897
5fe61d21 148982008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
14899
14900 PR target/35258
14901 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14902 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14903 * alias.h (nonoverlapping_memrefs_p): Likewise.
14904
cab0c612 149052008-02-25 Jan Beulich <jbeulich@novell.com>
14906
d243d9c9 14907 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
cab0c612 14908 * config/i386/netware-libgcc.exp: Add __bswap?i2,
14909 __emultls_get_address, __emultls_register_common,
14910 __floatundi?f, and _Unwind_GetIPInfo.
14911 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14912 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14913 (gen_regparm_prefix): Likewise.
14914 (i386_nlm_encode_section_info): Sync with
14915 config/i386/winnt.c:i386_pe_encode_section_info().
14916 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14917 i386_nlm_mangle_decl_assembler_name): New.
14918 (netware_override_options): New.
14919 * config/i386/netware.h (netware_override_options): Declare.
14920 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14921 (i386_nlm_mangle_decl_assembler_name): Declare.
14922 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14923
5243b29d 149242008-02-25 Ben Elliston <bje@au.ibm.com>
14925
14926 PR other/32948
14927 * c-decl.c (grokdeclarator): Remove unused local variables
14928 `typedef_type' and `type_as_written'.
14929 * bb-reorder.c
14930 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14931 unused local variable `has_hot_blocks'.
14932 (fix_crossing_conditional_branches): Remove unused local variable
14933 `prev_bb'.
14eddddd 14934
620d0bf8 149352008-02-25 Uros Bizjak <ubizjak@gmail.com>
14936
14937 PR middle-end/19984
14938 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14939 using DEF_C99_BUILTIN.
14940 (BUILT_IN_NANF): Ditto.
14941 (BUILT_IN_NANL): Ditto.
14942
84004523 149432008-02-25 Ayal Zaks <zaks@il.ibm.com>
34d8410f 14944 Revital Eres <eres@il.ibm.com>
84004523 14945
14946 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14947 regarding the order of two dependent insns in the same row.
14948
23f65835 149492008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14950
14951 * stor-layout.c (layout_decl): Do not bump the alignment of a
14952 bit-field to more than byte alignment if it is packed.
14953
b18d68e3 149542008-02-24 David Edelsohn <edelsohn@gnu.org>
14955
14956 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14957 e300c2 and e300c3.
14958
100b67da 149592008-02-24 Diego Novillo <dnovillo@google.com>
14960
14961 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14962
14963 PR 33738
14964 * tree-vrp.c (vrp_evaluate_conditional): With
14965 -Wtype-limits, emit a warning when comparing against a
14966 constant outside the natural range of OP0's type.
14967 * c.opt (Wtype-limits): Move ...
14968 * common.opt (Wtype-limits): ... here.
14969
2aeab935 149702008-02-24 Edmar Wienskoski <edmar@freescale.com>
73edc44b 14971
14972 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14973 * config/rs6000/e300c2c3.md: New file.
14974 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14975 e300c2 and e300c3.
14976 (rs6000_override_options): Add e300c2 and e300c3 cases to
14977 processor_target_table. Do not allow usage of Altivec or Spe
14978 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14979 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14980 * config/rs6000/rs6000.h (processor_type): Add
14981 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14982 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14983 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14984 and ppce300c3. Include e300c2c3.md.
14985
070270ea 149862008-02-23 David Edelsohn <edelsohn@gnu.org>
14987
14988 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14989 instead of TARGET_STRICT_ALIGN.
14990
64ec1b61 149912008-02-23 Joseph Myers <joseph@codesourcery.com>
14992
14993 * explow.c (memory_address): Assert that the generated address is
14994 valid.
14995
6aee6ac8 149962008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14997
14998 PR target/25477
14999 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
15000 * config/darwin-ppc-ldouble-patch.def: New file.
15001 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
15002 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
15003 SUBTARGET_INIT_BUILTINS if defined.
620d0bf8 15004 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
15005 New functions.
6aee6ac8 15006
3d72a1b5 150072008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15008
15009 PR rtl-opt/33512
15010 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
15011 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
15012
c12ee0c6 150132008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15014
15015 PR pch/35027
15016 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
15017 file" warning condtional on -Winvalid-PCH.
15018
05b481df 150192008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
15020
15021 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
15022
78624f54 150232008-02-23 Uros Bizjak <ubizjak@gmail.com>
15024
15025 PR target/22076
14eddddd 15026 PR target/34256
78624f54 15027 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
15028 prevent reload from using MMX registers.
15029 (*mov<mode>_internal): Ditto.
15030 (*movv2sf_internal_rex64): Ditto.
15031 (*movv2sf_internal): Ditto.
15032
ed3f349a 150332008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15034
15035 PR documentation/31569
15036 * doc/install.texi2html: Use makeinfo --no-number-sections.
15037
e720c3f0 150382008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15039
15040 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
15041 ensure that we can address an entire entity > 8 bytes. Don't
15042 generate reg+reg addressing for such data.
15043
dc3be372 150442008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15045
15046 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
15047 strings when optimizing for size, unless the target cares about
15048 alignment.
15049
af3f5a19 150502008-02-22 Tom Tromey <tromey@redhat.com>
15051
15052 * regclass.c (current_pass): Remove declaration.
15053
9e926232 150542008-02-22 Anatoly Sokolov <aesok@post.ru>
15055
15056 * config/avr/libgcc.S (__RAMPZ__): Define.
15057 (__do_copy_data): Add for devices with 128KB code memory.
15058
b9cd27b3 150592008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15060
15061 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15062 Use spe_abi.
15063 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15064
e8cb528f 150652008-02-22 Hans-Peter Nilsson <hp@axis.com>
15066
15067 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15068 GENNONACR_REGS.
15069
067d82a2 150702008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15071
15072 PR c/19999
15073 * c-typeck.c (build_binary_op): Warn about floating point
15074 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15075
f9c1a520 150762008-02-21 Janis Johnson <janis187@us.ibm.com>
15077
15078 PR target/34526
15079 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15080 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15081 add vrsave.
15082 (rs6000_override_options): Set altivec_abi as default, not override,
15083 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15084 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15085 is used; use new member spe_abi.
15086 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15087 spe_abi and altivec_abi.
15088
c7dcbde4 150892008-02-22 Tomas Bily <tbily@suse.cz>
15090
15091 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15092
d45cdac2 150932008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15094
15095 PR bootstrap/35273
15096 * config.build (build_file_translate): Set to `CMD //c' only if
15097 it works.
15098 * Makefile.in (build_file_translate): Improve comment.
15099
f3cb8b1d 151002008-02-21 Jan Hubicka <jh@suse.cz>
15101
15102 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15103 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15104 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15105
6ef19463 151062008-02-21 Michael Matz <matz@suse.de>
15107
15108 PR target/35264
15109 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15110
3da2a73c 151112008-02-21 Uros Bizjak <ubizjak@gmail.com>
15112
15113 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15114 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15115 as insn constraint.
15116 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15117 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15118 SSE_VEC_FLOAT_MODE_P as insn constraint.
15119 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15120 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15121 sse4a_movntdf using MODEF mode iterator.
15122 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15123 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15124 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15125 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15126 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15127 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15128 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15129
751ff693 151302008-02-21 Richard Guenther <rguenther@suse.de>
15131
15132 * tree.def (PAREN_EXPR): New tree code.
15133 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15134 and PAREN_EXPR.
15135 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15136 * expr.c (expand_expr_real_1): Likewise.
15137 * tree-inline.c (estimate_num_insns_1): Likewise.
15138 * tree-complex.c (expand_complex_move): Likewise.
15139 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15140 as plain x.
15141
64c985e4 151422008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15143
15144 PR target/35225
15145 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15146
af122d60 151472008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15148
15149 PR target/35190
15150 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15151
15152 * config/sh/sh.c (find_barrier): Don't go past
15153 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15154
610e569b 151552008-02-20 DJ Delorie <dj@redhat.com>
15156
15157 * config/h8300/h8300.md (insv): Force source operand to be a register.
15158
15159 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15160 as a jump, not as a plain insn.
14eddddd 15161
6fdade09 151622008-02-20 Seongbae Park <seongbae.park@gmail.com>
15163
15164 * doc/invoke.texi (Warning Options): Add new option
15165 -Wframe-larger-than=.
15166 (-Wframe-larger-than): Document.
15167
15168 * flags.h (warn_frame_larger_than, frame_larger_than_size):
15169 Add declarations for new option variables.
15170
15171 * final.c (final_start_function): Check the frame size
15172 before emission and issue a Wframe-larger-than warning.
15173
15174 * opts.c (warn_frame_larger_than, frame_larger_than_size):
15175 Add definitions for new option variables.
15176 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15177
15178 * common.opt (Wframe-larger-than=): New option.
15179
82cc8ae1 151802008-02-20 Uros Bizjak <ubizjak@gmail.com>
15181
15182 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15183 (<sse>_div<mode>3): Ditto.
15184 (<sse>_vmdiv<mode>3): Ditto.
15185 (<sse>_vmsqrt<mode>2): Ditto.
15186 (*smax<mode>3): Ditto.
15187 (sse5_frcz<mode>2): Ditto.
15188 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
15189 as insn constraint.
15190
c7f617c2 151912008-02-20 Richard Guenther <rguenther@suse.de>
15192
15193 PR middle-end/35265
15194 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15195 be happy with INTEGRAL_TYPE_P.
15196
a145256a 151972008-02-20 Richard Guenther <rguenther@suse.de>
15198
15199 * fold-const.c (split_tree): Associate floatig-point expressions
15200 if flag_associative_math is set.
15201
46ef5347 152022008-02-20 Richard Guenther <rguenther@suse.de>
15203
15204 * tree.h (fold_real_zero_addition_p): Declare.
15205 * fold-const.c (fold_real_zero_addition_p): Export.
15206 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15207 floating-point operations with zero and one.
15208
c898f165 152092008-02-20 Paolo Bonzini <bonzini@gnu.org>
15210
a55f1b4b 15211 * doc/install.texi: Correct references to CFLAGS, replacing them
15212 with BOOT_CFLAGS. Document flags used during bootstrap for
15213 target libraries.
14eddddd 15214
2a466fea 152152008-02-20 Uros Bizjak <ubizjak@gmail.com>
15216
15217 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15218 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15219 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15220 insn constraint.
15221 (smin<mode>3): Ditto from similar patterns.
15222 (smax<mode>3): Ditto.
15223 (*ieee_smin<mode>3): Ditto.
15224 (*ieee_smax<mode>3): Ditto.
15225 * config/i386/sse.md (sse): New mode attribute.
15226 (mov<mode>): Macroize expander from movv4sf and movv2df using
15227 SSEMODEF2P mode iterator.
15228 (<sse>_movnt<mode>): Ditto from similar patterns. Use
15229 SSE_VEC_FLOAT_MODE_P as insn constraint.
15230 (storent<mode>): Ditto.
15231 (storent<mode>): Macroize expander from storentsf and storentdf using
15232 MODEF mode iterator.
15233 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15234 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15235 (abs<mode>2): Ditto from similar patterns.
15236 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15237 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15238 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15239 (<sse>_vmsqrt<mode>2): Ditto.
15240 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15241 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15242 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15243 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15244 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15245 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15246 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15247 insn constraint.
15248 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15249 iterator and SSE_FLOAT_MODE_P as insn constraint.
15250 (<sse>_ucomi): Ditto from similar patterns.
15251 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15252 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15253 SSE_VEC_FLOAT_MODE_P as insn constraint.
15254 (vcond<mode>): Ditto from similar patterns.
15255 (and<mode>3, *and<mode>3): Ditto.
15256 (<sse>_nand<mode>3): Ditto.
15257 (ior<mode>3, *ior<mode>3): Ditto.
15258 (xor<mode>3, *xor<mode>3): Ditto.
15259 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15260 iterator and SSE_FLOAT_MODE_P as insn constraint.
15261 (*nand<mode>3): Ditto from similar patterns.
15262 (*ior<mode>3): Ditto.
15263 (*xor<mode>3): Ditto.
15264
8c85798c 152652008-02-20 Ira Rosen <irar@il.ibm.com>
15266
15267 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15268 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15269 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15270
3ed4a4a1 152712008-02-19 Jan Hubicka <jh@suse.cz>
15272
2d5652e4 15273 * predict.c (tree_bb_level_predictions): Remove variable next
15274 mistakely introduced by previous commit.
3ed4a4a1 15275
d704ea82 152762008-02-19 Jan Hubicka <jh@suse.cz>
15277
15278 * predict.c (predict_paths_leading_to): Rewrite.
15279 (predict_paths_for_bb): New.
15280 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15281
fbf9447e 152822008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15283
15284 PR bootstrap/35218
15285 * Makefile.in (build_file_translate): New.
15286 (gcc-vers.texi): Use it for translating $(abs_srcdir).
15287 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15288 * configure.ac (build_file_translate): Substitute it.
15289 * configure: Regenerate.
15290
f82220c2 152912008-02-19 Jan Hubicka <jh@suse.cz>
15292
15293 PR rtl-optimization/34408
d704ea82 15294 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15295 invalid sharing.
f82220c2 15296
d4c3b5cd 152972008-02-19 Jan Hubicka <jh@suse.cz>
15298
15299 PR middle-end/28779
d704ea82 15300 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15301 call_expr.
d4c3b5cd 15302
1158320c 153032008-02-19 H.J. Lu <hongjiu.lu@intel.com>
15304
15305 PR Ada/35186
15306 * config/i386/i386-modes.def: Revert the last DI alignment
15307 change until Ada people can look into it.
15308
d06cb02d 153092008-02-19 Nick Clifton <nickc@redhat.com>
15310
15311 * opts.c (print_specific_help): Fix typo in --help text.
15312
beb96ec8 153132008-02-19 Jakub Jelinek <jakub@redhat.com>
15314
15315 PR target/35239
15316 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15317 32-bit inline asm without asm alternatives for host GCC < 3.0.
15318
971c637a 153192008-02-19 Richard Guenther <rguenther@suse.de>
15320
15321 PR tree-optimization/34989
15322 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15323 Allow propagation to INDIRECT_REF if we can simplify only.
15324
23ce1cf6 153252008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15326
15327 * c-common.c (warn_for_collisions_1): Use appropriate option when
15328 warning.
15329
86895a67 153302008-02-19 Nick Clifton <nickc@redhat.com>
15331
15332 PR other/31349
2d5652e4 15333 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
86895a67 15334 (handle_options): Fix indentation.
15335 (print_filtered_help): If no language-specific options were
15336 displayed tell the user how to list all the options supported by
15337 the language's front-end.
15338 (print_specific_help): Fix indentation and remove duplicate line.
15339 (common_handle_option): Handle the -v option.
15340 For --help enable the display of undocumented options if the -v
15341 switch has been included on the command line.
15342 For --help= check for overlaps in the arguments between the option
15343 classes and the language names and issue a warning when they
15344 cannot be disambiguated.
15345 * c.opt (v): Pass on to the common option handler.
15346
14eddddd 153472008-02-19 Revital Eres <eres@il.ibm.com>
34c7f568 15348
15349 * modulo-sched.c (sms_schedule): Change dump message when
15350 create_ddg function fails.
15351 (try_scheduling_node_in_cycle): Rename row to cycle.
15352 (print_partial_schedule): Rename CYCLE to ROW.
15353
90bd1b58 153542008-02-19 Christian Bruel <christian.bruel@st.com>
2d5652e4 15355 Zdenek Dvorak <ook@ucw.cz>
15356
15357 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15358
bd416d70 153592008-02-19 Uros Bizjak <ubizjak@gmail.com>
15360
15361 PR target/33555
15362 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15363 (*x86_movdicc_0_m1_se): Ditto.
15364
2a5abea1 153652008-02-19 Uros Bizjak <ubizjak@gmail.com>
15366
15367 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15368 (CMPtype): Define as __gcc_CMPtype.
15369 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15370 (CMPtype): Define as __gcc_CMPtype.
15371
a7779e75 153722008-02-19 Hans-Peter Nilsson <hp@axis.com>
15373
15374 Support valgrind 3.3 for --enable-checking=valgrind.
15375 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15376 here.
15377 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15378 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15379 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15380 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15381 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15382 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15383 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15384 respectively.
15385 * ggc-zone.c: Similar.
15386 * ggc-page.c: Similar.
15387
7addba43 153882008-02-19 Paul Brook <paul@codesourcery.com>
15389
15390 PR target/35071
15391 * config/arm/ieee754-df.S: Fix do_it typo.
15392 * config/arm/ieee754-sf.S: Fix do_it typo.
15393
4e06f6f8 153942008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15395
15396 PR target/35189
15397 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15398 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15399 (OPTION_MASK_ISA_SSE_SET): Likewise.
15400 (OPTION_MASK_ISA_SSE2_SET): Likewise.
15401 (OPTION_MASK_ISA_SSE3_SET): Likewise.
15402 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15403 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15404 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15405 (OPTION_MASK_ISA_SSE4_SET): Likewise.
15406 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15407 (OPTION_MASK_ISA_SSE5_SET): Likewise.
15408 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15409 (OPTION_MASK_ISA_MMX_UNSET): Updated.
15410 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15411 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15412 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15413 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15414 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15415 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15416 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15417 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15418 (OPTION_MASK_ISA_SSE4): Removed.
15419 (ix86_handle_option): Turn on bits in ix86_isa_flags and
2f6e3388 15420 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
4e06f6f8 15421 (override_options): Don't turn on implied SSE/MMX bits in
15422 ix86_isa_flags.
15423
dbbcdcd5 154242008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15425
15426 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15427 32bit host.
15428
beebc64a 154292008-02-18 Joey Ye <joey.ye@intel.com>
15430
15431 PR middle-end/34921
15432 * tree-nested.c (insert_field_into_struct): Set type alignment
15433 to field alignment if the former is less than the latter.
15434
8d705311 154352008-02-18 Jakub Jelinek <jakub@redhat.com>
15436
15437 * BASE-VER: Set to 4.4.0.
15438
7a5a9c54 154392008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15440
15441 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15442 * doc/cfg.texi: Likewise.
15443 * doc/extend.texi: Likewise.
15444 * doc/gty.texi: Likewise.
15445 * doc/invoke.texi: Likewise.
15446 * doc/loop.texi: Likewise.
15447 * doc/md.texi: Likewise.
15448 * doc/passes.texi: Likewise.
15449 * doc/rtl.texi: Likewise.
15450 * doc/sourcebuild.texi: Likewise.
15451 * doc/tm.texi: Likewise.
15452 * doc/tree-ssa.texi: Likewise.
15453
89cd38e0 154542008-02-17 Richard Guenther <rguenther@suse.de>
15455
15456 PR middle-end/35227
15457 * tree-complex.c (init_parameter_lattice_values): Handle parameters
15458 without default definition.
15459
d149d356 154602008-02-17 Richard Guenther <rguenther@suse.de>
15461
15462 PR tree-optimization/35231
15463 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15464 if A | B != 1.
15465
a3c40304 154662008-02-17 Uros Bizjak <ubizjak@gmail.com>
15467
15468 Revert:
14eddddd 15469 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
a3c40304 15470 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15471 libgcc_cmp_return mode.
15472
a2e4e045 154732008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15474
15475 PR c/28368
15476 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15477
8e2e6800 154782008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
15479
15480 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15481 multilibs.
15482
a81d4cba 154832008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15484
15485 * doc/c-tree.texi: Use `@.' where appropriate.
15486 * doc/extend.texi: Likewise.
15487 * doc/install.texi: Likewise.
15488 * doc/invoke.texi: Likewise.
15489 * doc/loop.texi: Likewise.
15490 * doc/makefile.texi: Likewise.
15491 * doc/md.texi: Likewise.
15492 * doc/passes.texi: Likewise.
15493 * doc/standards.texi: Likewise.
15494 * doc/tm.texi: Likewise.
15495
d74e6897 154962008-02-15 Jakub Jelinek <jakub@redhat.com>
15497
15498 PR middle-end/35196
15499 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15500 in entry_bb.
15501 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15502 rather than in entry_bb.
15503
c12b3bc6 155042008-02-15 Uros Bizjak <ubizjak@gmail.com>
15505
15506 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15507 libgcc_cmp_return mode.
15508
a5268989 155092008-02-15 Jakub Jelinek <jakub@redhat.com>
15510
15511 PR middle-end/35130
15512 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15513 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15514
b75537fb 155152008-02-15 Richard Guenther <rguenther@suse.de>
c12b3bc6 15516 Zdenek Dvorak <ook@ucw.cz>
b75537fb 15517
15518 PR tree-optimization/35164
15519 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15520 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15521 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15522 Only propagate addresses which do not have abnormal SSA_NAMEs
15523 in their operands.
15524
86891459 155252008-02-15 Joseph Myers <joseph@codesourcery.com>
15526
15527 PR target/35088
15528 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15529
a4cb010f 155302008-02-15 Jan Hubicka <jh@suse.cz>
15531
15532 PR middle-end/35149
15533 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15534
b3f75873 155352008-02-15 Uros Bizjak <ubizjak@gmail.com>
15536
15537 PR middle-end/34621
15538 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15539 when calculating alignment_pad.
15540
46de89e7 155412008-02-15 Uros Bizjak <ubizjak@gmail.com>
15542
15543 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15544 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15545 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15546 and STACK_BOUNDARY define.
15547
b8989bc3 155482008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
15549
15550 PR preprocessor/35061
15551 * c-pragma.c (handle_pragma_pop_macro): Check that
15552 pushed_macro_table has been allocated.
15553
0e41e637 155542008-02-14 Eric Botcazou <ebotcazou@adacore.com>
15555
15556 PR middle-end/35136
15557 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15558 (force_gimple_operand): Likewise.
15559 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15560 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15561 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15562 (find_interesting_uses_address): Check addressability and alignment
15563 of the base expression only after substituting bases of IVs into it.
15564
7e507322 155652008-02-14 Michael Matz <matz@suse.de>
15566
15567 PR target/34930
15568 * function.c (instantiate_virtual_regs_in_insn): Reload address
15569 before falling back to reloading the whole operand.
15570
7338c728 155712008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
15572
15573 * config/s390/s390.c (s390_mainpool_start): Emit the pool
15574 before the first section switch note.
15575
83d10720 155762008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15577
49a55c95 15578 * doc/bugreport.texi: Update copyright years.
15579 * doc/c-tree.texi: Likewise.
15580 * doc/cfg.texi: Likewise.
15581 * doc/cpp.texi: Likewise.
15582 * doc/cppinternals.texi: Likewise.
15583 * doc/fragments.texi: Likewise.
15584 * doc/frontends.texi: Likewise.
15585 * doc/gcc.texi: Likewise.
15586 * doc/gty.texi: Likewise.
15587 * doc/hostconfig.texi: Likewise.
15588 * doc/implement-c.texi: Likewise.
15589 * doc/libgcc.texi: Likewise.
15590 * doc/loop.texi: Likewise.
15591 * doc/makefile.texi: Likewise.
15592 * doc/options.texi: Likewise.
15593 * doc/passes.texi: Likewise.
15594 * doc/rtl.texi: Likewise.
15595 * doc/sourcebuild.texi: Likewise.
15596 * doc/standards.texi: Likewise.
15597 * doc/tree-ssa.texi: Likewise.
15598 * doc/trouble.texi: Likewise.
15599
83d10720 15600 * doc/extend.texi: Use @: or add comma where appropriate.
15601 * doc/invoke.texi: Likewise.
15602 * doc/tm.texi: Likewise.
15603
2a4fe7b7 156042008-02-14 Alan Modra <amodra@bigpond.net.au>
15605
15606 PR target/34393
15607 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15608 to a reg.
15609
4ebee9e4 156102008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
15611
15612 * doc/md.texi (clz, ctz): Add reference.
15613 * doc/rtl.texi (clz, ctz): Likewise.
15614
a1a0674f 156152008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15616
15617 PR other/35148
15618 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15619 srcdir.
15620
86428198 156212008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
15622
15623 * config/s390/s390.c (struct constant_pool): New field
15624 emit_pool_after added.
15625 (s390_mainpool_start): Set the emit_pool_after flag according
15626 to the section switch notes.
15627 (s390_mainpool_finish): Consider emit_pool_after when emitting
15628 the literal pool at the end of the function.
15629 (s390_chunkify_start): Force literal pool splits at section
15630 switch notes.
15631
86079287 156322008-02-13 Michael Matz <matz@suse.de>
15633
15634 PR debug/35065
15635 * var-tracking.c (clobber_variable_part): Correctly traverse the
15636 list.
15637
bfce1236 156382008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15639
15640 PR 29673
15641 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15642 Add -fdump-ipa-inline.
15643 * tree-dump.c (dump_files): Remove tree-inlined dump.
15644 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14eddddd 15645
e3e3ee4b 156462008-02-12 Richard Guenther <rguenther@suse.de>
15647
15648 PR tree-optimization/35171
15649 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15650 default defs.
15651
d06ed0b1 156522008-02-12 Richard Guenther <rguenther@suse.de>
15653
15654 PR middle-end/35163
15655 * fold-const.c (fold_widened_comparison): Use get_unwidened in
15656 value-preserving mode. Disallow final truncation.
15657
06b0fbf1 156582008-02-12 Eric Botcazou <ebotcazou@adacore.com>
15659
15660 PR middle-end/35136
15661 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15662 code from here to...
15663 (force_gimple_operand): ...here.
15664
3f982e5a 156652008-02-12 Jakub Jelinek <jakub@redhat.com>
15666
194bd83c 15667 PR c++/35144
15668 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15669 non-compatible pointers.
15670 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15671 different FIELD_DECLs, try harder by comparing field offsets, sizes
15672 and types.
15673
3f982e5a 15674 PR inline-asm/35160
15675 * function.c (match_asm_constraints_1): Don't replace the same input
15676 multiple times.
15677
637dc5b6 156782008-02-12 Anatoly Sokolov <aesok@post.ru>
15679
15680 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15681 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15682 (expand_epilogue): Restore RAMPZ register.
15683 * config/avr/avr.md (RAMPZ_ADDR): New constant.
15684
41992f82 156852008-02-11 Kai Tietz <kai.tietz@onevision.com>
15686
6144731c 15687 * config/i386/cygwin.asm: (__alloca): Correct calling
41992f82 15688 convention and alignment.
15689 (__chkstk): Force 8 byte stack alignment.
15690
3de988b5 156912008-02-11 Uros Bizjak <ubizjak@gmail.com>
efd43187 15692 Richard Guenther <rguenther@suse.de>
3de988b5 15693
15694 PR tree-optimization/33992
15695 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15696 the zero we compare against.
15697
6144731c 156982008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
15699
15700 PR libfortran/35063
15701 * gthr-win32.h (__gthread_mutex_destroy_function): New function
15702 to CloseHandle after unlocking to prevent accumulation of handle
15703 count.
15704
3e478718 157052008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15706
15707 PR middle_end/34150
15708 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15709 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
15710 and update LABEL_NUSES during and after reload.
15711
76d5115a 157122008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
15713
15714 PR middle-end/34627
ae731b4f 15715 * combine.c (simplify_if_then_else): Make sure the comparison is
76d5115a 15716 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15717
e506f1d4 157182008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15719
15720 PR bootstrap/35051
15721 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15722 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15723 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15724 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15725 * tree.h (get_type_static_bounds): Likewise.
15726
bfbab40c 157272008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15728
15729 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15730 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15731 Make -Wfoo language annotations match what the compiler outputs.
15732
c7386c28 157332008-02-08 Sa Liu <saliu@de.ibm.com>
15734
14eddddd 15735 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
c7386c28 15736 intrinsics spu_convts, spu_convtu, spu_convtf.
c7386c28 15737
9bc2537d 157382008-02-08 Hans-Peter Nilsson <hp@axis.com>
15739
15740 * doc/extend.texi (Function Attributes) <noinline>: Mention
15741 asm ("") as method to keep calls.
15742
30b0f428 157432008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15744
15745 PR other/32754
15746 * doc/options.texi (Options): Replace references to opts.sh with
15747 optc-gen.awk.
15748 * opts-common.c: Likewise.
15749 * optc-gen.awk: Likewise.
14eddddd 15750
8364148d 157512008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15752
15753 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15754
157552008-02-07 Richard Henderson <rth@redhat.com>
e8e27646 15756
15757 PR rtl-opt/33410
15758 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14eddddd 15759 EXPR_LIST for the REG_EQUAL instead of a comparison with a
e8e27646 15760 funny mode.
15761
4251ed76 157622008-02-07 Uros Bizjak <ubizjak@gmail.com>
15763
15764 PR tree-optimization/35085
15765 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15766 for operand entry oe2 in addition to operand entry oe3 in order to
15767 expose more opportunities for vectorizer sum reduction.
15768
6ca01c3b 157692008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15770
15771 PR other/35107
15772 * Makefile.in (LIBS): Remove $(GMPLIBS).
15773 (cc1-dummy, cc1): Add $(GMPLIBS).
15774
1dbb4355 157752008-02-06 Jan Hubicka <jh@suse.cz>
15776
5f704018 15777 PR target/23322
1dbb4355 15778 * i386.md (moddf_integer): Do not produce partial memory stalls for
15779 targets where it hurts.
15780
4c8054f4 157812008-02-06 Uros Bizjak <ubizjak@gmail.com>
15782
15783 PR target/35083
15784 * optabs.c (expand_float): Do not check for decimal modes when
15785 expanding unsigned integer through signed conversion.
15786
48f4cf85 157872008-02-06 Nick Clifton <nickc@redhat.com>
15788
15789 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15790 inside the clobber with a match_operand and duplicated operand
15791 number in the constraint.
15792 (ineqbranchsi): Delete redundant comment.
15793
3b7a17d9 157942008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
15795
14eddddd 15796 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
f04beaef 15797 builtin_define ("__USE_INIT_FINI__").
15798 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15799 -msx multilibs.
3b7a17d9 15800 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15801
b518f2ae 158022008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15803
15804 PR documentation/30330
15805 * doc/invoke.texi (C++ Dialect Options)
15806 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15807 For each warning option -Wfoo that allows -Wno-foo, ensure both
15808 -Wfoo and -Wno-foo are listed in the option index. Fix index
15809 entry of -Wswitch-default, index -Wnormalized= including the
15810 `=', and -Wlarger-than-@var{len} including @var{len}.
15811
840638ec 158122008-02-05 Uros Bizjak <ubizjak@gmail.com>
15813
15814 * config/i386/i386.md (floatunssisf2): Use
15815 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15816 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15817 Macroize expander using MODEF mode iterator.
15818
09885372 158192008-02-05 Diego Novillo <dnovillo@google.com>
15820
15821 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15822
15823 PR 33738
840638ec 15824 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
09885372 15825
ceb21d85 158262008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15827
15828 PR other/35070
15829 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15830
df3ba0fe 158312008-02-05 H.J. Lu <hongjiu.lu@intel.com>
15832
15833 PR target/35084
15834 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15835 to indicate if a message should be generated.
15836 (init_cumulative_args): Updated.
15837 (function_value_32): Likewise.
15838
79f7a0b8 158392008-02-05 Joseph Myers <joseph@codesourcery.com>
15840
15841 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15842
470195a4 158432008-02-05 Uros Bizjak <ubizjak@gmail.com>
15844
15845 PR target/35083
15846 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15847 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15848
82ec0d8f 158492008-02-04 Diego Novillo <dnovillo@google.com>
15850
15851 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15852
15853 PR 33738
15854 * tree-vrp.c (vrp_evaluate_conditional): With
15855 -Wtype-limits, emit a warning when comparing against a
15856 constant outside the natural range of OP0's type.
15857
bbf511cd 158582008-02-04 Richard Guenther <rguenther@suse.de>
15859
15860 PR middle-end/33631
15861 * expr.c (count_type_elements): Give for unions instead of
15862 guessing.
15863
5bad702f 158642008-02-04 Richard Guenther <rguenther@suse.de>
15865
15866 PR middle-end/35043
15867 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15868 to TYPE_DOMAINs base type instead of using bitsizetype here.
15869
930e8175 158702008-02-03 Jason Merrill <jason@redhat.com>
15871
15872 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15873
c55906eb 158742008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15875
15876 PR other/29972
15877 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15878 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15879 (RS/6000 and PowerPC Options): Fix typos and markup.
15880 * doc/passes.texi (Tree-SSA passes): Likewise.
15881
ce53880e 158822008-02-02 Michael Matz <matz@suse.de>
15883
15884 PR target/35045
15885 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15886 from record_last_reg_set_info.
15887 (record_last_reg_set_info): Take an RTX argument, iterate over all
15888 constituent hardregs.
15889 (record_last_set_info, record_opr_changes): Change calls to
15890 new signature or to record_last_reg_set_info_regno.
15891
957fb083 158922008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15893
15894 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15895
dec9a6b8 158962008-02-01 Hans-Peter Nilsson <hp@axis.com>
15897
15898 PR rtl-optimization/34773
15899 * reg-notes.def (EQUAL): Mention significance of combination of
15900 REG_EQUAL and REG_RETVAL.
15901 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15902 insn that has a REG_RETVAL.
15903
6ccd4361 159042008-02-01 Roger Sayle <roger@eyesopen.com>
15905
15906 PR bootstrap/33781
15907 * configure.ac (--enable-fixed-point): Disable unless explicitly
15908 requested on IRIX.
15909 * configure: Regenerate.
15910
39e88a5d 159112008-02-01 Richard Guenther <rguenther@suse.de>
15912
15913 PR other/35042
15914 * invoke.texi (-finline-limit): Remove no longer true parts
15915 of the documentation. Note that there is no default value.
15916
2f5beddc 159172008-02-01 Andrew Pinski <pinskia@gmail.com>
15918 Mark Mitchell <mark@codesourcery.com>
15919 Ben Elliston <bje@au.ibm.com>
15920
15921 PR c/29326
15922 * doc/extend.texi (Other Builtins): Document.
15923
d40533b6 159242008-01-31 Tom Browder <tom.browder@gmail.com>
15925
15926 * doc/c-tree.texi (Types): Fix grammar.
15927 (Expression trees): Ditto.
15928 * doc/passes.texi (Tree-SSA passes): Ditto.
14eddddd 15929
d40533b6 15930 * doc/configterms.texi (Configure Terms): Fix typo.
15931 * doc/cpp.texi (Common Predefined Macros): Ditto.
15932 * doc/md.texi (Machine Constraints): Ditto.
14eddddd 15933
d40533b6 15934 * doc/makefile.texi (Makefile): Add comma.
15935
38cd7009 159362008-01-31 Tom Browder <tom.browder@gmail.com>
15937 Gerald Pfeifer <gerald@pfeifer.com>
14eddddd 15938
38cd7009 15939 * doc/sourcebuild.texi (Front End): Remove references to CVS
15940 and CVSROOT/modules.
15941 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15942 (Back End): Remove reference to CVS.
15943
0d399d52 159442008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15945
15946 PR target/34900
15947 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15948 comment from...
15949 (mips16_gp_pseudo_reg): ...here.
15950 * config/mips/mips.md (load_const_gp): Replace with...
15951 (load_const_gp_<mode>): ...this :P-based insn.
15952
c75a5ac5 159532008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15954
15955 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15956 options. Minor fixes.
15957 (-std): Move reference to standards closer to where language
15958 standards are first mentioned.
14eddddd 15959
53716799 159602008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15961
15962 PR rtl-optimization/34995
15963 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15964 parameter and return a bool. If the rtx parameter is nonnull,
15965 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15966 (find_reloads): Update call accordingly. Pass the new operand
15967 if it needed no address reloads, otherwise pass null.
15968
e14d689c 159692008-01-30 Richard Henderson <rth@redhat.com>
15970
15971 PR c/34993
15972 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15973 for unbounded arrays.
15974
9424a8b9 159752008-01-30 Silvius Rus <rus@google.com>
15976
15977 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15978
89beb200 159792008-01-30 Jan Hubicka <jh@suse.cz>
15980
15981 PR target/34982
15982 * i386.c (init_cumulative_args): Use real function declaration when
15983 calling locally.
15984
9a9cbcd2 159852008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15986
15987 PR rtl-optimization/34998
15988 * global.c (build_insn_chain): Treat non-subreg_lowpart
15989 SUBREGs of pseudos as clobbering all the words covered by the
15990 SUBREG, not just all the bytes.
15991 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15992 original df_ref rather than an extract parameter.
15993 (global_conflicts): Update call accordingly.
15994
365b8932 159952008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15996
15997 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15998 the overflow check to make it easier to read.
15999 (__fixtfdi): Change the type of the ll member in union
16000 long_double to UDItype_x.
16001
c55e2943 160022008-01-30 Jakub Jelinek <jakub@redhat.com>
16003
117ef3d7 16004 PR middle-end/34969
16005 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
16006 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
16007 * tree-inline.c (fold_marked_statements): Call
16008 cgraph_update_edges_for_call_stmt if folding a call statement.
16009 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
16010 debug_generic_stmt calls, reset it back afterwards.
16011
c55e2943 16012 PR c/35017
16013 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
16014 static decls.
16015 * c-typeck.c (build_external_ref): Don't pedwarn about
16016 static vars in current function's scope.
16017
5bcb8578 160182008-01-29 Joseph Myers <joseph@codesourcery.com>
16019
16020 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
16021
94023798 160222008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
16023
16024 PR c/35002
16025 * ipa-struct-reorg.c: Fix spelling.
16026 * params.def: Ditto.
16027
ed6049c8 160282008-01-29 Richard Guenther <rguenther@suse.de>
16029
16030 PR middle-end/35006
16031 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
16032 field.
16033 * tree-inline.c (remap_type): Increment remapping_type_depth
16034 around remapping types.
16035 (copy_body_r): Only add referenced variables if they are referenced
16036 from code, not types.
16037
830a6615 160382008-01-29 Douglas Gregor <doug.gregor@gmail.com>
16039
16040 PR c++/34055
16041 PR c++/34103
16042 PR c++/34219
16043 PR c++/34606
16044 PR c++/34753
16045 PR c++/34754
16046 PR c++/34755
16047 PR c++/34919
16048 PR c++/34961
16049 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
16050 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
16051
48bffadc 160522008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
16053
16054 PR target/34412
14eddddd 16055 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
48bffadc 16056 pointer for tiny stack.
16057
260cf6df 160582008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16059
16060 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16061
345ff830 160622008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16063
16064 * config/vx-common.h: Fix typo in comment.
16065
c5f257af 160662008-01-28 Ian Lance Taylor <iant@google.com>
16067
16068 PR c++/34862
16069 PR c++/33407
16070 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16071 coalesce pointers if they have different DECL_NO_TBAA_P values.
16072 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16073 between variables with different DECL_NO_TBAA_P values.
16074
c64b5439 160752008-01-28 Nathan Froyd <froydnj@codesourcery.com>
16076
16077 PR 31535
16078 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16079 are not legitimate small data references on SPE targets.
16080
bcedfa23 160812008-01-28 David Daney <ddaney@avtrex.com>
16082
16083 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16084
fe30b803 160852008-01-28 David Daney <ddaney@avtrex.com>
16086
16087 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
16088
453829c7 160892008-01-27 Joseph Myers <joseph@codesourcery.com>
16090
16091 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16092 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16093 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16094 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16095 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16096 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16097 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16098 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16099
511934f9 161002008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16101
16102 * basic-block.h (condjump_equiv_p): Fix comment.
16103
ba810638 161042008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16105
16106 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16107 print_generic_stmt_indented): Fix comment.
16108
e214b635 161092008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16110
16111 * configure.ac (__stack_chk_fail): Add detecion for availability
16112 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16113 * configure: Regenerate.
16114
b32b308d 161152008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
16116
16117 PR middle-end/34688
16118 * final.c (output_addr_const): Handle TRUNCATE.
16119
3c2818b0 161202008-01-26 Zdenek Dvorak <ook@ucw.cz>
16121
16122 PR target/34711
16123 * tree-ssa-loop-ivopts.c (comp_cost): New type.
16124 (zero_cost, infinite_cost): New constants.
16125 (struct cost_pair): Change type of cost to comp_cost.
16126 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16127 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16128 New functions.
16129 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16130 split_address_cost, ptr_difference_cost, difference_cost,
16131 get_computation_cost_at, get_computation_cost,
16132 determine_use_iv_cost_generic, determine_use_iv_cost_address,
16133 determine_use_iv_cost_condition, determine_use_iv_costs,
16134 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16135 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16136 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16137 Change type of cost to comp_cost.
16138 (determine_iv_cost): Increase cost of non-original ivs, instead
16139 of decreasing the cost of original ones.
14eddddd 16140 (get_address_cost): Indicate the complexity of the addressing mode
3c2818b0 16141 in comp_cost.
16142 (try_add_cand_for): Prefer using ivs not specific to some object.
16143 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16144
b32b308d 161452008-01-26 Peter Bergner <bergner@vnet.ibm.com>
bc5e6ea1 16146 Janis Johnson <janis187@us.ibm.com>
16147
16148 PR target/34814
16149 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16150 (TARGET_INSTANTIATE_DECLS): Likewise.
16151 * target.h (expand_to_rtl_hook): New target hook.
16152 (instantiate_decls): Likewise.
16153 * function.c (instantiate_decl): Make non-static. Rename to...
16154 (instantiate_decl_rtl): ... this.
16155 (instantiate_expr): Use instantiate_decl_rtl.
16156 (instantiate_decls_1): Likewise.
16157 (instantiate_decls): Likewise.
16158 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16159 * function.h (instantiate_decl_rtl): Add prototype.
16160 * cfgexpand.c (target.h): New include.
16161 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16162 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16163 (TARGET_INSTANTIATE_DECLS): Likewise.
16164 (TARGET_INITIALIZER): New target hooks added.
16165 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16166 New prototype.
16167 * config/rs6000/rs6000.c (tree-flow.h): New include.
16168 (machine_function): Add sdmode_stack_slot field.
16169 (rs6000_alloc_sdmode_stack_slot): New function.
16170 (rs6000_instantiate_decls): Likewise.
16171 (rs6000_secondary_memory_needed_rtx): Likewise.
16172 (rs6000_check_sdmode): Likewise.
16173 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16174 (TARGET_INSTANTIATE_DECLS): Likewise.
16175 (rs6000_hard_regno_mode_ok): Allow SDmode.
16176 (num_insns_constant): Likewise. Handle _Decimal32 constants.
16177 (rs6000_emit_move): Handle SDmode.
16178 (function_arg_advance): Likewise.
16179 (function_arg): Likewise.
16180 (rs6000_gimplify_va_arg): Likewise. Add special handling of
16181 SDmode var args for 32-bit compiles.
16182 (rs6000_secondary_reload_class): Handle SDmode.
16183 (rs6000_output_function_epilogue): Likewise.
16184 (rs6000_function_value): Simplify if statement.
16185 (rs6000_libcall_value): Likewise.
16186 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16187 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16188 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16189 (movsd_hardfloat): New define_insn.
16190 (movsd_softfloat): Likewise.
16191 (movsd_store): Likewise.
16192 (movsd_load): Likewise.
16193 (extendsddd2): Likewise.
16194 (extendsdtd2): Likewise.
16195 (truncddsd2): Likewise.
16196 (movdd_hardfloat64): Fixup comment.
16197 (UNSPEC_MOVSD_LOAD): New constant.
16198 (UNSPEC_MOVSD_STORE): Likewise.
16199
37aea014 162002008-01-26 Jakub Jelinek <jakub@redhat.com>
16201
16202 PR c++/34965
16203 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16204 TRUTH_XOR_EXPR.
16205 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16206 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16207 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16208 and TRUTH_XOR_EXPR.
16209
0cc77516 162102008-01-26 David Edelsohn <edelsohn@gnu.org>
16211
16212 PR target/34794
16213 * config.gcc: Separate AIX 5.3 from AIX 6.1.
16214 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16215 __LONGDOUBLE128 too.
16216 * config/rs6000/aix61.h: New file.
16217
e03d813f 162182008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16219
16220 PR rtl-optimization/34959
16221 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16222 popcount and parity rtxes the same mode as their operand.
16223 Truncate or extend the result to the return value's mode
16224 if necessary.
16225
5eec32fe 162262008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16227
16228 PR target/34981
16229 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16230 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16231 to GOT_VERSION_REGNUM.
16232 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16233 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16234 * config/mips/mips.c (mips_emit_call_insn): New function.
16235 (mips_call_tls_get_addr): Call mips_expand_call directly.
16236 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16237 emit_call_insn.
16238 (mips16_build_call_stub): Likewise. Return the call insn or null.
16239 (mips_expand_call): Update the call to mips16_build_call_stub
16240 accordingly and a remove redundant condition. Assert that MIPS16
16241 stubs do not use lazy binding. Use mips_emit_call_insn and return
16242 the call insn.
16243 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16244 TARGET_USE_GOT.
16245 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16246 (mips_avoid_hazard): Remove hazard_set handling.
16247 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16248 (UNSPEC_RESTORE_GP): ...this.
16249 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16250 (FAKE_CALL_REGNO): Rename to...
16251 (GOT_VERSION_REGNUM): ...this.
16252 (type): Add "ghost" value. Add an associated insn reservation.
16253 (hazard_set): Remove.
16254 (exception_receiver): Rename to...
16255 (restore_gp): ...this and update the unspec identifier accordingly.
16256 (exception_receiver, nonlocal_got_receiver): New expanders.
16257 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
16258 FAKE_CALL_REGNO. Remove hazard_set attribute.
16259 (set_got_version, update_got_version): New patterns.
16260
26b142a4 162612008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
16262
16263 PR target/34970
16264 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16265
74a4b47f 162662008-01-25 Joseph Myers <joseph@codesourcery.com>
16267
16268 PR other/31955
16269 * doc/install.texi2html: Generate gcc-vers.texi.
16270
2cc20bba 162712008-01-25 DJ Delorie <dj@redhat.com>
16272
16273 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16274
99c77e32 162752008-01-25 Joseph Myers <joseph@codesourcery.com>
16276
16277 * config/c4x: Remove directory.
16278 * config.gcc (crx-*, mt-*): Mark obsolete.
16279 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16280 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16281 sh-*-rtemscoff*): Remove cases.
16282 * defaults.h (C4X_FLOAT_FORMAT): Remove.
16283 * real.c (encode_c4x_single, decode_c4x_single,
16284 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16285 c4x_extended_format): Remove.
16286 * real.h (c4x_single_format, c4x_extended_format): Remove.
16287 * doc/extend.texi (interrupt, naked): Remove mention of attributes
16288 on C4x.
16289 (Pragmas): Remove comment about c4x pragmas.
16290 * doc/install.texi (c4x): Remove target-specific instructions.
16291 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16292 * doc/md.texi (Machine Constraints): Remove C4x documentation.
16293 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16294 refer to C4x source files as examples.
16295 (C4X_FLOAT_FORMAT): Remove documentation.
16296
ced0033c 162972008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
16298
16299 * config/bfin/bfin.c (override_options): Reorder tests so that
16300 flag_pic gets enabled for -msep-data.
16301
5c9c131f 163022008-01-25 Richard Guenther <rguenther@suse.de>
16303
16304 PR middle-end/32244
16305 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16306 to its bitfield precision if required.
16307
b43fc0dc 163082008-01-25 Jakub Jelinek <jakub@redhat.com>
16309
16310 PR middle-end/33880
16311 * tree-nested.c (walk_omp_for): New function.
16312 (convert_nonlocal_reference, convert_local_reference): Call
16313 walk_omp_for on OMP_FOR.
16314 (convert_call_expr): Call walk_body on OMP_FOR's
16315 OMP_FOR_PRE_INIT_BODY.
16316
8090c12d 163172008-01-25 Richard Guenther <rguenther@suse.de>
16318
16319 PR tree-optimization/34966
16320 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16321 default defs and PHI_NODEs we have to insert after the
16322 defining statement.
16323
bcf954af 163242008-01-24 Nick Clifton <nickc@redhat.com>
16325
16326 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16327 Provide a default definition.
16328 (LIBGCC2_UNITS_PER_WORD): Likewise.
16329
16330 * config/stormy16/stormy16.c: Include df.h for the prototype
16331 for df_regs_ever_live_p.
16332 (xstormy16_expand_builtin_va_start): Convert the stack offset
16333 into a component_ref and then use POINTER_PLUS_EXPR to add it
16334 to the incoming_virtual_args_rtx.
16335 (xstormy16_gimplify_va_arg_expr): Rename to
16336 xstormy16_gimplify_va_arg_expr.
16337 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16338 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16339 xstormy16_gimplify_va_arg_expr.
16340 Fix up some formatting issues.
16341
16342 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16343 Move to predicates.md.
16344 (xs_hi_general_operand): Likewise.
16345 (xs_hi_nonmemory_operand): Likewise.
16346 * config/stormy16/predicates.md:
16347 (xstormy16_carry_plus_operand): New predicate.
16348 (xs_hi_general_operand): New predicate.
16349 (xs_hi_nonmemory_operand): New predicate.
16350 * config/stormy16/stormy16-protos.h:
16351 (xstormy16_carry_plus_operand): Delete prototype.
16352 (xs_hi_general_operand): Likewise.
16353 (xs_hi_nonmemory_operand): Likewise.
16354
16355 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16356 modifiers as they are no longer needed and they can trigger
16357 reload spill failures.
16358
16359 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16360 with a match_operand in order to help reload.
16361
16362 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16363 constraint with 'e' for the 8th alternative as this version of
16364 the mov.w instruction only accepts the lower 8 registers.
16365
72412d4b 163662008-01-25 Uros Bizjak <ubizjak@gmail.com>
16367
16368 PR target/34856
16369 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16370 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16371 vector elements.
16372
b22f2ff4 163732008-01-25 Jakub Jelinek <jakub@redhat.com>
16374
16375 PR middle-end/33333
16376 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16377
009b0c6d 163782008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16379
16380 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16381 New functions.
16382 (remove_structure): Update allocations list before removing structure.
14eddddd 16383
864a494e 163842008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16385
14eddddd 16386 * ipa-struct-reorg.c (is_safe_cond_expr,
864a494e 16387 create_new_stmts_for_cond_expr): Use integer_zerop function,
16388 that recognize not only zero-pointer, but zero-integer too.
16389
98bdcbcf 163902008-01-25 Ben Elliston <bje@au.ibm.com>
16391
16392 PR other/22232
16393 * fixproto: Escape "." in sed expression that strips leading "./".
16394
79d52444 163952008-01-24 H.J. Lu <hongjiu.lu@intel.com>
16396
16397 PR driver/34904
16398 * gcc.c (SWITCH_OK): Removed.
16399 (SWITCH_LIVE): Changed to bit.
16400 (SWITCH_FALSE): Likewise.
16401 (SWITCH_IGNORE): Likewise.
16402 (switchstr): Change live_cond to unsigned int.
16403 (process_command): Replace SWITCH_OK with 0.
16404 (do_self_spec): Likewise.
16405 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16406 (give_switch): Likewise.
16407 (used_arg): Likewise.
16408 (do_spec_1): Set the SWITCH_IGNORE bit.
16409 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16410 bits. Set the SWITCH_LIVE bit.
16411
6cb659b1 164122008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
16413
16414 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16415
66bc4f2f 164162008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
16417
16418 PR tree-optimization/34472
16419 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16420 parameter to a "bool *" and set *DATA to false if there is
16421 an unsafe access. Do not delete the structure here.
16422 (check_cond_exprs): Delete it here instead.
16423 (check_cond_exprs, exclude_cold_structs): Do not increase
16424 I when removing a structure.
16425
098e8492 164262008-01-24 Uros Bizjak <ubizjak@gmail.com>
16427
16428 PR target/34856
16429 * config/i386/i386.c (ix86_expand_vector_init): Consider only
16430 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16431
4b53147e 164322008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
16433
16434 PR middle-end/34934
16435 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16436 a fixed vector for stack.
16437
0af13ed4 164382008-01-24 Ben Elliston <bje@au.ibm.com>
16439
16440 PR c++/25701
16441 * doc/gcc.texi (Software development): Add a direntry for g++.
14eddddd 16442
631d7bf1 164432008-01-23 Hans-Peter Nilsson <hp@axis.com>
16444
248c1389 16445 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16446 stale and straggling -fforce-addr comments above.
16447
631d7bf1 16448 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16449 define.
16450 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16451 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16452
f4aea3f4 164532008-01-23 Michael Matz <matz@suse.de>
16454
16455 PR debug/34895
16456 * dwarf2out.c (force_type_die): Use modified_type_die instead of
16457 gen_type_die.
16458
c7108d79 164592008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
16460
16461 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16462 malloc result type.
16463
b1eb5c83 164642008-01-23 Anatoly Sokolov <aesok@post.ru>
16465
16466 * config/avr/avr.c (avr_current_arch): New variable.
16467 (avr_arch_types): Add 'avr31' and 'avr51' entries.
16468 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16469 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14eddddd 16470 (avr_override_options): Init 'avr_current_arch'.
b1eb5c83 16471 (base_arch_s): Move from here...
14eddddd 16472 * config/avr/avr.h (base_arch_s): ... here. Add new members
16473 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
b1eb5c83 16474 'mega' to 'have_jmp_call'.
14eddddd 16475 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
a07c5315 16476 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
b1eb5c83 16477 macros.
14eddddd 16478 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
b1eb5c83 16479 architectures.
14eddddd 16480 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
a07c5315 16481 MULTILIB_MATCHES): Ditto.
b1eb5c83 16482
46beef9a 164832008-01-23 Richard Guenther <rguenther@suse.de>
16484
16485 PR middle-end/31529
16486 * cgraphunit.c (cgraph_reset_node): Always mark the node
16487 not reachable if it is not queued already.
16488
f5c2bcb7 164892008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
16490
16491 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16492 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16493 (cputype_selected): New static variable.
16494 (bfin_handle_option): Set it if -mcpu is used.
16495 (override_option): Select default set of workarounds if no cpu type
16496 selected on the command line.
16497 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
27bedcb4 16498
16499 From Michael Frysinger <michael.frysinger@analog.com>
16500 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16501 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16502
16503 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16504 for bf547, bf523, bf524, and bf526.
16505 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
16506 bf526.
16507 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16508 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16509 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16510 __ADSPBF547__ and __ADSPBF54x__ for bf547.
16511 * doc/invoke.texi (Blackfin Options): Document that
16512 -mcpu now accept bf547, bf523, bf524, and bf526.
16513
3888eedd 165142008-01-22 Eric Botcazou <ebotcazou@adacore.com>
16515
16516 PR rtl-optimization/34628
16517 * combine.c (try_combine): Stop and undo after the first combination
16518 if an autoincrement side-effect on the first insn has effectively
16519 been lost.
16520
e74b57b1 165212008-01-22 David Edelsohn <edelsohn@gnu.org>
16522
16523 PR target/34529
16524 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16525 Offset addresses are not valid for Altivec or paired float modes.
16526
06faa2fe 165272008-01-22 Jakub Jelinek <jakub@redhat.com>
16528
bb436d4e 16529 PR c++/34607
16530 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16531 if DECL_INITIAL (decl) is error_mark_node.
16532
2cb0e5d9 16533 PR c++/34914
16534 * c-common.c (handle_vector_size_attribute): Only allow
16535 integral, scalar float and fixed point types. Handle OFFSET_TYPE
16536 the same way as pointer, array etc. types.
16537 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16538
06faa2fe 16539 PR c++/34917
16540 * tree.c (build_type_attribute_qual_variant): Call
16541 build_qualified_type if attributes are equal, but quals are not.
16542
a54ab330 165432008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16544
16545 PR 32102
16546 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16547 * flags.h (warn_strict_aliasing): Remove.
16548 (warn_strict_overflow): Remove.
16549 * opts.c (warn_strict_aliasing): Remove.
16550 (warn_strict_overflow): Remove.
16551 * c-opts.c (c_common_handle_option): -Wall only sets
16552 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16553 (c_common_post_options): Give default values to -Wstrict-aliasing
16554 and -Wstrict-overflow if they are uninitialized.
16555 * common.opt (Wstrict-aliasing): Specify Var and Init.
16556 (Wstrict-overflow): Likewise.
16557
957f873e 165582008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
f437e46d 16559
16560 PR rtl-optimization/26854
16561 PR rtl-optimization/34400
16562 PR rtl-optimization/34884
16563 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16564 DF_RD->gen.
16565 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16566 (df_rd_bb_info.expanded_lr_out): Deleted
16567 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16568 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
16569 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16570 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16571 Removed code to allocate, initialize or free expanded_lr_out.
16572 (df_rd_bb_local_compute_process_def): Restructured to make more
16573 understandable.
16574 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16575 sets if the sets are being trimmed.
16576
c7871c82 165772008-01-22 H.J. Lu <hongjiu.lu@intel.com>
16578
16579 PR bootstrap/32287
16580 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16581 (as_vers): Likewise.
16582 * configure: Regenerated.
16583
df3f0669 165842008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16585
16586 PR middle-end/33092
16587 * tree-pass.h (pass_build_alias): New pass.
16588 * tree-ssa-alias.c (gate_build_alias): New.
16589 (pass_build_alias): New.
16590 * passes.c (init_optimization_passes): Add pass_build_alias after
16591 pass_create_structure_vars.
16592
d1191819 165932008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
16594
16595 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16596 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16597 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16598 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16599 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16600 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16601 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16602 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16603 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16604 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16605 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16606 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16607 * config/s390/s390.md (FP_ALL): New mode iterator.
16608 (_d): New mode attribute.
16609 ("*signbit<mode>2>"): Changed mode of first operand.
16610 ("isinf<mode>2"): Changed mode of first operand.
16611 ("*TDC_insn"): Adaptation for DFP modes.
16612
f47ba5b1 166132008-01-22 Ben Elliston <bje@au.ibm.com>
16614
16615 * tree.c (check_qualified_type): Improve function description.
16616
0bc060a4 166172008-01-21 Jason Merrill <jason@redhat.com>
16618
16619 PR c++/34196
16620 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16621 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16622 if it is set.
16623
1c64e82e 166242008-01-21 DJ Delorie <dj@redhat.com>
16625
16626 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16627 return zero.
16628
2a2aef73 166292008-01-21 Richard Guenther <rguenther@suse.de>
16630
16631 PR middle-end/34856
16632 * tree-cfg.c (verify_expr): Allow all invariant expressions
16633 instead of just constant class ones as reference argument.
16634 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16635 like any other constant.
16636 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16637
d8d756b9 166382008-01-21 H.J. Lu <hongjiu.lu@intel.com>
16639
16640 * regmove.c (fixup_match_1): Update call crossed frequencies.
16641
62437c86 166422008-01-21 Richard Guenther <rguenther@suse.de>
16643
16644 PR c/34885
16645 * tree-inline.c (setup_one_parameter): Deal with mismatched
16646 types using a VIEW_CONVERT_EXPR.
16647
f25ba2cf 166482008-01-21 Alon Dayan <alond@il.ibm.com>
16649 Olga Golovanevsky <olga@il.ibm.com>
14eddddd 16650
f25ba2cf 16651 PR tree-optimization/34701
16652 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16653 when the structure size is not a power of 2.
16654
957f873e 166552008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
dbc72697 16656
16657 * doc/install.texi: Add doc for --enable-checking=df.
14eddddd 16658
c556495e 166592008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16660
16661 PR rtl-optimization/34808
16662 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16663
d8f69cf6 166642008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16665
16666 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16667 input.
16668
957f873e 166692008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2e49e3bc 16670
16671 PR rtl-optimization/26854
16672 PR rtl-optimization/34400
16673 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16674 DF_RD->gen.
16675 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16676 (df_rd_bb_info.expanded_lr_out): New.
16677 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16678 * loop_iv.c (iv_analysis_loop_init): Ditto.
16679 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16680 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16681 Added code to allocate, initialize or free expanded_lr_out.
16682 (df_rd_bb_local_compute_process_def): Restructured to make
16683 more understandable.
16684 (df_rd_confluence_n): Add code to do nothing with fake edges and
16685 code to no apply invalidate_by_call sets if the sets are being trimmed.
16686 (df_lr_local_finalize): Renamed to df_lr_finalize.
16687 (df_live_local_finalize): Renamed to df_live_finalize.
16688
d2f3e075 166892008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16690
16691 PR target/34831
16692 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16693 deciding whether to use reciprocal instructions.
16694
4e971a07 166952008-01-19 Uros Bizjak <ubizjak@gmail.com>
16696
16697 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16698 dwarf2out_note_section_used if cold_text_section is NULL.
16699
b3a3ddec 167002008-01-19 Jakub Jelinek <jakub@redhat.com>
16701
16702 PR gcov-profile/34610
16703 * tree-cfg.c (make_edges): Mark both outgoing edges from
16704 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16705 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16706 from OMP_FOR and OMP_CONTINUE outgoing edges.
16707
16708 * tree-profile.c (tree_profiling): Return early if
16709 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
16710 at the end.
16711 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16712 from cfun to child_cfun.
16713 * function.h (struct function): Add after_tree_profile bit.
16714
cb20fbcc 167152008-01-19 Anatoly Sokolov <aesok@post.ru>
16716
16717 * config/avr/avr.S (_exit): Disable interrupt.
16718
a7bc23c0 167192008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16720 Steven Bosscher <stevenb.gcc@gmail.com>
16721
16722 PR rtl-optimization/26854
16723 PR rtl-optimization/34400
16724 * df-problems.c (df_live_scratch): New scratch bitmap.
16725 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16726 (df_live_reset): Clear the proper bitmaps.
16727 (df_live_bb_local_compute): Only process the artificial defs once
16728 since the order is not important.
16729 (df_live_init): Init the df_live sets only with the variables
16730 found live by df_lr.
16731 (df_live_transfer_function): Use the df_lr sets to prune the
14eddddd 16732 df_live sets as they are being computed.
a7bc23c0 16733 (df_live_free): Free df_live_scratch.
16734
7765591b 167352008-01-18 Ian Lance Taylor <iant@google.com>
16736
16737 * common.opt: Add fmerge-debug-strings.
16738 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16739 flag_merge_debug_strings rather than flag_merge_constants.
16740 * doc/invoke.texi (Option Summary): Mention
16741 -fmerge-debug-strings.
16742 (Debugging Options): Document -fmerge-debug-strings.
16743
68d6de5b 167442008-01-18 Ian Lance Taylor <iant@google.com>
16745
16746 PR c++/33407
16747 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16748 (struct tree_function_decl): Add new field operator_new_flag.
16749 * tree-inline.c (expand_call_inline): When inlining a call to
16750 operator new, force the return value to go into a variable, and
16751 set DECL_NO_TBAA_P on that variable.
16752 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16753
af30c139 167542008-01-18 Uros Bizjak <ubizjak@gmail.com>
16755
16756 PR debug/34484
16757 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16758 DWARF2_DEBUGGING_INFO.
16759 (dwarf2out_note_section_used): Ditto. Add prototype.
16760 (have_multiple_function_sections, text_section_used,
16761 cold_text_section_used, *cold_text_sections): Move declarations
16762 before their uses.
16763
1650f4d3 167642008-01-17 Bob Wilson <bob.wilson@acm.org>
92f6e056 16765
16766 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16767 field and add signal_ra.
16768 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16769 assignments to frame state pc. Move end of stack check after
16770 MD_FALLBACK_FRAME_STATE_FOR.
16771 (uw_update_context_1): Use frame state signal_regs if set, instead
16772 of checking signal_frame flag.
16773 (uw_update_context): Use frame state signal_ra if set.
16774 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16775 * config/xtensa/linux-unwind.h: New file.
16776
1650f4d3 167772008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
c15d54d8 16778
16779 * modulo-sched.c (get_sched_window): Fix comment typo.
16780
ea5876d9 167812008-01-17 Andrew MacLeod <amacleod@redhat.com>
16782
16783 PR tree-optimization/34648
16784 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16785
d5f9ff99 167862008-01-17 Anatoly Sokolov <aesok@post.ru>
16787
16788 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16789 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16790
a9e21c4c 167912008-01-17 Seongbae Park <seongbae.park@gmail.com>
16792
16793 PR rtl-optimization/34400
16794 * df-core.c (df_worklist_dataflow_overeager,
16795 df_worklist_dataflow_doublequeue): New functions.
16796 (df_worklist_dataflow): Two different worklist solvers.
16797 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16798 New param.
16799
9d6f50ba 168002008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16801
16802 PR testsuite/34821
16803 * doc/invoke.texi: Document the dependence on pthread for fopenmp
16804 and ftree-parallelize-loops.
16805
fa7f4c0c 168062008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
16807
16808 PR rtl-optimization/34826
16809 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16810
74748e47 168112008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
16812
16813 * global.c (find_reg): Mark the eh regs as used if necessary.
16814 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16815 * ra.h (struct allocno): no_eh_reg field added. Changed
16816 no_stack_reg type to bitfield.
16817
a13ff590 168182008-01-17 Eric Botcazou <ebotcazou@adacore.com>
16819
16820 * tree.c (substitute_in_expr): Add missing 'break'.
16821
119368d7 168222008-01-17 Richard Guenther <rguenther@suse.de>
16823
16824 PR tree-optimization/34825
16825 * tree-ssa-math-opts.c (is_division_by): Do not recognize
16826 x / x as division to handle.
16827
9f4dc59e 168282008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16829
16830 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16831 "-pthread" is specified.
16832 * pa-hpux11.h (LIB_SPEC): Likewise.
16833
1650f4d3 168342008-01-16 Janis Johnson <janis187@us.ibm.com>
2379ccd9 16835 Peter Bergner <bergner@vnet.ibm.com>
16836
16837 PR rtl-optimization/33796
16838 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16839
a2060dc3 168402008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16841
16842 PR libgfortran/34699
16843 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16844 static links.
16845 * pa-hpux10.h (LINK_SPEC): Likewise.
16846 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16847
0cfec3e9 168482008-01-16 Richard Guenther <rguenther@suse.de>
16849
16850 PR middle-end/32628
16851 * fold-const.c (fold_convert_const_int_from_int): Do not
16852 set overflow if that occured only because of a sign extension
16853 change when converting from/to a sizetype with the same
16854 precision and signedness.
16855
d848c04f 168562008-01-16 Uros Bizjak <ubizjak@gmail.com>
16857
16858 PR debug/34249
16859 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16860 location address to the correct place. Update copyright year.
16861
b44df49a 168622008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16863
16864 * lambda-code.c (lambda_transform_legal_p): Handle the case of
16865 no dependences in the dependence_relations vector.
16866
a8587796 168672008-01-16 Jan Hubicka <jh@suse.cz>
16868
16869 PR rtl-optimization/31396
16870 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16871 * cfg.c (dump_reg_info): Print it.
16872 * regs.h (struct reg_info_t): add freq_calls_crossed.
16873 (REG_FREQ_CALLS_CROSSED): New macro.
16874 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16875 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16876 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16877 regmove_optimize): Update call crossed frequencies.
16878 * local-alloc.c (struct qty): Add freq_calls_crossed.
16879 (alloc_qty): Copute freq_calls_crossed.
16880 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16881 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16882 * ra.h (struct allocno): Add freq_calls_crossed.
16883
061202f8 168842008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16885
16886 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16887 libgomp when compiling with ftree-parallelize-loops.
16888 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16889
c782188f 168902008-01-16 Richard Guenther <rguenther@suse.de>
16891
16892 PR tree-optimization/34769
16893 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16894 * tree.c (int_cst_value): Instead make this function more
16895 permissive in what it accepts as valid input. Document this
16896 function always sign-extends the value.
16897
db812c94 168982008-01-16 Jakub Jelinek <jakub@redhat.com>
4e971a07 16899 Richard Guenther <rguenther@suse.de>
db812c94 16900
16901 PR c/34668
16902 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16903 (gimple_fold_indirect_ref_rhs): ... this.
16904 (gimple_fold_indirect_ref): New function with foldings
16905 that preserve lvalueness.
16906 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16907 * tree-flow.h (gimple_fold_indirect_ref): Declare.
16908 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16909 to fold an INDIRECT_REF, fall back to the old use of
16910 fold_indirect_ref_1.
16911
e34df749 169122008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16913
14eddddd 16914 * tree-data-ref.c (subscript_dependence_tester_1): Call
e34df749 16915 free_conflict_function.
16916 (compute_self_dependence): Same.
16917
9bf03e06 169182008-01-16 Uros Bizjak <ubizjak@gmail.com>
16919
16920 PR debug/34249
16921 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16922 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16923 function global.
16924 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16925 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16926 for DWARF2_UNWIND_INFO targets.
16927
36d43c4a 169282008-01-16 Richard Guenther <rguenther@suse.de>
16929
16930 PR c/34768
16931 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16932 type qualifiers for function types.
16933
6f22df65 169342008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16935
16936 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16937 loop_iterator li from previous commit.
16938
169392008-01-15 Sebastian Pop <sebastian.pop@amd.com>
d46d3c1c 16940
16941 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16942
d4fcfd16 169432008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16944
16945 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16946 (parallelize_loops): Don't parallelize irreducible components.
16947
c9d90c25 169482008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16949
16950 PR c++/24924
16951 * c-opts (c_common_post_options): Do not enable CPP
16952 flag_pedantic_errors by default.
14eddddd 16953
d2c970fe 169542008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16955
16956 PR rtl-optimization/31944
16957 * cse.c (remove_pseudo_from_table): New function.
16958 (merge_equiv_classes): Use above function to remove pseudo-registers.
16959 (invalidate): Likewise.
16960
3ff99faa 169612008-01-13 Richard Guenther <rguenther@suse.de>
16962
16963 PR middle-end/34601
16964 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16965 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16966
3e179c53 169672008-01-13 Uros Bizjak <ubizjak@gmail.com>
16968
16969 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16970 validate_change to unshare the source of the PC set.
16971
b513c084 169722008-01-12 Jan Hubicka <jh@suse.cz>
16973
16974 PR middle-end/32135
16975 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16976 references above array bounds. This might trigger bounds checks for
16977 pointers to arrays.
16978
c2df357d 169792008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16980
16981 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16982 new_replaceable_dependencies.
16983
36e37a87 169842008-01-12 Doug Kwan <dougkwan@google.com>
16985
16986 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16987 instead of OPT_Wreturn_type in warning due to ignored return type
16988 qualifiers.
16989 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16990 options included in -Wextra.
16991 * c.opt: New option -Wignored_qualifiers.
16992 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16993 -Wignore_qualifiers.
16994 (-Wignored-qualifiers): Document.
16995 (-Wreturn-type): Remove description of functionality now handled
16996 by -Wignored-qualifiers.
16997
134ae613 169982008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16999
17000 PR ada/33788
17001 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
17002 NOP_EXPR if it is between integral types with the same precision.
17003
f9f517cc 170042008-01-12 Jan Hubicka <jh@suse.cz>
17005
17006 PR other/28023
17007 * invoke.texi (max-inline-recursive-depth): Fix default value.
17008
33f263f5 170092008-01-12 Zdenek Dvorak <ook@ucw.cz>
17010
17011 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
17012 correct type.
17013
0d1c6644 170142008-01-11 Bob Wilson <bob.wilson@acm.org>
14eddddd 17015
0d1c6644 17016 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14eddddd 17017
6090393c 170182008-01-11 James E. Wilson <wilson@specifix.com>
17019
17020 PR target/26015
17021 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
17022
a0a028c2 170232008-01-11 Anatoly Sokolov <aesok@post.ru>
17024
14eddddd 17025 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
17026 save/restore frame pointer register and don't use 'call-prologues'
a0a028c2 17027 optimization in function with "OS_task" attribute.
17028
13a68d5b 170292008-01-11 Eric Botcazou <ebotcazou@adacore.com>
17030
17031 PR middle-end/31309
17032 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
17033 when copying to memory.
17034
1ae2ffa7 170352008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
17036
17037 PR rtl-optimization/30905
17038 * cfgcleanup.c: Include dce.h
17039 (crossjumps_occured): New global variable.
17040 (try_crossjump_bb): Exit loop after finding a fallthru edge.
17041 If something changed, set crossjumps_occured to true.
17042 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
17043 Don't add/remove fake edges to exit here...
17044 (cleanup_cfg): ...but do it here, when crossjumping.
17045 Run a fast DCE when successful crossjumps occured in the latest
17046 iteration of try_optimize_cfg.
17047
12661815 170482008-01-11 Richard Guenther <rguenther@suse.de>
17049
17050 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
17051 (struct vn_unary_op_s): Likewise.
17052 (vn_reference_insert): Free old reference on hash collision.
17053
5bed1dca 170542008-01-10 Raksit Ashok <raksit@google.com>
17055
17056 PR rtl-optimization/27971
7650360f 17057 * combine.c (find_split_point): Split PLUS expressions which are
17058 inside a MEM rtx, and whose first operand is complex.
5bed1dca 17059
4a6a8336 170602008-01-10 DJ Delorie <dj@redhat.com>
17061
17062 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17063 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17064 (m32c_hard_regno_ok): Call the underlying function.
17065
5c6e4974 170662008-01-10 Richard Guenther <rguenther@suse.de>
17067
17068 PR middle-end/34683
17069 * tree-cfg.c (tree_merge_blocks): Do not go through the
17070 full-blown folding and stmt updating path if we just deal
17071 with virtual operands.
17072 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17073 test for abnormal SSA_NAMEs.
17074
cd6659e3 170752008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
17076
17077 PR middle-end/34641
17078 * reload.c (push_reload): Add assertions. All constants from
17079 reg_equiv_constant should have been used for replacing the respective
17080 pseudo earlier.
17081 (find_reloads_address): Invoke find_reloads_address_part for
17082 constant taken from the reg_equiv_constant array.
17083
6d6adc82 170842008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
17085
17086 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17087 field (valnum) the first in the struct. Replace bools with
17088 unit bit fields.
17089
b050ae3e 170902008-01-10 Richard Guenther <rguenther@suse.de>
17091
17092 PR tree-optimization/34651
17093 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
17094 types and ordering for masking and converting.
17095
77727654 170962008-01-09 Sebastian Pop <sebastian.pop@amd.com>
17097
17098 PR tree-optimization/34017
17099 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17100 also for PHI_NODE expressions.
17101
cc9c1c51 171022008-01-09 Jan Hubicka <jh@suse.cz>
17103
17104 PR tree-optimization/34708
17105 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17106 based on number of case labels.
17107 (init_inline_once): Remove switch_cost.
17108 * tree-inline.h (eni_weights_d): Remove switch_cost.
17109
e8b8bad7 171102008-01-09 Richard Guenther <rguenther@suse.de>
17111 Andrew Pinski <andrew_pinski@playstation.sony.com>
17112
17113 PR middle-end/30132
17114 * gimplify.c (gimplify_cond_expr): Do not create an addressable
17115 temporary if an rvalue is ok or an lvalue is not required.
17116
8b58aec5 171172008-01-09 Richard Guenther <rguenther@suse.de>
17118
17119 PR middle-end/34458
17120 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17121 adjust return type.
17122
b2ee3594 171232008-01-09 Richard Guenther <rguenther@suse.de>
17124
17125 PR middle-end/34679
17126 * tree.c (host_integerp): Check for sizetype only if the
17127 type is an integer type.
17128
3e6bab0c 171292008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
17130
17131 PR debug/26364
17132 * opts.c (decode_options): Disable inlining of functions called
17133 once if not in unit-at-a-time mode.
17134
f72a5ea4 171352008-01-09 Alexandre Oliva <aoliva@redhat.com>
17136
17137 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17138
454a1307 171392008-01-08 Richard Guenther <rguenther@suse.de>
17140
17141 PR middle-end/31863
17142 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17143 out early if the result will be unused.
17144
1615433d 171452008-01-08 Uros Bizjak <ubizjak@gmail.com>
17146
17147 PR target/34709
17148 Revert:
17149
17150 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17151 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14eddddd 17152 for TARGET_RECIP.
17153
e96df6c2 171542008-01-08 Jan Sjodin <jan.sjodin@amd.com>
14eddddd 17155
1615433d 17156 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17157 for vectorization tuned.
14eddddd 17158
911908dc 171592008-01-08 Richard Guenther <rguenther@suse.de>
17160
17161 PR tree-optimization/34683
17162 * tree-ssa-operands.c (operand_build_cmp): Export.
17163 * tree-ssa-operands.h (operand_build_cmp): Declare.
17164 * tree-vn.c (vuses_compare): Remove.
17165 (sort_vuses): Use operand_build_cmp.
17166 (sort_vuses_heap): Likewise.
17167 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17168 to re-use old VEC if available. Do not sort already sorted VUSEs.
17169 (vdefs_to_vec): Do not sort already sorted VDEFs.
17170
d7c85fac 171712008-01-08 Jakub Jelinek <jakub@redhat.com>
17172
17173 PR middle-end/34694
17174 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17175
c7f0e882 171762008-01-08 Uros Bizjak <ubizjak@gmail.com>
17177
17178 PR target/34702
17179 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17180 limitations of reciprocal sequences on x86 targets.
17181
b5ea3701 171822008-01-08 Richard Guenther <rguenther@suse.de>
17183
17184 PR tree-optimization/34683
17185 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17186
a7df40d7 171872008-01-07 Jakub Jelinek <jakub@redhat.com>
17188
17189 PR target/34622
17190 * config/darwin.c (darwin_mergeable_string_section): Don't use
17191 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17192
5921cbdf 171932008-01-07 Uros Bizjak <ubizjak@gmail.com>
17194
17195 PR target/34682
17196 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17197 negxf2. Macroize expander using X87MODEF mode iterator. Change
17198 predicates of op0 and op1 to register_operand.
c7f0e882 17199 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
17200 expander using X87MODEF mode iterator. Change predicates of
17201 op0 and op1 to register_operand.
5921cbdf 17202 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17203 corresponding patterns and macroize using MODEF macro. Change
17204 predicates of op0 and op1 to register_operand and remove
17205 "m" constraint. Disparage "r" alternative with "!".
17206 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17207 macroize using X87MODEF macro. Change predicates of op0 and op1
17208 to register_operand and remove "m" constraint. Disparage "r"
17209 alternative with "!".
17210 (absneg splitter with memory operands): Remove.
17211 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17212 patterns and macroize using X87MODEF mode iterator.
17213 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17214 Change predicate of op1 to register_operand.
17215 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
c7f0e882 17216 for memory operands.
5921cbdf 17217
1dd6dd88 172182008-01-07 Nathan Froyd <froydnj@codesourcery.com>
17219
17220 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17221
b041d147 172222008-01-07 Richard Guenther <rguenther@suse.de>
17223
17224 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17225 fields.
17226
3ee3dfa4 172272008-01-07 Richard Guenther <rguenther@suse.de>
17228
17229 PR tree-optimization/34683
17230 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17231 VOPs of the needed size to save memory. Use VEC_quick_push
17232 to save compile-time.
17233 (vdefs_to_vec): Likewise.
17234
ca03fed0 172352008-01-07 Sa Liu <saliu@de.ibm.com>
3ee3dfa4 17236
5921cbdf 17237 * config/spu/spu.md (divdf3): Genetate inline code for double
17238 division. The implementation doesn't handle INF or NAN, therefore it
17239 only applies when -ffinite-math-only is given.
ca03fed0 17240
be46c846 172412008-01-06 Paolo Carlini <pcarlini@suse.de>
17242
17243 PR libstdc++/34680
17244 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17245 * doc/cpp.texi ([Common Predefined Macros]): Document.
17246
9edaf48c 172472008-01-06 Uros Bizjak <ubizjak@gmail.com>
17248
17249 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17250 order to use commutative addition instead of subtraction.
17251
aa620173 172522008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17253 Mircea Namolaru <namolaru@il.ibm.com>
17254 Vladimir Yanovsky <yanov@il.ibm.com>
17255 Revital Eres <eres@il.ibm.com>
17256
17257 PR tree-optimization/34263
17258 * tree-outof-ssa.c (process_single_block_loop_latch,
17259 contains_tree_r): New functions.
17260 (analyze_edges_for_bb): Call process_single_block_loop_latch
17261 function to empty single-basic-block latch block if possible.
17262
459609ab 172632008-01-05 Uros Bizjak <ubizjak@gmail.com>
17264
17265 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17266 for TARGET_RECIP.
17267 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17268
35160457 172692008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17270
17271 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17272
5f98e2aa 172732008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17274
17275 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17276
640fba6f 172772008-01-05 Jakub Jelinek <jakub@redhat.com>
17278
17279 PR tree-optimization/34618
17280 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17281 flag from T.
17282
1a086819 172832008-01-05 Uros Bizjak <ubizjak@gmail.com>
17284
17285 PR target/34673
17286 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17287 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
17288 Update copyright year.
17289
17290 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17291 Update copyright year.
17292 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17293 using NR fixup.
17294
f831baaf 172952008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
17296
17297 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17298 edge does not point to current bb before changing need_assert.
17299
cd3f90e2 173002008-01-04 Richard Guenther <rguenther@suse.de>
17301
17302 PR middle-end/34029
17303 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17304 for verifying purposes if they are is_gimple_min_invariant.
17305
5b56c905 173062008-01-04 Aldy Hernandez <aldyh@redhat.com>
17307
17308 PR tree-optimization/34448
17309 PR tree-optimization/34465
17310 * gimplify.c (gimplify_init_constructor): Add new parameter
17311 notify_temp_creation. Use it.
17312 (gimplify_modify_expr_rhs): Take volatiles into account when
17313 optimizing constructors.
17314 Do not optimize constructors if gimplify_init_constructor will dump to
17315 memory.
17316 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17317 * gcc.c-torture/compile/pr34448.c: New.
17318
dfbb5324 173192008-01-04 Jakub Jelinek <jakub@redhat.com>
17320
17321 PR gcov-profile/34609
17322 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17323 return_slot if result is TREE_ADDRESSABLE.
17324
1bbc673e 173252008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
17326
17327 * config/mips/mips.md (sqrt_condition): Tweak comment.
17328 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17329
78c2e180 173302008-01-03 Tom Tromey <tromey@redhat.com>
17331
dfbb5324 17332 PR c/34457
78c2e180 17333 * c-common.c (c_type_hash): Handle VLAs.
17334
186f5fff 173352008-01-03 Jan Hubicka <jh@suse.cz>
17336
17337 PR tree-optimization/31081
17338 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17339 0 when inlining and not inlining to first basic block.
17340 (remap_decl): When var is initialized to 0, don't set default_def.
17341 (expand_call_inline): Set entry_bb.
17342 * tree-inline.h (copy_body_data): Add entry_bb.
17343
361c9aad 173442008-01-03 Jakub Jelinek <jakub@redhat.com>
17345
e3a37aef 17346 PR c++/34619
17347 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17348 before returning.
17349
361c9aad 17350 PR tree-optimization/29484
17351 * tree-inline.c (inline_forbidden_p_2): New function.
17352 (inline_forbidden_p): Disallow inlining if some static var
17353 has an address of a local LABEL_DECL in its initializer.
17354 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17355 vs. inlining.
17356
e1feff4f 173572008-01-03 Sebastian Pop <sebastian.pop@amd.com>
bfe20447 17358
17359 PR tree-optimization/34635
17360 * tree-data-ref.c (add_other_self_distances): Make sure that the
17361 evolution step is constant.
17362
fbe86b1b 173632008-01-03 Jakub Jelinek <jakub@redhat.com>
17364
17365 PR middle-end/34608
f831baaf 17366 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
fbe86b1b 17367
99f35fae 173682008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17369
17370 * tree-sra.c (scalarize_init): Insert the generate_element_init
17371 statements after the generate_element_zero statements.
17372
20e67c9a 173732008-01-02 Richard Guenther <rguenther@suse.de>
17374
17375 PR middle-end/34093
17376 PR middle-end/31976
17377 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17378 for very large number of operands instead of ICEing.
17379
02be515c 173802008-01-02 Arthur Norman <acn1@cam.ac.uk>
17381
f831baaf 17382 PR target/34013
a4890dc9 17383 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
02be515c 17384 while stack probing.
17385
799bdf64 173862008-01-01 Douglas Gregor <doug.gregor@gmail.com>
17387
02be515c 17388 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
f831baaf 17389 in C++0x mode.
799bdf64 17390
65e47be2 173912008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
17392
17393 PR libmudflap/26442
17394 * tree-mudflap.c (mx_register_decls): Guard warning by
17395 !DECL_ARTIFICIAL check.
17396
25a3b4c5 173972008-01-01 Jakub Jelinek <jakub@redhat.com>
17398
17399 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17400 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17401 sse5_perm<mode>): Fix constraints.