]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
* dwarf2asm.c (splay_tree_compare_strings): New function.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d9ab39c7 12007-11-26 Alexandre Oliva <aoliva@redhat.com>
2
3 * dwarf2asm.c (splay_tree_compare_strings): New function.
4 (dw2_force_const_mem): Use it.
5
1abd28c1 62007-11-26 Alexandre Oliva <aoliva@redhat.com>
7
8 * tree.c (type_hash_add): Don't violate strict aliasing rules.
9
7a07cc13 102007-11-26 Alexandre Oliva <aoliva@redhat.com>
11
12 PR c/27898
13 * c-typeck.c (tagged_types_tu_compatible_p): Enable exact
14 matches between anonymous union fields.
15
7f481d3e 162007-11-26 Alexandre Oliva <aoliva@redhat.com>, Jan Hubicka <jh@suse.cz>
17
18 * tree-ssa-live.c (remove_unused_scope_block_p): Drop
19 declarations and blocks only after inlining. Check that
20 non-empty blocks are not dropped.
21 * tree-inline.c (expand_call_inline): Check that functions are
22 not inlined too late.
23
9564e612 242007-11-26 Ben Elliston <bje@au.ibm.com>
25
26 * unwind-dw2-fde.c: Fix comment typo.
e0f40ead 27 * unwind-generic.h: Likewise, fix comment typos.
28
e72f0010 292007-11-25 Richard Sandiford <rsandifo@nildram.co.uk>
30
31 * tree-sra.c (scalarize_use): Adjust the vpos argument to
32 sra_explode_bitfield_assignment in cases where the type is
33 wider than the bitfield.
34
93110716 352007-11-25 Richard Guenther <rguenther@suse.de>
36
37 * tree.h (struct tree_block): Move locus member next to
38 flags.
39 * c-decl.c (SCOPE_LIST_APPEND): Use BLOCK_CHAIN.
40 (SCOPE_LIST_CONCAT): Likewise.
41 (pop_scope): Likewise.
42 * function.c (instantiate_decls_1): Likewise.
43 (setjmp_vars_warning): Likewise.
44 * emit-rtl.c (set_used_decls): Likewise.
45 * tree-inline.c (add_lexical_block): Likewise.
46
a8d1dae0 472007-11-24 Hans-Peter Nilsson <hp@axis.com>
48
49 * rtlanal.c (label_is_jump_target_p): Return true for a matching
50 REG_LABEL_TARGET.
51 * reorg.c (fill_slots_from_thread): Correct last change to use
52 NULL_RTX, not NULL. Outside of REG_NOTES loop, increase and
53 decrease LABEL_NUSES for JUMP_LABEL (trial), not XEXP (note, 0).
54 * jump.c (mark_jump_label_1): Add comment for last change
55 regarding JUMP_LABEL setting.
56 * gcse.c (add_label_notes): Remove conditional that the label is
57 mentioned in insn before adding regnote.
58 * sched-rgn.c (is_cfg_nonregular): Don't return 1 for a
59 single_set insn only feeding a label to a jump through a
60 register that dies there.
61
5d19e882 622007-11-23 Dirk Mueller <dmueller@suse.de>
63 Richard Guenther <rguenther@suse.de>
64
65 PR middle-end/34197
66 * tree-vrp.c (check_array_ref): Move check for valid location..
67 (check_array_bounds) here. Use EXPR_HAS_LOCATION().
68
d938b513 692007-11-23 Hans-Peter Nilsson <hp@axis.com>
70
71 * reload.c (find_reloads_address_1) <autoincdec cases>:
72 Call REG_OK_FOR_CONTEXT with the autoincdec code, not
73 outer_code.
74
48694fc0 752007-11-23 Richard Guenther <rguenther@suse.de>
76 Michael Matz <matz@suse.de>
77
78 PR tree-optimization/34176
79 * alloc-pool.h (empty_alloc_pool): Declare.
80 * alloc-pool.c (empty_alloc_pool): New function.
81 * tree-ssa-sccvn.c (vn_reference_lookup): Also lookup from the
82 valid table if a lookup from the optimistic table failed.
83 (vn_unary_op_lookup): Likewise.
84 (vn_binary_op_lookup): Likewise.
85 (vn_phi_lookup): Likewise.
86 (process_scc): Clear optimistic tables before every iteration.
87
d383205a 882007-11-23 Richard Guenther <rguenther@suse.de>
89
90 * tree-ssa-copy.c (may_propagate_copy): Remove redundant
91 checks.
92 (merge_alias_info): Do verification only if checking is
93 enabled. Merge flow-sensitive alias information in simple
94 cases.
95 * tree-ssa-operands.c (get_addr_dereference_operands): Also
96 complain about missing NMTs.
97
69609004 982007-11-23 Jakub Jelinek <jakub@redhat.com>
99
100 PR c++/34198
101 * c-common.c (conversion_warning): For INTEGER_TYPE to
102 INTEGER_TYPE conversions call get_narrower on expr to avoid
103 spurious warnings from binop shortening or when the implicit
104 conversion can't change the value.
105
e6c172ed 1062007-11-22 Joseph Myers <joseph@codesourcery.com>
107
108 PR c/14050
109 * c-decl.c (set_array_declarator_inner): Don't give error for
110 static or type qualifiers in abstract declarator. Remove
111 abstract_p parameter.
112 * c-tree.h (set_array_declarator_inner): Update prototype.
113 * c-parser.c (c_parser_direct_declarator_inner): Update call to
114 set_array_declarator_inner.
115 * doc/standards.texi: Update for C99 TC3.
116
9fe8cb4b 1172007-11-22 Hans-Peter Nilsson <hp@bitrange.com>
118
119 * config/mmix/mmix.c (mmix_encode_section_info): Remove duplicate
f6991537 120 line in my edit of the last change.
9fe8cb4b 121
7f5fda29 1222007-11-22 Jakub Jelinek <jakub@redhat.com>
123
124 PR target/33947
125 * config/arm/arm.c (arm_init_tls_builtins): Set TREE_NOTHROW
126 and TREE_READONLY on the fn decl rather than passing a chain
127 of attributes.
128
2affdae9 1292007-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
130
131 * config/sh/sh.md (divsi_inv_m3): Handle zero dividend
132 specially.
133
8ba8ec53 1342007-11-22 Uros Bizjak <ubizjak@gmail.com>
135
136 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Change checking
137 of ix86_arch and ix86_tune into a switch statement.
138 (enum processor_type): Default PROCESSOR_I386 to 0.
139 * config/i386/i386.c (ix86_decompose_address): Use TARGET_K6 instead
140 of "ix86_tune == PROCESSOR_K6".
141 (ia32_multipass_dfa_lookahead): Change checking of ix86_tune into
142 a switch statement.
143
b948ae2f 1442007-11-22 Tom Tromey <tromey@redhat.com>
145
146 * config/mmix/mmix.c (mmix_encode_section_info): Use alloca to
147 avoid writing into string allocated by ggc_alloc_string.
148
0c527910 1492007-11-21 Kaz Kojima <kkojima@gcc.gnu.org>
150
151 PR target/34155
152 * config/sh/sh.md (binary_sf_op): Remove.
153 (binary_sf_op0, binary_sf_op1): New define_insn_and_split.
154 * config/sh/sh.c (sh_expand_binop_v2sf): Use gen_binary_sf_op0
155 and gen_binary_sf_op1.
156
400bd43f 1572007-11-21 Hans-Peter Nilsson <hp@axis.com>
158
159 * regclass.c (init_reg_autoinc): Fix typo preventing test of
160 secondary output reload when setting forbidden_inc_dec_class.
161
b0ca0c22 1622007-11-21 Richard Guenther <rguenther@suse.de>
163
164 PR tree-optimization/34148
165 * tree-ssa-structalias.c (create_variable_info_for): Do not use
166 field-sensitive PTA for single-element structures.
167 * tree-ssa-alias.c (create_overlap_variables_for): Do not create
168 SFTs for single-element structures.
169
be813cbd 1702007-11-20 Richard Guenther <rguenther@suse.de>
171
172 PR middle-end/34154
173 * gimplify.c (gimplify_switch_expr): Use tree_int_cst_lt instead
174 of the signed INT_CST_LT.
175 * stmt.c (expand_case): Likewise.
176 (estimate_case_costs): Likewise.
177
70a855c7 1782007-11-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
179
180 * read-rtl.c (fatal_expected_char): Print EOF as text rather that
181 its binary representation.
182
c55bfcb8 1832007-11-20 Richard Guenther <rguenther@suse.de>
184
185 * tree-ssa-operands.c (add_virtual_operand): Consistently prune
186 accesses.
187
b54357af 1882007-11-20 Thiemo Seufer <ths@mips.com>
189
190 * config/mips/mips.c (mips_file_start): Add support for
191 flagging 32-bit code with -mfp64 floating-point.
192
acad81e5 1932007-11-20 Jakub Jelinek <jakub@redhat.com>
194
195 PR c/34146
196 * c-gimplify.c (optimize_compound_literals_in_ctor): New function.
197 (c_gimplify_expr): Use it.
198
ed35f26c 1992007-11-20 Ben Elliston <bje@au.ibm.com>
200
201 * config/spu/spu_mfcio.h: Fix typo.
202
877e82f6 2032007-11-20 Ben Elliston <bje@au.ibm.com>
204
205 * unwind.inc: Comment that unwind-sjlj.c includes this file.
206
1ed5a748 2072007-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
208 Ben Elliston <bje@au.ibm.com>
209
210 * config/spu/mfc_tag_release.c: New file.
211 * config/spu/mfc_multi_tag_release.c: Likewise.
212 * config/spu/mfc_multi_tag_reserve.c: Likewise.
213 * config/spu/mfc_tag_release.c: Likewise.
214 * config/spu/mfc_tag_reserve.c: Likewise.
215 * config/spu/mfc_tag_table.c: Likewise.
216 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Compile them.
217 (TARGET_LIBGCC2_CFLAGS): Define __IN_LIBGCC2.
218 * config/spu/spu_mfcio.h: Avoid <stdint.h>.
219 (uint64_t): Typedef if __IN_LIBGCC2 is defined.
220 (MFC_TAG_INVALID, MFC_TAG_VALID): New macros.
221 (mfc_tag_reserve, mfc_tag_release, mfc_multi_tag_reserve,
222 mfc_multi_tag_release): Likewise.
223 (__mfc_tag_reserve, __mfc_tag_release, __mfc_multi_tag_reserve,
224 __mfc_multi_tag_release): Declare.
225
881eb642 2262007-11-19 Jason Merrill <jason@redhat.com>
227
ada7e2f8 228 PR debug/28834, debug/29436, c/32326
881eb642 229 * tree.c (build_type_attribute_qual_variant): Refuse to make
230 a distinct copy of a struct/enum type. Use build_distinct_type_copy.
231 * doc/extend.texi (Type Attributes): Don't encourage people to add
232 attributes to struct/enum types in a typedef. Fix
233 transparent_union example.
234
235 * tree-inline.c (remap_type_1): Remove code that's redundant with
236 remap_type.
237 (build_duplicate_type): Set id.copy_decl.
238 * c-common.c (handle_transparent_union_attribute): Simplify logic.
239
e9ec2ec3 2402007-11-19 Peter Bergner <bergner@vnet.ibm.com>
241
242 * config/rs6000/rs6000.c (invalid_e500_subreg,
243 rs6000_legitimate_offset_address_p, legitimate_lo_sum_address_p,
244 rs6000_legitimize_address, rs6000_legitimize_reload_address,
245 rs6000_legitimate_address, function_arg_advance,
246 spe_build_register_parallel, rs6000_spe_function_arg,
247 rs6000_split_multireg_move, spe_func_has_64bit_regs_p,
248 emit_frame_save, gen_frame_mem_offset, rs6000_function_value,
249 rs6000_libcall_value, rs6000_dwarf_register_span): Handle DDmode and
250 TDmode similarly to DFmode and TFmode.
251 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
252 DATA_ALIGNMENT, CLASS_MAX_NREGS, CANNOT_CHANGE_MODE_CLASS): Likewise.
253
6dc02955 2542007-11-19 Eric Botcazou <ebotcazou@adacore.com>
255
256 * stor-layout.c (lang_adjust_rli): Delete.
257 (set_lang_adjust_rli): Likewise.
258 (layout_type): Do not call lang_adjust_rli hook.
259 * tree.h (set_lang_adjust_rli): Delete.
260
29b085dc 2612007-11-19 Bernd Schmidt <bernd.schmidt@analog.com>
262
263 * config/bfin/bfin.c (must_save_p): New function, mostly broken out of
264 n_dregs_to_save and n_pregs_to_save.
265 (n_pregs_to_save, n_dregs_to_save): Use it. New argument CONSECUTIVE;
266 all callers changed.
267 (expand_prologue_reg_save, expand_epilogue_reg_restore): Enhance to be
268 able to save single D/P registers that aren't saved by the push/pop
269 multiple insns.
270
05a936a0 2712007-11-19 Richard Guenther <rguenther@suse.de>
272
273 PR tree-optimization/34099
274 * tree-ssa-ccp.c (likely_value): Exclude all but PLUS_EXPR,
275 MINUS_EXPR and POINTER_PLUS_EXPR from handling as UNDEFINED
276 if only one operand is undefined.
277
4a2a1c11 2782007-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
279
280 PR tree-optimization/34036
281 * opts.c (set_fast_math_flags): Do not set flags in common
282 with set_unsafe_math_optimizations_flags, invoke it directly.
283 (set_unsafe_math_optimizations_flags): Unset flag_trapping_math
284 and flag_signed_zeros.
285 * toplev.c (process_options): Force flag_associative_math to 0 and
286 warn, if it is set and either flag_trapping_math or flag_signed_zeros
287 is set too.
288 * doc/invoke.texi (Optimize Options): Document the new behavior
289 of -funsafe-math-optimizations, that -fassociative-math requires
290 both -fno-signed-zeros and -fno-trapping-math and make it clear
e778c973 291 that -fno-trapping-math requires -fno-signaling-nans. Refactor
292 documentation of -ffast-math.
4a2a1c11 293
be5cecfd 2942007-11-18 Jakub Jelinek <jakub@redhat.com>
295
e862ffe0 296 PR rtl-optimization/34132
297 * gcse.c (try_replace_reg): Avoid rtx sharing between REG_EQUAL note
298 and insn.
299
be5cecfd 300 PR middle-end/33335
301 * optabs.h (optab_table): Change type to struct optab from optab.
302 (convert_optab_table): Similarly.
303 Adjust all _optab macros to expand to addresses of optab_table
304 resp. convert_optab_table elements rather than the values of the
305 elements.
306 * optabs.c (optab_table): Change typype to struct optab from optab.
307 If compiled by recent GCC, initialize all the insn_code fields in
308 the array using designated range initializers.
309 (convert_optab_table): Similarly.
310 (convert_optab_libfunc, optab_libfunc, set_optab_libfunc,
311 set_conv_libfunc): Into libfunc_entry's optab field store index within
312 optab_table resp. convert_optab_table array instead of difference
313 between two separately malloced addresses.
314 (new_optab): Add op argument, don't return anything. Initialize
315 just the insn_code field in handlers array and only when needed.
316 (init_optab, init_optabv): Add op argument, don't return anything.
317 Adjust new_optab caller.
318 (new_convert_optab): Removed.
319 (init_convert_optab): Add op argument, don't return anything, don't
320 call new_convert_optab. If needed, initialize insn_code field in
321 handlers array.
322 (init_optabs): Adjust init_optab, init_optabv and init_convert_optab
323 callers.
324 (debug_optab_libfuncs): Adjust uses of optab_table and
325 convert_optab_table arrays.
326
cbb0f5f6 3272007-11-18 Richard Guenther <rguenther@suse.de>
328
329 PR tree-optimization/34127
330 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
331 Make code match up the comments, require compatibility of the
332 pointed-to types.
333
d8100984 3342007-11-17 Richard Guenther <rguenther@suse.de>
335
336 PR middle-end/34130
337 * fold-const.c (extract_muldiv_1): Do not move negative
338 constants inside ABS_EXPR.
339
8698b7cf 3402007-11-16 Ian Lance Taylor <iant@google.com>
341
342 * collect2.c (dump_file): If a demangled symbol is followed by a
343 space, make sure we output at least one space.
344
66fa37a1 3452007-11-16 Richard Guenther <rguenther@suse.de>
346
347 PR middle-end/34030
348 * fold-const.c (fold_binary): Use correct types for folding
349 1 << X & Y to Y >> X & 1.
350
db561be7 3512007-11-16 Richard Guenther <rguenther@suse.de>
352
353 PR tree-optimization/33870
354 * tree.h (struct tree_memory_tag): Add base_for_components flag.
355 (struct tree_struct_field_tag): Remove nesting_level field.
356 (SFT_NESTING_LEVEL): Remove.
357 (SFT_BASE_FOR_COMPONENTS_P): Add.
358 * tree-flow.h (struct fieldoff): Remove nesting_level field. Add
359 base_for_components flag.
360 (push_fields_onto_fieldstack): Remove nesting_level parameter.
361 * tree-ssa-alias.c (create_sft): Likewise. Add base_for_components
362 parameter.
363 (create_overlap_variables_for): Deal with it.
364 * tree-dfa.c (dump_subvars_for): Likewise.
365 (dump_variable): Likewise.
366 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
367 Set base_for_components for first elements of sub-structures.
368 (create_variable_info_for): Handle base_for_components.
369 (set_uids_in_ptset): Always set SFT_UNPARTITIONABLE_P for
370 pointed-to SFTs if SFT_BASE_FOR_COMPONENTS_P is set.
371 * tree-ssa-operands.c (ref_nesting_level): Remove.
372 (add_vars_for_offset): Remove full_ref parameter, always add
373 the offset of the pointed-to SFT.
374 (add_virtual_operand): Adjust for changed signature of
375 add_vars_for_offset.
376
36616806 3772007-11-16 Sa Liu <saliu@de.ibm.com>
378
379 * config/spu/spu.md (floatunssidf2, floatunsdidf2): Inlined
380 floatunssidf2 and floatunsdidf2.
381
a916d907 3822007-11-16 Richard Guenther <rguenther@suse.de>
383
384 PR tree-optimization/34113
385 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
386 Use correct conversion direction for checking type compatibility.
387
d61b9af3 3882007-11-16 Richard Guenther <rguenther@suse.de>
389
390 PR tree-optimization/34099
391 * tree-ssa-ccp.c (likely_value): Use a whitelist for operators
392 that produce UNDEFINED result if at least one of its operands
393 is UNDEFINED. By default the result is only UNDEFINED if all
394 operands are UNDEFINED.
395
9db54d6e 3962007-11-16 Jakub Jelinek <jakub@redhat.com>
397
398 PR driver/30460
399 * gcc.c (init_spec): Don't initialize asm_debug here...
400 (main): ... but here.
401
c8a152f6 4022007-11-07 Tom Tromey <tromey@redhat.com>
403
404 * tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to
405 'func'.
406 * tree-parloops.c (create_loop_fn): Use set_cfun.
407 * gengtype.c (open_base_files): Emit #undef cfun.
408 * ipa-struct-reorg.c (do_reorg_1): Use set_cfun.
409 * function.h (cfun): New define.
410 * function.c: Undefine cfun.
411
528f1c63 4122007-11-07 Eric B. Weddington <eweddington@cso.atmel.com>
413
414 * config/avr/avr.c (avr_mcu_types): Add attiny88.
415 * config/avr/avr.h (LINK_SPEC): Likewise.
416 (CRT_BINUTILS_SPECS): Likewsie.
417 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
418
bdd0e199 4192007-11-15 Jakub Jelinek <jakub@redhat.com>
420
421 PR middle-end/23848
422 * tree-ssa-ccp.c (optimize_stack_restore): New function.
423 (execute_fold_all_builtins): Call optimize_stack_restore for
424 BUILT_IN_STACK_RESTORE.
425
f4d72632 4262007-11-15 Paolo Bonzini <bonzini@gnu.org>
427
428 * fwprop.c (try_fwprop_subst): Skip profitability check for forward
429 propagation into an address; that's done in should_replace_address.
430
0cfc65d4 4312007-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
432
433 * config/spu/spu-protos.h (legitimate_const): Remove prototype.
434 * config/spu/spu.c (legitimate_const): Remove.
435 (classify_immediate): Inline call to legitimate_const.
f4d72632 436 (spu_legitimate_address): Likewise. Allow SYMBOL_REF + CONST_INT
0cfc65d4 437 for any constant, not just -512 .. 511.
438
07027691 4392007-11-15 Sa Liu <saliu@de.ibm.com>
440
441 * config/spu/spu.c (spu_emit_branch_or_set): Remove PROCESSOR_CELL
442 condition from HONOR_NANS test.
443 * config/spu/spu.md (ceq_df): Always generate comparison code
444 inline, including checks for NaNs and infinities.
445 (cgt_df): Likewise.
446 (cgt_v2df): Likewise.
447 (cmpdf): Make this expander unconditional.
448
babe10fa 4492007-11-15 Richard Guenther <rguenther@suse.de>
450
451 * tree-ssa-alias.c (create_overlap_variables_for): Make sure
452 to only create SFTs if we also create variable infos for PTA.
453 * tree-ssa-structalias.c (set_uids_in_ptset): Add all overlapping
454 SFTs.
455
e66c4ec1 4562007-11-15 Richard Guenther <rguenther@suse.de>
457
458 * tree-ssa-structalias.c (set_uids_in_ptset): Use the pointed-to
459 type for TBAA pruning.
460 (find_what_p_points_to): Call set_uids_in_ptset with the original
461 pointer, not the decl of the solution we collapsed to.
462
4f429f22 4632007-11-14 David Daney <ddaney@avtrex.com>
464
465 * config/mips/linux-unwind.h (mips_fallback_frame_state): Use CFA
466 to find sigcontext.
467
815df20f 4682007-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
469
470 PR target/33923
471 * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Forbid mode changes
472 for registers in BR_REGS class.
473
94b3ed0b 4742007-11-14 Jakub Jelinek <jakub@redhat.com>
475
476 PR middle-end/34088
477 * tree-ssa.c (delete_tree_ssa): Don't call fini_ssa_operands if
478 init_ssa_operands has not been called for cfun.
479
4701372e 4802007-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
481
482 PR tree-optimization/34046
483 * cfg.c (update_bb_profile_for_threading): Avoid the division for the
484 scaling if the old probability is greater than the new base.
485
40ffaada 4862007-11-14 Sebastian Pop <sebastian.pop@amd.com>
487
488 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Remove
489 unused edges after loop duplication.
490
2dd515a3 4912007-11-14 Uros Bizjak <ubizjak@gmail.com>
492
493 * config/i386/i386.h (TARGET_CPU_DEFAULT_*): Substitute with ...
494 (enum target_cpu_default): ... this enum.
495 (TARGET_CPU_DEFAULT_NAMES): Remove macro. Move initializer to ...
496 * config/i386/i386.c (override_options): ... here.
497 * config/i386/i386-interix.h (TARGET_CPU_DEFAULT): Use
498 TARGET_CPU_DEFAULT_i486.
499
028b5ee2 5002007-11-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
501
502 * global.c (rest_of_handle_global_alloc): Fix comment typos.
503 * config/sh/sh.c (sh_rtx_costs): Likewise.
504 * ChangeLog: Likewise.
505
ecc3a7ab 5062007-11-13 Sebastian Pop <sebastian.pop@amd.com>
507
508 * tree-chrec.h (build_polynomial_chrec): RHS of a chrec
509 should not be of pointer type.
510
a1ed026c 5112007-11-13 Michael Meissner <michael.meissner@amd.com>
512
513 * config/i386/i386.c (ix86_sse5_valid_op_p): Put type on separate
514 line.
515
8e98a0f8 5162007-11-13 Sterling Augustine <sterling@tensilica.com>
517 Bob Wilson <bob.wilson@acm.org>
518
519 * config/xtensa/unwind-dw2-xtensa.c: New.
520 * config/xtensa/unwind-dw2-xtensa.h: New.
521 * config/xtensa/xtensa.h (MUST_USE_SJLJ_EXCEPTIONS): Remove.
522 (DWARF2_UNWIND_INFO): Remove.
523 (DWARF_FRAME_REGISTERS): Define.
524 (EH_RETURN_DATA_REGNO): Define.
525 * config/xtensa/xtensa.md (UNSPECV_EH_RETURN): Define.
526 (eh_return): New.
527 * config/xtensa/t-xtensa (LIB2ADDEH): Define.
528
72aad60a 5292007-11-13 Jakub Jelinek <jakub@redhat.com>
18346ecd 530
df1b18e1 531 * doc/invoke.texi: Fix description of -fsched-stalled-insns=0,
532 -fsched-stalled-insns.
533
72aad60a 534 PR tree-optimization/34063
535 * tree-chrec.c (chrec_evaluate): Put CHREC_LEFT based argument
536 as first chrec_fold_plus operand rather than second.
537
5382007-11-13 Diego Novillo <dnovillo@google.com>
539
540 PR tree-optimization/33870
18346ecd 541 * tree.h (strcut tree_memory_tag): add field unpartitionable.
542 remove field in_nested_struct.
543 (struct tree_struct_field_tag): add field nesting_level.
544 (sft_in_nested_struct): remove.
545 (sft_nesting_level): define.
546 (sft_unpartitionable_p): define.
547 * tree-ssa-alias.c (mem_sym_score): if mp->var is not
548 partitionable, return long_max.
549 (compute_memory_partitions): do not partition sfts marked
550 unpartitionable.
551 (create_sft): add argument nesting_level. set
552 sft_nesting_level with it. update all users.
553 (create_overlap_variables_for): show nesting level.
554 * tree-dfa.c (dump_subvars_for): likewise.
555 (dump_variable): likewise.
556 show whether the sft is partitionable or not.
557 * tree-flow.h (struct fieldoff): remove field
558 in_nested_struct.
559 add field nesting_level.
560 * tree-ssa-structalias.c (struct variable_info): remove
561 field in_nested_struct.
562 (push_fields_onto_fieldstack): add argument
563 nesting_level. update all users.
564 update documentation.
565 update pair->nesting_level with nesting_level.
566 make recursive calls with nesting_level + 1.
567 (set_uids_in_ptset): if an sft is added to the points-to
568 set, mark it as unpartitionable.
569 * tree-ssa-operands.c (ref_nesting_level): new.
570 (add_vars_for_offset): call it.
571 add argument full_ref. update
572 callers.
573 if var is inside a nested structure and the nesting level
574 of full_ref is lower than the nesting level of var,
575 adjust offset by the offset of var.
576
b102f13a 5772007-11-13 Victor Kaplansky <victork@il.ibm.com>
578
579 PR tree-optimization/32582
580 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-tree-vectorize
581
7e6a4e8b 5822007-11-12 Danny Smith <dannysmith@users.sourceforge.net>
583
584 * doc/extend.texi (dllimport): Document that pointers to dllimport'd
585 functions can be used as constant.
586
283a6b26 5872007-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
588
589 PR rtl-optimization/34035
590 * cse.c (cse_cfg_altered): New global variable.
591 (cse_jumps_altered): Make boolean.
592 (recorded_label_ref): Likewise.
593 (cse_insn): Adjust for above changes.
594 (cse_extended_basic_block): Likewise. Set cse_cfg_altered
595 if dead edges have been purged.
596 (cse_main): Change return value specification and adjust code.
597 (rest_of_handle_cse): Adjust for above change.
598 (rest_of_handle_cse2): Likewise.
599 * gcse.c (rest_of_handle_gcse): Likewise.
600
24057728 6012007-11-12 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
602 Michael Meissner <michael.meissner@amd.com>
603
604 * config/i386/i386.md (sse5_setcc<mode>): Use <ssemodefsuffix> to
605 get the appropriate suffix for the coms* instruction.
606 (sse5_pcmov_<mode>): Restrict operands of pcmov
607 for scalar case to be only xmm registers and not memory.
608
609 * config/i386/sse.md (sse5_pcmov_<mode>): Correct the operand
610 constraints to follow the mnemonics for the pcmov instruction
611
2d99588a 6122007-11-12 Richard Sandiford <rsandifo@nildram.co.uk>
613
614 PR target/34042
615 * config/mips/mips.c (mips_return_fpr_single): New function.
616 (mips_function_value): Use it when returning single-field
617 aggregates in FPRs.
618 (mips_expand_call): Handle the PARALLELs created by
619 mips_return_fpr_single.
620
3778af05 6212007-11-12 Richard Guenther <rguenther@suse.de>
622
623 PR middle-end/34070
624 * fold-const.c (fold_binary): If testing for non-negative
625 operands with tree_expr_nonnegative_warnv_p make sure to
626 use op0 which has all (sign) conversions retained.
627
d997554f 6282007-11-12 Richard Guenther <rguenther@suse.de>
629
630 PR middle-end/34027
631 * fold-const.c (fold_binary): Fold n - (n / m) * m to n % m.
632 (fold_binary): Fold unsinged FLOOR_DIV_EXPR to TRUNC_DIV_EXPR.
633
d2ad9321 6342007-11-12 Ira Rosen <irar@il.ibm.com>
635
636 PR tree-optimization/33953
8d2d2fcd 637 * tree-vect-transform.c (vectorizable_operation): In case of SLP,
638 allocate vec_oprnds1 according to the number of created vector
639 statements. In case of shift with scalar argument, store scalar operand
640 for every vector statement to be created for the SLP node. Fix a
d2ad9321 641 comment.
642
73119c25 6432007-11-10 Steven Bosscher <stevenb.gcc@gmail.com>
644
645 * gcse.c (CUID_INSN): Remove.
646 (cuid_insn): Ditto.
647 (alloc_gcse_mem): Don't allocate cuid_insn.
648 (free_gcse_mem): Don't free cuid_insn.
649
69a83716 6502007-11-10 Jakub Jelinek <jakub@redhat.com>
651
dcaa067e 652 PR fortran/34020
653 * gimplify.c (goa_lhs_expr_p): Inside INDIRECT_REF handle unshared
654 nops.
655
3d053ea5 656 PR middle-end/34018
657 * tree-inline.h (copy_body_data): Add regimplify field.
658 * tree-inline.c (copy_body_r): Set id->regimplify to true
659 if an TREE_INVARIANT ADDR_EXPR is no longer invariant after
660 substitutions.
661 (copy_bb): Clear id->regimplify before walk_tree, if it is
662 set afterwards, regimplify the whole statement.
663
69a83716 664 PR tree-optimization/33680
665 * tree-data-ref.c (split_constant_offset) <case ADDR_EXPR>: Punt
666 if the added cast involves variable length types.
667
ca93e19d 6682007-11-09 Alexander Monakov <amonakov@ispras.ru>
669 Maxim Kuvyrkov <maxim@codesourcery.com>
670
69a83716 671 * sched-deps.c (sched_analyze_insn): Use MOVE_BARRIER
ca93e19d 672 instead of TRUE_BARRIER for jumps. Add register dependencies
673 even when reg_pending_barrier is set.
674
f1b700e6 6752007-11-09 Alexander Monakov <amonakov@ispras.ru>
676
69a83716 677 * haifa-sched.c (haifa_classify_insn): Rename to ...
f1b700e6 678 (haifa_classify_rtx): ... this. Improve handling of COND_EXECs,
679 handle PARALLELs by recursing. Use it ...
680 (haifa_classify_insn): ... here. Reimplement.
681
6bd6739a 6822007-11-09 Richard Guenther <rguenther@suse.de>
683
684 * bitmap.h (bitmap_single_bit_set_p): Declare.
685 * bitmap.c (bitmap_single_bit_set_p): New function.
686 * tree-ssa-alias.c (add_may_alias_for_new_tag): Use it.
687 (maybe_create_global_var): Use bitmap_empty_p.
688
91bd874e 6892007-11-09 Paolo Bonzini <bonzini@gnu.org>
690 Jakub Jelinek <jakub@redhat.com>
691
692 PR rtl-optimization/34012
693 * fwprop.c (try_fwprop_subst): Do not replace if the new
694 SET_SRC has a higher cost than the old one.
695
0565d6c8 6962007-11-09 Eric Botcazou <ebotcazou@libertysurf.fr>
697
698 PR rtl-optimization/33732
699 * reload.c (push_reload): Check that the REG_DEAD note was referring
700 to a hardreg or to a pseudo that has been assigned exactly one hardreg
701 before considering it in order to select the reload register.
702 (combine_reloads): Likewise.
703 (find_dummy_reload): Likewise.
704
55ddb2f1 7052007-11-09 Richard Guenther <rguenther@suse.de>
706
707 * tree-flow.h (struct ptr_info_def): Make escape_mask a
708 ENUM_BITFIELD.
709 (struct ptr_info_def): Likewise.
710 (enum escape_type): Also use bit zero.
711
30fde358 7122007-11-09 Richard Guenther <rguenther@suse.de>
713
714 PR tree-optimization/33604
715 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
716 Disregard changes in CV qualifiers of pointed to types for
717 forward propagating ADDR_EXPRs.
718 * tree-ssa-ccp.c (fold_stmt_r): Preserve volatileness of the original
719 expression.
720
5133fd21 7212007-11-09 Richard Sandiford <rsandifo@nildram.co.uk>
722
723 * dse.c (find_shift_sequence): Always choose an integer mode for
724 new_mode.
725 (replace_read): Require both the read and store mode to be
726 integer ones. Remove a then-redundant FLOAT_P check.
727
c9fc3746 7282007-11-08 Richard Guenther <rguenther@suse.de>
729
730 * tree-dfa.c (remove_referenced_var): If removing a
731 variable which has subvars, also remove those from
732 the referenced vars. Do not create a variable annotation.
733
a35ed56c 7342007-11-08 Bob Wilson <bob.wilson@acm.org>
735
736 * config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first
737 argument for gen_entry calls.
738 * config/xtensa/xtensa.md: Add new "entry" value to "type" attribute.
739 (entry): Use the new attribute value. Remove unused first operand.
740
be9eba16 7412007-11-08 Tom Tromey <tromey@redhat.com>
742
743 * c-parser.c (c_parser_translation_unit): Use location in error.
744 (c_parser_external_declaration): Likewise.
745 (c_parser_declaration_or_fndef): Likewise.
746 (c_parser_enum_specifier): Likewise.
747 (c_parser_struct_or_union_specifier): Likewise.
748 (c_parser_struct_declaration): Likewise.
749 (c_parser_typeof_specifier): Likewise.
750 (c_parser_parms_list_declarator): Likewise.
751 (c_parser_asm_string_literal): Likewise.
752 (c_parser_braced_init): Likewise.
753 (c_parser_initelt): Likewise.
754 (c_parser_compound_statement_nostart): Likewise.
755 (c_parser_statement_after_labels): Likewise.
756 (c_parser_do_statement): Likewise.
757 (c_parser_asm_statement): Likewise.
758 (c_parser_conditional_expression): Likewise.
759 (c_parser_unary_expression): Likewise.
760 (c_parser_sizeof_expression): Likewise.
761 (c_parser_postfix_expression): Likewise.
762 (c_parser_postfix_expression_after_paren_type): Likewise.
763 (c_parser_objc_class_instance_variables): Likewise.
764 (c_parser_objc_method_definition): Likewise.
765 (c_parser_objc_methodprotolist): Likewise.
766 (c_parser_pragma): Likewise.
767 (c_parser_omp_clause_num_threads): Likewise.
768 (c_parser_omp_clause_schedule): Likewise.
769 (c_parser_omp_all_clauses): Likewise.
770 (c_parser_omp_sections_scope): Likewise.
771 (c_parser_label): Use location of label, not colon.
772
3f56e8dc 7732007-11-08 Danny Smith <dannysmith@users.sourceforge.net>
774
775 PR target/33774
776 * config/i386/cygming.h (BIGGEST_FIELD_ALIGNMENT): Define only if
777 IN_TARGET_LIBS.
778
54157bf1 7792007-11-07 Kenneth Zadeck <zadeck@naturalbridge.com>
780
781 PR middle-end/33826
8d2d2fcd 782 * ipa-pure-const.c (static_execute): Added code to keep recursive
54157bf1 783 functions from being marked as pure or const.
8d2d2fcd 784 * ipa-utils.c (searchc): Fixed comment.
54157bf1 785
3df4c876 7862007-11-08 Tom Tromey <tromey@redhat.com>
787
788 * common.opt (fshow-column): Default to 0.
789 * configure: Rebuilt.
790 * configure.ac (--enable-mapped-location): Default to 'yes'.
791
a4b0007b 7922007-11-07 Kenneth Zadeck <zadeck@naturalbridge.com>
793
8d2d2fcd 794 * common.opt: Add pointer to doc/options.texi.
795 * doc/invoke.texi (-fdse, -fdce, -fauto-inc-dec, -fipa-pure-const,
796 -fipa-reference): Add or correct doc. Sorted options list for -Os
797 -O, -O2.
798
69a83716 7992007-11-07 Bernhard Fischer <aldot@gcc.gnu.org>
fcc91c04 800
801 PR target/16350
802 * config.gcc: For arm*b-* define TARGET_BIG_ENDIAN_DEFAULT.
803 * config/arm/linux-elf.h (TARGET_ENDIAN_DEFAULT): Define based on
804 TARGET_BIG_ENDIAN_DEFAULT. Use for MULTILIB_DEFAULTS.
805 (TARGET_DEFAULT): Set according to TARGET_ENDIAN_DEFAULT.
806 (LINUX_TARGET_LINK_SPEC): Pass -mlittle-endian on to the assembler.
807 * config/arm/linux-eabi.h (TARGET_LINKER_EMULATION): Set according
808 to TARGET_BIG_ENDIAN_DEFAULT.
809 (SUBTARGET_EXTRA_LINK_SPEC): Likewise.
69a83716 810 * config/arm/bpabi.h (TARGET_DEFAULT_MASK): Set according
fcc91c04 811 to TARGET_BIG_ENDIAN_DEFAULT.
812
5d62553f 8132007-11-07 Diego Novillo <dnovillo@google.com>
814
815 * tree.h (struct tree_struct_field_tag): Move field
816 in_nested_struct ...
817 (struct tree_memory_tag): ... here.
818
f5ef9962 8192007-11-07 Diego Novillo <dnovillo@google.com>
820
821 PR 33870
822 * tree.h (struct tree_struct_field_tag): Add field in_nested_struct.
823 (SFT_IN_NESTED_STRUCT): Define.
824 * tree-dfa.c (dump_subvars_for): Show offset of each
825 sub-var.
826 * tree-flow.h (struct fieldoff): Add field in_nested_struct.
827 * tree-ssa-structalias.c (struct variable_info): Likewise.
828 (push_fields_onto_fieldstack): If OFFSET is positive,
829 set in_nested_struct.
830 (create_variable_info_for): Copy setting of
831 in_nested_struct from the field offset object.
832 (set_uids_in_ptset): Set SFT_IN_NESTED_STRUCT from the
833 variable info object.
834 * tree-ssa-operands.c (add_vars_for_offset): If VAR
835 belongs to a nested structure, adjust OFFSET by
836 SFT_OFFSET(VAR).
837
8c09e55e 8382007-11-07 Eric Botcazou <ebotcazou@libertysurf.fr>
839
840 PR rtl-optimization/33737
841 * cfgcleanup.c (try_crossjump_to_edge): Add count and frequency of
842 target block after computing the probabilities of outgoing edges.
843 Cap the frequency to BB_FREQ_MAX.
844 * tree-ssa-threadupdate.c (redirect_edges): Also adjust count and
845 frequency of the basic block if it has been reused.
846
eeb0ae23 8472007-11-07 Eric Botcazou <ebotcazou@libertysurf.fr>
848
849 PR rtl-optimization/33822
850 * rtl.h (REG_OFFSET): Fix comment.
851 * var-tracking.c (INT_MEM_OFFSET): New macro.
852 (var_mem_set): Use it.
853 (var_mem_delete_and_set): Likewise.
854 (var_mem_delete): Likewise.
855 (same_variable_part_p): Likewise.
856 (vt_get_decl_and_offset): Likewise.
857 (offset_valid_for_tracked_p): New predicate.
858 (count_uses): Do not track locations with invalid offsets.
859 (add_uses): Likewise.
860 (add_stores): Likewise.
861
81eefa9d 8622007-11-07 Tom Tromey <tromey@redhat.com>
863
864 * Makefile.in (tree-ssa-structalias.o): Depend on $(FUNCTION_H)
865 (BASIC_BLOCK_H): Add vec.h, $(FUNCTION_H).
866
c0fb94bd 8672007-11-07 Dmitry Zhurikhin <zhur@ispras.ru>
868 Andrey Belevantsev <abel@ispras.ru>
869
870 * modulo-sched.c (sms_order_nodes, permute_partial_schedule,
871 generate_prolog_epilog, duplicate_insns_of_cycles): Fix prototypes.
872 (calculate_order_params, sms_order_nodes): New parameter pmax_asap.
873 Save calculated max_asap in it.
874 (sms_schedule): Calculate maxii using max_asap.
875
823d7f6b 8762007-11-07 Andreas Krebbel <krebbel1@de.ibm.com>
877
878 * doc/invoke.texi: Replace rs6000 dfp switches -mdfp/-mno-dfp
879 with -mhard-dfp/-mno-hard-dfp.
880
3371ef4c 8812007-11-07 Maxim Kuvyrkov <maxim@codesourcery.com>
882 Jakub Jelinek <jakub@redhat.com>
883
884 PR middle-end/33670
885 * haifa-sched.c (check_sched_flags): Remove.
886 (sched_init): Don't call it.
887
4ec25329 8882007-11-06 Diego Novillo <dnovillo@google.com>
889
890 * tree-flow.h (struct fieldoff): Reformat comment.
891 Document fields.
892 * tree-ssa-operands.c: Tidy top-level comments.
893 (add_vop): Likewise.
894 (add_vars_for_offset): Tidy parameter formatting..
895 (get_addr_dereference_operands): Likewise.
896 (get_indirect_ref_operands): Likewise.
897 (get_expr_operands) <OMP_ATOMIC_LOAD>: Reformat.
898 <OMP_ATOMIC_STORE>: Likewise.
899
a29cc4b6 9002007-11-06 Rask Ingemann Lambertsen <rask@sygehus.dk>
901
902 PR target/32787
903 * config/i386/driver-i386.c: Test for __GNUC__ instead of
904 GCC_VERSION which is always defined.
905
a5f1b756 9062007-11-06 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
907
908 PR target/30961
909 * reload1.c (find_reloads): Also check in_reg when handling a
910 simple move with an input reload and a destination of a hard
911 register.
912
15b9ea10 9132007-11-06 Maxim Kuvyrkov <maxim@codesourcery.com>
914
915 * config/m68k/m68k.c (sched-int.h, insn-codes.h): New includes.
916 (TARGET_SCHED_ADJUST_COST, TARGET_SCHED_VARIABLE_ISSUE,
917 TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_FINISH_GLOBAL,
918 TARGET_SCHED_INIT, TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
919 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Redefine.
920 (m68k_sched_attr_type2): New function.
921 (sched_adjust_cost_state): New static variable.
922 (m68k_sched_adjust_cost): New static function implementing
923 scheduler hook.
924 (sched_ib_size, sched_ib_filled, sched_ib_insn, sched_mem_unit_code):
925 New static variables.
926 (m68k_sched_variable_issue): New static function implementing
927 scheduler hook.
928 (sched_dump_class_def, sched_dump_class_func_t): New typedefs.
929 (sched_dump_split_class): New static function.
930 (sched_dump_dfa_guess_unit_code, sched_dump_dfa_state): New static
931 variables.
932 (sched_dump_dfa_class, m68k_sched_dump): New static function.
933 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
934 m68k_sched_md_init, m68k_sched_dfa_pre_advance_cycle,
935 m68k_sched_dfa_post_advance_cycle): New static functions implementing
936 scheduler hooks.
937
938 * config/m68k/m68k.h (m68k_sched_attr_type2): Declare.
939 (CPU_UNITS_QUERY): Define.
940
941 * config/m68k/cf.md: New file.
942 * config/m68k/m68.md (cf.md): New include.
943
3c9dcda1 9442007-11-06 Tom Tromey <tromey@redhat.com>
945
946 PR c++/32256, PR c++/32368:
947 * function.c (saved_in_system_header): New global.
948 (push_cfun): Save in_system_header.
949 (pop_cfun): Restore in_system_header.
950 (push_struct_function): Save in_system_header.
951
796735dc 9522007-11-06 Douglas Gregor <doug.gregor@gmail.com>
953
954 PR c++/33977
955 PR c++/33886
956 * c-common.c (c_build_qualified_type): Moved to c-typeck.c.
957 (complete_array_type): Set canonical type appropriately.
958 * c-typeck.c (c_build_qualified_type): Moved from c-common.c. The
959 C and C++ front ends now have different versions of this function,
960 because the C++ version needs to maintain canonical types here.
961
848674d0 9622007-11-04 Razya Ladelsky <razya@il.ibm.com>
963
964 * tree-parloops.c (reduction_info): Remove reduction_init field.
965 (initialize_reductions): Remove creation of the reduction_init variable.
966 (struct data_arg): Remove.
967 (add_field_for_reduction, create_stores_for_reduction): New functions.
968 (add_field_for_name): Remove reduction handling.
8d2d2fcd 969 (separate_decls_in_loop): Call add_field_for_reduction,
848674d0 970 create_stores_for_reduction.
971
63025ada 9722007-11-06 Jakub Jelinek <jakub@redhat.com>
973
9915e061 974 PR tree-optimization/33458
975 * tree-inline.c (copy_phis_for_bb): If PHI arg substitution creates
976 !is_gimple_val PHI argument, gimplify it and insert it on edge.
977
63025ada 978 PR tree-optimization/33993
979 * tree-vect-transform.c (vect_get_constant_vectors): Use build_vector
980 rather than build_constructor_from_list if all list values are
981 constants.
982 (get_initial_def_for_induction): Use build_vector instead of
983 build_constructor_from_list.
984
2c56f72e 9852007-11-05 Mark Mitchell <mark@codesourcery.com>
986
987 PR target/33579
988 * tree.h (DECL_INIT_PRIORITY): Do not require
989 DECL_HAS_INIT_PRIORITY_P.
990 (DECL_FINI_PRIORITY): Likewise.
991 * tree.c (decl_init_priority_lookup): Remove assert.
992 (decl_fini_priority_insert): Likewise.
993 * cgraphunit.c (static_ctors): Make it a VEC.
994 (static_dtors): Likewise.
995 (record_cdtor_fn): Adjust accordingly.
996 (build_cdtor): Generate multiple functions for each initialization
997 priority.
998 (compare_ctor): New function.
999 (compare_dtor): Likewise.
1000 (cgraph_build_cdtor_fns): Sort the functions by priority before
1001 calling build_cdtor.
1002 (cgraph_build_static_cdtor): Put the priority in the function's
1003 name.
1004
794febf8 10052007-11-05 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 PR driver/32632
1008 * common.opt: Add shared and pie.
1009
cf4eef40 10102007-11-05 Bob Wilson <bob.wilson@acm.org>
1011
794febf8 1012 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Do not
1013 replace references to virtual_stack_vars_rtx in goto_handler.
7e923071 1014
baa1a726 10152007-11-05 Paul Brook <paul@codesourcery.com>
1016
7e923071 1017 * config.gcc (arm*-*-*): Set c_target_objs and cxx_target_objs.
1018 * config/arm/arm.c (arm_lang_output_object_attributes_hook): New.
1019 (arm_file_start): Don't set Tag_ABI_PCS_wchar_t. Call
1020 arm_lang_output_object_attributes_hook.
1021 * config/arm/arm.h (arm_lang_output_object_attributes_hook): Declare.
1022 (REGISTER_TARGET_PRAGMAS): Call arm_lang_object_attributes_init.
1023 * config/arm/arm-protos.h (arm_lang_object_attributes_init): Add
1024 prototype.
1025 * config/arm/t-arm.c (arm.o): New rule.
1026 * config/arm/arm-c.c: New file.
baa1a726 1027
82a67b2c 10282007-11-05 Nick Clifton <nickc@redhat.com>
1029 Sebastian Pop <sebastian.pop@amd.com>
1030
1031 PR tree-optimization/32540
1032 PR tree-optimization/33922
1033 * doc/invoke.texi: Document PARAM_MAX_PARTIAL_ANTIC_LENGTH.
1034 * tree-ssa-pre.c: Include params.h.
1035 (compute_partial_antic_aux): Use PARAM_MAX_PARTIAL_ANTIC_LENGTH
1036 to limit the maximum length of the PA set for a given block.
1037 * Makefile.in: Add a dependency upon params.h for tree-ssa-pre.c
1038 * params.def (PARAM_MAX_PARTIAL_ANTIC_LENGTH): New parameter.
1039
ba131df0 10402007-11-05 Nathan Sidwell <nathan@codesourcery.com>
1041
1042 * libgcc2.c (__fixunstfDI, __fixunsxfDI, __fixunsdfDI,
1043 __fixunssfDI): Make return type unsigned.
1044 * libgcc2.h (__fixunstfDI, __fixunsxfDI, __fixunsdfDI,
1045 __fixunssfDI): Make return type unsigned.
1046
dab9b858 10472007-11-05 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR tree-optimization/33856
1050 * tree-data-ref.c (get_references_in_stmt): Don't add
1051 REFERENCE_CLASS_P trees to references vector if get_base_address
1052 returns NULL on them.
1053
5d683f87 10542007-11-05 Alexandre Oliva <aoliva@redhat.com>
1055
1056 * cfg.c (dump_cfg_bb_info): Update bb_bitnames to match enum.
1057
ed14361e 10582007-11-04 Andrew Pinski <pinskia@gmail.com>
1059
1060 PR middle-end/32931
1061 * fold-const.c (fold_binary <case EQ_EXPR>): Convert the inner type
1062 for TRUTH_NOT_EXPR to type.
1063
0a239457 10642007-11-04 Gerald Pfeifer <gerald@pfeifer.com>
1065
1066 * doc/contrib.texi (Contributors): Add Manuel Lopez-Ibanez.
1067
7d022cbc 10682007-11-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1069
1070 PR fortran/10220
1071 * dwarf2out.c (add_calling_convention_attribute): Change
1072 second argument. Set calling convention to DW_CC_program for
1073 Fortran main program.
1074 (gen_subprogram_die): Adjust to new prototype for
1075 add_calling_convention_attribute.
1076
d08091cb 10772007-11-03 Dorit Nuzman <dorit@il.ibm.com>
1078
1079 PR tree-optimization/33987
1080 * tree-vect-transform.c (get_initial_def_for_reduction): Fix assert.
1081 Fix indentation.
1082 (vectorizable_reduction): Add type check.
1083
ce53604a 10842007-11-03 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1085
1086 PR c/29062
1087 * c-parser.c (c_parser_statement_after_labels): Error if a
1088 declaration is parsed after a label.
1089
238655ad 10902007-11-03 Daniel Jacobowitz <dan@codesourcery.com>
1091
1092 PR debug/33921
1093 * reorg.c (emit_delay_sequence): Do not clear the locator on
1094 the jump instruction.
1095
305799d4 10962007-11-03 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR middle-end/33670
1099 * haifa-sched.c (ok_for_early_queue_removal): Don't walk out of the
1100 current sched region.
1101
c2f54bdd 11022007-11-02 Jakub Jelinek <jakub@redhat.com>
1103
1104 * config/ia64/ia64.c (struct reg_write_state): Change into
1105 unsigned short bitfields rather than unsigned int, decrease
1106 first_pred to just 10 bits.
1107 (rws_insn): Change into a bitmap or if not ENABLE_CHECKING
1108 into two char array.
1109 (rws_insn_set, rws_insn_test): New functions.
1110 (in_safe_group_barrier): New variable.
1111 (rws_update): Remove first argument, always set rws_sum array.
1112 (rws_access_regno): Use rws_insn_set macro. Only call rws_update
1113 or update rws_sum if !in_safe_group_barrier, adjust rws_update
1114 args.
1115 (rtx_needs_barrier): Use rws_insn_test macro.
1116 (safe_group_barrier_needed): Don't save/restore rws_sum array,
1117 instead set/clear in_safe_group_barrier flag.
1118
9562c505 11192007-11-02 Bob Wilson <bob.wilson@acm.org>
1120
1121 * config/xtensa/xtensa.c (xtensa_expand_prologue): Put a
1122 REG_FRAME_RELATED_EXPR note on the last insn that sets up the stack
1123 pointer or frame pointer.
1124 * config/xtensa/xtensa.h (DWARF_UNWIND_INFO): Delete.
1125 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1126 (DWARF2_UNWIND_INFO): Define.
1127 (INCOMING_RETURN_ADDR_RTX): Define.
1128 (DWARF_FRAME_RETURN_COLUMN): Define.
1129
dd603549 11302007-11-02 Tom Tromey <tromey@redhat.com>
1131
1132 * varpool.c (dump_varpool): Use 'next', not 'next_needed' when
1133 traversing pool.
1134
e83c4efa 11352007-11-02 Diego Novillo <dnovillo@google.com>
1136
1137 * langhooks.h (struct lang_hooks_for_callgraph): Remove third
1138 argument from function pointer ANALYZE_EXPR. Update all
1139 users.
1140 * cgraph.c (debug_cgraph_node): New.
1141 (debug_cgraph): New.
1142
e1b2b77c 11432007-11-02 Jakub Jelinek <jakub@redhat.com>
1144
1145 PR rtl-optimization/33648
1146 * cfgrtl.c (cfg_layout_split_edge): Initialize BB_PARTITION of
1147 the newly created basic block.
1148
1bf8cfe3 11492007-11-01 Richard Guenther <rguenther@suse.de>
1150
1151 * ggc-page.c (extra_order_size_tab): Add bitmap_head size.
1152
0f11b6b5 11532007-11-01 Steven Bosscher <stevenb.gcc@gmail.com>
1154
1155 PR rtl-optimization/33828
1156 * gcse.c (compute_code_hoist_vbeinout): Fix order of computation
1157 of VBEIN and VBEOUT.
1158
91020a82 11592007-11-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1160
1161 * optabs.c (prepare_cmp_insn): Merge a couple of conditional blocks.
1162 * sched-rgn.c (compute_trg_info): Zero 'el' local variable.
1163 * tree-if-conv.c (process_phi_nodes): Zero 'cond' local variable.
1164
4b20bbaf 11652007-11-01 Nathan Sidwell <nathan@codesourcery.com>
1166
1167 * gcc.c (getenv_spec_function): Escape the environment variable's
1168 value.
1169
8e1c396e 11702007-11-01 Janis Johnson <janis187@us.ibm.com>
1171
1172 * doc/invoke.texi (Optimize Options): Under -fcse-follow-jumps,
1173 show that CSE means common subexpression elimination. Change wording
1174 for -fsee and define LCM. Remove capitalization of optimizations
1175 for -ftree-reassoc, -ftree-pre, and -ftree-fre.
1176
65927568 11772007-11-01 Janis Johnson <janis187@us.ibm.com>
1178
1179 PR testsuite/25352
1180 * doc/sourcebuild.texi (Test Directives): Document that xfail
1181 has no effect for dg-do except when dg-do-what is "run".
1182
8c37d359 11832007-11-01 Tom Tromey <tromey@redhat.com>
1184
1185 * c-decl.c (grokdeclarator): Set decl source locations.
1186 * c-parser.c (c_parser_enum_specifier): Set location.
1187 (c_parser_struct_or_union_specifier): Likewise.
1188
4caff208 11892007-11-01 Tom Tromey <tromey@redhat.com>
1190
1191 * print-tree.c (print_node): Print column number.
1192
9b327454 11932007-11-01 Jakub Jelinek <jakub@redhat.com>
1194
73bcd2ba 1195 PR debug/33537
1196 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
1197 gen_decl_die): Use TREE_TYPE (TREE_TYPE (decl)) as type
1198 rather than TREE_TYPE (decl) if DECL_BY_REFERENCE (decl).
1199
9b327454 1200 PR rtl-optimization/33673
1201 * gcse.c (cprop_jump): If a conditional jump has been optimized
1202 into unconditional jump, make the remaining normal edge fallthru
1203 and delete the jump insn.
1204
1ad8ab5f 12052007-11-01 Ben Elliston <bje@au.ibm.com>
1206
1207 * emit-rtl.c (set_reg_attrs_from_mem): Clarify function comment.
1208 (set_mem_attrs_from_reg): Likewise.
1209
12102007-11-01 Michael Matz <matz@suse.de>
af4f74fa 1211
1212 PR tree-optimization/33961
1213 * tree-ssa-phiopt.c (struct name_to_bb.store): New member.
1214 (name_to_bb_hash, name_to_bb_eq): Consider and check it.
1215 (add_or_mark_expr): New argument 'store', using it to search
1216 the hash table.
1217 (nt_init_block): Adjust calls to add_or_mark_expr.
1218
0313ba85 12192007-10-31 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR target/31507
1222 * config/i386/i386.md (pushsf_rex64): Use X instead of < constraints
1223 for the first push_operand.
1224
a39ea4df 12252007-10-31 Revital Eres <eres@il.ibm.com>
1226
1227 * config/rs6000/paired.md (sminv2sf3, smaxv2sf3, reduc_smax_v2sf,
1228 reduc_smin_v2sf vec_interleave_highv2sf, vec_interleave_lowv2sf,
1229 vec_extract_evenv2sf, vec_extract_oddv2sf, reduc_splus_v2sf,
1230 movmisalignv2sf, vcondv2sf): New.
1231 (UNSPEC_INTERHI_V2SF, UNSPEC_INTERLO_V2SF, UNSPEC_EXTEVEN_V2SF,
1232 UNSPEC_EXTODD_V2SF): Define new constants.
1233 * config/rs6000/rs6000-protos.h (paired_expand_vector_move,
1234 paired_emit_vector_cond_expr): New.
1235 * config/rs6000/rs6000-c.c (__PAIRED__): Add new builtin_define.
1236 * config/rs6000/rs6000.c (paired_expand_vector_move,
1237 paired_emit_vector_cond_expr, paired_emit_vector_compare):
1238 New functions.
1239 * config/rs6000/750cl.h (ASM_CPU_SPEC): Pass down -m750cl option.
1240
e781c550 12412007-10-31 Sebastian Pop <sebastian.pop@amd.com>
1242
1243 PR tree-optimization/32377
1244 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Make it
1245 work also for unknown number of iterations.
1246 (analyze_subscript_affine_affine): Clean up. Don't fail when the
1247 number of iterations is not known.
1248
28fa8094 12492007-10-31 Richard Guenther <rguenther@suse.de>
1250
1251 PR middle-end/33779
1252 * fold-const.c (extract_muldiv_1): Make sure to not introduce
1253 new undefined integer overflow.
1254 (fold_binary): Avoid useless conversion.
1255
2394c496 12562007-10-31 Richard Sandiford <rsandifo@nildram.co.uk>
1257
1258 PR target/33948
1259 * config/mips/mips.c (mips_fpr_return_fields): Fix SCALAR_TYPE_P
1260 check.
1261
b44d7d37 12622007-10-31 Andreas Krebbel <krebbel1@de.ibm.com>
1263
1264 * config/rs6000/rs6000.opt: Rename -mdfp option to -mhard-dfp.
1265
1266 * config/s390/s390.c: (override_options): Replace -mhard-dfp/-msoft-dfp
1267 with -mhard-dfp/-mno-hard-dfp.
1268 * config/s390/s390.opt: Likewise.
1269 * config/s390/s390.h: Add MASK_HARD_DFP to the TARGET_DEFAULT
1270 definition.
1271
7c550341 12722007-10-30 Janis Johnson <janis187@us.ibm.com>
1273
1274 * tree-ssa.c (execute_update_addresses_taken): Initialize update_vops.
1275
3ee70e8b 12762007-10-30 Janis Johnson <janis187@us.ibm.com>
1277
1278 * doc/invoke.texi (Option Summary): Add -fdce and -fdse to list of
1279 optimization options.
1280 (Optimize Options): Add -fdce and -fdse to the list of optimizations
1281 enabled by -O. Document -fdce and -fdse.
1282
02dc5c73 12832007-10-30 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR c++/33709
1286 * fold-const.c (fold_binary): If one argument is COMPOUND_EXPR,
1287 convert second operand of COMPOUND_EXPR to the original type of
1288 that argument.
1289
527b30a7 12902007-10-30 Richard Guenther <rguenther@suse.de>
1291
1292 * tree-ssa-operands.c (add_vars_for_offset): Fix exit test
1293 of loop adding SFTs as virtual operands.
1294
c712cb88 12952007-10-30 Richard Guenther <rguenther@suse.de>
1296
1297 * Makefile.in (dse.o): Add $(OPTABS_H) and $(RECOG_H) dependencies.
1298
2483fa68 12992007-10-29 Dorit Nuzman <dorit@il.ibm.com>
1300
1301 PR tree-optimization/32893
1302 * tree-vectorize.c (vect_can_force_dr_alignment_p): Check
1303 STACK_BOUNDARY instead of PREFERRED_STACK_BOUNDARY.
1304
6b411d81 13052007-10-29 Rask Ingemann Lambertsen <rask@sygehus.dk>
1306
1307 * longlong.h (add_ssaaaa): Support Intel asm syntax in i386 and
1308 x86_64 versions.
1309 (sub_ddmmss): Likewise.
1310 (umul_ppmm): Likewise.
1311 (udiv_qrnnd): Likewise.
1312
f67fd8c2 13132007-10-29 Janis Johnson <janis187@us.ibm.com>
1314
1315 PR testsuite/24841
1316 * doc/sourcebuild.texi (Test Directives): Document that dg-require
1317 directives must come before dg-additional-sources.
1318
75b97c6e 13192007-10-29 Jakub Jelinek <jakub@redhat.com>
1320
1321 PR tree-optimization/33723
1322 * c-gimplify.c (c_gimplify_expr): Optimize INIT_EXPR or
1323 MODIFY_EXPR with non-addressable COMPOUND_LITERAL_EXPR as source.
1324
e80ea974 13252007-10-29 Richard Sandiford <rsandifo@nildram.co.uk>
1326
1327 PR tree-optimization/33614
1328 * gimplify.c (gimplify_init_constructor): Gimplify vector constructors
1329 if they can't be reduced to VECTOR_CSTs and aren't legitimate
1330 initializer constants.
1331
b25fbd1b 13322007-10-29 Richard Guenther <rguenther@suse.de>
1333
1334 PR tree-optimization/33870
1335 * tree-ssa-operands.c (add_vars_for_offset): Remove mpt_vars parameter.
1336 (add_virtual_operand): Do not recurse into MPTs looking for pointed-to
1337 SFTs.
1338
317d3b82 13392007-10-29 Richard Guenther <rguenther@suse.de>
1340
1341 * passes.c (init_optimization_passes): Exchange store_copy_prop
1342 with copy_prop.
1343 * tree-pass.h (pass_store_copy_prop): Remove.
1344 * tree-ssa-copy.c (do_store_copy_prop): Remove.
1345 (stmt_may_generate-copy): Do not handle store_copy_prop.
1346 (get_copy_of_val): Likewise.
1347 (set_copy_of_val): Likewise.
1348 (copy_prop_visit_assignment): Likewise.
1349 (copy_prop_visit_stmt): Likewise.
1350 (copy_prop_visit_phi_node): Likewise.
1351 (init_copy_prop): Likewise.
1352 (execute_copy_prop): Likewise.
1353 (do_copy_prop): Remove.
1354 (gate_store_copy_prop): Likewise.
1355 (store_copy_prop): Likewise.
1356 (pass_store_copy_prop): Likewise.
1357 (pass_copy_prop): Call execute_copy_prop.
1358 * opts.c (decode_options): Do not set flag_tree_store_copy_prop.
1359 * common.opt (ftree-store-copy-prop): Mark obsolete.
1360 * doc/invoke.texi (ftree-store-copy-prop): Remove documentation.
1361
e92e4c4f 13622007-10-29 Ian Lance Taylor <iant@google.com>
1363
1364 * ifcvt.c (noce_can_store_speculate_p): New static function.
1365 (noce_process_if_block): Call it.
1366 (if_convert): Remove recompute_dominance parameter. Change all
1367 callers.
1368
8c5a45b9 13692007-10-29 Richard Guenther <rguenther@suse.de>
1370
1371 * tree-flow-inline.h (get_subvar_at): Use binary search.
1372 (get_first_overlapping_subvar): New function to binary search
1373 for the first overlapping subvar.
1374 * tree-ssa-operands.c (add_vars_for_offset): Strip down to
1375 just handle adding subvars for a pointed-to subvar. Optimize
1376 and use get_first_overlapping_subvar.
1377 (add_vars_for_bitmap): Fold into single caller.
1378 (add_virtual_operand): Streamline, inherit add_vars_for_bitmap
1379 and non pointed-to bits of add_vars_for_offset.
1380
915d13f5 13812007-10-29 Revital Eres <eres@il.ibm.com>
1382
1383 * modulo-sched.c (sms_schedule): Add DF_UD_CHAIN problem.
1384
0a39bce0 13852007-10-29 Razya Ladelsky <razya@il.ibm.com>
8d2d2fcd 1386 Zdenek Dvorak <ook@ucw.cz>
0a39bce0 1387
1388 OMP_ATOMIC Changes,
1389 reduction support for automatic parallelization.
1390
1391 * expr.c (expand_expr_real_1): Add cases for OMP_ATOMIC_LOAD,
1392 OMP_ATOMIC_STORE.
1393 * Makefile.in: Add dependencies to expr.o, tree-parloops.o, omp-low.o
1394 * tree-pretty-print.c (dump_generic_node): Add OMP_ATOMIC_LOAD
1395 and OMP_ATOMIC_STORE.
1396 * tree.h (OMP_DIRECTIVE_P): Add OMP_ATOMIC_LOAD, OMP_ATOMIC_STORE.
1397 * gimple-low.c (lower_stmt): Same.
1398 * gimplify.c (gimplify_expr): Same.
1399 (gimplify_omp_atomic_fetch_op, gimplify_omp_atomic_pipeline,
1400 gimplify_omp_atomic_mutex): Remove.
1401 (gimplify_omp_atomic): Change it to simply gimplify the
1402 statement instead of expanding it.
1403 * omp-low.c: Add includes to optabs.h, cfgloop.h.
1404 (expand_omp_atomic, expand_omp_atomic_pipeline,
1405 goa_stabilize_expr, expand_omp_atomic_mutex,
1406 expand_omp_atomic_fetch_op): New functions to implement
1407 expansion of OMP_ATOMIC.
1408 (expand_omp, build_omp_regions_1): Add support for
1409 OMP_ATOMIC_LOAD/OMP_ATOMIC_STORE.
1410 * tree-cfg.c (make_edges): add case for OMP_ATOMIC_LOAD,
1411 OMP_ATOMIC_STORE.
1412 * tree-gimple.c (is_gimple_stmt): Add OMP_ATOMIC_LOAD,
1413 OMP_ATOMIC_STORE.
1414 * tree-parloops.c: add include to tree-vectorizer.h.
1415 (reduction_info): New structure for reduction.
1416 (reduction_list): New list to represent list of reductions per loop.
1417 (struct data_arg): New helper structure for reduction.
1418 (reduction_info_hash, reduction_info_eq, reduction_phi,
1419 initialize_reductions, create_call_for_reduction,
1420 create_phi_for_local_result, create_call_for_reduction_1,
1421 create_loads_for_reductions, create_final_loads_for_reduction):
1422 New functions.
1423 (loop_parallel_p): Identify reductions, add reduction_list parameter.
1424 (separate_decls_in_loop_name): Support reduction variables.
1425 (separate_decls_in_loop): Add reduction_list and ld_st_data arguments,
1426 call create_loads_for_reduction for each reduction.
1427 (canonicalize_loop_ivs): Identify reductions, add reduction_list
1428 parameter.
1429 (transform_to_exit_first_loop): Add reduction support, add
1430 reduction_list parameter.
1431 (gen_parallel_loop): Add reduction_list parameter. Add call
1432 separate_decls_in_loop with
1433 the new argument. Traverse reductions and call
1434 initialize_reductions, create_call_for_reduction.
1435 (parallelize_loops): Create and delete the reduction list.
1436 (add_field_for_name): Change use of data parameter. Add fields for
1437 reductions.
1438 * tree-vectorizer.h (vect_analyze_loop_form): Add declaration.
1439 * tree-vect-analyze.c (vect_analyze_loop_form): export it.
1440 * tree.def: Add definitions for OMP_ATOMIC_LOAD, OMP_ATOMIC_STORE.
1441 * tree-inline.c (estimate_num_insns_1): add cases for
1442 OMP_ATOMIC_LOAD, OMP_ATOMIC_STORE.
1443 * tree-cfg.c (make_edges): Add OMP_ATOMIC_LOAD, OMP_ATOMIC_STORE.
1444 * tree-ssa-operands.c (get_addr_dereference_operands):
1445 New function. Subroutine of get_indirect_ref_operands.
1446 (get_indirect_ref_operands): Call get_addr_dereference_operands.
1447 (get_expr_operands): Support OMP_ATOMIC_LOAD, OMP_ATOMIC_STORE.
cb7f680b 1448
1449
a3d70904 14502007-10-29 Hans-Peter Nilsson <hp@axis.com>
1451
1452 * config/cris/cris.c: Include df.h.
1453 (cris_address_cost): Add gcc_assert for canonicalization
1454 assumptions. For PLUS with MULT or register, correct
1455 test for register in other arm. Tweak comments.
1456
190a9dfc 14572007-10-28 Richard Guenther <rguenther@suse.de>
1458
1459 * tree-ssa-operands.c (add_vars_for_offset): Add parameter
1460 telling if the var is to be treated as points-to location.
1461 (add_vars_for_bitmap): Pass true to add_vars_for_offset.
1462 (add_virtual_operand): Only recurse into MPTs if aliases
1463 is from a NMT.
1464
f33a7c9c 14652007-10-28 Richard Guenther <rguenther@suse.de>
1466
1467 * tree-ssa-operands.c (add_vars_for_offset): Clean and speed up.
1468 (add_vars_for_bitmap): Do not recurse further. Only add vars
1469 for pointed-to SFTs.
1470 (add_virtual_operand): Re-instantiate loop to add operands for
1471 aliases. Recurse into MPTs.
1472 (get_indirect_ref_operands): If we fall back to use a pointers
1473 SMT, make sure to not prune based on the access offset and size.
1474
655daedd 14752007-10-28 Andrew Pinski <pinskia@gmail.com>
1476
1477 PR tree-opt/33589
1478 * tree-outof-ssa.c (rewrite_trees): If the statement changed, cleanup
1479 the eh information on the statement.
1480
fb0ac376 14812007-10-28 Richard Guenther <rguenther@suse.de>
1482
1483 * tree-flow.h (subvar_t): Make it a VEC.
1484 (struct subvar): Remove.
1485 (struct var_ann_d): Use VEC(tree,gc) to store subvars.
1486 * tree-flow-inline.h (get_subvar_at): Adjust iterators over
1487 variable subvars.
1488 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
1489 * tree-nrv.c (dest_safe_for_nrv_p): Likewise.
1490 * tree-ssa-alias.c (mark_aliases_call_clobbered): Likewise.
1491 (set_initial_properties): Likewise.
1492 (setup_pointers_and_addressables): Likewise.
1493 (new_type_alias): Likewise.
1494 (create_overlap_variables_for): Likewise.
1495 * tree-dfa.c (dump_subvars_for): Likewise.
1496 * tree-ssa-operands.c (add_vars_for_offset): Likewise.
1497 (get_expr_operands): Likewise.
1498 (add_to_addressable_set): Likewise.
1499 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
1500
63a1777b 15012007-10-28 Uros Bizjak <ubizjak@gmail.com>
1502
1503 PR tree-optimization/33920
1504 * tree-if-conv.c (tree_if_conversion): Force predicate of single
1505 successor bb to true when predecessor bb has NULL predicate.
1506 (find_phi_replacement_condition): Assert that tmp_cond is non-null.
1507
eb220600 15082007-10-28 Richard Sandiford <rsandifo@nildram.co.uk>
1509
1510 * config/mips/mips.md: Add combiner patterns for DImode extensions
1511 of HImode and QImode truncations. Reformat HImode <- QImode pattern
1512 for consistency.
1513
5a458ea4 15142007-10-28 Richard Sandiford <rsandifo@nildram.co.uk>
1515
1516 PR target/33895
1517 * config/mips/mips.c (mips_output_dwarf_dtprel): Add ATTRIBUTE_UNUSED.
1518
061edeaf 15192007-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
1520
1521 * dce.c (delete_unmarked_insns): Just delete the RETVAL and
1522 LIBCALL notes if they are about to be moved to the same insn.
1523
f0e6e3c1 15242007-10-27 Richard Guenther <rguenther@suse.de>
1525
1526 PR tree-optimization/33870
1527 * tree-ssa-operands.c (add_vars_for_offset): Reduce code
1528 duplication. Remove redundant call to access_can_touch_variable.
1529 (add_vars_for_bitmap): New helper for recursing over MPT contents.
1530 (add_virtual_operand): Use it.
1531
f38fac2a 15322007-10-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1533
1534 PR fortran/31608
1535 * pa.h (ASM_PN_FORMAT): Delete define.
1536
e752af94 15372007-10-26 Janis Johnson <janis187@us.ibm.com>
1538
1539 * doc/invoke.texi (Option Summary, optimizations): Remove
1540 -fbounds-check. Add -fassociative-math, -freciprocal-math,
1541 -ftree-vrp and -funit-at-a-time. Change -fno-split-wide-types to
1542 -fsplit-wide-types to match later entry. Break up a long line.
1543 (Option Summary, code gen options) Add -fno-stack-limit. Add
1544 missing @gol to the end of a line.
1545 (Optimization Options): Remove -fbounds-check, which is also
1546 documented under Code Generation Options. Remove =n from
1547 index entry for -ftree-parallelize-loops. Change -fno-cprop-registers
1548 to -fcprop-registers to match other options, and say when it is
1549 enabled rather than disabled. Remove extra index entry for
1550 -fno-cx-limited-range. Add index entries for -fstack-protector
1551 and -fstack-protector-all.
1552 (Code Gen Options): Add index entry for -ftls-model.
1553
ba8273a8 15542007-10-26 Anatoly Sokolov <aesok@post.ru>
1555
1556 * config/avr/avr.c (avr_OS_task_function_p): Add new function.
1557 (avr_regs_to_save): Handle functions with 'OS_task' attribute.
1558 (avr_simple_epilogue, expand_prologue, avr_asm_function_end_prologue,
1559 expand_epilogue, output_movhi): Don't handle 'main' function.
1560 (avr_attribute_table): Add 'OS_task' function attribute.
1561 * config/avr/avr.h (machine_function): Remove 'is_main' field, add
1562 'is_OS_task' field.
1563 * config/avr/avr.md (return_from_main_epilogue): Remove insn.
1564 (return_from_epilogue, return_from_interrupt_epilogue): Don't handle
1565 'main' function.
1566 * config/avr/avr.opt (minit-stack): Remove.
1567
4dddd0a0 15682007-10-26 Eric Botcazou <ebotcazou@adacore.com>
1569
1570 * tree-nested.c (get_trampoline_type): Fix thinko.
1571
7f0d3ba1 15722007-10-26 Douglas Gregor <doug.gregor@gmail.com>
1573
1574 PR c++/33601
1575 * tree.c (build_offset_type): Build canonical type based on the
1576 TYPE_MAIN_VARIANT of the base type.
1577
4e2a8d91 15782007-10-26 Daniel Jacobowitz <dan@codesourcery.com>
1579
1580 * reorg.c (emit_delay_sequence): Move insn locator from the
1581 first insn to the sequence.
1582
bc17fd99 15832007-10-26 Samuel Tardieu <sam@rfc1149.net>
1584
1585 * ipa-pure-const.c (check_decl): Return immediately when
1586 pure_const_state has been set to IPA_NEITHER.
1587
9b40081f 15882007-10-25 Ira Rosen <irar@il.ibm.com>
1589
1590 PR tree-optimization/33833
1591 * tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR
1592 and convert init to sizetype in inner_base construction.
1593
d84a3eef 15942007-10-25 Richard Guenther <rguenther@suse.de>
1595
1596 * tree-flow.h (mem_sym_stats): Remove.
1597 (dump_mem_sym_stats_for_var): Declare.
1598 * tree-dfa.c (dump_variable): Call dump_mem_sym_stats_for_var.
1599 (mem_sym_stats): Move ...
1600 * tree-ssa-alias.c (mem_sym_stats): ... here and make it static.
1601 (mem_sym_score): Rename from ...
1602 (pscore): ... this. Remove.
1603 (dump_mem_sym_stats_for_var): New function. Dump the score, but
1604 not the frequencies.
1605 (compare_mp_info_entries): Make sort stable by disambiguating
1606 on DECL_UID.
1607
93a6f154 16082007-10-25 Ira Rosen <irar@il.ibm.com>
1609
1610 PR tree-optimization/33866
bc17fd99 1611 * tree-vect-transform.c (vectorizable_store): Check operands of all
1612 the stmts in the group of strided accesses. Get def stmt type for each
1613 store in the group and pass it to vect_get_vec_def_for_stmt_copy ().
93a6f154 1614
50c9119e 16152007-10-25 Uros Bizjak <ubizjak@gmail.com>
1616
1617 * config/i386/constraints.md (Y0): Rename register constraint to Yz.
1618 (Yt): Rename register constraint to Y2.
1619 * config/i386/sse.md: Use renamed register constraints.
1620 * config/i386/mmx.md: Ditto.
1621 * config/i386/i386.md: Ditto.
1622
16232007-10-25 Rask Ingemann Lambertsen <rask@sygehus.dk>
1624
1625 * config/i386/i386.md (*dummy_extendsfdf2): Fix operand 1 constraint.
1626
fc0a87d6 16272007-10-24 Chao-ying Fu <fu@mips.com>
1628
1629 * dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
1630 DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.
1631
1d8091f7 16322007-10-24 Samuel Tardieu <sam@rfc1149.net>
0a39bce0 1633 Olga Golovanevsky <olga@il.ibm.com>
1d8091f7 1634
1635 * ipa-struct-reorg.c (replace_field_acc): Make it clear to
1636 the compiler that wr.wrap and wr.domain are initialized in
1637 any case.
1638
16392007-10-24 Samuel Tardieu <sam@rfc1149.net>
1640
1641 * ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
1642 to print gcov_type values.
1643
3ecce66a 16442007-10-24 Eric B. Weddington <eweddington@cso.atmel.com>
1645
1646 * config/avr/avr.h: Do not include progmem_section definition when
1647 building with IN_TARGET_LIBS.
1648
c21dc2de 16492007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
1650
1651 PR target/33755
1652 * config/mips/mips.c (mips_lo_sum_offset): New structure.
1653 (mips_hash_base, mips_lo_sum_offset_hash, mips_lo_sum_offset_eq)
1654 (mips_lo_sum_offset_lookup, mips_record_lo_sum)
1655 (mips_orphaned_high_part_p: New functions.
1656 (mips_avoid_hazard): Don't check INSN_P here.
1657 (mips_avoid_hazards): Rename to...
1658 (mips_reorg_process_insns): ...this. Cope with
1659 !TARGET_EXPLICIT_RELOCS. Delete orphaned high-part relocations,
1660 or turn them into nops.
1661 (mips_reorg): Remove TARGET_EXPLICIT_RELOCS check from calls to
1662 dbr_schedule and mips_avoid_hazards/mips_reorg_process_insns.
1663 (mips_set_mips16_mode): Don't set flag_delayed_branch here.
1664 (mips_override_options): Set flag_delayed_branch to 0.
1665
959fd5af 16662007-10-24 Richard Sandiford <rsandifo@nildram.co.uk>
1667
1668 * config/mips/mips.h (MOVE_MAX): Use UNITS_PER_WORD and describe
1669 MIPS-specific implementation details.
1670 (MIPS_MAX_MOVE_BYTES_PER_LOOP_ITER): New macro.
1671 (MIPS_MAX_MOVE_BYTES_STRAIGHT): Likewise.
1672 (MOVE_RATIO): Define to MIPS_MAX_MOVE_BYTES_STRAIGHT / UNITS_PER_WORD
1673 for targets with movmemsi.
1674 (MOVE_BY_PIECES_P): Define.
1675 * config/mips/mips.c (MAX_MOVE_REGS, MAX_MOVE_BYTES): Delete.
1676 (mips_block_move_loop): Add a bytes_per_iter argument.
1677 (mips_expand_block_move): Use MIPS_MAX_MOVE_BYTES_STRAIGHT.
1678 Update call to mips_block_move_loop.
1679
4236f54f 16802007-10-24 Michael Matz <matz@suse.de>
1681
1682 PR debug/33868
bc17fd99 1683 * var-tracking.c (variable_union): Don't break after one loop
1684 iteration but only when a difference is found.
4236f54f 1685 (dump_variable): Also print DECL_UID.
1686
f27ac341 16872007-10-24 Olga Golovanevsky <olga@il.ibm.com>
1688
4236f54f 1689 * ipa-type-escape.h: Expose function
1690 is_array_access_through_pointer_and_index.
1691 * ipa-type-escape.c
1692 (is_array_access_through_pointer_and_index):
1693 Add three new parameters. Add support of
1694 POINTER_PLUS_EXPR tree code.
f27ac341 1695
16962007-10-24 Olga Golovanevsky <olga@il.ibm.com>
1697
4236f54f 1698 * ipa-struct-reorg.c, ipa-struct-reorg.h: New files.
1699 * tree-pass.h: Add pass_ipa_struct_reorg.
1700 * common.opt: Add ipa-struct-reorg flag.
1701 * Makefile.in: Add ipa-strcut-reorg.o compilation.
1702 * passes.c: Add pass pass_ipa_struct_reorg.
1703 * params.h: Add STRUCT_REORG_COLD_STRUCT_RATIO.
1704 * params.def: Add PARAM_STRUCT_REORG_COLD_STRUCT_RATIO.
f27ac341 1705
e9097dc5 17062007-10-24 Ira Rosen <irar@il.ibm.com>
1707
1708 PR tree-optimization/33804
1709 * tree-vect-transform.c (vectorizable_operation): Remove the
1710 checks that the vectorization is worthwhile from the transformation
1711 phase.
1712
71a495a2 17132007-10-24 Ira Rosen <irar@il.ibm.com>
1714
1715 * tree-vect-analyze.c (vect_build_slp_tree): Return false if
1716 vectype cannot be determined for the scalar type.
1717 (vect_analyze_slp_instance): Likewise.
1718 * tree-vect-transform.c (vect_model_reduction_cost): Change the
1719 return type to bool. Return false if vectype cannot be determined
1720 for the scalar type.
1721 (vect_get_constant_vectors): Return false if vectype cannot be
1722 determined for the scalar type.
1723 (get_initial_def_for_induction, vect_get_vec_def_for_operand,
1724 get_initial_def_for_reduction, vect_create_epilog_for_reduction,
1725 vectorizable_reduction): Likewise.
1726
cfb5f9aa 17272007-10-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
1728
1729 * config.gcc: For a FreeBSD target, parse the value of ${target}
1730 to determine the value of FBSD_MAJOR, instead of adding an
1731 explicit check for every possible FreeBSD major version.
1732
26573c33 17332007-10-23 Uros Bizjak <ubizjak@gmail.com>
1734
1735 PR rtl-optimization/33846
1736 * combine.c (simplify_shift_const_1) [NOT]: Skip vector modes.
1737
75770e8a 17382007-10-23 Dorit Nuzman <dorit@il.ibm.com>
1739
1740 PR tree-optimization/33860
1741 * tree-vect-transform.c (vect_analyze_data_ref_access): Don't allow
1742 interleaved accesses in case the dr is inside the inner-loop during
1743 outer-loop vectorization.
1744
2877f49f 17452007-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1746
1747 * doc/rtl.texi (Flags): Fix MEM_SCALAR_P entry.
1748 Document MEM_POINTER. Replace mentions of "integrated"
1749 field with "return_val". Delete outdated stuff.
1750
0309b221 17512007-10-23 David Edelsohn <edelsohn@gnu.org>
1752
1753 * config/rs6000/rs6000.c (rs6000_override_options): Set
1754 rs6000_altivec_abi on AIX.
1755 (conditional_register_usage): Set VR20:31 fixed on AIX.
1756
8a02f734 17572007-10-23 Richard Guenther <rguenther@suse.de>
1758
1759 * alias.c (get_alias_set): For INDIRECT_REFs, deal with
1760 SSA_NAME pointers.
1761
fbc08f2b 17622007-10-22 Seongbae Park <seongbae.park@gmail.com>
1763 David S. Miller <davem@davemloft.net>
1764
1765 * df-scan.c (df_get_call_refs): Mark global registers as both a
1766 DF_REF_REG_USE and a non-clobber DF_REF_REG_DEF.
1767
0c351ef3 17682007-10-22 Dorit Nuzman <dorit@il.ibm.com>
1769
1770 PR tree-optimization/33834
1771 PR tree-optimization/33835
26573c33 1772 * tree-vect-analyze.c (vect_analyze_operations): RELEVANT and LIVE
1773 stmts need to be checked for success seperately.
0c351ef3 1774 * tree-vect-transform.c (vectorizable_call, vectorizable_conversion):
1775 Remove the check that stmt is not LIVE.
1776 (vectorizable_assignment, vectorizable_induction): Likewise.
1777 (vectorizable_operation, vectorizable_type_demotion): Likewise.
1778 (vectorizable_type_promotion, vectorizable_load, vectorizable_store):
1779 Likewise.
1780 (vectorizable_live_operation): Check that op is not NULL.
1781
b53f4e6f 17822007-10-22 Janis Johnson <janis187@us.ibm.com>
1783
1784 * doc/invoke.texi (Optimization Options): In the summary, show
1785 that the value for options -falign-jumps, -falign-labels,
1786 -falign-loops, -falign-functions, -fsched-stalled-insns, and
1787 -fsched-stalled-insns-dep is optional. In the summary, show that
1788 -fsched-stalled-insns takes an optional argument and that
1789 -fparallelize-loops takes an argument. Add opindex for several
1790 optimization options, and fix typos in the opindex commands for
1791 several others. In the descriptions for -fsched-stalled-insns
1792 and -fsched-stalled-insns-dep, show the options with and without
1793 values.
1794
2c194506 17952007-10-22 Eric B. Weddington <eweddington@cso.atmel.com>
1796
1797 * config/avr/avr.c (avr_mcu_types): Remove ATmega603 which was never
1798 produced.
1799 * config/avr/avr.h (LINK_SPEC): Likewise.
1800 (CRT_BINUTILS_SPECS): Likewsie.
1801 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1802
ebc94641 18032007-10-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1804
1805 PR rtl-optimization/33644
1806 * cfgcleanup.c: Do not include dce.h.
1807 * cfgrtl.c (delete_insn_chain_and_edges): Resurrect.
1808 * combine.c (distribute_notes): Delete REG_LIBCALL_ID case.
1809 * dce.c (something_changed): Delete.
1810 (libcall_dead_p): New predicate.
1811 (delete_unmarked_insns): Use it to delete dead libcalls.
1812 Deal with REG_LIBCALL and REG_RETVAL notes.
1813 (prescan_libcall_for_dce): New function.
1814 (prescan_insns_for_dce): Use it to deal with libcalls.
1815 (mark_reg_dependencies): Do nothing special for libcalls.
1816 (dce_process_block): Likewise.
1817 (fast_dce): Delete unused local variable.
1818 (run_fast_dce): Do not return a value.
1819 * dce.h (struct df): Delete.
1820 (run_fast_dce): Adjust prototype.
1821 * optabs.c (libcall_id): Delete.
1822 (maybe_encapsulate_block): Do not emit REG_LIBCALL_ID notes.
1823 (emit_no_conflict_block): Do not look for REG_LIBCALL_ID notes.
1824 * reload1.c (reload): Delete REG_LIBCALL_ID case.
1825 * rtl.h (delete_insn_chain_and_edges): Resurrect prototype.
1826 * see.c (see_update_relevancy): Look for REG_LIBCALL and REG_RETVAL
1827 notes instead of REG_LIBCALL_ID notes.
1828 * reg-notes.def (LIBCALL_ID): Delete.
1829 * Makefile.in (see.o): Add dce.h dependency.
1830 (cfgcleanup.o): Remove dce.h dependency.
1831
0aa073df 18322007-10-22 Michael Matz <matz@suse.de>
1833
1834 PR tree-optimization/33855
1835 * tree-ssa-phiopt.c (cond_store_replacement): Handle COMPLEX_TYPE
1836 and VECTOR_TYPE.
1837
e3639a07 18382007-10-22 Ira Rosen <irar@il.ibm.com>
1839
1840 PR tree-optimization/33854
1841 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
1842 FLOAT_EXPR to the list of promotion operations.
1843
eada3e80 18442007-10-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
1845
1846 PR target/29473
1847 PR target/29493
1848 * config/i386/i386.c (output_pic_addr_const): Support Intel asm syntax.
1849 (print_reg): Print register prefix only with AT&T asm syntax.
1850 Support pc_rtx for RIP register.
1851 (print_operand_address): Use print_reg()'s pc_rtx support for RIP
1852 relative addressing. Always print segment register prefix with AT&T
1853 asm syntax and never with Intel asm syntax.
1854 (print_operand): Suppress 'XXX PTR' prefix for BLKmode operands.
1855 Fix prefix for 16-byte XFmode operands.
1856 (output_addr_const_extra): Support Intel asm syntax.
1857 (x86_file_start): Don't use register prefix with Intel asm syntax.
1858 * config/i386/i386.md ("*zero_extendqihi2_movzbl"): Fix typo.
1859 ("return_internal_long"): Fix Intel asm syntax output.
1860 ("set_got_rex64"): Support Intel asm syntax.
1861 ("set_rip_rex64"): Likewise.
1862 ("set_got_offset_rex64"): Likewise.
1863 ("*sibcall_1_rex64_v"): Print register prefix only with AT&T asm
1864 syntax.
1865 ("*tls_global_dynamic_64"): Likewise.
1866 ("*tls_local_dynamic_base_64"): Likewise.
1867 ("*load_tp_si")("*load_tp_di"): Likewise.
1868 ("*add_tp_si")("*add_tp_di"): Likewise.
1869 ("*tls_dynamic_lea_64"): Likewise.
1870 ("*sibcall_value_1_rex64_v"): Likewise.
1871 ("stack_tls_protect_set_si"): Likewise.
1872 ("stack_tls_protect_set_di"): Likewise.
1873 ("stack_tls_protect_test_si"): Likewise.
1874 ("stack_tls_protect_test_di"): Likewise.
1875 * config/i386/mmx.md ("*mov<mode>_internal_rex64"): Fix Intel asm
1876 syntax output.
1877 ("*movv2sf_internal_rex64"): Likewise.
1878 * config/i386/cpuid.h (__cpuid): Support Intel asm syntax.
1879 (__get_cpuid_max): Likewise.
1880
a798da4d 18812007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
1882
1883 * config/mips/mips-protos.h (mips_regno_mode_ok_for_base_p): Give
1884 the STRICT_P argument type "bool" rather than "int".
1885 (mips_legitimate_address_p): Likewise.
1886 (fp_register_operand, lo_operand): Delete.
1887 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
1888 (mips_emit_scc): Rename to...
1889 (mips_expand_scc): ...this.
1890 (gen_conditional_branch): Rename to...
1891 (mips_expand_conditional_branch): ...this.
1892 (gen_conditional_move): Rename to...
1893 (mips_expand_conditional_move): ...this.
1894 (mips_gen_conditional_trap): Rename to...
1895 (mips_expand_conditional_trap): ...this and take an rtx code instead
1896 of an operands array.
1897 (mips_expand_call): Give the SIBCALL_P argument type "bool"
1898 rather than "int".
1899 (mips_emit_fcc_reload): Rename to...
1900 (mips_expand_fcc_reload): ...this.
1901 (init_cumulative_args): Rename to...
1902 (mips_init_cumulative_args): ...this and remove the libname argument.
1903 (function_arg_advance): Rename to...
1904 (mips_function_arg_advance): ...this.
1905 (function_arg): Rename to...
1906 (mips_function_arg): ...this and use "rtx" instead of
1907 "struct rtx_def *".
1908 (function_arg_boundary): Rename to...
1909 (mips_function_arg_boundary): ...this.
1910 (mips_expand_unaligned_load): Rename to...
1911 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
1912 and BITPOS arguments type "HOST_WIDE_INT".
1913 (mips_expand_unaligned_store): Rename to...
1914 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
1915 and BITPOS arguments type "HOST_WIDE_INT".
1916 (override_options): Rename to...
1917 (mips_override_options): ...this.
1918 (print_operand): Rename to...
1919 (mips_print_operand): ...this.
1920 (print_operand_address): Rename to...
1921 (mips_print_operand_address): ...this.
1922 (mips_output_ascii): Remove the PREFIX argument.
1923 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
1924 rather than "int".
1925 (mips_can_use_return_insn): Return a "bool" rather than an "int".
1926 (mips_function_value): Remove the FUNC argument. Use "rtx" instead
1927 of "struct rtx_def *".
1928 (mips_secondary_reload_class): Give the IN_P argument type "bool"
1929 rather than "int".
1930 (build_mips16_call_stub): Delete.
1931 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
1932 (mips_use_ins_ext_p): Give the second and third arguments type
1933 "HOST_WIDE_INT" rather than "rtx".
1934 * config/mips/mips.h: Update after the above changes. Tweak comments
1935 and formatting.
1936 (SECONDARY_INPUT_RELOAD_CLASS): Pass a boolean IN_P argument.
1937 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1938 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
1939 element type from "char" to "bool".
1940 (mips_section_threshold, sym_lineno, set_noat, mips_branch_likely)
1941 (mips_cpu_info_table): Delete.
1942 * config/mips/mips.md: Update after the above changes. Tweak some
1943 formatting.
1944 * config/mips/mips-ps-3d.md: Likewise.
1945 * config/mips/mips.c: Tweak comments and formatting.
1946 Use NULL-like macros rather than 0 in various places.
1947 (mips_section_threshold): Rename to...
1948 (mips_small_data_threshold): ...this and give it an unsigned type.
1949 (num_source_filenames): Remove explicit initialization.
1950 (sdb_label_count): Likewise.
1951 (sym_lineno): Delete.
1952 (set_noat): Make static.
1953 (mips_branch_likely): Likewise, and give it type "bool".
1954 (mips_isa_info): Rename to...
1955 (mips_isa_option_info): ...this.
1956 (mips_flag_delayed_branch): Rename to...
1957 (mips_base_delayed_branch): ...this.
1958 (mips_split_addresses): Delete.
1959 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
1960 element type from "char" to "bool".
1961 (mips_regno_to_class): Add an explicit array size.
1962 (mips16_flipper): Change from type "int" to type "bool".
1963 (mips_comp_type_attributes): Remove redundant FUNCTION_TYPE check.
1964 (mips_tls_operand_p): Rename to...
1965 (mips_tls_symbol_p): ...this.
1966 (mips_global_symbol_p): Remove redundant "const".
1967 (mips_offset_within_alignment_p): Simplify.
1968 (mips_regno_mode_ok_for_base_p): Change the name of the last argument
1969 to STRICT_P and give it type bool.
1970 (mips_valid_base_register_p): Likewise.
1971 (mips_classify_address): Likewise.
1972 (mips_legitimate_address_p): Likewise.
1973 (mips16_unextended_reference_p): Take the offset as an
1974 "unsigned HOST_WIDE_INT" rather than an "rtx". Simplify.
1975 (mips_const_insns): Use IN_RANGE.
1976 (mips_force_temporary): Remove an unnecessary copy_rtx.
1977 (mips16_gp_pseudo_reg): Simplify.
1978 (mips_split_symbol): Remove an unnecessary copy_rtx.
1979 (mips_legitimize_tls_address): Only create registers if we need them.
1980 (mips_legitimize_address): Use mips_split_plus.
1981 (mips_move_integer): Swap DEST and TEMP arguments. Rename local
1982 variable COST to NUM_OPS.
1983 (mips_legitimize_move): Use gen_lowpart.
1984 (mips_rewrite_small_data): Rename the OP parameter to PATTERN.
1985 (m16_check_op): Use IN_RANGE.
1986 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
1987 (mips_split_doubleword_move): Pass booleans to mips_subword.
1988 (mips_output_move): Store the mode in a local variable.
1989 Explicitly assert that this function does not deal with
1990 MFLO and MFHI. Use SMALL_OPERAND_UNSIGNED. Make order of
1991 cases more consistent.
1992 (mips_relational_operand_ok_p): Rename to...
1993 (mips_int_order_operand_ok_p): ...this.
1994 (mips_canonicalize_comparison): Rename to...
1995 (mips_canonicalize_int_order_test): ...this.
1996 (mips_emit_int_relational): Rename to...
1997 (mips_emit_int_order_test): ...this. Store the mode in a local
1998 variable.
1999 (mips_reverse_fp_cond_p): Rename to...
2000 (mips_reversed_fp_cond): ...this.
2001 (mips_emit_compare): Make the order of the statements more consistent.
2002 (mips_emit_scc): Rename to...
2003 (mips_expand_scc): ...this.
2004 (gen_conditional_branch): Rename to...
2005 (mips_expand_conditional_branch): ...this.
2006 (gen_conditional_move): Rename to...
2007 (mips_expand_conditional_move): ...this. Build the condition
2008 separately from the main pattern.
2009 (mips_gen_conditional_trap): Rename to...
2010 (mips_expand_conditional_trap): ...this and take an rtx code instead
2011 of an operands array. Simplify.
2012 (init_cumulative_args): Rename to...
2013 (mips_init_cumulative_args): ...this. Use memset rather than a
2014 copy from a zeroed static. Use prototype_p and stdarg_p.
2015 (mips_arg_info): Rename to...
2016 (mips_get_arg_info): ...this and put the INFO argument first.
2017 (function_arg): Rename to...
2018 (mips_function_arg): ...this and use "rtx" instead of
2019 "struct rtx_def *". Only split structures into chunks if
2020 TARGET_HARD_FLOAT, rather than checking !TARGET_SOFT_FLOAT on
2021 a chunk-by-chunk basis. Use SCALAR_FLOAT_TYPE_P instead of a
2022 comparison with REAL_TYPE. Rename local variable REG to REGNO
2023 and make it unsigned.
2024 (function_arg_advance): Rename to...
2025 (mips_function_arg_advance): ...this.
2026 (function_arg_boundary): Rename to...
2027 (mips_function_arg_boundary): ...this.
2028 (mips_pad_arg_upward): Use SCALAR_INT_MODE_P instead of a comparison
2029 with MODE_INT.
2030 (mips_fpr_return_fields): Use SCALAR_FLOAT_TYPE_P instead of a
2031 comparison with REAL_TYPE.
2032 (mips_function_value): Remove the FUNC argument. Rename local
2033 variable UNSIGNEDP to UNSIGNED_P.
2034 (mips_return_in_memory): Use IN_RANGE.
2035 (mips_setup_incoming_varargs): Pass a boolean rather than an int
2036 to FUNCTION_ARG_ADVANCE.
2037 (mips_gimplify_va_arg_expr): Rename local variable INDIRECT
2038 to INDIRECT_P. Remove a redundant mips_abi check. Only calculate
2039 SIZE and RSIZE if needed.
2040 (mips16_stub): Rename FPRET to FP_RET_P and give it type "bool"
2041 rather than "int".
2042 (build_mips16_function_stub): Rename to...
2043 (mips16_build_function_stub): ...this.
2044 (build_mips16_call_stub): Rename to...
2045 (mips16_build_call_stub): ...this. Make static, and return a
2046 "bool" rather than an "int". Rename the ARG_SIZE argument to
2047 ARGS_SIZE. Rename the local variable FPRET to FP_RET_P and give
2048 it type "bool". Use "jr" rather than "j". Use XNEW. Simplify.
2049 (mips_load_call_address): Give the SIBCALL_P argument type "bool"
2050 rather than "int".
2051 (mips_expand_call): Likewise. Assert that MIPS16 calls via stubs
2052 are not sibling ones.
2053 (mips_emit_fcc_reload): Rename to...
2054 (mips_expand_fcc_reload): ...this.
2055 (mips_get_unaligned_mem): Give the WIDTH and BITPOS arguments type
2056 "HOST_WIDE_INT".
2057 (mips_expand_unaligned_load): Rename to...
2058 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
2059 and BITPOS arguments type "HOST_WIDE_INT". Remove redundant
2060 SUBREG_BYTE check.
2061 (mips_expand_unaligned_store): Rename to...
2062 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
2063 and BITPOS arguments type "HOST_WIDE_INT".
2064 (mips_use_ins_ext_p): Rename second and third arguments to WIDTH
2065 and BITPOS and give them type "HOST_WIDE_INT" rather than "rtx".
2066 Use IN_RANGE.
2067 (mips_init_split_addresses): Replace with...
2068 (mips_split_addresses_p): ...this new function.
2069 (mips_init_relocs): Check mips_split_addresses_p () rather than
2070 mips_split_addresses. Always initialize mips_split_p with booleans.
2071 (print_operand_reloc): Rename to...
2072 (mips_print_operand_reloc): ...this. Use a gcc_assert rather than
2073 a fatal_error.
2074 (print_operand): Rename to...
2075 (mips_print_operand): ...this.
2076 (print_operand_address): Rename to...
2077 (mips_print_operand_address): ...this. Use GP_REG_FIRST.
2078 (mips_in_small_data_p): Simplify.
2079 (mips_output_ascii): Remove the PREFIX argument and "register"
2080 keywords. Use the STRING parameter directly and cast to
2081 "unsigned char".
2082 (mips16e_collect_argument_save_p): Use IN_RANGE.
2083 (mips_function_has_gp_insn): Simplify.
2084 (mips_set_return_address): Use BITSET_P.
2085 (mips_restore_gp): Use a separate statement to pick the base
2086 register.
2087 (mips_output_function_prologue): Use a local FRAME variable.
2088 (mips_save_reg): Pass booleans to mips_subword.
2089 (mips_expand_prologue): Use a local FRAME variable. Use
2090 cprestore_size to detect when .cprestore is needed.
2091 (mips_restore_reg): Use GP_REG_FIRST.
2092 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
2093 rather than "int". Use local FRAME and REGNO variables.
2094 (mips_can_use_return_insn): Return a "bool" rather than an "int".
2095 (mips_secondary_reload_class): Give the IN_P argument type "bool"
2096 rather than "int".
2097 (mips_linked_madd_p): Rename arguments to OUT_INSN and IN_INSN.
2098 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
2099 (vr4130_swap_insns_p): Rename local variables to DEP1_P and DEP2_P.
2100 (mips_74k_agen_init): Assume INSN satisfies USEFUL_INSN_P.
2101 (mips_variable_issue): Do nothing unless INSN satisfies USEFUL_INSN_P.
2102 (builtin_description): Rename to...
2103 (mips_builtin_description): ...this.
2104 (mips_bdesc): Rename to...
2105 (mips_ps_bdesc): ...this.
2106 (sb1_bdesc): Rename to...
2107 (mips_sb1_bdesc): ...this.
2108 (dsp_bdesc): Rename to...
2109 (mips_dsp_bdesc): ...this.
2110 (dsp_32only_bdesc): Rename to...
2111 (mips_dsp_32only_bdesc): ...this.
2112 (bdesc_map): Rename to...
2113 (mips_bdesc_map): ...this.
2114 (bdesc_arrays): Rename to...
2115 (mips_bdesc_arrays): ...this.
2116 (mips_prepare_builtin_arg): Rename OP to OPNO and ARGNUM to ARGNO.
2117 Tweak error message.
2118 (mips_expand_builtin_direct): Rename HAS_TARGET to HAS_TARGET_P.
2119 Rename local variables I and J to OPNO and ARGNO respectively.
2120 Assert that the number of arguments is no more than the number of
2121 input operands.
2122 (mips_expand_builtin_compare): Use an array of arguments rather
2123 than an array of operands. Assert that the number of operands is
2124 as expected.
2125 (add_constant): Rename to...
2126 (mips16_add_constant): ...this. Use XNEW.
2127 (dump_constants_1): Rename to...
2128 (mips16_emit_constants_1): ...this. Use ALL_SCALAR_FIXED_POINT_MODE_P.
2129 (dump_constants): Rename to...
2130 (mips16_emit_constants): ...this.
2131 (mips_sim_wait_reg, mips_sim_record_set): Use END_REGNO.
2132 (mips_set_mips16_mode): Don't call mips_init_split_addresses.
2133 Assign mips16_p to was_mips16_p.
2134 (mips_parse_cpu): Tweak warning message.
2135 (override_options): Rename to...
2136 (mips_override_options): ...this. Move the mips_cost initialization
2137 out of the "shared with GAS" block. Quote option names in error
2138 messages.
2139 (mips_conditional_register_usage): Make local variable REGNO unsigned.
2140 (mips_order_regs_for_local_alloc): Remove register keyword.
2141
ff30d473 21422007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2143
2144 * system.h (IN_RANGE): Cast each argument individually.
2145
7ca24a3f 21462007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2147
2148 * config/mips/mips.c (mips_set_mips16_mode) Say sorry for hard-float
2149 MIPS16 code unless using o32 or o64.
2150
6b84ee03 21512007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2152
2153 * config/mips/mips.c (mips_cannot_change_mode_class): Don't check
2154 for modes smaller than 4 bytes.
2155 * config/mips/mips.md (*movhi_internal, *movqi_internal): Remove
2156 FPR alternatives.
2157
311f6962 21582007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2159
2160 * config/mips/mips-protos.h (mips_output_aligned_bss): Delete.
2161 * config/mips/linux.h (BSS_SECTION_ASM_OP): Delete.
2162 (ASM_OUTPUT_ALIGNED_BSS): Delete.
2163 * config/mips/mips.c (mips_output_aligned_bss): Delete.
2164
5e6db356 21652007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2166
2167 * config/mips/mips.c (mips_function_ok_for_sibcall): Only forbid
2168 sibling calls to "mips16" functions if the function satisfies
2169 const_call_insn_operand.
2170
b170793f 21712007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2172
2173 * config/mips/mips.c (mips_va_start): Fix types in calls
2174 to build_int_cst.
2175
56b02fe7 21762007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2177
2178 * config/mips/mips.c (mips_rtx_costs): Only recognize reciprocals
2179 if ISA_HAS_FP4.
2180
36a24c97 21812007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2182
2183 * config/mips/mips.h (ISA_HAS_LDC1_SDC1): New macro.
2184 * config/mips/mips.c (mips_split_64bit_move_p): Use ISA_HAS_LDC1_SDC1
2185 instead of checking mips_isa.
2186
07a96917 21872007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
2188
2189 * doc/invoke.texi (-mpaired-single): Don't say that the option
2190 requires 64-bit code.
2191 * config/mips/mips-protos.h (mips_modes_tieable_p): Declare.
2192 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): New macro.
2193 (ISA_HAS_NMADD_NMSUB): Add a mode argument. Return true for
2194 V2SF if ISA_MIPS32R2.
2195 (MODES_TIEABLE_P): Use mips_modes_tieable_p.
2196 * config/mips/mips.c (mips_rtx_costs): Pass a mode argument
2197 to ISA_HAS_NMADD_NMSUB.
2198 (mips_split_doubleword_move): Handle V2SF.
2199 (mips_modes_tieable_p): New function.
2200 (override_options): Report a warning rather than an error when
2201 -mpaired-single is used on ISAs that don't support it; use
2202 ISA_HAS_PAIRED_SINGLE to check that case.
2203 * config/mips/mips.md (MOVE64): New mode iterator. Replace DI
2204 and DF move splitters with a single MOVE64 splitter, thereby adding
2205 a V2SF splitter too.
2206 (SPLITF): Add TARGET_DOUBLE_FLOAT conditions to DI and DF.
2207 Add a TARGET_FLOAT64 condition to TF. Add V2SF to the iterator.
2208 (HALFMODE): Add V2SF.
2209 (*nmadd<mode>, *nmadd<mode>_fastmath, *nmsub<mode>)
2210 (*nmsub<mode>_fastmath): Add a mode argument to ISA_HAS_NMADD_NMSUB.
2211 (movv2sf_hardfloat_64bit): Tweak ordering of conditions.
2212 (movv2sf_hardfloat_32bit): New pattern.
2213 (load_low<mode>, load_high<mode>, store_word<mode>): Remove
2214 TARGET_DOUBLE_FLOAT conditions.
2215
a32b2c27 22162007-10-20 Jakub Jelinek <jakub@redhat.com>
2217
2218 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Point
2219 saved CR2 offset to low 32 bits of regs->ccr rather than the whole
2220 64-bit register in 64-bit libgcc.
2221
42be71f3 22222007-10-20 Eric B. Weddington <eweddington@cso.atmel.com>
2223
2224 * config/avr/avr.c (avr_mcu_types): Add at90pwm2b, at90pwm3b.
2225 * config/avr/avr.h (LINK_SPEC): Likewise.
2226 (CRT_BINUTILS_SPECS): Likewsie.
2227 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2228
17d86453 22292007-10-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2230
2231 * doc/invoke.texi (Warning Options): Move -w, -Werror, -Werror=
2232 and -Wfatal-errors together.
2233
dfe00703 22342007-10-20 Alan Modra <amodra@bigpond.net.au>
2235
2236 PR target/33812
2237 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Revert 2007-05-16
2238 change for vrsave, ie restore after frame pop.
2239
bd100547 22402007-10-19 David S. Miller <davem@davemloft.net>
2241
2242 * config/sparc/niagara2.md: Fix copyright notice.
2243
538dd0ca 22442007-10-19 Sebastian Pop <sebastian.pop@amd.com>
2245
2246 PR tree-optimization/23820
2247 PR tree-optimization/24309
2248 PR tree-optimization/33766
2249 * testsuite/gcc.dg/tree-ssa/pr23820.c: New.
2250 * testsuite/gcc.dg/tree-ssa/pr24309.c: New.
2251 * testsuite/gcc.dg/tree-ssa/pr33766.c: New.
2252 * testsuite/gcc.dg/tree-ssa/ltrans-3.c: XFAILed.
2253 * tree-loop-linear.c (perfect_loop_nest_depth): New.
2254 (linear_transform_loops): Use perfect_loop_nest_depth.
2255 * lambda-code.c (perfect_nest_p): Outer loops in perfect nests
2256 should have a single condition: their exit.
2257
b35a8f48 22582007-10-19 Richard Guenther <rguenther@suse.de>
2259
2260 PR middle-end/33816
2261 PR middle-end/32921
2262 * stor-layout.c (layout_type): Assert that aggregates do not
2263 have their alias sets set.
2264 * alias.c (get_alias_set): Return alias set zero for incomplete
2265 types, return the alias set of the element for incomplete array
2266 types, but do not remember these.
2267
cd604e7f 22682007-10-19 Richard Guenther <rguenther@suse.de>
2269
2270 Revert
2271 2007-10-19 Richard Guenther <rguenther@suse.de>
2272
2273 PR middle-end/32921
2274 * tree.c (build_array_type): Do not re-layout unbound array
2275 types.
2276
23dcb41b 22772007-10-19 Richard Guenther <rguenther@suse.de>
2278
2279 PR middle-end/32921
2280 * tree.c (build_array_type): Do not re-layout unbound array
2281 types.
2282
076a0da7 22832007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2284
2285 * config/mips/mips.c (mips_canonicalize_comparison): Check
2286 mips_relational_operand_ok_p before trying to rewrite the test.
2287 Only calculate PLUS_ONE if needed.
2288 (mips_emit_int_relational): Don't call mips_relational_operand_ok_p
2289 here.
2290
14bcc272 22912007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2292
2293 * config/mips/mips.c (mips16e_build_save_restore): Fix *OFFSET_PTR
2294 calculation.
2295
10f333f8 22962007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2297
2298 * config/mips/mips.c (mips_call_tls_get_addr): Don't claim that
2299 the call uses the incoming value of $2.
2300
cbdbb1cc 23012007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2302
2303 * config/mips/mips.c (mips_call_tls_get_addr): Use gen_const_mem
2304 rather then gen_rtx_MEM.
2305 (mips_setup_incoming_varargs): Use gen_frame_mem rather than
2306 gen_rtx_MEM.
2307 (mips_set_return_address): Likewise.
2308 (mips_restore_gp): Likewise.
2309
ca364a35 23102007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2311
2312 * config/mips/mips.c (gpr_mode): Delete.
2313 (mips16e_build_save_restore): Use word_mode and UNITS_PER_WORD
2314 instead of gpr_mode.
2315 (mips_for_each_saved_reg): Likewise.
2316 (mips_expand_prologue, mips_expand_epilogue): Likewise.
2317 (override_options): Don't initialize gpr_mode.
2318 * config/mips/mips.md (eh_return): Use word_mode instead of gpr_mode.
2319
17bc3639 23202007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2321
2322 * config/mips/mips.c (mips_hard_regno_nregs): Put the UNITS_PER_WORD
2323 case last.
2324 (mips_class_max_nregs): Calculate the smallest consituent register
2325 size and use that to determine an upper bound on the number of
2326 registers.
2327
efad37c4 23282007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2329
2330 * config/mips/mips.c (mips16_copy_fpr_return_value): New function,
2331 split out from...
2332 (mips_expand_epilogue): ...here.
2333 (mips_mdebug_abi_name): New function, split out from...
2334 (mips_file_start): ...here.
2335 (mips_hard_regno_mode_ok_p): New function, split out from...
2336 (override_options): ...here.
2337 (mips_expand_builtin_1): New function, split out from...
2338 (mips_expand_buitin): ...here. Abort if we don't recognize
2339 the function.
2340
dc57b2a8 23412007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2342
2343 * config/mips/mips.c (build_mips16_function_stub): Load the
2344 target address into $1 before transfering the arguments.
2345 Don't use ".set noreorder".
2346 (build_mips16_call_stub): Likewise.
2347
5da04a4a 23482007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2349
2350 * config/mips/mips.c (mips_output_32bit_xfer): New function.
2351 (mips_output_64bit_xfer): Likewise.
2352 (mips16_fp_args): Rename to...
2353 (mips_output_args_xfer): ...this and replace the FROM_FP_P argument
2354 with a DIRECTION argument. Use mips_output_32bit_xfer and
2355 mips_output_64bit_xfer.
2356 (build_mips16_function_stub): Update accordingly.
2357 (mips16_fpret_double): Delete.
2358 (build_mips16_call_stub): Update after above changes.
2359 Use mips_output_32bit_xfer. Use mips_output_64bit_xfer instead
2360 of mips16_fpret_double. Use GP_REG_RETURN.
2361
02e9b037 23622007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
2363
2364 * config/mips/mips.c (mips16_fp_args): Remove the FILE argument and
2365 use asm_out_file instead.
2366 (build_mips16_function_stub): Likewise.
2367 (build_mips16_call_stub, mips_output_function_prologue): Update
2368 accordingly.
2369
d6ecc3a3 23702007-10-18 David S. Miller <davem@davemloft.net>
2371
2372 Add Niagara-2 support.
2373 * doc/invoke.texi: Document -m{cpu,tune}=niagara2.
2374 * config.gcc: Add niagara2 to cpu and tune lists for sparc.
2375 * config/sparc/sparc.md (sparc_cpu_attr): Add niagara2.
2376 (include): Add inclusion of niagara2.md
2377 * config/sparc/sparc.c (niagara2_costs): New.
2378 (sparc_override_options): Add niagara2 entry to cpu_default[]
2379 and cpu_table[]. Set align_functions to 32 on Niagara2. Use
2380 niagara2_costs when PROCESSOR_NIAGARA2. Handle Niagara2 for
2381 PARAM_SIMULTANEOUS_PREFETCHES and PARAM_L1_CACHE_LINE_SIZE.
2382 (sparc_initialize_trampoline): Handle niagara2 like niagara.
2383 (sparc64_initialize_trampoline): Likewise.
2384 (sparc_use_sched_lookahead): Likewise.
2385 (sparc_issue_rate): Likewise.
2386 * config/sparc/sol2-bi.h: Handle TARGET_CPU_niagara2 and
2387 mcpu=niagara2
2388 * config/sparc/sparc.h (TARGET_CPU_niagara2): Define.
2389 ({CPP,ASM}_CPU64_DEFAULT_SPEC): Set appropriately for
2390 TARGET_CPU_niagara2.
2391 (PROCESSOR_NIAGARA2): New.
2392 (REGISTER_MOVE_COST): Handle PROCESSOR_NIAGARA2.
2393 (BRANCH_COST): Likewise.
2394 * config/sparc/linux64.h: Handle TARGET_CPU_niagara2.
2395 * config/sparc/sol2.h: Likewise.
2396 * config/sparc/niagara2.md: New file.
2397
a9b1e587 23982007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2399
2400 * config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
2401 and fp_reg_size.
2402 (mips_compute_frame_info): Remove associated code.
2403 (mips16e_build_save_restore): Check num_fp instead of fp_reg_size.
2404
8471751a 24052007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2406
2407 * config/mips/mips-protos.h (compute_frame_size): Delete.
2408 * config/mips/mips.h: Update comments.
2409 * config/mips/mips.c (mips_frame_info): Remove initialized.
2410 (compute_frame_size): Rename to...
2411 (mips_compute_frame_info): ...this and make static. Remove the
2412 SIZE argument and return no value. Remove the setting of initialized.
2413 Update rest of file accordingly.
2414 (mips_set_return_address): Don't call compute_frame_size.
2415 (mips_can_use_return_insn): Don't check df_regs_ever_live_p (31).
2416 Don't call compute_frame_size.
2417
97f593fb 24182007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2419
2420 * config/mips/mips-protos.h (mips_frame_pointer_required): Declare.
2421 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Use
2422 mips_hard_frame_pointer_required.
2423 (CAN_ELIMINATE): Rely on FRAME_POINTER_REQUIRED to check for
2424 large MIPS16 frames.
2425 * config/mips/mips.c (mips_frame_pointer_required): New function.
2426
328772dc 24272007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2428
2429 * config/mips/mips.c (mips_frame_info): Add arg_pointer_offset
2430 and hard_frame_pointer_offset.
2431 (mips_debugger_offset): Use hard_frame_pointer_offset.
2432 (mips16e_collect_argument_save_p): Likewise.
2433 (compute_frame_size): Initialize arg_pointer_offset and
2434 hard_frame_pointer_offset.
2435 (mips_initial_elimination_offset): Use them.
2436 (mips_output_function_prologue): Use hard_frame_pointer_offset.
2437 (mips_expand_prologue, mips_expand_epilogue): Likewise.
2438
b99e33d1 24392007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2440
2441 * config/mips/mips.h (STARTING_FRAME_OFFSET): Remove rtl
2442 profiling code.
2443 * config/mips/mips.c (mips_frame_info): Give num_gp and num_fp type
2444 "unsigned int" rather than "int" and put them with the other
2445 register-related fields. Put expanded comments above fields
2446 rather than to their right.
2447 (mips16e_mask_registers): Replace the GP_REG_SIZE_PTR argument
2448 with a NUM_REGS_PTR argument.
2449 (mips16e_save_restore_pattern_p): Update accordingly.
2450 (compute_frame_size): Clarify frame diagram. Rewrite.
2451
348fe2d4 24522007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2453
2454 * config/mips/mips-ftypes.def: New file.
2455 * config/mips/mips.c (MIPS_FTYPE_NAME1, MIPS_FTYPE_NAME2)
2456 (MIPS_FTYPE_NAME3, MIPS_FTYPE_NAME4): New macros.
2457 (mips_function_type): Redefine using mips-ftypes.def.
2458 (dsp_bdesc): Use POINTER rather than PTR in the MIPS_*_FTYPE_* names.
2459 (mips_builtin_vector_type): New function.
2460 (MIPS_ATYPE_VOID, MIPS_ATYPE_INT, MIPS_ATYPE_POINTER, MIPS_ATYPE_SI)
2461 (MIPS_ATYPE_USI, MIPS_ATYPE_DI, MIPS_ATYPE_SF, MIPS_ATYPE_DF)
2462 (MIPS_ATYPE_V2SF, MIPS_ATYPE_V2HI, MIPS_ATYPE_V4QI, MIPS_FTYPE_ATYPES1)
2463 (MIPS_FTYPE_ATYPES2, MIPS_FTYPE_ATYPES3, MIPS_FTYPE_ATYPES4): New
2464 macros.
2465 (mips_build_function_type): New function.
2466 (mips_init_builtins): Use it to create types lazily.
2467
182810e7 24682007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2469
2470 * config/mips/mips.h (set_volatile): Delete.
2471 * config/mips/mips.c (set_volatile): Delete.
2472 (mips_print_operand_punctuation): New function, split out from
2473 print_operand. Remove '%{', '%}', '%~', '%&' and '%!'.
2474 Use the same character ordering in the code and the comments.
2475 Use a recursive call to handle '*'. Abort on unknown characters.
2476 (mips_init_print_operand_punct): New function, split out from
2477 override_options.
2478 (mips_print_int_branch_condition): New function, split out from
2479 print_operand. Use GET_RTX_NAME. Use output_operand_lossage
2480 to report unexpected codes.
2481 (mips_print_float_branch_condition): New function, split out from
2482 print_operand. Use output_operand_lossage to report unexpected codes.
2483 (print_operand): Rework to use a case statement. Use the
2484 same letter ordering in the code and the comments. Use
2485 output_operand_lossage to report unexpected codes and
2486 reverse_condition to handle inverted branch conditions.
2487 (override_options): Use mips_init_print_operand_punct.
2488
3c73affd 24892007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2490
2491 * config/mips/mips.h: Move variable declarations to end of file and
2492 enclose them all in #ifndef USED_FOR_TARGET.
2493 * config/mips/mips.c: Reorder functions into more logical groups,
2494 and so that callees appear before callers. Put the targetm
2495 initializer at the end of the file. Remove forward static
2496 declarations where possible.
2497 (mips_init_builtins): Add "static" to definition.
2498 (mips_expand_builtin, mips_mode_rep_extended): Likewise.
2499
33f8db14 25002007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2501
2502 * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
2503 (TARGET_MAX_ANCHOR_OFFSET): Delete.
2504 (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS.
2505 (mips_set_mips16_mode): Initialize min_anchor_offset and
2506 max_anchor_offset directly to constants.
2507
ee9739bf 25082007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2509
2510 * config/mips/mips.c: Delete trailing whitespace.
2511
bc7a3eb6 25122007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
2513
2514 * config/mips/mips.c (mips_expand_call): Use FAKE_CALL_REGNO.
2515 (mips_avoid_hazard): Allow multiple sets for HAZARD_DELAY,
2516 and pick the first.
2517 * config/mips/mips.md (load_call<mode>): Don't make the unspec
2518 depend on FAKE_CALL_REGNO. Set FAKE_CALL_REGNO.
2519
317454b4 25202007-10-18 David Daney <ddaney@avtrex.com>
2521
2522 * config/mips/linux-unwind.h (mips_fallback_frame_state): Use new
2523 reg_offset variable to calculate register locations.
2524
24239da3 25252007-10-18 Richard Guenther <rguenther@suse.de>
2526
2527 * tree-ssa.c (uid_ssaname_map_eq): New function.
2528 (uid_ssaname_map_has): Likewise.
2529 (init_tree_ssa): Allocate default_defs as uid_ssaname map.
2530 * tree-flow.h (struct gimple_df): Make default_defs a
2531 uid_ssaname map.
2532 * tree-dfa.c (gimple_default_def): Deal with it.
2533 (set_default_def): Likewise.
2534
8e3deba7 25352007-10-18 Richard Guenther <rguenther@suse.de>
2536
2537 * tree-flow.h (struct gimple_df): Make referenced_vars
2538 a uid_decl_map.
2539 (uid_decl_map_eq): Declare.
2540 (uid_decl_map_hash): Likewise.
2541 * tree-ssa.c (uid_decl_map_eq): New function.
2542 (uid_decl_map_hash): Likewise.
2543 (init_tree_ssa): Make referenced_vars a uid_decl_map.
2544 * tree-flow-inline.h (first_referenced_var): Deal with
2545 the referenced_vars representation change.
2546 (next_referenced_var): Likewise.
2547 * tree-dfa.c (referenced_var_lookup): Likewise.
2548 (referenced_var_check_and_insert): Likewise.
2549 (remove_referenced_var): Likewise.
2550
f659dc41 25512007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2552
2553 * config/mips/mips.c (mips_dwarf_register_span): New.
2554 (TARGET_DWARF_REGISTER_SPAN): Define.
2555
c0f96d15 25562007-10-18 Chen Liqin <liqin@sunnorth.com.cn>
2557
0a39bce0 2558 * config.gcc : update score-*-elf(extra_objs).
2559 * config/score/mac.md : Remove.
2560 * config/score/misc.md : Remove.
2561 * config/score/score7.md : Remove.
2562 * config/score/score-mdaux.h : Remove.
2563 * config/score/score-mdaux.c : Remove.
2564 * config/score/score-version.h : Remove.
2565 * config/score/score-generic.md : New.
2566 * config/score/score3.h : New.
2567 * config/score/score3.c : New.
2568 * config/score/score7.h : New.
2569 * config/score/score7.c : New.
2570 * config/score/mul-div.S : add flush_cache score3 support.
2571 * config/score/elf.h : Fix some typos.
2572 * config/score/score.md : merge score3 and score7 pattern.
2573 * config/score/score.c : use to seperate which target it used.
2574 * config/score/score.h : use to seperate the target macro.
2575 * config/score/score.opt : remove -mmac option , add -mscore3,
2576 -mscore3d and -march OPTION support.
c0f96d15 2577
8394f3a0 25782007-10-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
2579
2580 * cfgexpand.c (expand_stack_vars): Add checking to make sure
2581 that the offset of a variable is not greater than the size
2582 of the paritition.
2583
acbdb958 25842007-10-17 Anatoly Sokolov <aesok@post.ru>
2585
2586 * config/avr/avr.c (avr_mcu_types): Add support for atmega48p,
2587 atmega88p, atmega168p and atmega328p devices.
2588 * config/avr/avr.h (LINK_SPEC): (Ditto.).
2589 (CRT_BINUTILS_SPECS): (Ditto.).
2590 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2591
db982eeb 25922007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2593
2594 * sched-ebb.c: Surround code with '#ifdef INSN_SCHEDULING'.
2595 * ddg.c: Ditto.
2596 * sched-deps.c: Ditto. Remove nested #ifdef's INSN_SCHEDULING.
2597 * sched-int.h: Surround declarations with '#ifdef INSN_SCHEDULING'.
2598 (print_insn): Move declaration to ...
2599 * rtl.h (print_insn): ... here.
2600
26012007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2602
2603 * config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type,
2604 m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem,
2605 m68k_sched_branch_type): Move declarations to ...
2606 * config/m68/m68k-protos.h: ... here.
2607
c162e838 26082007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2609
2610 * genattrtab.c (main): Rearrange output of insn-attrtab.c headers.
2611
f0e33874 26122007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
2613
2614 * config/avr/avr.c (avr_mcu_types): Add attiny48.
2615 * config/avr/avr.h (LINK_SPEC): Likewise.
2616 (CRT_BINUTILS_SPECS): Likewsie.
2617 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2618
e3f16a04 26192007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
2620
2621 * config/avr/avr.c (avr_mcu_types): Add attiny43u.
2622 * config/avr/avr.h (CRT_BINUTILS_SPECS): Likewsie.
2623 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2624
c4ed2246 26252007-10-17 Uros Bizjak <ubizjak@gmail.com>
2626
2627 PR middle-end/33794
2628 * reg-stack.c (move_for_stack_reg): Swap input argument of
2629 UNSPEC_TAN insn to the top of the stack.
2630
8071f7e8 26312007-10-17 Uros Bizjak <ubizjak@gmail.com>
2632
2633 PR target/32961
2634 * config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLLWI128,
2635 IX86_BUILTIN_PSLLDI128, BUILTIN_PSLLQI128, IX86_BUILTIN_PSRAWI128,
2636 IX86_BUILTIN_PSRADI128, IX86_BUILTIN_PSRLWI128,
2637 IX86_BUILTIN_PSRLDI128, IX86_BUILTIN_PSRLQI128]: Do not require
2638 immediate shift value.
26573c33 2639 * config/i386/emmintrin.h (_mm_slli_epi16, _mm_slli_epi32,
8071f7e8 2640 _mm_slli_epi64, _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16,
2641 _mm_srli_epi32, _mm_srli_epi64): Remove 'const' from count argument.
2642 Remove macros for !__OPTIMIZE__ case.
2643
765b6c4f 26442007-10-17 Daniel Berlin <dberlin@dberlin.org>
2645
2646 * tree-ssa-structalias.c (rewrite_constraints): Don't test for
2647 directness anymore.
2648 (perform_var_substitution): Only DFS from real nodes. Don't test
2649 for directness.
2650 (unite_pointer_equivalences): Fix broken test.
2651
301c071e 26522007-10-17 Alan Modra <amodra@bigpond.net.au>
2653
2654 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Correct
2655 altivec sp_offset. Rearrange sp_offset assignments to
2656 correspond to stack adjustments. Use frame_reg_rtx for
2657 SPE register restores. Correct SPE stack adjustment.
2658
2006d7dc 26592007-10-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2660
2661 * builtins.c (gimplify_va_arg_expr): Use inform for help message.
2662 * toplev.c (check_global_declaration_1): Use appropriate warning
2663 option instead of unnamed warning.
2664 * stor-layout.c (layout_decl): Likewise.
2665 * c-typeck.c (build_conditional_expr): Likewise.
2666 (build_compound_expr): Fix wrong comment.
2667 (build_binary_op): Use appropriate warning option instead of
2668 unnamed warning.
2669 * cfgexpand.c (tree_expand_cfg): Likewise.
2670 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2671 * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise.
2672 (execute_warn_function_return): Likewise.
2673 * stmt.c (warn_if_unused_value): Likewise.
2674
5ad2da0d 26752007-10-16 Eric B. Weddington <eweddington@cso.atmel.com>
2676
2677 * config/avr/avr.c (avr_mcu_types): Add at90pwm216, at90pwm316.
2678 * config/avr/avr.h (LINK_SPEC): Likewise and remove regex for
2679 similar devices.
2680 (CRT_BINUTILS_SPECS): Likewsie.
2681 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2682
1035a676 26832007-10-16 Amruth Laxman <amruth.laxman@nsn.com>
2684
2685 PR target/33594
2686 * config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.
2687
3c6c0b50 26882007-10-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2689
2690 * dce.c (init_dce): Only initialize the obstacks for the fast pass.
2691 (fini_dce): Only release them for the fast pass.
2692 (end_ud_dce): Delete.
2693 (rest_of_handle_ud_dce): Do not modify df_in_progress.
2694 Call fini_dce instead of end_ud_dce.
2695 (rest_of_handle_fast_dce): Do not modify df_in_progress.
2696 (run_fast_df_dce): Reset df_in_progress to false on exit.
2697
77ad8e5a 26982007-10-16 Paolo Bonzini <bonzini@gnu.org>
2699 Maxim Kuvyrkov <maxim@codesourcery.com>
2700
2701 * target.h (unspec_may_trap_p): New target hook.
2702 * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro.
2703 * targhooks.c (default_unspec_may_trap_p): Default implementation of
2704 the hook.
2705 * targhooks.h (default_unspec_may_trap_p): Declare it.
2706 * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook.
2707 * rtlanal.c (may_trap_p_1): Use new hook. Make global.
2708 * rtl.h (may_trap_p_1): Declare.
2709
2710 * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to
2711 override default hook implementation.
2712 (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the
2713 hook.
2714
1c74cf33 27152007-10-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2716
2717 * doc/invoke.texi (Wextra): Move it just after Wall, list the
2718 options enabled by Wextra and mention Wuninitialized.
2719
3e7d5e0d 27202007-10-15 Nigel Stephens <nigel@mips.com>
2721
2722 * config/mips/mips.h (LOCAL_ALIGNMENT): Define.
2723
4b6920ea 27242007-10-15 Jakub Jelinek <jakub@redhat.com>
2725
2726 PR tree-optimization/33136
2727 * opts.c (decode_options): Don't enable flag_ipa_type_escape.
2728
e782a310 27292007-10-15 Alexandre Oliva <aoliva@redhat.com>
2730
2731 PR tree-optimization/33735
2732 PR tree-optimization/33572
2733 * tree-inline.c (update_ssa_across_abnormal_edges): Revert
2734 2007-10-09's change.
2735 * except.c (duplicate_eh_regions): Don't look for prev_try
2736 beyond ERT_ALLOWED_EXCEPTIONS with an empty list.
2737
58047c17 27382007-10-15 Alexandre Oliva <aoliva@redhat.com>
2739
2740 PR middle-end/33706
2741 * tree-inline.c (copy_bb): Use bsi_replace to replace a
2742 __builtin_va_arg_pack-containing call stmt.
2743
6dd98870 27442007-10-15 Razya Ladelsky <razya@il.ibm.com>
2745
0a39bce0 2746 * matrix-reorg.c (gate_matrix_reorg): Don't comment out whole
2747 program flag.
6dd98870 2748
abfb4f34 27492007-10-15 Jakub Jelinek <jakub@redhat.com>
2750
2751 PR tree-optimization/33619
2752 * tree-ssa-ter.c (is_replaceable_p): Return false for all
2753 calls.
2754
4b39bf76 27552007-10-15 David Edelsohn <edelsohn@gnu.org>
2756
abfb4f34 2757 * config.gcc (powerpc-ibm-aix5*): Install altivec.h.
4b39bf76 2758
ad92d3a8 27592007-10-15 Richard Guenther <rguenther@suse.de>
2760
2761 * fold-const.c (extract_array_ref): Remove.
2762 (fold_comparison): Handle POINTER_PLUS_EXPR with the
2763 generic address expression comparison folding. Remove
2764 the folding that used extract_array_ref.
2765
b06b98c8 27662007-10-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2767
2768 PR target/33133
b06b98c8 2769 * haifa-sched.c (process_insn_forw_deps_be_in_spec): Check if
2770 speculation type of insn can be changed before trying to do that.
2771
16bf64db 27722007-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2773
2774 * dse.c (struct insn_info): Add 'frame_read' field.
2775 (scan_insn): For the call to a const function, set frame_read if
2776 reload has been run.
2777 If the insn reads the frame, kill the frame related stores.
2778 (scan_reads_nospill): Likewise.
2779
e2d9473d 27802007-10-14 Jason Merrill <jason@redhat.com>
2781
2782 * tree-eh.c (optimize_double_finally): Don't assume that the
2783 cleanup we're duplicating is only one statement.
2784
c7684b8e 27852007-10-14 Kazu Hirata <kazu@codesourcery.com>
2786
2787 * config/fixed-bit.c, config/i386/cpuid.h, config/i386/i386.c,
2788 config/i386/i386.md, config/i386/sse.md, function.c, jump.c,
2789 modulo-sched.c, ra-conflict.c, toplev.c, tree-eh.c, tree-sra.c,
2790 tree-ssa-dse.c, tree-vect-analyze.c, tree-vect-patterns.c,
2791 tree-vect-transform.c: Fix comment typos.
2792 * doc/extend.texi: Fix a typo.
2793
80bd7101 2794 * c-common.h: Remove the prototype for c_expand_body.
2795 * c-tree.h: Remove the prototype for c_disregard_inline_limits.
2796 * tree.h: Remove the prototype for fold_build_call_expr.
2797
444fed4f 2798 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN):
2799 Remove.
2800 * c-tree.h: Remove the prototype for c_cannot_inline_tree_fn.
2801
d4115f8c 28022007-10-13 David Edelsohn <edelsohn@gnu.org>
2803
2804 * config/rs6000/aix53.h: New file.
2805 * config/rs6000/aix{41,43,51,52}.h (TARGET_ALTIVEC): Define to 0.
2806 (TARGET_ALTIVEC_ABI): Same.
2807 * config/rs6000/aix.h (TARGET_ALTIVEC): Delete.
2808 (TARGET_ALTIVEC_ABI): Delete.
2809 * config.gcc (powerpc-ibm-aix5*): Rename to aix5.2. Add new
2810 stanza defaulting to aix5.3.
2811
7294ce35 28122007-10-12 Nathan Froyd <froydnj@codesourcery.com>
2813
2814 * config/i386/i386.md (SI_REG, DI_REG): New constants.
2815 (strmov): Use defined constants.
2816 (cmpstrnsi): Likewise.
2817 * config/i386/i386.c (decide_alg): Use defined constants.
2818 (ix86_expand_strlen): Likewise.
2819
e10d697d 28202007-10-12 Richard Sandiford <rsandifo@nildram.co.uk>
2821
2822 * dse.c (find_shift_sequence): Reinstate "<= UNITS_PER_WORD" condition.
2823 * var-tracking.c (micro_operation_def): Update comment on u.loc.
2824 (mode_for_reg_attrs, var_lowpart): New functions.
2825 (add_uses): Consider recording a lowpart of LOC for MO_USE.
2826 (add_stores): Likewise MO_SET and MO_COPY. If the source of a set
2827 or copy is known, set LOC to the SET that performs the set, instead
2828 of the destination.
2829 (find_src_status, find_src_set_src): Remove LOC parameter.
2830 Replace INSN with the source value.
2831 (compute_bb_dataflow, emit_notes_in_bb): Check for a SET u.loc when
2832 handling MO_SET and MO_COPY. Update the calls to find_src_status
2833 and find_src_set_src.
2834
2bb6e5be 28352007-10-12 Nathan Froyd <froydnj@codesourcery.com>
2836
2837 PR 11001
2838 * config/i386/i386.md (strmov): Check for esi and edi usage.
2839 * config/i386/i386.c (decide_alg): Check whether we can use a
2840 rep prefix and adjust algorithm choice accordingly.
2841 (ix86_expand_strlen): Check for eax, ecx, and edi usage.
2842
0f0b3ebb 28432007-10-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2844
2845 * config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
2846
049c06c3 28472007-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
2848
2849 * global.c (build_insn_chain): Formatting fixes.
2850
f4628d45 28512007-10-12 Richard Guenther <rguenther@suse.de>
2852
2853 * tree-ssa-forwprop.c (forward_propagate_into_cond): For
2854 combining both operands require either both have single uses
2855 or combining to a constant.
2856
484b827b 28572007-10-12 Richard Guenther <rguenther@suse.de>
2858
2859 PR middle-end/26198
2860 * tree-ssa-forwprop.c (can_propagate_from): Do not propagate from
2861 a rhs with side-effects or which is a load.
2862 (forward_propagate_into_cond): Also try combining both operands.
2863
f1f6fb1d 28642007-10-12 Uros Bizjak <ubizjak@gmail.com>
2865
2866 PR tree-optimization/33742
2867 * tree-vect-transform.c (vectorizable_operation): Return false
2868 if get_vectype_for_scalar_type for scalar_dest can't be determined.
2869 (vectorizable_call): Same for rhs_type and lhs_type.
2870
a93b21ea 28712007-10-12 Jakub Jelinek <jakub@redhat.com>
2872
2873 PR tree-optimization/33645
2874 * tree-ssa-live.c (mark_all_vars_used): Add data argument,
2875 pass it to walk_tree.
2876 (mark_all_vars_used_1): Pass data through to mark_all_vars_used.
2877 When calling set_is_used on a VAR_DECL, if data is not NULL and
2878 its DECL_UID is in the bitmap, call mark_all_vars_used on its
2879 DECL_INITIAL after clearing the bit in bitmap.
2880 (remove_unused_locals): Adjust mark_all_vars_used callers.
2881 Instead of removing unused global vars from unexpanded_var_list
2882 immediately record them in bitmap, call mark_all_vars_used on
2883 all used global vars from unexpanded_var_list and only purge
2884 global vars that weren't found used even during that step.
2885
3086067c 28862007-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2887
2888 * gthr-posix.h (__gthread_active_init): Create detached instead of
2889 joinable thread when testing whether threads are active on hppa-hpux.
2890 * gthr-posix95.h (__gthread_active_init): Likewise.
2891
40dddfe0 28922007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2893
2894 PR middle-end/33676
2895 * global.c (build_insn_chain): Include insn that occur between
2896 basic blocks.
2897
bc59b964 28982007-10-11 Tom Tromey <tromey@redhat.com>
2899
2900 * gengtype-yacc.y: Delete.
2901
e4dea6c8 29022007-10-11 Uros Bizjak <ubizjak@gmail.com>
2903
9676e826 2904 * config/i386/i386.md (AX_REG, DX_REG, CX_REG): New constants.
e4dea6c8 2905 * config/i386/i386.c (ix86_function_arg_regno_p, function_arg_32,
2906 function_value_32, function_value_64, function_value_ms_64,
2907 setup_incoming_varargs_64, ix86_expand_prologue, ix86_expand_call,
2908 legitimize_tls_address, x86_this_parameter, x86_output_mi_thunk):
2909 Use new constants.
2910
588536fc 29112007-10-11 Richard Guenther <rguenther@suse.de>
2912
2913 * gcse.c (hash_scan_set): If the next nonnote insn is in
2914 a different basic block insert the set.
2915
c3a8498b 29162007-10-11 Richard Guenther <rguenther@suse.de>
2917
2918 PR middle-end/33724
2919 * tree-cfg.c (one_pointer_to_useless_type_conversion_p): New function.
2920 (verify_gimple_expr): Use it to verify pointer-to types for
2921 ADDR_EXPRs.
2922
e2ae9c11 29232007-10-11 Richard Guenther <rguenther@suse.de>
2924
2925 PR c/33726
2926 * c-typeck.c (build_array_ref): Do not strip qualifiers from
2927 the array element type.
2928
17e1318c 29292007-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2930
2931 PR rtl-optimization/33638
2932 * dse.c (struct insn_info): Remove 'stack_read' field,
2933 add 'stack_pointer_based' field.
2934 (record_store): For a store with non-constant base, record
2935 whether it is stack pointer based.
2936 (scan_insn): For the call to a const function, remove stack
2937 pointer based stores from the list of local active stores.
2938 (scan_reads_nospill): Delete code dealing with const functions.
2939
9a910ab3 29402007-10-10 Peter Bergner <bergner@vnet.ibm.com>
2941
2942 * ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables
2943 to HOST_WIDE_INT.
2944 (conflict_p, set_conflict, set_conflicts): Likewise.
2945 * global.c (global_alloc): Likewise.
2946 * ra.h: Update prototypes.
2947
5e2d3b19 29482007-10-10 Wolfgang Gellerich <gellerich@de.ibm.com>
2949
2950 * opth-gen.awk: Fixed generation of comment stating the origin
0a39bce0 2951 of options.h
5e2d3b19 2952
4ad53767 29532007-10-10 Kazu Hirata <kazu@codesourcery.com>
2954
2955 Revert:
2956 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
2957 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
2958 and '%}', respectively.
2959
2960 Revert:
2961 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
2962 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
2963 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
2964 and '}'.
2965 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
2966 meant to be output.
2967
2968 Revert:
2969 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
2970 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
2971 syntax for ASSEMBLER_DIALECT.
2972 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
2973
a9ac8caa 29742007-10-10 Revital Eres <eres@il.ibm.com>
2975
2976 * modulo-sched.c (check_nodes_order): Dump the final order of
2977 the nodes.
2978 (get_sched_window): Add dump info.
2979 (calculate_order_params): Dump order params of the nodes.
2980
660eb3f8 29812007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
fcbfde7d 2982
2983 PR middle-end/33669
2984 * ra-conflict.c (record_one_conflict_between_regnos,
2985 set_conflicts_for_earlyclobber, global_conflicts): Improved logging.
2986 (global_conflicts): Enhanced incorrect check.
2987
04222864 29882007-10-09 Geoffrey Keating <geoffk@apple.com>
2989
e8f535c2 2990 * dwarf2out.c (output_call_frame_info): FDEs are always emitted
2991 if flag_exceptions is not set.
2992 * config/darwin.c (darwin_emit_unwind_label): Rewrite to use
2993 assemble_name rather than incorrectly emulating it.
2994
04222864 2995 * doc/extend.texi (Deprecated Features): Mention that <? and >? and
2996 friends are removed from G++.
2997
410b80b2 29982007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2999
3000 * c-opts.c (c_common_handle_option): -Wnontemplate-friend,
3001 -Wwrite-strings and -Wmultichar are enabled by default, so Wall
3002 enabling them is redundant. Don't check two times for
3003 c_dialect_cxx.
3004
bf33b19b 30052007-10-09 H.J. Lu <hongjiu.lu@intel.com>
3006
3007 * ra-conflict.c (record_one_conflict_between_regnos): Revert
3008 the last change.
3009 (set_conflicts_for_earlyclobber): Likewise.
3010 (global_conflicts): Likewise.
3011
15fcc204 30122007-10-09 Kazu Hirata <kazu@codesourcery.com>
3013
3014 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
3015 and '%}', respectively.
3016
8fa48d1c 30172007-10-09 Kazu Hirata <kazu@codesourcery.com>
3018
3019 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
3020 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
3021 and '}'.
3022 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
3023 meant to be output.
3024
038b4fdb 30252007-10-09 Richard Guenther <rguenther@suse.de>
3026
3027 PR middle-end/33692
3028 * gimplify.c (canonicalize_component_ref): Honor qualifiers
3029 of referenced structure and component.
3030
8c9801c3 30312007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
3032
3033 PR middle-end/33669
3034 * ra-conflict.c (record_one_conflict_between_regnos,
3035 set_conflicts_for_earlyclobber, global_conflicts): Improved
3036 logging.
3037 (global_conflicts): Removed incorrect check.
3038
0f175ecf 30392007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
3040
3041 PR tree-optimization/33615
3042 * tree-ssa-pre.c (compute_avail): Don't call make_values_for_stmt
3043 if the statement might throw. Fix formatting.
3044
b6c8535d 30452007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
3046
3047 PR tree-optimization/33615
3048 * tree-ssa-loop-im.c (movement_possibility): Return MOVE_IMPOSSIBLE
3049 if the rhs might throw.
3050
7bd530d9 30512007-10-09 Jan Hubicka <jh@suse.cz>
3052
3053 * invoke.texi (align-threshold, align-loop-iterations): Document.
3054 * final.c: Include cfgloop.h, params.h
3055 (compute_alignments): Dump decisions and compare them with loop
3056 structure; honor given parameters.
3057 (pass_compute_alignments): New dump file.
3058 * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New.
3059 * Makefile.in (final.o): Add dependency on cfgloop.h and params.h
3060
17b316d9 30612007-10-09 James E. Wilson <wilson@specifix.com>
3062
3063 PR tree-optimization/33655
3064 PR middle-end/22156
3065 * tree-sra.c (bitfield_overlaps_p): When fld->element is INTEGER_CST,
3066 convert it to bitsizetype before size_binop call.
3067
83ec5f8c 30682007-10-09 Alexandre Oliva <aoliva@redhat.com>
3069
3070 PR tree-optimization/33572
3071 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate
3072 the absence of a corresponding edge from the exit block.
3073
04048c99 30742007-10-09 Alexandre Oliva <aoliva@redhat.com>
3075
3076 PR middle-end/22156
3077 * tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for
3078 bit-field layout.
3079 (sra_build_assignment): Likewise. Set up mask depending on
3080 precision, not type.
3081 (sra_build_bf_assignment): Use BYTES_BIG_ENDIAN. Don't overflow
3082 computing bit masks.
3083 (sra_build_elt_assignment): Don't view-convert from signed to
3084 unsigned.
3085 (sra_explode_bitfield_assignment): Use bit-field type if
3086 possible. Use BYTES_BIG_ENDIAN.
3087
0b35ae2d 30882007-10-08 Alexandre Oliva <aoliva@redhat.com>
3089
21e5ba97 3090 PR middle-end/22156
0b35ae2d 3091 * tree-sra.c (scalarize_lsdt): Fix thinko in testing whether
3092 the original stmt can throw.
21e5ba97 3093 (sra_build_bf_assignment): Fix type mismatch when applying negated
3094 mask.
0b35ae2d 3095
a3f2dafd 30962007-10-08 Geoffrey Keating <geoffk@apple.com>
3097
3098 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register
3099 '#pragma mark' to be executed at preprocessing time.
3100
1b49e7ef 31012007-10-08 Ollie Wild <aaw@google.com>
3102
3103 * varasm.c (compare_constant): Removed call to
3104 lang_hooks.expand_constant.
3105 (copy_constants): Removed call to lang_hooks.expand_constant.
3106 (compute_reloc_for_constant): Removed call to
3107 lang_hooks.expand_constant.
3108 (output_addressed_constants): Removed call to
3109 lang_hooks.expand_constant.
3110 (constructor_static_from_elts_p): Removed call to
3111 lang_hooks.expand_constant.
3112 (output_constant): Removed calls to lang_hooks.expand_constant.
3113 * langhooks.h (struct lang_hooks): Removed field expand_constant.
3114 * langhooks-def.h (lhd_return_tree): Removed.
3115 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
3116 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
3117 * langhooks.c (lhd_return_tree): Removed.
3118
1a35829f 31192007-10-08 Mark Shinwell <shinwell@codesourcery.com>
3120
3121 * combine.c (setup_incoming_promotions): Ensure that
3122 arguments that have not undergone mode promotions do not
3123 incorrectly get marked as being sign- or zero-extended.
3124
984e8ecc 31252007-10-08 Richard Guenther <rguenther@suse.de>
3126
3127 PR middle-end/33693
3128 PR middle-end/33695
3129 PR middle-end/33697
3130 * fold-const.c (fold_binary): Use correct types in folding
3131 of a * (1 << b) to (a << b). Likewise for ~A & ~B to ~(A | B)
3132 and building of RROTATE_EXPR.
3133
05e1595b 31342007-10-08 Richard Guenther <rguenther@suse.de>
3135
3136 PR middle-end/33691
3137 PR middle-end/33694
3138 PR middle-end/33696
3139 * fold-const.c (fold_binary): Use the correct types when
3140 folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
3141 (fold_binary): Use the correct types when folding
3142 (-A) - B to (-B) - A.
3143 (fold_unary): Use the correct types when folding ~(X).
3144
e3d2159e 31452007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3146
3147 * doc/invoke.texi (Wall): fix formatting issues.
3148
5fe63105 31492007-10-07 Richard Sandiford <rsandifo@nildram.co.uk>
3150
3151 * simplify-rtx.c (simplify_binary_operation_1): Canonicalize
3152 truncated shift counts.
3153
18155f9b 31542007-10-07 Kazu Hirata <kazu@codesourcery.com>
3155
3156 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
3157 syntax for ASSEMBLER_DIALECT.
3158 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
3159
8e925375 31602007-10-06 Eric Botcazou <ebotcazou@adacore.com>
0a39bce0 3161 Nathan Froyd <froydnj@codesourcery.com>
20ebe75d 3162
3163 * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
3164 when determining whether to record INCOMING_RETURN_ADDR_RTX.
3165
05261943 31662007-10-06 Eric Botcazou <ebotcazou@adacore.com>
3167
3168 Revert:
3169 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3170
3171 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3172 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3173 the function, temporarily point the debug interface to the null one.
3174
6cd85af4 31752007-10-06 Alexandre Oliva <aoliva@redhat.com>
3176
3177 PR tree-optimization/33655
21e5ba97 3178 PR middle-end/22156
6cd85af4 3179 * tree-sra.c (bitfield_overlaps_p): Handle array and complex
3180 elements.
3181
fd71b542 31822007-10-06 Alexandre Oliva <aoliva@redhat.com>
3183
3184 PR tree-optimization/33572
3185 * tree-cfg.c (verify_stmts): Check for missing PHI defs.
3186 * tree-inline.c (update_ssa_across_eh_edges): Renamed to...
3187 (update_ssa_across_abnormal_edges): ... this. Set slots in the
3188 return PHI node.
3189 (copy_edges_for_bb): Handle nonlocal label edges.
3190 (make_nonlocal_label_edges): Deleted.
3191 (optimize_inline_calls): Don't call it.
3192
084a03d0 31932007-10-05 Hans-Peter Nilsson <hp@axis.com>
3194
3195 * gthr-single.h: Revert last change.
3196
c47adb48 31972007-10-05 Michael Matz <matz@suse.de>
3198
3199 PR middle-end/33667
3200 * lower-subreg.c (decompose_multiword_subregs): Use
3201 validate_unshare_change().
3202
981db194 32032007-10-05 Peter Bergner <bergner@vnet.ibm.com>
3204
3205 * ra-conflict.c: Include "sparseset.h".
3206 (conflicts): Change to HOST_WIDEST_FAST_INT.
3207 (allocnos_live): Redefine variable as a sparseset.
bc17fd99 3208 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE):
3209 Delete macros.
981db194 3210 (allocno_row_words): Removed global variable.
3211 (partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
3212 (CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
3213 (conflict_p, set_conflict_p, set_conflicts_p): New functions.
3214 (record_one_conflict_between_regnos): Cache allocno values and reuse.
3215 Use set_conflict_p.
3216 (record_one_conflict): Update uses of allocnos_live to use
3217 the sparseset routines. Use set_conflicts_p.
3218 (mark_reg_store): Likewise.
3219 (set_reg_in_live): Likewise.
3220 (global_conflicts): Update uses of allocnos_live.
3221 Use the new adjacency list to visit an allocno's neighbors
3222 rather than iterating over all possible allocnos.
3223 Call set_conflicts_p to setup conflicts rather than adding
3224 them manually.
3225 * global.c: Comments updated.
3226 (CONFLICTP): Delete define.
3227 (regno_compare): New function. Add prototype.
3228 (global_alloc): Sort the allocno to regno mapping according to
3229 which basic blocks the regnos are referenced in. Modify the
3230 conflict bit matrix to a compressed triangular bitmatrix.
3231 Only allocate the conflict bit matrix and adjacency lists if
3232 we are actually going to allocate something.
3233 (expand_preferences): Use conflict_p. Update uses of allocnos_live.
3234 (prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
3235 allocno's neighbors rather than iterating over all possible allocnos.
3236 (mirror_conflicts): Removed function.
3237 (dump_conflicts): Iterate over regnos rather than allocnos so
3238 that all dump output will be sorted by regno number.
3239 Use the FOR_EACH_CONFLICT macro.
3240 * ra.h: Comments updated.
3241 (conflicts): Update prototype to HOST_WIDEST_FAST_INT.
bc17fd99 3242 (partial_bitnum, max_bitnum, adjacency, adjacency_pool):
3243 Add prototypes.
981db194 3244 (ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
3245 (adjacency_list_d, adjacency_iterator_d): New types.
3246 (add_neighbor, adjacency_iter_init, adjacency_iter_done,
3247 adjacency_iter_next, regno_basic_block): New static inline functions.
3248 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
3249 (conflict_p): Add function prototype.
3250 * sparseset.h, sparseset.c: New files.
3251 * Makefile.in (OBJS-common): Add sparseset.o.
3252 (sparseset.o): New rule.
3253
0fd56ba6 32542007-10-05 Richard Guenther <rguenther@suse.de>
3255
3256 PR middle-end/33666
3257 * fold-const.c (fold_unary): Do not fold (long long)(int)ptr
3258 to (long long)ptr.
3259
f211ad17 32602007-10-05 Michael Matz <matz@suse.de>
3261
3262 PR inline-asm/33600
3263 * function.c (match_asm_constraints_1): Check for input
3264 being used in the outputs.
3265
635b74da 32662007-10-05 Richard Guenther <rguenther@suse.de>
3267
3268 * tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
3269
a9a06ed6 32702007-10-05 Richard Sandiford <rsandifo@nildram.co.uk>
3271
3272 PR target/33635
3273 * config/mips/mips.c (mips_register_move_cost): Rewrite to use
3274 subset checks. Make the cost of FPR -> FPR moves depend on
3275 mips_mode_ok_for_mov_fmt_p.
3276
c0aa46db 32772007-10-04 Doug Kwan <dougkwan@google.com>
3278
3279 * gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
3280 __gthread_cond_wait_recursive): Add to extend interface for POSIX
3281 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
3282 support of conditional variables.
3283 * gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
3284 __gthread_cond_wait_recursive): Add to extend interface for POSIX
3285 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
3286 support of conditional variables.
3287 * gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
3288 __gthread_cond_wait_recursive): Add to extend interface for POSIX
3289 conditional variables.
3290 * gthr.h: Update comments to document new interface.
3291
7e9f640d 32922007-10-04 Geoffrey Keating <geoffk@apple.com>
3293
3294 * cgraphunit.c (cgraph_build_static_cdtor): Don't set
3295 DECL_IGNORED_P.
3296
f7b38f2d 32972007-10-04 Anatoly Sokolov <aesok@post.ru>
3298
3299 * config/avr/avr.c (expand_epilogue): Don't set RTX_FRAME_RELATED_P.
3300
2f519297 33012007-10-04 Richard Guenther <rguenther@suse.de>
3302
3303 PR middle-end/33641
3304 * tree-cfg.c (verify_gimple_expr): Operand one of POINTER_PLUS_EXPR
3305 does not need to be of INTEGER_TYPE.
3306 (verify_gimple_2): New function split out from ...
3307 (verify_gimple_1): ... here. ICE if there was an error during
3308 verification.
3309
4aafe72f 33102007-10-04 Michael Matz <matz@suse.de>
3311
3312 PR rtl-optimization/33653
3313 * dce.c (deletable_insn_p_1): Use volatile_refs_p().
3314 * dse.c (scan_insn): Same.
3315
99570287 33162007-10-04 Kazu Hirata <kazu@codesourcery.com>
3317
3318 * config.gcc: Remove USE_GAS for m68k targets.
3319
a7392604 33202007-10-04 Richard Guenther <rguenther@suse.de>
3321
3322 PR tree-optimization/33627
3323 * tree-gimple.h (canonicalize_cond_expr_cond): Declare.
3324 * tree-gimple.c (canonicalize_cond_expr_cond): New function,
3325 split out from ...
3326 * tree-ssa-forwprop.c (combine_cond_expr_cond): ... here.
3327 * tree-ssa-ifcombine.c (ifcombine_iforif): Use it.
3328
3e861386 33292007-10-04 Anatoly Sokolov <aesok@post.ru>
3330
3331 * config/avr/avr.c (commands_in_file, commands_in_prologues,
3332 commands_in_epilogues): Remove variables.
3333 (avr_file_start): Remove unneded initializations of commands_in_file,
3334 commands_in_prologues and commands_in_epilogues variables.
3335 (avr_file_end): Remove dead code.
3336
97747e65 33372007-10-04 Kazu Hirata <kazu@codesourcery.com>
3338
3339 * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
3340 MOTOROLA is to true.
3341
c072f70e 33422007-10-03 Richard Sandiford <rsandifo@nildram.co.uk>
3343
3344 PR target/33635
3345 * config/mips/mips-protos.h (mips_split_64bit_move): Rename to...
3346 (mips_split_doubleword_move): ...this.
3347 * config/mips/mips.c (mips_subword): Extend to handle 64-bit words;
3348 use natural endianness for multi-format FPR values.
3349 (mips_split_64bit_move): Rename to...
3350 (mips_split_doubleword_move): ...this and extend to 64-bit words.
3351 Use move_doubleword_fpr* patterns for moves involving FPRs.
3352 (mips_save_reg): Update the call to mips_split_64bit_move.
3353 (mips_secondary_reload_class): Return NO_REGS for any reload of a
3354 nonzero constant into an FPR if the constant can be forced to memory.
3355 * config/mips/mips.md: Update the splitter calls to
3356 mips_split_64bit_move.
3357 (UNSPEC_LOAD_DF_LOW): Rename to...
3358 (UNSPEC_LOAD_LOW): ...this.
3359 (UNSPEC_LOAD_DF_HIGH): Rename to...
3360 (UNSPEC_LOAD_HIGH): ...this.
3361 (UNSPEC_STORE_DF_HIGH): Rename to...
3362 (UNSPEC_STORE_WORD): ...this.
3363 (SPLITF): New mode iterator.
3364 (HALFMODE): New mode attribute.
3365 (movtf): New expander.
3366 (*movtf_internal): New define_insn_and_split.
3367 (move_doubleword_fpr<mode>): New expander.
3368 (load_df_low, load_df_high, store_df_high, mthc1, mfhc1): Replace
3369 with...
3370 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3371 (mfhc1<mode>): ...these more general patterns.
3372
f69dfa18 33732007-10-03 Alexandre Oliva <aoliva@redhat.com>
3374
3375 * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
3376
15375980 33772007-10-03 Alexandre Oliva <aoliva@redhat.com>
3378
3379 * gcse.c (hash_scan_set): Insert set in insn before note at
3380 the end of basic block.
3381
5aaf9e39 33822007-10-03 Sebastian Pop <sebastian.pop@amd.com>
3383
3384 PR tree-optimization/33576
3385 * testsuite/gcc.dg/tree-ssa/pr33576.c: New.
3386 * tree-loop-linear.c (linear_transform_loops): Call remove_iv.
3387 * lambda.h (lambda_loopnest_to_gcc_loopnest): New parameter.
3388 (remove_iv): Declared.
3389 * lambda-code.c (remove_iv): Not static.
3390 (lambda_loopnest_to_gcc_loopnest): New parameter remove_ivs.
3391 Don't remove ivs there, save ivs in the buffer.
3392
4888ab9a 33932007-10-03 Jason Merrill <jason@redhat.com>
3394
3395 PR c++/15764
3396 * tree-eh.c (same_handler_p): New fn.
3397 (optimize_double_finally): New fn.
3398 (refactor_eh_r): New fn.
3399 (refactor_eh): New fn.
3400 (pass_refactor_eh): New pass.
3401 * tree-pass.h: Declare it.
3402 * passes.c (init_optimization_passes): Add it.
3403
a43689ad 34042007-10-03 Doug Kwan <dougkwan@google.com>
3405 Richard Guenther <rguenther@suse.de>
3406
3407 PR debug/31899
3408 * dwarf2out.c (reference_to_unused): Disable sanity checking,
3409 be conservative instead.
3410
15c77ab7 34112007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3412
3413 PR fortran/26682
3414 * doc/invoke.texi (-fwhole-program): Document that Fortran
3415 doesn't support this option.
3416
e54c9818 34172007-10-02 Richard Sandiford <rsandifo@nildram.co.uk>
3418
3419 PR middle-end/33617
3420 * expr.c (expand_expr_addr_expr_1): Pass CONSTRUCTORs to
3421 expand_expr.
3422
678b6707 34232007-10-02 David Daney <ddaney@avtrex.com>
3424
3425 * config/mips/mips.md (sync_compare_and_swap<mode>): Handle compare
3426 against constant zero.
3427 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Handle constant zero
3428 operand.
3429
dea7b504 34302007-09-02 Kenneth Zadeck <zadeck@naturalbridge.com>
3431
3432 * ra-conflict.c: New file.
3433 * ra.h: New file.
3434 * reload.c (push_reload, find_dummy_reload): Change DF_RA_LIVE
3435 usage to DF_LIVE usage.
d249f80a 3436 (reload): Remove reference to df_get_live_top.
dea7b504 3437 * rtlanal.c (subreg_nregs_with_regno): New function.
3438 * df-scan.c (df_def_record_1, df_uses_record): Add code to set
3439 DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, and DF_REF_SUBREG flags.
3440 (df_has_eh_preds): Removed.
3441 (df_bb_refs_collect, df_bb_refs_collect, df_bb_refs_collect,
3442 df_exit_block_uses_collect): Changed call from df_has_eh_preds to
3443 bb_has_eh_pred.
3444 * global.c (allocno, max_allocno, conflicts, allocno_row_words,
3445 reg_allocno, EXECUTE_IF_SET_IN_ALLOCNO_SET): Moved to ra.h
3446 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Moved to ra-conflicts.c.
3447 (regs_set, record_one_conflict, record_conflicts, mark_reg_store,
3448 mark_reg_clobber, mark_reg_conflicts, mark_reg_death): Deleted.
3449 (global_alloc): Turn off rescanning insns after call to
3450 global_conflicts and added call to set_preferences.
3451 (global_conflicts): Moved to ra-alloc.c.
3452 (set_preferences_1, set_preferences): New function.
3453 (mirror_conflicts): Changed types for various variables.
3454 (mark_elimination): Change DF_RA_LIVE
3455 usage to DF_LIVE usage.
3456 (build_insn_chain): Rewritten from scratch and made local.
3457 (print_insn_chain, print_insn_chains): New functions.
3458 (dump_conflicts): Do not print conflicts for fixed_regs.
3459 (rest_of_handle_global_alloc): Turn off insn rescanning.
3460 * hard-reg-set.h: Fixed comment.
3461 * local-alloc.c (update_equiv_regs): Change DF_RA_LIVE
3462 usage to DF_LIVE usage and delete refs to TOP sets.
3463 (block_alloc): Mark regs as live if they are in the artificial
3464 defs at top of block.
3465 (find_stack_regs): New function.
3466 (rest_of_handle_local_alloc): Changed urec problem to live
3467 problem and do not turn off df rescanning.
3468 * df.h (DF_UREC, DF_UREC_BB_INFO, DF_LIVE_TOP, DF_RA_LIVE_IN,
3469 DF_RA_LIVE_TOP, DF_RA_LIVE_OUT, df_urec_bb_info, df_urec,
3470 df_urec_add_problem, df_urec_get_bb_info, df_has_eh_preds): Removed.
3471 (DF_CHAIN, DF_NOTE, DF_CHAIN): Renumbered.
3472 (DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, DF_REF_SUBREG): New
3473 fields in df_ref_flags. The rest have been renumbered.
3474 * init-regs.c (initialize_uninitialized_regs): Enhanced debugging
3475 at -O1.
3476 * rtl.h (subreg_nregs_with_regno): New function.
3477 * df-problems.c: (df_get_live_out, df_get_live_in,
3478 df_get_live_top): Removed reference to DF_RA_LIVE.
3479 (df_lr_reset, df_lr_transfer_function, df_live_free_bb_info,
3480 df_live_alloc, df_live_reset, df_live_local_finalize,
3481 df_live_free): Make top set only if different from in set.
3482 (df_lr_top_dump, df_live_top_dump): Only print top set if
3483 different from in set.
3484 (df_lr_bb_local_compute): Removed unnecessary check.
3485 (df_urec_problem_data, df_urec_set_bb_info, df_urec_free_bb_info,
3486 df_urec_alloc, df_urec_mark_reg_change, earlyclobber_regclass,
3487 df_urec_check_earlyclobber, df_urec_mark_reg_use_for_earlyclobber,
3488 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
3489 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
3490 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
3491 df_urec_top_dump, df_urec_bottom_dump, problem_UREC,
3492 df_urec_add_problem): Removed.
3493 (df_simulate_fixup_sets): Changed call from df_has_eh_preds to
3494 bb_has_eh_pred.
3495 * Makefile.in (ra-conflict.o, ra.h): New dependencies.
3496 * basic_block.h (bb_has_abnormal_pred): New function.
3497 * reload1.c (compute_use_by_pseudos): Change DF_RA_LIVE
3498 usage to DF_LIVE usage.
3499
dd9e4c88 35002007-10-02 Revital Eres <eres@il.ibm.com>
3501
3502 * config/rs6000/predicates.md (easy_vector_constant): Return false
3503 for 750CL paired vectors.
3504 * config/rs6000/paired.md (movv2sf_paired): Fix move of easy
3505 vector constant.
3506 (vec_initv2sf): Add new description.
3507 (vconcatsf): Likewise.
3508 * config/rs6000/rs6000-protos.h: Declare paired_expand_vector_init.
0c80423d 3509 * config/rs6000/rs6000.c (paired_expand_vector_init): New function.
dd9e4c88 3510
5add5f91 35112007-10-01 Alexandre Oliva <aoliva@redhat.com>
3512
3513 * tree-ssa-sink.c (sink_code_in_bb): Don't stop sinking after
3514 sinking the last stmt in a BB.
3515
34f15725 35162007-10-01 Alexandre Oliva <aoliva@redhat.com>
3517
3518 PR middle-end/22156
3519 * tree-sra.c (struct sra_elt): Add in_bitfld_block.
3520 (sra_hash_tree): Handle BIT_FIELD_REFs.
3521 (sra_elt_hash): Don't hash bitfld blocks.
3522 (sra_elt_eq): Skip them in parent compares as well. Handle
3523 BIT_FIELD_REFs.
3524 (build_element_name_1): Handle BIT_FIELD_REFs.
3525 (instantiate_element): Propagate nowarn from parents. Create
3526 BIT_FIELD_REF for variables that are widened by scalarization.
3527 Gimple-zero-initialize all bit-field variables that are not
3528 part of parameters that are going to be scalarized on entry.
3529 (instantiate_missing_elements_1): Return the sra_elt.
3530 (canon_type_for_field): New.
3531 (try_instantiate_multiple_fields): New. Infer widest possible
3532 access mode from decl or member type, but clip it at word
3533 size, and only widen it if a field crosses an alignment
3534 boundary.
3535 (instantiate_missing_elements): Use them.
3536 (generate_one_element_ref): Handle BIT_FIELD_REFs.
3537 (scalar_bitfield_p): New.
3538 (sra_build_assignment): Optimize assignments from scalarizable
3539 BIT_FIELD_REFs. Use BITS_BIG_ENDIAN to determine shift
3540 counts.
3541 (REPLDUP): New.
3542 (sra_build_bf_assignment): New. Optimize assignments to
3543 scalarizable BIT_FIELD_REFs.
3544 (sra_build_elt_assignment): New. Optimize BIT_FIELD_REF
3545 assignments to full variables.
3546 (generate_copy_inout): Use the new macros and functions.
3547 (generate_element_copy): Likewise. Handle bitfld differences.
3548 (generate_element_zero): Don't recurse for blocks. Use
3549 sra_build_elt_assignment.
3550 (generate_one_element_init): Take elt instead of var. Use
3551 sra_build_elt_assignment.
3552 (generate_element_init_1): Adjust.
3553 (bitfield_overlap_info): New struct.
3554 (bitfield_overlaps_p): New.
3555 (sra_explode_bitfield_assignment): New. Adjust widened
3556 variables to account for endianness.
3557 (sra_sync_for_bitfield_assignment): New.
3558 (scalarize_use): Re-expand assignment to/from scalarized
3559 BIT_FIELD_REFs. Explode or sync needed members for
3560 BIT_FIELD_REFs accesses or assignments. Use REPLDUP.
3561 (scalarize_copy): Use REPLDUP.
3562 (scalarize_ldst): Move assert before dereference. Adjust EH
3563 handling.
3564 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
3565
887d52fb 35662007-10-01 Paolo Bonzini <bonzini@gnu.org>
3567
3568 * simplify-rtx.c (comparison_result, simplify_relational_operation_1):
3569 Rename CR_* constants to CMP_*. Fix spacing.
3570
120a0e58 35712007-10-01 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3572
3573 PR other/33585
3574 * Makefile.in (build_html_dir/gccinstall): gccinstall.texi needs
3575 to be processed with the special script doc/install.texi2html.
3576
682bb71b 35772007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3578
3579 * doc/invoke.texi (Wall): List the options enabled by Wall.
3580 (Wstrict-aliasing): Add missing @option.
3581
15d11d6f 35822007-09-30 Richard Sandiford <rsandifo@nildram.co.uk>
3583
3584 * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
3585 rather than gen_lowpart to change a register from DImode to DFmode.
3586 (mips_cannot_change_mode_class): Only allow FPRs to change mode if
3587 both FROM and TO are integer modes that are no bigger than 4 bytes.
3588 (mips_mode_ok_for_mov_fmt_p): New function.
3589 (mips_preferred_reload_class): Use it instead of FLOAT_MODE_P.
3590 (mips_secondary_reload_class): Tweak formatting and comments.
3591 Use reg_class_subset_p instead of direct comparisons with
3592 classes. Only allow direct FPR<->FPR moves for modes that
3593 satisfy mips_mode_ok_for_mov_fmt_p. Only allow loads and stores
3594 for 4- and 8-byte types. Handle reloads in which X is an FPR.
3595 * config/mips/mips.md (*movdi_gp32_fp64): Remove f<-f alternative.
3596 (*movdi_64bit): Likewise.
3597 (*movsi_internal): Likewise.
3598 (*movhi_internal): Likewise.
3599 (*movqi_internal): Likewise.
3600
52dfd149 36012007-09-30 Diego Novillo <dnovillo@google.com>
3602
3603 PR 33593
3604 * tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
3605 throw an exception.
3606
de92e851 36072007-09-30 Uros Bizjak <ubizjak@gmail.com>
3608
3609 PR tree-optimization/33597
3610 * tree-vect-analyze.c (vect_build_slp_tree): Check if optab handler
3611 for LSHIFT_EXPR and RSHIFT_EXPR is available for vec_mode.
3612
b10890ea 36132007-09-28 Uros Bizjak <ubizjak@gmail.com>
3614
3615 * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
3616 instead of variants of (!reload_in_progress && !reload_completed).
3617 (x86_expand_vector_move): Ditto.
3618
1fab06aa 36192007-09-28 Ollie Wild <aaw@google.com>
3620
3621 Revert
3622 2007-09-27 Ollie Wild <aaw@google.com>
3623
3624 * varasm.c (compare_constant): Removed call to
3625 lang_hooks.expand_constant.
3626 (copy_constants): Removed call to lang_hooks.expand_constant.
3627 (compute_reloc_for_constant): Removed call to
3628 lang_hooks.expand_constant.
3629 (output_addressed_constants): Removed call to
3630 lang_hooks.expand_constant.
3631 (constructor_static_from_elts_p): Removed call to
3632 lang_hooks.expand_constant.
3633 (output_constant): Removed calls to lang_hooks.expand_constant.
3634 * langhooks.h (struct lang_hooks): Removed field expand_constant.
3635 * langhooks-def.h (lhd_return_tree): Removed.
3636 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
3637 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
3638 * langhooks.c (lhd_return_tree): Removed.
3639
71cd778d 36402007-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3641
3642 PR target/33347
3643 * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
3644 argument to gen_selb.
3645
5351f426 36462007-09-28 Chao-ying Fu <fu@mips.com>
3647
3648 * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
3649 * doc/libgcc.texi (Fixed-point fractional library routines):
3650 Fix typos for neg and cmp functions.
3651
d069e0d3 36522007-09-28 Michael Matz <matz@suse.de>
3653
3654 PR rtl-optimization/33552
3655 * function.c (match_asm_constraints_1): Check for overlap in
3656 inputs and replace all occurences.
3657
6ae096d4 36582007-09-28 Richard Sandiford <rsandifo@nildram.co.uk>
3659
3660 * config/mips/mips.c (override_options): Fix comment typo.
3661
e0cbe6c1 36622007-09-28 Jie Zhang <jie.zhang@analog.com>
3663
3664 * config.gcc (bfin*-linux-uclibc*): Set extra_parts
3665 to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
3666 * config/bfin/t-bfin-linux (crti.o): Don't build.
3667 (crtn.o): Likewise.
3668 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
3669 * config/bfin/t-bfin-uclinux (crti.o): Don't build.
3670 (crtn.o): Likewise.
3671 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
3672
3a17037c 36732007-09-27 Ollie Wild <aaw@google.com>
3674
3675 * varasm.c (compare_constant): Removed call to
3676 lang_hooks.expand_constant.
3677 (copy_constants): Removed call to lang_hooks.expand_constant.
3678 (compute_reloc_for_constant): Removed call to
3679 lang_hooks.expand_constant.
3680 (output_addressed_constants): Removed call to
3681 lang_hooks.expand_constant.
3682 (constructor_static_from_elts_p): Removed call to
3683 lang_hooks.expand_constant.
3684 (output_constant): Removed calls to lang_hooks.expand_constant.
3685 * langhooks.h (struct lang_hooks): Removed field expand_constant.
3686 * langhooks-def.h (lhd_return_tree): Removed.
3687 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
3688 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
3689 * langhooks.c (lhd_return_tree): Removed.
3690
25b1440f 36912007-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3692
3693 PR middle-end/33436
3694 * expr.c (emit_group_load_1): Split constant double when destination
3695 length is half source length.
3696
6b65ee54 36972007-09-27 Richard Sandiford <rsandifo@nildram.co.uk>
3698
3699 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
3700 (mips_cpu_info): Add tune_flags.
3701 (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
3702 * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
3703 Remove end marker.
3704 (override_options): Remove deprecation code. Use branch-likely
3705 instructions for optimize_size or if the tuning flags do not
3706 suggest otherwise. Tweak warning.
3707 (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
3708
f48da45c 37092007-09-27 Matthias Klose <doko@ubuntu.com>
3710
3711 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
3712 multilib osdirname if it exists.
3713 * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
3714
72c59a18 37152007-09-27 Ian Lance Taylor <iant@google.com>
3716
3717 PR tree-optimization/33565
3718 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
3719 assignments of comparisons.
3720 * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
3721 parameter. Change caller. Defer overflow warnings around call to
3722 fold_binary.
3723 * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
3724 TREE_NO_WARNING is set on the statement.
3725 * tree-ssa-forwprop.c
3726 (tree_ssa_forward_propagate_single_use_vars): Don't test
3727 TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
3728 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3729
b3f9ab08 37302007-09-27 Joseph Myers <joseph@codesourcery.com>
3731
3732 * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
3733 reduce offset by units of 0x10000 for SPE vector modes or modes
3734 used with E500 double instructions.
3735
3bac3cce 37362007-09-04 Paolo Bonzini <bonzini@gnu.org>
3737
3738 * simplify-rtx.c (comparison_result): New.
3739 (simplify_const_relational_operation): Use it instead of the five
3740 "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
3741 Improve bounds-checking optimizations; remove subsumed POPCOUNT
3742 optimizations. Extract nonzero_address_p optimizations into a
3743 separate "if" together with optimizations where op1 is const0_rtx.
3744 Optimize comparing an IOR with zero. Simplify op0 RELOP op0 for
3745 floating-point arguments too when appropriate. Hoist test for ABS
3746 outside the final switch statement.
3747 * cse.c (fold_rtx): Don't look for an IOR equivalent of
3748 folded_arg0 if we found a constant equivalent. Remove
3749 transformations done in simplify-rtx.c for "op0 RELOP op0".
3750
b8c23db3 37512007-09-27 Jakub Jelinek <jakub@redhat.com>
3752
3753 * builtins.c (expand_builtin, expand_builtin_object_size,
3754 expand_builtin_memory_chk, maybe_emit_chk_warning,
3755 maybe_emit_sprintf_chk_warning): Use new %K format string specifier
3756 for diagnostics.
3757 * expr.c (expand_expr_real_1): Likewise.
3758 * langhooks-def.h (struct diagnostic_info): Add forward decl.
3759 (lhd_print_error_function): Add third argument.
3760 * langhooks.h (struct diagnostic_info): Add forward decl.
3761 (struct lang_hooks): Add third argument to print_error_function.
3762 * diagnostic.h (diagnostic_info): Add abstract_origin field.
3763 (diagnostic_last_function_changed, diagnostic_set_last_function): Add
3764 second argument.
3765 (diagnostic_report_current_function): Likewise.
3766 * toplev.c (announce_function): Pass NULL as second argument to
3767 diagnostic_set_last_function.
3768 * diagnostic.c (diagnostic_report_current_function): Add second
3769 argument, pass it as third argument to lang_hooks.print_error_function.
3770 (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
3771 to diagnostic_report_current_function.
3772 (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
3773 and message.abstract_origin.
3774 (verbatim): Initialize abstract_origin.
3775 * pretty-print.h (text_info): Add abstract_origin field.
3776 * pretty-print.c (pp_base_format): Handle %K.
3777 * langhooks.c (lhd_print_error_function): Add third argument. If
3778 diagnostic->abstract_origin, print virtual backtrace.
3779 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3780 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
3781 (init_dynamic_diag_info): Likewise.
3782
dfd4b3f5 37832007-09-26 David Daney <ddaney@avtrex.com>
3784
3785 PR target/33479
3786 * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
3787 sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
3788 sync_old_nand<mode>, sync_new_nand<mode>,
3789 sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
3790 Update length attributes.
3791 (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
3792 sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
3793 length attributes.
3794 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
3795 MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
3796 MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
3797 post-loop sync.
3798
62f5d47d 37992007-09-26 Richard Guenther <rguenther@suse.de>
3800
3801 PR tree-optimization/33563
3802 * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
3803 (get_kill_of_stmt_lhs): ... this. Re-structure. Handle
3804 aggregate stores.
3805 (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
3806 get_use_of_stmt_lhs.
3807
4f5b8f2a 38082007-09-26 Joseph Myers <joseph@codesourcery.com>
3809
3810 PR c/25309
3811 * c-common.c (complete_array_type): Diagnose too-large arrays and
3812 set type to error_mark_node.
3813
789aa951 38142007-09-26 Richard Guenther <rguenther@suse.de>
3815
3816 PR tree-optimization/30375
3817 PR tree-optimization/33560
3818 * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
3819 with calls.
3820
3821 Revert
3822 2006-05-22 Aldy Hernandez <aldyh@redhat.com>
3823
3824 * tree-ssa-dse.c (aggregate_vardecl_d): New.
3825 (dse_global_data): Add aggregate_vardecl field.
3826 (dse_possible_dead_store_p): New.
3827 Add prev_defvar variable.
3828 Allow immediate uses and previous immediate uses to differ
3829 if they are setting different parts of the whole.
3830 (get_aggregate_vardecl): New.
3831 (dse_record_partial_aggregate_store): New.
3832 (dse_whole_aggregate_clobbered_p): New.
3833 (dse_partial_kill_p): New.
3834 Call dse_maybe_record_aggregate_store().
3835 When checking whether a STMT and its USE_STMT refer to the
3836 same memory address, check also for partial kills that clobber
3837 the whole.
3838 Move some variable definitions to the block where they are used.
3839 (aggregate_vardecl_hash): New.
3840 (aggregate_vardecl_eq): New.
3841 (aggregate_vardecl_free): New.
3842 (aggregate_whole_store_p): New.
3843 (tree_ssa_dse): Initialize and free aggregate_vardecl.
3844 Mark which aggregate stores we care about.
3845
090493cb 38462007-09-25 DJ Delorie <dj@redhat.com>
3847
3848 PR target/33551
3849 * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
3850 XINT.
3851
09107dd0 38522007-09-25 Michael Meissner <michael.meissner@amd.com>
3853
f0228576 3854 PR target/33524
09107dd0 3855 * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
3856 gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
3857 for vector int32 -> int64 conversions. Don't write beyond the end
3858 of the allocated vector for int32 -> int64 conversions.
3859
50925cd0 38602007-09-25 Revital Eres <eres@il.ibm.com>
3861
3862 * config/rs6000/paired.h (paired_sel): New.
3863 * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
3864 (rs6000_expand_ternop_builtin): Pass zero const_double operand
3865 when expanding selv2sf.
3866 * config/rs6000/rs6000.h (rs6000_builtins): Add
3867 PAIRED_BUILTIN_SELV2SF4.
3868
f831c98f 38692007-09-25 Joseph Myers <joseph@codesourcery.com>
3870
3871 PR c/32295
3872 * c-typeck.c (default_conversion): Call require_complete_type
3873 before perform_integral_promotions.
3874 (build_unary_op): Call require_complete_type except for ADDR_EXPR.
3875 (build_c_cast): Call require_complete_type except for casts to
3876 void types.
3877 (convert_for_assignment): Call require_complete_type.
3878
2df0434f 38792007-09-25 Revital Eres <eres@il.ibm.com>
3880
3881 * config/spu/spu.md: Fix doloop pattern.
3882
49569132 38832007-09-25 Bernd Schmidt <bernd.schmidt@analog.com>
3884
3885 * config/bfin/bfin.c (expand_prologue_reg_save,
bc17fd99 3886 expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs
3887 and ASTAT moved here...
49569132 3888 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
3889 ... from here. New argument ALL; callers changed.
3890 (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
3891 (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
3892 have the "saveall" attribute.
3893
5b83677d 38942007-09-25 Hans-Peter Nilsson <hp@bitrange.com>
3895
6d1f3d31 3896 * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
3897 bogus target macro.
3898 (INCOMING_REGNO, OUTGOING_REGNO): Define.
3899 * config/mmix/mmix.c (mmix_opposite_regno): New function.
3900 * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
3901
5b83677d 3902 * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
3903 with REG_P tests before REGNO access.
3904
768b23ad 39052007-09-24 DJ Delorie <dj@redhat.com>
3906
3907 PR target/31482
3908 * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
3909 constraint.
3910 (movqicc_<code>_<mode>): Likewise.
3911 (movhicc_<code>_<mode>): Likewise.
3912
f09e0f74 39132007-09-24 Rask Ingemann Lambertsen <rask@sygehus.dk>
3914
3915 PR target/33184
3916 * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
3917 register for reload.
3918
ac48d03e 39192007-09-24 Danny Smith <dannysmith@user.sourceforge.net>
3920
3921 PR c++/14688
3922 * config/i386/i386.c (ix86_comp_type_attributes): Check
3923 METHOD_TYPE too.
3924
2e75116d 39252007-09-24 Roman Zippel <zippel@linux-m68k.org>
3926
3927 * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
3928 "move.l %a4,%a4" to produce nops.
3929 * config/m68k/m68k.c (override_options): Reset align options,
3930 if neccessary align macro isn't avaible.
3931
e64adf14 39322007-09-24 Roman Zippel <zippel@linux-m68k.org>
5d6f9661 3933
3934 config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
3935
39362007-09-24 Roman Zippel <zippel@linux-m68k.org>
3937
e64adf14 3938 * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
3939 the basic block.
3940 * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
3941 reload is completed.
3942 (peephole pattern): Convert most of them to RTL peephole pattern.
3943
e680c1ac 39442007-09-24 Roman Zippel <zippel@linux-m68k.org>
3945
3946 * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
3947 (moved from fp compare patterns).
3948 * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
3949 Cleanup predicates to relieve reload.
3950 (conditional_trap): Reject conditional trap with fp condition.
69a83716 3951 * config/m68k/predicates.md (fp_src_operand): New, reject
e680c1ac 3952 certain constants early.
3953
053a34cc 39542007-09-24 Roman Zippel <zippel@linux-m68k.org>
3955
69a83716 3956 * final.c (final_scan_insn): Remove accidentally duplicated code.
053a34cc 3957
13c96421 39582007-09-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3959
3960 * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
3961 Allow --with-tune=cell and --with-cpu=cell.
3962
7679d16d 39632007-09-24 David Edelsohn <edelsohn@gnu.org>
3964
3965 * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
3966 * config/rs6000/rs6000.opt (swdiv): Change option to ...
3967 (recip): this.
3968 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
3969 function.
3970 (TARGET_BUILTIN_RECIPROCAL): Use it.
3971 (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
3972 (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
3973 (rs6000_emit_swrsqrtsf): New.
3974 * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
3975 rsqrtf.
3976 * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
3977 (divsf3): Remove swdiv support.
3978 (recipsf3): New.
3979 (rsqrtsf2): New.
3980 (rsqrt_internal1): New.
3981 (divdf3): Remove swdiv support.
3982 (reciptdf3): New.
3983
743f8dd1 39842007-09-24 Jakub Jelinek <jakub@redhat.com>
3985
3986 PR c++/33506
3987 * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
3988 field.
3989 * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
3990 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
3991 * tree.c (type_hash_eq): For FUNCTION_TYPE use
3992 lang_hooks.type.type_hash_eq in addition to generic tests.
3993
4a5b1b7c 39942007-09-24 Pranav Bhandarkar <pranav.bhandarkar@celunite.com>
3995 Ramana Radhakrishnan <ramana@hercules.pun.celunite.com>
3996
3997 * tree-inline.h (eni_weights): Add field target_builtin_cost to
3998 reflect the cost per call to a target specific builtin.
3999 * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
4000 call to a target specific builtin, then use target_builtin_call_cost.
4001 (init_inline_once): Initialize target_builtin_call_cost field.
4002
0be10cf2 40032007-09-24 Kai Tietz <kai.tietz@onevision.com>
4004
987b8c35 4005 PR middle-end/33472
4006 * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
4007 complex types.
0be10cf2 4008
0c34309d 40092007-09-23 H.J. Lu <hongjiu.lu@intel.com>
4010
4011 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
4012 * configure: Regenerated.
4013
4486d2b7 40142007-09-23 Ollie Wild <aaw@google.com>
4015
987b8c35 4016 * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
4017 operand.
4486d2b7 4018 (get_pointer_modulus_and_residue): New function.
4019
ee37867c 40202007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4021
4022 * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
4023 combine an SC return value into a single register.
4024
652f626b 40252007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4026
4027 * opth-gen.awk (target_flags_explicit): Declare.
4028 * toplev.h (target_flags_explicit): Delete declaration.
4029 * toplev.c (target_flags): Likewise.
4030 * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
4031 (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
4032 Never return true for TARGET_MIPS16.
4033 * config/mips/mips.c (mips_llsc): Delete.
4034 (mips_handle_option): Remove -mllsc handling.
4035 (mips_strip_unspec_address): Tweak comment.
4036 * config/mips/mips.opt (mllsc): Use a target mask.
4037
eade63c3 40382007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4039
4040 * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
4041 word_mode as well as Pmode.
4042
2973927c 40432007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4044
4045 * function.c (assign_parm_setup_block): Explicitly convert BLKmode
4046 parameters from word_mode to the subword type if such a truncation
4047 is not a no-op.
4048
76b96485 40492007-09-23 Jakub Jelinek <jakub@redhat.com>
4050
4051 * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
4052 * configure: Regenerated.
4053
2ea8d04e 40542007-09-23 Jan Hubicka <jh@suse.cz>
4055
4056 * params.def (INLINE_CALL_COST): Set to 12.
4057 * invoke.texi (inline-call-cost): Update default value.
4058
aa881249 40592007-09-23 Eric Botcazou <ebotcazou@adacore.com>
4060
4061 * config/alpha/alpha.md (movti): Use operand_subword for the split.
4062
11dd7ac1 40632007-09-23 Ayal Zaks <zaks@il.ibm.com>
4064 Revital Eres <eres@il.ibm.com>
4065
4066 * modulo-sched.c (doloop_register_get): Rewrite the loop which
4067 checks whether the count_reg is found outside the control part.
4068
d4cf8ff7 40692007-09-23 Jakub Jelinek <jakub@redhat.com>
4070
10fc867f 4071 * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
4072 instead of checking CALL_EXPR_FN directly to test for builtins.
4073 If error or warning attributes are present, print
4074 error resp. warning.
4075 * c-common.c (handle_error_attribute): New function.
4076 (c_common_attribute_table): Add error and warning
4077 attributes.
4078 * doc/extend.texi: Document error and warning attributes.
4079
1b16fc45 4080 * tree.h (block_nonartificial_location): New prototype.
4081 * tree.c (block_nonartificial_location): New function.
4082 * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
4083 if artificial attribute is present on abstract inline decl.
4084 * c-common.c (handle_artificial_attribute): New function.
4085 (c_common_attribute_table): Add artificial attribute.
4086 * final.c (override_filename, override_linenum): New variables.
4087 (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
4088 and override_linenum if inside of a block inlined from
4089 __attribute__((__artificial__)) function.
4090 (notice_source_line): Honor override_filename and override_linenum.
4091 * doc/extend.texi: Document __attribute__((__artificial__)).
4092 * config/i386/emmintrin.h: Add __artificial__ attribute to
4093 all __always_inline__ functions.
4094 * config/i386/mmintrin.h: Likewise.
4095 * config/i386/tmmintrin.h: Likewise.
4096 * config/i386/mm3dnow.h: Likewise.
4097 * config/i386/pmmintrin.h: Likewise.
4098 * config/i386/ammintrin.h: Likewise.
4099 * config/i386/xmmintrin.h: Likewise.
4100 * config/i386/smmintrin.h: Likewise.
4101 * config/i386/bmmintrin.h: Likewise.
4102 * config/i386/mmintrin-common.h: Likewise.
4103
d4cf8ff7 4104 PR middle-end/28755
4105 * expr.c (expand_constructor): New function.
4106 (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
4107 (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
4108 CONSTRUCTOR.
4109
5630bb44 41102007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4111
4112 * config/mips/mips.c (dump_constants_1): Generalize to include
4113 fractional and accumulator modes.
4114
c19eff17 41152007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
4116
4117 * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
4118 * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
4119 flags for MIPS16.
4120 (override_options): Check TARGET_HARD_FLOAT_ABI instead of
4121 TARGET_HARD_FLOAT when testing whether -mpaired-single is
4122 supported.
4123 (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
4124 TARGET_DSP.
4125 * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
4126 TARGET_DSPR2.
4127 * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
4128 (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
4129 TARGET_HARD_FLOAT.
4130 (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
4131 ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
4132 * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
4133 throughout.
4134 * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
4135 TARGET_HAS_DSPR2.
4136 * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
4137 instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
4138 * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
4139
2fdd6488 41402007-09-22 Jason Merrill <jason@redhat.com>
4141
4142 PR c++/19407
4143 * attribs.c (lookup_attribute_spec): Split out...
4144 (decl_attributes): From here.
4145 * tree.h: Declare it.
4146
c9342b72 41472007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
4148
4149 * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
4150
f5b12219 41512007-09-22 Eric Botcazou <ebotcazou@adacore.com>
4152
4153 * tree-inline.c (remap_type_1): Correctly chain variants.
4154
a69a910a 41552007-09-22 Richard Guenther <rguenther@suse.de>
4156
4157 PR tree-optimization/33146
4158 * fold-const.c (fold_binary): Use the original tree
4159 for negating.
4160 * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
4161 also changes "sign".
4162
8a1586ba 41632007-09-22 Eric Botcazou <ebotcazou@adacore.com>
4164
4165 PR target/32325
4166 * except.c (finish_eh_generation): Call commit_edge_insertions if
4167 there are insns queued on the entry edge.
4168 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
4169 the entry edge.
4170
9c7f6198 41712007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
4172
4173 * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
4174
eb4241fc 41752007-09-19 Michael Meissner <michael.meissner@amd.com>
4176
69a83716 4177 * config/i386/i386.c: Delete trailing whitespace.
4178 * config/i386/i386.h: Ditto.
4179 * config/i386/bmmintrin.h: Ditto.
4180 * config/i386/sync.md: Ditto.
4181 * config/i386/ppro.md: Ditto.
4182 * config/i386/mmx.md: Ditto.
4183 * config/i386/constraints.md: Ditto.
4184 * config/i386/sse.md: Ditto.
4185 * config/i386/athlon.md: Ditto.
4186 * config/i386/i386.md: Ditto.
eb4241fc 4187
5da1e356 41882007-09-21 Richard Guenther <rguenther@suse.de>
4189
4190 PR tree-optimization/33508
4191 * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
4192 quadratic loop by keeping a bitmap of variables we have
4193 to clobber all subvariables for.
4194 (set_initial_properties): Likewise.
4195
1fbe0481 41962007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
4197
4198 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
4199
84786a68 42002007-09-20 Nigel Stephens <nigel@mips.com>
4201 Chao-ying Fu <fu@mips.com>
4202
4203 * c-decl.c (finish_declspecs): When _Sat is used without
4204 _Fract or _Accum, set the default type to cts_fract.
4205 This avoids a warning of "type defaults to int".
4206
c17154eb 42072007-09-20 Joseph Myers <joseph@codesourcery.com>
4208
4209 * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
4210 bit-fields wider than one bit.
4211
550ec1e0 42122007-09-20 Jakub Jelinek <jakub@redhat.com>
4213
029dbf29 4214 PR debug/33316
4215 * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
4216 DECL_NAME.
4217 * dbxout.c (dbxout_type): Likewise.
4218
550ec1e0 4219 PR c/33238
4220 PR c/27301
4221 * gimplify.c (gimplify_vla_decl): New function.
4222 (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
4223 Call it.
4224 (gimplify_target_expr): Handle variable length TARGET_EXPRs.
4225
3013c2c7 42262007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
4227
4228 * doc/invoke.texi (-minterlink-mips16): Document.
4229 * config/mips/mips.opt (minterlink-mips16): New option.
4230 * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
4231 -minterlink-mips16
4232
3961e70d 42332007-09-20 Joseph Myers <joseph@codesourcery.com>
4234
4235 * doc/extend.texi (Attribute Syntax): Remove old speculative
4236 future direction.
4237
5d932349 42382007-09-20 Mark Shinwell <shinwell@codesourcery.com>
4239
4240 * combine.c: Include cgraph.h.
4241 (setup_incoming_promotions): Rework to allow more aggressive
4242 elimination of sign extensions when all call sites of the
4243 current function are known to lie within the current unit.
4244
597d5470 42452007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
4246
4247 * dse.c (find_shift_sequence): No-op rework of control flow.
4248
504d7bfe 42492007-09-19 Richard Sandiford <rsandifo@nildram.co.uk>
4250
4251 * config/mips/mips.c (build_mips16_call_stub): Tidy. Fix second
4252 GPR for DCmode on 64-bit targets. Remove redundant fallback.
4253
571057ed 42542007-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
4255
4256 * cfgexpand.c (dump_stack_var_partition): Use the correct
4257 index for the offset.
4258
66ce45bd 42592007-09-19 Joseph Myers <joseph@codesourcery.com>
4260
4261 * config/mips/sde.h: Switch to GPLv3.
4262
2eaed58e 42632007-09-19 Eric Botcazou <ebotcazou@adacore.com>
4264
4265 * tree-sra.c (decide_block_copy): Decide if there are groups.
4266
4bea814f 42672007-09-19 Roman Zippel <zippel@linux-m68k.org>
4268
4269 * config/m68k/m68k.c (output_move_himode): Remove jump table
4270 recognition.
4271 config/m68k/m68k.md (lea): Likewise.
4272 * config/m68k/m68k.c (print_operand_address): Use simple pc
4273 relative addressing.
4274
0cb73417 42752007-09-19 Bernd Schmidt <bernd.schmidt@analog.com>
4276
4277 * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
987b8c35 4278 * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
4279 default definition.
0cb73417 4280 (asm_insn_count): Pass template as second argument to it.
4281 * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
4282 * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
4283 * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
4284 * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
4285 * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
4286 (sh_insn_length_adjustment): Pass template as second argument to it.
4287 * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
4288
15fdc4e1 4289 * config/bfin/bfin.md (define_asm_attributes): New.
4290
709b2de5 42912007-09-19 Jie Zhang <jie.zhang@analog.com>
4292
4293 * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
4294 to tm_file.
4295 * config/bfin/print-sysroot-suffix.sh: New.
4296 * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
4297 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
4298 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
4299 * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
4300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
4301 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
4302 * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
4303 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
4304 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
4305 (linux-sysroot-suffix.h): New target.
4306 * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
4307 (mspecld-anomaly): Likewise.
4308 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
4309 (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
4310 BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
4311 BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
4312 (bfin_si_revision): Declare.
4313 (bfin_workarounds): Declare.
4314 (WA_SPECULATIVE_LOADS): Define.
4315 (ENABLE_WA_SPECULATIVE_LOADS): Define.
4316 (WA_SPECULATIVE_SYNCS): Define.
4317 (ENABLE_WA_SPECULATIVE_SYNCS): Define.
4318 * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
4319 (LIB_SPEC): Add %s to the linker scripts.
4320 Use proper linker script for bf522, bf525, bf527,
4321 bf538, bf539, bf542, bf544, bf548, and bf549.
4322 * config/bfin/bfin.c (bfin_si_revision): Define.
4323 (bfin_workarounds): Define.
4324 (struct bfin_cpu): New.
4325 (bfin_cpus): New.
4326 (bfin_handle_option): Handle silicon revision part of -mcpu option.
4327 (override_options): Set bfin_workarounds.
4328 (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
4329 ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
4330 ENABLE_WA_SPECULATIVE_LOADS.
4331 (bfin_reorg): Likewise.
4332 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4333 macros for bf522, bf525, bf527, bf538, bf539,
4334 bf542, bf544, bf548, and bf549.
4335 Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
4336 Don't define __ID_SHARED_LIB__ when -msep-data.
4337 (TARGET_DEFAULT): Define as 0.
4338 (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
4339 * doc/invoke.texi (Blackfin Options): Document silicon
4340 revision part of -mcpu option and it now accepts bf522, bf525,
4341 bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
4342
a80f1c6c 43432007-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4344
4345 * alias.c (memory_modified_1): Deconstify.
4346 (memory_modified_in_insn_p): Don't use const_note_stores.
4347 * rtl.h (const_note_stores): Delete.
4348 * rtlanal.c (const_note_stores): Likewise.
4349
73b7e503 43502007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
4351
4352 * dse.c (find_shift_sequence): Temporarily revert to forbidding
4353 word shifts.
4354
e777906b 43552007-09-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
4356
4357 PR target/33388
4358 PR target/33397
4359 * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
4360 (addsi_small_int): Likewise.
4361 (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
4362 (one_cmplsi2): Likewise.
4363 (negsi2): Delete.
4364 (enter_func): Expand insn using hard_frame_pointer_rtx and
4365 stack_pointer_rtx.
4366 (*enter_func): New.
4367 * config/fr30/fr30.c (fr30_expand_prologue): Check for
4368 hard_frame_pointer_rtx instead of using REGNO() check.
4369 Properly sign extend GEN_INT() argument.
4370
a1f3c748 43712007-09-18 Roman Zippel <zippel@linux-m68k.org>
4372
4373 * config/m68k/m68k.c (override_options): Remove USE_GAS,
4374 use %. syntax.
4375 (output_dbcc_and_branch, output_scc_di): Replace all jbcc
4376 alternatives with just jcc.
4377 * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
4378 bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
4379 bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
4380 dbge_hi, dbge_si): Likewise.
4381
4f747969 43822007-09-18 Roman Zippel <zippel@linux-m68k.org>
4383
4384 * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
4385 bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
4386 bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
4387 bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
4388 bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
4389
12877e83 43902007-09-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4391
4392 * config/m68k/m68k-devices.def (51qe): New device.
4393 * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit. Add it
4394 to all uses of FL_FOR_isa_c for compatibility.
4395 (all_microarchs): Add cfv1 microarchitecture.
4396 (m68k_handle_option): Handle m51qe option.
4397 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
4398 (TUNE_CFV1): New macro.
4399 (enum uarch_type): Add ucfv1.
4400 * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
4401
6880b2a6 44022007-09-18 Richard Guenther <rguenther@suse.de>
4403
4404 PR tree-optimization/31863
4405 * tree-ssa-structalias.c (create_variable_info_for): Always
4406 free the fieldstack.
4407
b0a767c1 44082007-09-18 Dorit Nuzman <dorit@il.ibm.com>
4409
4410 * opts.c (decode_options): Enable vectorization under -O3.
4411
5dbdbadc 44122007-09-18 Richard Guenther <rguenther@suse.de>
4413
4414 PR tree-optimization/33340
4415 * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
4416 SSA_NAMEs that occur in abnormal PHI nodes.
4417
0ebbfc91 44182007-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4419
4420 * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
4421 Don't use const_get_call_expr_in.
4422 * tree-gimple.c (const_get_call_expr_in): Delete.
4423 * tree-gimple.h (const_get_call_expr_in): Likewise.
4424
3e3659e7 44252007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
4426
4427 * df-scan.c (df_notes_rescan): Do nothing if the instruction does
4428 not yet have a basic block.
4429 * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
4430
532cead7 44312007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
4432
4433 * config/mips/mips.c (mips_file_start): Add ".previous" directives
4434 to both ".section"s.
4435
370bb1c3 44362007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
4437
4438 * config/mips/mips.c (mips_output_mi_thunk): Use
4439 mips_function_ok_for_sibcall and const_call_insn_operand
4440 to determine if a direct sibcall is allowed. Use
4441 mips_classify_symbol to determine a global pointer is needed.
4442
b751f1b9 44432007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
4444
4445 * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
4446
10535d4f 44472007-09-17 Chao-ying Fu <fu@mips.com>
4448 Nigel Stephens <nigel@mips.com>
4449
4450 * config/fixed-bit.h: New file.
4451 * config/fixed-bit.c: New file.
4452 * doc/libgcc.texi (Fixed-point fractional library routines): New node.
4453
6d54e886 44542007-09-18 Jakub Jelinek <jakub@redhat.com>
4455
99dc6a64 4456 * c-format.h (format_kind_info): Add alloc_char field.
4457 * c-format.c (scanf_flag_specs): Add 'm'.
4458 (scanf_flag_pairs): Add 'a', 'm' pair.
4459 (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
4460 (format_types_orig): Add alloc_char fields.
4461 (check_format_info_main): Rename aflag to alloc_flag.
4462 Handle fki->alloc_char. modifier after width and before length
4463 modifiers. Move FMT_FLAG_SCANF_A_KLUDGE handling before
4464 length modifiers as well.
4465 * config/sol2-c.c (solaris_format_types): Add alloc_char field.
4466
6d54e886 4467 PR middle-end/33423
4468 * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
4469 returned by build_call_expr.
4470
df210f09 44712007-09-17 Eric Botcazou <ebotcazou@adacore.com>
4472
4473 * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
4474 NULL for variable-sized records too.
4475 (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
4476
72d88545 44772007-09-17 Tom Tromey <tromey@redhat.com>
4478
4479 * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
4480 (c_builtin_function): Likewise.
4481 (grokdeclarator): Likewise.
4482
c69c2a10 44832007-09-17 Zdenek Dvorak <ook@ucw.cz>
4484
4485 PR rtl-optimization/26449
4486 * loop-invariant.c (move_invariant_reg): Do not use force_operand.
4487 (seq_insns_valid_p): Removed.
4488
34d1dd5d 44892007-09-17 Eric Botcazou <ebotcazou@adacore.com>
4490
4491 * tree-nomudflap.c (gate_mudflap): New static function.
4492 (pass_mudflap_1): Use it as gate function.
4493 (pass_mudflap_2): Likewise.
4494
08cc7084 44952007-09-17 Jan Hubicka <jh@suse.cz>
4496
4497 PR middle-end/33348
4498 PR target/33406
4499 * loop-invariant.c (move_invariant_reg): Unshare sequence.
4500
a61b0edb 45012007-09-17 Victor Kaplansky <victork@il.ibm.com>
4502
4503 PR tree-optimization/33319
4504 * tree-vect-analyze.c (vect_same_range_drs): New.
4505 (vect_vfa_range_equal): New.
4506 (vect_is_duplicate_ddr): Removed.
4507 (vect_mark_for_runtime_alias_test): Do not perform marking when
4508 optimizing for size or max_param for alias checking is zero.
4509 Move the function before vect_analyze_data_ref_dependence.
4510 (vect_analyze_data_ref_dependence): Add call to
4511 vect_mark_for_runtime_alias_test in two cases when dependence
4512 is not clear.
4513 (vect_analyze_data_ref_dependences): Do not call to
4514 vect_mark_for_runtime_alias_test.
4515 (vect_prune_runtime_alias_test_list): New.
4516 (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
4517 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
4518 Update vec_outside_cost.
4519 (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
4520 (vect_create_cond_for_alias_checks): Build the base address of data
4521 reference from DR_GROUP_FIRST_DR.
4522 (vect_loop_versioning): New.
4523 (vect_transform_loop): Add a call to vect_loop_versioning.
4524 Remove factored out code.
4525
b0018e0e 45262007-09-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4527
4528 PR middle-end/33273
4529 * expr.c (store_expr): Call adjust_address to change mode of dest_mem
4530 to BLKmode.
4531
af97461e 45322007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
4533
4534 * dse.c (find_shift_sequence): Allow word as well as subword shifts.
4535 Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
4536 Fix the call to insn_rtx_cost. Skip access sizes that require a
4537 real truncation of the store register. Use convert_move instead
4538 of gen_lowpart when narrowing the result.
4539 (replace_read): Use convert_move instead of gen_lowpart when
4540 narrowing the store rhs.
4541
2d34ae57 45422007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
4543
4544 * config/mips/mips.md (SHORT): Fix long line.
4545 (SUBDI): New mode iterator. Extend the shift-and-truncate insns
0e7ed103 4546 to QImode and HImode.
2d34ae57 4547
223ccc42 45482007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
4549
4550 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
4551
28c92cbb 45522007-09-15 Zdenek Dvorak <ook@ucw.cz>
4553
4554 * tree-parloops.c: New file.
4555 * tree-ssa-operands.h (free_stmt_operands): Declare.
4556 * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
4557 block.
4558 * tree-pass.h (pass_parallelize_loops): Declare.
4559 * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
4560 virtual operands.
4561 (build_omp_regions_1): Allow analysing just a single OMP region and
4562 its subregions.
4563 ( build_omp_regions_root, omp_expand_local): New functions.
4564 (build_omp_regions): Add argument to build_omp_regions_1 call.
4565 * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
4566 autoparallelization is run.
4567 * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
4568 * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
4569 pass_parallelize_loops): New.
4570 * common.opt (ftree-parallelize-loops): New.
4571 * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
4572 parallelize_loops): Declare.
4573 (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
4574 * Makefile.in (tree-parloops.o): Added.
4575 * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
4576 New functions.
4577 (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
4578 (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
4579 one extra edge as well.
4580 (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
4581 Use VEC_free to free doms vector.
4582 (move_block_to_fn): Update loop info. Remove phi nodes for virtual
4583 operands. Recompute operand caches in the new function.
4584 (move_sese_region_to_fn): Update loop info.
4585 * passes.c (init_optimization_passes): Add pass_parallelize_loops.
4586 * tree-ssa-operands.c (free_stmt_operands): New function.
4587
4588 * doc/passes.texi: Document autoparallelization.
4589 * doc/invoke.texi (-ftree-parallelize-loops): New option.
4590
eb46b0b6 45912007-09-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4592
4593 PR target/33062
987b8c35 4594 * pa.c (function_value): Use GET_MODE_BITSIZE instead of
4595 TYPE_PRECISION.
eb46b0b6 4596
e88ae7fd 45972007-09-15 Dorit Nuzman <dorit@il.ibm.com>
4598
4599 * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if
4600 the VEC is not NULL.
4601 (vectorizable_type_demotion, vectorizable_type_promotion): Check that
4602 get_vectype_for_scalar_type succeeded.
4603 (vectorizable_conversion): Likewise.
4604
6eb6bd26 46052007-09-14 Jan Hubicka <jh@suse.cz>
4606
4607 * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
4608 TARGET_64BIT.
4609
5523d6b0 46102007-09-14 Uros Bizjak <ubizjak@gmail.com>
4611
4612 PR target/33438
987b8c35 4613 * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
4614 register when operands[2] equals operands[1].
5523d6b0 4615 (remainderxf3): Ditto.
4616
07e0e650 46172007-09-14 Sandra Loosemore <sandra@codesourcery.com>
4618 Nigel Stephens <nigel@mips.com>
4619
4620 * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
4621 * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
4622 (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
4623 declaration.
4624 (_Unwind_ForcedUnwind): Likewise.
4625 (_Unwind_Resume): Likewise.
4626 (_Unwind_Resume_or_Rethrow): Likewise.
4627 (_Unwind_Backtrace): Likewise.
4628 (_Unwind_SjLj_RaiseException): Likewise.
4629 (_Unwind_SjLj_ForcedUnwind): Likewise.
4630 (_Unwind_SjLj_Resume): Likewise.
4631 (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
4632 * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
4633 to definition.
4634 (_Unwind_ForcedUnwind): Likewise.
4635 (_Unwind_Resume): Likewise.
4636 (_Unwind_Resume_or_Rethrow): Likewise.
4637 (_Unwind_Backtrace): Likewise.
4638 * unwind-compat.c (_Unwind_Backtrace): Likewise.
4639 (_Unwind_ForcedUnwind): Likewise.
4640 (_Unwind_RaiseException): Likewise.
4641 (_Unwind_Resume): Likewise.
4642 (_Unwind_Resume_or_Rethrow): Likewise.
4643
4644 * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
4645 nomips16 mode when IN_LIBGCC2 with hard float.
4646
0843b729 46472007-09-14 Richard Sandiford <rsandifo@nildram.co.uk>
4648
4649 * config/mips/sdemtk.opt: Update to GPLv3.
4650 * config/mips/sdemtk.h: Likewise.
4651
487874ac 46522007-09-14 Nigel Stephens <nigel@mips.com>
4653
4654 * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
4655 MIPS_ISA_DEFAULT appropriately. Don't make soft-float the default
4656 for mipsisa32-*-linux*.
4657
68c9bc25 46582007-09-14 Nigel Stephens <nigel@mips.com>
4659 David Ung <davidu@mips.com>
4660 Thiemo Seufer <ths@mips.com>
4661 Richard Sandiford <richard@codesourcery.com>
4662
4663 * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
4664 * configure.ac: Add a mipssde threading type.
4665 * configure: Regenerate.
4666 * config/mips/sdemtk.h: New file.
4667 * config/mips/t-sdemtk: Likewise.
4668 * config/mips/sdemtk.opt: Likewise.
4669 * gthr-mipssde.h: Likewise.
4670 * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
4671 * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
4672 (MIPS_ICACHE_SYNC): New macro, split from ...
4673 * config/mips/mips.md (clear_cache): ...here.
4674 * config/mips/mips.c (mips_save_reg_p): Check
4675 MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
4676 (build_mips16_function_stub): Use targetm.strip_name_encoding.
4677 (build_mips16_call_stub): Likewise.
4678
c6e55e6e 46792007-09-14 Richard Sandiford <richard@codesourcery.com>
4680
4681 * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
4682
fa83ecdd 46832007-09-14 Jakub Jelinek <jakub@redhat.com>
4684
4685 PR target/32337
4686 * config/ia64/ia64.c (find_gr_spill): Don't decrement
4687 current_frame_info.n_local_regs. Don't return emitted local
4688 regs.
4689 (ia64_compute_frame_size): Improve unwind hack to put
4690 RP, PFS, FP in that order by allowing some of the registers
4691 been already emitted, as long as they are emitted to the
4692 desired register.
4693
d63447f9 46942007-09-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4695
4696 * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
4697 vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
4698 vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
4699
5c9051a4 47002007-09-13 Eric Christopher <echristo@apple.com>
4701 Kenneth Zadeck <zadeck@naturalbridge.com>
4702
4703 * dse.c (find_shift_sequence): New function.
4704 (replace_read): Add case to remove read if it requires shift.
4705 * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
4706
8115b8be 47072007-09-13 Tom Tromey <tromey@redhat.com>
4708
4709 * c-common.c (fname_as_string): Update.
4710 * c-parser.c (c_parser) <lex_untranslated_string>: New field.
4711 (c_lex_one_token): Update. Add 'parser' argument.
4712 (c_parser_simple_asm_expr): Update.
4713 (c_parser_attributes): Update.
4714 (c_parser_asm_statement): Update.
4715 (c_parser_asm_operands): Update.
4716 (c_parser_peek_token): Update.
4717 (c_parser_peek_2nd_token): Update.
4718 * c-lex.c (c_lex_string_translate): Remove.
4719 (c_lex_return_raw_strings): Likewise.
4720 (c_lex_with_flags): Added 'lex_flags' argument.
4721 (lex_string): Added 'translate' argument.
4722 * c-pragma.h (c_lex_with_flags): Update.
4723 (c_lex_string_translate, c_lex_return_raw_strings): Remove.
4724 (C_LEX_STRING_NO_TRANSLATE): New define.
4725 (C_LEX_RAW_STRINGS): Likewise.
4726
44395948 47272007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
4728
4729 From Jie Zhang:
4730 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
4731 BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
4732 BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
4733 (bfin_init_builtins): Initialize __builtin_bfin_ones,
4734 __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
4735 __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
4736 __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
4737 __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
4738 __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
4739 (bdesc_1arg): Add __builtin_bfin_ones.
4740 (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
4741 __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
4742 and __builtin_bfin_csqu_fr16.
4743 * config/bfin/bfin.md (UNSPEC_ONES): New constant.
4744 (ones): New define_insn.
4745 (ssaddhi3_parts): New define_insn.
4746 (sssubhi3_parts): New define_insn.
4747 (flag_mulhi_parts): New define_insn.
4748
fd5e1dfe 47492007-09-13 Seongbae Park <seongbae.park@gmail.com>
4750
4751 * common.opt (femit-class-debug-always): Turn off by default.
4752
e99611da 47532007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
4754
4755 * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
4756 * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
4757
f9026570 47582007-09-13 James E. Wilson <wilson@specifix.com>
4759
4760 PR tree-optimization/33389
4761 * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
4762 then set build_loads before returning.
4763
c865346a 47642007-09-13 Sandra Loosemore <sandra@codesourcery.com>
4765 David Ung <davidu@mips.com>
4766
4767 * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
4768 {d}addiu and a negative immediate such that it works with MIPS16
4769 instructions.
4770
e20ae32f 47712007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4772
4773 PR bootstrap/33418
4774 * configure.ac (ld_vers): Support Linux linker.
4775 * configure: Regenerated.
4776
95518434 47772007-09-13 Richard Sandiford <richard@codesourcery.com>
4778 Sandra Loosemore <sandra@codesourcery.com>
4779
4780 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
4781 (SYMBOL_REF_MIPS16_FUNC_P): Delete.
4782 * config/mips/mips.c (mips_attribute_table): Turn mips16 and
4783 nomips16 into decl attributes.
4784 (TARGET_INSERT_ATTRIBUTES): Override.
4785 (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
4786 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
4787 (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
4788 (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
4789 (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
4790 (mips_use_mips16_mode_p): Reimplement as a function that takes
4791 a decl and considers only decl attributes. If the decl is nested
4792 function, use its parent attributes.
4793 (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
4794 instead of SYMBOL_REF_MIPS16_FUNC_P.
4795 (mips_set_mips16_mode): Move call to sorry here from old
4796 mips_use_mips16_mode_p.
4797 (mflip_mips16_entry): New structure.
4798 (mflip_mips16_htab): New variable.
4799 (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
4800 (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
4801 (mips_merge_decl_attributes): New function.
4802 (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
4803 Use mips_use_mips16_mode_p.
4804 (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
4805 SYMBOL_REF_MIPS16_FUNC_P.
4806 (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
4807
9a21152d 48082007-09-13 Richard Sandiford <richard@codesourcery.com>
4809
4810 * c-parser.c (c_parser_struct_declaration): Check for a null return.
4811
e8105390 48122007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4813
4814 PR driver/33309
4815 * gcc.c (xputenv): Make argument const, and use CONST_CAST.
4816
448e99f5 48172007-09-12 Michael Meissner <michael.meissner@amd.com>
4818 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4819 Tony Linthicum <tony.linthicum@amd.com>
4820
4821 * tree.h (function_args_iterator): New type to iterate over
4822 function arguments.
4823 (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
4824 function arguments providing a pointer to the argument.
4825 (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
4826 function arguments providing the argument.
4827 (function_args_iter_init): Inline function to initialize
4828 function_args_iterator.
4829 (function_args_iter_cond_ptr): Inline function to return the next
4830 pointer to hold the argument.
4831 (function_args_iter_cond): Inline function to return the next
4832 argument.
4833 (function_args_iter_cond_next): Advance the function args
4834 iterator.
4835 (stdarg_p): New function, return true if variable argument
4836 function.
4837 (prototype_p): New function, return true if function is
4838 prototyped.
4839 (function_args_count): New function, count the number of arguments
4840 of a function.
4841
4842 * tree.c (stdarg_p): New function, return true if variable
4843 argument function.
4844 (prototype_p): New function, return true if function is
4845 prototyped.
4846
4847 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
4848 (TARGET_ROUND): New macro for the round/ptest instructions which
4849 are shared between SSE4.1 and SSE5.
4850 (OPTION_MASK_ISA_ROUND): Ditto.
4851 (OPTION_ISA_ROUND): Ditto.
4852 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
4853 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
4854
4855 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
4856 (-mfused-madd): New switch to give users control over whether the
4857 compiler optimizes to use the multiply/add SSE5 instructions.
4858
4859 * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
4860 m_ATHLON_K8_AMDFAM10, and change all uses.
4861 (enum pta_flags): Add PTA_SSE5.
4862 (ix86_handle_option): Turn off 3dnow if -msse5.
4863 (override_options): Add SSE5 support.
4864 (print_operand): %Y prints comparison codes for SSE5 com/pcom
4865 instructions.
4866 (ix86_expand_sse_movcc): Add SSE5 support.
4867 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
4868 vector type to the next largest size.
4869 (ix86_expand_sse5_pack): New function to use pperm to pack a
4870 vector type to the next smallest size.
4871 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
4872 (IX86_BUILTIN_FMADDSD): Ditto.
4873 (IX86_BUILTIN_FMADDPS): Ditto.
4874 (IX86_BUILTIN_FMADDPD): Ditto.
4875 (IX86_BUILTIN_FMSUBSS): Ditto.
4876 (IX86_BUILTIN_FMSUBSD): Ditto.
4877 (IX86_BUILTIN_FMSUBPS): Ditto.
4878 (IX86_BUILTIN_FMSUBPD): Ditto.
4879 (IX86_BUILTIN_FNMADDSS): Ditto.
4880 (IX86_BUILTIN_FNMADDSD): Ditto.
4881 (IX86_BUILTIN_FNMADDPS): Ditto.
4882 (IX86_BUILTIN_FNMADDPD): Ditto.
4883 (IX86_BUILTIN_FNMSUBSS): Ditto.
4884 (IX86_BUILTIN_FNMSUBSD): Ditto.
4885 (IX86_BUILTIN_FNMSUBPS): Ditto.
4886 (IX86_BUILTIN_FNMSUBPD): Ditto.
4887 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
4888 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
4889 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
4890 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
4891 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
4892 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
4893 (IX86_BUILTIN_PPERM): Ditto.
4894 (IX86_BUILTIN_PERMPS): Ditto.
4895 (IX86_BUILTIN_PERMPD): Ditto.
4896 (IX86_BUILTIN_PMACSSWW): Ditto.
4897 (IX86_BUILTIN_PMACSWW): Ditto.
4898 (IX86_BUILTIN_PMACSSWD): Ditto.
4899 (IX86_BUILTIN_PMACSWD): Ditto.
4900 (IX86_BUILTIN_PMACSSDD): Ditto.
4901 (IX86_BUILTIN_PMACSDD): Ditto.
4902 (IX86_BUILTIN_PMACSSDQL): Ditto.
4903 (IX86_BUILTIN_PMACSSDQH): Ditto.
4904 (IX86_BUILTIN_PMACSDQL): Ditto.
4905 (IX86_BUILTIN_PMACSDQH): Ditto.
4906 (IX86_BUILTIN_PMADCSSWD): Ditto.
4907 (IX86_BUILTIN_PMADCSWD): Ditto.
4908 (IX86_BUILTIN_PHADDBW): Ditto.
4909 (IX86_BUILTIN_PHADDBD): Ditto.
4910 (IX86_BUILTIN_PHADDBQ): Ditto.
4911 (IX86_BUILTIN_PHADDWD): Ditto.
4912 (IX86_BUILTIN_PHADDWQ): Ditto.
4913 (IX86_BUILTIN_PHADDDQ): Ditto.
4914 (IX86_BUILTIN_PHADDUBW): Ditto.
4915 (IX86_BUILTIN_PHADDUBD): Ditto.
4916 (IX86_BUILTIN_PHADDUBQ): Ditto.
4917 (IX86_BUILTIN_PHADDUWD): Ditto.
4918 (IX86_BUILTIN_PHADDUWQ): Ditto.
4919 (IX86_BUILTIN_PHADDUDQ): Ditto.
4920 (IX86_BUILTIN_PHSUBBW): Ditto.
4921 (IX86_BUILTIN_PHSUBWD): Ditto.
4922 (IX86_BUILTIN_PHSUBDQ): Ditto.
4923 (IX86_BUILTIN_PROTB): Ditto.
4924 (IX86_BUILTIN_PROTW): Ditto.
4925 (IX86_BUILTIN_PROTD): Ditto.
4926 (IX86_BUILTIN_PROTQ): Ditto.
4927 (IX86_BUILTIN_PROTB_IMM): Ditto.
4928 (IX86_BUILTIN_PROTW_IMM): Ditto.
4929 (IX86_BUILTIN_PROTD_IMM): Ditto.
4930 (IX86_BUILTIN_PROTQ_IMM): Ditto.
4931 (IX86_BUILTIN_PSHLB): Ditto.
4932 (IX86_BUILTIN_PSHLW): Ditto.
4933 (IX86_BUILTIN_PSHLD): Ditto.
4934 (IX86_BUILTIN_PSHLQ): Ditto.
4935 (IX86_BUILTIN_PSHAB): Ditto.
4936 (IX86_BUILTIN_PSHAW): Ditto.
4937 (IX86_BUILTIN_PSHAD): Ditto.
4938 (IX86_BUILTIN_PSHAQ): Ditto.
4939 (IX86_BUILTIN_FRCZSS): Ditto.
4940 (IX86_BUILTIN_FRCZSD): Ditto.
4941 (IX86_BUILTIN_FRCZPS): Ditto.
4942 (IX86_BUILTIN_FRCZPD): Ditto.
4943 (IX86_BUILTIN_CVTPH2PS): Ditto.
4944 (IX86_BUILTIN_CVTPS2PH): Ditto.
4945 (IX86_BUILTIN_COMEQSS): Ditto.
4946 (IX86_BUILTIN_COMNESS): Ditto.
4947 (IX86_BUILTIN_COMLTSS): Ditto.
4948 (IX86_BUILTIN_COMLESS): Ditto.
4949 (IX86_BUILTIN_COMGTSS): Ditto.
4950 (IX86_BUILTIN_COMGESS): Ditto.
4951 (IX86_BUILTIN_COMUEQSS): Ditto.
4952 (IX86_BUILTIN_COMUNESS): Ditto.
4953 (IX86_BUILTIN_COMULTSS): Ditto.
4954 (IX86_BUILTIN_COMULESS): Ditto.
4955 (IX86_BUILTIN_COMUGTSS): Ditto.
4956 (IX86_BUILTIN_COMUGESS): Ditto.
4957 (IX86_BUILTIN_COMORDSS): Ditto.
4958 (IX86_BUILTIN_COMUNORDSS): Ditto.
4959 (IX86_BUILTIN_COMFALSESS): Ditto.
4960 (IX86_BUILTIN_COMTRUESS): Ditto.
4961 (IX86_BUILTIN_COMEQSD): Ditto.
4962 (IX86_BUILTIN_COMNESD): Ditto.
4963 (IX86_BUILTIN_COMLTSD): Ditto.
4964 (IX86_BUILTIN_COMLESD): Ditto.
4965 (IX86_BUILTIN_COMGTSD): Ditto.
4966 (IX86_BUILTIN_COMGESD): Ditto.
4967 (IX86_BUILTIN_COMUEQSD): Ditto.
4968 (IX86_BUILTIN_COMUNESD): Ditto.
4969 (IX86_BUILTIN_COMULTSD): Ditto.
4970 (IX86_BUILTIN_COMULESD): Ditto.
4971 (IX86_BUILTIN_COMUGTSD): Ditto.
4972 (IX86_BUILTIN_COMUGESD): Ditto.
4973 (IX86_BUILTIN_COMORDSD): Ditto.
4974 (IX86_BUILTIN_COMUNORDSD): Ditto.
4975 (IX86_BUILTIN_COMFALSESD): Ditto.
4976 (IX86_BUILTIN_COMTRUESD): Ditto.
4977 (IX86_BUILTIN_COMEQPS): Ditto.
4978 (IX86_BUILTIN_COMNEPS): Ditto.
4979 (IX86_BUILTIN_COMLTPS): Ditto.
4980 (IX86_BUILTIN_COMLEPS): Ditto.
4981 (IX86_BUILTIN_COMGTPS): Ditto.
4982 (IX86_BUILTIN_COMGEPS): Ditto.
4983 (IX86_BUILTIN_COMUEQPS): Ditto.
4984 (IX86_BUILTIN_COMUNEPS): Ditto.
4985 (IX86_BUILTIN_COMULTPS): Ditto.
4986 (IX86_BUILTIN_COMULEPS): Ditto.
4987 (IX86_BUILTIN_COMUGTPS): Ditto.
4988 (IX86_BUILTIN_COMUGEPS): Ditto.
4989 (IX86_BUILTIN_COMORDPS): Ditto.
4990 (IX86_BUILTIN_COMUNORDPS): Ditto.
4991 (IX86_BUILTIN_COMFALSEPS): Ditto.
4992 (IX86_BUILTIN_COMTRUEPS): Ditto.
4993 (IX86_BUILTIN_COMEQPD): Ditto.
4994 (IX86_BUILTIN_COMNEPD): Ditto.
4995 (IX86_BUILTIN_COMLTPD): Ditto.
4996 (IX86_BUILTIN_COMLEPD): Ditto.
4997 (IX86_BUILTIN_COMGTPD): Ditto.
4998 (IX86_BUILTIN_COMGEPD): Ditto.
4999 (IX86_BUILTIN_COMUEQPD): Ditto.
5000 (IX86_BUILTIN_COMUNEPD): Ditto.
5001 (IX86_BUILTIN_COMULTPD): Ditto.
5002 (IX86_BUILTIN_COMULEPD): Ditto.
5003 (IX86_BUILTIN_COMUGTPD): Ditto.
5004 (IX86_BUILTIN_COMUGEPD): Ditto.
5005 (IX86_BUILTIN_COMORDPD): Ditto.
5006 (IX86_BUILTIN_COMUNORDPD): Ditto.
5007 (IX86_BUILTIN_COMFALSEPD): Ditto.
5008 (IX86_BUILTIN_COMTRUEPD): Ditto.
5009 (IX86_BUILTIN_PCOMEQUB): Ditto.
5010 (IX86_BUILTIN_PCOMNEUB): Ditto.
5011 (IX86_BUILTIN_PCOMLTUB): Ditto.
5012 (IX86_BUILTIN_PCOMLEUB): Ditto.
5013 (IX86_BUILTIN_PCOMGTUB): Ditto.
5014 (IX86_BUILTIN_PCOMGEUB): Ditto.
5015 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
5016 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
5017 (IX86_BUILTIN_PCOMEQUW): Ditto.
5018 (IX86_BUILTIN_PCOMNEUW): Ditto.
5019 (IX86_BUILTIN_PCOMLTUW): Ditto.
5020 (IX86_BUILTIN_PCOMLEUW): Ditto.
5021 (IX86_BUILTIN_PCOMGTUW): Ditto.
5022 (IX86_BUILTIN_PCOMGEUW): Ditto.
5023 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
5024 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
5025 (IX86_BUILTIN_PCOMEQUD): Ditto.
5026 (IX86_BUILTIN_PCOMNEUD): Ditto.
5027 (IX86_BUILTIN_PCOMLTUD): Ditto.
5028 (IX86_BUILTIN_PCOMLEUD): Ditto.
5029 (IX86_BUILTIN_PCOMGTUD): Ditto.
5030 (IX86_BUILTIN_PCOMGEUD): Ditto.
5031 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
5032 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
5033 (IX86_BUILTIN_PCOMEQUQ): Ditto.
5034 (IX86_BUILTIN_PCOMNEUQ): Ditto.
5035 (IX86_BUILTIN_PCOMLTUQ): Ditto.
5036 (IX86_BUILTIN_PCOMLEUQ): Ditto.
5037 (IX86_BUILTIN_PCOMGTUQ): Ditto.
5038 (IX86_BUILTIN_PCOMGEUQ): Ditto.
5039 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
5040 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
5041 (IX86_BUILTIN_PCOMEQB): Ditto.
5042 (IX86_BUILTIN_PCOMNEB): Ditto.
5043 (IX86_BUILTIN_PCOMLTB): Ditto.
5044 (IX86_BUILTIN_PCOMLEB): Ditto.
5045 (IX86_BUILTIN_PCOMGTB): Ditto.
5046 (IX86_BUILTIN_PCOMGEB): Ditto.
5047 (IX86_BUILTIN_PCOMFALSEB): Ditto.
5048 (IX86_BUILTIN_PCOMTRUEB): Ditto.
5049 (IX86_BUILTIN_PCOMEQW): Ditto.
5050 (IX86_BUILTIN_PCOMNEW): Ditto.
5051 (IX86_BUILTIN_PCOMLTW): Ditto.
5052 (IX86_BUILTIN_PCOMLEW): Ditto.
5053 (IX86_BUILTIN_PCOMGTW): Ditto.
5054 (IX86_BUILTIN_PCOMGEW): Ditto.
5055 (IX86_BUILTIN_PCOMFALSEW): Ditto.
5056 (IX86_BUILTIN_PCOMTRUEW): Ditto.
5057 (IX86_BUILTIN_PCOMEQD): Ditto.
5058 (IX86_BUILTIN_PCOMNED): Ditto.
5059 (IX86_BUILTIN_PCOMLTD): Ditto.
5060 (IX86_BUILTIN_PCOMLED): Ditto.
5061 (IX86_BUILTIN_PCOMGTD): Ditto.
5062 (IX86_BUILTIN_PCOMGED): Ditto.
5063 (IX86_BUILTIN_PCOMFALSED): Ditto.
5064 (IX86_BUILTIN_PCOMTRUED): Ditto.
5065 (IX86_BUILTIN_PCOMEQQ): Ditto.
5066 (IX86_BUILTIN_PCOMNEQ): Ditto.
5067 (IX86_BUILTIN_PCOMLTQ): Ditto.
5068 (IX86_BUILTIN_PCOMLEQ): Ditto.
5069 (IX86_BUILTIN_PCOMGTQ): Ditto.
5070 (IX86_BUILTIN_PCOMGEQ): Ditto.
5071 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
5072 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
5073 (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
5074 OPTION_MASK_ISA_ROUND for instructions that are shared between
5075 SSE4.1 and SSE5.
5076 (bdesc_2arg): Ditto.
5077 (bdesc_sse_3arg): Ditto.
5078 (enum multi_arg_type): New enum for describing the various SSE5
5079 intrinsic argument types.
5080 (bdesc_multi_arg): New table for SSE5 intrinsics.
5081 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
5082 (ix86_expand_multi_arg_builtin): New function for creating SSE5
5083 intrinsics.
5084 (ix86_expand_builtin): Add SSE5 intrinsic support.
5085 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
5086 operand instructions.
5087 (ix86_expand_sse5_multiple_memory): New function to split the
5088 second memory reference from SSE5 instructions.
5089 (type_has_variadic_args_p): Delete in favor of stdarg_p.
5090 (ix86_return_pops_args): Use stdarg_p to determine if the function
5091 has variable arguments.
5092 (ix86_setup_incoming_varargs): Ditto.
5093 (x86_this_parameter): Ditto.
5094
5095 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
5096 declaration.
5097 (ix86_expand_sse5_pack): Ditto.
5098 (ix86_sse5_valid_op_p): Ditto.
5099 (ix86_expand_sse5_multiple_memory): Ditto.
5100
5101 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
5102 constant for SSE5 support.
5103 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
5104 (UNSPEC_SSE5_TRUEFALSE): Ditto.
5105 (UNSPEC_SSE5_PERMUTE): Ditto.
5106 (UNSPEC_SSE5_ASHIFT): Ditto.
5107 (UNSPEC_SSE5_LSHIFT): Ditto.
5108 (UNSPEC_FRCZ): Ditto.
5109 (UNSPEC_CVTPH2PS): Ditto.
5110 (UNSPEC_CVTPS2PH): Ditto.
5111 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
5112 (PCOM_TRUE): Ditto.
5113 (COM_FALSE_S): Ditto.
5114 (COM_FALSE_P): Ditto.
5115 (COM_TRUE_S): Ditto.
5116 (COM_TRUE_P): Ditto.
5117 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
5118 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
5119 types.
5120 (memory attribute): Ditto.
5121 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5122 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
5123 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5124 (floor<mode>2): Ditto.
5125 (ceil<mode>2): Ditto.
5126 (btrunc<mode>2): Ditto.
5127 (nearbyintdf2): Ditto.
5128 (nearbyintsf2): Ditto.
5129 (sse_setccsf): Disable if SSE5.
5130 (sse_setccdf): Ditto.
5131 (sse5_setcc<mode>): New support for SSE5 conditional move.
5132 (sse5_pcmov_<mode>): Ditto.
5133
5134 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
5135 (SSEMODEF4): Ditto.
5136 (SSEMODEF2P): Ditto.
5137 (ssemodesuffixf4): New mode attribute for SSE5.
5138 (ssemodesuffixf2s): Ditto.
5139 (ssemodesuffixf2c): Ditto.
5140 (sserotatemax): Ditto.
5141 (ssescalarmode): Ditto.
5142 (sse_maskcmpv4sf3): Disable if SSE5.
5143 (sse_maskcmpv2df3): Ditto.
5144 (sse_vmmaskcmpv4sf3): Ditto.
5145 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
5146 instructions.
5147 (sse5_vmfmadd<mode>4): Ditto.
5148 (sse5_fmsub<mode>4): Ditto.
5149 (sse5_vmfmsub<mode>4): Ditto.
5150 (sse5_fnmadd<mode>4): Ditto.
5151 (sse5_vmfnmadd<mode>4): Ditto.
5152 (sse5_fnmsub<mode>4): Ditto.
5153 (sse5_vmfnmsub<mode>4): Ditto.
5154 (sse5i_fmadd<mode>4): Ditto.
5155 (sse5i_fmsub<mode>4): Ditto.
5156 (sse5i_fnmadd<mode>4): Ditto.
5157 (sse5i_fnmsub<mode>4): Ditto.
5158 (sse5i_vmfmadd<mode>4): Ditto.
5159 (sse5i_vmfmsub<mode>4): Ditto.
5160 (sse5i_vmfnmadd<mode>4): Ditto.
5161 (sse5i_vmfnmsub<mode>4): Ditto.
5162 (mulv16qi3): Add SSE5 support.
5163 (mulv4si3): Ditto.
5164 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
5165 (sse2_mulv4si3): Disable if SSE5.
5166 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
5167 (sse4_1_roundps): Ditto.
5168 (sse4_1_roundsd): Ditto.
5169 (sse4_1_roundss): Ditto.
5170 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
5171 be generated.
5172 (sse_maskcmpsf3): Ditto.
5173 (sse_vmmaskcmpv4sf3): Ditto.
5174 (sse2_maskcmpv2df3): Ditto.
5175 (sse2_maskcmpdf3): Ditto.
5176 (sse2_vmmaskcmpv2df3): Ditto.
5177 (sse2_eq<mode>3): Ditto.
5178 (sse2_gt<mode>3): Ditto.
5179 (sse5_pcmov_<mode>): Add SSE5 support.
5180 (vec_unpacku_hi_v16qi): Ditto.
5181 (vec_unpacks_hi_v16qi): Ditto.
5182 (vec_unpacku_lo_v16qi): Ditto.
5183 (vec_unpacks_lo_v16qi): Ditto.
5184 (vec_unpacku_hi_v8hi): Ditto.
5185 (vec_unpacks_hi_v8hi): Ditto.
5186 (vec_unpacku_lo_v8hi): Ditto.
5187 (vec_unpacks_lo_v8hi): Ditto.
5188 (vec_unpacku_hi_v4si): Ditto.
5189 (vec_unpacks_hi_v4si): Ditto.
5190 (vec_unpacku_lo_v4si): Ditto.
5191 (vec_unpacks_lo_v4si): Ditto.
5192 (sse5_pmacsww): New SSE5 intrinsic insn.
5193 (sse5_pmacssww): Ditto.
5194 (sse5_pmacsdd): Ditto.
5195 (sse5_pmacssdd): Ditto.
5196 (sse5_pmacssdql): Ditto.
5197 (sse5_pmacssdqh): Ditto.
5198 (sse5_pmacsdqh): Ditto.
5199 (sse5_pmacsswd): Ditto.
5200 (sse5_pmacswd): Ditto.
5201 (sse5_pmadcsswd): Ditto.
5202 (sse5_pmadcswd): Ditto.
5203 (sse5_pcmov_<move>): Conditional move support on SSE5.
5204 (sse5_phaddbw): New SSE5 intrinsic insn.
5205 (sse5_phaddbd): Ditto.
5206 (sse5_phaddbq): Ditto.
5207 (sse5_phaddwd): Ditto.
5208 (sse5_phaddwq): Ditto.
5209 (sse5_phadddq): Ditto.
5210 (sse5_phaddubw): Ditto.
5211 (sse5_phaddubd): Ditto.
5212 (sse5_phaddubq): Ditto.
5213 (sse5_phadduwd): Ditto.
5214 (sse5_phadduwq): Ditto.
5215 (sse5_phaddudq): Ditto.
5216 (sse5_phsubbw): Ditto.
5217 (sse5_phsubwd): Ditto.
5218 (sse5_phsubdq): Ditto.
5219 (sse5_pperm): Ditto.
5220 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
5221 (sse5_pperm_zero_v16qi_v8hi): Ditto.
5222 (sse5_pperm_sign_v8hi_v4si): Ditto.
5223 (sse5_pperm_zero_v8hi_v4si): Ditto.
5224 (sse5_pperm_sign_v4si_v2di): Ditto.
5225 (sse5_pperm_sign_v4si_v2di): Ditto.
5226 (sse5_pperm_pack_v2di_v4si): Ditto.
5227 (sse5_pperm_pack_v4si_v8hi): Ditto.
5228 (sse5_pperm_pack_v8hi_v16qi): Ditto.
5229 (sse5_perm<mode>): New SSE5 intrinsic insn.
5230 (rotl<mode>3): Ditto.
5231 (sse5_rotl<mode>3): Ditto.
5232 (sse5_ashl<mode>3): Ditto.
5233 (sse5_lshl<mode>3): Ditto.
5234 (sse5_frcz<mode>2): Ditto.
5235 (sse5s_frcz<mode>2): Ditto.
5236 (sse5_cvtph2ps): Ditto.
5237 (sse5_cvtps2ph): Ditto.
5238 (sse5_vmmaskcmp<mode>3): Ditto.
5239 (sse5_com_tf<mode>3): Ditto.
5240 (sse5_maskcmp<mode>3): Ditto.
5241 (sse5_maskcmp_uns<mode>3): Ditto.
5242 (sse5_maskcmp_uns2<mode>3): Ditto.
5243 (sse5_pcom_tf<mode>3): Ditto.
5244
5245 * config/i386/predicates.md (const_0_to_31_operand): New predicate
5246 to match 0..31.
5247 (sse5_comparison_float_operator): New predicate to match the
5248 comparison operators supported by the SSE5 com instruction.
5249 (ix86_comparison_int_operator): New predicate to match just the
5250 signed int comparisons.
5251 (ix86_comparison_uns_operator): New predicate to match just the
5252 unsigned int comparisons.
5253
5254 * doc/invoke.texi (-msse5): Add documentation.
5255 (-mfused-madd): Ditto.
5256
5257 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
5258
5259 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
5260 mmintrin-common.h.
5261 (x86_64-*-*): Ditto.
5262
5263 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
5264
5265 * config/i386/bmmintrin.h: New file, provide common x86 compiler
5266 intrinisics for SSE5.
5267
5268 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
5269 mmintrin-common.h.
5270
5271 * config/i386/mmintrin-common.h: New file, to contain common
5272 instructions between SSE4.1 and SSE5.
5273
5274 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
5275 FOREACH_FUNCTION_ARGS to iterate over the argument list.
5276 (gen_regparm_prefix): Ditto.
5277
5278 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
5279 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
5280 prototype_p to determine if a function is prototyped.
5281
e8105390 52822007-09-12 Janis Johnson <janis187@us.ibm.com>
386a6114 5283
5284 * config/dfp-bit.c (dfp_conversion_exception): New function.
5285 (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
5286 (DFP_TO_INT): Ditto.
5287 (INT_TO_DFP): Ditto.
5288 * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
5289
26f19261 52902007-09-12 Jakub Jelinek <jakub@redhat.com>
5291
5292 PR target/32338
5293 * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
5294 before sp restoration even when total_size is 0, but
5295 frame_pointer_needed.
5296
a3759617 52972007-09-12 Bob Wilson <bob.wilson@acm.org>
5298
5299 * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
5300 (xtensa_copy_incoming_a7): Use start_sequence instead of
5301 push_to_sequence. Stash insns in vararg_a7_copy for builtin_saveregs.
5302 (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
5303 of the saveregs sequence.
5304
e47ffaae 53052007-09-12 Richard Sandiford <richard@codesourcery.com>
5306
5307 * c-tree.h (grokfield): Add a "tree *" argument.
5308 * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
5309 Chain nested decl attributes to it. Don't call decl_attributes here.
5310 (groktypename): Pass grokdeclarator a pointer to the attribute list.
5311 (start_decl, grokparm, push_parm_decl, start_function): Likewise.
5312 (grokfield): Take a pointer to the decl's attributes and pass
5313 it to grokdeclarator.
5314 * c-parser.c (c_parser_struct_declaration): Update the calls to
5315 grokfield. Call decl_attributes for anonymous struct and union
5316 fields.
5317
10362f8a 53182007-09-12 Jan Hubicka <jh@suse.cz>
5319
5320 * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5321
aa2cf621 53222007-09-12 Ira Rosen <irar@il.ibm.com>
5323
5324 PR tree-optimization/32377
5325 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
5326 between positive and negative dependence distance using DDR_REVERSED_P.
5327
6e1a4b27 53282007-09-12 Dorit Nuzman <dorit@il.ibm.com>
5329
5330 PR tree-optimization/33373
5331 * tree-vect-analyze (vect_determine_vectorization_factor): Call
5332 TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
5333
426753b3 53342007-09-12 Jan Hubicka <jh@suse.cz>
5335
5336 PR target/33393
987b8c35 5337 * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
5338 for !SSE_MATH
426753b3 5339
c5cff8fc 53402007-09-12 Christian Bruel <christian.bruel@st.com>
af351580 5341
c5cff8fc 5342 * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
5343 * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed.
5344
25d42928 53452007-09-12 Ira Rosen <irar@il.ibm.com>
5346
5347 * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
5348 for oprnd1 if not required.
5349 (vectorizable_operation): Use scalar operand in SLP in case of
5350 shift with scalar argument.
5351
44483b97 53522007-09-12 Ira Rosen <irar@il.ibm.com>
5353
5354 * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum
5355 to 1.
5356
6a4a939a 53572007-09-11 James E. Wilson <wilson@specifix.com>
5358
5359 * defaults.h (DWARF2_UNWIND_INFO): Don't define if
5360 TARGET_UNWIND_INFO is defined.
5361 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
5362 after definition.
5363
b6cd121f 53642007-09-12 Kaz Kojima <kkojima@gcc.gnu.org>
5365
5366 * config/sh/sh.c (calc_live_regs): Use
5367 current_function_saves_all_registers instead of
5368 current_function_has_nonlocal_label.
5369 (sh_allocate_initial_value): Likewise.
5370 (sh_get_pr_initial_val): Likewise.
5371 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
5372 * config/sh/sh.md (load_ra): Likewise.
5373
f9f765c4 53742007-09-12 Hans-Peter Nilsson <hp@axis.com>
5375
9b08c1b6 5376 * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
5377
f9f765c4 5378 PR target/33360
5379 * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
5380 GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
5381
5d70b918 53822007-09-12 Sa Liu <saliu@de.ibm.com>
5383
5384 * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
5385 operands to DFmode GE or LE compares.
5386
32cfb443 53872007-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
5388
5389 * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
5390 REG_CLASS_NAMES): Add P0REGS.
5391 (REGNO_REG_CLASS): Return it where appropriate.
5392 (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
5393 (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
5394 * doc/md.texi (Blackfin family): Document 'q' constraints.
5395
6d247a6c 53962007-09-11 Steve Kenton <skenton@ou.edu>
59150c0b 5397
5398 * pa/linux-unwind.h: Guard with inhibit_libc.
5399 * pa/hpux-unwind.h: Likewise.
5400
bc4c18f7 54012007-09-11 David Daney <ddaney@avtrex.com>
5402
5403 * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
5404 * doc/install.texi: Document new --with-llsc and --without-llsc
5405 options.
5406 * config.gcc: Handle --with-llsc and --without-llsc configure options.
5407 * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
5408 in %| and %- operand codes. Depend on GENERATE_SYNC instead of
5409 ISA_HAS_SYNC.
5410 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
5411 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
5412 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
5413 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5414 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
5415 GENERATE_LL_SC instead of ISA_HAS_LL_SC.
5416 * config/mips/mips.opt (mllsc): New option.
5417 * config/mips/mips.c (mips_llsc): Define variable.
5418 (mips_handle_option): Handle mllsc option.
5419 (override_options): Set mips_print_operand_punct for '|' and '-'.
5420 (print_operand): Add new %| and %- operand codes.
5421 * config/mips/mips.h (mips_llsc_setting): New enum type.
5422 (mips_llsc): Declare.
5423 (OPTION_DEFAULT_SPECS): Add llsc handling.
5424 (GENERATE_SYNC): New macro.
5425 (GENERATE_LL_SC): New macro.
5426 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
5427 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
5428 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
5429 in %| and %- operand codes.
5430
9ba1ed5a 54312007-09-11 Eric Botcazou <ebotcazou@adacore.com>
5432
5433 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
5434 TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
5435
7b04d839 54362007-09-11 Jason Merrill <jason@redhat.com>
5437
5438 PR middle-end/27945
5439 * stor-layout.c (layout_decl): Do pack variable size fields.
5440
1d86aeab 54412007-09-11 Maxim Kuvyrkov <maxim@codesourcery.com>
5442
5443 * config/m68k/predicates.md (movsi_const0_operand,
5444 non_symbolic_call_operand): New predicates.
5445
987b8c35 5446 * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
1d86aeab 5447 New constraints.
5448 * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
5449 Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
5450 CW, CZ, CS, Ap and Ac.
5451
5452 * config/m68k/m68k.md (UNSPEC_IB): New constant.
5453 (constraints.md): New include.
5454 (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
5455 opx_mem, opy_mem, op_mem, guess, split): New attributes.
5456 (movdf_internal): Name pattern. Fix to use alternatives. Add split.
5457 Specify attributes.
5458 (pushdi): Add split.
5459 (tstsi_internal): Name pattern. Fix to use alternatives. Specify
5460 attributes. Split tstsi_internal_68020_cf from it.
5461 (tstsi_internal_68020_cf): New pattern.
5462 (tsthi_internal, tstqi_internal): Name pattern. Specify attributes.
5463 (tst<mode>_cf): Specify attributea.
5464 (cmpsi_cf): Name pattern. Specify attributes.
5465 (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
5466 (pushexthisi_const): Fix to use alternatives. Specify
5467 attributes.
5468 (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
5469 from it. Fix to use alternatives. Specify attributes.
5470 (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
5471 (movsi_cf, movstrictqi_cf): Fix to use alternatives. Specify
5472 attributes.
5473 (movsf_cf_soft): Specify attributes.
5474 (movdf_cf_soft): Add split.
5475 (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
5476 cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
5477 68k_extendqisi2, truncdfsf2_cf): Specify attributes.
5478 (truncdfsf2_68881): Name pattern. Specify attributes.
5479 (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
5480 floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
5481 fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
5482 Specify attributes.
5483 (addsi3_5200): Fix to use alternatives. Specify attributes.
5484 Add splits.
5485 (add<mode>3_cf, subdi_dishl32): Specify attributes.
5486 (subsi3): Add alternative for subq.l. Specify attributes.
5487 (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
5488 (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern. Specify
5489 attributes.
5490 (umulhisi3): Specify attributes.
5491 (mulhisisi3_z): Name pattern. Specify attributes.
5492 (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
5493 sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
5494 subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
5495 bsetmemqi): Specify attributes.
5496 (bsetmemqi_ext): Name pattern. Specify attributes.
5497 (bclrmemqi): Specify attributes.
5498 (bclrmemqi_ext, scc, sls): Name pattern. Specify attributes.
5499 (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
5500 attributes.
5501 (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
5502 pattern. Specify attributes.
5503 (jump): Specify attributes.
5504 (tablejump_internal): Name pattern. Specify attributes.
5505 (call_value): Split into non_symbolic_call_value,
5506 symbolic_call_value_jsr, symbolic_call_value_bsr. Fix to use
5507 alternatives. Specify attributes.
5508 (non_symbolic_call_value, symbolic_call_value_jsr,
5509 symbolic_call_value_bsr): New patterns.
5510 (nop, return, unlink, indirect_jump): Specify attributes.
5511 (trap): Fix condition. Specify attributes.
5512 (ib): New pattern.
5513
5514 * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
5515 (override_options): Initialize it. Initialize m68k_sched_cpu.
5516 (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
5517 (const_method): Make global, rename to m68k_const_method.
5518 (const_int_cost, output_move_const_into_data_reg): Update.
5519 (output_move_double): Parametrize to emit rtl code, rename to
5520 handle_move_double.
5521 (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
5522 emit_movsi): New static functions.
5523 (output_move_double): New function with semantics of old
5524 output_move_double.
5525 (m68k_emit_move_double): New function.
5526 (m68k_sched_cpu): New variable.
5527 (attr_op_type): New enum.
5528 (sched_guess_p): New variable.
5529 (sched_address_type, sched_operand_type, sched_attr_op_type):
5530 New static functions.
5531 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
5532 m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
5533 (sched_branch_type): New static variable.
5534 (m68k_sched_branch_type): New function.
5535 * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
5536 (m68k_symbolic_call_var): Declare.
5537 (M68K_CONST_METHOD): Rename from CONST_METHOD. Move here from m68k.c.
5538 (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
5539 m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
5540 m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
5541 Declare.
5542
4e1d7ea4 55432007-09-11 Jakub Jelinek <jakub@redhat.com>
5544
5545 * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
5546 * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
5547 error if __builtin_va_arg_pack_len () wasn't optimized out during
5548 inlining.
5549 * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
5550 with the number of inline's anonymous arguments.
5551 * doc/extend.texi: Document __builtin_va_arg_pack_len ().
5552
c50ab071 55532007-09-11 Zdenek Dvorak <ook@ucw.cz>
5554
5555 * fold-const.c (extract_muldiv_1): Do not simplify
5556 var * c * c to var.
5557
ff1f087e 55582007-09-11 Jan Hubicka <jh@suse.cz>
5559
5560 * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
5561 (TARGET_INTER_UNIT_CONVERSIONS): New.
5562 * i386.md (floatsi expanders): Remove redundant check for SImode
5563 source; offload to memory when asked for.
5564 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
5565 floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
5566 Update conditions;
5567 (floatsisf2_mixed_memory, floatsisf2_sse_memory,
5568 floatsidf2_mixed_memory, floatsidf2_sse_memory
5569 floatdisf2_mixed_memory, floatsisf2_sse_memory,
5570 floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
5571
84e10000 55722007-09-11 Jan Hubicka <jh@suse.cz>
5573
5574 * toplev.c (process_options): all frontends now do unit-at-a-time.
5575 * cgraphunit.c: update comments.
5576 (cgraph_expand_function): call passmanager dirrectly; emit thunks.
5577 * c-decl.c (finish_function): use cgraph_add_new_function.
5578 * function.c (expand_function_end): We are always unit-at-a-time.
5579
2bb2e78e 55802007-09-11 Richard Sandiford <richard@codesourcery.com>
5581
5582 * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
5583 settings for MIPS16.
5584 (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
5585
b94b01e1 55862007-09-11 Richard Sandiford <richard@codesourcery.com>
5587
5588 * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
5589 SYMBOL_FORCE_TO_MEM constants.
5590 (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
5591 (mips16_rewrite_pool_refs_info): New structure.
5592 (mips16_rewrite_pool_constant): New function, split out from...
5593 (mips16_rewrite_pool_refs): ...here. Take a pointer to a
5594 mips16_rewrite_pool_refs_info structure rather than a pointer
5595 to a constant pool. Force force_to_mem_operands into memory.
5596 (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
5597 * config/mips/predicates.md (force_to_mem_operand): New predicate.
5598 * config/mips/constraints.md (kf): New constraint.
5599 * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
5600 (*movsi_mips16): Likewise.
5601
13c6ca88 56022007-09-11 Richard Sandiford <richard@codesourcery.com>
5603 Nigel Stephens <nigel@mips.com>
5604 David Ung <davidu@mips.com>
5605
5606 * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
5607 * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
5608 (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
5609 (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
5610 (mips_zero_extend_cost): New functions.
5611 (mips_rtx_costs): Treat COMPARE constants as having zero cost.
5612 Use the new functions. Tweak many cost estimates, both here
5613 and in the new subroutines. Return false when the cost of the
5614 operands has not been calculated. Check for *clear_upper32.
5615 Check for floating-point multiply-add, reciprocal and rsqrt
5616 patterns. Handle comparison and rotation codes.
5617
8d84c16c 56182007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
5619
5620 * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
5621 override default.
5622 * config/i386/i386.c (get_dllimport_decl): Don't strip
5623 FASTCALL_PREFIX.
5624
dfab6fc1 56252007-09-10 Janis Johnson <janis187@us.ibm.com>
5626
5627 PR c/30013
5628 * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
5629 declarations to top.
5630 (DFP_TO_BFP): Use for either XFmode or TFmode.
5631 (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
5632 of BFP_VIA_TYPE.
5633 * config/dfp-bit.h: Include float.h.
5634 (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
5635 double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
5636 which doesn't mean the same thing.
5637 (BFP_KIND): Use 4 to mean TFmode.
5638 (BFP_FMT): Specify the number of decimal digits based on the
5639 number of mantissa digits.
5640 (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
5641 (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
5642 (STR_TO_BFP): Use strtold for XFmode or TFmode.
5643 (TFtype): Define if TFmode is supported.
5644 * doc/libgcc.texi (Decimal float library routines): Document
5645 TF conversion functions.
5646
d20b198f 56472007-09-10 Chao-ying Fu <fu@mips.com>
5648
5649 * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
5650 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
5651 (mips_emit_compare): Process fixed-point modes.
5652 (mips_pad_arg_upward): Support fixed-point types.
5653 (override_options): Allow fixed-point modes in accumulators.
5654 (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
5655 (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
5656 V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
5657 (mips_scalar_mode_supported_p): New function to accept fixed-point
5658 modes if the width is not greater than two BITS_PER_WORD.
5659 * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
5660 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
5661 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
5662 LONG_LONG_ACCUM_TYPE_SIZE): Define.
5663 * config/mips/mips.md ("d"): Update mode attribute for fixed-point
5664 modes.
5665 ("IMODE"): New mode attribute.
5666 (mips-fixed.md): Include.
5667 * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
5668 ACCUM, UACCUM.
5669 * config/mips/mips-fixed.md: New file.
5670
6373f472 56712007-09-11 Ben Elliston <bje@au.ibm.com>
5672
5673 * config/spu/spu.md: Formatting fixes.
5674
e6eb1ce7 56752007-09-10 Janis Johnson <janis187@us.ibm.com>
5676
5677 * config/dfp-bit.c (dfp_unary_func): Delete.
5678 (dfp_unary_op): Delete.
5679 (dfp_binary_op): Use decFloat functions instead of decNumber
5680 functions for binary operations.
5681 (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
5682 (dnn_binary_op): Call dfp_binary_op with decFloat rather than
5683 DFP_C_TYPE.
5684 (dfp_compare_op): Use decFloat functions insteadof decNumber
5685 functions for comparisons.
5686 (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
5687 (dnn_binary_op): Call dfp_compare_op with decFloat rather than
5688 DFP_C_TYPE.
5689 (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
5690 call to dxx_binary_op and decFloat function.
5691 (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
5692 calls to dxx_binary_op and decFloat function.
5693 * config/dfp-bit.h: Include decFloat header files.
5694 (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
5695 DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
5696 DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
5697 DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
5698
6202d4db 56992007-09-10 Harsha Jagasia <harsha.jagasia@amd.com>
987b8c35 5700 Jan Sjodin <jan.sjodin@amd.com>
5701
6202d4db 5702 * tree-vect-analyze.c (vect_analyze_operations): Change
5703 comparison of loop iterations with threshold to less than
5704 or equal to instead of less than. Reduce
5705 min_scalar_loop_bound by one.
5706 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
5707 Change prologue and epilogue iterations estimate to vf/2,
5708 when unknown at compile-time. Change versioning guard
5709 cost to taken_branch_cost. If peeling for alignment is
5710 unknown at compile-time, change peel guard costs to one
5711 taken branch and one not-taken branch per peeled loop.
5712 If peeling for alignment is known but number of scalar loop
5713 iterations is unknown at compile-time, change peel guard
5714 costs to one taken branch per peeled loop. Change the cost
5715 model equation to consider vector iterations as the loop
5716 iterations less the prologue and epilogue iterations.
5717 Change outside vector cost check to less than or equal to
5718 zero instead of equal to zero.
5719 (vect_do_peeling_for_loop_bound): Reduce
5720 min_scalar_loop_bound by one.
5721 * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
5722 TARG_COND_NOT_TAKEN_BRANCH_COST.
5723 * config/i386/i386.h (processor_costs): Add
5724 scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
5725 vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
5726 vec_align_load_cost, vect_unalign_load_cost,
5727 vec_store_cost, cond_taken_branch_cost,
5728 cond_not_taken_branch_cost.
5729 Define macros for x86 costs.
5730 * config/i386/i386.c:
5731 (size_cost): Set scalar_stmt_cost, scalar_load_cost,
5732 scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
5733 scalar_to_vec_cost, vec_align_load_cost,
5734 vect_unalign_load_cost, vec_store_cost,
5735 cond_taken_branch_cost, cond_not_taken_branch_cost to one.
5736 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
5737 geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost,
5738 core2_cost, generic64_cost, generic32_cost): Set to default
5739 untuned costs.
5740 (k8_cost, amdfam10_cost): Costs for vectorization tuned.
5741 (x86_builtin_vectorization_cost): New.
5742
c8ac5d9a 57432007-09-10 Janis Johnson <janis187@us.ibm.com>
5744 Ben Elliston <bje@au.ibm.com>
5745
5746 * dfp.c: Include decimal128Local.h;
5747 (dfp_byte_swap): Remove.
5748 (encode_decimal32, decode_decimal32): Don't handle endianness.
5749 (encode_decimal64, decode_decimal64): Ditto.
5750 (encode_decimal128, decode_decimal128): Ditto.
5751 * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
5752 (__swap64): Remove.
5753 (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
987b8c35 5754 (__swap128): Remove
c8ac5d9a 5755 (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
5756 * Makefile.in (DECNUM_H): Add decimal128Local.h.
5757
a7835ede 57582007-09-10 David Daney <ddaney@avtrex.com>
5759
5760 * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
5761 define_constants.
5762 (memory_barrier): Rewrote as an insn that clobbers memory.
5763
6c6dc520 57642007-09-10 Richard Sandiford <richard@codesourcery.com>
5765
5766 * config/mips/mips.c (mips_global_pointer): Check
5767 call_really_used_regs instead of call_used_regs.
5768 (mips_save_reg_p): Likewise. Save all call-saved registers
5769 if current_function_saves_all_registers. Fix indentation.
5770 No longer treat $18 as a special case.
5771 (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
5772
7938ee8c 57732007-09-10 Richard Sandiford <richard@codesourcery.com>
5774
5775 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
5776 * config/mips/mips.c (mips_cpu_info_table): Mention it in the
5777 the introductory comment.
5778 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
5779 (override_options): Don't test for it.
5780 * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
5781 (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
5782 * config/mips/vr.h: As for config/mips/sde.h.
5783
d52fd16a 57842007-09-10 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5785 Revital Eres <eres@il.ibm.com>
5786
5787 * target.h (struct gcc_target.sched): New field: sms_res_mii.
5788 (struct ddg): Define.
5789 * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
5790 (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
5791 * config/spu/spu.c: Include ddg.h.
5792 (TARGET_SCHED_SMS_RES_MII): Define.
5793 (spu_sms_res_mii): New function to calculate mii.
5794 * modulo-sched (res_MII): Use it.
5795 * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
5796
b2ed6df1 57972007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
5798
5799 * config/s390/s390.c (s390_dump_pool): Create copy of constant
5800 pool entries since they might hold values that must not be shared.
5801
5bbb5716 58022007-09-10 Uros Bizjak <ubizjak@gmail.com>
5803
5804 PR target/33369
69a83716 5805 * config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
5bbb5716 5806 Use 'N' operand constraint for op2.
5807 (lshr<mode>3): Ditto.
5808 (ashl<mode>3): Ditto.
5809 (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
5523d6b0 5810 (vec_shr_<mode>): Ditto.
69a83716 5811 * config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
5bbb5716 5812 IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
5813
5497187b 58142007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
5815
5816 * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
5817 Change mode macro in the last real_2expN parameter to uppercase.
5818
e6d0e152 58192007-09-10 Michael Matz <matz@suse.de>
5820
5821 * tree-pass.h (pass_cselim): Declare new pass.
5822 * passes.c (init_optimization_passes): Link in pass_cselim.
5823 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
5824 tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
5825 cond_store_replacement.
5826 (condstoretemp): New static variable.
5827 (cond_store_replacement): New function.
5828 (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
5829 tree_ssa_phiopt_worker.
5830 (struct name_to_bb): New.
5831 (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
5832 nt_init_block, nt_fini_block): New static functions.
5833 (seen_ssa_names, nontrap_set): New static variables.
5834 (gate_cselim, pass_cselim): Define new pass.
5835 * common.opt (ftree-cselim): New flag.
5836 * toplev.c (process_options): Set flag_tree_cselim if required.
5837
ecd7bb68 58382007-09-10 Hans-Peter Nilsson <hp@axis.com>
5839
5840 * simplify-rtx.c (simplify_relational_operation_1): For recent
5841 canonicalization, don't recurse if op1 equals both PLUS arguments.
5842
0310b094 58432007-09-09 David Daney <ddaney@avtrex.com>
5844
5845 * optabs.c (expand_sync_operation): Use plus insn if minus
5846 CONST_INT_P(val).
5847 (expand_sync_fetch_operation): Ditto.
5848
f6a9a0d5 58492007-09-09 H.J. Lu <hongjiu.lu@intel.com>
5850
5851 * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
5852 of cvtpq2ps.
5853 (*floatsisf2_sse_vector): Likewise.
5854
2735be81 58552007-09-09 Krister Walfridsson <cato@df.lth.se>
5856
5857 * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
5858
650269ca 58592007-09-09 H.J. Lu <hongjiu.lu@intel.com>
5860
5861 * config/i386/i386.h (ix86_tune_indices): Rename
5862 X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
5863 (TARGET_USE_VECTOR_CONVERTS): Updated.
5864 * config/i386/i386.c: Likewise.
5865
2afb14e8 58662007-09-09 Sandra Loosemore <sandra@codesourcery.com>
650269ca 5867 Nigel Stephens <nigel@mips.com>
2afb14e8 5868
5869 * doc/invoke.texi (Overall Options): Add .sx file extension
5870 as a synonym for .S.
5871 * cppspec.c (known_suffixes): Likewise.
5872 * gcc.c (default_compilers): Likewise.
5873
7333737f 58742007-09-09 Rask Ingemann Lambertsen <rask@sygehus.dk>
5875
5876 PR target/30315
5877 * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
5878 * simplify-rtx.c (simplify_relational_operation_1): Add the
5879 canonicalization from i386.h.
5880 * doc/md.texi (Canonicalization of Instructions): Document it.
5881
f9d21a55 58822007-09-09 Jan Hubicka <jh@suse.cz>
650269ca 5883 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
f9d21a55 5884
5885 * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
5886 (TARGET_USE_VECTOR_CONVERTS): New.
5887 * i386.md: New post-reload splitters for converting SF to DF and DF to
5888 SF.
5889 (floatsi* expander): Special case vector conversions.
5890 (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
5891 floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
5892 floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
5893 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
5894 Disable when doing vector converts.
5895 (floatsi<mode>2_i387): Disable when
5896 * sse.md (vec_dupv2df): Export.
5897 * i386.c (ix86_tune_features): Enable SSE conversions.
5898
853bca80 58992007-09-09 Richard Guenther <rguenther@suse.de>
5900
5901 * tree-ssa-operands.c (add_virtual_operand): Only mark
5902 stores as has_volatile_ops if alias information is not available.
5903
411de439 59042007-09-09 Revital Eres <eres@il.ibm.com>
5905
5906 * doc/contrib.texi: Add myself.
5907
84a15e8f 59082007-09-09 Ira Rosen <irar@il.ibm.com>
5909
5910 * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
5911 stmt_vinfo_set_outside_of_loop_cost): New functions.
5912 * tree-vect-transform.c (vect_get_cost_fields): Remove.
5913 (vect_model_simple_cost): Call
5914 stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
5915 field instead of calling vect_get_cost_fields.
5916 (vect_model_store_cost, vect_model_load_cost): Likewise.
5917
5d9d5d9f 59182007-09-09 Revital Eres <eres@il.ibm.com>
5919
5920 * config/rs6000/rs6000.c (paired_init_builtins): Add const
5921 declaration to bdesc_paired_preds variable.
5922 (paired_expand_builtin): Likewise.
5923
76aaf9f0 59242007-09-09 Revital Eres <eres@il.ibm.com>
5925
5926 * dbgcnt.def (sms_sched_loop): New counter.
5927 * modulo-sched.c: Use sms_sched_loop instead of
5928 MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
5929 perform swing modulo scheduling on. Include dbgcnt.h.
5930 * Makefile.in: Add DBGCNT_H to modulo-sched.o.
5931 * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
5932
a18f7c09 59332007-09-09 Uros Bizjak <ubizjak@gmail.com>
5934
5935 * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
5936 Substitute all uses with ...
5937 (MODEF): New mode iterator.
5938
eaf8c2f1 5939 (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
5940 from pre-regalloc define_insn_and_split splitter pattern.
a18f7c09 5941 (*fix_trunc<mode>_i387_1): Ditto.
5942 (*fistdi2_1): Ditto.
5943 (*fist<mode>2_1): Ditto.
5944 (frndintxf2_floor): Ditto.
5945 (*fist<mode>2_floor_1): Ditto.
5946 (frndintxf2_ceil): Ditto.
5947 (*fist<mode>2_ceil_1): Ditto.
5948 (frndintxf2_trunc): Ditto.
5949 (frndintxf2_mask_pm): Ditto.
5950
5951 (prologue): Use (const_int 0) as never generated filler insn.
5952 (epilogue): Ditto.
5953 (sibcall_epilogue): Ditto.
5954 (eh_return_si): Ditto.
5955 (eh_return_di): Ditto.
5956
5957 (add<mode>3): Rename from adddf3 and addsf3. Macroize expander
5958 using MODEF mode iterator.
5959 (sub<mode>3): Rename from subdf3 and subsf3. Macroize expander
5960 using MODEF mode iterator.
5961 (mul<mode>3): Rename from muldf3 and mulsf3. Macroize expander
5962 using MODEF mode iterator.
5963 (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
5964 Macroize expander using MODEF mode iterator.
5965
5966 (zero_extendsidi2): Remove operand constraints from expander.
5967 (smuldi3_highpart): Ditto.
5968 (indirect_jump): Ditto.
5969 (tablejump): Ditto.
5970 (rsqrtsf2): Ditto.
5971 * config/i386/sse.md (storentv4sf): Ditto.
5972 (storentv2df): Ditto.
5973 (storentv2di): Ditto.
5974 (storentsi): Ditto.
5975 (sse2_cvtpd2ps): Ditto.
5976 (vec_interleave_highv16qi): Ditto.
5977 (vec_interleave_lowv16qi): Ditto.
5978 (vec_interleave_highv8hi): Ditto.
5979 (vec_interleave_lowv8hi): Ditto.
5980 (vec_interleave_highv4si): Ditto.
5981 (vec_interleave_lowv4si): Ditto.
5982 (vec_interleave_highv2di): Ditto.
5983 (vec_interleave_lowv2di): Ditto.
5984 (sse2_maskmovdqu): Ditto.
5985 * config/i386/mmx.md (mmx_maskmovq): Ditto.
5986
c6895939 59872007-09-09 Ira Rosen <irar@il.ibm.com>
5988
5989 * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
5990 (struct _slp_tree, struct _slp_instance): Define new data structures
5991 along macros for their access.
5992 (struct _loop_vec_info): Define new fields: strided_stores,
5993 slp_instances, and slp_unrolling_factor along macros for their access.
5994 (enum slp_vect_type): New.
987b8c35 5995 (struct _stmt_vec_info): Define new field, slp_type, and macros for
5996 its access.
c6895939 5997 (STMT_VINFO_STRIDED_ACCESS): New macro.
5998 (vect_free_slp_tree): Declare.
5999 (vectorizable_load): Add an argument of type slp_tree.
6000 (vectorizable_store, vectorizable_operation, vectorizable_conversion,
6001 vectorizable_assignment): Likewise.
6002 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6003 Declare (make extern).
6373f472 6004 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
c6895939 6005 (new_loop_vec_info): Likewise.
6006 (destroy_loop_vec_info): Free memory allocated for SLP structures.
6007 * tree-vect-analyze.c: Include recog.h.
6008 (vect_update_slp_costs_according_to_vf): New.
6009 (vect_analyze_operations): Add argument for calls to vectorizable_ ()
6010 functions. For not pure SLP stmts with strided access check that the
6011 group size is power of 2. Update the vectorization factor according to
6012 SLP. Call vect_update_slp_costs_according_to_vf.
6013 (vect_analyze_group_access): New.
6014 (vect_analyze_data_ref_access): Call vect_analyze_group_access.
6015 (vect_free_slp_tree): New functions.
6016 (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
6017 vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
6018 vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
6019 vect_detect_hybrid_slp): Likewise.
6020 (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
6021 and vect_detect_hybrid_slp.
6022 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
6023 SLP costs into account.
6024 (vect_get_cost_fields): New function.
6025 (vect_model_simple_cost): Make extern, add SLP parameter and handle
6026 SLP.
6027 (vect_model_store_cost, vect_model_load_cost): Likewise.
6028 (vect_get_constant_vectors): New function.
6029 (vect_get_slp_vect_defs, vect_get_slp_defs,
6030 vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
6031 vect_get_vec_defs): Likewise.
6032 (vectorizable_reduction): Don't handle SLP for now.
6033 (vectorizable_call): Don't handle SLP for now. Add argument to
6034 vect_model_simple_cost.
6035 (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
6036 get SLPed and vectorized defs). Fix indentation and spacing.
6037 (vectorizable_assignment): Handle SLP.
6038 (vectorizable_induction): Don't handle SLP for now.
6039 (vectorizable_operation): Likewise.
6040 (vectorizable_type_demotion): Add argument to
6041 vect_model_simple_cost.
6042 (vectorizable_type_promotion): Likewise.
6043 (vectorizable_store, vectorizable_load): Handle SLP.
6044 (vectorizable_condition): Don't handle SLP for now.
6045 (vect_transform_stmt): Add a new argument for SLP. Check that there is
6046 no SLP transformation required for unsupported cases. Add SLP
6047 argument for supported cases.
6048 (vect_remove_stores): New function.
6049 (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
6050 (vect_transform_loop): Schedule SLP instances.
6051 * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
6052
edc91305 60532007-09-09 Andrew Haley <aph@redhat.com>
6054
987b8c35 6055 * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
6056 signed optab.
edc91305 6057
19d2fe05 60582007-09-09 Hans-Peter Nilsson <hp@axis.com>
6059
6060 Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
6061 * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
6062 Similar for what label_refs can go in the JUMP_TARGET field. Split
6063 REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
6064 * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
6065 REG_LABEL when replacing an operand with a LABEL_REF for a
6066 non-jump insn.
6067 (subst_reloads): When replacing a LABEL_REG with a register,
6068 instead of generating a REG_LABEL note, assert that there already
6069 is one or that the label is a known target for the insn.
6070 * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
6071 note, check the JUMP_LABEL field. Remove "else" after return.
6072 * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
6073 cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
6074 (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
6075 REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
6076 insns. Iterate over all notes; don't assume there's only one.
6077 * cse.c (recorded_label_ref): Adjust comment to refer to
6078 REG_LABEL_OPERAND.
6079 (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
6080 insns, not just NONJUMP_INSN_P.
6081 (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
6082 isn't a jump target.
6083 * jump.c (rebuild_jump_labels): Adjust head comment.
6084 (init_label_info): Ditto. Remove REG_LABEL_OPERAND notes only;
6085 don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
6086 (mark_all_labels): For JUMP_P insns without a target, check if the
6087 the target is noted on the previous nonjump insn.
6088 (mark_jump_label_1): New function, guts from mark_jump_label.
6089 <case IF_THEN_ELSE>: Handle first operand as a non-target when
6090 marking jump target labels.
6091 <case LABEL_REF>: Adjust for whether to generate a
6092 REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
6093 For 'E' format rtl, iterate in descending element order.
6094 (delete_related_insns): Handle both REG_LABEL_TARGET and
6095 REG_LABEL_OPERAND notes. For JUMP_P insns with labels with zero
6096 reference count, delete and fallthrough. Move finding-next-
6097 non-deleted insn last in the function. Look at all INSN_P insns
6098 for REG_LABEL_OPERAND notes.
6099 (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
6100 JUMP.
6101 * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
6102 JUMP_LABEL, output the INSN_UID of it.
6103 * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
6104 and/or REG_LABEL_TARGET.
6105 (add_label_notes): Only add REG_LABEL_OPERAND notes. Put in line
6106 with jump.c copy by only adding notes for labels actually
6107 referenced in the insn.
6108 * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
6109 usage count increment; handle all INSN_P trial insns.
6110 (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
6111 notes.
6112 * rtl.h (struct rtx_def) <volatil>: Adjust to mention
6113 REG_LABEL_TARGET and REG_LABEL_OPERAND.
6114 (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
6115 REG_LABEL_OPERAND.
6116 * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
6117 JUMP_P insns and REG_LABEL_OPERAND everywhere.
6118 * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
6119 on all INSN_P insns.
6120 * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
6121 * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
6122 REG_LABEL_OPERAND notes.
6123 * reload1.c (calculate_needs_all_insns): Adjust comments.
6124 (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
6125 * config/alpha/alpha.md (split for load of an address into a
6126 four-insn sequence on Unicos/Mk): Adjust to use
6127 REG_LABEL_OPERAND.
6128 * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
6129
201f6961 61302007-09-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6131
6132 Revert:
6133 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6134 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
6135 FOR_BB_INSNS_SAFE instead of for loop.
6136 * cse.c (cse_extended_basic_block): Likewise.
6137 * postreload.c (reload_cse_regs_1): New variable next. Make sure
6138 that the for loop does not invoke NEXT_INSN on a deleted insn.
6139 * function.c (instantiate_virtual_regs): Likewise.
6140 * lower-subreg.c (remove_retval_note): Likewise.
6141 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
6142 FOR_BB_INSNS.
6143 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
6144 a deleted insn.
6145 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
6146 insn, if it's a jump.
6147 (try_redirect_by_replacing_jump): New variable jump_p. Call
6148 tablejump_p before delete_insn_chain.
6149 * reload1.c (reload): New variable next. Make sure that the for
6150 loop does not invoke NEXT_INSN on a deleted insn.
6151 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
6152 (delete_output_reload): New variable prev. Make sure the the for
6153 loops do not invoke PREV_INSN on a deleted insn.
6154
4c6979c5 61552007-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6156
6157 * pa/constraints.md: Remove 'X' from unused letters comment.
6158
a3ef3b05 61592007-09-08 Richard Guenther <rguenther@suse.de>
6160
6161 * tree-tailcall.c (find_tail_calls): If we don't have aliases
6162 computed check stmt_ann->references_memory instead of counting
6163 virtual operands.
6164
61652007-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4f34fbd6 6166
6167 * cse.c (fold_rtx): Use validate_unshare_change() instead of
6168 validate_change() in one more case.
6169
1b0af592 61702007-09-08 Zdenek Dvorak <ook@ucw.cz>
6171
6172 PR tree-optimization/32283
6173 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
6174 estimated_loop_iterations.
6175 (determine_use_iv_cost_condition): Decrease cost of expressions
6176 used in iv elimination.
6177
b271e042 61782007-09-08 Richard Guenther <rguenther@suse.de>
6179
6180 * tree-cfg.c (verify_gimple_expr): Avoid building new
6181 pointer types, use TYPE_POINTER_TO if available instead.
6182
fac18305 61832007-09-08 Uros Bizjak <ubizjak@gmail.com>
6184
6185 PR target/33329
a18f7c09 6186 PR rtl-optimization/26449
fac18305 6187 * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
6188 (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
6189 split1 pass.
6190 (mulv16qi3): Implement as define_insn_and_split pattern instead of
a18f7c09 6191 define_expand. Split insn in split1 pass.
fac18305 6192 (mulv2di3): Ditto.
6193
a1bcc9fa 61942007-09-08 Dorit Nuzman <dorit@il.ibm.com>
6195
6196 PR tree-optimization/33301
6197 * tree-vect-analyze (analyze_operations): Look at the type of the rhs
6198 when relevant.
6199
a4c3fb95 62002007-09-07 Zdenek Dvorak <ook@ucw.cz>
6201
6202 PR tree-optimization/32183
6203 * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
6204
6205 * tree-ssa-reassoc.c: Include cfgloop.h.
6206 (is_reassociable_op): Add a loop argument and return true only
6207 for inside loop.
6208 (linearize_expr): Updated.
6209 (should_break_up_subtract): Likewise.
6210 (linearize_expr_tree): Likewise.
6211 (init_reassoc): Call loop_optimizer_init with
6212 AVOID_CFG_MODIFICATIONS. Remove calculate_dominance_info call
6213 with CDI_DOMINATORS.
6214 (fini_reassoc): Call loop_optimizer_finalize.
6215
b50d211f 62162007-09-07 Sterling Augustine <sterling@tensilica.com>
6217
6218 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
6219 if there is no i-cache.
6220
e01e695f 62212007-09-07 Richard Guenther <rguenther@suse.de>
6222
6223 Reapply
6224 2007-09-06 Richard Guenther <rguenther@suse.de>
6225
6226 PR tree-optimization/32586
6227 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
6228 folding if nothing changed.
6229 (simplify_unary_expression): New function. Do tree combining
6230 on conversion like codes.
6231 (try_to_simplify): Call it.
6232
05f60a3c 62332007-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6234
6235 PR target/33286
6236 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
6237 (__gthread_active,__gthread_start, __gthread_active_init): New.
6238 * gthr-posix95.h: Likewise.
6239
c6290e1b 62402007-09-07 Roman Zippel <zippel@linux-m68k.org>
6241
6242 * function.h (struct function): Rename calls_unwind_init
6243 to saves_all_registers.
6244 (current_function_saves_all_registers): Renamed from
6245 current_function_calls_unwind_init.
6246 * reload1.c (reload): Set current_function_saves_all_registers.
6247 * except.c (expand_builtin_unwind_init): Likewise.
6248 * config/m68k/m68k.c (m68k_save_reg): Use
6249 current_function_saves_all_registers to save pic register.
6250
4e6322c5 62512007-09-07 Janis Johnson <janis187@us.ibm.com>
6252
6253 config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
6254 config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
6255
6256 Reapply reverted changes:
6257
6258 2007-09-06 Jan Hubicka <jh@suse.cz>
6259
987b8c35 6260 * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
6261 of real_2expN.
4e6322c5 6262
6263 2007-09-06 Richard Sandiford <richard@codesourcery.com>
6264
6265 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6266 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
6267
6268 2007-09-05 Janis Johnson <janis187@us.ibm.com>
6269
6270 * optabs.c (expand_float): Convert unsigned integer as signed only
6271 if it provides sufficient accuracy; add mode argument to real_2expN.
6272 (expand_fix): Fix comment typos; extend binary float into mode
6273 wider than destination for converion to unsigned integer; add mode
6274 argument to real_2expN.
6275 * real.c (real_2expN): Add mode argument to special-case decimal
6276 float values.
6277 * real.h (real_2expN): Ditto.
6278 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
6279 real_2expN.
6280 (fixed_from_string): Ditto.
6281 (fixed_to_decimal): Ditto.
6282 (fixed_convert_from_real): Ditto.
6283 (real_convert_from_fixed): Ditto.
6284 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
6285 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
6286 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
6287 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
6288
47aaf6e6 62892007-09-07 Diego Novillo <dnovillo@google.com>
6290
6291 * tree-flow.h (const_block_stmt_iterator): Remove.
6292 Update all users to use block_stmt_iterator.
6293 * tree-iterator.h (const_tree_stmt_iterator): Remove.
6294 Update all users to use tree_stmt_iterator.
6295
cdc47811 62962007-09-07 Sandra Loosemore <sandra@codesourcery.com>
6297
6298 * config/mips/mips.c (mips_set_current_function): Temporarily
6299 make this a no-op to fix bootstrap errors, pending rewrite.
6300
fc6b8ace 63012007-09-07 Jan Hubicka <jh@suse.cz>
6302
6303 * reorg.c (dbr_schedule): Move code removing placeholder USEs later
6304 in the pass.
6305
ef76cc03 63062007-09-07 Dorit Nuzman <dorit@il.ibm.com>
6307
6308 PR tree-optimization/33299
a18f7c09 6309 * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
6310 uses for all relevant loop-exit phis, not just the first.
ef76cc03 6311
c88327fb 63122007-09-07 Richard Guenther <rguenther@suse.de>
6313
6314 PR middle-end/33330
6315 * tree-ssa-operands.c (access_can_touch_variable): An access
6316 of the form (*p)[0] can touch a variable of same size.
6317
83cfcdaf 63182007-09-07 Jan Hubicka <jh@suse.cz>
6319
6320 * passes.c (init_optimization_passes): Add simple dce and addressable
6321 passes.
6322 * tree-ssa.c (execute_update_addresses_taken): New function.
6323 (pass_update_address_taken): New.
6324 * tree-ssa-dse.c (execute_simple_dse): New function.
6325 (pass_simple_dse): New.
6326 * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
6327
ea98cbe0 63282007-09-07 Tobias Burnus <burnus@net-b.de>
6329
6330 PR middle-end/33321
6331 * doc/invoke.texi: Fix -Wstrict-overflow= table.
6332
fe3b4719 63332007-09-07 Richard Guenther <rguenther@suse.de>
6334
6335 Revert
6336 2007-09-06 Richard Guenther <rguenther@suse.de>
6337
6338 PR tree-optimization/32586
6339 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
6340 folding if nothing changed.
6341 (simplify_unary_expression): New function. Do tree combining
6342 on conversion like codes.
6343 (try_to_simplify): Call it.
6344
aaa78a93 63452007-09-07 Richard Guenther <rguenther@suse.de>
6346 Uros Bizjak <ubizjak@gmail.com>
6347
6348 PR tree-optimization/32821
6349 * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
6350 NULL in the call to set_bb_stmt_list.
6351
2a4176f8 63522007-09-07 Richard Sandiford <richard@codesourcery.com>
6353
6354 * config/mips/mips.c (build_mips16_call_stub): Emit all direct
6355 float calls here, rather than leaving some to the caller.
6356 Use call_internal_direct and call_value_internal_direct.
6357 * config/mips/mips.md (call_internal_direct): New pattern.
6358 (call_value_internal_direct): Likewise.
6359
926050b1 63602007-09-07 Richard Sandiford <richard@codesourcery.com>
6361
6362 * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
6363 (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
6364 to 0 for MIPS16.
6365 (override_options): Set mips_base_move_loop_invariants.
6366
d1ff3937 63672007-09-07 Richard Sandiford <richard@codesourcery.com>
6368
6369 * config/mips/mips.opt (mcode-readable=): Move to keep list
6370 alphabetical.
6371
671264d9 63722007-09-07 Richard Sandiford <richard@codesourcery.com>
6373
6374 * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
6375 and -mgpopt options. Adjust the -G documentation to match.
6376 * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
6377 * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
6378 function, split out from mips_classify_symbol. Return false for
6379 !TARGET_LOCAL_SDATA.
6380 (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
6381 Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
6382 (override_options): Check whether the -mgpopt setting is consistent
6383 with the other flags.
6384 (symbolic_expression_p): Delete.
6385 (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
6386 and default_elf_select_rtx_section.
6387 (mips_in_small_data_p): Honor section attributes for MIPS16 too.
6388 Return false for local data unless TARGET_LOCAL_SDATA. Likewise
6389 external data and TARGET_EXTERN_SDATA.
6390
6d7f615c 63912007-09-07 Tobias Burnus <burnus@net-b.de>
6392
6393 PR fortran/33303
6394 * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
6395
40aed475 63962007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6397
6398 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
6399 FOR_BB_INSNS_SAFE instead of for loop.
6400 * cse.c (cse_extended_basic_block): Likewise.
6401 * postreload.c (reload_cse_regs_1): New variable next. Make sure
6402 that the for loop does not invoke NEXT_INSN on a deleted insn.
6403 * function.c (instantiate_virtual_regs): Likewise.
6404 * lower-subreg.c (remove_retval_note): Likewise.
6405 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
6406 FOR_BB_INSNS.
6407 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
6408 a deleted insn.
6409 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
6410 insn, if it's a jump.
6411 (try_redirect_by_replacing_jump): New variable jump_p. Call
6412 tablejump_p before delete_insn_chain.
6413 * reload1.c (reload): New variable next. Make sure that the for
6414 loop does not invoke NEXT_INSN on a deleted insn.
6415 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
6416 (delete_output_reload): New variable prev. Make sure the the for
6417 loops do not invoke PREV_INSN on a deleted insn.
6418
79acaae1 64192007-09-06 Zdenek Dvorak <ook@ucw.cz>
6420
6421 * cgraphbuild.c (rebuild_cgraph_edges): Export.
6422 * cgraph.h (rebuild_cgraph_edges): Declare.
6423 * tree-pass.h (pass_expand_omp_ssa): New.
6424 * omp-low.c (find_omp_clause): Export.
6425 (copy_var_decl): Split from omp_copy_decl_2.
6426 (build_omp_barrier): Return the call to emit instead of emitting
6427 it directly.
6428 (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
6429 build_omp_barrier.
6430 (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
6431 expand_omp_for_generic, expand_omp_for_static_nochunk,
6432 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
6433 Adapted to work on SSA form.
6434 (execute_expand_omp): Do not invalidate dominance information.
6435 (gate_expand_omp): Do not run with -fopenmp-ssa flag.
6436 (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
6437 * gimplify.c (gimplify_omp_for): Ensure that the control variable is
6438 a gimple_reg.
6439 (force_gimple_operand): Allow gimplifying code expressions without
6440 value.
6441 * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
6442 * common.opt (fopenmp-ssa): New.
6443 * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
6444 * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
6445 * tree-cfg.c: Include tree-inline.h.
6446 (struct move_stmt_d): Replace vars_to_remove by vars_map field.
6447 (replace_by_duplicate_decl, replace_ssa_name,
6448 mark_virtual_ops_in_region): New functions.
6449 (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
6450 to work on SSA form.
6451 * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
6452 * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
6453 constructs.
6454
3026d558 64552007-09-06 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6456
6457 * tree-loop-linear.c: Include obstack.h.
6458 (linear_transform_loops): New obstack lambda_obstack.
6459 Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
6460 lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
6461 and free afterwards.
6462 * lambda.h (struct obstack): New forward declaration.
6463 (lambda_linear_expression_new): New parameter of type struct
6464 obstack *.
6465 (lambda_loopnest_new): Likewise.
6466 (lambda_loopnest_transform): Likewise.
6467 (lambda_body_vector_new): Likewise.
6468 (lambda_body_vector_compute_new): Likewise.
6469 (gcc_loopnest_to_lambda_loopnest): Likewise.
6470 (lambda_loopnest_to_gcc_loopnest): Likewise.
6471 * lambda-code.c: Include obstack.h.
6472 (lambda_lattice_new): New parameter lambda_obstack. Use it for
6473 allocation of ret.
6474 (lambda_body_vector_new): Likewise.
6475 (lambda_linear_expression_new): Likewise.
6476 (lambda_lattice_new): Likewise.
6477 (lambda_loopnest_new): Likewise. Additionally use obstack to
6478 allocate LN_LOOPS(ret).
6479 (lambda_lattice_compute_base): New parameter lambda_obstack. Pass
6480 it to lambda_lattice_new.
6481 (lambda_body_vector_compute_new): New parameter lambda_obstack.
6482 Pass it to lambda_body_vector_new.
6483 (lambda_lattice_compute_base): New paramater lambda_obstack. Pass
6484 it to lambda_lattice_new.
6485 (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
6486 Pass it to lambda_loopnest_new, lambda_linear_expression_new.
6487 (lambda_compute_target_space): Likewise.
6488 (lambda_compute_auxillary_space): New parameter lambda_obstack.
6489 Pass it to lambda_lattice_compute_base and
6490 compute_nest_using_fourieer_motzkin.
6491 (lambda_loopnest_transform): New parameter lambda_obstack. Pass
6492 it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
6493 and lambda_lattice_compute_target_space.
6494 (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
6495 Pass it to lambda_linear_expression_new.
6496 (gcc_loop_to_lambda_loop): New parameter lambda_obstack. Pass it
6497 to gcc_tree_to_linear_expression.
6498 (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
6499 Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
6500 (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
6501 Pass it to lambda_body_vector_new and
6502 lambda_body_vector_compute_new.
6503 * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
6504 (lambda-code.o): Likewise.
6505
68a556d6 65062007-09-06 Chao-ying Fu <fu@mips.com>
6507
6508 * ginclude/stdfix.h: New file.
6509 * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
6510 (convert.o): Add dependence on fixed-value.h.
6511 * c-convert.c (convert): Support FIXED_POINT_TYPE.
6512 * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
6513 to define fixed-point constants.
6514 (c_cpp_builtins): Define fixed-point constants.
6515 * convert.c (fixed-value.h): New include.
6516 (convert_to_real): Update comment to include fixed-point.
6517 Support FIXED_POINT_TYPE.
6518 (convert_to_integer): Update comment to include fixed-point.
6519 Support FIXED_POINT_TYPE.
6520 (convert_to_complex): Support FIXED_POINT_TYPE.
6521 (convert_to_fixed): New function.
6522 * convert.h (convert_to_fixed): Declare.
6523 * genopinit.c: Add comment about $Q for only fixed-point modes.
6524 (optabs): Add fract_optab, fractuns_optab, satfract_optab,
6525 satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
6526 sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
6527 ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
6528 usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
6529 usneg_optab for fixed-point modes.
6530 (gen_insn): Add force_fixed to track the $Q format for all fixed-point
6531 modes.
6532 * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
6533 PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
6534 unsigned saturation optabs, when type is saturating.
6535 (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
6536 (expand_fixed_convert): New function.
6537 (gen_fixed_libfunc, gen_signed_fixed_libfunc,
6538 gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
6539 gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
6540 gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
6541 gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
6542 gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
6543 functions.
6544 (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
6545 ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
6546 usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
6547 ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
6548 usneg_optab, fract_optab, fractuns_optab, satfract_optab,
6549 satfractuns_optab.
6550 Initialize fixed-point libraries, including add, ssadd, usadd, sub,
6551 sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
6552 ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
6553 fractuns, satfractuns.
6554 * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
6555 OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
6556 OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
6557 OTI_ssmsub_widen, OTI_usmsub_widen.
6558 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
6559 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
6560 ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
6561 umsub_widen_optab, usmsub_widen_optab): Define.
6562 (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
6563 COI_satfractuns.
6564 (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
6565 Define.
6566 (expand_fixed_convert): Declare.
6567 * expr.c (convert_move): Support the move of fixed-point modes.
6568 (emit_move_insn_1): Handle fixed-point mode to move via integer.
6569 (categorize_ctor_elements_1): Handle FIXED_CST.
6570 (count_type_elements): Handle FIXED_POINT_TYPE.
6571 (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
6572 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
6573 Support FIXED_CST.
6574 For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
6575 multiply and add/subtract for fixed-point types.
6576 For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
6577 mode, we jump to binop directly.
6578 Support FIXED_CONVERT_EXPR.
6579 (do_store_flag): Check FIXED_CST to put a constant second.
6580 (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
6581 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
6582 (const_vector_from_tree): Support FIXED_CST.
6583 * doc/extend.texi (Fixed-Point): New node.
6584 * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
6585 ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
6586 satfract, fractuns, satfractuns): Document them.
6587
309c01cd 65882007-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6589
6590 * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
6591 addresses into I registers.
6592
3b4a645f 65932007-09-06 Jan Hubicka <jh@suse.cz>
6594 Andreas Tobler <a.tobler@schweiz.org>
6595
6596 * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
6597 sharing.
6598 (machopic_legitimize_pic_address): Likewise.
6599
aa1a4442 66002007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
987b8c35 6601 Jan Hubicka <jh@suse.cz>
aa1a4442 6602
6603 * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
6604 instead of ufloat_optab->handlers directly.
6605 (floatdidf2): Likewise.
6606
c9c544f1 66072007-09-06 Sandra Loosemore <sandra@codesourcery.com>
6608
6609 * config/mips/mips.c: Include diagnostic.h.
6610 (mips_set_current_function): Check errorcount and sorrycount
6611 before generating RTL.
6612
ba3f4836 66132007-09-06 Richard Sandiford <richard@codesourcery.com>
6614
6615 PR target/33256
6616 * config/mips/mips.c (mips_classify_symbolic_expression): New function.
6617 (mips_classify_address): Use it instead of mips_symbolic_constant_p.
6618 (print_operand_reloc): Likewise.
6619
f9f8fff9 66202007-09-06 Janis Johnson <janis187@us.ibm.com>
6621
6622 Revert:
6623
6624 2007-09-06 Jan Hubicka <jh@suse.cz>
6625
6626 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
6627 real_2expN.
6628
6629 2007-09-06 Richard Sandiford <richard@codesourcery.com>
6630
6631 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6632 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
6633
6634 2007-09-05 Janis Johnson <janis187@us.ibm.com>
6635
6636 * optabs.c (expand_float): Convert unsigned integer as signed only
6637 if it provides sufficient accuracy; add mode argument to real_2expN.
6638 (expand_fix): Fix comment typos; extend binary float into mode
6639 wider than destination for converion to unsigned integer; add mode
6640 argument to real_2expN.
6641 * real.c (real_2expN): Add mode argument to special-case decimal
6642 float values.
6643 * real.h (real_2expN): Ditto.
6644 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
6645 real_2expN.
6646 (fixed_from_string): Ditto.
6647 (fixed_to_decimal): Ditto.
6648 (fixed_convert_from_real): Ditto.
6649 (real_convert_from_fixed): Ditto.
6650 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
6651 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
6652 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
6653 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
6654
931b0a0f 66552007-09-06 Tom Tromey <tromey@redhat.com>
6656
6657 * tree-cfg.c (remove_bb): Only warn if line is non-zero.
6658 * c-pch.c (c_common_read_pch): Restore current location after
6659 reading PCH file.
6660 * tree.c (expand_location): Update.
6661 (expr_filename): Changed return type. Unified the two cases.
6662 (expr_lineno): Likewise.
6663 (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
6664 as lvalues.
6665 * toplev.c (line_table): Changed type.
6666 (general_init): Update.
6667 (realloc_for_line_map): New function.
6668 (general_init): Allocate line_table using GC.
6669 * fix-header.c (line_table): Changed type.
6670 (read_scan_file): Update.
6671 (read_scan_file): Update.
6672 * c-ppoutput.c (maybe_print_line): Update.
6673 (print_line): Update.
6674 (cb_line_change): Update.
6675 (cb_define): Update.
6676 (pp_file_change): Update.
6677 * c-opts.c (c_common_init_options): Update.
6678 (finish_options): Update.
6679 (push_command_line_include): Update.
6680 * c-lex.c (cb_line_change): Update.
6681 (cb_def_pragma): Update.
6682 (cb_define): Update.
6683 (cb_undef): Update.
6684 (c_lex_with_flags): Use cpp_get_token_with_location.
6685 * input.h (line_table): Changed type.
6686 (location_from_locus): New macro.
6687 * tree.h (EXPR_FILENAME): No longer an lvalue.
6688 (EXPR_LINENO): Likewise.
6689 (expr_locus, set_expr_locus): Declare separately for
6690 USE_MAPPED_LOCATION.
6691 (expr_filename, expr_lineno): Changed return type.
6692 * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
6693 * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
6694 (expand_gimple_basic_block): Likewise.
6695 * final.c (final_scan_insn): Use expanded_location.
6696
71bf42bb 66972007-09-06 Richard Guenther <rguenther@suse.de>
6698
6699 PR tree-optimization/32586
6700 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
6701 folding if nothing changed.
6702 (simplify_unary_expression): New function. Do tree combining
6703 on conversion like codes.
6704 (try_to_simplify): Call it.
6705 * builtins.c (fold_builtin_cexp): Fold the built expressions.
6706 * fold-const.c (fold_unary): Test result of get_callee_fndecl().
6707
045ed337 67082007-09-06 Jan Hubicka <jh@suse.cz>
6709
6710 PR target/33318
6711 * cse.c (fold_rtx): Avoid invalid sharing.
6712
4bd7df97 67132007-09-06 Richard Sandiford <richard@codesourcery.com>
6714
6715 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6716 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
6717
f87dfcd1 67182007-09-06 Revital Eres <eres@il.ibm.com>
6719
6720 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6721 Fix offsettable memory reference for 750CL.
6722
ce0d0c3a 67232007-09-06 Pat Haugen <pthaugen@us.ibm.com>
6724
6725 * reload.c (find_reloads_address_1): Try to preserve original
6726 base/index regclass of operands.
6727 * regrename.c (scan_rtx_address): Likewise.
6728 (replace_oldest_value_addr): Likewise.
6729
a490a493 67302007-09-06 Richard Guenther <rguenther@suse.de>
6731
6732 PR tree-optimization/33302
6733 * domwalk.c (walk_dominator_tree): The exit block is
6734 interesting even if it is not reachable.
6735
be738b41 67362007-09-06 Richard Sandiford <richard@codesourcery.com>
6737
6738 PR middle-end/33306
6739 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
6740
f7390b74 67412007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
6742
6743 * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
6744 robustness.
6745
b4e7b9fe 67462007-09-05 Ian Lance Taylor <iant@google.com>
6747
6748 * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
6749 when printing.
6750 (dump_generic_node): Likewise.
6751 * print-rtl.c (print_decl_name): Likewise.
6752 * print-tree.c (print_node_brief): Likewise.
6753 (print_node): Likewise.
6754 * Makefile.in (RTL_BASE_H): Add alias.h.
6755 (TREE_H): Likewise.
6756
eab0bba7 67572007-09-06 Jesper Nilsson <jesper.nilsson@axis.com>
6758
6759 * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
6760 Defined.
6761 * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
6762 * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
6763
f9612ead 67642007-09-06 Jie Zhang <jie.zhang@analog.com>
6765
6766 * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
6767 (tm_defines): Define UCLIBC_DEFAULT to 1.
6768 (extra_options): Add linux.opt.
6769 * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
6770 (CRT_CALL_STATIC_FUNCTION): Likewise.
6771 (NO_IMPLICIT_EXTERN_C): Likewise.
6772 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
6773 * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
6774 * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
6775 (ENDFILE_SPEC): Don't define.
6776 (LIB_SPEC): Likewise.
6777 (CRT_CALL_STATIC_FUNCTION): Likewise.
6778 (NO_IMPLICIT_EXTERN_C): Likewise.
6779 (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
6780 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
6781
c3b29709 67822007-09-06 Jan Hubicka <jh@suse.cz>
6783
6784 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
6785 real_2expN.
6786
92ffbdd1 67872007-09-06 Jan Hubicka <jh@suse.cz>
6788
6789 * opts.c (common_handle_option): Enable inlining functions for
6790 -fprofile-generate.
6791
8b913960 67922007-09-06 Jakub Jelinek <jakub@redhat.com>
6793
6794 * builtin-attrs.def (ATTR_NONNULL_3): New.
6795 (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
6796 ATTR_NOTHROW_NONNULL_##FA.
6797 (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
6798 (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
6799 ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
6800 ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
6801 ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
6802 ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
6803 ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
6804 New.
6805 (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
6806 ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
6807 ATTR_FORMAT_NOTHROW_3_4): Remove.
6808 * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
6809 vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
6810 __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
6811 instead of ATTR_FORMAT_*_*.
6812
5ea3a301 68132007-09-06 Hans-Peter Nilsson <hp@axis.com>
6814
6815 * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
6816 parts re-used for REG_FRAME_RELATED_EXPR.
6817
94324bd1 68182007-09-05 Janis Johnson <janis187@us.ibm.com>
6819
6820 * optabs.c (expand_float): Convert unsigned integer as signed only
6821 if it provides sufficient accuracy; add mode argument to real_2expN.
6822 (expand_fix): Fix comment typos; extend binary float into mode
6823 wider than destination for converion to unsigned integer; add mode
6824 argument to real_2expN.
6825 * real.c (real_2expN): Add mode argument to special-case decimal
6826 float values.
6827 * real.h (real_2expN): Ditto.
6828 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
6829 real_2expN.
6830 (fixed_from_string): Ditto.
6831 (fixed_to_decimal): Ditto.
6832 (fixed_convert_from_real): Ditto.
6833 (real_convert_from_fixed): Ditto.
6834 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
6835 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
6836 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
6837 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
6838
4d9a38ce 68392007-09-05 Ian Lance Taylor <iant@google.com>
6840
6841 * init-regs.c (initialize_uninitialized_regs): Call
6842 emit_insn_before rather than add_insn_before.
6843
48dc2227 68442007-09-05 Jakub Jelinek <jakub@redhat.com>
6845
6846 * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
6847 * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
6848 * tree-inline.h (copy_body_data): Add call_expr field.
6849 * tree-inline.c (expand_call_inline): Initialize call_expr.
6850 (copy_bb): Append anonymous inline fn arguments to arguments
6851 when inlining a CALL_EXPR_VA_ARG_PACK call.
6852 * builtins.c (expand_builtin): Issue an error if
6853 BUILT_IN_VA_ARG_PACK is seen during expand.
6854 (fold_call_expr, fold_builtin_call_array): Don't fold
6855 CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
6856 __builtin_va_arg_pack () call as last argument.
6857 * gimplify.c (gimplify_call_expr): If last argument to a vararg
6858 function is __builtin_va_arg_pack (), decrease number of call
6859 arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
6860 * expr.c (expand_expr_real_1): Issue an error if
6861 CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
6862 * tree-pretty-print.c (dump_generic_node): Handle printing
6863 CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
6864 * doc/extend.texi (__builtin_va_arg_pack): Document.
6865
76f5a783 68662007-09-05 Adam Nemet <anemet@caviumnetworks.com>
6867
6868 PR tree-optimization/21513
6869 * builtins.c (build_builtin_expect_predicate): New function.
6870 (fold_builtin_expect): Add argument for expected value.
6871 Distribute __builtin_expect over short-circuiting operations.
6872 Fold nested builtin_expects.
6873 (fold_builtin_2): Adjust call to fold_builtin_expect.
6874
f4607b82 68752007-09-05 Rask Ingemann Lambertsen <rask@sygehus.dk>
6876
6877 PR web/32965
6878 PR tree-optimization/13756
6879 * doc/invoke.texi (Options That Control Optimization): Document
6880 -ftree-dse.
6881
daf03e2f 68822007-09-05 Uros Bizjak <ubizjak@gmail.com>
6883
69a83716 6884 * config/i386/cpuid.h: New file.
6885 * config/i386/driver-i386.c: Include cpuid.h.
daf03e2f 6886 (describe_cache): Shrink size and line strings to 100 bytes.
6887 (detect_caches_amd): Return "" for unsupported max_ext_level.
6888 Use __cpuid function.
6889 (detect_caches_intel): Return "" for unsupported max_level.
6890 Use __cpuid function.
6891 (host_detect_local_cpu): Change feature flag variables to
6892 unsigned int. Initialize only extended feature flag variables.
6893 Use __get_cpuid_max to determine max supported cpuid level.
6894 Use __cpuid function to determine supported features. Fix
6895 calculation of family id. Remove is_amd and check signature
6896 directly. Check for Geode signature. Handle family 4 id.
6897 [PROCESSOR_GENERIC32]: New default for unknown family id. Move
6898 cpu discovery code to lower part of the function.
6899 [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
6900 for sub-architecture.
6901 [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
6902 [PROCESSOR_K8]: Add k8-sse3 architecture.
6903 [PROCESSOR_NOCONA]: Remove.
6904 [PROCESSOR_GENERIC64]: Ditto.
69a83716 6905 * config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
6906 * config/i386/crtfastmath.c: Include cpuid.h. Use __get_cpuid
daf03e2f 6907 to check for SSE and FXSAVE support.
69a83716 6908 * config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
daf03e2f 6909 Add -minline-all-stringops.
69a83716 6910 * config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
daf03e2f 6911 (x86_64-*-*): Ditto.
6912
69132007-09-05 Jie Zhang <jie.zhang@analog.com>
2c51f67b 6914
6915 * config/bfin/linux-unwind.h: New file.
6916 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
6917 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
6918
4527a0e8 69192007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6920
6921 * Makefile.in (stmt.o): Add alloc-pool.h dependency.
6922 * stmt.c: Include alloc-pool.h.
6923 (struct case_node): Remove GTY marker.
6924 (add_case_node): New parameter case_node_pool. Use it for
6925 allocation of r.
6926 (expand_case): New allocation pool case_node_pool. Initialize it,
6927 pass to add_case_node and free it.
6928
bd4d19da 69292007-09-05 Sandra Loosemore <sandra@codesourcery.com>
6930 David Ung <davidu@mips.com>
987b8c35 6931 Nigel Stephens <nigel@mips.com>
bd4d19da 6932
6933 Add mips16/nomips16 function attributes and -mflip-mips16 option
6934 for testing mixed-mode compilation.
6935
6936 * config/mips/mips.opt (mflip-mips16): New.
6937
6938 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
6939 (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
6940
6941 * config/mips/mips.c (mips_base_target_flags): New.
6942 (mips_base_mips16): New.
6943 (mips_base_schedule_insns): New.
6944 (mips_base_reorder_blocks_and_partition): New.
6945 (mips_base_align_loops): New.
6946 (mips_base_align_jumps): New.
6947 (mips_base_align_functions): New.
6948 (mips16_flipper): New.
6949 (mips_attribute_table): Add "mips16" and "nomips16" entries.
6950 (TARGET_SET_CURRENT_FUNCTION): Define.
6951 (mips_mips16_type_p, mips_nomips16_type_p): New.
6952 (mips_comp_type_attributes): Check mips16/nomips16 attributes.
6953 (mips_function_ok_for_sibcall): Make it deal with functions with
6954 mips16 attributes.
6955 (mips_init_split_addresses): New, split out from override_options.
6956 (mips_init_relocs): New, split out from override_options.
6957 (was_mips16_p): New.
6958 (mips_set_mips16_mode): New, split out from override_options.
6959 (mips_set_current_function): New.
48dc2227 6960 (override_options): Add sorry for unsupported mips16/pic
bd4d19da 6961 combination. Remove error for mips16/dsp combination. Save
6962 base option settings.
6963 (mips_file_start): Move mips16 mode setting output from here....
6964 (mips_output_function_prologue): ....to here.
6965 (mips_output_mi_thunk): Check for mips16 function.
6966 (build_mips16_function_stub): Don't set .mips16 here.
6967 (build_mips16_call_stub): Likewise.
6968 (mips_expand_builtin): Error in mips16 mode.
6969 (mips_use_mips16_mode_p): New.
6970 (mips_encode_section_info): Check for mips16 function, and set
6971 SYMBOL_REF_FLAGS accordingly.
6972
6973 * doc/extend.texi (Function Attributes): Document new
6974 mips16/nomips16 attributes.
6975 * doc/invoke.texi (Option Summary): Add -mflip-mips16.
6976 (MIPS Options): Document -mflip-mips16.
6977
7d038612 69782007-09-05 Sandra Loosemore <sandra@codesourcery.com>
6979
7d038612 6980 * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
6981 if we encounter TLS address in MIPS16 mode.
48dc2227 6982 (mips_legitimize_const_move): Check cannot_force_const_mem for
7d038612 6983 the (const (plus symbol offset)) case; this forces invalid TLS
6984 address in MIPS16 mode to be caught by the above call to sorry.
6985 (override_options): Don't reset targetm.have_tls in MIPS16 mode,
6986 because that now enables emutls, which is not ABI compatible
6987 with native TLS in non-MIPS16 mode.
6988
87d4aa85 69892007-09-05 Sandra Loosemore <sandra@codesourcery.com>
6990
6991 Add target hook invoked when cfun changes.
6992
6993 * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
6994 * target.h (struct gcc_target): Add set_current_function.
6995 * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
6996 (TARGET_INITIALIZER): Add initializer for set_current_function.
6997 * tree.h (push_struct_function): New.
6998 * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
6999 * function.h: Here.
7000 (set_cfun): Declare.
7001 * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
48dc2227 7002 * function.c: Here.
87d4aa85 7003 (push_function_context_to): Use allocate_struct_function
7004 to create null context, not init_dummy_function_start. Use set_cfun.
7005 (pop_function_context_from): Use set_cfun.
7006 (in_dummy_function): New.
7007 (invoke_set_current_function_hook): New.
7008 (set_cfun): New.
7009 (push_cfun, pop_cfun): Use set_cfun.
7010 (push_struct_function): New.
7011 (allocate_struct_function): Call invoke_set_current_function_hook
7012 before returning.
7013 (prepare_function_start): Don't set cfun here. Remove unused
7014 argument; fix all callers.
7015 (init_dummy_function_start): Fiddle with in_dummy_function. Call
7016 push_struct_function.
7017 (init_function_start): Set cfun here.
7018 (expand_dummy_function_end): Fiddle with in_dummy_function. Pop cfun.
7019 * omp-low.c (create_omp_child_function): Use push_struct_function
7020 and pop_cfun to save/restore state.
7021 (expand_omp_parallel): Remove unused saved_cfun variable.
7022 * cgraphunit.c (ipa_passes): Use set_cfun.
7023 * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
7024 * dwarf2out.c (dwarf2out_abstract_function): Likewise.
7025 * matrix-reorg.c (transform_allocation_sites): Likewise.
7026 (matrix_reorg): Use set_cfun.
7027 * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
7028 * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
7029 assignment to cfun; use set_cfun for the other.
7030 * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
7031 (dump_function_to_file): Use push_cfun/pop_cfun here.
7032 * c-decl.c (finish_function): Use set_cfun.
7033
b45b55a5 70342007-09-05 Kenneth Zadeck <zadeck@naturalbridge.com>
7035
48dc2227 7036 * regrename.c (rerename_optimize): Use deferred rescanning and
b45b55a5 7037 insert explicit calls to rescan insns when changed.
7038
fec2d214 70392007-09-05 Jan Hubicka <jh@suse.cz>
7040
7041 * optabs.c (libfunc_entry): Change optab to integer.
7042 (hash_libfunc, convert_optab_libfunc, optab_libfunc,
7043 set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
7044 of pointers for hashing.
7045
0806b508 70462007-09-05 Jan Hubicka <jh@suse.cz>
7047
7048 * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
7049 verifier.
7050 * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
7051 * see.c (pass_see): Likewise.
7052 * tracer.c (pass_tracer): Likewise.
7053 * postreload-gcse.c (pass_gcse2): Likewise.
7054 * postreload.c (pass_postreload_cse): Likewise.
7055 * mode-switching.c (pass_mode_switching): Likewise.
7056 * modulo-sched.c (pass_sms): Likewise.
7057 * cse.c (cse_insn): Likewise.
7058 * web.c (pass_web): Likweise.
7059 * combine-stack-adj.c (pass_stack_adjustments): Likewise.
7060 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
7061 * loop-init.c (pass_rtl_loop_init): Likewise.
7062 (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
7063 pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
7064 * global.c (pass_global_alloc): Likewise.
7065 * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
7066 pass_if_after_reload): Likewise.
7067 * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
7068 * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
7069 * regmove.c (pass_regmove): Likewise.
7070 * function.c (pass_thread_prologugues_epilogues): Likewise.
7071 * gcse.c (pass_gcse): Likewise.
7072 * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
7073 * lower-subreg.c (pass_lower_subreg2): Likewise.
7074 * bt-load.c (pass_branch_target_load): Likewise.
7075 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
7076 * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
7077 * combine.c (pass_combine): Likewise.
7078 * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
7079 (pass_partition_blocks): Likewise.
7080 * var-tracking.c (pass_variable_track): Likewise.
7081 * reg-stack.c (pass_stack_regs_run): Likewise.
7082 * sched-rgn.c (pass_sched, pass_sched2): Likewise.
7083 * passes.c (pass_postreload): Likewise.
7084 (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
7085 * tree-pass.h (TODO_verify_rtl_sharing): New.
7086 (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
7087 TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
7088 TODO_set_props, TODO_df_finish, TODO_df_verify,
7089 TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
7090
b4b34335 70912007-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7092
7093 * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
7094 fold_real_zero_addition_p, reorder_operands_p,
7095 div_if_zero_remainder, fold_undefer_overflow_warnings,
7096 int_binop_types_match_p, fold_convert_const_int_from_int,
7097 fold_convert_const_int_from_real,
7098 fold_convert_const_int_from_fixed,
7099 fold_convert_const_real_from_real,
7100 fold_convert_const_real_from_fixed,
7101 fold_convert_const_fixed_from_fixed,
7102 fold_convert_const_fixed_from_int,
7103 fold_convert_const_fixed_from_real, maybe_lvalue_p,
7104 fold_checksum_tree, fold_check_failed, print_fold_checksum,
7105 debug_fold_checksum, multiple_of_p): Constify.
7106 * tree-flow-inline.h (get_lineno): Likewise.
7107 * tree-flow.h (get_lineno): Likewise.
7108 * tree-object-size.c (compute_object_offset, addr_object_size,
7109 alloc_object_size, pass_through_call): Likewise.
7110 * tree-pretty-print.c (op_symbol, print_call_name,
7111 print_struct_decl, do_niy): Likewise.
7112 * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
7113 debug_fold_checksum): Likewise.
7114
19137b62 71152007-09-04 Steven Bosscher <steven@gcc.gnu.org>
7116
7117 PR middle-end/33029
7118 * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
7119 note, remove the associated REG_RETVAL note.
7120
c22e07a3 71212007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
7122
7123 * config.gcc (powerpc*-*-*): Install
7124 spu2vmx.h, vec_types.h, and si2vmx.h headers.
7125 * config/rs6000/spu2vmx.h: New header.
7126 * config/rs6000/si2vmx.h: New header.
7127 * config/rs6000/vec_types.h: New header.
7128
7998838c 71292007-09-05 Ben Elliston <bje@au.ibm.com>
7130
7131 * varasm.c (initializer_constant_valid_p): Fix comment typo.
7132
f892a69c 71332007-09-05 Ben Elliston <bje@au.ibm.com>
7134
7135 * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
7136 not `m' for *ptrp.
7137 (__stdcx): Make asm volatile.
7138 (__stwcx, __stdcx): Return only 0 or 1.
7139
4ac91eae 71402007-09-05 Jan Hubicka <jh@suse.cz>
7141
7142 Revert:
7143
7144 2007-09-04 Jan Hubicka <jh@suse.cz>
7145 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
7146
7147 2007-09-04 Richard Guenther <rguenther@suse.de>
7148 * tree-ssa-operands.c (add_virtual_operand): Only mark
7149 stores as has_volatile_ops if alias information is not available.
7150
587cc80f 71512007-09-05 Jakub Jelinek <jakub@redhat.com>
7152
7153 * config/rs6000/tramp.asm: Include config.h.
7154 Check __PIC__ or __pic__ macro instead of SHARED.
7155
f436cfa9 7156 PR rtl-optimization/32300
7157 * see.c (see_copy_insn): New function.
7158 (see_def_extension_not_merged, see_merge_one_use_extension,
7159 see_merge_one_def_extension): Use it. Avoid changing
7160 PREV_INSN/NEXT_INSN chains directly, insted emit insns
7161 into sequences. Call df_insn_delete on temporary insns
7162 that won't be emitted into the insn stream.
7163 (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
7164 and run df_process_deferred_rescans () before run_fast_dce.
7165
1497cc76 7166 PR tree-optimization/33017
7167 * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
7168 recurse for pure or const function calls.
7169
15fefecd 71702007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7171
7172 * c-format.c: Include alloc-pool.h.
7173 (check_format_info_main): New argument fwt_alloc. Use allocation
7174 pool instead of GC. Remove GC deallocation code.
7175 (check_format_arg): Create allocation pool, pass it to
7176 check_format_info_main and free it afterwards.
7177 * Makefile.in (c-format.o): Add alloc-pool.h dependency.
7178
56535ebe 71792007-09-05 Ben Elliston <bje@au.ibm.com>
7180
7181 * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
7182 Rename count macro arugment for clarity.
7183 (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
7184 (__protected_stream_set): Likewise, pass 0.
7185
ecce3917 71862007-09-04 Jan Hubicka <jh@suse.cz>
7187
7188 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
7189
b97510b2 71902007-09-04 Jan Hubicka <jh@suse.cz>
7191
7192 * invoke.texi (-finline-small-functions): Document.
7193 * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
7194 when deciding what is inlinable.
7195 (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
7196 (cgraph_decide_inlining_of_small_function): Handle new flags.
7197 (cgraph_decide_inlining_incrementally): Likewise.
7198 * opts.c (decode_options): Enable flag_inline_small_functions at -O2
7199 * common.opt (finline-small-functions): New.
7200 * Makefile.in (build/gengtype.o-warn): Work around PR29478
7201
305647aa 72022007-09-04 Richard Guenther <rguenther@suse.de>
7203
7204 * tree-ssa-operands.c (add_virtual_operand): Only mark
7205 stores as has_volatile_ops if alias information is not available.
7206
72072007-09-04 Andrew Haley <aph@redhat.com>
c5a2e9d4 7208
987b8c35 7209 * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
c5a2e9d4 7210
305647aa 72112007-09-04 Andrew Haley <aph@redhat.com>
4a90ac88 7212
7213 * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
7214 * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
7215 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
7216
e9e7c198 72172007-09-04 Emmanuel Thome <Emmanuel.Thome@inria.fr>
7218
7219 PR c++/14178
7220 * common.opt: Mention ABI version 2 in comment.
7221
f36b9f69 72222007-09-04 Jan Hubicka <jh@suse.cz>
7223
7224 * optabs.c (debug_optab_libfunc): Update; make available to gdb.
7225 (libfunc_entry): New structure.
7226 (libfunc_hash): New hashtable.
7227 (hash_libfunc): New function.
7228 (eq_libfunc): New function.
7229 (convert_optab_libfunc): New function.
7230 (optab_libfunc): New function.
7231 (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
7232 expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
7233 expand_float, expand_fix, new_optab, new_convert_optab):
7234 Update for new libfunc API.
7235 (init_libfunc, init_integral_libfuncs,
7236 init_floating_libfuncs, init_interclass_conv_libfuncs
7237 init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
7238 (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
7239 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
7240 gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
7241 gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
7242 gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
7243 gen_extend_conv_libfunc): New.
7244 (init_one_libfunc): Revamp for hashtables.
7245 (set_conv_libfunc): Likewise.
e9e7c198 7246 (init_optabs): Initialize hashtable; use lazy initialization where
7247 possible.
f36b9f69 7248 * optabs.h (optab_handlers): Move out of GGC.
7249 (optab, convert_optab): Move out of GGC; add lazy gen info.
7250 (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
7251 (optab_libfunc, convert_optab_libfunc): New.
7252 * builtins.c (expand_builtin_powi): Update for new API.
7253 * expr.c (convert_move): Likewise.
7254 * expmed.c (expand_divmod): Likewise.
7255
4d3e4886 72562007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
7257
7258 * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
7259 GOT pointer only if there is a constant pool. Use the allocated space
7260 for SPE also.
7261
09583f49 72622007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
7263
7264 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
7265 typo for AltiVec.
7266
49d060d7 72672007-09-04 Revital Eres <eres@il.ibm.com>
7268 Richard Guenther <rguenther@suse.de>
7269 R. Clint Whaley <whaley@cs.utsa.edu>
7270
7271 * doc/invoke.texi (-fassociative-math, -freciprocal-math):
7272 Document new flags.
7273 * tree-tailcall.c (process_assignment): Use -fassociative-math
7274 when reodering operands of floating-point type.
7275 * fold-const.c (fold_comparison, fold_binary): Use
7276 -fassociative-math and -freciprocal-math instead of
7277 -funsafe-math-optimization flag.
7278 * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
7279 * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
7280 -freciprocal-math instead of -funsafe-math-optimizations.
7281 * opts.c (set_fast_math_flags): Set -freciprocal-math and
7282 -fassociative-math when -ffast-math is set.
7283 (set_unsafe_math_optimizations_flags): New Function
7284 to set -freciprocal-math and -fassociative-math when
7285 -funsafe-math-optimizations is set.
7286 (common_handle_option): Call it.
7287 * tree-vectorizer.c (vect_is_simple_reduction): Use
7288 -fassociative-math when doing reduction on floats.
7289 * loop-unroll.c (analyze_insn_to_expand_var): Use
7290 -fassociative-math when expanding an accumulator of type float.
7291 * simplify-rtx.c (simplify_binary_operation_1): Use
7292 -fassociative-math and -freciprocal-math when reordeing operands
7293 of floating-point type.
7294 * combine.c (combine_simplify_rtx): Likewise.
7295 * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
7296 Likewise.
7297 * common.opt (-fassociative-math, -freciprocal-math): New flags.
7298
4076554c 72992007-09-04 Paolo Carlini <pcarlini@suse.de>
7300
7301 PR c++/18608
7302 * doc/install.texi (--enable-__cxa_atexit): Fix typo.
7303
c81ccd9a 73042007-09-04 Jan Hubicka <jh@suse.cz>
7305
7306 * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
7307
73082007-09-04 Jan Hubicka <jh@suse.cz>
7309
7310 * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
7311 and corresponding MATCH_DUP.
7312
aa70f65e 73132007-09-04 Uros Bizjak <ubizjak@gmail.com>
7314
7315 PR middle-end/33187
7316 * combine.c (subst): Do not try to simplify X if it represents load
7317 of FP constant from the constant pool via float extension.
7318
eee5229e 73192007-09-04 Ben Elliston <bje@au.ibm.com>
7320
7321 * c-opts.c: Include "tm_p.h".
f528f86a 7322 * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
eee5229e 7323
d3828421 73242007-09-04 Richard Guenther <rguenther@suse.de>
7325
7326 PR tree-optimization/33291
7327 * tree-pretty-print.c (dump_generic_node): Dump all
7328 qualifiers for pointer types, not only first. Dump
7329 qualifiers for aggregate types as well.
7330 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
7331 use the canonical type for building ARRAY_REFs.
7332 * gimplify.c (canonicalize_addr_expr): Clean up. The
7333 correct validness check is compatibility of the pointer
7334 types. Always use the canonical type for building
7335 ARRAY_REFs and ADDR_EXPRs.
7336 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
7337 change that disabled propagation of ADDR_EXPRs into statements
7338 with volatile ops.
7339
957788b0 73402007-09-03 Zack Weinberg <zack@codesourcery.com>
7341
7342 * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
7343 (umulsi3_highpart): Make into expanders; existing insns are
7344 now named *[insn]_nov6. Add stars to existing [insn]_v6
7345 counterparts' names.
7346
098ed63d 73472007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
7348
7349 * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
7350 (unprotoize.o): Remove SHLIB_MULTILIB.
7351
75a3518f 73522007-09-03 Eric Weddington <eweddington@cso.atmel.com>
7353
7354 * doc/extend.texi: Document progmem attribute for AVR.
7355
f89fa443 73562007-09-03 Anatoly Sokolov <aesok@post.ru>
7357
7358 PR target/28902
7359 * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
7360
5e02ce4e 73612007-09-03 Zack Weinberg <zack@codesourcery.com>
7362
ff845099 7363 * optabs.c (expand_ffs): Initialize val and defined_at_zero
7364 to avoid warnings.
7365
5e02ce4e 7366 * optabs.c: Remove unnecessary forward declarations.
7367 (expand_unop_direct): New, broken out of expand_unop.
7368 (expand_doubleword_clz): New.
7369 (expand_ctz): Move above expand_ffs. Use
7370 start_sequence, end_sequence, add_equal_note, and
7371 expand_unop_direct. Add more commentary.
7372 (expand_ffs): Try both ctz optab and expand_ctz.
7373 Generate a test and branch if the hardware doesn't give us
7374 a useful value for input zero. Style improvements similar to
7375 expand_ctz.
7376
7377 * config/arm/arm.md (ffssi2, ctzsi2): Delete.
7378
f007ac54 73792007-09-03 Zack Weinberg <zack@codesourcery.com>
7380
7381 * config.gcc: Delete stanza for arm-semi-aof and
7382 armel-semi-aof targets.
7383 * config/arm/arm-protos.h
7384 * config/arm/arm.c
7385 * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
7386 make all #ifndef AOF_ASSEMBLER blocks unconditional. Also
7387 delete aof_pic_label and remove mention of AOF in comments.
7388 * config/arm/arm.md: Delete patterns used only for AOF assembly.
7389 * config/arm/aof.h
7390 * config/arm/semiaof.h
7391 * config/arm/t-semi: Delete file.
7392
e47a6f81 73932007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7394
7395 * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
7396 CONST_CAST_BB): New macros for type-specific casts.
7397 (CONST_CAST): Add a TYPE parameter and define it in terms of
7398 CONST_CAST2.
7399
7400 * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
7401 * c-lex.c (cb_ident, lex_string): Likewise,
7402 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
7403 * config/i386/i386.c (ix86_function_regparm,
7404 ix86_function_sseregparm): Use CONST_CAST_TREE.
7405 * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
7406 CONST_CAST.
7407 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
7408 give_switch, set_multilib_dir): Likewise,
7409 * gengtype-parse.c (string_seq, typedef_name): Likewise,
7410 * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
7411 * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
7412 * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
7413 * prefix.c (update_path): Likewise,
7414 * pretty-print.c (pp_base_destroy_prefix): Likewise,
7415 * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
7416 * tree-cfg.c (tree_can_merge_blocks_p,
7417 tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
7418 * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
7419 * tree.c (build_string): Supply a TYPE for CONST_CAST.
7420 (attribute_list_contained): Use CONST_CAST_TREE.
7421
d7b60d9d 74222007-09-03 Krister Walfridsson <cato@df.lth.se>
7423
7424 * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
7425
81747544 74262007-09-03 Richard Sandiford <richard@codesourcery.com>
7427
7428 PR middle-end/33290
7429 * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
7430 before forcing them into a register.
7431
953d8c12 74322007-09-03 Richard Sandiford <richard@codesourcery.com>
7433
7434 * config/mips/mips.md (fetchop_bit): Use define_code_iterator
7435 rather than define_code_macro.
7436
99c00302 74372007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7438
7439 * gcc.c (xputenv): New function.
7440 (putenv_from_prefixes): Use xputenv instead of putenv.
7441 (process_command): Use xputenv instead of putenv.
7442 (set_collect_gcc_options): Use xputenv instead of putenv.
7443 (main): Use xputenv instead of putenv.
7444
a6eb30b7 74452007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
7446
7447 * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
7448 availability of swap instruction.
7449 * config/cris/cris.md (bswapsi2): Implement using swap instruction.
7450
57c36a83 74512007-09-03 Revital Eres <eres@il.ibm.com>
7452
7453 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
7454 Documentation.
7455
76387907 74562007-09-03 Vladimir Yanovsky <yanov@il.ibm.com>
987b8c35 7457 Ayal Zaks <zaks@il.ibm.com>
7458 Revital Eres <eres@il.ibm.com>
76387907 7459
7460 * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
7461 compute_split_row): New functions.
7462 (ps_unschedule_node): Remove.
7463 (normalize_sched_times): Iterate over the already scheduled
7464 insns instead of the number of nodes.
7465 (MAX_SPLIT_NUM): New definition.
7466 (sms_schedule_by_order): Change the scheduling heuristic to
7467 avoid useless increases of initiation interval ii.
7468 (get_sched_window): Add dump printouts.
7469
e5ee2a85 74702007-09-02 David Daney <ddaney@avtrex.com>
7471
7472 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
7473 UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
7474 (optab, insn): Add more attributes.
7475 (fetchop_bit): New code macro.
7476 (immediate_insn): New code macro attribute.
7477 (sync): Change condition to ISA_HAS_SYNC.
7478 (rdhwr): Change predicate for operand 0 to register_operand.
7479 (memory_barrier): New expand.
7480 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
7481 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
7482 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
7483 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7484 sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
7485 * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
7486 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
7487 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
7488 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
7489
746062bc 74902007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
7491 Hans-Peter Nilsson <hp@axis.com>
7492
7493 * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
7494 Defined to describe availability and behavior of CLZ.
7495 * config/cris/cris.md (clzsi2): Implement using lz instruction.
7496 * config/cris/cris.opt: Tweak comment for "-metrax4".
7497 * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
7498 * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
7499 (count_leading_zeros): Define.
7500
3fff4d99 75012007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7502
7503 * ggc-page.c (ggc_pch_read): Call validate_free_objects.
7504
eb52d13a 75052007-09-02 Joseph Myers <joseph@codesourcery.com>
7506
909bd2e0 7507 PR c/29237
eb52d13a 7508 PR middle-end/33272
7509 * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
7510 decayed from array.
7511
becfaa62 75122007-09-01 Kazu Hirata <kazu@codesourcery.com>
7513
7514 * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
7515 config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
7516 ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
7517 sched-deps.c, sched-int.h, system.h, target.h,
7518 tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
7519 tree.def: Fix comment typos.
7520
bf849667 75212007-09-01 Kazu Hirata <kazu@codesourcery.com>
7522
7523 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
7524 (override_options): Turn on -mstrict-align on non-ColdFire
7525 targets.
7526 * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
7527
ce4469fa 75282007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7529
7530 * c-common.c (const_strip_array_types): Delete.
7531 * c-common.h (const_strip_array_types): Likewise.
7532 * emit-rtl.c (const_next_insn, const_previous_insn,
7533 const_next_nonnote_insn, const_prev_nonnote_insn,
7534 const_next_real_insn, const_prev_real_insn,
7535 const_next_active_insn, const_prev_active_insn, const_next_label,
7536 const_prev_label): Delete.
7537 * gimple-low.c (block_may_fallthru): Use expr_last.
7538 * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
7539 * rtl.h (const_previous_insn, const_next_insn,
7540 const_prev_nonnote_insn, const_next_nonnote_insn,
7541 const_prev_real_insn, const_next_real_insn,
7542 const_prev_active_insn, const_next_active_insn, const_prev_label,
7543 const_next_label): Delete.
7544 * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
7545 * system.h (CONST_CAST): Update comment.
7546 * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
7547 (const_first_stmt, const_last_stmt): Delete.
7548 (tree_block_ends_with_condjump_p): Use last_stmt.
7549 * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
7550 * tree-iterator.c (const_expr_first, const_expr_last,
7551 const_expr_only): Delete.
7552 * tree.c (const_lookup_attribute): Likewise.
7553 (attribute_list_contained): Use lookup_attribute.
7554 * tree.h (const_lookup_attribute, const_expr_first,
7555 const_expr_last, const_expr_only): Delete.
7556
8e4c4d3b 75572007-09-01 Richard Guenther <rguenther@suse.de>
7558
7559 * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
7560 instead of TREE_THIS_VOLATILE.
7561 * tree-ssa-operands.c (add_virtual_operand): Do not set
7562 has_volatile_ops. Do not check s_ann for NULL.
7563 (get_indirect_ref_operands): Likewise.
7564 (get_expr_operands): Likewise. For all reference trees
7565 set has_volatile_ops based on TREE_THIS_VOLATILE. Also
7566 check base of reference for TREE_THIS_VOLATILE.
7567
18495813 75682007-09-01 Richard Guenther <rguenther@suse.de>
7569
7570 * tree-cfg.c (verify_gimple_expr): Fix check for conversions
7571 between integral types. Also allow conversions between
7572 pointer types.
7573
ea32e033 75742007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
7575
7576 * optabs.c (prepare_float_lib_cmp): Use
7577 libgcc_cmp_return_mode instead of word_mode.
7578 * config/dfp-bit.h: Likewise.
7579 * config/fp-bit.h: Likewise.
7580 * config/spu/spu.c (spu_libgcc_cmp_return_mode):
7581 New function.
7582 (spu_libgcc_shift_count_mode): New function.
7583 (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
7584 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
7585
fd890377 75862007-08-31 Joseph Myers <joseph@codesourcery.com>
7587
7588 * tree-pretty-print.c: Include output.h.
7589 (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
7590 HOST_WIDE_INT_PRINT_DEC.
7591 * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
7592
1ec83e45 75932007-08-31 Zdenek Dvorak <ook@ucw.cz>
7594
7595 PR rtl-optimization/33224
7596 * loop-iv.c (latch_dominating_def): Check that the definition belongs
7597 to the analysed region.
7598
458cf334 75992007-08-31 Richard Guenther <rguenther@suse.de>
7600
7601 * function.c (allocate_struct_function): Do not set
7602 current_function_returns_pointer.
7603 * function.h (struct var_refs_queue): Remove.
7604 (struct simple_obstack_stack): Likewise.
7605 (struct function): Remove fixup_var_refs_queue member.
7606 Remove returns_pointer flag.
7607 (current_function_returns_pointer): Remove define.
7608
6a0a4c31 76092007-08-31 Nick Clifton <nickc@redhat.com>
7610
7611 * tree-ssa-coalesce.c (compare_pairs): Use the elements as
7612 secondary keys in order to obtain a stable sort.
7613
c171b8cf 76142007-08-31 Nick Clifton <nickc@redhat.com>
7615
7616 PR target/33132
7617 * config/m32r/constraints.md: Add W constraint for integer zero.
7618 * config/m32r/m32r.md (get_pc): Use W and i constraints.
7619 Fix length calculation by using alternatives.
7620
4f4473ff 76212007-08-31 Richard Sandiford <richard@codesourcery.com>
7622
7623 * optabs.c (shift_optab_p, commutative_optab_p): New functions,
7624 split out from expand_binop.
7625 (avoid_expensive_constant): New function.
ea32e033 7626 (expand_binop_directly): Remove commutative_op argument and
4f4473ff 7627 (expand_binop_directly): Remove commutative_op argument and
7628 call cummutative_optab_p instead. Do not change op0 or op1
7629 when swapping xop0 and xop1. Apply avoid_expensive_constant
7630 to each argument after potential swapping. Enforce the
7631 canonical order of commutative operands.
7632 (expand_binop): Use shift_optab_p and commutative_optab_p.
7633 Update the calls to expand_binop_directly. Only force constants
7634 into registers when widening an operation. Only swap operands
7635 once a direct expansion has been rejected.
7636 (expand_twoval_binop): Only force constants into registers when
7637 using a direct expansion.
7638
c407d287 76392007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
7640
7641 * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
7642 (sched_analyze_insn): Don't postprocess speculative dependencies when
7643 target has no scheduling.
7644 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
7645 'uninitialized' warning.
7646
c133ba93 76472007-08-31 Richard Guenther <rguenther@suse.de>
7648
7649 * tree.c (build_complex_type): Always set TYPE_NAME for
7650 comples types.
7651
4e1ef821 76522007-08-31 Olivier Hainque <hainque@adacore.com>
7653
7654 * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
7655 internal macro. Default alignment factor for csect directives, chosen
7656 to match what BIGGEST_ALIGNMENT allows.
7657 (DATA_SECTION_ASM_OP): Use it.
7658 * config/rs6000/rs6000.c
7659 (rs6000_xcoff_output_readonly_section_asm_op):
7660 Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
7661 (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
7662
4ceb34b9 76632007-08-31 Olivier Hainque <hainque@adacore.com>
7664
7665 * dbxout.c (dbxout_block): Move declaration within the first
7666 #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such
7667 block to include the definition, together with the associated
7668 helpers.
7669
a9de045e 76702007-08-31 David Edelsohn <edelsohn@gnu.org>
987b8c35 7671 Revital Eres <eres@il.ibm.com>
7672
7673 * doc/invoke.texi (-mpaired): Document flag.
7674 * config.gcc: Include paired.h in powerpc extra_headers and
7675 750cl.h in powerpc-*-linux*paired*.
7676 * config/rs6000/rs6000.opt (-mpaired): New flag.
7677 * config/rs6000/rs6000.c (paired_init_builtins,
7678 paired_expand_builtin, paired_expand_lv_builtin,
7679 paired_expand_stv_builtin, paired_expand_predicate_builtin):
7680 New functions to support the paired single builtin functions.
7681 (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
7682 (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
7683 single builtins.
7684 (bdesc_paired_preds): New structure for paired predicate
7685 instructions.
7686 (rs6000_expand_builtin): Expand paired single builtins.
7687 (rs6000_init_builtins): Init paired single builtins.
7688 (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
7689 Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
7690 and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf. Add new types
7691 v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
7692 (rs6000_vector_mode_supported_p): Support paired vector mode.
7693 * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
7694 PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
7695 New.
7696 (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
7697 (DATA_ALIGNMENT): Likewise.
7698 (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
7699 (rs6000_builtins): Add PAIRED builtins.
7700 * config/rs6000/rs6000.md: Include paired.md.
7701 * config/rs6000/paired.h: New.
7702 * config/rs6000/paired.md: New.
7703 * config/rs6000/750cl.h: New.
7704 * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
a9de045e 7705
8d3e018c 77062007-08-30 Ollie Wild <aaw@google.com>
7707
7708 * c-opts.c (c_common_handle_option): Support -fno-directives-only.
7709 * gcc.c (default_compilers): Add -fno-directives-only to
7710 @assembler-with-cpp.
7711
7fecc8b3 77122007-08-30 Sandra Loosemore <sandra@codesourcery.com>
7713
7714 PR middle-end/33211
7715
7716 * regclass.c (initial_fixed_regs): Revert previous change and make
7717 it const again.
7718 (initial_call_used_regs): Likewise.
7719 (initial_call_really_used_regs): Delete, reverting previous addition.
7720 (initial_reg_names): Likewise.
7721 (init_reg_sets): Revert previous change.
7722 (saved_fixed_regs): New.
7723 (saved_call_used_regs): New.
7724 (saved_call_really_used_regs): New.
7725 (saved_reg_names): New.
7726 (save_register_info): New.
7727 (restore_register_info): New.
7728 (init_reg_sets_1): Replace reset of register info with call to
7729 restore_register_info.
7730 * rtl.h (save_register_info): Declare.
7731 * toplev.c (backend_init): Call save_register_info.
7732
22f2249a 77332007-08-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7734
7735 * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
7736 from the original statement.
7737
b563b483 77382007-08-30 Chao-ying Fu <fu@mips.com>
7739
7740 * c-lex.c (interpret_fixed): Declare.
7741 (interpret_float): Process _Fract and _Accum.
7742 (interpret_fixed): New function.
7743 * final.c (output_addr_const): Process CONST_FIXED.
7744 * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
7745 (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
7746 SS_DIV, US_DIV.
7747 (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
7748 US_DIV, US_ASHIFT.
7749 (simplify_immed_subreg): Support CONST_FIXED.
7750 Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
7751 (simplify_subreg): Support CONST_FIXED.
7752
1ee1e41a 77532007-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
7754
7755 * config/rs6000/ppu_intrinsics.h: New file.
7756 * config.gcc (powerpc*-*-* <extra_headers>): Install
7757 ppu_intrinsics.h.
7758
55420479 77592007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
7760
7761 * cfg.c (dump_flow_info): Change to also print entry and exit
7762 block info.
7763 * print-rtl.c (print_rtl_single): Allow to print rtl with
7764 -fdump-unnumbered.
7765
774f8797 77662007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
7767
7768 * df-core.h (df_dump_region): New function.
7769 * df.h (df_dump_region): New function.
7770 * loop-invariant.c (find_defs): Add call to df_dump_region.
7771 * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
7772 df_dump_region.
7773
c5a1dba2 77742007-08-30 Jakub Jelinek <jakub@redhat.com>
7775
7776 PR target/33168
7777 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
7778 true if any of the compare_section_name calls returned true,
7779 rather than if any returned false.
7780
50fad245 77812007-08-30 Richard Guenther <rguenther@suse.de>
7782
7783 PR tree-optimization/33199
7784 * tree-ssa-structalias.c (handle_lhs_call): New function.
7785 (find_func_aliases): In non-IPA mode make sure that for
7786 calls that return a pointer we add a constraint for the
7787 result to point to anything.
7788
e50287e1 77892007-08-30 Richard Guenther <rguenther@suse.de>
7790
7791 * doc/invoke.texi (-mveclibabi): Document new target option.
7792 * config/i386/i386.opt (-mveclibabi): New target option.
7793 * config/i386/i386.c (ix86_veclib_handler): Handler for
7794 vectorization library support.
7795 (override_options): Handle the -mveclibabi option, initialize
7796 the vectorization library handler.
7797 (ix86_builtin_vectorized_function): As fallback call the
7798 vectorization library handler, if set.
7799 (ix86_veclibabi_acml): New static function for ACML ABI style
7800 vectorization support.
7801
a5a5e7f1 78022007-08-30 Jakub Jelinek <jakub@redhat.com>
7803
7804 * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
7805 used_m, even if it is 32-bit aligned, adjust used_m MEM to have
7806 SImode and update m. Don't run gen_lowpart_common on arbitrary
7807 memory address, force it to register first.
7808
011634f2 7809 PR middle-end/32758
7810 * dce.c (dce_process_block): Don't delete setters of
7811 artificially used registers.
7812
1bdc56d2 78132007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7814
7815 * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
7816 "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
7817 "*add<mode>3_alc_carry2_cconly"): New insn definitions.
7818
6f4afa7e 78192007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7820
7821 * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
7822 pattern.
7823 * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
7824 "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
7825
d5e73886 78262007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7827
7828 * system.h: Activate -Wcast-qual as warning-only.
7829
1afa8453 78302007-08-29 Paolo Bonzini <bonzini@gnu.org>
7831
7832 PR target/33168
7833 * config/rs6000/rs6000.c (compare_section_name): New function.
7834 (rs6000_elf_in_small_data_p): Compare section prefixes instead
7835 of full name.
7836
3c012b91 78372007-08-29 Olivier Hainque <hainque@adacore.com>
7838
7839 * xcoffout.c: #include debug.h.
7840 * Makefile.in (xcoffout.o): Add debug.h dependency.
7841
e86f91b1 78422007-08-29 Uros Bizjak <ubizjak@gmail.com>
7843
7844 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
7845 Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
7846
90db18cd 78472007-08-29 Richard Guenther <rguenther@suse.de>
7848
7849 * tree-pretty-print.c (dump_generic_node): Print
7850 label DECL_UID as D.%u.
7851 * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
7852
a5014d25 78532007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7854
69a83716 7855 * builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
7856 * builtins.def (BUILT_IN_REALLOC): New builtin.
a5014d25 7857
8059d350 78582007-08-29 Douglas Gregor <doug.gregor@gmail.com>
7859
7860 PR c++/33194
7861 * tree.c (build_type_attribute_qual_variant): Set canonical types
7862 on the final, unqualified attribute variant before building the
7863 qualified version.
7864
121e4cf5 78652007-08-29 Jie Zhang <jie.zhang@analog.com>
7866
7867 * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
7868 order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
7869
88638dec 78702007-08-29 Jie Zhang <jie.zhang@analog.com>
7871
7872 Revert
7873 2007-08-29 Jie Zhang <jie.zhang@analog.com>
7874 * config/bfin/bfin.md (composev2hi): Put operands into vector
7875 with correct order.
7876
230658a4 78772007-08-29 Jie Zhang <jie.zhang@analog.com>
7878
7879 * config/bfin/bfin.md (composev2hi): Put operands into vector
7880 with correct order.
7881
fc8aef7f 78822007-08-29 Jie Zhang <jie.zhang@analog.com>
7883
7884 * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
7885 attribute when appropriate.
7886 (bfin_handle_l1_text_attribute): New.
7887 (bfin_handle_l1_data_attribute): New.
7888 (bfin_attribute_table): Add attributes: l1_text, l1_data,
7889 l1_data_A and l1_data_B.
7890 * doc/extend.texi (node Function Attributes): Document l1_text
7891 function attribute.
7892 (Variable Attributes): Add Blackfin subsection. Document l1_data,
7893 l1_data_A and l1_data_B variable attributes.
7894
f4ec07e4 78952007-08-28 Jie Zhang <jie.zhang@analog.com>
7896
7897 * config/bfin/bfin.opt (minline-plt): Add.
7898 * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
7899 call to global functions.
7900 * doc/invoke.texi (Option Summary): Mention -minline-plt.
7901 (Blackfin Options): Document -minline-plt.
7902
e2809c90 79032007-08-28 Nathan Sidwell <nathan@codesourcery.com>
7904
7905 * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
7906 given a non-function.
7907 (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
7908
feef6011 79092007-08-28 DJ Delorie <dj@redhat.com>
7910
7911 * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
7912
d43303cb 79132007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7914
7915 * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
7916
8f81a001 79172007-08-28 Richard Guenther <rguenther@suse.de>
7918
7919 * tree.h (struct tree_function_decl): Increase size of
7920 function_code bitfield.
7921
159cec75 79222007-08-28 Nathan Sidwell <nathan@codesourcery.com>
7923 Kazu Hirata <kazu@codesourcery.com>
7924
69a83716 7925 * config/m68k/linux.h
159cec75 7926 (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
7927 * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
7928 (m68k_return_in_memory): New.
69a83716 7929 * config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
159cec75 7930 New.
7931
31a981d7 79322007-08-28 Uros Bizjak <ubizjak@gmail.com>
7933
7934 PR target/32661
7935 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
7936 Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
7937 operand) when top VEC_SELECT extracts scalar element.
7938 * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
7939 (*vec_extract_v4sf_mem): Ditto.
7940
c3910319 79412007-08-28 Jakub Jelinek <jakub@redhat.com>
7942
829545fe 7943 PR middle-end/32370
7944 * passes.c (init_optimization_passes): Move pass_df_finish
7945 after pass_postreload sublist.
7946
6ca7788b 7947 PR rtl-optimization/33148
7948 * simplify-rtx.c (simplify_unary_operation_1): Only optimize
7949 (neg (lt X 0)) if X has scalar int mode.
7950
c3910319 7951 PR debug/32914
7952 * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
7953 initializer, use build_vector_from_ctor if possible to create
7954 VECTOR_CST out of it. If vector initializer is not VECTOR_CST
7955 even after this, return NULL.
7956
330b082c 79572007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
7958
7959 * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
7960
ebb7d626 79612007-08-28 Richard Guenther <rguenther@suse.de>
7962
7963 * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
7964 (struct tree_function_decl): Make function_code a bitfield.
7965 Add disregard_inline_limits flag.
7966 * cgraphunit.c (cgraph_process_new_functions): Check
7967 DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
7968 (cgraph_preserve_function_body_p): Likewise.
7969 * ipa-inline.c (compute_inline_parameters): Likewise.
7970 * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
7971 for GNU C extern inline functions.
7972 (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
7973 * tree-inline.c (disregard_inline_limits_p): Remove.
7974 * tree-inline.h (disregard_inline_limits_p): Likewise.
7975 * c-common.c (handle_always_inline_attribute): Set
7976 DECL_DISREGARD_INLINE_LIMITS.
7977 * langhooks.c (add_builtin_function): Verify the function code
7978 fits in the bitfield.
7979
7bfc9b7c 79802007-08-28 Mircea Namolaru <namolaru@il.ibm.com>
987b8c35 7981 Vladimir Yanovsky <yanov@il.ibm.com>
7982 Revital Eres <eres@il.ibm.com>
7983 Andrey Belevantsev <abel@ispras.ru>
7bfc9b7c 7984
7985 * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
7986 is set.
7987 * modulo-sched.c: Add documentation regarding do-loop.
7988 (doloop_register_get): Change number of arguments to support
7989 the new do-loop pattern and check whether COUNT_REG has no other
7990 occurences in the loop besides in the control part.
7991 (duplicate_insns_of_cycles): Do not duplicate the insn which
7992 changes count_reg as it is already adjusted.
7993 (generate_prolog_epilog): New argument to support the new
7994 do-loop pattern. Change the subtract instruction to use
7995 expand_simple_binop. Call duplicate_insns_of_cycles with new
7996 argument.
7997 (sms_schedule): Call doloop_register_get and
7998 generate_prolog_epilog with new argument. Do not handle loops
7999 with single sets insns with subreg in their lhs.
8000 * loop-doloop.c (doloop_optimize): Support for another do-loop
8001 pattern.
8002 (doloop_condition_get): Gets an instruction instead of a pattern
8003 and change the return condition when the do-loop pattern is
8004 not parallel.
8005 * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
8006 deps when considering to not create edges.
8007
db577900 80082007-08-27 Alexandre Oliva <aoliva@redhat.com>
8009
8010 * doc/extend.texi (gnu_inline funtion attribute): Document C++
8011 behavior.
8012
cf39ec50 80132007-08-27 Jason Merrill <jason@redhat.com>
8014
8015 PR c++/31337
8016 * gimplify.c (gimplify_modify_expr): Discard the assignment of
8017 zero-sized types after calling gimplify_modify_expr_rhs.
8018
5fa64d45 80192007-08-27 Sandra Loosemore <sandra@codesourcery.com>
8020
8021 * regclass.c (init_reg_autoinc): Fix typo.
8022
92a51ad8 80232007-08-27 Daniel Berlin <dberlin@dberlin.org>
8024
8025 Fix PR tree-optimization/33173
8026 * tree-ssa-alias.c (find_used_portions): Fix reversed test.
8027
26042839 80282007-08-27 H.J. Lu <hongjiu.lu@intel.com>
8029
8030 PR target/31385
8031 * config/i386/i386.h (VALID_DFP_MODE_P): New.
8032 * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
8033 GPR.
8034
6d8b68a3 80352007-08-27 Sandra Loosemore <sandra@codesourcery.com>
8036 David Ung <davidu@mips.com>
26042839 8037 Nigel Stephens <nigel@mips.com>
6d8b68a3 8038
8039 Separate target-specific initialization from general
8040 back-end initialization.
8041
8042 * toplev.c (init_alignments): New, split out from...
8043 (process_options): ...here.
48dc2227 8044 (backend_init_target): New, split out from...
6d8b68a3 8045 (backend_init): ...here.
48dc2227 8046 (lang_dependent_init_target): New, split out from...
6d8b68a3 8047 (lang_dependent_init): ...here.
8048 (target_reinit): New.
8049 * toplev.h (target_reinit): Declare.
8050 * expr.c (init_expr_target): Renamed from init_expr_once, since it
8051 now can be called more than once. Update comments.
8052 * expr.h (init_expr_target): Likewise.
8053 * alias.c (init_alias_target): Renamed from init_alias_once, since it
8054 now can be called more than once. Explicitly zero
8055 static_reg_base_value.
8056 * emit-rtl.c (init_emit_regs): New, split out from...
8057 (init_emit_once): Here.
8058 * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
8059 non-const, so that changes from command-line arguments can overwrite
8060 values provided by the static initializers.
8061 (initial_call_really_used_regs): New, used similarly to the above.
8062 (initial_reg_names): Likewise.
8063 (last_mode_for_init_move_cost): Promoted function-local static to
8064 file-scope static to make it accessible outside init_move_cost.
8065 (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
8066 Do not initialize inv_reg_alloc_order yet, either. Do initialize
8067 reg_names since it is needed for parsing command-line options.
8068 (init_move_cost): Use last_mode_for_init_move_cost instead of
8069 function-local static.
8070 (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
8071 call_really_used_regs now. Reinitialize reg_names. Also
8072 initialize inv_reg_alloc_order. Zero reg_class_subunion and
8073 reg_class_superunion. Clear losing_caller_save_reg_set.
8074 Preserve global registers if called more than once. Reset
8075 move cost, may_move_in_cost, may_move_out_cost, and
8076 last_mode_for_init_move_cost.
8077 (init_reg_modes_target): Renamed from init_reg_modes_once, since it
8078 can now be invoked more than once. Update comments.
8079 (init_regs): Update comments.
8080 (fix_register): Update initial_fixed_regs, initial_call_used_regs,
8081 and initial_call_really_used_regs, instead of the non-initial
987b8c35 8082 variables. This allows us to save the command-line register settings
6d8b68a3 8083 after target reinitialization.
8084 (init_reg_autoinc): Zero forbidden_inc_dec_classes.
8085 * rtl.h (init_emit_regs): Declare.
8086 (init_reg_modes_target, init_alias_target): Renamed as described
8087 above.
8088 * reload1.c (init_reload): Update comments.
8089 * optabs.c (init_optabs): Likewise.
8090 * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
8091
6463c271 80922007-08-26 Chao-ying Fu <fu@mips.com>
8093
8094 * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
8095 __typeof().
8096
5493cb9a 80972007-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8098
8099 * alias.c (memory_modified_1, memory_modified_in_insn_p):
8100 Constify.
8101 * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
8102 Likewise.
8103 * bb-reorder.c (copy_bb_p): Likewise.
8104 * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
8105 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
8106 block_ends_with_condjump_p): Likewise.
8107 * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
8108 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
8109 block_ends_with_condjump_p): Likewise.
8110 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
8111 * cfgrtl.c (can_delete_note_p, can_delete_label_p,
8112 rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
8113 rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
8114 need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
8115 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
8116 debug_true_const_tree instad of debug_true_tree.
8117 * debug.c (do_nothing_debug_hooks): Likewise.
8118 * debug.h (ignore_block, debug_true_const_tree): Constify.
8119 * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
8120 dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
8121 decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
8122 same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
8123 dbx_reg_number, is_based_loc, field_type,
8124 simple_type_align_in_bits, simple_decl_align_in_bits,
8125 simple_type_size_in_bits, field_byte_offset, insert_float,
8126 type_tag, member_declared_type, is_redundant_typedef,
8127 secname_for_decl, is_inlined_entry_point): Likewise.
8128 * emit-rtl.c (const_next_insn, const_previous_insn,
8129 const_next_nonnote_insn, const_prev_nonnote_insn,
8130 const_next_real_insn, const_prev_real_insn,
8131 const_next_active_insn, const_prev_active_insn, const_next_label,
8132 const_prev_label): Likewise.
8133 * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
8134 Likewise.
8135 * haifa-sched.c (may_trap_exp, haifa_classify_insn,
8136 find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
8137 sched_insn_is_legitimate_for_speculation_p): Likewise.
8138 * jump.c (reversed_comparison_code_parts,
8139 reversed_comparison_code, reversed_comparison, condjump_label):
8140 Likewise.
8141 * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
8142 * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
8143 Likewise.
8144 * rtl.h (const_previous_insn, const_next_insn,
8145 const_prev_nonnote_insn, const_next_nonnote_insn,
8146 const_prev_real_insn, const_next_real_insn,
8147 const_prev_active_insn, const_next_active_insn, const_prev_label,
8148 const_next_label, modified_between_p, modified_in_p,
8149 const_note_storeskeep_with_call_p, condjump_label,
8150 reversed_comparison, reversed_comparison_code,
8151 reversed_comparison_code_parts, memory_modified_in_insn_p,
8152 stack_regs_mentioned): Likewise.
8153 * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
8154 keep_with_call_p): Likewise.
8155 * sched-deps.c (deps_may_trap_p, sched_get_condition,
8156 conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
8157 sd_lists_size, sd_lists_empty_p): Likewise.
8158 * sched-int.h (sched_insns_conditions_mutex_p,
8159 haifa_classify_insn, no_real_insns_p,
8160 sched_insn_is_legitimate_for_speculation_p, sd_next_list,
8161 sd_lists_size, sd_lists_empty_p): Likewise.
8162 * sdbout.c (sdb_debug_hooks): Likewise.
8163 * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
8164 stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
8165 -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
8166 Likewise.
8167 * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
8168 tree_can_throw_internal): Likewise.
8169 * tree-flow-inline.h (phi_nodes): Likewise.
8170 * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
8171 tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
8172 * tree-gimple.c (const_get_call_expr_in): Likewise.
8173 * tree-gimple.h (const_get_call_expr_in): Likewise.
8174 * tree.c (const_lookup_attribute, attribute_list_equal,
8175 attribute_list_contained): Likewise.
8176 * tree.h (attribute_list_equal, attribute_list_contained,
8177 const_lookup_attribute): Likewise.
8178 * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
8179
99698cf3 81802007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
8181
8182 * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
8183 tree-ssa-pre.c: Remove unnecessary trailing whitespace.
8184
a31d0f02 81852007-08-26 H.J. Lu <hongjiu.lu@intel.com>
8186
8187 PR target/32991
8188 * config/alpha/constraints.md: Delete "svn:mime-type" property
8189 with svn propdel "svn:mime-type".
8190
836969df 81912007-08-26 H.J. Lu <hongjiu.lu@intel.com>
8192
8193 PR middle-end/33181
8194 * ifcvt.c (noce_get_alt_condition): Make sure that the previous
8195 non NOTE insn doesn't cross basic block.
8196 (noce_try_abs): Likewise.
8197 (noce_process_if_block): Likewise.
8198
7096d31f 81992007-08-26 David Edelsohn <edelsohn@gnu.org>
8200
8201 PR target/33151
8202 * config/rs6000/predicates.md (offsettable_mem_operand): Memory
8203 operand without auto-inc-dec.
8204 * config/rs6000/rs6000.md (floatsidf2_internal): Use
8205 offsettable_mem_operand.
8206 (floatunssidf2_internal): Same.
8207 (fix_truncdfsi2_internal): Same.
8208 (floatsidf_ppc64): Same.
8209 (floatunssidf_ppc64): Same.
8210 (fix_trunctfsi2_internal): Same.
8211
c753bf4a 82122007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
8213
8214 PR bootstrap/30620
8215 * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
8216 pass defines needed for version.c.
8217
22ff3bfb 82182007-08-25 Joseph Myers <joseph@codesourcery.com>
8219
8220 * configure.ac (--debug-prefix-map check): Change assembler
8221 version presumed to have feature to 2.18.
8222 * configure: Regenerate.
8223
9f627b1a 82242007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8225
8226 * c-common.c (vector_types_convertible_p,
8227 decl_with_nonnull_addr_p, c_promoting_integer_type_p,
8228 self_promoting_args_p): Constify.
8229 * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
8230 c_promoting_integer_type_p, self_promoting_args_p,
8231 anon_aggr_type_p, vector_types_convertible_p): Likewise.
8232 * c-decl.c (anon_aggr_type_p): Likewise.
8233 * * c-dump.c (dump_stmt): Likewise.
8234 * c-objc-common.c (has_c_linkage): Likewise.
8235 * c-tree.h (same_translation_unit_p): Likewise.
8236 * c-typeck.c (null_pointer_constant_p,
8237 tagged_types_tu_compatible_p, function_types_compatible_p,
8238 type_lists_compatible_p, lvalue_or_else, lvalue_p,
8239 comptypes_internal, struct tagged_tu_seen_cache,
8240 same_translation_unit_p, alloc_tagged_tu_seen_cache,
8241 c_size_in_bytes): Likewise.
8242 * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
8243 hash_ptr, eq_ptr): Likewise.
8244 * langhooks-def.h (lhd_decl_ok_for_sibcall,
8245 LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
8246 * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
8247 * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
8248 Likewise.
8249 * optabs.c (optab_for_tree_code): Likewise.
8250 * optabs.h (optab_for_tree_code): Likewise.
8251 * rtl.h (simplify_rtx): Likewise.
8252 * simplify-rtx.c (simplify_rtx): Likewise.
8253 * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
8254 dump_flag, dump_node): Likewise.
8255 * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
8256 queue_and_dump_type, dump_flag): Likewise.
8257 * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
8258 * tree-pass.h (dump_node): Likewise.
8259 * tree-vectorizer.c (vect_can_force_dr_alignment_p,
8260 supportable_narrowing_operation): Likewise.
8261 * tree-vectorizer.h (vect_can_force_dr_alignment_p,
8262 supportable_narrowing_operation): Likewise.
8263 * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
8264 is_negative_overflow_infinity, is_positive_overflow_infinity,
8265 is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
8266 nonnull_arg_p, get_value_range, vrp_operand_equal_p,
8267 update_value_range, add_equivalence, ssa_name_nonnegative_p,
8268 ssa_name_nonzero_p, fp_predicate): Likewise.
8269 * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
8270 * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
8271 ssa_name_nonnegative_p): Likewise.
8272
bc831fe3 82732007-08-25 Hans Kester <hans.kester@ellips.nl>
8274
8275 * config.gcc : Add x86_64-elf target.
8276
e920484a 82772007-08-25 Jakub Jelinek <jakub@redhat.com>
8278
8279 * expr.c (store_expr): Fix order of store_by_pieces arguments.
8280
4b297e2e 82812007-08-24 Sandra Loosemore <sandra@codesourcery.com>
987b8c35 8282 Nigel Stephens <nigel@mips.com>
4b297e2e 8283
8284 PR target/11787
8285
8286 * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
8287 (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
8288 * expr.c (SET_BY_PIECES_P): Define.
8289 (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
8290 it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
e920484a 8291 (store_expr): Pass MEMSETP argument to can_store_by_pieces and
4b297e2e 8292 store_by_pieces.
8293 * expr.h (SET_RATIO): Define.
8294 (can_store_by_pieces, store_by_pieces): Update prototypes.
8295 * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
8296 can_store_by_pieces/store_by_pieces.
8297 (expand_builtin_memcpy_args): Likewise.
8298 (expand_builtin_strncpy): Likewise.
8299 (expand_builtin_memset_args): Likewise. Also remove special case
8300 for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
8301 decide what to do instead.
8302 * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
8303 to can_store_by_pieces.
8304
8305 * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
8306 * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
8307
8308 * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
8309 * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
8310 * config/mips/mips.h (MIPS_CALL_RATIO): Define.
8311 (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
8312 (STORE_BY_PIECES_P): Define.
8313
b1a2195b 83142007-08-24 Tom Tromey <tromey@redhat.com>
8315
8316 * varpool.c (varpool_last_needed_node): Fix comment typo.
8317 * c-decl.c (duplicate_decls): Fix comment typo.
8318 (clone_underlying_type): Update comment.
8319
a9f1838b 83202007-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8321
8322 * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
8323 alpha_in_small_data_p, alpha_split_complex_arg,
8324 alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
8325 Constify.
8326 * config/arm/arm-protos.h (arm_mangle_type): Likewise.
8327 * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
8328 Likewise.
8329 * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
8330 TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
8331 * config/darwin-protos.h (darwin_binds_local_p): Likewise.
8332 * config/darwin.c (darwin_binds_local_p): Likewise.
8333 * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
8334 Likewise.
8335 * config/i386/i386-protos.h (i386_pe_binds_local_p,
8336 i386_pe_valid_dllimport_attribute_p): Likewise.
8337 * config/i386/i386.c (ix86_function_regparm,
8338 ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
8339 x86_can_output_mi_thunk, ix86_mangle_type,
8340 TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
8341 * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
8342 i386_pe_binds_local_p): Likewise.
8343 * config/ia64/ia64.c
8344 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
8345 ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
8346 ia64_invalid_conversion, ia64_invalid_unary_op,
8347 ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
8348 Likewise.
8349 * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
8350 * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
8351 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
8352 * config/mips/mips.c (mips_use_blocks_for_constant_p,
8353 mips_in_small_data_p, mips_use_anchors_for_symbol_p,
8354 mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
8355 mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
8356 mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
8357 * config/pa/pa.c (pa_commutative_p): Likewise.
8358 * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
8359 Likewise.
8360 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
8361 rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
8362 rs6000_use_blocks_for_constant_p,
8363 rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
8364 invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
8365 TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
8366 * config/s390/s390.c (s390_mangle_type,
8367 TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
8368 Likewise.
8369 * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
8370 th_in_small_data_p): Likewise.
8371 * config/sh/sh.c (sh_ms_bitfield_layout_p,
8372 sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
8373 Likewise.
8374 * config/sparc/sparc.c (sparc_can_output_mi_thunk,
8375 sparc_mangle_type): Likewise.
8376 * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
8377 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
8378 * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
8379 Likewise.
8380 * hooks.c (hook_bool_mode_const_rtx_false,
8381 hook_bool_mode_const_rtx_true,
8382 hook_bool_const_tree_hwi_hwi_const_tree_false,
8383 hook_bool_const_tree_hwi_hwi_const_tree_true,
8384 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8385 hook_constcharptr_const_tree_null,
8386 hook_constcharptr_const_rtx_null,
8387 hook_constcharptr_const_tree_const_tree_null,
8388 hook_constcharptr_int_const_tree_null,
8389 hook_constcharptr_int_const_tree_const_tree_null): New.
8390 (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8391 hook_bool_tree_hwi_hwi_tree_false,
8392 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
8393 hook_int_tree_tree_1, hook_constcharptr_tree_null,
8394 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
8395 hook_constcharptr_int_tree_null,
8396 hook_constcharptr_int_tree_tree_null): Delete.
8397 (default_can_output_mi_thunk_no_vcall): Constify.
8398 * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8399 hook_bool_tree_hwi_hwi_tree_false,
8400 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
8401 hook_int_tree_tree_1, hook_constcharptr_tree_null,
8402 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
8403 hook_constcharptr_int_tree_null,
8404 hook_constcharptr_int_tree_tree_null): Delete.
8405 (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8406 hook_bool_const_tree_hwi_hwi_const_tree_false,
8407 hook_bool_const_tree_hwi_hwi_const_tree_true,
8408 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8409 hook_constcharptr_const_tree_null,
8410 hook_constcharptr_const_rtx_null,
8411 hook_constcharptr_const_tree_const_tree_null,
8412 hook_constcharptr_int_const_tree_null,
8413 hook_constcharptr_int_const_tree_const_tree_null): New.
8414 (default_can_output_mi_thunk_no_vcall): Constify.
8415 * integrate.c (function_attribute_inlinable_p): Likewise.
8416 * integrate.h (function_attribute_inlinable_p): Likewise.
8417 * jump.c (rtx_renumbered_equal_p): Likewise.
8418 * output.h (decl_readonly_section, categorize_decl_for_section,
8419 default_use_anchors_for_symbol_p, default_binds_local_p,
8420 default_binds_local_p_1): Likewise.
8421 * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
8422 Likewise.
8423 * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
8424 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
8425 TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
8426 TARGET_COMP_TYPE_ATTRIBUTES,
8427 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
8428 TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
8429 TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
8430 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
8431 TARGET_DWARF_CALLING_CONVENTION): Likewise.
8432 * target.h (can_output_mi_thunk, needs_block_p,
8433 first_cycle_multipass_dfa_lookahead_guard_spec,
8434 vector_alignment_reachable, comp_type_attributes,
8435 function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
8436 commutative_p, use_blocks_for_constant_p,
8437 use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
8438 vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
8439 invalid_within_doloop, valid_dllimport_attribute_p,
8440 split_complex_arg, invalid_arg_for_unprototyped_fn,
8441 invalid_conversion, invalid_unary_op, invalid_binary_op):
8442 Likewise.
8443 * targhooks.c (default_invalid_within_doloop,
8444 hook_invalid_arg_for_unprototyped_fn,
8445 default_builtin_vector_alignment_reachable): Likewise.
8446 (hook_bool_rtx_commutative_p): Delete.
8447 (hook_bool_const_rtx_commutative_p): New.
8448 * targhooks.h (default_invalid_within_doloop,
8449 default_builtin_vector_alignment_reachable,
8450 hook_invalid_arg_for_unprototyped_fn): Constify.
8451 (hook_bool_rtx_commutative_p): Delete.
8452 (hook_bool_const_rtx_commutative_p): New.
8453 * varasm.c (bss_initializer_p, decl_default_tls_model,
8454 categorize_decl_for_section, decl_readonly_section,
8455 default_use_anchors_for_symbol_p, default_binds_local_p,
8456 default_binds_local_p_1): Constify.
8457
86251bd9 84582007-08-24 Jie Zhang <jie.zhang@analog.com>
8459
8460 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8461 __NO_BUILTIN if -fno-builtin.
8462
108988a0 84632007-08-24 Jie Zhang <jie.zhang@analog.com>
8464
8465 * config/bfin/bfin.c (print_operand): Report error instead of
8466 ICE for wrong operand.
8467
df70caff 84682007-08-24 Michael Matz <matz@suse.de>
8469
8470 * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
8471
f97743d3 84722007-08-24 Richard Guenther <rguenther@suse.de>
8473
8474 PR middle-end/33166
8475 * tree-ssa.c (useless_type_conversion_p): Split into a
8476 recursive and a non-recursive part.
8477 (useless_type_conversion_p_1): New function.
8478 * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
8479 from maybe_fold_offset_to_reference is trivially convertible
8480 to the desired type before doing the simplification.
8481
09879952 84822007-08-24 Jakub Jelinek <jakub@redhat.com>
8483
8484 * expr.c (store_expr): Optimize initialization of an array
8485 with STRING_CST.
8486 * expr.h (builtin_strncpy_read_str): New prototype.
8487 * builtins.c (builtin_strncpy_read_str): Remove prototype.
8488 No longer static.
8489
30e5822c 84902007-08-24 Uros Bizjak <ubizjak@gmail.com>
8491
8492 PR middle-end/33157
8493 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
8494 field when initializing if_info structure.
8495
7cc6d7a8 84962007-08-24 Richard Guenther <rguenther@suse.de>
8497
8498 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
8499 dependencies.
8500 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
8501 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
8502 * tree-inline.c (inlinable_function_p): Fold in common parts of
8503 the cannot_inline_tree_fn langhook.
8504 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
8505 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
8506 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
8507 cannot_inline_tree_fn langhook.
8508 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
8509 cannot_inline_tree_fn member.
8510
85a32bdb 85112007-08-24 Richard Guenther <rguenther@suse.de>
8512
8513 * expr.c (get_inner_reference): Do computation of bitoffset
8514 from offset in a way we can detect overflow reliably.
8515
b0c091c8 85162007-08-24 Jie Zhang <jie.zhang@analog.com>
8517
8518 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
8519
596710c9 85202007-08-24 Jie Zhang <jie.zhang@analog.com>
8521
8522 * config/bfin/bfin.opt (mfast-fp): Add.
8523 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
8524 libbffastfp override libgcc if -mfast-fp.
8525 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8526 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
8527 (Blackfin Options): Document -mfast-fp.
8528
d534eb36 85292007-08-24 Jakub Jelinek <jakub@redhat.com>
8530
8531 PR tree-optimization/32573
8532 PR middle-end/32946
8533 * tree-data-ref.c (initialize_data_dependence_relation): Clear
8534 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
8535 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
8536 (build_classic_dist_vector): Return false rather than true if
8537 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
8538 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
8539 returned false. Don't call save_dist_v before calling
8540 build_classic_dist_vector_1.
8541 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
8542 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
8543 DDR_DIR_VECTS vectors.
8544
b29dc614 85452007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
8546
31a981d7 8547 * configure.ac (leb128): Modify sed statement to work with any
8548 binutils version string.
b29dc614 8549 * configure: Regenerate
8550
fb80456a 85512007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8552
8553 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
8554 Wrap in RTX_CODE macro guard.
8555 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
8556 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
8557 arm_mark_dllimport, arm_pe_encode_section_info,
8558 arm_pe_unique_section): Use ISO-C function declarations.
8559 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
8560 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
8561 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
8562 Likewise.
8563 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
8564 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
8565 defining.
8566 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
8567 warnings.
8568 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
8569 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
8570 (register_move_cost): Use ISO-C function declarations.
8571 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
8572 * config/score/score-protos.h (score_declare_object): Add
8573 ATTRIBUTE_PRINTF_4.
8574 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
8575 warnings.
8576 * final.c (profile_function): Avoid empty if-bodies.
8577
8578
8579 * calls.c (must_pass_in_stack_var_size,
8580 must_pass_in_stack_var_size_or_pad): Constify.
8581 * config/alpha/alpha-protos.h (function_value): Likewise.
8582 * config/alpha/alpha.c (alpha_return_in_memory,
8583 alpha_pass_by_reference, function_value,
8584 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
8585 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
8586 Likewise.
8587 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
8588 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8589 TARGET_PROMOTE_PROTOTYPES): Likewise.
8590 * config/arm/arm-protos.h (arm_return_in_memory,
8591 arm_pad_arg_upward, arm_function_value): Likewise.
8592 * config/arm/arm.c (arm_pass_by_reference,
8593 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
8594 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8595 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
8596 Likewise.
8597 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
8598 * config/avr/avr-protos.h (avr_function_value): Likewise.
8599 * config/avr/avr.c (avr_return_in_memory,
8600 gas_output_limited_string, gas_output_ascii, avr_function_value,
8601 avr_return_in_memory): Likewise.
8602 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
8603 * config/bfin/bfin.c (bfin_pass_by_reference,
8604 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
8605 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
8606 Likewise.
8607 * config/cris/cris.c (cris_pass_by_reference,
8608 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8609 * config/crx/crx.c (crx_return_in_memory): Likewise.
8610 * config/darwin.c (function_base, machopic_function_base_name):
8611 Likewise.
8612 * config/fr30/fr30.c (fr30_must_pass_in_stack,
8613 TARGET_PROMOTE_PROTOTYPES): Likewise.
8614 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
8615 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
8616 * config/i386/i386-protos.h (ix86_return_in_memory,
8617 ix86_sol10_return_in_memory): Likewise.
8618 * config/i386/i386.c (ix86_function_value,
8619 ix86_function_sseregparm, ix86_must_pass_in_stack,
8620 type_natural_mode, classify_argument, examine_argument,
8621 construct_container, ix86_pass_by_reference, function_value_32,
8622 function_value_64, ix86_function_value_1, return_in_memory_32,
8623 return_in_memory_64, return_in_memory_ms_64,
8624 ix86_return_in_memory, ix86_sol10_return_in_memory,
8625 TARGET_PROMOTE_PROTOTYPES): Likewise.
8626 * config/ia64/ia64-protos.h (ia64_function_value,
8627 ia64_hpux_function_arg_padding): Likewise.
8628 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
8629 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
8630 ia64_hpux_function_arg_padding): Likewise.
8631 * config/iq2000/iq2000-protos.h (function_arg,
8632 iq2000_function_value): Likewise.
8633 * config/iq2000/iq2000.c (iq2000_return_in_memory,
8634 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
8635 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8636 function_arg, iq2000_function_value): Likewise.
8637 * config/m32c/m32c-protos.h (m32c_function_value,
8638 m32c_promote_function_return): Likewise.
8639 * config/m32c/m32c.c (m32c_pass_by_reference,
8640 m32c_promote_prototypes, m32c_promote_function_return,
8641 m32c_function_value): Likewise.
8642 * config/m32r/m32r.c (m32r_return_in_memory,
8643 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
8644 m32r_in_small_data_p): Likewise.
8645 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
8646 Likewise.
8647 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
8648 m68hc11_function_arg_padding): Likewise.
8649 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
8650 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
8651 m68k_function_value): Likewise.
8652 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
8653 mcore_function_value): Likewise.
8654 * config/mcore/mcore.c (handle_structs_in_regs,
8655 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
8656 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8657 mcore_num_arg_regs, mcore_function_value): Likewise.
8658 * config/mips/mips-protos.h (mips_pad_arg_upward,
8659 mips_function_value): Likewise.
8660 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
8661 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
8662 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8663 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
8664 mips_function_value): Likewise.
8665 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
8666 Likewise.
8667 * config/mmix/mmix.c (mmix_pass_by_reference,
8668 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
8669 mmix_encode_section_info): Likewise.
8670 * config/mn10300/mn10300-protos.h (mn10300_function_value):
8671 Likewise.
8672 * config/mn10300/mn10300.c (mn10300_return_in_memory,
8673 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
8674 mn10300_function_value): Likewise.
8675 * config/mt/mt-protos.h (mt_function_value): Likewise.
8676 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
8677 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
8678 * config/pa/pa-protos.h (function_arg_padding, function_value,
8679 pa_return_in_memory): Likewise.
8680 * config/pa/pa.c (pa_pass_by_reference,
8681 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8682 function_arg_padding, function_value, pa_return_in_memory):
8683 Likewise.
8684 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
8685 * config/rs6000/rs6000-protos.h (rs6000_function_value,
8686 function_arg_padding): Likewise.
8687 * config/rs6000/rs6000.c (rs6000_return_in_memory,
8688 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8689 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
8690 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8691 function_arg_padding, altivec_expand_dst_builtin,
8692 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
8693 altivec_init_builtins, rs6000_common_init_builtins,
8694 rs6000_function_value): Likewise.
8695 * s390/s390-protos.h (s390_function_value): Likewise.
8696 * config/s390/s390.c (s390_function_arg_size,
8697 s390_pass_by_reference, s390_return_in_memory,
8698 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
8699 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8700 * config/score/score-protos.h (score_function_value): Likewise.
8701 * config/score/score.c (score_arg_partial_bytes,
8702 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8703 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
8704 score_pass_by_reference, score_add_offset, score_function_value):
8705 Likewise.
8706 * config/sh/sh-protos.h (sh_attr_renesas_p,
8707 sh_promote_prototypes): Likewise.
8708 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
8709 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
8710 sh_attr_renesas_p): Likewise.
8711 * config/sparc/sparc-protos.h (function_value,
8712 function_arg_padding): Likewise.
8713 * config/sparc/sparc.c (sparc_promote_prototypes,
8714 sparc_return_in_memory, sparc_pass_by_reference,
8715 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
8716 function_arg_record_value_2, function_arg_record_value_1,
8717 function_arg_record_value, function_arg_record_value,
8718 function_arg_padding, function_value): Likewise.
8719 * config/spu/spu-protos.h (spu_function_value): Likewise.
8720 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
8721 spu_function_value): Likewise.
8722 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
8723 Likewise.
8724 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
8725 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
8726 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
8727 Likewise.
8728 * config/v850/v850.c (v850_return_in_memory,
8729 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
8730 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
8731 * config/xtensa/xtensa.c (xtensa_return_in_msb,
8732 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
8733 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
8734 Likewise.
8735 * explow.c (promote_mode, hard_function_value): Likewise.
8736 * expr.h (hard_function_value, promote_mode): Likewise.
8737 * function.c (aggregate_value_p): Likewise.
8738 * hooks.c (hook_bool_const_tree_true): New.
8739 * hooks.h (hook_bool_const_tree_true): New.
8740 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
8741 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8742 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8743 TARGET_RETURN_IN_MSB): Likewise.
8744 * target.h (promote_function_args, promote_function_return,
8745 promote_prototypes, return_in_memory, return_in_msb,
8746 pass_by_reference, must_pass_in_stack, callee_copies,
8747 function_value): Likewise.
8748 * targhooks.c (default_return_in_memory,
8749 hook_pass_by_reference_must_pass_in_stack,
8750 hook_callee_copies_named,
8751 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
8752 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
8753 default_function_value): Likewise.
8754 * targhooks.h (default_return_in_memory,
8755 hook_pass_by_reference_must_pass_in_stack,
8756 hook_callee_copies_named,
8757 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
8758 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
8759 default_function_value): Likewise.
8760 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
8761 (equiv_class_label_hash, equiv_class_label_eq): Constify.
8762 * tree-vectorizer.c (bb_in_loop_p): Likewise.
8763 * tree.c (needs_to_live_in_memory): Likewise.
8764 * tree.h (struct tree_type, needs_to_live_in_memory,
8765 aggregate_value_p, must_pass_in_stack_var_size,
8766 must_pass_in_stack_var_size_or_pad): Likewise.
8767 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
8768 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
8769 lookup_filename): Likewise.
8770
ab9ffc3b 87712007-08-23 Uros Bizjak <ubizjak@gmail.com>
8772
8773 PR target/17390
8774 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
8775 fake fcomi i387 instruction for !TARGET_CMOVE.
8776 (ix86_expand_branch): Expand natural sequence with one jump for
8777 all targets, not only TARGET_CMOVE.
8778 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
8779 pattern to implement fake fcomi sequence. Split instruction after
8780 reload to correct compare sequences.
8781 (*cmpfp_xf_cc): Ditto.
8782 (*cmpfp_<mode>_cc): Ditto.
8783 (*cmpfp_u_cc): Ditto.
8784 (*cmpfp_<mode>_cc): Ditto.
8785
b3208e64 87862007-08-23 Richard Guenther <rguenther@suse.de>
8787
8788 * tree-pretty-print.c (dump_generic_node): Annotate
8789 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
8790
abfea505 87912007-08-23 Richard Guenther <rguenther@suse.de>
8792
8793 * builtins.c (expand_builtin_mathfn): Wrap argument in
8794 save_expr directly instead of re-building the call.
8795 (expand_builtin_mathfn_2): Likewise.
8796 (expand_builtin_mathfn_3): Likewise.
8797 (expand_builtin_interclass_mathfn): Likewise.
8798 (expand_builtin_int_roundingfn): Set arg.
8799 (expand_builtin_int_roundingfn_2): Likewise.
8800
3a950715 88012007-08-23 Paolo Bonzini <bonzini@gnu.org>
8802
8803 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
8804 *sse_nand<mode>3, *sse_xor<mode>3): New.
8805
724fa541 88062007-08-23 Uros Bizjak <ubizjak@gmail.com>
8807
8808 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
8809 * config/i386/i386.c (print_operand): Handle ';' code. Output
8810 semicolon for TARGET_MACHO.
8811 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
8812 emit semicolon after 'lock' prefix.
8813 (sync_double_compare_and_swap<mode>): Ditto.
8814 (*sync_double_compare_and_swapdi_pic): Ditto.
8815 (*sync_compare_and_swap_cc<mode>): Ditto.
8816 (sync_double_compare_and_swap_cc<mode>): Ditto.
8817 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
8818 (sync_old_add<mode>): Ditto.
8819 (sync_add<mode>): Ditto.
8820 (sync_sub<mode>): Ditto.
8821 (sync_ior<mode>): Ditto.
8822 (sync_and<mode>): Ditto.
8823 (sync_xor<mode>): Ditto.
8824
e397ad8e 88252007-08-22 Chao-ying Fu <fu@mips.com>
8826
8827 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
8828 in DEF_RTL_EXPR.
8829 (copy_rtx): Handle CONST_FIXED.
8830 (rtx_equal_p): Likewise.
8831 * rtl.h (fixed_value.h): New include.
8832 (rtx_def): Add a new field of fixed_value to u.
8833 (XCNMPFV): Define for accessing fixed_value.
8834 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
8835 Define.
8836 * rtl.def (CONST_FIXED): New constant.
8837 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
8838 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
8839 US_ASHIFT): New codes.
8840 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
8841 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
8842 unsigned_fract_convert, unsigned_sat_fract): Document them.
8843 * varasm.c (assemble_integer): Extend to support fixed-point constants
8844 by using different machine classes.
8845 (decode_addr_const): Handle FIXED_CST.
8846 (const_hash_1): Likewise.
8847 (compare_constant): Likewise.
8848 (copy_constant): Likewise.
8849 (const_rtx_hash_1): Handle CONST_FIXED.
8850 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
8851 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
8852 MODE_VECTOR_UACCUM.
8853 (initializer_constant_valid_p): Handle FIXED_CST.
8854 (output_constant): Support FIXED_POINT_TYPE.
8855 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
8856 * cse.c (hash_rtx): Support CONST_FIXED.
8857 (exp_equiv_p): Likewise.
8858 (cannon_reg): Likewise.
8859 (fold_rtx): Likewise.
8860 (equiv_constant): Likewise.
8861 (cse_process_notes_1): Likewise.
8862 (count_reg_usage): Likewise.
8863 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
8864 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
8865 (wrap_constant): Check CONST_FIXED.
8866 (cselib_hash_rtx): Support CONST_FIXED.
8867 (cselib_subst_to_values): Likewise.
8868 * df-scan.c (df_uses_record): Likewise.
8869 * gcse.c (want_to_gcse_p): Likewise.
8870 (oprs_unchanged_p): Likewise.
8871 (oprs_not_set_p): Likewise.
8872 (compute_transp): Likewise.
8873 (extract_mentioned_regs_helper): Likewise.
8874 * genemit.c (gen_exp): Likewise.
8875 * local-alloc.c (equiv_init_varies_p): Likewise.
8876 (contains_replace_regs): Likewise.
8877 (memref_referenced_p): Likewise.
8878 * loop-invariant.c (check_maybe_invariant): Likewise.
8879 (hash_invariant_expr_1): Likewise.
8880 (invariant_expr_equal_p): Likewise.
8881 * postreload-gcse.c (oprs_unchanged_p): Likewise.
8882 * regclass.c (reg_scan_mark_refs): Likewise.
8883 * regrename.c (scan_rtx): Likewise.
8884 * resource.c (mark_referenced_resources): Likewise.
8885 (mark_set_resources): Likewise.
8886 * rtlanal.c (rtx_unstable_p): Likewise.
8887 (rtx_varies_p): Likewise.
8888 (count_occurrences): Likewise.
8889 (reg_mentioned_p): Likewise.
8890 (modified_between_p): Likewise.
8891 (modified_in_p): Likewise.
8892 (volatile_insn_p): Likewise.
8893 (volatile_refs_p): Likewise.
8894 (side_effects_p): Likewise.
8895 (may_trap_p_1): Likewise.
8896 (inequality_comparisons_p): Likewise.
8897 (computed_jump_p_1): Likewise.
8898 (commutative_operand_precedence): Likewise.
8899 * sched-deps.c (sched_analyze_2): Likewise.
8900 * sched-vis.c (print_value): Likewise.
8901 * reload.c (operands_match_p): Likewise.
8902 (subst_reg_equivs): Likewise.
8903 * reload1.c (eliminate_regs_1): Likewise.
8904 (elimination_effects): Likewise.
8905 (scan_paradoxical_subregs): Likewise.
8906 * alias.c (rtx_equal_for_memref_p): Likewise.
8907 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
8908 * emit-rtl.c (const_fixed_htab): New hash table.
8909 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
8910 Declare.
8911 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
8912 const_fixed_from_fixed_value): New functions.
8913 (verify_rtx_sharing): Handle CONST_FIXED.
8914 (copy_rtx_if_shared_1): Likewise.
8915 (reset_used_flags): Likewise.
8916 (set_used_flags): Likewise.
8917 (copy_insn_1): Likewise.
8918 (init_emit_once): Create const_fixed_htab.
8919 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
8920
45dbd04b 89212007-08-22 Zdenek Dvorak <ook@ucw.cz>
8922
8923 PR tree-optimization/32949
8924 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
8925 before failing for ivs with non-constant step.
8926
fd781bb2 89272007-08-22 Hans-Peter Nilsson <hp@axis.com>
8928
8929 * doc/md.texi (Iterators): Renamed from Macros. All contents
8930 changed to reflect rename of respectively define_code_macro and
8931 define_mode_macro to define_code_iterator and define_mode_iterator.
8932 (Mode Iterators, Code Iterators): Similar.
8933 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
8934 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
8935 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
8936 (initialize_iterators, find_iterator, check_code_iterator)
8937 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
8938 (read_mapping, read_rtx_1): Similar.
8939 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
8940 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
8941 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
8942 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
8943 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
8944 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
8945 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
8946 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
8947 config/rs6000/sync.md, config/rs6000/rs6000.md,
8948 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
8949 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
8950 config/vax/vax.md, config/bfin/bfin.md: Similar.
8951
9e38b641 89522007-08-22 David Daney <ddaney@avtrex.com>
8953
8954 * doc/install.texi (Testing): Mention testing on a simulator.
8955
3538c6f2 89562007-08-22 Janis Johnson <janis187@us.ibm.com>
8957
660abb5f 8958 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
8959
3538c6f2 8960 * doc/libgcc.texi (Decimal float library routines): Fix formatting
8961 and rearrange floating point conversion functions into different
8962 categories.
8963
07317795 89642007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8965
8966 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
8967 dfa_post_advance_cycle): New scheduler hooks.
8968 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
8969 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
8970 new hooks.
8971 (TARGET_SCHED): Use them.
8972 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
8973 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
8974 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
8975
8976 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
8977 function to facilitate debugging.
8978 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
8979 (output_insn_has_dfa_reservation_p): New static function to output
8980 insn_has_dfa_reservation_p ().
8981 (write_automata): Use it.
8982 * genattr.c (main): Output declaration for
8983 insn_has_dfa_reservation_p ().
8984
66b33c40 89852007-08-22 Christian Bruel <christian.bruel@st.com>
987b8c35 8986 Richard Guenther <rguenther@suse.de>
19da70e0 8987
8988 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
8989 * simplify_rtx (simplify_binary_operation_1): Likewise.
8990
8b7e64ab 89912007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
8992
8993 PR rtl-optimization/32557
8994 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
8995 of REGNO (mws->mw_reg).
8996
4de0924f 89972007-08-22 Richard Guenther <rguenther@suse.de>
8998
8999 PR middle-end/33007
9000 * builtins.c (expand_builtin_int_roundingfn): Replace call
9001 argument wrapped with SAVE_EXPR directly.
9002 (expand_builtin_int_roundingfn_2): Likewise.
9003
a01a6447 90042007-08-22 Richard Guenther <rguenther@suse.de>
9005
9006 * tree-inline.c (inlinable_function_p): Restore disregarding
9007 inline limits for GNU extern inline functions.
9008
be1f1b71 90092007-08-22 Richard Guenther <rguenther@suse.de>
9010
9011 PR middle-end/32563
9012 * tree.c (host_integerp): Treat sizetype as signed as it is
9013 sign-extended.
9014
fb807d22 90152007-08-21 Ian Lance Taylor <iant@google.com>
9016
9017 PR tree-optimization/33134
9018 * tree-vrp.c (adjust_range_with_scev): Call
9019 set_value_range_to_value.
9020
2fcb22ba 90212007-08-21 Aldy Hernandez <aldyh@redhat.com>
9022
9023 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
9024 prototype.
9025
60a98cce 90262007-08-21 Aldy Hernandez <aldyh@redhat.com>
9027
9028 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
9029 whitespace.
9030
24bdd2d6 90312007-08-21 Nathan Froyd <froydnj@codesourcery.com>
9032
9033 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
9034 cases to set eight bytes at a time.
9035 (expand_block_move): Likewise.
9036
b52933ce 90372007-08-21 Jakub Jelinek <jakub@redhat.com>
9038
9039 PR debug/32610
9040 * dwarf2out.c (gen_decl_die): Don't call
9041 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
9042
d25dc80e 90432007-08-21 Paul Brook <paul@codesourcery.com>
9044 Nathan Sidwell <nathan@codesourcery.com>
9045 Mark Mitchell <mark@codesourcery.com>
9046 Joseph Myers <joseph@codesourcery.com>
9047
9048 * configure.ac: Add --with-pkgversion and --with-bugurl.
9049 * configure: Regenerate.
9050 * doc/install.texi: Document them.
9051 * version.c (version_string): Remove VERSUFFIX.
9052 (VERSUFFIX): Remove.
9053 (pkgversion_string): New.
9054 (bug_report_url): Do not hard-code initializer.
9055 * version.h (pkgversion_string): Declare.
9056 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
9057 Define.
9058 (version.o): Define PKGVERSION and BUGURL.
9059 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
9060 (%.pod): Define BUGURL.
9061 * gcc.c (process_command, main): Use pkgversion_string.
9062 * toplev.c (compile_file, print_version): Likewise.
9063 * protoize.c (main): Likewise.
9064 * gcov.c (print_version): Likewise. Update copyright date.
9065 * gcov-dump.c (print_version): Likewise. Update copyright date.
9066 * mips-tdump.c (main): Likewise. Update copyright date.
9067 * mips-tfile.c (main): Likewise. Update copyright date.
9068 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
9069 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
9070 shorten description.
9071 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
9072 * doc/gccint.texi: Likewise.
9073 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
9074 Update copyright date.
9075
7ddeac21 90762007-08-21 Uros Bizjak <ubizjak@gmail.com>
9077
9078 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
9079 (ix86_expand_strlensi_unroll_1): Ditto.
9080 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
9081 (ix86_expand_carry_flag_compare): Update comment.
9082
89ee75ae 90832007-08-21 Jakub Jelinek <jakub@redhat.com>
9084
9085 PR middle-end/32912
9086 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
9087 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
9088
69f111d5 90892007-08-21 Richard Guenther <rguenther@suse.de>
9090
9091 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
9092
15796f61 90932007-08-21 Richard Guenther <rguenther@suse.de>
9094
9095 PR middle-end/33122
9096 * fold-const.c (fold_binary): Remove index +p PTR folding.
9097 Fix types of POINTER_PLUS_EXPR generated by folding of
9098 (PTR +p B) +p A.
9099
9421ebb9 91002007-08-20 Chao-ying Fu <fu@mips.com>
9101
9102 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
9103 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
9104 RID_ONEWAY, so that it can be checked in declspecs_add_type.
9105 (c_common_fixed_point_type_for_size): Declare.
9106 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
9107 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
9108 (c_token_starts_declspecs): Likewise.
9109 (c_parser_declspecs): Likewise.
9110 (c_parser_attributes): Likewise.
9111 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
9112 (c_declspecs): Add saturating_p.
9113 * c-decl.c (build_null_declspecs): Initialize saturating_p.
724fa541 9114 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
9115 _Sat. Handle RID_SAT.
9421ebb9 9116 Avoid using void, bool, char, int, float, double, _Decimal32,
9117 _Decimal64, _Decimal128, and complex with _Sat.
9118 Handle RID_FRACT and RID_ACCUM.
9119 Make sure _Sat is used with _Fract or _Accum.
9120 (finish_declspecs): Handle cts_fract and cts_accum.
9121 * c-common.c (fixed-value.h): New include.
9122 (constant_expression_warning): Handle FIXED_CST.
9123 (overflow_warning): Likewise.
9124 (warnings_for_convert_and_check): Likewise.
9125 (c_common_fixed_point_type_for_size): New.
9126 (c_common_type_for_mode): Handle fixed-point modes to
9127 return various saturating/non-saturating, signed/unsigned types.
9128 (c_common_signed_or_unsigned_type): Support fixed-point types.
9129 (shorten_compare): Check fixed-point zero.
9130 Handle FIXED_POINT_TYPE.
9131 (c_common_truthvalue_conversion): Handle FIXED_CST.
9132 Handle FIXED_POINT_TYPE.
9133 (c_common_nodes_and_builtins): Record builtin types for fixed-point
9134 types.
9135 (handle_mode_attribute): Handle fixed-point modes. Need to check
9136 if the signness of base type and fixed-point modes are consistent.
9137 (handle_vector_size_attribute): Handle fixed-point modes.
9138 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
9139 (warn_for_div_by_zero): Check fixed-point zero.
9140 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
9141 a common fixed-point type based on fbit, ibit, sign, and saturation.
9142 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
9143 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
9144 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
9145 (convert_for_assignment): Support FIXED_POINT_TYPE.
9146 (digest_init): Handle FIXED_POINT_TYPE.
9147 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
9148 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
9149 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
9150 GE_EXPR, LT_EXPR, GT_EXPR.
9151 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
9152 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
9153 * target.h (gcc_target): Add fixed_point_supported_p.
9154 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
9155 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
9156 (default_fixed_point_supported_p): Define.
9157 * targhooks.h (default_fixed_point_supported_p): Declare.
9158 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
9159 * doc/install.texi (Configuration): Add --enable-fixed-point.
9160 * configure.ac (--enable-fixed-point): New to enable fixed-point
9161 arithmetic extension to C. For mips targets, we enable it by default.
9162 * configure, config.in: Regenerate.
9163
a37e1120 91642007-08-20 Pawel Sikora <pluto@pld-linux.org>
9165
987b8c35 9166 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
a37e1120 9167
c49226a1 91682007-08-20 David Edelsohn <edelsohn@gnu.org>
9169
9170 * dwarf2out.c (text_section_used): Move declaration outside ifdef
9171 DWARF2_DEBUGGING_INFO.
9172 (cold_text_section_used): Same.
9173 (cold_text_section): Same.
9174
032987e9 91752007-08-20 Richard Guenther <rguenther@suse.de>
9176
987b8c35 9177 * c-typeck.c (convert_for_assignment): Use the type of
9178 the member for the initialization.
032987e9 9179
435ab150 91802007-08-20 Richard Guenther <rguenther@suse.de>
9181
9182 * c-objc-common.c (c_disregard_inline_limits): Remove.
9183 * c-objc-common.h (c_disregard_inline_limits): Likewise.
9184 * cgraphunit.c (cgraph_process_new_functions): Call
9185 disregard_inline_limits_p.
9186 (cgraph_preserve_function_body_p): Likewise.
9187 * ipa-inline.c (compute_inline_parameters): Likewise.
9188 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
9189 Remove.
9190 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
9191 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
9192 disregard_inline_limits langhook.
9193 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9194 Remove.
9195 * langhooks.h (lang_hooks_for_tree_inlining): Remove
9196 disregard_inline_limits langhook.
9197 * tree-inline.c (disregard_inline_limits_p): New function.
9198 * tree-inline.h (disregard_inline_limits_p): Declare.
9199
2ef41604 92002007-08-20 Richard Guenther <rguenther@suse.de>
9201
9202 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
9203 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
9204 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
9205 auto_var_in_fn_p langhook.
9206 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
9207 move ...
9208 * tree.c (auto_var_in_fn_p): ... here.
9209 (find_var_from_fn): Call auto_var_in_fn_p directly.
9210 * langhooks.h (lang_hooks_for_tree_inlining): Remove
9211 auto_var_in_fn_p langhook.
9212 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
9213 (copy_body_r): Likewise.
9214 (self_inlining_addr_expr): Likewise.
9215 * tree.h (auto_var_in_fn_p): Declare.
9216
20a8f962 92172007-08-20 Richard Guenther <rguenther@suse.de>
9218
9219 * tree.c (WALK_SUBTREE): Call walk_tree_1.
9220 (walk_type_fields): Take lh parameter.
9221 (walk_tree): Rename to ...
9222 (walk_tree_1): ... this. Do not call the walk_subtrees
9223 langhook but the now passed callback. Pass lh on recursion.
9224 (walk_tree_without_duplicates): Rename to ...
9225 (walk_tree_without_duplicates_1): ... this. Take lh parameter
9226 and call walk_tree_1.
9227 * tree.h (walk_tree_lh): New typedef.
9228 (walk_tree_1): Declare.
9229 (walk_tree_without_duplicates_1): Likewise.
9230 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
9231 (walk_tree_without_duplicates): New define to
9232 walk_tree_without_duplicates_1 with NULL lh parameter.
9233 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
9234 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
9235 langhook.
9236 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
9237 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
9238 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
9239 initializer.
9240
184e9f8f 92412007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
9242
9243 PR middle-end/30564
9244 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
9245 code in front of the compacting of basic blocks.
9246 Move the folding of statements inbetween the cgraph checking
9247 and compacting of basic blocks.
9248
8920b6b9 92492007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
987b8c35 9250 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8920b6b9 9251
9252 PR target/32522
9253 * config/alpha/alpha.c (va_list_skip_additions): Check for
9254 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
9255 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
9256 PLUS_EXPR when checking ap.__base.
9257 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
9258 when doing addition on pointer types. Use size_int instead of
9259 build_int_cst.
9260 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
9261 ptr_type in the second operand.
9262
02d78334 92632007-08-19 Andrew Pinski <pinskia@gmail.com>
9264
9265 PR target/33115
9266 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
9267
9961142a 92682007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
9269
9270 PR middle-end/32940
9271 * cfgexpand.c (expand_one_register_var): Mark pointer
9272 DECL_ARTIFICIAL as REG_POINTER also.
9273 * stmt.c (expand_decl): Likewise.
9274
a6db8f14 92752007-08-19 Daniel Berlin <dberlin@dberlin.org>
9276
9277 Fix PR 32772
9278 Fix PR 32716
9279 Fix PR 32328
9280 Fix PR 32303
9281
9282 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
9283 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
9284 on_worklist argument and avoid adding things to worklist multiple
9285 times.
9286 (add_to_worklist): Ditto.
9287 (mark_aliases_call_clobbered): Mark entire structure clobbered if
9288 single SFT is clobbered.
9289 (set_initial_properties): Ditto.
9290 (compute_call_clobbered): Update for changes to function
9291 arguments.
9292 (create_overlap_variables_for): Always create SFT for offset 0.
9293 (create_structure_vars): Handle PHI's, since we are in SSA form at
9294 this point.
9295 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
9296 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
9297 TARGET_MEM_REF.
9298 (add_vars_for_offset): Figure out aliases from access + points-to.
9299 (add_virtual_operand): Use add_vars-for_offset.
9300 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
9301 (add_call_clobber_ops): Remove makes_clobbering_call set.
9302 (get_expr_operands): Always pass through the INDIRECT_REF
9303 reference.
9304 * tree-ssa-structalias.c (struct constraint_graph): Remove
9305 variables member.
9306 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
9307 address_taken, pt_used, number_incoming.
9308 (FIRST_ADDR_NODE): Removed.
9309 (merge_graph_nodes): Remove broken code for the moment.
9310 (init_graph): New function.
9311 (build_pred_graph): Remove code to init_graph.
9312 Add location equivalence support.
9313 (struct scc_info): Rename roots to deleted.
9314 (scc_visit): Ditto.
9315 (init_scc_info): Ditto
9316 (init_topo_info): Use graph->size.
9317 (compute_topo_order): Ditto.
9318 (do_da_constraint): Removed.
9319 (do_sd_constraint): Remove calls to find().
9320 set_union_with_increment should always get 0 as last arg here.
9321 (do_complex_constraint): Replace do_da_constraint with assert.
9322 Stop calling find.
9323 (struct equiv_class_label): New.
9324 (pointer_equiv_class_table): Ditto.
9325 (location_equiv_class_table): Ditto.
9326 (equiv_class_label_hash): Ditto.
9327 (equiv_class_label_eq): Ditto
9328 (equiv_class_lookup): Ditto.
9329 (equiv_class_ladd): Ditto.
9330 (pointer_equiv_class): Ditto.
9331 (location_equiv_class): Ditto.
9332 (condense_visit): Rename and rewrite from label_visit to do only
9333 SCC related stuff for HU.
9334 (label_visit): Do HU work for HU.
9335 (perform_var_substitution): Update to do HU and location
9336 equivalence.
9337 (free_var_substitution_info): Update to free HU and location
9338 equivalence structures. */
9339 (find_equivalent_node): Update for pointer but not location
9340 equivalence.
9341 (unite_pointer_equivalences): New function.
9342 (move_complex_constraints): Rewrite to only do moving.
9343 (rewrite_constraints): Split out of move_complex_constraints.
9344 (solve_graph): Use graph->size.
9345 (process_constraint_1): Add from_call argument, use it.
9346 Split *a = &b into two constraints.
9347 (process_constraint): Use new process_constraint_1.
9348 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
9349 (get_constraint_for): Handle non-pointer integers properly.
9350 Remove code that used to handle structures.
9351 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
9352 with unknown addends.
9353 (handle_rhs_call): New function.
9354 (find_func_aliases): Use handle_rhs_call.
9355 (set_uids_in_ptset): Add an assert.
9356 (set_used_smts): Fix bug in not considering unified vars.
9357 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
9358 (compute_points_to_sets): Update for other function changes.
9359 (delete_points_to_sets): Ditto.
9360 (ipa_pta_execute): Ditto.
9361 (pass_ipa_pta): We need to update SSA after ipa_pta.
9362
662e4881 93632007-08-19 Jan Hubicka <jh@suse.cz>
9364
9365 * i386.md: Replace "rim" and "mri" constraints by "g".
9366
d6de7df9 93672007-08-19 Joseph Myers <joseph@codesourcery.com>
9368
9369 * dwarf2out.c (text_section_used, cold_text_section_used,
9370 cold_text_section, dwarf2out_note_section_used): New.
9371 (dwarf2out_init): Initialize cold_text_section.
9372 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
9373 dwarf2out_note_section_used.
9374 (size_of_aranges): Only count entry for text section if it was
9375 used. Count entry for cold text section if it was used.
9376 (output_aranges): Only output entries for text section and cold
9377 text section if they were used.
9378
4726380a 93792007-08-19 Andrew Pinski <pinskia@gmail.com>
9380
9381 * tree-pretty-print.c (debug_generic_expr): Add a comment about
9382 the function.
9383 (debug_generic_stmt): Likewise.
9384 (debug_tree_chain): Likewise.
9385
b0eb8c66 93862007-08-19 Dorit Nuzman <dorit@il.ibm.com>
9387
9388 * tree-data-refs.c (split_constant_offset): Expose.
9389 * tree-data-refs.h (split_constant_offset): Add declaration.
9390
9391 * tree-vectorizer.h (dr_alignment_support): Renamed
9392 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
9393 Added a new value dr_explicit_realign.
9394 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
9395 dr_offset, dr_step, and dr_aligned_to, along with new access
9396 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
9397 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
9398 STMT_VINFO_DR_ALIGNED_TO.
9399
9400 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
9401 documentation.
9402 In case of outer-loop vectorization with non-fixed misalignment - use
9403 the dr_explicit_realign scheme instead of the optimized realignment
9404 scheme.
9405 (new_stmt_vec_info): Initialize new fields.
9406
9407 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
9408 'nested_in_vect_loop' case. Change verbosity level.
9409 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
9410 Don't fail on zero step in the outer-loop for loads.
724fa541 9411 (vect_analyze_data_refs): Call split_constant_offset to calculate
9412 base, offset and init relative to the outer-loop.
b0eb8c66 9413
9414 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
9415 BSI function argument with a new function argument - at_loop.
9416 Simplify the condition that determines STEP. Takes additional argument
724fa541 9417 INV_P. Support outer-loop vectorization (handle the
9418 nested_in_vect_loop case), including zero step in the outer-loop. Call
b0eb8c66 9419 vect_create_addr_base_for_vector_ref with additional argument.
9420 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
9421 Updated function documentation. Handle the 'nested_in_vect_loop' case.
9422 Fixed and simplified calculation of step.
9423 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
9424 of bsi, and with additional argument. Call bump_vector_ptr with
9425 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
9426 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
9427 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
724fa541 9428 when the realignment setup needs to take place inside the loop.
9429 Support the dr_explicit_realign scheme. Allow generating the optimized
b0eb8c66 9430 realignment scheme for outer-loop vectorization. Added documentation.
724fa541 9431 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
9432 the 'nested_in_vect_loop' case, including loads that are invariant in
9433 the outer-loop and the realignment schemes. Handle the case when the
b0eb8c66 9434 realignment setup needs to take place inside the loop. Call
9435 vect_setup_realignment with additional arguments. Call
9436 vect_create_data_ref_ptr with additional argument and with loop instead
9437 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
9438 (vect_gen_niters_for_prolog_loop): Call
9439 vect_create_addr_base_for_vector_ref with additional arguments.
9440 (vect_create_cond_for_align_checks): Likewise.
9441 (bump_vector_ptr): Updated to support the new dr_explicit_realign
9442 scheme: takes additional argument bump; argument ptr_incr is now
9443 optional; updated documentation.
9444 (vect_init_vector): Takes additional argument (bsi). Use it, if
9445 available, to insert the vector initialization.
9446 (get_initial_def_for_induction): Pass additional argument in call to
9447 vect_init_vector.
9448 (vect_get_vec_def_for_operand): Likewise.
9449 (vect_setup_realignment): Likewise.
9450 (vectorizable_load): Likewise.
9451
221e9a92 94522007-08-19 Dorit Nuzman <dorit@il.ibm.com>
9453
9454 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
9455 as argument instead of struct loop.
9456 (nested_in_vect_loop_p): New function.
9457 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
9458 vect_used_in_outer.
9459 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
9460 from other phis in the loop.
9461 (destroy_loop_vec_info): Add additional argument to declaration.
9462
9463 * tree-vectorizer.c (supportable_widening_operation): Also check if
9464 nested_in_vect_loop_p (don't allow changing the order in this case).
9465 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
9466 of struct loop. Call nested_in_vect_loop_p and don't require
9467 flag_unsafe_math_optimizations if it returns true.
9468 (new_stmt_vec_info): When setting def_type for phis differentiate
9469 loop-header phis from other phis.
9470 (bb_in_loop_p): New function.
724fa541 9471 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
9472 just update their loop_vinfo. Order of BB traversal now matters -
9473 call dfs_enumerate_from with bb_in_loop_p.
221e9a92 9474 (destroy_loop_vec_info): Takes additional argument to control whether
9475 stmt_vinfo of the loop stmts should be destroyed as well.
9476 (vect_is_simple_reduction): Allow the "non-reduction" use of a
9477 reduction stmt to be defines by a non loop-header phi.
9478 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
9479
9480 * tree-vect-transform.c (vectorizable_reduction): Call
9481 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
9482 (vectorizable_call): Likewise.
9483 (vectorizable_conversion): Likewise.
9484 (vectorizable_operation): Likewise.
9485 (vectorizable_type_promotion): Likewise.
9486 (vectorizable_type_demotion): Likewise.
9487 (vectorizable_store): Likewise.
9488 (vectorizable_live_operation): Likewise.
9489 (vectorizable_reduction): Likewise. Also pass loop_info to
9490 vect_is_simple_reduction instead of loop.
9491 (vect_init_vector): Call nested_in_vect_loop_p.
9492 (get_initial_def_for_reduction): Likewise.
9493 (vect_create_epilog_for_reduction): Likewise.
9494 (vect_init_vector): Check which loop to work with, in case there's an
9495 inner-loop.
9496 (get_initial_def_for_inducion): Extend to handle outer-loop
9497 vectorization. Fix indentation.
9498 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
9499 In the case vect_induction_def get the vector def from the induction
9500 phi node, instead of calling get_initial_def_for_inducion.
9501 (get_initial_def_for_reduction): Extend to handle outer-loop
9502 vectorization.
9503 (vect_create_epilog_for_reduction): Extend to handle outer-loop
9504 vectorization.
9505 (vect_transform_loop): Change assert to just skip this case. Add a
9506 dump printout.
9507 (vect_finish_stmt_generation): Add a couple asserts.
9508
9509 (vect_estimate_min_profitable_iters): Multiply
9510 cost of inner-loop stmts (in outer-loop vectorization) by estimated
9511 inner-loop bound.
9512 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
9513 this is an inner-loop reduction in outer-loop vectorization.
9514
9515 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
9516 Same code as what used to be vect_analyze_scalar_cycles, only with
9517 additional argument loop, and loop_info passed to
9518 vect_is_simple_reduction instead of loop.
9519 (vect_analyze_scalar_cycles): Code factored out into
9520 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
9521 Updated documentation.
9522 (analyze_operations): Check for inner-loop loop-closed exit-phis during
9523 outer-loop vectorization that are live or not used in the outerloop,
9524 cause this requires special handling.
9525 (vect_enhance_data_refs_alignment): Don't consider versioning for
9526 nested-loops.
9527 (vect_analyze_data_refs): Check that there are no datarefs in the
9528 inner-loop.
9529 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
9530 and vect_used_in_outer_by_reduction cases.
9531 (process_use): Also consider the case of outer-loop stmt defining an
9532 inner-loop stmt and vice versa.
9533 (vect_analyze_loop_1): New function.
9534 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
9535 loops. Call vect_analyze_loop_1.
9536 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
9537 been vectorized. Call destroy_loop_vec_info with additional argument.
9538
9539 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
9540 in the inner-loop when doing outer-loop vectorization. Add
9541 documentation and printout.
9542 (vect_recog_dot_prod_pattern): Likewise. Also add check for
9543 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
9544
28d4c440 95452007-08-18 Andrew Pinski <pinskia@gmail.com>
9546
9547 * tree-affine.h (print_aff): New prototype.
9548 (debug_aff): Likewise.
9549 * tree-affine.c (print_aff): New function.
9550 (debug_aff): Likewise.
9551
5f1f2de5 95522007-08-18 Paul Brook <paul@codesourcery.com>
987b8c35 9553 Joseph Myers <joseph@codesourcery.com>
5f1f2de5 9554
9555 * common.opt (-fdebug-prefix-map=): New option.
9556 * opts.c: Include debug.h.
9557 (common_handle_option): Handle -fdebug-prefix-map.
9558 * final.c: Include ggc.h.
9559 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
9560 remap_debug_filename): New.
9561 * Makefile.in (final.o, opts.o): Update dependencies.
9562 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
9563 * configure.ac: Check for assembler --debug-prefix-map support.
9564 * configure, config.in: Regenerate.
9565 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
9566 (ASM_DEBUG_SPEC): Include ASM_MAP.
9567 * doc/install.texi (--with-debug-prefix-map): Document.
9568 * doc/invoke.texi (-fdebug-prefix-map): Document.
9569 * dbxout.c (dbxout_init, dbxout_start_source_file,
9570 dbxout_source_file): Call remap_debug_filename.
9571 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
9572 dwarf2out_start_source_file, dwarf2out_finish): Call
9573 remap_debug_filename.
9574 (file_table_relative_p): Do not check d->emitted_number.
9575 * toplev.c (output_file_directive): Call remap_debug_filename.
9576 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
9577 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
9578
a972e3c6 95792007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9580
9581 * loop-invariant.c (find_invariants_to_move): Add missing macro
9582 argument.
9583
638e4b60 95842007-08-17 Tom Tromey <tromey@redhat.com>
9585
9586 * tree.h (struct tree_label_decl): Removed old "java" fields.
9587
f8520ad7 95882007-08-17 Richard Sandiford <richard@codesourcery.com>
9589 Nigel Stephens <nigel@mips.com>
9590
9591 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
9592 Treat -mno-data-in-code and -mcode-xonly as aliases for
9593 -mcode-readable=no and -mcode-readable=pcrel respectively.
9594 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
9595 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
9596 (MULTILIB_DIRNAMES): Update accordingly.
9597
f7a00bdb 95982007-08-17 H.J. Lu <hongjiu.lu@intel.com>
9599
9600 * Makefile.in (version.o): Depend on $(REVISION) only if
9601 REVISION_s is defined.
9602
e3c15b04 96032007-08-17 Sa Liu <saliu@de.ibm.com>
9604 Ulrich Weigand <uweigand@de.ibm.com>
9605
9606 PR middle-end/32970
9607 * tree.c (reconstruct_complex_type): For a pointer to a vector,
9608 use build_qualified_type to retain qualifiers of the base type.
9609
ea2342da 96102007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
e3c15b04 9611
f7a00bdb 9612 * config/score/score.md : Update pattern tablejump.
9613 * config/score/score.c : Update score_initialize_trampoline
9614 function.
9615 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
9616 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
9617 * doc/contrib.texi: Add my entry.
ea2342da 9618
a2b17a85 96192007-08-16 H.J. Lu <hongjiu.lu@intel.com>
9620
9621 * Makefile.in (REVISION): New.
9622 (REVISION_c): New.
9623 (REVISION_s): New.
9624 (version.o): Also depend on $(REVISION). Add
9625 -DREVISION=$(REVISION_s).
9626
9627 * version.c (version_string): Add REVISION.
9628
d43d1c7f 96292007-08-16 Seongbae Park <seongbae.park@gmail.com>
9630
9631 * tree-eh.c (lower_try_finally_onedest): Reset the locus
9632 of GOTO that's relocated to a different block.
9633
f8fd23c0 96342007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9635
9636 * c-common.c (const_strip_array_types): New.
9637 * c-common.h (lang_missing_noreturn_ok_p): Delete.
9638 (const_strip_array_types): New.
9639 * c-objc-common.c (c_disregard_inline_limits,
9640 c_warn_unused_global_decl): Constify.
9641 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
9642 c_vla_type_p, c_incomplete_type_error): Likewise.
9643 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
9644 * hooks.c (hook_bool_const_tree_false): New.
9645 * hooks.h (hook_bool_const_tree_false): Likewise.
9646 * langhooks-def.h (lhd_warn_unused_global_decl,
9647 lhd_incomplete_type_error, lhd_expr_size,
9648 lhd_tree_inlining_disregard_inline_limits,
9649 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
9650 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
9651 * langhooks.c (lhd_warn_unused_global_decl,
9652 lhd_incomplete_type_error,
9653 lhd_tree_inlining_disregard_inline_limits,
9654 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
9655 lhd_expr_size): Likewise.
9656 * langhooks.h (lang_hooks_for_tree_inlining,
9657 lang_hooks_for_tree_dump, lang_hooks_for_types,
9658 lang_hooks_for_decls, lang_hooks): Likewise.
9659 * pointer-set.c (pointer_set_t, pointer_set_create,
9660 pointer_set_contains, insert_aux, pointer_set_insert,
9661 pointer_set_traverse, pointer_map_t, pointer_map_create,
9662 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
9663 Likewise.
9664 * pointer-set.h (pointer_set_contains, pointer_set_insert,
9665 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
9666 pointer_map_traverse): Likewise.
9667 * predict.c (assert_is_empty): Likewise.
9668 * tree-affine.c (free_name_expansion): Likewise.
9669 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
9670 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
9671 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
9672
45b13dc3 96732007-08-16 Victor Kaplansky <victork@il.ibm.com>
9674
9675 * tree-vectorizer.c (new_loop_vec_info): Initialize new
9676 field.
9677 (destroy_loop_vec_info): Add call to VEC_free.
9678 * tree-vectorizer.h (may_alias_ddrs): Define.
9679 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
9680 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
9681 Change reporting to dump.
9682 (vect_is_duplicate_ddr): New.
9683 (vect_mark_for_runtime_alias_test): New.
9684 (vect_analyze_data_ref_dependences) Add call to
9685 vect_mark_for_runtime_alias_test.
9686 (vect_enhance_data_refs_alignment): Define local variable
9687 vect_versioning_for_alias_required, don't perform
9688 peeling for alignment if versioning for alias is
9689 required.
9690 (vect_enhance_data_refs_alignment): Use
9691 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
9692 PARAM_VECT_MAX_VERSION_CHECKS.
9693 * tree-vect-transform.c
9694 (vect_create_cond_for_alias_checks): New.
9695 (vect_transform_loop): Add call to
9696 vect_create_cond_for_alias_checks.
9697 (vect_vfa_segment_size): New.
9698 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
9699 Rename.
9700 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
69a83716 9701 * doc/invoke.texi
45b13dc3 9702 (vect-max-version-for-alignment-checks): Document.
9703 (vect-max-version-for-alias-checks): Document.
9704 (vect-max-version-checks): Remove.
8d2d2fcd 9705
20f19272 97062007-08-16 Uros Bizjak <ubizjak@gmail.com>
9707
9708 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
9709 the same line as the instruction for all asm dialects.
9710 (*rep_movsi): Ditto.
9711 (*rep_movsi_rex64): Ditto.
9712 (*rep_movqi): Ditto.
9713 (*rep_movqi_rex64): Ditto.
9714 (*rep_stosdi_rex64): Ditto.
9715 (*rep_stossi): Ditto.
9716 (*rep_stossi_rex64): Ditto.
9717 (*rep_stosqi): Ditto.
9718 (*rep_stosqi_rex64): Ditto.
9719 (*cmpstrnqi_nz_1): Ditto.
9720 (*cmpstrnqi_nz_rex_1): Ditto.
9721 (*cmpstrnqi_1): Ditto.
9722 (*cmpstrnqi_rex_1): Ditto.
9723 (*strlenqi_1): Ditto.
9724 (*strlenqi_rex_1): Ditto.
9725 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
9726 prefix on the same line as the instruction for all asm dialects.
9727 (sync_double_compare_and_swap<mode>): Ditto.
9728 (*sync_double_compare_and_swapdi_pic): Ditto.
9729 (*sync_compare_and_swap_cc<mode>): Ditto.
9730 (sync_double_compare_and_swap_cc<mode>): Ditto.
9731 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
9732 (sync_old_add<mode>): Ditto.
9733 (sync_add<mode>): Ditto.
9734 (sync_sub<mode>): Ditto.
9735 (sync_ior<mode>): Ditto.
9736 (sync_and<mode>): Ditto.
9737 (sync_xor<mode>): Ditto.
9738
8a72adf4 97392007-08-16 Richard Sandiford <richard@codesourcery.com>
9740
9741 PR middle-end/32897
9742 * reload.c (find_reloads): Check that the memory returned by
9743 find_reloads_toplev was not the result of forcing a constant
9744 to memory.
9745 (find_reloads_toplev): Always use simplify_gen_subreg to get
9746 the subreg of a constant. If the result is also a constant,
9747 but not a legitimate one, force it into the constant pool
9748 and reload its address.
9749
8ef684b3 97502007-08-15 David Edelsohn <edelsohn@gnu.org>
9751
9752 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
9753 POPCOUNT.
9754
e6092cfb 97552007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
9756
9757 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
9758 directive for the current vector ABI.
9759
0b3fe24b 97602007-08-15 Steve Ellcey <sje@cup.hp.com>
9761
9762 PR target/32963
9763 * caller-save.c (reg_save_code): Set invalide status on restore code.
9764
60ad452f 97652007-08-15 Diego Novillo <dnovillo@google.com>
9766
9767 * tree-ssa-alias.c (compute_memory_partitions): Use
9768 alias_bitmap_obstack to allocate bitmaps.
9769 (reset_alias_info): Factor out of init_alias_info.
9770 Mark all name tags not associated to an SSA name for renaming.
9771 (init_alias_info): Call it.
9772 (create_name_tags): Tidy. Add comments.
9773 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
9774
61de5b7b 97752007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9776
9777 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
9778 scheduler dependencies.
9779
92c93b71 97802007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
9781
9782 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
9783 "register_operand".
9784 (*iorsi_1_zext): Likewise.
9785 (*iorsi_1_zext_imm): Likewise.
9786 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
9787 with "rm"/"xm" constraint.
9788 (sse2_vmsqrtv2df2): Likewise.
9789
65addc84 97902007-08-15 Jakub Jelinek <jakub@redhat.com>
9791
9792 PR middle-end/33074
9793 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
9794 REG_LIBCALL note.
9795
b1b7c0c4 97962007-08-14 Daniel Berlin <dberlin@dberlin.org>
9797
9798 * tree-pass.h (PROP_pta): Removed.
9799 (TODO_rebuild_alias): New.
9800 (pass_may_alias): Removed.
9801 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
9802 aliasing if we changed something.
9803 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
9804 SSA internally.
9805 (pass_may_alias): Removed.
9806 (create_structure_vars): Return TODO_rebuild_alias.
9807 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
9808 * tree-sra.c (tree_sra): Only rebuild aliasing if something
9809 changed.
9810 (tree_sra_early): We never affect aliasing right now.
9811 * tree-flow.h (compute_may_aliases): New prototype.
9812 * passes.c: Remove pass_may_alias from the passes.
9813 (execute_function_todo): Support TODO_rebuild_alias.
9814
fc7fd143 98152007-08-14 Kai Tietz <kai.tietz@onevision.com>
9816
9817 * i386.c: (legitimize_address): Move dllimported variable check
9818 infront of legitimizing pic address of CONST symbols.
9819
46699809 98202007-08-14 Steve Ellcey <sje@cup.hp.com>
9821
9822 PR tree-optimization/32941
9823 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
9824 (goto_queue_cmp): Remove.
9825 (find_goto_replacement): Change search method.
9826 (maybe_record_in_goto_queue): Add assert.
9827 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
9828 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
9829
1f1872fd 98302007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9831
9832 * alias.c (component_uses_parent_alias_set): Constify.
9833 * alias.h (component_uses_parent_alias_set): Likewise.
9834 * cfgrtl.c (print_rtl_with_bb): Likewise.
9835 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
9836 mpz_get_double_int): Likewise.
9837 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
9838 mpz_get_double_int): Likewise.
9839 * expr.c (is_aligning_offset, undefined_operand_subword_p,
9840 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
9841 Likewise.
9842 * expr.h (safe_from_p): Likewise.
9843 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
9844 Likewise.
9845 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
9846 zero_sized_type, goa_lhs_expr_p): Likewise.
9847 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
9848 * rtl.h (print_rtl_with_bb): Likewise.
9849 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
9850 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
9851 * tree-flow-inline.h (bb_stmt_list): Constify.
9852 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
9853 cbsi_stmt): New.
9854 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
9855 const_first_stmt, const_last_stmt): New.
9856 (block_may_fallthru, empty_block_p): Constify.
9857 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
9858 EXPR_ONLY_BODY): New.
9859 (expr_first, expr_last, expr_only): Use macro for body.
9860 (const_expr_first, const_expr_last, const_expr_only): New.
9861 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
9862 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
9863 ctsi_prev, ctsi_stmt): New.
9864 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
9865 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
9866 * tree-ssa-loop-niter.c (loop_only_exit_p,
9867 derive_constant_upper_bound): Likewise.
9868 * tree-ssa-phiopt.c (empty_block_p): Likewise.
9869 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
9870 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
9871 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
9872 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
9873 * tree.c (get_type_static_bounds): Likewise.
9874 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
9875 (get_type_static_bounds): Constify.
9876
aa8c6aad 98772007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
9878
9879 PR target/30315
9880 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
9881 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
9882 (*<addsub><mode>3_cc_overflow): New.
9883 (*add<mode>3_cconly_overflow): New.
9884 (*sub<mode>3_cconly_overflow): New.
9885 (*<addsub>si3_zext_cc_overflow): New.
9886 * config/i386/predicates.md (fcmov_comparison_operator): Accept
9887 CCCmode for LTU, GTU, LEU and GEU.
9888 (ix86_comparison_operator): Likewise.
9889 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
62f92e2c 9890 * config/i386/i386.c (put_condition_code): Support CCCmode.
aa8c6aad 9891 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
9892 or MINUS expressions.
9893
f8629d35 98942007-08-14 Andrew Pinski <pinskia@gmail.com>
9895
9896 PR c/30428
9897 * c-typeck.c (build_binary_op): Disallow vector float types with
9898 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
9899
93f6b030 99002007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
9901
9902 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
9903 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
9904 (dep_def): New typedef.
9905 (init_dep_1, sd_debug_dep): Declare functions.
9906 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
9907 (debug_dep_links): Remove.
9908 (struct _deps_list): New field 'n_links'.
9909 (DEPS_LIST_N_LINKS): New macro.
9910 (FOR_EACH_DEP_LINK): Remove.
9911 (create_deps_list, free_deps_list, delete_deps_list): Remove
9912 declaration.
9913 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
9914 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
9915 (copy_deps_list_change_con, move_dep_link): Ditto.
9916 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
9917 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
9918 'dep_count'.
9919 (INSN_BACK_DEPS): Remove.
9920 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
9921 New macros.
9922 (INSN_DEP_COUNT): Remove.
9923 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
9924 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
9925 Declare global variables.
9926 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
9927 (add_forw_dep, compute_forward_dependences): Remove declarations.
9928 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
9929 (add_back_forw_dep, delete_back_forw_dep): Ditto.
9930 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
9931 functions.
724fa541 9932 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
9933 New constants.
93f6b030 9934 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
9935 (sd_list_types_def): New typedef.
9936 (sd_next_list): Declare function.
9937 (struct _sd_iterator): New type.
9938 (sd_iterator_def): New typedef.
9939 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
9940 functions.
9941 (FOR_EACH_DEP): New cycle wrapper.
9942 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
9943 Declare functions.
9944 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
9945 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
9946 Ditto.
9947
9948 * sched-deps.c (init_dep_1): Make global.
9949 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
9950 constants.
9951 (dump_dep): New static function.
9952 (dump_dep_flags): New static variable.
9953 (sd_debug_dep): New function.
9954 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
9955 the list.
9956 (move_dep_link): Use remove_from_deps_list (), instead of
9957 detach_dep_link ().
9958 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
9959 (dep_link_is_detached_p): New static function.
9960 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
9961 instead.
9962 (dn_pool, dl_pool): New alloc_pools.
9963 (dn_pool_diff, dl_pool_diff): New static variables.
9964 (create_dep_node, delete_dep_node): New static function.
9965 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
9966 (deps_list_empty_p): Make it static. Use 'n_links' field.
9967 (deps_pools_are_empty_p): New static function.
9968 (alloc_deps_list, delete_deps_list): Remove.
9969 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
9970 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
9971 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
9972 (forward_dependency_cache): Remove.
9973 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
9974 'back' from the names. Change signature to use dep_t instead of
9975 equivalent quad.
9976 (add_back_dep): Ditto. Make global.
9977 (check_dep_status): Rename to check_dep ().
9978 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
9979 New functions.
9980 (sd_finish_insn): Ditto.
9981 (sd_find_dep_between_no_cache): New static function.
9982 (sd_find_dep_between): New function.
9983 (ask_dependency_caches, set_dependency_caches): New static functions.
9984 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
9985 (add_or_update_dep_1): Separate pieces of functionality into
9986 ask_dependency_caches (), update_dependency_caches (),
9987 change_spec_dep_to_hard (), update_dep ().
9988 (get_back_and_forw_lists): New static function.
9989 (sd_add_dep): Separate setting of dependency caches into
9990 set_dependency_caches ().
9991 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
9992 New functions.
9993 (sd_delete_dep): Ditto.
9994 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
9995 (dump_lists): New static function.
9996 (sd_debug_lists): New debug function.
9997 (delete_all_dependences, fixup_sched_groups): Update to use
9998 sd_* infrastructure.
9999 (sched_analyze_2): Create data-speculative dependency only if
10000 data-speculation is enabled.
10001 (sched_analyze_insn): If insn cannot be speculative, make all its
10002 dependencies non-speculative.
10003 (sched_analyze): Use sd_init_insn ().
10004 (add_forw_dep, compute_forward_dependencies): Remove.
10005 (delete_dep_nodes_in_back_deps): New static function.
10006 (sched_free_deps): New function.
10007 (init_dependency_caches): Init alloc_pools.
10008 (extend_depedency_caches): Update after removing of
10009 forward_dependency_cache.
10010 (free_dependency_caches): Ditto. Free alloc_pools.
10011 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
10012 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
10013 Ditto.
10014 (add_back_forw_dep, delete_back_forw_dep): Ditto.
10015 (add_dependence): Use init_dep ().
10016 (get_dep_weak_1): New static function.
10017 (get_dep_weak): Move logic to get_dep_weak_1 ().
10018 (dump_ds): New static function moved from haifa-sched.c:
10019 debug_spec_status ().
10020 (debug_ds): New debug function.
10021 (check_dep_status): Rename to check_dep (). Update to check whole
10022 dependencies.
10023
10024 * haifa-sched.c (spec_info): Make global.
10025 (added_recovery_block_p): Rename to
10026 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
10027 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
10028 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
10029 to use new interfaces.
10030 (ok_for_early_queue_removal): Ditto.
10031 (schedule_block): Initialize logical uids of insns emitted by the
10032 target.
10033 (sched_init): Initialize new variable.
10034 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
10035 interfaces.
10036 (extend_global): Initialize insn data.
10037 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
10038 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
10039 new interfaces.
10040 (add_to_speculative_block): Update to use new interfaces.
10041 (create_recovery_block): Set new variables.
10042 (create_check_block_twin, fix_recovery_deps): Update to use new
10043 interfaces.
10044 (sched_insn_is_legitimate_for_speculation_p): New function.
10045 (speculate_insn): Move checking logic to
10046 sched_insn_is_legitimate_for_speculation_p ().
10047 (sched_remove_insn): Finalize sched-deps information of instruction.
10048 (clear_priorities, add_jump_dependencies): Update to use new
10049 interfaces.
10050 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
10051
10052 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
10053 to use new interfaces.
10054 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
10055 (new_ready): Try to use control speculation only if it is available.
10056 (add_branch_dependences): Update to use new interfaces.
10057 (compute_block_backward_dependences): Rename to
10058 compute_block_dependences (). Call
10059 targetm.sched.dependencies_evaluation_hook ().
10060 (free_block_dependencies): New static function.
10061 (debug_dependencies): Update to use new interfaces.
10062 (schedule_region): Remove separate computation of forward dependencies.
10063 Move call of targetm.sched.dependencies_evaluation_hook () to
10064 compute_block_dependences (). Free dependencies at the end of
10065 scheduling the region.
10066
10067 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
10068 new interfaces.
10069 (add_deps_for_risky_insns): Ditto.
10070 (schedule_ebb): Remove separate computation of forward dependencies.
10071 Free dependencies at the end of scheduling the ebb.
10072
10073 * ddg.c (create_ddg_dependence): Update to use new interfaces.
724fa541 10074 (build_intra_loop_deps): Ditto. Remove separate computation of
10075 forward dependencies. Free sched-deps dependencies.
93f6b030 10076
10077 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
10078 to use new interfaces.
10079 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
10080
10081 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
10082 new interfaces.
10083 (is_costly_group): Ditto.
10084
7ecb5bb2 100852007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10086
10087 * alias.c (rtx_equal_for_memref_p): Constify.
10088 * basic-block.h (const_edge, const_basic_block): New.
10089 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
10090 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
10091 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
10092 probably_never_executed_bb_p, edge_probability_reliable_p,
10093 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
10094 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
10095 Likewise.
10096 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
10097 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
10098 Likewise.
10099 * cfganal.c (flow_active_insn_p, forwarder_block_p,
10100 flow_nodes_print, dfs_enumerate_from): Likewise.
10101 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
10102 control_flow_insn_p, count_basic_blocks): Likewise.
10103 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
10104 get_loop_body_with_size, loop_exit_edge_p): Likewise.
10105 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
10106 average_num_loop_insns, loop_exit_edge_p,
10107 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
10108 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
10109 average_num_loop_insns, seq_cost): Likewise.
10110 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
10111 * dominance.c (dominated_by_p): Likewise.
10112 * emit-rtl.c (validate_subreg): Likewise.
10113 * except.c (can_throw_internal, can_throw_external): Likewise.
10114 * except.h (can_throw_internal, can_throw_external): Likewise.
10115 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
10116 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
10117 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
10118 simple_mem, store_ops_ok, load_kills_store, find_loads,
10119 store_killed_in_insn, store_killed_after, store_killed_before,
10120 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
10121 Likewise.
10122 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
10123 noce_mem_write_may_trap_or_fault_p): Likewise.
10124 * pointer-set.c (pointer_set_contains, pointer_map_contains):
10125 Likewise.
10126 * pointer-set.h (pointer_set_contains, pointer_map_contains):
10127 Likewise.
10128 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
10129 probably_cold_bb_p, probably_never_executed_bb_p,
10130 edge_probability_reliable_p, br_prob_note_reliable_p,
10131 can_predict_insn_p): Likewise.
10132 * regclass.c (reg_set_to_hard_reg_set): Likewise.
10133 * resource.c (return_insn_p): Likewise.
10134 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
10135 Likewise.
10136 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
10137 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
10138 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
10139 verify_gimple_modify_stmt): Likewise.
10140 * tree-chrec.c (is_not_constant_evolution,
10141 is_multivariate_chrec_rec, is_multivariate_chrec,
10142 chrec_contains_symbols, chrec_contains_undetermined,
10143 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
10144 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
10145 eq_evolutions_p, scev_direction): Likewise.
10146 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
10147 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
10148 chrec_contains_symbols_defined_in_loop,
10149 chrec_contains_undetermined, tree_contains_chrecs,
10150 evolution_function_is_affine_multivariate_p,
10151 evolution_function_is_univariate_p, chrec_zerop,
10152 evolution_function_is_constant_p, evolution_function_is_affine_p,
10153 evolution_function_is_affine_or_constant_p,
10154 tree_does_not_contain_chrecs, chrec_type): Likewise.
10155 * tree-data-ref.c (tree_fold_divides_p,
10156 object_address_invariant_in_loop_p, dr_may_alias_p,
10157 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
10158 same_access_functions, constant_access_functions,
10159 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
10160 Likewise.
10161 * tree-flow.h (scev_direction): Likewise.
10162 * tree-gimple.c (is_gimple_stmt): Likewise.
10163 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
10164 Likewise.
10165 * tree-pretty-print.c (op_prio): Likewise.
10166 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
10167 analyzable_condition, backedge_phi_arg_p): Likewise.
10168 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
10169 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
10170 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
10171 Likewise.
10172
7b3a7c6b 101732007-08-13 Dan Hipschman <dsh@google.com>
10174
10175 PR c/32953
10176 * c-format.c (check_format_arg): Move check for zero-length
10177 format strings below the check for unterminated strings.
10178
0eb14c3d 101792007-08-13 Andrew Pinski <pinskia@gmail.com>
10180
10181 PR C/30427
10182 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
10183 types.
10184
a7cb1e13 101852007-08-13 Nick Clifton <nickc@redhat.com>
10186
10187 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
10188
6a78072d 101892007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10190
10191 PR fortran/32860
10192 * c-format.c (gcc_gfc_length_specs): New array.
10193 (gcc_gfc_char_table): Add unsigned specifier, and references to
10194 the l length modifier.
10195 (format_types_orig): Use the new gcc_gfc_length_specs.
10196
048a46c2 101972007-08-12 Sa Liu <saliu@de.ibm.com>
10198
10199 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
10200 and with REG_RETVAL note after split.
10201
28c18fea 102022007-08-11 David Daney <ddaney@avtrex.com>
10203
48dc2227 10204 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
28c18fea 10205 as ATTRIBUTE_UNUSED.
10206
26ac30e1 102072007-08-11 David Edelsohn <edelsohn@gnu.org>
10208 Segher Boessenkool <segher@kernel.crashing.org>
10209
10210 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
10211 HAVE_LOCAL_CPU_DETECT not defined.
10212
2de29097 102132007-08-11 Jan Hubicka <jh@suse.cz>
10214
10215 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
10216 (cgraph_process_new_functions): Honor previous value of
10217 disregard_inline_limits.
10218 * ipa-inline.c (compute_inline_parameters): Likewise.
10219
32c2fdea 102202007-08-11 Ian Lance Taylor <iant@google.com>
10221
10222 * alias.h (alias_set_type): Define new type.
10223 (ALIAS_SET_MEMORY_BARRIER): Use it.
10224 * rtl.h: Include alias.h.
10225 (struct mem_attrs): Use alias_set_type.
10226 * tree.h: Include alias.h
10227 (struct tree_type): Use alias_set_type.
10228 (struct tree_struct_field_tag): Likewise.
10229 (struct tree_decl_common): Likewise.
10230 * alias.c (struct alias_set_entry): Use alias_set_type.
10231 (get_alias_set_entry, alias_set_subset_of): Likewise.
10232 (alias_sets_conflict_p): Likewise.
10233 (alias_sets_must_conflict_p): Likewise.
10234 (objects_must_conflict_p): Likewise.
10235 (get_alias_set, new_alias_set): Likewise.
10236 (record_alias_subset, record_component_aliases): Likewise.
10237 (varargs_set, frame_set): Change to alias_set_type.
10238 (get_varargs_alias_set): Use alias_set_type.
10239 (get_frame_alias_set): Likewise.
10240 * builtins.c (setjmp_alias_set): Change to alias_set_type.
10241 * dse.c (struct store_info): Use alias_set_type.
10242 (struct read_info, struct clear_alias_mode_holder): Likewise.
10243 (clear_alias_set_lookup, canon_address): Likewise.
10244 (record_store, check_mem_read_rtx): Likewise.
10245 (dse_record_singleton_alias_set): Likewise.
10246 (dse_invalidate_singleton_alias_set): Likewise.
10247 * emit-rtl.c (get_mem_attrs): Likewise.
10248 (set_mem_attributes_minus_bitpos): Likewise.
10249 (set_mem_alias_set): Likewise.
10250 * expr.c (store_constructor_field, store_field): Likewise.
10251 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
10252 * langhooks.c (lhd_get_alias_set): Likewise.
10253 * langhooks-def.h (lhd_get_alias_set): Likewise.
10254 * reload1.c (alter_reg): Likewise.
10255 * tree-flow.h (struct fieldoff): Likewise.
10256 * tree-ssa-alias.c (struct alias_map_d): Likewise.
10257 (may_alias_p, get_smt_for, create_sft): Likewise.
10258 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
10259 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
10260 (merge_smts_into): Likewise.
10261 * varasm.c (const_alias_set): Likewise.
10262 * c-common.c (strict_aliasing_warning): Likewise.
10263 (c_common_get_alias_set): Likewise.
10264 * dse.h (dse_record_singleton_alias_set): Update declaration.
10265 (dse_invalidate_singleton_alias_set): Likewise.
10266 * emit-rtl.h (set_mem_alias_set): Likewise.
10267 * c-common.h (c_common_get_alias_set): Likewise.
10268 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
10269 * print-tree.c (print_node): Likewise.
10270 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
10271 alias_set_type.
10272 (alpha_setup_incoming_varargs): Use alias_set_type.
10273 * config/i386/i386.c (setup_incoming_varargs_64): Use
10274 alias_set_type.
10275 (setup_incoming_varargs_ms_64): Likewise.
10276 (ix86_GOT_alias_set): Likewise.
10277 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10278 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
10279 (set): Change to alias_set_type.
10280 (get_TOC_alias_set): Use alias_set_type.
10281 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
10282 declaration.
10283 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
10284 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
10285 alias_set_type.
10286 (struct_value_alias_set): Likewise.
10287 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
10288
2baac351 102892007-08-11 Richard Sandiford <richard@codesourcery.com>
10290
10291 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
10292 * config/vxworks.h (TARGET_VXWORKS): Override.
10293 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
10294 "mips" if TARGET_VXWORKS.
10295
90af1361 102962007-08-11 Richard Sandiford <richard@codesourcery.com>
10297
10298 * calls.c (avoid_likely_spilled_reg): New function.
10299 (expand_call): Use it.
10300
b8abcbd2 103012007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10302
10303 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
10304
4c10df75 103052007-08-10 Adam Nemet <anemet@caviumnetworks.com>
10306
10307 * config/mips/predicates.md (const_call_insn_operand): Invoke
10308 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
10309
293e5c85 103102007-08-10 David Edelsohn <edelsohn@gnu.org>
10311
10312 PR target/33042
10313 * config/rs6000/driver-rs6000.c: Include link.h.
10314 Use ElfW instead of wordsize-specif typedef.
10315
c21f4fcd 103162007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10317
10318 * system.h (CONST_CAST): New.
10319 * c-decl.c (c_make_fname_decl): Use it.
10320 * c-lex.c (cb_ident, lex_string): Likewise.
10321 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10322 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
10323 give_switch, set_multilib_dir): Likewise.
10324 * gengtype-parse.c (string_seq, typedef_name): Likewise.
10325 * passes.c (execute_one_pass): Likewise.
10326 * prefix.c (update_path): Likewise.
10327 * pretty-print.c (pp_base_destroy_prefix): Likewise.
10328 * tree.c (build_string): Likewise.
10329
e7ec31c6 103302007-08-10 Aldy Hernandez <aldyh@redhat.com>
10331
10332 * tree-flow-inline.h (is_exec_stmt): Remove.
10333 (is_label_stmt): Remove.
10334 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
10335 is_label_stmt.
10336
4d8ad352 103372007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
10338
10339 * lower-subreg.c (resolve_shift_zext): Don't adjust
10340 src_reg_num for wordmode operands.
10341
657801e9 103422007-08-10 Sandra Loosemore <sandra@codesourcery.com>
10343 David Ung <davidu@mips.com>
10344
10345 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
10346 (TARGET_SCHED_REORDER2): Define.
10347 (mips_maybe_swap_ready): New.
10348 (mips_last_74k_agen_insn): New.
10349 (mips_74k_agen_init): New.
10350 (mips_74k_agen_reorder): New function to group loads and stores
10351 in the ready queue.
10352 (mips_sched_init): New.
10353 (mips_sched_reorder): Don't do initialization here. Call
10354 mips_74k_agen_reorder.
10355 (mips_variable_issue): Call mips_74k_agen_init.
10356
c27a314d 103572007-08-10 Aldy Hernandez <aldyh@redhat.com>
10358
10359 * tree-flow-inline.h (get_filename): Remove.
10360
6107a46e 103612007-08-10 Richard Sandiford <richard@codesourcery.com>
10362
10363 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
10364 argument.
10365 (mips_fetch_insns): Delete in favor of...
10366 (mips_load_store_insns): ...this new function.
10367 * config/mips/mips.c (mips_address_insns): Add a boolean argument
10368 to say whether multiword moves _might_ be split.
10369 (mips_fetch_insns): Delete in favor of...
10370 (mips_load_store_insns): ...this new function.
10371 (mips_rtx_costs): Update the call to mips_address_insns.
10372 (mips_address_cost): Likewise.
10373 * config/mips/mips.md (length): Use mips_load_store_insns instead
10374 of mips_fetch_insns.
10375 * config/mips/constraints.md (R): Use mips_address_insns rather
10376 than mips_fetch_insns. Assume that the move never needs to be split.
10377
951d98af 103782007-08-09 Sandra Loosemore <sandra@codesourcery.com>
10379
48dc2227 10380 * config/mips/mips.opt (mhard-float, msoft-float): Make these
951d98af 10381 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
10382 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
10383 * config/mips/mips.h (mips16_hard_float): Delete.
48dc2227 10384 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
951d98af 10385 definitions, and replace with....
10386 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
10387 * config/mips/mips.c (mips16_hard_float): Delete. Replace
10388 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
10389 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
48dc2227 10390 (override_options): Replace MASK_SOFT_FLOAT references with
951d98af 10391 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
10392 and mips16_hard_float when TARGET_MIPS16.
10393
ed9e916d 103942007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
10395
10396 PR c/32796
10397 * c-typeck.c (build_binary_op): Check for non pointer types before
10398 calling int_fits_type_p.
10399
9e0e518b 104002007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
10401
10402 PR middle-end/32813
10403 * fold-const.c (omit_one_operand): Return only the ommitted expression
10404 if the result is an empty statement.
10405 (pedantic_omit_one_operand): Likewise.
10406
227d73b4 104072007-08-09 Daniel Berlin <dberlin@dberlin.org>
10408
10409 * c-typeck.c (readonly_error): Improve error for assignment.
10410
10411 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
10412 expression.
10413 (pp_c_expression): Ditto.
10414
5cda8d0d 104152007-08-09 Simon Baldwin <simonb@google.com>
10416
10417 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
10418 break that was preventing simplify_associative_operation() for xor.
10419
e533b20e 104202007-08-09 Sandra Loosemore <sandra@codesourcery.com>
10421 Nigel Stephens <nigel@mips.com>
10422
10423 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
10424 Document change in interpretation of value from boolean to
10425 tri-state integer.
10426 * optabs.c (expand_ffs, expand_ctz): New functions to compute
10427 ffs and ctz using clz.
48dc2227 10428 (expand_unop): Call them.
e533b20e 10429 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
10430 result value.
10431 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
10432 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
10433 enable the new ffs expansion on this target.
10434
99bdde56 104352007-08-09 Jan Hubicka <jh@suse.cz>
10436
10437 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
10438 (expand_ternary_op): Likewise.
10439 (expand_vec_shift_expr): Likewise.
10440 (expand_binop_directly): Likewise.
10441 (expand_binop): Likewise.
10442 (sign_expand_binop): Likewise.
10443 (expand_twoval_unop): Likewise.
10444 (expand_twoval_binop): Likewise.
10445 (expand_twoval_binop_libfunc): Likewise.
10446 (widen_clz): Likewise.
10447 (widen_bswap): Likewise.
10448 (expand_parity): Likewise.
10449 (expand_unop): Likewise.
10450 (expand_abs_nojump): Likewise.
10451 (expand_copysign): Likewise.
10452 (emit_no_conflict_block): Likewise.
10453 (emit_libcall_block): Likewise.
10454 (can_compare_p): Likewise.
10455 (prepare_cmp_insn): Likewise.
10456 (emit_cmp_and_jump_insn_1): Likewise.
10457 (prepare_float_lib_cmp): Likewise.
10458 (emit_conditional_add): Likewise.
10459 (gen_add2_insn): Likewise.
10460 (have_add2_insn): Likewise.
10461 (gen_sub2_insn): Likewise.
10462 (have_sub2_insn): Likewise.
10463 (can_extend_p): Likewise.
10464 (can_fix_p): Likewise.
10465 (can_float_p): Likewise.
10466 (expand_float): Likewise.
10467 (expand_fix): Likewise.
10468 (expand_sfix_optab): Likewise.
10469 (new_optab): Likewise.
10470 (new_convert_optab): Likewise.
10471 (init_libfuncs): Likewise.
10472 (init_interclass_conv_libfuncs): Likewise.
10473 (init_intraclass_conv_libfuncs): Likewise.
10474 (set_conv_libfunc): Likewise.
10475 (init_optabs): Likewise.
10476 (debug_optab_libfuncs): Likewise.
10477 (gen_cond_trap): Likewise.
10478 * optabs.h (optab_handler, convert_optab_hanlder): New.
10479 * genopinit.c: Update optabs generation table.
10480 * reload.c (find_reloads_address_1): Use optabs accestors.
10481 * builtins.c (expand_builtin_mathfn): Likewise.
10482 (expand_builtin_mathfn_2): Likewise.
10483 (expand_builtin_mathfn_3): Likewise.
10484 (expand_builtin_interclass_mathfn): Likewise.
10485 (expand_builtin_sincos): Likewise.
10486 (expand_builtin_cexpi): Likewise.
10487 (expand_builtin_powi): Likewise.
10488 (expand_builtin_strlen): Likewise.
10489 * dojump.c (do_jump): Likewise.
10490 * expr.c (convert_move): Likewise.
10491 (move_by_pieces): Likewise.
10492 (move_by_pieces_ninsns): Likewise.
10493 (can_store_by_pieces): Likewise.
10494 (store_by_pieces_1): Likewise.
10495 (emit_move_via_integer): Likewise.
10496 (emit_move_complex): Likewise.
10497 (emit_move_ccmode): Likewise.
10498 (emit_move_insn_1): Likewise.
10499 (emit_single_push_insn): Likewise.
10500 (store_constructor): Likewise.
10501 (expand_expr_real_1): Likewise.
10502 (do_store_flag): Likewise.
10503 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
10504 (enumerate_modes): Likewise.
10505 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
10506 (supportable_widening_operation): Likewise.
10507 (supportable_narrowing_operation): Likewise.
10508 * expmed.c (store_bit_field_1): Likewise.
10509 (extract_bit_field_1): Likewise.
10510 (expand_mult_highpart_optab): Likewise.
10511 (expand_smod_pow2): Likewise.
10512 (expand_divmod): Likewise.
10513 (emit_store_flag): Likewise.
10514 * tree-vect-patterns.c
10515 (vect_pattern_recog_1): Likewise.
10516 * tree-ssa-loop-prefetch.c
10517 (nontemporal_store_p): Likewise.
10518 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
10519 (vect_create_epilog_for_reduction): Likewise.
10520 (vectorizable_reduction): Likewise.
10521 (vectorizable_operation): Likewise.
10522 (vect_strided_store_supported): Likewise.
10523 (vectorizable_store): Likewise.
10524 (vect_strided_load_supported): Likewise.
10525 (vectorizable_load): Likewise.
10526 * combine.c (simplify_comparison): Likewise.
10527 * tree-vect-generic.c
10528 (type_for_widest_vector_mode): Likewise.
10529 (expand_vector_operations_1): Likewise.
10530 * config/spu/spu.c (spu_expand_mov): Likewise.
10531 (spu_emit_vector_compare): Likewise.
10532 * config/rs6000/rs6000.c
10533 (rs6000_emit_vector_compare): Likewise.
10534 * stmt.c (add_case_node): Likewise.
10535 * reload1.c (gen_reload):
10536
4dc2a232 105372007-08-09 Michael Matz <matz@suse.de>
10538
10539 * tree.h (fixed_zerop): Declare as taking a const_tree.
10540 * tree.c (fixed_zerop): Take a const_tree.
10541
d984cd60 105422007-08-09 Ira Rosen <irar@il.ibm.com>
10543
10544 * tree-vect-transform.c (vectorizable_store): Remove call to
10545 copy_virtual_operands() and call mark_symbols_for_renaming() for
10546 the created vector store.
10547 (vect_setup_realignment): Don't call copy_virtual_operands() and
10548 update_vuses_to_preheader().
10549 (vectorizable_load): Don't call copy_virtual_operands().
10550 (update_vuses_to_preheader): Remove.
10551
06f0b99c 105522007-08-08 Chao-ying Fu <fu@mips.com>
10553
10554 * tree.def (FIXED_POINT_TYPE): New type.
10555 (FIXED_CST): New constant.
10556 (FIXED_CONVERT_EXPR): New expr.
10557 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
10558 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
10559 * tree.h (struct tree_base): Add saturating_flag.
10560 Remove one bit of spare for saturating_flag.
10561 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
10562 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
10563 FIXED_POINT_TYPE_P): Define.
10564 (TYPE_SATURATING): Define.
10565 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
10566 (struct tree_fixed_cst): New.
10567 (TYPE_IBIT, TYPE_FBIT): Define.
10568 (tree_node): Add fixed_cst.
10569 (enum tree_index): Add new enumeration values of
10570 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
10571 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
10572 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
10573 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
10574 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
10575 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
10576 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
10577 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
10578 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
10579 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
10580 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
10581 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
10582 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
10583 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
10584 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
10585 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
10586 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
10587 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
10588 (sat_short_fract_type_node, sat_fract_type_node,
10589 sat_long_fract_type_node, sat_long_long_fract_type_node,
10590 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
10591 sat_unsigned_long_fract_type_node,
10592 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
10593 fract_type_node, long_fract_type_node, long_long_fract_type_node,
10594 unsigned_short_fract_type_node, unsigned_fract_type_node,
10595 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
10596 sat_short_accum_type_node, sat_accum_type_node,
10597 sat_long_accum_type_node, sat_long_long_accum_type_node,
10598 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
10599 sat_unsigned_long_accum_type_node,
10600 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
10601 accum_type_node, long_accum_type_node, long_long_accum_type_node,
10602 unsigned_short_accum_type_node, unsigned_accum_type_node,
10603 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
10604 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
10605 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
10606 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
10607 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
10608 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
10609 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
10610 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
10611 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
10612 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
10613 sat_uda_type_node, sat_uta_type_node): New macro.
10614 (make_fract_type, make_accum_type): Declare.
10615 (make_signed_fract_type, make_unsigned_fract_type,
10616 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
10617 make_signed_accum_type, make_unsigned_accum_type,
10618 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
10619 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
10620 make_or_reuse_sat_signed_fract_type,
10621 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
10622 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
10623 make_or_reuse_sat_unsigned_accum_type): New macro.
10624 (fixed_zerop): Declare.
10625 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
10626 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
10627 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
10628 LONG_LONG_ACCUM_TYPE_SIZE): Define.
10629 * treestruct.def: Add TS_FIXED_CST.
10630 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
10631 (tree.o): Likewise.
10632 (tree-dump.o): Likewise.
10633 (print-tree.o): Likewise.
10634 (tree-pretty-print.o): Likewise.
10635 (fold-const.o): Likewise.
10636 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
10637 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
10638 (is_gimple_min_invariant): Handle FIXED_CST.
10639 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
10640 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
10641 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
10642 (layout_type): Handle FIXED_POINT_TYPE.
10643 (make_fract_type, make_accum_type): New functions.
10644 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
10645 * tree-dump.c (fixed-value.h): New include.
10646 (dump_fixed): New function.
10647 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
10648 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
10649 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
10650 * tree-pretty-print.c (fixed-value.h): New include.
10651 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
10652 FIXED_CONVERT_EXPR.
10653 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
10654 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
10655 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
10656 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
10657 for non-saturating fixed-point types.
10658 (reassociate_bb): Likewise.
10659 * emit-rtl.c (fixed-value.h): New include.
10660 (fconst0, fconst1): New array.
10661 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
10662 * tree-vect-generic.c expand_vector_operation): Support
10663 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
10664 MODE_VECTOR_UACCUM.
10665 (type_for_widest_vector_mode): Add one parameter for the
10666 saturating flag.
10667 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
10668 vector mode.
10669 Pass the satp parameter to type_for_mode for fixed-point types.
10670 (expand_vector_operations_1): Pass the saturating flag to
10671 type_for_widest_vector_mode.
10672 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
10673 and MODE_VECTOR_UACCUM.
10674 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
10675 (vectorizable_condition): Likewise.
10676 * tree.c (fixed-value.h): New include.
10677 (tree_code_size): Support FIXED_CST.
10678 (build_fixed): New function.
10679 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
10680 (fixed_zerop): New function.
10681 (tree_node_structure): Support FIXED_CST.
10682 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
10683 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
10684 (type_hash_eq): Handle FIXED_POINT_TYPE.
10685 (simple_cst_equal): Support FIXED_CST.
10686 (iterative_hash_expr): Handle FIXED_CST.
10687 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
10688 (get_narrower): Likewise.
10689 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
10690 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
10691 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
10692 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
10693 nodes.
10694 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
10695 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
10696 (initializer_zerop): Support FIXED_CST.
10697 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
10698 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
10699 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
10700 (is_base_type): Handle FIXED_POINT_TYPE.
10701 (add_type_attribute): Handle FIXED_POINT_TYPE.
10702 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
10703 * print-tree.c (fixed-value.h): New include.
10704 (print_node_brief): Support FIXED_CST.
10705 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
10706 * c-pretty-print.c (fixed-value.h): New include.
10707 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
10708 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
10709 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
10710 Support fixed-point types for inner items in VECTOR_TYPE.
10711 (pp_c_direct_declarator): Likewise.
10712 (pp_c_declarator): Likewise.
10713 (pp_c_fixed_constant): New function.
10714 (pp_c_constant): Handle FIXED_CST.
10715 (pp_c_primary_expression): Likewise.
10716 (pp_c_expression): Likewise.
10717 * fold-const.c (fixed-value.h): New include.
10718 (negate_expr_p): Return true for FIXED_CST.
10719 (fold_negate_expr): Support FIXED_CST.
10720 (split_tree): Support FIXED_CST.
10721 (const_binop): Support FIXED_CST.
10722 (fold_convert_const_int_from_fixed): New function to convert from
10723 fixed to int.
10724 (fold_convert_const_real_from_fixed): New function to convert from
10725 fixed to real.
10726 (fold_convert_const_fixed_from_fixed): New function to convert from
10727 fixed to another fixed.
10728 (fold_convert_const_fixed_from_int): New function to convert from
10729 int to fixed.
10730 (fold_convert_const_fixed_from_real): New function to convert from
10731 real to fixed.
10732 (fold_convert_const): Support conversions from fixed to int, from
10733 fixed to real, from fixed to fixed, from int to fixed, and from real
10734 to fixed.
10735 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
10736 (operand_equal_p): Support FIXED_CST.
10737 (make_range): For fixed-point modes, we need to pass the
10738 saturating flag as the 2nd parameter.
10739 (tree_swap_operands_p): Handle FIXED_CST.
10740 (fold_plusminus_mult_expr): For fract modes, we cannot generate
10741 constant 1.
10742 (fold_unary): Support FIXED_CONVERT_EXPR.
10743 (fold_binary): Handle FIXED_CST.
10744 Make sure the type is not saturating, before associating operations.
10745 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
10746 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
10747 (fold_negate_const): Support FIXED_CST.
10748 (fold_relational_const): Support FIXED_CST.
10749 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
10750 (gimplify_expr): Handle FIXED_CST.
10751 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
10752 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
10753 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
10754 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
10755 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
10756 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
10757 LONG_LONG_ACCUM_TYPE_SIZE.
10758 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
10759 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
10760 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
10761 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
10762 MODE_ACCUM, and MODE_UACCUM.
10763 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
10764 fixed-point types to disable reduction.
10765 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
10766
7cfb6ab6 107672007-08-08 David Edelsohn <edelsohn@gnu.org>
10768
10769 * config/rs6000/x-rs6000: New file.
10770 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
10771 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
10772 (EXTRA_SPEC_FUNCTIONS): Define.
10773 (HAVE_LOCAL_CPU_DETECT): Define.
10774 (CC1_CPU_SPEC): Define.
10775 * config/rs6000/driver-rs6000.c: New file.
10776 * config/rs6000/aix.h (CC1_SPEC): Define.
10777 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
10778 * config.host: Add x-rs6000 to host_xmake_file if host and target
10779 are rs6000 or powerpc.
10780
e5d92397 107812007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
10782
10783 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
10784
f02776dd 107852007-08-08 Richard Sandiford <richard@codesourcery.com>
10786 Sandra Loosemore <sandra@codesourcery.com>
10787 Chao-ying Fu <fu@mips.com>
10788 Nigel Stephens <nigel@mips.com>
10789 David Ung <davidu@mips.com>
10790
10791 * doc/invoke.texi (-mcode-readable): Document.
10792 * config/mips/mips.opt (mcode-readable): New option.
10793 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
10794 * config/mips/mips.h (mips_code_readable_setting): New enum.
10795 (mips_code_readable): Declare.
10796 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
10797 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
10798 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
10799 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
10800 boiler-plate comments.
10801 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
10802 * config/mips/mips.c (mips_code_readable): New variable.
10803 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
10804 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
10805 context and -mcode-readable setting to restrict the use of
10806 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
10807 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
10808 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
10809 (mips_blocks_for_constant_p): Only return false for
10810 TARGET_MIPS16_PCREL_LOADS.
10811 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
10812 for MIPS16. Handle SYMBOL_32_HIGH.
10813 (mips_const_insns): Allow HIGHs for MIPS16 too.
10814 (mips_unspec_address_offset): New function, split out from...
10815 (mips_unspec_address): ...here.
10816 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
10817 16-bit symbolic constants. Assert approropiate conditions for
10818 using the "la" and "dla" macros.
10819 (mips_handle_option): Handle -mcode-readable=.
10820 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
10821 Set up mips_lo_relocs[SYMBOL_32_HIGH].
10822 (mips_strip_unspec_address): New function, split out from...
10823 (print_operand_reloc): ...here.
10824 (print_operand): Pass constants through mips_strip_unspec_address.
10825 (print_operand_address): Likewise.
10826 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
10827 (mips_select_rtx_section): Remove MIPS16 handling.
10828 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
10829 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
10830 (mips16_lay_out_constants): Do nothing unless
10831 TARGET_MIPS16_PCREL_LOADS.
10832 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
10833 * config/mips/mips.md: Split HIGHs for MIPS16.
10834 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
10835
8af7bf62 108362007-08-08 Richard Sandiford <richard@codesourcery.com>
10837
10838 * config/mips/mips-protos.h (mips_emit_move): Declare.
10839 * config/mips/mips.c (mips_emit_move): New function.
10840 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
10841 (mips_legitimize_const_move): Likewise.
10842 (mips_legitimize_move): Likewise.
10843 (mips_split_64bit_move): Likewise.
10844 (mips_restore_gp): Likewise.
10845 (mips_load_call_address): Likewise.
10846 (mips_emit_fcc_reload): Likewise.
10847 (mips_set_return_address): Likewise.
10848 (mips_block_move_straight): Likewise.
10849 (mips_block_move_loop): Likewise.
10850 (mips_setup_incoming_varargs): Likewise.
10851 (mips_save_reg): Likewise.
10852 (mips_expand_prologue): Likewise.
10853 (mips_restore_reg): Likewise.
10854 (mips_expand_epilogue): Likewise.
10855 (mips_output_mi_thunk): Likewise.
10856 (build_mips16_call_stub): Likewise.
10857 (mips_builtin_branch_and_move): Likewise.
10858 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
10859 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10860 (fixuns_truncdfdi2): Likewise.
10861 (fixuns_truncsfsi2): Likewise.
10862 (fixuns_truncsfdi2): Likewise.
10863 (loadgp_absolute): Likewise.
10864 (builtin_setjmp_setup): Likewise.
10865 (builtin_longjmp): Likewise.
10866 (untyped_call): Likewise.
10867
0b14f86a 108682007-08-08 Richard Sandiford <richard@codesourcery.com>
10869
10870 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
10871 an "rtx *" argument. Return a bool.
10872 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
10873 values and return true if they can be split. Take the same kind of
10874 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
10875 and store the lo_sum there if nonnull. Use the symbol type to
10876 determine whether a $gp or HIGH is needed.
10877 (mips_legitimize_address): Update call to mips_split_symbol and
10878 simplify accordingly.
10879 (mips_legitimize_const_move): Likewise.
10880 * config/mips/mips.md: In the combine define_split,
10881 check mips_split_symbol instead of splittable_symbolic_operand.
10882 Update use of mips_split_symbol in the generator code.
10883 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
10884
87a97e78 108852007-08-08 Richard Sandiford <richard@codesourcery.com>
10886
10887 * config/mips/mips.c (mips_symbolic_address_p): Delete.
10888 (mips_symbol_insns_1): New function, split out from...
10889 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
10890 and stores separately from load addresses.
10891 (mips_classify_address): Replace uses of mips_symbolic_address_p
10892 with uses of mips_symbol_insns.
10893 (mips_address_insns): Update calls to mips_symbol_insns.
10894 (mips_const_insns): Likewise.
10895 (mips_legitimize_address): Likewise.
10896
dcd433aa 108972007-08-08 Richard Sandiford <richard@codesourcery.com>
10898
10899 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
10900 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
10901 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
10902 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
10903 non-call contexts if TARGET_MIPS16.
10904 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
10905 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
10906 code for SYMBOL_ABSOLUTE.
10907 (mips_symbol_insns): Likewise.
10908
5039caa5 109092007-08-08 Richard Sandiford <richard@codesourcery.com>
10910
10911 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
10912 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
10913 (mips_symbolic_constant_p): Likewise. Update the call to
10914 mips_classify_symbol.
10915 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
10916 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
10917 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
10918 (print_operand_reloc): Add a context argument. Update the call to
10919 mips_symbolic_constant_p.
10920 (print_operand): Update the calls to print_operand_reloc.
10921 (print_operand_address): Use print_operand_reloc rather than
10922 print_operand.
10923 (mips_rewrite_small_data_p): Add a context argument. Update the call
10924 to mips_symbolic_constant_p.
10925 (mips_small_data_pattern_1): Make DATA the containing mem.
10926 Update the call to mips_rewrite_small_data_p.
10927 (mips_rewrite_small_data_1): Likewise.
10928 (mips_use_anchors_for_symbol_p): Update the call to
10929 mips_symbolic_constant_p.
10930 * config/mips/predicates.md (const_call_insn_operand): Likewise.
10931 (splittable_symbolic_operand): Likewise.
10932 (move_operand): Likewise.
10933 (absolute_symbolic_operand): Likewise.
10934 (got_disp_operand): Likewise.
10935 (got_page_ofst_operand): Likewise.
10936
a738b930 109372007-08-08 Richard Sandiford <richard@codesourcery.com>
10938
10939 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
10940 (SYMBOL_ABSOLUTE): ...this.
10941 (SYMBOL_SMALL_DATA): Rename to...
10942 (SYMBOL_GP_RELATIVE): ...this.
10943 (SYMBOL_CONSTANT_POOL): Rename to...
10944 (SYMBOL_PC_RELATIVE): ...this.
10945 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
10946 (mips_symbolic_address_p, mips_symbol_insns, override_options)
10947 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
10948 after above changes.
10949 * config/mips/predicates.md (const_call_insn_operand): Likewise.
10950 (general_symbolic_operand): Rename to...
10951 (absolute_symbolic_operand): ...this.
10952 * config/mips/mips.md: Update after above changes.
10953
896dbaed 109542007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
f7a00bdb 10955 Revital Eres <eres@il.ibm.com>
896dbaed 10956
10957 * ddg.c (print_ddg): Add dump information.
10958 * modulo-sched.c (print_node_sched_params): Add parameter and
10959 verbosity.
10960 (calculate_maxii): Remove function.
10961 (undo_generate_reg_moves): Likewise.
10962 (undo_permute_partial_schedule): Likewise.
10963 (kernel_number_of_cycles): Likewise.
10964 (MAXII_FACTOR): New definition to calculate the upper bound of II.
10965 (sms_schedule): Use it. Remove profitability checks.
10966 (sms_schedule_by_order): Fix order of nodes within the cycle.
10967
0c7f7ed4 109682007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10969
62f92e2c 10970 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
0c7f7ed4 10971 -profile option, add pie support.
10972 (ENDFILE_SPEC): New spec.
62f92e2c 10973 * config/gnu.h (LIB_SPEC): Add -profile option.
0c7f7ed4 10974
8786a5e0 109752007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10976
62f92e2c 10977 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
10978 * config/gnu.h (LIB_SPEC): Likewise.
8786a5e0 10979
a95c0776 109802007-08-07 Yaz Saito <saito@google.com>
10981 Ian Lance Taylor <iant@google.com>
10982
10983 * common.opt (finstrument-functions-exclude-function-list): New
10984 option.
10985 (finstrument-functions-exclude-file-list): New option.
10986 * opts.c (char_p): Define and DEF_VEC.
10987 (flag_instrument_functions_exclude_functions): New static
10988 variable.
10989 (flag_instrument_functions_exclude_files): New static variable.
10990 (add_instrument_functions_exclude_list): New static function.
10991 (flag_instrument_functions_exclude_p): New function.
10992 (common_handle_option): Handle new options.
10993 * flags.h (flag_instrument_functions_exclude_p): Declare.
10994 * gimplify.c (gimplify_function_tree): Call
10995 flag_instrument_functions_exclude_p.
10996 * doc/invoke.texi (Option Summary): Mention new options.
10997 (Code Gen Options): Document new options.
10998
db2200eb 109992007-08-07 Ian Lance Taylor <iant@google.com>
11000
11001 PR rtl-optimization/32776
11002 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
11003 (resolve_use): Likewise.
11004 (decompose_multiword_subregs): Remove "changed" local variable.
11005
c6429fa9 110062007-08-07 Carlos O'Donell <carlos@codesourcery.com>
11007
11008 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
11009 * configure: Regenerate.
11010 * config.in: Regenerate.
11011 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
11012 spec string.
11013
58e13bdf 110142007-08-07 Ian Lance Taylor <iant@google.com>
11015
11016 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
11017 note, just delete the insn.
11018
046553d4 110192007-08-07 Andreas Schwab <schwab@suse.de>
11020
11021 PR bootstrap/32973
11022 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
11023 struct definition.
11024
9cf5d19e 110252007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
11026
11027 * lower-subreg.c (resolve_subreg_use): Remove assertion.
11028 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
11029 (decompose_multiword_subregs): Use the functions above to decompose
11030 multiword shifts and zero-extends.
11031
b2eb12de 110322007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
11033
11034 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
11035 "assemble" descriptions which were swapped.
11036
5efd9b45 110372007-08-06 Chao-ying Fu <fu@mips.com>
11038
11039 * fixed-value.h: New file.
11040 * fixed-value.c: New file.
11041 * Makefile.in (OBJS-common): Add fixed-value.o.
11042 (fixed-value.o): New rule.
11043 (GTFILES): Add fixed-value.h.
11044 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
11045 to compare a.low and b.low.
11046 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
11047
0f2457b8 110482007-08-06 H.J. Lu <hongjiu.lu@intel.com>
11049 Daniel Jacobowitz <dan@codesourcery.com>
11050
11051 PR target/31868
11052 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
11053 tmake_file.
11054 (x86_64-*-netbsd*): Likewise.
11055 (x86_64-*-linux*): Likewise.
11056 (x86_64-*-kfreebsd*-gnu): Likewise.
11057 (x86_64-*-knetbsd*-gnu): Likewise.
11058 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
11059
11060 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
11061
11062 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
11063 Add -fno-asynchronous-unwind-tables.
11064
11065 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
11066 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
11067 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
11068 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
11069 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
11070
0ddb2244 110712007-08-06 Steve Ellcey <sje@cup.hp.com>
11072
11073 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
11074 (TARGET_C_MODE_FOR_SUFFIX): New.
11075
ffd77765 110762007-08-06 Steve Ellcey <sje@cup.hp.com>
11077
11078 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
11079
64ba0e80 110802007-08-06 Steve Ellcey <sje@cup.hp.com>
11081
11082 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
11083
d07cd931 110842007-08-06 H.J. Lu <hongjiu.lu@intel.com>
11085
11086 * config/i386/i386.md: Check TARGET_ macros and optimize_size
11087 before checking function returns in conditional expressions.
11088
d103f41f 110892007-08-06 Alfred Minarik <a.minarik@aon.at>
11090
11091 PR pch/13676
11092 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
11093
d2c9d80d 110942008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
11095
11096 PR middle-end/32988
11097 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
11098 for INTEGRAL_TYPE_P.
11099
314966f4 111002008-08-05 Paolo Bonzini <bonzini@gnu.org>
11101
d07cd931 11102 * configure.ac: Remove --enable-checking=df from default settings.
11103 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
11104 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
11105 if the parameter is true.
11106 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
11107 DF_VERIFY_SCHEDULED flag is true.
11108 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
11109 (df_finish_pass): Adjust prototype.
11110 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
11111 true.
11112
11113 * see.c (pass_see): Add TODO_df_verify.
11114 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
11115 * global.c (rest_of_handle_global_alloc): Schedule verification
11116 after the pass.
11117 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
11118 before the pass.
11119 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
11120 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
11121 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
11122
11123 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
11124 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
11125 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
314966f4 11126
3a943084 111272007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
d07cd931 11128 Revital Eres <eres@il.ibm.com>
3a943084 11129
11130 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
11131 flag.
11132 * ddg.c (create_ddg_dependence): Rename to...
11133 (create_ddg_dep_from_intra_loop_link): This. Do not check
11134 for interloop edges. Do not create anti dependence edge when
11135 a true dependence edge exists in the opposite direction and
11136 -fmodulo-sched-allow-regmoves is set.
11137 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
11138 (add_cross_iteration_register_deps): Create anti dependence edge
11139 when -fno-modulo-sched-allow-regmoves is set.
11140 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
11141
befb0bac 111422007-08-04 Richard Sandiford <richard@codesourcery.com>
11143
11144 * config/arm/arm.md (movsi): Add braces.
11145
f6b25e1c 111462007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
11147
11148 PR middle-end/32780
724fa541 11149 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
11150 operands for the folding of "A - (A & B)" into "~B & A"; cast them
11151 to type.
f6b25e1c 11152
f24ec26f 111532007-08-03 Zdenek Dvorak <ook@ucw.cz>
11154
724fa541 11155 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
11156 state accessor functions.
f24ec26f 11157 * cfgloopmanip.c (remove_path, create_preheaders,
11158 force_single_succ_latches, fix_loop_structure): Ditto.
11159 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
11160 tree_duplicate_loop_to_header_edge): Ditto.
11161 * cfgloopanal.c (mark_irreducible_loops): Ditto.
11162 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
11163 Ditto.
11164 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
11165 cleanup_tree_cfg): Ditto.
11166 * tree-cfg.c (tree_merge_blocks): Ditto.
11167 * cfgloop.c (rescan_loop_exit, record_loop_exits,
11168 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
11169 loop_preheader_edge, single_exit): Ditto.
11170 (flow_loops_find): Do not clear loops->state.
11171 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
11172 loops_state_clear): New functions.
11173
e45bbad2 111742007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
11175
11176 PR middle-end/32399
11177 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11178 when adding to the base and convert ELT to sizetype instead of type.
11179
9dd2d192 111802007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
11181
11182 PR middle-end/32304
11183 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
11184 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
11185
843a4f91 111862007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
11187
11188 PR middle-end/32935
11189 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
11190 correct type the negate expression.
11191
99a25da7 111922007-08-03 Jan Hubicka <jh@suse.cz>
11193
11194 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
11195 stack boundary.
11196
784abdb2 111972007-08-03 David Edelsohn <edelsohn@gnu.org>
11198
11199 * config/rs6000/rs6000.c (struct processor_cost): Change
11200 l1_cache_lines to l1_cache_size. Add l2_cache_size.
11201 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
11202 information.
11203 (rios1_costs, rios2_cost): Correct cache line size.
11204 (rs6000_override_options): Set l2-cache-size parameter.
11205
92f9b59a 112062007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
11207 Diego Novillo <dnovillo@google.com>
11208
11209 PR 31521
11210 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
11211 if the range includes 0.
11212
c3f4e157 112132007-08-03 Ben Elliston <bje@au.ibm.com>
11214
11215 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
11216 mode to unspec expressions to silence a warning from the generator
11217 programs.
11218
fa998541 112192007-08-02 Steve Ellcey <sje@cup.hp.com>
11220
11221 * config/ia64/constraints.md ("U"): Make constraint vector only.
11222
44f601d1 112232007-08-02 Nathan Froyd <froydnj@codesourcery.com>
11224
11225 PR middle-end/25446
11226 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
11227 always_inline attribute on the function decl.
11228
0739a4b8 112292007-08-02 Nathan Froyd <froydnj@codesourcery.com>
11230
11231 PR middle-end/25445
11232 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
11233 if we are compiling with -fPIC.
11234
b43927bc 112352007-08-02 Sandra Loosemore <sandra@codesourcery.com>
11236 Nigel Stephens <nigel@mips.com>
11237
11238 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
11239 Define for MIPS32 and MIPS64.
11240
b899a96b 112412007-08-02 Nick Clifton <nickc@redhat.com>
11242
11243 * config/host-hpux.c: Change copyright header to refer to version
11244 3 of the GNU General Public License and to point readers at the
11245 COPYING3 file and the FSF's license web page.
11246 * config/alpha/predicates.md, config/alpha/vms-ld.c,
11247 config/alpha/linux.h, config/alpha/alpha.opt,
11248 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
11249 config/alpha/vms-unwind.h, config/alpha/ev4.md,
11250 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
11251 config/alpha/alpha.h, config/alpha/sync.md,
11252 config/alpha/openbsd.h, config/alpha/alpha.md,
11253 config/alpha/alpha-modes.def, config/alpha/ev5.md,
11254 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
11255 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
11256 config/alpha/constraints.md, config/alpha/osf.h,
11257 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
11258 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
11259 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
11260 config/frv/frv-asm.h, config/frv/frv-protos.h,
11261 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
11262 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
11263 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
11264 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
11265 config/s390/s390.opt, config/s390/s390-modes.def,
11266 config/s390/fixdfdi.h, config/s390/constraints.md,
11267 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
11268 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
11269 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
11270 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
11271 config/m32c/prologue.md, config/m32c/m32c.abi,
11272 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
11273 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
11274 config/m32c/t-m32c, config/m32c/m32c-modes.def,
11275 config/m32c/jump.md, config/m32c/shift.md,
11276 config/m32c/m32c-protos.h, config/libgloss.h,
11277 config/spu/spu-protos.h, config/spu/predicates.md,
11278 config/spu/spu-builtins.h, config/spu/spu.c,
11279 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
11280 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
11281 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
11282 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
11283 config/sparc/hypersparc.md, config/sparc/predicates.md,
11284 config/sparc/linux.h, config/sparc/sp64-elf.h,
11285 config/sparc/supersparc.md, config/sparc/cypress.md,
11286 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
11287 config/sparc/niagara.md, config/sparc/sparc.md,
11288 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
11289 config/sparc/sparc.opt, config/sparc/sync.md,
11290 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
11291 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
11292 config/sparc/sparc.c, config/sparc/little-endian.opt,
11293 config/sparc/sysv4-only.h, config/sparc/sparc.h,
11294 config/sparc/linux64.h, config/sparc/freebsd.h,
11295 config/sparc/sol2.h, config/sparc/rtemself.h,
11296 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
11297 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
11298 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
11299 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
11300 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
11301 config/m32r/linux.h, config/m32r/constraints.md,
11302 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
11303 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
11304 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
11305 config/i386/i386.md, config/i386/netware-crt0.c,
11306 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
11307 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
11308 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
11309 config/i386/sol2.h, config/i386/constraints.md,
11310 config/i386/netware-libgcc.c, config/i386/sysv5.h,
11311 config/i386/predicates.md, config/i386/geode.md,
11312 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
11313 config/i386/freebsd64.h, config/i386/vxworksae.h,
11314 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
11315 config/i386/rtemself.h, config/i386/netbsd-elf.h,
11316 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
11317 config/i386/netware.h, config/i386/i386-modes.def,
11318 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
11319 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
11320 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
11321 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
11322 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
11323 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
11324 config/i386/xm-mingw32.h, config/i386/linux64.h,
11325 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
11326 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
11327 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
11328 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
11329 config/i386/cygwin2.c, config/i386/i386-protos.h,
11330 config/i386/sync.md, config/i386/openbsd.h,
11331 config/i386/host-mingw32.c, config/i386/i386-aout.h,
11332 config/i386/nto.h, config/i386/biarch64.h,
11333 config/i386/i386-coff.h, config/i386/freebsd.h,
11334 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
11335 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
11336 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
11337 config/darwin-protos.h, config/linux.opt, config/sol2.c,
11338 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
11339 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
11340 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
11341 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
11342 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
11343 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
11344 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
11345 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
11346 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
11347 config/sh/superh64.h, config/sh/rtemself.h,
11348 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
11349 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
11350 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
11351 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
11352 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
11353 config/avr/predicates.md, config/avr/constraints.md,
11354 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
11355 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
11356 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
11357 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
11358 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
11359 config/c4x/c4x-modes.def, config/c4x/rtems.h,
11360 config/c4x/predicates.md, config/c4x/c4x.h,
11361 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
11362 config/xtensa/predicates.md, config/xtensa/xtensa.c,
11363 config/xtensa/linux.h, config/xtensa/xtensa.h,
11364 config/xtensa/elf.h, config/xtensa/xtensa.md,
11365 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
11366 config/xtensa/xtensa-protos.h, config/dbx.h,
11367 config/stormy16/predicates.md, config/stormy16/stormy16.md,
11368 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
11369 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
11370 config/host-solaris.c, config/fr30/fr30.h,
11371 config/fr30/predicates.md, config/fr30/fr30-protos.h,
11372 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
11373 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
11374 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
11375 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
11376 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
11377 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
11378 config/host-linux.c, config/interix3.h, config/cris/cris.c,
11379 config/cris/predicates.md, config/cris/linux.h,
11380 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
11381 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
11382 config/cris/aout.opt, config/cris/cris-protos.h,
11383 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
11384 config/iq2000/iq2000.h, config/iq2000/predicates.md,
11385 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
11386 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
11387 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
11388 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
11389 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
11390 config/chorus.h, config/mn10300/mn10300.c,
11391 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
11392 config/mn10300/mn10300.h, config/mn10300/linux.h,
11393 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
11394 config/mn10300/mn10300.md, config/ia64/predicates.md,
11395 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
11396 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
11397 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
11398 config/ia64/freebsd.h, config/ia64/ia64.md,
11399 config/ia64/ia64-modes.def, config/ia64/constraints.md,
11400 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
11401 config/gofast.h, config/rtems.h, config/sol2-10.h,
11402 config/m68k/predicates.md, config/m68k/m68k.md,
11403 config/m68k/linux.h, config/m68k/m68k-modes.def,
11404 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
11405 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
11406 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
11407 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
11408 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
11409 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
11410 config/m68k/constraints.md, config/m68k/rtemself.h,
11411 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
11412 config/m68k/uclinux.h, config/rs6000/power4.md,
11413 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
11414 config/rs6000/linux.h, config/rs6000/eabi.h,
11415 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
11416 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
11417 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
11418 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
11419 config/rs6000/windiss.h, config/rs6000/603.md,
11420 config/rs6000/aix41.h, config/rs6000/cell.md,
11421 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
11422 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
11423 config/rs6000/darwin.md, config/rs6000/darwin64.h,
11424 config/rs6000/default64.h, config/rs6000/7xx.md,
11425 config/rs6000/darwin.opt, config/rs6000/spe.md,
11426 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
11427 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
11428 config/rs6000/7450.md, config/rs6000/linux64.h,
11429 config/rs6000/constraints.md, config/rs6000/440.md,
11430 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
11431 config/rs6000/rs6000.c, config/rs6000/aix52.h,
11432 config/rs6000/rs6000.h, config/rs6000/power6.md,
11433 config/rs6000/predicates.md, config/rs6000/altivec.md,
11434 config/rs6000/aix64.opt, config/rs6000/rios1.md,
11435 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
11436 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
11437 config/rs6000/darwin7.h, config/rs6000/dfp.md,
11438 config/rs6000/linux64.opt, config/rs6000/sync.md,
11439 config/rs6000/vxworksae.h, config/rs6000/power5.md,
11440 config/rs6000/lynx.h, config/rs6000/biarch64.h,
11441 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
11442 config/rs6000/eabispe.h, config/rs6000/e500.h,
11443 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
11444 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
11445 config/rs6000/aix.h, config/rs6000/vxworks.h,
11446 config/rs6000/40x.md, config/rs6000/aix51.h,
11447 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
11448 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
11449 config/arc/arc.h, config/mcore/mcore-elf.h,
11450 config/mcore/mcore-protos.h, config/mcore/predicates.md,
11451 config/mcore/mcore.md, config/mcore/mcore.c,
11452 config/mcore/mcore.opt, config/mcore/mcore.h,
11453 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
11454 config/score/predicates.md, config/score/score-version.h,
11455 config/score/score-protos.h, config/score/misc.md,
11456 config/score/elf.h, config/score/score.c, config/score/mac.md,
11457 config/score/score7.md, config/score/score.h,
11458 config/score/score-conv.h, config/score/score-mdaux.c,
11459 config/score/score.md, config/score/score.opt,
11460 config/score/score-modes.def, config/score/score-mdaux.h,
11461 config/score/mul-div.S, config/arm/uclinux-elf.h,
11462 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
11463 config/arm/symbian.h, config/arm/linux-elf.h,
11464 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
11465 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
11466 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
11467 config/arm/strongarm-pe.h, config/arm/arm.h,
11468 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
11469 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
11470 config/arm/arm-modes.def, config/arm/linux-eabi.h,
11471 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
11472 config/arm/arm-cores.def, config/arm/arm-protos.h,
11473 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
11474 config/arm/wince-pe.h, config/arm/neon.md,
11475 config/arm/constraints.md, config/arm/neon.ml,
11476 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
11477 config/arm/arm.opt, config/arm/arm926ejs.md,
11478 config/arm/predicates.md, config/arm/iwmmxt.md,
11479 config/arm/arm_neon.h, config/arm/unknown-elf.h,
11480 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
11481 config/arm/neon-testgen.ml, config/arm/arm.md,
11482 config/arm/xscale-coff.h, config/arm/pe.c,
11483 config/arm/arm-generic.md, config/arm/pe.h,
11484 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
11485 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
11486 config/arm/strongarm-elf.h, config/arm/cirrus.md,
11487 config/arm/netbsd-elf.h, config/arm/vxworks.h,
11488 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
11489 config/pa/predicates.md, config/pa/pa64-hpux.h,
11490 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
11491 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
11492 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
11493 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
11494 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
11495 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
11496 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
11497 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
11498 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
11499 config/pa/pa64-regs.h, config/pa/pa-modes.def,
11500 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
11501 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
11502 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
11503 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
11504 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
11505 config/mips/linux64.h, config/mips/elforion.h,
11506 config/mips/constraints.md, config/mips/generic.md,
11507 config/mips/predicates.md, config/mips/4300.md,
11508 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
11509 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
11510 config/mips/5k.md, config/mips/vr4120-div.S,
11511 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
11512 config/mips/mips-protos.h, config/mips/6000.md,
11513 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
11514 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
11515 config/mips/mips-modes.def, config/mips/vr.h,
11516 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
11517 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
11518 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
11519 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
11520 config/vax/openbsd1.h, config/vax/netbsd.h,
11521 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
11522 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
11523 config/h8300/rtems.h, config/h8300/predicates.md,
11524 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
11525 config/h8300/h8300.md, config/h8300/h8300.opt,
11526 config/h8300/coff.h, config/h8300/h8300-protos.h,
11527 config/v850/v850.md, config/v850/predicates.md,
11528 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
11529 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
11530 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
11531 config/mmix/mmix.h, config/mmix/predicates.md,
11532 config/mmix/mmix-protos.h, config/mmix/mmix.md,
11533 config/mmix/mmix.c, config/mmix/mmix.opt,
11534 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
11535 config/bfin/rtems.h, config/bfin/bfin-modes.def,
11536 config/bfin/predicates.md, config/bfin/bfin-protos.h,
11537 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
11538 Likewise.
11539
265be050 115402007-08-02 Richard Sandiford <richard@codesourcery.com>
11541
11542 * emit-rtl.c (reset_used_decls): Rename to...
11543 (set_used_decls): ...this. Set the used flag rather than clearing it.
11544 (unshare_all_rtl_again): Update accordingly. Set flags on argument
11545 DECL_RTLs rather than resetting them.
11546
ab22ec57 115472007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
11548
11549 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
11550
7c88646f 115512007-08-01 Sandra Loosemore <sandra@codesourcery.com>
11552
48dc2227 11553 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
7c88646f 11554 argument to find_reloads_address.
11555
5f6261a7 115562007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
11557
11558 PR tree-optimization/32919
11559 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
11560 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
11561 (coalesce_ssa_name): Call it.
11562
fd79383e 115632007-08-01 Sandra Loosemore <sandra@codesourcery.com>
11564 David Ung <davidu@mips.com>
11565
fd79383e 11566 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
11567 (__mips16_unorddf2, __mips16_floatunsidf): New.
11568 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
11569 above functions.
11570 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
11571
ac6e3339 115722007-08-01 Zdenek Dvorak <ook@ucw.cz>
11573
11574 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
11575 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
11576 * tree.h (OMP_SECTIONS_CONTROL): New macro.
11577 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
11578 * omp-low.c (get_ws_args_for, determine_parallel_type,
11579 expand_omp_for_generic, expand_omp_for_static_nochunk,
11580 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
11581 Work with more precise CFG.
11582 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
11583 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
11584 OMP_CONTINUE.
11585 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
11586 * gimple-low.c (lower_stmt): Ditto.
11587 * tree-inline.c (estimate_num_insns_1): Ditto.
11588 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
11589 (OMP_SECTIONS_SWITCH): New.
11590 * tree-cfgcleanup.c (cleanup_omp_return): New.
11591 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
11592 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
11593 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
11594 (tree_redirect_edge_and_branch): Handle omp constructs.
11595
11596 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
11597 with three arguments.
11598
fd859561 115992007-08-01 Zdenek Dvorak <ook@ucw.cz>
11600
11601 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
11602 in loop closed ssa.
11603
eb2a640e 116042007-08-01 Zdenek Dvorak <ook@ucw.cz>
11605
11606 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
11607 the loop structures may need fixing.
11608 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
11609 New functions.
11610 (cleanup_tree_cfg_loop): Removed.
11611 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
11612 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
11613 instead of running cleanup_tree_cfg_loop.
11614 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
11615 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
11616 (tree_predictive_commoning): Declaration changed.
11617 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
11618
0c916a7b 116192007-08-01 Zdenek Dvorak <ook@ucw.cz>
11620
11621 * doc/invoke.texi (l1-cache-size): Update documentation.
11622 (l2-cache-size): Document.
11623 * params.h (L2_CACHE_SIZE): New macro.
11624 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
11625 that L1_CACHE_SIZE is in kB now.
11626 (L2_CACHE_SIZE_BYTES): New macro.
11627 (tree_ssa_prefetch_arrays): Show size in kB.
11628 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
11629 and l2_cache_size fields.
11630 * config/i386/driver-i386.c (describe_cache): Detect cache size
11631 in kB.
11632 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
11633 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
11634 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
11635 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
11636 (override_options): Set l1-cache-size and l2-cache-size to default
11637 values if not specified otherwise.
11638 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
11639 (PARAM_L2_CACHE_SIZE): New.
11640
5aeba334 116412007-08-01 Nigel Stephens <nigel@mips.com>
11642 David Ung <davidu@mips.com>
11643 Thiemo Seufer <ths@mips.com>
11644 Chris Dearman <chris@mips.com>
11645 Richard Sandiford <richard@codesourcery.com>
11646
11647 * config.gcc (mips*-sde-elf*): New stanza.
11648 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
11649 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
11650 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
11651 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
11652 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
11653 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
11654 to tmake_file.
11655 * config/mips/sde.h: New file.
11656 * config/mips/t-libgcc-mips16: Likewise.
11657 * config/mips/t-sde: Likewise.
11658 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
11659 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
11660 _MIPS_FPSET and _MIPS_SZINT.
11661 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
11662 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
11663 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
11664 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
11665 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11666 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11667 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
11668 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
11669 _MIPS_SZPTR and _MIPS_FPSET.
11670 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
11671 architecture is specified.
11672 (MIPS_32BIT_OPTION_SPEC): New macro.
11673
558cc3be 116742007-07-31 Dan Hipschman <dsh@google.com>
11675
11676 * gcc.c (end_going_arg): New function.
11677 (do_spec_2): Use it.
11678 (do_spec_1): Use it.
11679
d044e004 116802007-07-31 H.J. Lu <hongjiu.lu@intel.com>
11681
11682 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
11683 only if ENABLE_CHECKING is defined.
11684
e51dfa02 116852007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
11686
11687 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
11688 df_ru_add_problem, df_ru_get_bb_info): Removed.
11689 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
11690 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
11691 df_ru_free_bb_info, df_ru_alloc,
11692 df_ru_bb_local_compute_process_def,
11693 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
11694 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
11695 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
11696 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
11697 df_ru_add_problem): Removed.
11698
249f9322 116992007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11700
11701 PR target/32847
e51dfa02 11702 * pa.md (casesi32): Use match_scratch. Revise insn condition.
249f9322 11703 (casesi32p, casesi64p): Likewise.
11704 (casesi): Adjust for above.
11705
1915b15f 117062007-07-31 Richard Sandiford <richard@codesourcery.com>
11707
11708 * mode-switching.c (create_pre_exit): Don't search past calls.
11709
506e9f60 117102007-07-31 Sandra Loosemore <sandra@codesourcery.com>
11711
48dc2227 11712 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
506e9f60 11713
47912321 117142007-07-31 Revital Eres <eres@il.ibm.com>
11715
11716 * ddg.c (add_deps_for_def): Rename to...
11717 (add_cross_iteration_register_deps): This. Change implementation
11718 to use only reaching def and def-use chains to construct the
11719 inter loop dependencies.
11720 (add_deps_for_use): Remove function.
11721 (build_inter_loop_deps): Call add_cross_iteration_register_deps
11722 function to build the inter loop dependencies.
11723 * modulo-sched.c (sms_schedule): Build only
11724 reaching def and def-use chains for the propose of the ddg
11725 construction.
11726
eecb5747 117272007-07-31 Julian Brown <julian@codesourcery.com>
11728
11729 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
11730 New define_insns. Use correct RTL.
11731 (vec_set<mode>): Write as expander.
11732
4d6145f4 117332007-07-31 Razya Ladelsky <razya@il.ibm.com>
11734
eecb5747 11735 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
4d6145f4 11736 to an unallocated space.
11737
a091367a 117382007-07-30 Jan Sjodin <jan.sjodin@amd.com>
11739
11740 * tree-data-ref.c
11741 (split_constant_offset): Enable split_constant_offset to extract
11742 constants from other statements.
11743 * tree-vect-transform.c
11744 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
11745 to a temp var. Force base_offset to be simple.
11746
21de87e9 117472007-07-30 Seongbae Park <seongbae.park@gmail.com>
11748
11749 * df-scan.c (df_scan_verify): Remove artificial limit on
11750 the number of blocks for verification.
11751 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
11752 df_simulate_defs): Avoid unnecessary insn checking for defs.
11753
341f16c2 117542007-07-29 Mark Mitchell <mark@codesourcery.com>
11755
341f16c2 11756 * config/m68k/lb1sf68.asm (FUNC): New macro.
11757 (__mulsi3): Use it.
11758 (__udivsi3): Likewise.
11759 (__divsi3): Likewise.
11760 (__umodsi3): Likewise.
11761 (__modsi3): Likewise.
11762 (__subdf3): Likewise.
11763 (__adddf3): Likewise.
11764 (__muldf3): Likewise.
11765 (__divdf3): Likewise.
11766 (__negdf2): Likewise.
11767 (__cmpdf2): Likewise.
11768 (__subsf3): Likewise.
11769 (__addsf3): Likewise.
11770 (__mulsf3): Likewise.
11771 (__divsf3): Likewise.
11772 (__negsf2): Likewise.
11773 (__cmpsf2): Likewise.
11774 (__eqdf2): Likewise.
11775 (__nedf2): Likewise.
11776 (__gtdf2): Likewise.
11777 (__gedf2): Likewise.
11778 (__ltdf2): Likewise.
11779 (__ledf2): Likewise.
11780 (__eqsf2): Likewise.
11781 (__nesf2): Likewise.
11782 (__gtsf2): Likewise.
11783 (__gesf2): Likewise.
11784 (__ltsf2): Likewise.
11785 (__lesf2): Likewise.
11786
fcde64dc 117872007-07-30 Ollie Wild <aaw@google.com>
11788
11789 * c-ppoutput.c (print_lines_directives_only): New function.
11790 (scan_translation_unit_directives_only): New function.
11791 (preprocess_file): Add call to scan_translation_unit_directives_only.
11792 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
11793 (sanitize_cpp_opts): Add default flag_dump_macros setting for
11794 -fdirectives-only. Add errors for -fdirectives-only conflict with
11795 -Wunused-macros and -traditional.
11796 (finish_options): Add builtin macro initialization for
11797 -fdirectives-only + -fpreprocessed.
11798 * c.opt (fdirectives-only): New.
11799 * doc/cppopts.texi (fdirectives-only): New.
11800
81a410b1 118012007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11802
11803 * alias.c (record_set, memory_modified_1): Constify.
11804 * bt-load.c (note_btr_set): Likewise.
11805 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
11806 * combine.c (set_nonzero_bits_and_sign_copies,
11807 expand_field_assignment, record_dead_and_set_regs_1,
11808 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
11809 likely_spilled_retval_1): Likewise.
11810 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
11811 frv_io_handle_set): Likewise.
11812 * config/mips/mips.c (mips_sim_record_set,
11813 vr4130_true_reg_dependence_p_1): Likewise.
11814 * config/mt/mt.c (insn_dependent_p_1): Likewise.
11815 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
11816 * config/sh/sh.c (flow_dependent_p_1): Likewise.
11817 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
11818 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
11819 * ddg.c (mark_mem_store): Likewise.
11820 * df-problems.c (df_urec_mark_reg_change): Likewise.
11821 * function.c (update_epilogue_consts): Likewise.
11822 * gcse.c (record_set_info, record_last_set_info,
11823 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
11824 reg_clear_last_set): Likewise.
11825 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
11826 Likewise.
11827 * jump.c (reversed_comparison_code_parts): Likewise.
11828 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
11829 reg_is_set): Likewise.
11830 * loop-iv.c (mark_altered): Likewise.
11831 * mode-switching.c (reg_becomes_live): Likewise.
11832 * optabs.c (no_conflict_move_test): Likewise.
11833 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
11834 Likewise.
11835 * postreload.c (reload_combine_note_store, move2add_note_store):
11836 Likewise.
11837 * regmove.c (flags_set_1): Likewise.
11838 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
11839 Likewise.
11840 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
11841 Likewise.
11842 * resource.c (update_live_status): Likewise.
11843 * rtl.h (set_of, note_stores): Likewise.
11844 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
11845 note_stores, parms_set): Likewise.
11846 * sched-rgn.c (sets_likely_spilled_1): Likewise.
11847 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
11848 Likewise.
11849 * var-tracking.c (count_stores, add_stores): Likewise.
11850
52d07779 118512007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11852
11853 * alias.c (mems_in_disjoint_alias_sets_p,
11854 fixed_scalar_and_varying_struct_p, aliases_everything_p,
11855 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
11856 write_dependence_p, mems_in_disjoint_alias_sets_p,
11857 read_dependence, true_dependence, canon_true_dependence,
11858 anti_dependence, output_dependence): Constify.
11859 * combine.c (extended_count): Likewise.
11860 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
11861 * cselib.c (get_value_hash, references_value_p,
11862 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
11863 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
11864 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
11865 * function.c (contains, prologue_epilogue_contains,
11866 sibcall_epilogue_contains): Likewise.
11867 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
11868 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
11869 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
11870 reg_or_subregno): Likewise.
11871 * recog.c (asm_noperands): Likewise.
11872 * reload1.c (function_invariant_p): Likewise.
11873 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
11874 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
11875 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
11876 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
11877 true_regnum, reg_or_subregno, condjump_in_parallel_p,
11878 extended_count, prologue_epilogue_contains,
11879 sibcall_epilogue_contains, function_invariant_p, true_dependence,
11880 canon_true_dependence, read_dependence, anti_dependence,
11881 output_dependence): Likewise.
11882 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
11883
4c0b79b4 118842007-07-30 Julian Brown <julian@codesourcery.com>
11885
11886 * config/arm/neon.md (V_ext): New mode attribute.
11887 (neon_vget_lane<mode>): Replace with define_expand.
11888 (neon_vget_lane<mode>_sext_internal)
11889 (neon_vget_lane<mode>_zext_internal): New define_insns for double
11890 and quad precision vectors.
11891 (neon_vget_lanedi): Add bounds check. Remove dead comment.
11892 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
11893 have typeless 32-bit result.
11894
2ccb5abd 118952007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
11896
11897 PR tree-opt/32527
11898 * tree-affine.h (aff_tree): The type of rest is sizetype for types
11899 of pointers.
11900 * tree-affine.c (aff_combination_scale): If type is a pointer type,
11901 use sizetype for rest.
11902 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
11903 (aff_combination_convert): Don't convert rest for pointer types.
11904
6cc9bd27 119052007-07-28 Daniel Berlin <dberlin@dberlin.org>
11906
11907 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
11908
11909 * tree-ssa-alias.c: Add alloc-pool.h.
11910 (init_alias_info): Free alias_bitmap_obstack.
11911 (delete_alias_info): Call delete_mem_ref_stats.
11912 (get_mem_sym_stats_for): Use alloc_pool.
11913 (init_mem_ref_stats): Do not delete mem_ref_stats here.
11914 (delete_mem_sym_stats): Removed.
11915
bb11a0e8 119162007-07-29 Sebastian Pop <sebpop@gmail.com>
11917
11918 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
11919 functions cannot be represented as classical distance vectors.
11920
b7bf20db 119212007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11922
11923 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
11924 * builtins.c (validate_arg, builtin_mathfn_code,
11925 validate_arglist): Likewise.
11926 * calls.c (call_expr_flags): Likewise.
11927 * combine.c (reg_nonzero_bits_for_combine,
11928 reg_num_sign_bit_copies_for_combine, get_last_value,
11929 reg_truncated_to_mode): Likewise.
11930 * emit-rtl.c (subreg_lowpart_p): Likewise.
11931 * expr.c (highest_pow2_factor_for_target,
11932 categorize_ctor_elements_1, categorize_ctor_elements,
11933 count_type_elements, contains_packed_reference,
11934 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
11935 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
11936 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
11937 native_encode_int, native_encode_real, native_encode_complex,
11938 native_encode_vector, native_encode_expr, native_interpret_int,
11939 native_interpret_real, native_interpret_complex,
11940 native_interpret_vector, native_interpret_expr): Likewise.
11941 * function.c (use_register_for_decl): Likewise.
11942 * gimplify.c (get_name): Likewise.
11943 * langhooks-def.h (lhd_return_null_const_tree): New.
11944 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
11945 * langhooks.c (lhd_return_null_const_tree): New.
11946 * langhooks.h (lang_get_callee_fndecl): Constify.
11947 * output.h (constructor_static_from_elts_p): Likewise.
11948 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
11949 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
11950 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
11951 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
11952 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
11953 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
11954 * rtlhooks-def.h (reg_nonzero_bits_general,
11955 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
11956 Likewise.
11957 * rtlhooks.c (reg_num_sign_bit_copies_general,
11958 reg_nonzero_bits_general, reg_truncated_to_mode_general):
11959 Likewise.
11960 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
11961 * stor-layout.c (mode_for_size_tree): Likewise.
11962 * tree-ssa-loop-im.c (memref_eq): Likewise.
11963 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
11964 * tree.c (contains_placeholder_p, type_list_equal,
11965 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
11966 Likewise.
11967 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
11968 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
11969 contains_placeholder_p, contains_packed_reference,
11970 get_callee_fndecl, operand_equal_for_phi_arg_p,
11971 warn_if_unused_value, is_body_block, native_encode_expr,
11972 native_interpret_expr, fold_convertible_p, operand_equal_p,
11973 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
11974 validate_arglist, simple_cst_equal, type_list_equal,
11975 use_register_for_decl, call_expr_flags, get_name,
11976 highest_pow2_factor): Likewise.
11977 (const_call_expr_arg_iterator_d,
11978 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
11979 first_const_call_expr_arg, more_const_call_expr_args_p,
11980 FOR_EACH_CONST_CALL_EXPR_ARG): New.
11981 * varasm.c (constructor_static_from_elts_p): Constify.
11982
4a7e4fcc 119832007-07-28 Kazu Hirata <kazu@codesourcery.com>
11984
11985 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
11986 config/arm/neon-schedgen.ml, config/arm/neon.ml,
11987 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
11988 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
11989 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
11990 tree-vect-transform.c, tree.def: Fix comment typos. Follow
11991 spelling conventions.
11992 * doc/invoke.texi: Follow spelling conventions.
11993
6b835e3c 119942007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
d07cd931 11995 Revital Eres <eres@il.ibm.com>
6b835e3c 11996
11997 * modulo-sched.c (sms_schedule): Avoid loops which includes
11998 auto-increment instructions.
11999
de165fbd 120002007-07-28 Richard Guenther <rguenther@suse.de>
12001
12002 PR middle-end/32920
12003 * fold-const.c (fold_cond_expr_with_comparison): Convert
12004 operand zero of MIN/MAX_EXPR to correct type.
12005
5d1b319b 120062007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12007
12008 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
12009 flags_from_decl_or_type): Constify.
12010 * gcc.c (do_spec_1): Likewise.
12011 * print-tree.c (dump_addr, print_node_brief): Likewise.
12012 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
12013 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
12014 tree_purge_all_dead_eh_edges): Likewise.
12015 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
12016 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
12017 Likewise.
12018 * tree.c (expr_location, expr_has_location, expr_locus,
12019 expr_filename, expr_lineno, get_inner_array_type,
12020 fields_compatible_p): Likewise.
12021 * tree.h (get_inner_array_type, fields_compatible_p,
12022 expr_location, expr_has_location, expr_locus, expr_filename,
12023 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
12024 setjmp_call_p, alloca_call_p): Likewise.
12025
01feb1a2 120262007-07-28 Daniel Berlin <dberlin@dberlin.org>
12027
12028 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
12029 TV_FLOW_INSENSITIVE.
12030
12031 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
12032 TV_CALL_CLOBBER.
12033 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
12034 (compute_flow_insensitive_aliasing): Ditto for
12035 TV_FLOW_INSENSITIVE.
12036
5b634bfa 120372007-07-27 Jan Hubicka <jh@suse.cz>
12038
724fa541 12039 * config/i386/i386.c (register_move_cost): Remove accidentally
12040 comitted #if 0 block.
2d23b7b8 12041
5b634bfa 12042 * attribs.c: Include hashtab.h
12043 (attribute_hash): New.
12044 (substring): New structure.
12045 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
12046 New function.
12047 (init_attributes): Initialize attribute hash.
12048 (decl_attributes): Use attribute hash.
12049 * Makefile.in (attribs.c): Depend on hashtab.h.
12050
89bee033 120512007-07-27 Steve Ellcey <sje@cup.hp.com>
12052
12053 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
12054
2c66090f 120552007-07-27 Richard Sandiford <richard@codesourcery.com>
12056
12057 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
12058 __mips_dspr2 and __mips_dsp_rev macros.
12059 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
12060
34da8800 120612007-07-27 Douglas Gregor <doug.gregor@gmail.com>
12062
8d2d2fcd 12063 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
34da8800 12064
4f409e20 120652007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
12066
12067 PR middle-end/32749
12068
12069 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
12070 and the updating of the live and do_not_gen sets.
12071 (df_note_bb_compute): Added updating of live and do_not_gen sets
12072 for regular defs so that the case of clobber inside conditional
12073 call is processed correctly.
12074
06ae9c5b 120752007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
12076
12077 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
12078 operands with compatible type.
12079
36122326 120802007-07-27 Richard Sandiford <richard@codesourcery.com>
12081
12082 * expr.h (store_bit_field): Don't return a value.
12083 * expmed.c (check_predicate_volatile_ok): New function.
12084 (store_bit_field_1): New function, extracted from store_bit_field.
12085 Take a fallback_p argument and return true if the operation succeeded.
12086 Only use store_fixed_bit_field if fallback_p. Don't recompute
12087 mode_for_extraction; use op_mode instead. Try forcing memories
12088 into registers if the insv expander fails.
12089 (store_bit_field): Use store_bit_field_1 with fallback_p true.
12090 Don't return a value.
12091 (convert_extracted_bit_field): New function, extracted from
12092 store_bit_field.
12093 (extract_bit_field_1): Likewise. Take a fallback_p argument
12094 and return NULL if the operation succeeded. Only use
12095 extract_fixed_bit_field if fallback_p. Only calculate one
12096 extraction mode. Combine code for extv and extzv. Try forcing
12097 memories into registers if the ext(z)v expander fails.
12098 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
12099
4d1af246 121002007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
12101
12102 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
12103 into bitfields.
12104 (df_ref): Likewise. Put regno with other integer fields.
12105
05beda33 121062007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
12107
12108 * df.h (df_mw_hardreg): Remove "loc" field.
12109 * df-scan.c (df_ref_record): Don't set it. Remove redundant
12110 local variable.
12111 * df-problems.c (df_whole_mw_reg_unused_p): New function,
12112 split out from df_set_unused_notes_for_mw. Return false for
12113 partial references. Assert that mw_reg is a REG when returning true.
12114 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
12115 (df_whole_mw_reg_dead_p): New function, split out from
12116 df_set_dead_notes_for_mw. Return false for partial references.
12117 Assert that mw_reg is a REG when returning true.
12118 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
12119 Remove redundant bitmap check.
12120
89bd57be 121212007-07-26 H.J. Lu <hongjiu.lu@intel.com>
12122
12123 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
12124 ($(T)crtend.o): Likwise.
12125 ($(T)crtbeginS.o): Likwise.
12126 ($(T)crtendS.o): Likwise.
12127 ($(T)crtfastmath.o): Likwise.
12128
edfe0dbf 121292007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
12130
12131 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
12132 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
12133 * basic-block.h (struct control_flow_graph): Added x_dom_computed
12134 and x_n_bbs_in_dom_tree fields.
12135
be429d54 121362007-07-26 Steve Ellcey <sje@cup.hp.com>
12137
12138 PR tree-optimization/32087
12139 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12140 Do not call scale_bbs_frequencies_int with prob of zero.
12141
8521669a 121422007-07-26 Julian Brown <julian@codesourcery.com>
12143
12144 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
12145 (neon_element_bits): Add prototypes.
12146 * config/arm/arm.c (bounds_check, neon_lane_bounds)
12147 (neon_const_bounds, neon_element_bits): New functions.
12148 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
12149 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
12150 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
12151 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
12152 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
12153 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
12154 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
12155 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
12156 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
12157 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
12158 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
12159 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
12160 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
12161
6017c98f 121622007-07-26 Nathan Froyd <froydnj@codesourcery.com>
12163
12164 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
12165 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
12166
bcaec148 121672007-07-26 Mark Shinwell <shinwell@codesourcery.com>
12168 Julian Brown <julian@codesourcery.com>
12169
12170 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
12171 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
12172 * config/arm/cortex-a8.md: New.
12173 * config/arm/cortex-a8-neon.md: New.
12174 * config/arm/neon-schedgen.ml: New.
12175 * config/arm/neon.md (vqh_mnem): New.
12176 (neon_type): New.
12177 (Is_float_mode): New.
12178 (Scalar_mul_8_16): New.
12179 (Is_d_reg): New.
12180 (V_mode_nunits): New.
12181 (All instruction patterns): Annotate with neon_type attribute
12182 values.
12183 * config/arm/arm.md: Include cortex-a8.md.
12184 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
12185 values.
12186 Annotate instruction patterns accordingly.
12187 (generic_sched): Do not use generic scheduling for Cortex-A8.
12188 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
12189
7b050b7b 121902007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
12191
12192 * fold-const.c (fold_read_from_constant_string): Use
12193 build_int_cst_type.
12194 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
12195
8c4c00c1 121962007-07-26 Nick Clifton <nickc@redhat.com>
12197
12198 * tree-ssa-operands.h: Change copyright header to refer to version
12199 3 of the GNU General Public License and to point readers at the
12200 COPYING3 file and the FSF's license web page.
12201 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
12202 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
12203 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
12204 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
12205 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
12206 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
12207 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
12208 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
12209 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
12210 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
12211 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
12212 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
12213 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
12214 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
12215 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
12216 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
12217 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
12218 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
12219 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
12220 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
12221 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
12222 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
12223 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
12224 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
12225 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
12226 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
12227 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
12228 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
12229 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
12230 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
12231 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
12232 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
12233 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
12234 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
12235 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
12236 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
12237 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
12238 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
12239 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
12240 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
12241 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
12242 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
12243 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
12244 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
12245 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
12246 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
12247 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
12248 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
12249 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
12250 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
12251 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
12252 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
12253 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
12254 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
12255 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
12256 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
12257 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
12258 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
12259 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
12260 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
12261 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
12262 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
12263 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
12264 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
12265 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
12266 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
12267 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
12268 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
12269 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
12270 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
12271 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
12272 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
12273 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
12274 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
12275 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
12276 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
12277 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
12278 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
12279 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
12280 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
12281 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
12282 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
12283 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
12284 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
12285 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
12286 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
12287 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
12288 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
12289 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
12290 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
12291 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
12292 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
12293 vecprim.h, basic-block.h, tree-ssa-structalias.c,
12294 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
12295 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
12296 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
12297 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
12298 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
12299 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
12300 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
12301 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
12302 convert.c, convert.h, langhooks-def.h, reload1.c,
12303 tree-ssa-operands.c: Likewise.
12304
2ff2a12b 123052007-07-26 Jan Hubicka <jh@suse.cz>
12306
12307 * tree-ssa-live.c: Include debug.h and flags.h.
12308 (mark_scope_block_unused): New function.
12309 (remove_unused_scope_block_p): New function.
12310 (remove_unused_locals): Remove unused blocks too.
12311
7ed1bb71 123122007-07-25 Ian Lance Taylor <iant@google.com>
12313
12314 * combine.c (combine_max_regno): Remove. Remove all uses.
12315 (struct reg_stat_struct): Rename from struct reg_stat.
12316 (reg_stat_type): Define, and declare VECs.
12317 (reg_stat): Change from pointer to VEC. Change all uses.
12318 (combine_split_insns): New static function.
12319 (try_combine, find_split_point): Call it instead of split_insns.
12320
2197fd81 123212007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
12322
12323 * cfghooks.c (split_block): Fix the information about loop latch.
12324
5405298c 123252007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
12326
12327 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
12328
f9614b84 123292007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
12330
12331 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
12332 Scan the new edge for loop exit info.
12333
cf756914 123342007-07-25 Andreas Tobler <a.tobler@schweiz.org>
12335
12336 * config/darwin.c: Include debug.h.
12337
43de460b 123382007-07-25 Steve Ellcey <sje@cup.hp.com>
12339
12340 PR target/32218
12341 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
12342
78d690bb 123432007-07-25 Steve Ellcey <sje@cup.hp.com>
12344
12345 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
12346 (HARD_REGNO_MODE_OK): Ditto.
12347 (MODES_TIEABLE_P): Ditto.
12348 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
12349 (CLASS_MAX_NREGS): Ditto.
12350 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
12351 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
12352 (divdf3_internal_thr): Removed.
12353 * config/ia64/div.md: New file.
12354 * config/ia64/constraints.md: Add H constraint.
12355
ac0ff66f 123562007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12357
12358 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
12359 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
12360 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
12361 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
12362 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
12363 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
12364 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
12365 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
12366 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
12367 dump_sbitmap_file, debug_sbitmap, popcount_table,
12368 sbitmap_popcount): Constify.
12369 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
12370 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
12371 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
12372 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
12373 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
12374 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
12375 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
12376 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
12377 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
12378 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
12379 sbitmap_popcount, sbitmap_verify_popcount): Constify.
12380
056755a1 123812007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12382
12383 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
12384 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
12385 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
12386 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
12387 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
12388 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
12389 bitmap_intersect_p, bitmap_intersect_compl_p,
12390 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
12391 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
12392 Constify.
12393 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
12394 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
12395 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
12396 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
12397 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
12398 debug_bitmap, debug_bitmap_file, bitmap_print,
12399 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
12400 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
12401
ffdfb40f 124022007-07-25 Daniel Berlin <dberlin@dberlin.org>
12403
12404 * config/darwin.c (darwin_override_options): Additional fix for
12405 debug info formats that don't support var tracking.
12406
dea3189b 124072007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12408
12409 * cselib.c (entry_and_rtx_equal_p): Constify.
12410 * gengtype.c (output_mangled_typename, write_types, write_local):
12411 Likewise.
12412 * gengtype.h (const_type_p): New.
12413 * see.c (eq_descriptor_extension, hash_descriptor_extension):
12414 Constify.
12415 * tlink.c (scan_linker_output): De-constify.
12416 * tree-ssa-loop-im.c (memref_eq): Constify.
12417 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
12418 (shared_bitmap_hash, shared_bitmap_eq): Constify.
12419
aae87fc3 124202007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12421
12422 * c-common.c (fname_as_string, c_type_hash): Constify.
12423 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
12424 * cgraph.c (edge_hash, edge_eq): Likewise.
12425 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
12426 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
12427 reg_attrs_htab_eq): Likewise.
12428 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
12429 Likewise.
12430 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
12431 const_decl_t, const_state_t, const_automata_list_el_t): New.
12432 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
12433 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
12434 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
12435 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
12436 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
12437 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
12438 compare_max_occ_cycle_nums, out_state_arcs_num,
12439 compare_transition_els_num, units_cmp, state_reservs_cmp):
12440 Constify.
12441 * genmodes.c (cmp_modes): Likewise.
12442 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
12443 * gimplify.c (compare_case_labels): Likewise.
12444 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
12445 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
12446 * matrix-reorg.c (mtt_info_hash): Likewise.
12447 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
12448 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
12449 (htab_hash_bucket, htab_hash_elem): Constify.
12450 * tree-browser.c (TB_parent_eq): Likewise.
12451 * tree-scalar-evolution.c (hash_scev_info): Likewise.
12452 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
12453 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
12454 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
12455 Constify.
12456 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
12457 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
12458 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
12459 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
12460 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
12461 New.
12462 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
12463 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
12464 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
12465 * tree-ssa-threadupdate.c (redirection_data_hash,
12466 redirection_data_eq): Likewise.
12467 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
12468 * tree-ssa.c (var_ann_eq): Likewise.
12469 * tree-vrp.c (compare_case_labels): Likewise.
12470 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
12471 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
12472 tree_not_check_failed, tree_class_check_failed,
12473 tree_range_check_failed, tree_not_class_check_failed,
12474 omp_clause_check_failed, omp_clause_range_check_failed,
12475 tree_contains_struct_check_failed, tree_operand_check_failed):
12476 Likewise.
12477 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
12478 tree_not_check_failed, tree_class_check_failed,
12479 tree_range_check_failed, tree_not_class_check_failed,
12480 tree_operand_check_failed, omp_clause_operand_check_failed,
12481 tree_operand_length): Likewise.
12482 * var-tracking.c (const_variable): New.
12483 (variable_htab_hash, variable_htab_eq): Constify.
12484 * varasm.c (const_desc_hash): Likewise.
12485
720082dc 124862007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12487
12488 * expr.c (handled_component_p): Constify.
12489 * fold-const.c (fit_double_type): Likewise.
12490 * real.h (real_value_from_int_cst): Likewise.
12491 * tree-flow-inline.h (gimple_in_ssa_p,
12492 gimple_aliases_computed_p, gimple_addressable_vars,
12493 gimple_call_clobbered_vars, gimple_referenced_vars,
12494 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
12495 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
12496 may_aliases, end_readonly_imm_use_p, has_zero_uses,
12497 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
12498 is_label_stmt, is_global_var, phi_ssa_name_p,
12499 factoring_name_p, is_call_clobbered, tree_common_ann,
12500 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
12501 unmodifiable_var_p, array_ref_contains_indirect_ref,
12502 ref_contains_array_ref, lookup_subvars_for_var,
12503 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
12504 gimple_mem_ref_stats): Likewise.
12505 * tree-flow.h (tree_common_ann, var_ann, function_ann,
12506 may_aliases, is_exec_stmt, is_label_stmt,
12507 ref_contains_array_ref, array_ref_contains_indirect_ref,
12508 var_can_have_subvars, overlap_subvar, is_call_clobbered,
12509 unmodifiable_var_p): Likewise.
12510 * tree-gimple.c (is_gimple_min_invariant): Likewise.
12511 * tree-gimple.h (is_gimple_min_invariant): Likewise.
12512 * tree.c (type_hash_list, attribute_hash_list, tree_size,
12513 cst_and_fits_in_hwi, real_value_from_int_cst,
12514 build_real_from_int_cst, integer_zerop, integer_onep,
12515 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
12516 tree_floor_log2, real_zerop, real_onep, real_twop,
12517 real_minus_onep, really_constant_p, purpose_member, chain_member,
12518 list_length, fields_length, int_size_in_bytes, bit_position,
12519 int_bit_position, byte_position, int_byte_position, expr_align,
12520 array_type_nelts, tree_node_structure,
12521 type_contains_placeholder_1, iterative_hash_pointer,
12522 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
12523 tree_map_base_eq, type_hash_list, type_hash_eq,
12524 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
12525 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
12526 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
12527 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
12528 int_fits_type_p, get_containing_scope, decl_function_context,
12529 decl_type_context, omp_clause_operand_check_failed,
12530 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
12531 * tree.h (omp_clause_operand_check_failed, tree_size,
12532 build_real_from_int_cst, array_type_nelts, purpose_member,
12533 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
12534 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
12535 is_attribute_p, check_qualified_type, expr_align,
12536 int_size_in_bytes, bit_position, int_bit_position, byte_position,
12537 int_byte_position, list_length, fields_length, initializer_zerop,
12538 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
12539 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
12540 tree_node_structure, handled_component_p, get_containing_scope,
12541 decl_function_context, decl_type_context, real_zerop,
12542 type_num_arguments, fit_double_type, really_constant_p,
12543 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
12544 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
12545 real_twop, real_minus_onep, int_cst_value): Likewise.
12546
dd9b9fc5 125472007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12548
12549 * cfglayout.c (insn_scope, insn_line): Constify.
12550 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
12551 const_double_htab_hash, const_double_htab_eq,
12552 mem_attrs_htab_hash): Likewise.
12553 * loop-iv.c (biv_eq): Likewise.
12554 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
12555 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
12556 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
12557 Likewise.
12558 * rtl-error.c (location_for_asm, diagnostic_for_asm,
12559 error_for_asm, warning_for_asm, _fatal_insn,
12560 _fatal_insn_not_found): Likewise.
12561 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
12562 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
12563 rtl_check_failed_type2, rtl_check_failed_code1,
12564 rtl_check_failed_code2, rtl_check_failed_code_mode,
12565 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
12566 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
12567 rtl_check_failed_type2, rtl_check_failed_code1,
12568 rtl_check_failed_code2, rtl_check_failed_code_mode,
12569 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
12570 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
12571 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
12572 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
12573 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
12574 rtx_unstable_p, get_integer_term, get_related_value,
12575 offset_within_block_p, reg_mentioned_p, count_occurrences,
12576 reg_referenced_p, reg_used_between_p, no_labels_between_p,
12577 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
12578 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
12579 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
12580 find_constant_src, find_reg_fusage, find_regno_fusage,
12581 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
12582 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
12583 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
12584 computed_jump_p, auto_inc_p, in_expr_list_p,
12585 remove_node_from_expr_list, loc_mentioned_in_p,
12586 label_is_jump_target_p, reversed_comparison_code_parts,
12587 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
12588 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
12589 print_inline_rtx): Likewise.
12590 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
12591 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
12592 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
12593 get_integer_term, get_related_value, offset_within_block_p,
12594 count_occurrences, reg_mentioned_p, no_labels_between_p,
12595 reg_used_between_p, reg_referenced_p, single_set_2,
12596 multiple_sets, set_noop_p, refers_to_regno_p,
12597 reg_overlap_mentioned_p, dead_or_set_p,
12598 covers_regno_no_parallel_p, covers_regno_p,
12599 dead_or_set_regno_p, find_reg_note, find_regno_note,
12600 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
12601 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
12602 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
12603 side_effects_p, may_trap_p_1, may_trap_p,
12604 may_trap_after_code_motion_p, may_trap_or_fault_p,
12605 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
12606 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
12607 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
12608 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
12609 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
12610 Likewise.
12611 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
12612 warning_for_asm): Likewise.
12613 * tree.h (print_rtl): Likewise.
12614 * varasm.c (get_pool_mode): Likewise.
12615
c1fdef8e 126162007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12617
12618 * c-lex.c (c_lex_with_flags, lex_string): Constify.
12619 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
12620 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
12621 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
12622 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
12623 * ddg.c (compare_sccs): Likewise.
12624 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
12625 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
12626 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
12627 decimal_do_fix_trunc, decimal_real_to_integer,
12628 decimal_real_to_integer2, decimal_real_maxval): Likewise.
12629 * dse.c (const_group_info_t): New.
12630 (invariant_group_base_eq, invariant_group_base_hash): Constify.
12631 * dwarf2out.c (const_dw_die_ref): New.
12632 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
12633 * tree-browser.c (TB_parent_eq): Likewise.
12634 * unwind-dw2-fde.c (__register_frame_info_bases,
12635 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
12636 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
12637 Likewise.
12638 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
12639 * unwind-dw2.c (uw_frame_state_for): Likewise.
12640 * value-prof.c (histogram_hash, histogram_eq): Likewise.
12641 * value-prof.h (const_histogram_value): New.
12642
6c1ca223 126432007-07-25 Richard Sandiford <richard@codesourcery.com>
12644
12645 * config/mips/mips.c (machine_function): Add
12646 initialized_mips16_gp_pseudo_p.
12647 (mips16_gp_pseudo_reg): Do not emit the initialization of
12648 mips16_gp_pseudo_rtx when being called from the gimple cost-
12649 calculation routines; emit it on the first use outside those
12650 routines.
12651
0c16c31b 126522007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12653
12654 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
12655 New.
12656
12657 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12658 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
12659 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
12660 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
12661 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
12662 Preserve const-ness of parameters through use of __typeof(),
12663 also constify and tidy.
12664
12665 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
12666 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
12667 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
12668 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
12669 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
12670 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
12671 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
12672 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
12673 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
12674
eddcdde1 126752007-07-25 Julian Brown <julian@codesourcery.com>
12676 Mark Shinwell <shinwell@codesourcery.com>
12677
12678 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
12679 (alpha_mangle_type): This.
12680 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12681 (TARGET_MANGLE_TYPE): Define this instead.
12682 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
12683 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
12684 (arm_init_neon_builtins): Fix comment.
12685 (arm_mangle_map_entry): New.
12686 (arm_mangle_map): New.
12687 (arm_mangle_type): New.
12688 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
12689 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
12690 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
12691 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12692 (TARGET_MANGLE_TYPE): Define this instead.
12693 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
12694 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
12695 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
12696 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12697 (TARGET_MANGLE_TYPE): Define this instead.
12698 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
12699 to...
12700 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
12701 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12702 (TARGET_MANGLE_TYPE): Define this instead.
12703 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
12704 (s390_mangle_type): This.
12705 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12706 (TARGET_MANGLE_TYPE): Define this instead.
12707 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
12708 (sparc_mangle_type): This.
12709 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
12710 (TARGET_MANGLE_TYPE): Define this instead.
12711 * cp/mangle.c (write_type): Call mangle_type target hook on all
12712 types before mangling. Use original type, not main variant, as
12713 argument.
12714 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
12715 (TARGET_MANGLE_TYPE): This.
12716 * target.h (gcc_target): Rename mangle_fundamental_type to
12717 mangle_type.
12718 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
12719 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
12720
d98a3884 127212007-07-25 Julian Brown <julian@codesourcery.com>
12722 Paul Brook <paul@codesourcery.com>
12723 Joseph Myers <joseph@codesourcery.com>
12724 Mark Shinwell <shinwell@codesourcery.com>
12725
12726 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
12727 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
12728 (with_fpu): Allow --with-fpu=neon.
12729 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
12730 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
12731 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
12732 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
12733 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
12734 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
12735 (neon_emit_pair_result_insn, neon_disambiguate_copy)
12736 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
12737 (output_move_neon): Add prototypes.
12738 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
12739 (all_fpus): Add FPUTYPE_NEON.
12740 (fp_model_for_fpu): Add NEON field.
12741 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
12742 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
12743 in registers.
12744 (arm_legitimate_address_p): Don't support fancy addressing for NEON
12745 structure moves.
12746 (thumb2_legitimate_address_p): Likewise.
12747 (neon_valid_immediate): Recognize and prepare constants suitable for
12748 NEON instructions.
12749 (neon_immediate_valid_for_move): New function. Recognize and prepare
12750 immediates for NEON move instructions.
12751 (neon_immediate_valid_for_logic): New function. Recognize and
12752 prepare immediates for NEON logic instructions.
12753 (neon_output_logic_immediate): New function. Create asm string
12754 suitable for outputting immediate logic instructions.
12755 (neon_pairwise_reduce): New function. Implement reduction using
12756 pairwise operations.
12757 (neon_expand_vector_init): New function. Expand a (possibly
12758 non-constant) vector initialization.
12759 (neon_vector_mem_operand): New function. Memory operands supported
12760 for quad-word loads/stores to/from ARM or NEON registers. Don't
12761 allow base+offset addressing for core regs.
12762 (neon_struct_mem_operand): New function. Valid mems for NEON
12763 structure moves.
12764 (coproc_secondary_reload_class): Enable NEON registers to be loaded
12765 from neon_vector_mem_operand addresses without a secondary register.
12766 (add_minipool_forward_ref): Handle >8-byte minipool entries.
12767 (add_minipool_backward_ref): Likewise.
12768 (dump_minipool): Likewise.
12769 (push_minipool_fix): Likewise.
12770 (output_move_quad): New function. Output quad-word moves, loads and
12771 stores using ARM registers.
12772 (output_move_vfp): Add support for vectors in VFP (NEON) D
12773 registers.
12774 (output_move_neon): Output a NEON load/store to/from a quadword
12775 register.
12776 (arm_print_operand): Implement new codes:
12777 - 'c' for unadorned integers (without a # sign).
12778 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
12779 mode.
12780 - 'e', 'f' for the low and high D parts of a NEON Q register.
12781 - 'q' outputs a NEON Q register.
12782 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
12783 - 'T' prints NEON opcode features from a coded bitmask.
12784 - 'F' is similar to T, but signed/unsigned codes both print as
12785 'i'.
12786 - 't' is similar to T, but 'u' is printed instead of 'p'.
12787 - 'O' prints 'r' if NEON instruction should perform rounding (as
12788 specified by bitmask), else prints nothing.
12789 - '#' is a punctuation character to stop operand numbers from
12790 running together with following digits in the assembler
12791 strings for instructions (when using mode attributes).
12792 (arm_assemble_integer): Handle extra NEON vector modes. Permute
12793 constant vectors in big-endian mode, where necessary.
12794 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
12795 Handle EI, OI, CI, XI modes.
12796 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
12797 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
12798 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
12799 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
12800 (neon_builtin_type_bits): Add enumeration, one bit for each vector
12801 type.
12802 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
12803 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
12804 to turn v8qi, etc. into bits defined above.
12805 (neon_itype): New enumeration. Classifications of NEON builtins.
12806 (neon_builtin_datum): Define struct. Contains information about
12807 a single builtin (with multiple modes).
12808 (CF): Define helper macro for...
12809 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
12810 modes.
12811 (neon_builtin_data): New array. Define information about builtins
12812 for use during initialization/expansion.
12813 (arm_init_neon_builtins): New function.
12814 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
12815 true.
12816 (neon_builtin_compare): New function.
12817 (locate_neon_builtin_icode): New function. Find an insn code for a
12818 builtin given a function code for that builtin. Also return type of
12819 builtin (NEON_BINOP, NEON_UNOP etc.).
12820 (builtin_arg): New enumeration. Types of arguments for builtins.
12821 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
12822 Takes a variable argument list of builtin_arg types, terminated by
12823 NEON_ARG_STOP.
12824 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
12825 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
12826 (neon_emit_pair_result_insn): New function. Support returning pairs
12827 of vectors via a pointer.
12828 (neon_disambiguate_copy): New function. Set up operands for a
12829 multi-word copy such that registers do not get clobbered.
12830 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
12831 ARM_BUILTIN_NEON_BASE.
12832 (arm_file_start): Set float-abi attribute for NEON.
12833 (arm_vector_mode_supported_p): Enable NEON vector modes.
12834 (arm_mangle_map_entry): New.
12835 (arm_mangle_map): New.
12836 (arm_mangle_vector_type): New.
12837 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
12838 when appropriate.
12839 (TARGET_NEON): New macro. Target supports NEON.
12840 (fputype): Add FPUTYPE_NEON.
12841 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
12842 for vectorization based on command-line arg.
12843 (NEON_REGNO_OK_FOR_NREGS): Define.
12844 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
12845 (VALID_NEON_STRUCT_MODE): Define.
12846 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
12847 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
12848 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
12849 (consttable_16): Add pattern for outputting 16-byte minipool
12850 entries.
12851 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
12852 vec-common.md).
12853 (vec-common.md, neon.md): Include md files.
12854 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
12855 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
12856 (memory_constraint "Ut", "Un", "Us"): Define.
12857 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
12858 (MMX_char): New mode attribute.
12859 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
12860 (*add<mode>3_iwmmxt): New insn pattern.
12861 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
12862 (*sub<mode>3_iwmmxt): New insn pattern.
12863 (mulv4hi3): Rename to...
12864 (*mulv4hi3_iwmmxt): This.
12865 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
12866 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
12867 (uminv4hi3, uminv2si3): Remove. Replace with...
12868 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
12869 (*umin<mode>3_iwmmxt): These.
12870 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
12871 (ashr<mode>3_iwmmxt): This new pattern.
12872 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
12873 (lshr<mode>3_iwmmxt): This new pattern.
12874 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
12875 (ashl<mode>3_iwmmxt): This new pattern.
12876 * config/arm/neon-docgen.ml: New file. Generate documentation for
12877 intrinsics.
12878 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
12879 * config/arm/arm_neon.h: New (autogenerated).
12880 * config/arm/neon-testgen.ml: New file. Generate NEON tests
12881 automatically.
12882 * config/arm/neon.md: New file. Define NEON instructions.
12883 * config/arm/neon.ml: New file. Abstract description of NEON
12884 instructions, used to generate arm_neon.h header, documentation and
12885 tests.
12886 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
12887 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
12888 support.
12889 * doc/extend.texi (ARM Built-in Functions): Rename and remove
12890 extraneous comma.
12891 (ARM NEON Intrinsics): New subsection.
12892 * doc/arm-neon-intrinsics.texi: New (autogenerated).
12893
1217a39a 128942007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
12895
12896 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
12897 prototype.
12898
099d85c4 128992007-07-24 Jan Hubicka <jh@suse.cz>
12900
12901 * regclass.c (move_table): New type.
12902 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
12903 (init_move_cost): Break out from ...
12904 (init_reg_sets_1): ... here; simplify computation of
12905 have_regs-of_mode and contains_reg_of_mode.
12906 (record_reg_classes): Unswitch internal loops.
12907 (copy_cost): Trigger lazy initialization of move cost
12908 (record_address_regs): Likewise.
12909
fe6e8926 129102007-07-24 Daniel Berlin <dberlin@dberlin.org>
12911
12912 * config/darwin.c (darwin_override_options): Don't force on
12913 flag_var_tracking_uninit when no debug info is requested.
12914
a8a97201 129152007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
12916
12917 * cfgloop.c (init_loops_structure): New function.
12918 (flow_loops_find): Create root of the loop tree unconditionally.
12919
ee7b149f 129202007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
12921
12922 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
12923
d7be1dc6 129242007-07-24 Jan Hubicka <jh@suse.cz>
12925
12926 * caller-save.c: Include ggc.h, gt-caller-save.h
12927 (reg_save_code, reg_restore_code): Rename to ...
12928 (cached_reg_save_code, cached_reg_restore_code): ... those.
12929 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
12930 (reg_save_code, reg_restore_code): New functions.
12931 (init_caller_save): Do not intialize
12932 reg_save_code/reg_restore_code tables.
bb11a0e8 12933 * Makefile.in: (gt-caller-save.h): New.
d7be1dc6 12934
9289fc25 129352007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
12936
12937 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
12938 with the mode of the original operand instead of
12939 integer_one_node.
12940
53c6ada5 129412007-07-23 Jan Hubicka <jH@suse.cz>
12942
12943 * i386.c (ix86_secondary_memory_needed): Break out to...
12944 (inline_secondary_memory_needed): ... here.
12945 (ix86_memory_move_cost): Break out to ...
12946 (inline_memory_move_cost): ... here; add support for IN value of 2 for
12947 maximum of input and output; fix handling of Q_REGS on 64bit.
12948 (ix86_secondary_memory_needed): Microoptimize.
12949
74c8f69a 129502007-07-23 Sebastian Pop <sebpop@gmail.com>
12951
12952 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
12953 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
12954 stmts_from_loop, known_dependences_p, build_rdg): New.
12955 * tree-data-ref.h: Depends on graphds.h.
12956 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
12957 (build_rdg): Declared.
12958 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
12959
a33fd067 129602007-07-23 Daniel Berlin <dberlin@dberlin.org>
12961
12962 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
12963 ccp_min_invariant.
12964
1f3b83af 129652007-07-23 Peter Bergner <bergner@vnet.ibm.com>
12966 Jakub Jelinek <jakub@redhat.com>
12967
12968 PR middle-end/PR28690
724fa541 12969 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
12970 EQ compares.
1f3b83af 12971 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
12972 and MEM_POINTER operands over REG and MEM operands.
12973 (swap_commutative_operands_p): Change return value to bool.
12974 * rtl.h: Update the corresponding prototype.
12975 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
12976 instead of gen_rtx_PLUS.
12977 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
12978 value to bool. Change function arguments to rtx's and update code
12979 to match.
12980 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
12981 calls to match the new declaration.
12982 * simplify-rtx.c (simplify_associative_operation): Don't
12983 reorder simplify_binary_operation arguments.
12984
d61e7fe9 129852007-07-23 Richard Sandiford <richard@codesourcery.com>
12986
12987 * config/mips/mips.c (override_options): Use mips_costs to derive
12988 the default branch cost.
12989 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
12990 than mips_costs.
12991 * config/mips/mips.opt (mbranch-cost=): New option.
63d40e53 12992 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
d61e7fe9 12993
d870c009 129942007-07-23 Richard Sandiford <richard@codesourcery.com>
12995
12996 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
12997 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
3c70a4dc 12998 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
d870c009 12999 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
13000
02b2dafb 130012007-07-23 Richard Sandiford <richard@codesourcery.com>
13002
13003 * config/mips/constraints.md (ks): New constraint.
13004 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
56bedb66 13005 (*add<mode>3_mips16): ...here.
02b2dafb 13006
27eda240 130072007-07-21 Uros Bizjak <ubizjak@gmail.com>
13008
13009 * optabs.h (enum optab_index): Add new OTI_signbit.
13010 (signbit_optab): Define corresponding macro.
13011 (enum insn_code signbit_optab[]): Remove array.
13012 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
13013 (expand_copysign_absneg): If back end provides signbit insn, use it
13014 instead of bit operations on floating point argument.
13015 * builtins.c (enum insn_code signbit_optab[]): Remove array.
724fa541 13016 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
13017 for availability of signbit insn.
27eda240 13018
13019 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
13020 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
13021 SSE mode is not active.
13022 (isinf<mode>2): Disable for mfpmath=sse,387.
13023
418a0769 130242007-07-22 Ben Elliston <bje@au.ibm.com>
13025
13026 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
13027 `class' parameter.
13028 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
13029
79307120 130302007-07-20 Richard Guenther <rguenther@suse.de>
13031
13032 * tree-cfg.c (verify_expr): COND_EXPRs can have any
13033 integral typed condition.
13034 * tree-ssa.c (useless_type_conversion_p): Do not preserve
13035 booleanness. Only preserve conversions from a non-base
13036 type to a base type, not in general between types with
13037 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
13038 * tree.def (COND_EXPR): Document that the condition
13039 can be of any integral type.
13040
4509d619 130412007-07-20 Nigel Stephens <nigel@mips.com>
13042 Richard Sandiford <richard@codesourcery.com>
13043
13044 * config/mips/mips.h (mips_dwarf_regno): Declare.
13045 (DBX_REGISTER_NUMBER): Remove redundant brackets.
13046 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
13047 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
13048 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
13049 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
13050 (REG_CLASS_NAMES): Update accordingly.
13051 * config/mips/mips.c (mips_dwarf_regno): New array.
13052 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
13053 (mips_subword): Remove special handling for accumulator registers.
13054 (override_options): Initiailize mips_dwarf_regno. Remove use
13055 of ACC_HI_REG_P.
13056 (mips_swap_registers): New function.
13057 (mips_conditional_register_usage): Swap accumulator registers
13058 around if TARGET_LITTLE_ENDIAN.
13059 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
13060 * config/mips/constraints.md (h, l): Use the endianness to choose
13061 between MD0_REG and MD1_REG.
13062 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
13063 alternative-dependent template.
13064
b308ddcf 130652007-07-20 Richard Sandiford <richard@codesourcery.com>
13066
13067 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
13068 no_new_pseudos.
13069
e08b2eb8 130702007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
13071
13072 * function.c (thread_prologue_and_epilogue_insns): Fix exit
13073 predecessor fallthru flags.
13074
e88bb328 130752007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
13076
13077 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
13078 of compare to the same type.
13079 * cfgloopmanip.c (add_loop): Update information about loop exits.
13080 (loop_version): Remove the innermost loop requirement.
13081 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
13082 to sizetype for pointers.
13083
c042caf0 130842007-07-18 H.J. Lu <hongjiu.lu@intel.com>
13085
13086 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
13087 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
13088 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
13089
13090 * config/dfp-bit.c: Empty for TFmode conversions.
13091
22e3029e 130922007-07-18 Caroline Tice <ctice@apple.com>
13093
48dc2227 13094 * var-tracking.c (find_src_status): Check for COND_EXEC insns
22e3029e 13095 and handle them correctly; check that src is not NULL before
13096 trying to use it.
13097 (find_src_set_src): Likewise.
13098
4690907f 130992007-07-18 Bob Wilson <bob.wilson@acm.org>
13100
13101 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
13102 (struct alignment_context, init_alignment_context): New.
13103 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
13104 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
13105 (XCHAL_HAVE_S32C1I): Likewise.
13106 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
13107 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
13108 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
13109 (ATOMIC, HQI): New macros.
13110 (memory_barrier, *memory_barrier): New.
13111 (sync_lock_releasesi): New.
13112 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
13113 (sync_lock_test_and_set<mode>): New.
13114 (sync_<atomic><mode>): New.
13115 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
13116 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
13117 (xtensa_expand_atomic): New.
13118
8a1a9cb7 131192007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13120
13121 PR target/30652
13122
13123 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
13124 transformation for builtin ISNORMAL.
13125 (expand_builtin): Handle BUILT_IN_ISNORMAL.
13126 * builtins.def (BUILT_IN_ISNORMAL): New.
13127 * doc/extend.texi: Document isnormal.
13128
cde061c1 131292007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13130
13131 PR target/30652
13132
13133 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
13134 optabs infrastructure. Provide generic implementation for
13135 FINITE/ISFINITE.
13136 (expand_builtin): Handle FINITE/ISFINITE.
13137 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
13138 (fold_builtin_1): Likewise.
13139
13140 * builtins.def (BUILT_IN_ISFINITE): New.
13141
13142 * doc/extend.texi: Document isfinite.
13143
06f7a99d 131442007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13145
13146 PR target/30652
13147 PR middle-end/20558
13148
13149 * builtins.c (expand_builtin_interclass_mathfn): Provide a
13150 generic fallback for isinf.
13151 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
13152 calculation code ...
13153 * real.c (get_max_float): ... to here.
13154 * real.h (get_max_float): New.
13155
b5c26b42 131562007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13157
13158 PR middle-end/32668
13159
13160 * builtin-attrs.def (ATTR_TYPEGENERIC,
13161 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
13162
13163 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
13164 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
13165 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
13166 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
13167
13168 * c-common.c (handle_type_generic_attribute): New.
13169 (c_common_attribute_table): Add "type generic".
13170
13171 * c-typeck.c (convert_arguments): Handle "type generic" functions.
13172
2602affd 131732007-07-18 Daniel Berlin <dberlin@dberlin.org>
13174
13175 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
13176 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
13177 properly.
13178
94d1be51 131792007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
13180
13181 PR target/32808
13182 * config/cris/cris.c (cris_print_index): Don't use XEXP before
13183 checking that the operand is an expression.
13184
8a76d177 131852007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
13186 Danny Smith <dannysmith@users.sourceforge.net>
13187
13188 PR/other 30335
13189 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
13190 file mapping object in local namespace if Windows version later
13191 than NT4
13192
e348ff3e 131932007-07-18 Richard Sandiford <richard@codesourcery.com>
13194
13195 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
13196 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
13197 arm_cannot_force_const_mem.
13198 (arm_cannot_force_const_mem): New function.
13199 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
13200 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
13201 of arm_tls_referenced_p.
13202 * config/arm/arm.md (movsi): Split out-of-section constants when
13203 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
13204 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
13205
e13cda6d 132062007-07-18 Richard Sandiford <richard@codesourcery.com>
13207
13208 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
13209
6bd07e6e 132102007-07-18 Richard Sandiford <richard@codesourcery.com>
13211
13212 * config/mips/mips.md (*extendqihi2): Convert the destination
13213 to SImode.
13214
afb9ca77 132152007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13216
13217 * config/pa/fptr.c: Update license header.
13218 * config/pa/milli64.S: Likewise.
13219
1ee47085 132202007-07-17 Nick Clifton <nickc@redhat.com>
13221
13222 * COPYING_v3: New file. Contains version 3 of the GNU General
13223 Public License.
13224 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
13225 Lesser General Public License.
13226 * doc/include/gpl_v3.texi: New file. Contains version 3 of
13227 the GNU General Public License.
13228
c473c074 132292007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
13230
13231 PR rtl-optimization/32773
13232 * cfglayout.c (force_one_exit_fallthru): New function.
13233 (cfg_layout_finalize): Use it.
13234
5e13091d 132352007-07-16 Richard Guenther <rguenther@suse.de>
13236 Uros Bizjak <ubizjak@gmail.com>
13237
13238 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
13239 before forcing it to gimple operand.
13240
7f666194 132412007-07-16 Sandra Loosemore <sandra@codesourcery.com>
13242 David Ung <davidu@mips.com>
13243
d07cd931 13244 * config/mips/mips.h (TUNE_24K): Define.
7f666194 13245 (TUNE_MACC_CHAINS): Add TUNE_24K.
d07cd931 13246 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
13247 imadd.
13248 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
13249 (r74k_int_madd): .. this new reservation.
13250 (define_bypass): Fixed bypasses for r74k_int_madd to use
7f666194 13251 mips_linked_madd_p.
d07cd931 13252 * config/mips/24k.md (define_bypass): Define new
13253 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
7f666194 13254
477a45f3 132552007-07-16 Sandra Loosemore <sandra@codesourcery.com>
13256 Nigel Stephens <nigel@mips.com>
13257
48dc2227 13258 * config/mips/mips.md: Include 20kc.md.
477a45f3 13259 * config/mips/20kc.md: New file.
13260 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
13261 (mips_adjust_cost): Tweak for 20Kc.
13262 (mips_issue_rate): Likewise.
13263 * config/mips/mips.h (TUNE_20KC): Define.
13264
05656ad2 132652007-07-16 David Edelsohn <edelsohn@gnu.og>
13266
13267 * config/rs6000/rs6000.c (struct processor_cost): Add
13268 cache_line_size, l1_cache_lines, and simultaneous_prefetches
13269 fields.
13270 (*_cost): Add cache information.
13271 (rs6000_override_options): Set cache parameters.
13272
2f1d7291 132732007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13274
13275 PR bootstrap/3456
13276 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
13277 * doc/install.texi (mips-sgi-irix6): pthread support works now.
13278
e2340456 132792007-07-16 Paul Brook <paul@codesourcery.com>
13280
13281 PR target/32753
e2340456 13282 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
a9fc98af 13283 (cirrus_thumb2_movsi_insn): Ditto.
e2340456 13284
164413e2 132852007-07-15 Geoffrey Keating <geoffk@apple.com>
13286
13287 * config/rs6000/darwin-fallback.c (interpret_libc): Change
13288 CR2_REGNO to R_CR2.
13289
c27697e2 132902007-07-15 Andrew Haley <aph@redhat.com>
13291
13292 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
13293 before looking in the context.
13294
df6b92e4 132952007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13296
13297 PR middle-end/32398
13298 PR middle-end/32769
13299 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
13300 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
13301 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
724fa541 13302 (pa_output_function_prologue): Use rp_saved and
13303 current_function_is_leaf to generate .CALLINFO statement.
df6b92e4 13304 (hppa_expand_prologue): Set rp_saved.
13305 (hppa_expand_epilogue): Use rp_saved.
13306 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
13307 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
13308
5a30047c 133092007-07-14 Dirk Mueller <dmueller@suse.de>
13310
13311 * omega.c (coalesce): Fix memory leak on early exit.
13312 * matrix-reorg.c (check_allocation_function): Likewise.
13313 * tree-vect-transform.c (vect_get_new_vect_var): free result
13314 of concat().
13315 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13316 pass pointer to edge vector
13317 (partition_hot_cold_basic_blocks): Fix memory leak.
13318 * collect2.c (prefix_from_string): Free temporary storage.
13319 * reload1.c (fixup_abnormal_edges): Free sbitmap.
13320
6392d503 133212007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
13322
13323 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
13324 (DO_GLOBAL_DTORS_BODY): Likewise.
13325
e85b06c5 133262007-07-14 Sandra Loosemore <sandra@codesourcery.com>
13327 Nigel Stephens <nigel@mips.com>
13328
13329 * config/mips/mips.c (mips_classify_symbol): Don't return
13330 SYMBOL_SMALL_DATA for constant pool addresses if
13331 TARGET_EMBEDDED_DATA is true.
13332
55be12b2 133332007-07-14 Uros Bizjak <ubizjak@gmail.com>
13334
13335 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
13336 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
13337 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
13338 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
13339 __builtin_ia32_storehps, __builtin_ia32_storelps,
13340 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
13341 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
13342 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
13343 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
13344 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
13345 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
13346 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
13347 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
13348 using def_builtin_const.
13349
6f177738 133502007-07-14 Eric Botcazou <ebotcazou@adacore.com>
13351
13352 PR tree-optimization/32705
13353 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
13354 (simplify_binary_expression): Use SSA_VAL consistently.
13355
e18e5bf1 133562007-07-13 David Edelsohn <edelsohn@gnu.org>
13357
13358 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
13359 (SPEFSCR_REGNO): Delete definition.
13360 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
13361 COUNT_REGISTER_REGNUM -> CTR_REGNO.
13362 * config/rs6000/rs6000.h: Do not define *_REGNO.
13363 LINK_REGISTER_REGNUM -> LR_REGNO.
13364 COUNT_REGISTER_REGNUM -> CTR_REGNO.
13365 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
13366 COUNT_REGISTER_REGNUM -> CTR_REGNO.
13367 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
13368 R_VRSAVE, R_VSCR. Use them.
13369 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
13370 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
13371 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
13372 * config/rs6000/aix.h: Define R_LR. Use it.
13373
d53bb226 133742007-07-13 Caroline Tice <ctice@apple.com>
13375
13376 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
13377 flag_var_tracking is explicitly turned off (i.e. when variable
13378 tracking is not feasible); otherwise, turn flag_var_tracking on when
13379 flag_var_tracking_uninit is on.
13380 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
13381 note definitions, to allow recording of initialization status in the
13382 notes.
13383 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
13384 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
13385 determine if two note locations are equal.
13386 (output_loc_list): Don't output list entries whose start & end labels
13387 are the same.
13388 (reg_loc_descriptor): Add parameter for initialization status; pass it
13389 to other loc descriptor functions.
13390 (one_reg_loc_descriptor): Add parameter for initialization status;
13391 check its value and add DW_OP_GNU_uninit to returned loc descr if
13392 appropriate.
13393 (multiple_reg_loc_descriptor): Add parameter for initialization
13394 status;
13395 pass init status argument to other loc descriptor functions; check
13396 value of intialization parameter and add DW_OP_GNU_uninit to returned
13397 loc descr if appropriate.
13398 (based_loc_descr): Add parameter for initialization status; add new
13399 variable for return value; check value of initialization parameter and
13400 add DW_OP_GNU_uninit to returned loc descr if appropriate.
13401 (concatn_mem_loc_descriptor): Add parameter for initialization status;
13402 pass init status argument to other loc descriptor functions; check
13403 value of intialization parameter and add DW_OP_GNU_uninit to returned
13404 loc descr if appropriate.
13405 (mem_loc_descriptor): Likewise.
13406 (concat_loc_descriptor): Likewise.
13407 (concatn_loc_descriptor): Likewise.
13408 (loc_descriptor): Add parameter for initialization status; pass it as
13409 argument to other loc descriptor function calls.
13410 (loc_descriptor_from_tree_1): Add appropriate initialization status
13411 to loc descriptor function calls.
13412 (add_location_or_const_value_attribute): Get initialization status
13413 from VAR_LOCATION note; add initialization status to loc descriptor
13414 function calls.
13415 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
13416 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
13417 status is uninitialized, add "[uninint]" to output.
13418 * common.opt (fvar-tracking-uninit): New option, similar to
13419 fvar-tracking, to turn on tracking of uninitialized variables; creates
13420 a new global flag, flag_var_tracking_uninit.
13421 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
13422 (enum var_init_status): New type, for var initialization status field.
13423 * var-tracking.c (struct location_chain_def): Two new fields, init,
13424 for initialization status, and set_src for the assignment value expr.
13425 (unshare_variable): New parameter for initialization status;
13426 initialize new init and set_src fields.
13427 (var_reg_set): New parameters for initialization status and value;
13428 pass them to set_variable_part.
13429 (var_mem_set): Likewise.
13430 (get_init_value): New function.
13431 (var_reg_delete_and_set): New initialization status & value
13432 parameters; add call to get_init_value if status is unknown; pass new
13433 parameters to clobber_variable_part and var_reg_set.
13434 (var_mem_delete_and_set): Likewise.
13435 (var_reg_delete): Pass null set_src value to clobber_variable_part.
13436 (var_mem_delete): Likewise.
13437 (variable_union): Pass status to unshare_variable; initialize new init
13438 and set_src fields. If flag_var_tracking_uninit is not set, force
13439 status to initialized.
13440 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
13441 used later to get the set_src value.
13442 (find_src_status): New function.
13443 (find_src_set_src): New function.
13444 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
13445 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
13446 MO_SET, get set_src value and pass it to var_reg_delete_and_set
13447 and var_mem_delete_and_set.
13448 (dump_variable): Print out "[uninit]" if appropriate.
13449 (set_variable_part): Add new initialization and set_src parameters;
13450 pass status to unshare_variable; set node->init and node- >set_src
13451 fields and modify slot in hash table appropriately; save the init and
13452 set_src values if appropriate and assign to the new node.
13453 (clobber_variable_part): New set_src parameter; if two nodes have
13454 same variable and same location but different set_src (assignment)
13455 values, clobber old node.
13456 (delete_variable_part): Pass init status to unshare_variable.
13457 (emit_note_insn_var_location): Add initialized var; assign var's init
13458 status to new 'initialized'; pass new init status field to calls to
13459 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
13460 status to initialized.
13461 (emit_notes_in_bb): Pass initialization status to calls to
13462 var_reg_set, var_mem_set, var_reg_delete_and_set and
13463 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
13464 var_reg_delete_and_set and var_mem_delete_and_set; call
13465 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
13466 make up for change in add_stores.
13467 (vt_add_function_parameters): Add status to calls to
13468 set_variable_part.
13469 * config/darwin.c (darwin_override_options): Turn on uninitialized
13470 tracking automatically, if var_tracking is on and the system is
13471 10.5 or higher.
13472
5474166e 134732007-07-13 Sa Liu <saliu@de.ibm.com>
13474
13475 * config.gcc: Add options for arch and tune on SPU.
13476 * config/spu/predicates.md: Add constant operands 0 and 1.
13477 * config/spu/spu-builtins.def: Add builtins for double precision
13478 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
13479 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
13480 spu_testsv.
13481 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
13482 a CELLEDP target.
13483 * config/spu/spu-protos.h: Add new function prototypes.
13484 * config/spu/spu.c (spu_override_options): Check options -march and
13485 -mtune.
13486 (spu_comp_icode): Add comparison code for DFmode and vector mode.
13487 (spu_emit_branch_or_set): Use the new code for DFmode and vector
13488 mode comparison.
13489 (spu_const_from_int): New. Create a vector constant from 4 ints.
13490 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
13491 (spu_emit_vector_compare): New. Emit vector compare.
13492 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
13493 * config/spu/spu.h: Add options -march and -mtune. Define processor
13494 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
13495 CANONICALIZE_COMPARISON.
13496 * config/spu/spu.md: Add new insns for double precision compare
13497 and double precision vector compare. Add vcond and smax/smin patterns
13498 to enable DFmode vector conditional expression.
13499 * config/spu/spu.opt: Add options -march and -mtune.
13500 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
13501 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
13502 both CELL and CELLEDP targets: spu_testsv.
13503 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
13504 values.
13505
5acf8305 135062007-07-13 Richard Guenther <rguenther@suse.de>
13507
13508 PR tree-optimization/32721
13509 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
13510 TREE_THIS_VOLATILE on the folded reference.
13511 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
13512 if the array reference has TREE_THIS_VOLATILE set.
13513
ec2344ff 135142007-07-13 H.J. Lu <hongjiu.lu@intel.com>
13515
13516 PR other/32188
13517 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
13518
30dfb8d1 135192007-07-13 Andreas Schwab <schwab@suse.de>
13520
13521 * gengtype-lex.l: Allow declarations to be indented.
13522
50388ca3 135232007-07-12 Geoffrey Keating <geoffk@apple.com>
13524
13525 * ginclude/tgmath.h: New.
13526 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
13527 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
13528 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
13529 * configure: Regenerate.
13530
b47f1d93 135312007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13532
13533 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
13534 correct index when setting register save state for xd
13535 registers.
13536
d2897f00 135372007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13538
13539 * config/sh/sh.c (mark_use): Remove.
13540
c550a00b 135412007-07-12 Paul Brook <paul@codesourcery.com>
13542
13543 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
13544 reg does not overlap return value.
13545
c5e2ed66 135462007-07-12 Daniel Berlin <dberlin@dberlin.org>
13547
13548 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
13549 (set_expression_vuses): Ditto.
13550 (init_pre): Initialize expression_vuses.
13551
f9b930dd 135522007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
13553
13554 * config/i386/sse.md (storentdf, storentsf): New.
13555
6c96b31e 135562007-07-12 Geoffrey Keating <geoffk@apple.com>
13557
13558 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
13559 FUNCTION_DECL.
13560 * tree.c (build_decl_stat): Move code from here...
13561 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
13562 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
13563 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
13564 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
13565 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
13566 FUNCTION_BOUNDARY.
13567
5a2538e1 135682007-07-12 Dorit Nuzman <dorit@il.ibm.com>
13569 Devang Patel <dpatel@apple.com>
13570
13571 PR tree-optimization/25413
13572 * targhooks.c (default_builtin_vector_alignment_reachable): New.
13573 * targhooks.h (default_builtin_vector_alignment_reachable): New.
13574 * tree.h (contains_packed_reference): New.
13575 * expr.c (contains_packed_reference): New.
13576 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
13577 (vect_enhance_data_refs_alignment): Call
13578 vector_alignment_reachable_p.
13579 * target.h (vector_alignment_reachable): New builtin.
13580 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
13581 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
13582 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
13583
a28df51d 135842007-07-12 Dorit Nuzman <dorit@il.ibm.com>
13585
13586 * target.h (builtin_vectorization_cost): Add new target builtin.
13587 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
13588 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
13589 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
13590 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
13591 uninitialized variables.
13592 * tree-vect-transform.c (cost_for_stmt): New function.
13593 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
13594 using cost 1 for all scalar stmts. Be less conservative when
13595 estimating the number of prologue/epulogue iterations. Call
13596 targetm.vectorize.builtin_vectorization_cost. Return
13597 min_profitable_iters-1.
13598 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
13599 initialization cost instead of TARG_VEC_STMT_COST. Use
13600 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
13601 epilogue code. Fix epilogue cost computation.
13602 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
13603 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
13604 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
13605 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
13606 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
13607 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
13608
29988845 136092007-07-12 Richard Guenther <rguenther@suse.de>
13610
13611 * gimplify.c (gimplify_conversion): Make sure that the result
13612 from maybe_fold_offset_to_reference is trivially convertible
13613 to the desired type before doing the simplification.
13614 (gimplify_expr): Likewise.
13615 * fold-const.c (fold_binary): Use the correct types for
13616 building the simplified expression.
13617
235835a0 136182007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
13619
13620 PR rtl-optimization/32729
13621 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
13622 that fallthru to exit.
13623
904b6081 136242007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
13625
13626 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
13627 (symDTPOFF2reg): Likewise.
13628
8252ce4d 136292007-07-11 Daniel Berlin <dberlin@dberlin.org>
13630
13631 PR tree-optimization/32663
13632
13633 * tree.h (VALUE_HANDLE_VUSES): Remove.
13634 (struct tree_value_handle): Remove vuses.
13635
13636 * tree-vn.c (create_value_handle_for_expr): Don't set
13637 VALUE_HANDLE_VUSES.
13638
13639 * tree-ssa-pre.c (expression_vuses): New.
13640 (alloc_expression_id): Set up expression_vuses.
13641 (get_expression_vuses): New.
13642 (set_expression_vuses): Ditto.
13643 (clear_expression_ids): Modify for expression_vuses.
13644 (phi_translate_1): Ditto.
13645 (phi_translate_set): Ditto.
13646 (value_dies_in_block_x): Ditto
13647 (valid_in_sets): Ditto.
13648 (add_to_sets): Ditto.
13649 (find_existing_value_expr): Ditto.
13650 (create_value_handle_for_expr): Ditto.
13651 (make_values_for_stmt): Ditto.
13652 (vuse_equiv): Remove.
13653
e11ec584 136542007-07-11 Alexandre Oliva <aoliva@redhat.com>
13655
13656 * Makefile.in (mostlyclean): Remove object files.
13657
4629257b 136582007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
13659
13660 * toplev.c (no_new_pseudos): Deleted.
13661 * rtl.h (no_new_pseudos): Deleted.
13662 * tree-pass.h (pass_no_new_pseudos): Deleted.
13663 * passes.c (pass_no_new_pseudos): Deleted.
13664 * final.c (rest_of_clean_state): Removed no_new_pseudos.
13665 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
13666 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
13667 reload_completed.
13668 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
13669 * rtlhooks.c (gen_lowpart_general): Ditto.
13670 * optabs.c (prepare_operand): Ditto.
13671 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
13672 no_new_pseudos.
13673 * modulo-sched.c (rest_of_handle_sms): Ditto.
13674 * see.c (rest_of_handle_see): Ditto.
13675 * ifcvt.c (if_convert): Ditto.
13676 (gate_handle_if_after_combine): Replaced no_new_pseudos with
13677 reload_completed.
13678 * init-regs.c (gate_initialize_regs): Deleted set of
13679 no_new_pseudos.
13680 * lower-subreg.c (decompose_multiword_subregs): Ditto.
13681 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
13682 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
13683
bdbf1fdf 136842007-07-11 Uros Bizjak <ubizjak@gmail.com>
13685
13686 PR target/32661
13687 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
13688 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
13689 (*vec_extractv2di_1_rex64): New insn pattern.
13690
f7e97fb8 136912007-07-11 David Daney <ddaney@avtrex.com>
13692
13693 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
13694 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
13695 for SIGNAL_UNWIND_RETURN_COLUMN.
13696 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
13697 (DWARF_FRAME_REGNUM): Rewrite.
13698 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
13699
23bd5abb 137002007-07-11 Nick Clifton <nickc@redhat.com>
13701
13702 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
13703 delta and use gen_int_mode in place of GET_INT instead.
13704
2a761313 137052007-07-11 Uros Bizjak <ubizjak@gmail.com>
13706
13707 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
13708 and letter field.
13709
a1406b2e 137102007-07-11 Douglas Gregor <doug.gregor@gmail.com>
13711
13712 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
13713 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
13714 types or not.
13715 * params.h (VERIFY_CANONICAL_TYPES): Remove.
13716 (USE_CANONICAL_TYPES): New.
13717 * doc/invoke.texi (verify-canonical-types): Remove.
13718 (use-canonical-types): Add.
2a761313 13719
14d408d9 137202007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
13721
13722 * config/spu/spu.c (spu_optimization_options): Remove setting of
13723 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
13724 (spu_override_options): Move it here.
13725
7b50aae4 137262007-07-11 Richard Sandiford <richard@codesourcery.com>
13727
2a761313 13728 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
13729 * config/mips/mips.c (mips_cpu_info_table): Mention
13730 MIPS_ISA_LEVEL_SPEC in the comment.
7b50aae4 13731
7342d4d1 137322007-07-11 Eric Botcazou <ebotcazou@adacore.com>
13733
13734 PR tree-optimization/32713
13735 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
13736
e8e3aee6 137372007-07-11 Paolo Carlini <pcarlini@suse.de>
13738
13739 PR middle-end/30482
13740 * c-opts.c (c_common_post_options): Do not change flag_complex_method
13741 conditional to flag_isoc99.
13742 (c_common_init_options): Do it here, unconditionally.
13743
1c6d350b 137442007-07-11 Eric Botcazou <ebotcazou@adacore.com>
13745
13746 PR tree-optimization/32589
13747 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
13748 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
13749 * tree-ssa-propagate.c (valid_gimple_expression_p): New
13750 predicate, extracted from...
13751 (set_rhs): ...here. Call it for the expression on entry.
13752 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
13753 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
13754 (simplify_binary_expression): Use valid_gimple_expression_p
13755 to validate the simplification.
13756 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
13757
ee453562 137582007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
13759
13760 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
13761 DWARF2_DEBUG on 32 bit target too.
13762 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
13763
64966d8b 137642007-07-11 Nick Clifton <nickc@redhat.com>
13765
13766 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
13767 version for 64-bit hosts.
13768
381be270 137692007-07-10 David Daney <ddaney@avtrex.com>
13770
13771 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
13772 predicate.
13773 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
13774 call.
13775 * config/mips/mips.c (mips_expand_synci_loop): New function.
13776 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
13777 (UNSPEC_RDHWR): Same.
13778 (UNSPEC_SYNCI): Same.
13779 (UNSPEC_SYNC): Same.
13780 (clear_cache): New expand.
13781 (sync): New insn.
13782 (synci): Same.
13783 (rdhwr): Same.
13784 (clear_hazard): Same.
13785 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
13786 function.
13787 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
13788 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
13789
1b7ff857 137902007-07-10 Ian Lance Taylor <iant@google.com>
13791
13792 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
13793 no_new_pseudos.
13794
ac8fb6db 137952007-07-10 David Daney <ddaney@avtrex.com>
13796
13797 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
13798 * builtins.c (expand_builtin___clear_cache): New function.
13799 (expand_builtin): Call expand_builtin___clear_cache for
13800 BUILT_IN_CLEAR_CACHE case.
13801 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
13802 * doc/md.texi (clear_cache): Document new instruction pattern.
13803 * testsuite/gcc.dg/builtins-64.c: New test.
13804
7ec30120 138052007-07-11 Hans-Peter Nilsson <hp@axis.com>
13806
13807 * config/cris/cris.md ("movsi"): Fix typo in last change.
13808
097b5c8b 138092007-07-09 Geoffrey Keating <geoffk@apple.com>
13810
13811 PR 32617
13812 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
13813 FUNCTION_DECLs.
13814 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
13815 * varasm.c (assemble_start_function): Honor DECL_ALIGN
13816 for FUNCTION_DECLs. Don't use align_functions_log if
13817 DECL_USER_ALIGN.
13818 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
13819 even for FUNCTION_DECLs.
13820 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
13821 FUNCTION_DECLs.
13822 * tree.h (DECL_ALIGN): Update for new location of 'align'.
13823 (DECL_FUNCTION_CODE): Update for new location and name of
13824 'function_code'.
13825 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
13826 (struct tree_decl_common): Move 'align' and 'off_align' out
13827 of union, ensure they're still on a 32-bit boundary. Remove
13828 other fields in union 'u1'.
13829 (struct tree_function_decl): Add field 'function_code' replacing
13830 'u1.f' in tree_decl_common.
13831 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
13832 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
13833 (Variable Attributes): Cross-reference 'aligned' attribute
13834 to Function Attributes.
13835 * flags.h (force_align_functions_log): Delete.
13836 * toplev.c (force_align_functions_log): Delete.
13837
911efec9 138382007-07-10 Uros Bizjak <ubizjak@gmail.com>
13839
13840 PR target/32708
13841 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
13842 (*vec_concatv2di_rex): New insn pattern.
13843
95bc673f 138442007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13845
13846 PR target/32538
13847 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
13848
e1ba4a27 138492007-07-10 Ian Lance Taylor <iant@google.com>
13850
13851 Replace no_new_pseudos in backends.
13852 * rtl.h (can_create_pseudo_p): Define.
13853 * config/darwin.c (machopic_indirect_data_reference): Use
13854 can_create_pseudo_p () instead of no_new_pseudos.
13855 (machopic_indirect_data_reference): Likewise.
13856 (machopic_legitimize_pic_address): Likewise.
13857 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
13858 (alpha_emit_set_const_1): Likewise.
13859 (alpha_emit_set_const): Likewise.
13860 (alpha_emit_conditional_move): Likewise.
13861 (alpha_split_conditional_move): Likewise.
13862 * config/alpha/alpha.md (various splitters): Likewise.
13863 (movti): Likewise.
13864 * config/arm/arm.c (legitimize_pic_address): Likewise.
13865 (arm_load_pic_register): Likewise.
13866 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
13867 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
13868 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
13869 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
13870 * config/cris/cris.md (movsi): Likewise.
13871 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
13872 (symGOTOFF2reg_hilo): Likewise.
13873 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
13874 * config/h8300/h8300.md (insv, extzv): Likewise.
13875 * config/i386/i386.c (ix86_expand_move): Likewise.
13876 (ix86_expand_vector_move): Likewise.
13877 (ix86_prepare_fp_compare_args): Likewise.
13878 (ix86_expand_carry_flag_compare): Likewise.
13879 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
13880 (tls_dynamic_gnu2_combine_32): Likewise.
13881 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
13882 * config/ia64/ia64.c (ia64_expand_move): Likewise.
13883 (ia64_expand_movxf_movrf): Likewise.
13884 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
13885 (m32c_split_move): Likewise.
13886 (m32c_expand_insv): Likewise.
13887 * config/m68k/m68k.md (movsi): Likewise.
13888 * config/mips/mips.c (mips_force_temporary): Likewise.
13889 (mips_split_symbol): Likewise.
13890 (mips_move_integer): Likewise.
13891 (mips_legitimize_const_move): Likewise.
13892 * config/mn10300/mn10300.md (movsi): Likewise.
13893 * config/pa/pa.c (emit_move_sequence): Likewise.
13894 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13895 (rs6000_got_register): Likewise.
13896 (create_TOC_reference): Likewise.
13897 (rs6000_machopic_legitimize_pic_address): Likewise.
13898 * config/rs6000/rs6000.md (add<mode>3): Likewise.
13899 (various splitters): Likewise.
13900 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
13901 (movsi_got): Likewise.
13902 * config/s390/s390.c (emit_symbolic_move): Likewise.
13903 * config/s390/s390.md (movhi, movqi): Likewise.
13904 (load_multiple, store_multiple): Likewise.
13905 * config/score/score.c (score_force_temporary): Likewise.
13906 * config/sh/sh.c (prepare_move_operands): Likewise.
13907 (prepare_cbranch_operands): Likewise.
13908 (emit_fpu_switch): Likewise.
13909 (fpscr_set_from_mem): Likewise.
13910 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
13911 (adddi3, subsi3): Likewise.
13912 (various splitters): Likewise.
13913 (divsi_inv_fp_combine): Likewise.
13914 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
13915 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
13916 (sne): Likewise.
13917 * config/sh/predicates.md (xor_operand): Likewise.
13918 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
13919 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
13920 (movdi_pic_label_ref): Likewise.
13921 * config/spu/spu.c (spu_split_immediate): Likewise.
13922 * config/alpha/alpha.md (various splitters): Remove test
13923 !no_new_pseudos || reload_completed.
13924 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
13925 no_new_pseudos.
13926 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13927 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13928 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
13929 * config/score/score.c (th_output_mi_thunk): Likewise.
13930 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13931 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13932
646857a5 139332007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
13934
13935 PR rtl-optimization/32664
13936 * mode-switching.c (create_pre_exit): Skip barrier insns.
13937
0d734975 139382007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
13939
13940 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
13941 force_gimple_operand_bsi.
13942 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
13943 rewrite_use_compare): Ditto.
13944 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
13945 Ditto.
13946 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
13947 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13948 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
13949 * tree-profile.c (prepare_instrumented_value,
13950 tree_gen_interval_profiler, tree_gen_pow2_profiler,
13951 tree_gen_one_value_profiler, tree_gen_ic_profiler,
13952 tree_gen_ic_func_profiler, tree_gen_average_profiler,
13953 tree_gen_ior_profiler): Ditto.
13954 * tree-ssa-reassoc.c (negate_value): Ditto.
13955 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
13956 Use force_gimple_operand_bsi.
13957 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
13958 * tree-if-conv.c (add_to_dst_predicate_list,
13959 find_phi_replacement_condition): Ditto.
13960 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
13961 Call mark_symbols_for_renaming for new statements.
13962 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
13963
c8e41bd9 139642007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
13965
13966 * cfghooks.c (remove_edge): New function.
13967 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
13968 loop exit rescans.
13969 * cfghooks.h (remove_edge): Declare.
13970 * cfg.c (remove_edge): Renamed to remove_edge_raw.
13971 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
13972
93f564d6 139732007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
13974
13975 * optabs.h: Added declaration for signbit_optab.
13976 * optabs.c: (init_optabs): Added initialization for signbit_optab.
13977 * genoptinit.c (optabs): Added entry for signbit insns.
911efec9 13978 * builtins.c (expand_builtin_signbit): Added code to use a signbit
13979 insn, if available.
93f564d6 13980 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
13981 * config/s390/s390.md (signbit<mode>2): New expander.
13982
efd4cd99 139832007-07-09 Richard Guenther <rguenther@suse.de>
13984
13985 PR middle-end/32698
13986 * fold-const.c (fold_plusminus_mult_expr): Move constant
13987 arguments second to allow decomposing.
13988
924eff81 139892007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
13990
13991 Revert:
13992 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
13993 PR debug/23551
13994 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13995 Disregard DECL_FROM_INLINE.
13996
621a93b1 139972007-07-09 Uros Bizjak <ubizjak@gmail.com>
13998
13999 PR target/27855
14000 * doc/invoke.texi: Add ftree-reassoc flag.
14001 * common.opt (ftree-reassoc): New flag.
14002 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
14003 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
14004
0b6a85ec 140052007-07-09 Uros Bizjak <ubizjak@gmail.com>
14006
14007 PR tree-optimization/32681
14008 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
14009 saved in second_edge->aux when first_bb is a loop header.
14010
ce9e1d34 140112007-07-09 Jan HUbicka <jh@suse.cz>
14012
14013 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
14014
ed32c090 140152007-07-09 Richard Guenther <rguenther@suse.de>
14016
14017 * c-decl.c (start_function): Do not promote return type.
14018
76776e6d 140192007-07-08 Daniel Franke <franke.daniel@gmail.com>
14020
14021 * function.c (do_warn_unused_parameter): Do not warn if
14022 TREE_NO_WARNING is set.
14023
73632d39 140242007-07-08 Andreas Schwab <schwab@suse.de>
14025
14026 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
14027
d7518d5f 140282007-07-08 Sandra Loosemore <sandra@codesourcery.com>
14029
14030 Revert this patch:
14031 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
14032
14033 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
14034 apply to assembly language, too.
14035 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
14036
c22ba30f 140372007-07-07 Daniel Berlin <dberlin@dberlin.org>
14038
14039 Revert (note the sccvn portions are *not* reverted)
14040 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
14041
14042 Fix PR tree-optimization/23488
14043
14044 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
14045 handles.
14046 * tree-flow-inline.h (get_value_handle): Ditto.
14047 * tree-ssa-pre.c (decl_vh_map): New.
14048 (decl_node_pool): New.
14049 (can_value_number_operation): Support DECL_P.
14050 (can_PRE_operation): Ditto.
14051 (create_expression_by_pieces): Ditto.
14052 (find_existing_value_expr): Modify to differnetiate between
14053 addressing and top level.
14054 (create_value_handle_for_expr): Handle DECL's.
14055 (poolify_tree): Ditto.
14056 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
14057 (make_values_for_stmt): Handle DECL's properly.
14058 (init_pre): Reorg to not init useless things during FRE.
14059 (fini_pre): Ditto.
14060 * tree-flow.h: Include pointer-set.h.
14061 (decl_vh_map): Declare.
14062 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
14063
378eb4b7 140642007-07-07 Eric Weddington <eweddington@cso.atmel.com>
14065
14066 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
14067 the constraint description.
14068 * doc/md.texi: Update documentation of AVR constraints.
14069
6dfdc153 140702007-07-07 Kazu Hirata <kazu@codesourcery.com>
14071
14072 * auto-inc-dec.c, config/arm/arm.c,
14073 config/m32r/constraints.md, config/mips/mips.md,
14074 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
14075 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
14076 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
14077 typos. Follow spelling conventions.
14078 * doc/invoke.texi, doc/rtl.texi: Fix typos.
14079
812779b7 14080 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
14081 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
14082
026af966 14083 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
14084 realloc_vuse): Remove.
14085 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
14086 and realloc_vuse.
14087
70ae6476 140882007-07-06 Daniel Berlin <dberlin@dberlin.org>
14089
14090 Fix PR tree-optimization/23488
14091
14092 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
14093 (try_to_simplify): Ditto.
14094 (visit_use): Ditto.
14095 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
14096 handles.
14097 * tree-flow-inline.h (get_value_handle): Ditto.
14098 * tree-ssa-pre.c (decl_vh_map): New.
14099 (decl_node_pool): New.
14100 (can_value_number_operation): Support DECL_P.
14101 (can_PRE_operation): Ditto.
14102 (create_expression_by_pieces): Ditto.
14103 (find_existing_value_expr): Modify to differnetiate between
14104 addressing and top level.
14105 (create_value_handle_for_expr): Handle DECL's.
14106 (poolify_tree): Ditto.
14107 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
14108 (make_values_for_stmt): Handle DECL's properly.
14109 (init_pre): Reorg to not init useless things during FRE.
14110 (fini_pre): Ditto.
14111 * tree-flow.h: Include pointer-set.h.
14112 (decl_vh_map): Declare.
14113 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
14114
c74b2b0d 141152007-07-06 Sandra Loosemore <sandra@codesourcery.com>
14116
14117 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
14118 apply to assembly language, too.
14119 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
14120
f03c17bc 141212007-07-06 Ian Lance Taylor <iant@google.com>
d07cd931 14122 Zack Weinberg <zackw@panix.com>
f03c17bc 14123
14124 PR middle-end/32441
14125 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
14126
ec519c2a 141272007-07-06 Richard Sandiford <richard@codesourcery.com>
14128
14129 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
14130 (prefetch): Likewise if "pref" would be used.
14131
2ad152f7 141322007-07-06 Josh Conner <jconner@apple.com>
14133
14134 PR middle-end/32602
14135 PR middle-end/32603
14136 * calls.c (store_one_arg): Handle arguments which are partially
14137 on the stack when detecting argument overlap.
14138
ac9d5119 141392007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
14140
14141 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
14142 chosen during find_reloads.
14143
11582f4e 141442007-07-06 Richard Guenther <rguenther@suse.de>
14145
14146 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
14147 TYPE_ARG_TYPES for verification of argument types. Use
14148 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
14149 parameters as variable arguments.
14150
0ef89dfd 141512007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
14152
14153 * libgcc2.h (word_type): Type definition removed.
14154 (cmp_return_type, shift_count_type): Type definitions added.
14155 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
14156 replaced with shift_count_type.
14157 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
14158 cmp_return_type.
14159 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
14160 changed from word_type to Wtype.
14161 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
14162 replaced with shift_count_type.
14163 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
14164 cmp_return_type.
0b6a85ec 14165 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
14166 and libgcc_shift_count attribute added.
0ef89dfd 14167 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
14168 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
14169 (TARGET_INITIALIZER): New target hooks added.
14170 * targhooks.c (default_libgcc_cmp_return_mode,
14171 default_libgcc_shift_count_mode): Default implementations for the new
14172 target hooks added.
14173 * targhooks.h (default_libgcc_cmp_return_mode,
14174 default_libgcc_shift_count_mode): Function prototypes added.
14175 * target.h (struct gcc_target): Fields for the new target hooks added.
14176 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
14177 as library call.
14178 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
14179 library call.
14180
14181 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
14182 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
14183
14184 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
14185 s390_libgcc_shift_count_mode): Functions added.
0b6a85ec 14186 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
14187 Target hooks defined.
0ef89dfd 14188
f999f5d0 141892007-07-06 Richard Sandiford <richard@codesourcery.com>
14190
14191 * config/mips/mips.c (compute_frame_size): Restore the original
14192 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
14193 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
14194 Document why the difference is needed.
14195
69db191c 141962007-07-06 Richard Guenther <rguenther@suse.de>
14197
14198 * c-common.c (boolean_increment): Use correctly typed
14199 constant.
14200
40af8c1d 142012007-07-06 Richard Sandiford <richard@codesourcery.com>
14202
14203 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
14204 the topmost argument register is not also included in the save mask.
14205 (mips16e_collect_argument_save_p): Take a pointer to the argument
14206 register, rather than a pointer to the number of arguments.
14207 (mips16e_collect_argument_saves): Only include argument saves
14208 that aren't in the register mask.
14209
d86df71c 142102007-07-06 Uros Bizjak <ubizjak@gmail.com>
14211
0b6a85ec 14212 PR rtl-optimization/32450
d86df71c 14213 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
14214 to ensure that instructions are not moved into the prologue when
14215 profiling is on. Remove unused prologue_end variable.
14216 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
14217 as a scheduling barrier.
14218
fab3c371 142192007-07-06 Alexandre Oliva <aoliva@redhat.com>
14220
14221 PR debug/23551
14222 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14223 Disregard DECL_FROM_INLINE.
14224
c07054e9 142252007-07-05 Adam Nemet <anemet@caviumnetworks.com>
14226
14227 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
14228 IORing with a constant.
14229
37ad3318 142302007-07-05 Seongbae Park <seongbae.park@gmail.com>
14231
14232 PR rtl-optimization/32475
14233 * df-scan.c (df_def_record_1): Add a use of the stack pointer
14234 for every definition of the stack pointer.
14235
2e5b424c 142362007-07-05 Richard Earnshaw <rearnsha@arm.com>
14237
14238 * arm.c (vfp3_const_double_index): Copy signed results of
14239 REAL_VALUE_TO_INT into unsigned vars.
14240
73bb980c 142412007-07-05 Richard Guenther <rguenther@suse.de>
14242
14243 PR middle-end/32639
14244 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
14245 FUNCTION_TYPE.
14246 * tree-ssa.c (useless_type_conversion_p): Check canonical
14247 types early.
14248
a000256c 142492007-07-05 Anatoly Sokolov <aesok@post.ru>
14250
14251 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
14252 zero_extendhisi2): Change to define_insn_and_split.
14253 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
14254
9dc6d5bb 142552007-07-05 Paolo Bonzini <bonzini@gnu.org>
14256
14257 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
14258 pass_match_asm_constraints): New.
14259 * passes.c (init_optimization_passes): Add new pass.
14260 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
14261 * function.h (struct function): Add has_asm_statement bit.
14262 (current_function_has_asm_statement): New.
14263 * tree-pass.h (pass_match_asm_constraints): New.
14264
d59d4f21 142652007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
14266
14267 * config/mips/mips.c (mips_file_start): Avoid declaration
14268 after code.
14269
cf53f8ba 142702007-07-05 Sandra Loosemore <sandra@codesourcery.com>
14271
14272 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
14273
1fa1f15b 142742007-07-05 Uros Bizjak <ubizjak@gmail.com>
14275
14276 * rtl.def (NOTE): Change print format string to print
14277 operand 5 as a note insn name.
14278
5faca124 142792007-07-05 Sandra Loosemore <sandra@codesourcery.com>
14280 David Ung <davidu@mips.com>
14281
5faca124 14282 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
14283 * doc/invoke.texi: (MIPS Options): Document them.
14284
122a6978 142852007-07-05 Sandra Loosemore <sandra@codesourcery.com>
14286 David Ung <davidu@mips.com>
14287
14288 Add support for SmartMIPS ASE.
14289
14290 * optabs.c (expand_binop_directly): New, broken out from...
14291 (expand_binop): Here. Make it try rotating in the other
14292 direction even when the second operand isn't constant.
14293 * config/mips/mips.md (*lwxs): New.
14294 * config/mips/mips.opt (msmartmips): New.
14295 * config/mips/mips.c (mips_lwxs_address_p): New.
14296 (mips_rtx_costs): Make it recognize scaled indexed addressing.
14297 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
14298 __mips_smartmips when compiling for TARGET_SMARTMIPS.
14299 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
14300 (ISA_HAS_LWXS): New.
14301 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
14302 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
14303 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
14304 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
14305 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
14306 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
14307 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
14308
62612fe9 143092007-07-05 Dorit Nuzman <dorit@il.ibm.com>
14310
14311 * tree-vectorizer.c (new_loop_vec_info): Initialize
14312 LOOP_VINFO_COST_MODEL_MIN_ITERS.
14313 * tree-vectorizer.h (_loop_vec_info): Added new filed
14314 min_profitable_iters.
14315 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
14316 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
14317 * tree-vect-analyze.c (vect_analyze_operations): Set
14318 LOOP_VINFO_COST_MODEL_MIN_ITERS.
14319 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
14320 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
14321 Fix calculation of peel_iters_prologue. Move consideration of epilogue
14322 and prologue cost to after they are computed.
14323 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
14324 TARG_VEC_STMT_COST.
14325 (vect_model_simple_cost): Takes additional argument dt. Consider cost
14326 of creating vectors from scalars according to dt.
14327 (vect_model_store_cost): Likewise.
14328 (vectorizable_call): Use dt array instead of scalar dt. Call
14329 vect_model_simple_cost with additional argument dt.
14330 (vectorizable_assignment): Likewise.
14331 (vectorizable_operation): Likewise.
14332 (vectorizable_type_demotion): Likewise.
14333 (vectorizable_type_promotion): Likewise.
14334 (vectorizable_store): Use dt array instead of scalar dt. Call
14335 vect_model_store_cost with additional argument dt.
14336 (vect_do_peeling_for_loop_bound): Don't call
14337 vect_estimate_min_profitable_iters. Instead, lookup
14338 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
1fa1f15b 14339 "may not be profitable".
62612fe9 14340
9f9a2ca2 143412007-07-05 Dorit Nuzman <dorit@il.ibm.com>
14342
14343 PR testsuite/32014
14344 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
14345 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
14346 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
14347 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
14348
3e39e660 143492007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
14350
14351 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
14352 addressing modes cheaper.
14353
f221c0bd 143542007-07-05 Alexandre Oliva <aoliva@redhat.com>
14355
14356 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
14357 (dw_ranges_struct): Rename block_num to num. Adjust.
14358 (dw_ranges_by_label_struct): New.
14359 (ranges_by_label, ranges_by_label_allocated,
14360 ranges_by_label_in_use): New variables.
14361 (add_ranges_num): Factored most of the code out of...
14362 (add_ranges): ... this one. Rewrite in terms of the former.
14363 (add_ranges_by_labels): New.
14364 (output_ranges): Output by-label ranges.
14365 (dwarf2out_finish): Output range for multiple-section
14366 compile_unit. Output standard DW_AT_low_pc in addition to
14367 unexpected DW_AT_entry_pc.
14368
40256f4a 143692007-07-04 Daniel Berlin <dberlin@dberlin.org>
14370
14371 PR tree-optimization/32604
14372 PR tree-optimization/32606
1fa1f15b 14373
40256f4a 14374 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
14375 (compute_antic_safe): Removed.
14376 (ANTIC_SAFE_LOADS): Ditto.
14377 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
14378 (execute_pre): Don't call compute_antic_safe.
14379 (vuse_equiv): New function.
14380 (make_values_for_stmt): Use it
14381 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
14382 not always true.
14383
f86b386b 143842007-07-04 Anatoly Sokolov <aesok@post.ru>
14385
14386 PR target/31331
14387 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
14388 rather than a decl.
14389 (avr_attribute_table): Make "naked" attribute apply to function types
14390 rather than to decls.
14391 (avr_handle_fntype_attribute): New function.
14392
571b8105 143932007-07-04 Joseph Myers <joseph@codesourcery.com>
14394
14395 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
14396 after \.
14397
e91288e0 143982007-07-04 David Ung <davidu@mips.com>
d07cd931 14399 Joseph Myers <joseph@codesourcery.com>
e91288e0 14400
14401 * config/mips/mips.md (type): Add logical, signext and move.
14402 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
14403 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
14404 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
14405 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
14406 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
14407 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
14408 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
14409 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
14410 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
14411 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
14412 movv2sf_hardfloat_64bit): Use the new types.
14413 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
14414 *movdf_softfloat, *movdf_mips16): Use "multi".
14415 (extendqihi2): Replace with a define_expand.
14416 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
14417 Based on extend<SHORT:mode><GPR:mode>2 patterns.
14418 * config/mips/74k.md (r74k_int_logical): New reservation and
14419 bypasses.
14420 (r74k_int_arith): Remove "slt".
14421 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
14422 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
14423 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
14424 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
14425 reservations for "arith".
14426
f757850a 144272007-07-04 Richard Guenther <rguenther@suse.de>
14428
14429 * tree-ssa.c (useless_type_conversion_p): Add handling for
14430 scalar float and vector types. Only call the types_compatible_p
14431 langhook for aggregate types as last resort. Follow the
14432 rules.
14433
5d1f8880 144342007-07-04 Richard Guenther <rguenther@suse.de>
14435
14436 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
14437 the same as NOP_EXPR.
14438
154ee3b8 144392007-07-04 Nick Clifton <nickc@redhat.com>
14440
14441 * target.h (struct gcc_target): Add target_help field.
14442 * target-def.h (TARGET_HELP): New.
14443 (TARGET_INITIALIZER): Use TARGET_HELP.
14444 * opts.c (command_handle_option): Invoke target_help function, if
14445 defined, when the user has specified --target-help on the command
14446 line.
14447 * doc/invoke.texi: Mention that --target-help might print
14448 additional information.
14449 * doc/tm.texi: Document TARGET_HELP hook.
14450
14451 * arm.c (TARGET_HELP): Override default definition.
14452 (arm_target_help): New - display a wrapped list of cores and
14453 architectures supported.
14454
4c369c58 144552007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
14456
62f92e2c 14457 * config/v850/v850.c (expand_prologue): Make sure
4c369c58 14458 GEN_INT() argument is sign extended rather than zero extended.
14459 (expand_epilogue): Likewise.
14460 (output_move_double): Delete.
62f92e2c 14461 * config/v850/v850-protos.h (output_move_double): Delete.
14462 * config/v850/v850.md (movdi): Delete.
4c369c58 14463 (*movdi_internal): Delete.
14464 (movdf): Delete.
14465 (*movdf_internal): Delete.
14466
fc4b79ac 144672007-07-04 Richard Sandiford <richard@codesourcery.com>
14468
14469 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
14470 unless compiling RTP PIC.
14471
d9022390 144722007-07-04 Richard Guenther <rguenther@suse.de>
14473
14474 PR tree-optimization/32482
14475 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
14476 original ssa name if we didn't find a shift expression.
14477 Fix shift constant for bit zero test.
14478
a819eb1f 144792007-07-04 Richard Sandiford <richard@codesourcery.com>
14480
14481 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
14482
ab39d1bf 144832007-07-04 Richard Sandiford <richard@codesourcery.com>
14484
14485 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
14486 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
14487 * config/arm/vxworks.h (ASM_SPEC): Delete.
14488 (SUBTARGET_EXTRA_ASM_SPEC): Define.
14489
0ecb94cf 144902007-07-04 Sebastian Pop <sebpop@gmail.com>
14491
14492 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
14493 (DDR_REVERSED_P): New.
14494 * tree-data-ref.c (initialize_data_dependence_relation,
14495 build_classic_dist_vector): Set DDR_REVERSED_P.
14496
4ee81b10 144972007-07-04 Sebastian Pop <sebpop@gmail.com>
14498
14499 PR middle-end/32457
14500 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
14501 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
14502 init_omega_for_ddr_1): Use non conservative number of iterations
14503 estimations.
14504 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
14505 (analyze_siv_subscript): Remove FIXME and reinitialization of
14506 last_conflicts to chrec_dont_know.
14507 * testsuite/gfortran.dg/vect/pr32457.f90: New.
14508
9cdfb835 145092007-07-04 Douglas Gregor <doug.gregor@gmail.com>
14510
14511 * tree.c (maybe_canonicalize_argtypes): Improve description.
14512
3084bb6f 145132007-07-04 Douglas Gregor <doug.gregor@gmail.com>
14514
14515 * tree.c (maybe_canonicalize_argtypes): New.
14516 (build_function_type): Set canonical type.
14517 (build_method_type_directly): Ditto.
14518 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
14519 properly.
14520
2595dcbb 145212007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
14522
14523 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
14524 like PLUS_EXPR.
14525 (rewrite_use_nonlinear_expr): Likewise.
14526
4e1f92f7 145272007-07-03 Seongbae Park <seongbae.park@gmail.com>
14528
14529 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
14530
6daf3d3a 145312007-07-04 Ben Elliston <bje@au.ibm.com>
14532
7734155f 14533 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
14534 of this file.
14535
d9106e55 14536 * c-objc-common.c (c_types_compatible_p): Fix indentation.
14537
6daf3d3a 14538 * doc/tm.texi (Run-time Target): Capitalise "CPU".
14539 (Exception Handling): Likewise.
14540
990be1d5 145412007-07-03 Jan Hubicka <jh@suse.cz>
14542
14543 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
14544
c67acc43 145452007-07-03 Eric Christopher <echristo@apple.com>
14546
14547 * doc/cppopts.texi: Add conflicting option note to -dM.
14548 * doc/invoke.texi: Add note about possible conflicts with
14549 -E for -dCHARS and note that -dM will not produce
14550 any results if there is no machine dependent reorg.
14551
834615ab 145522007-07-03 Geoffrey Keating <geoffk@apple.com>
14553
14554 * tree.h (DECL_ALIGN): Back out previous change.
14555
c9eabb6d 145562007-07-03 Joseph Myers <joseph@codesourcery.com>
14557
14558 * configure.ac: Test for .dtprelword support on MIPS.
14559 * configure, config.in: Regenerate.
14560 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
14561 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
14562
b5a0636d 145632007-07-03 Julian Brown <julian@codesourcery.com>
14564
14565 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
14566 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
14567 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
14568 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
14569 capability.
14570 (all_fpus): Add FPUTYPE_VFP3.
14571 (fp_model_for_fpu): Add VFPv3 field.
14572 (arm_rtx_costs_1): Give cost to VFPv3 constants.
14573 (vfp3_const_double_index): New function. Return integer index of
14574 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
14575 isn't suitable.
14576 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
14577 and argument represents a valid RTX for a VFPv3 constant.
14578 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
14579 two instructions.
14580 (vfp_emit_fstmd): Similar, for fstmd.
14581 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
14582 constants, represented as integer indices.
14583 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
14584 VFP_REGNO_OK_FOR_DOUBLE macros.
14585 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
14586 (arm_file_start): Set float-abi attribute for VFPv3, and output
14587 correct ".fpu" assembler directive.
14588 (arm_dbx_register_numbering): Add FIXME.
14589 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
14590 (fputype): Add FPUTYPE_VFP3.
14591 (FIXED_REGISTERS): Add 32 registers for D16-D31.
14592 (CALL_USED_REGISTERS): Likewise.
14593 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
14594 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
14595 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
14596 (D7_VFP_REGNUM): New.
14597 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
14598 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
14599 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
14600 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
14601 (REG_ALLOC_ORDER): Adjust for VFPv3.
14602 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
14603 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
14604 VFP_LO_REGS, VFP_HI_REGS.
14605 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
14606 (IS_VFP_CLASS): Define macro.
14607 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
14608 IS_VFP_CLASS.
14609 (REGISTER_MOVE_COST): Likewise.
14610 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
14611 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
14612 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
14613 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
14614 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
14615 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
14616 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
14617 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
14618 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
14619 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
14620 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
14621 where appropriate for single-word registers.
14622 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
14623 As above. Fix type attributes.
14624 * config/arm/constraints.md (register_contraint "t"): Define.
14625 (register_constraint "w"): Change to D0-D15, or D0-D31 for
14626 VFPv3/NEON.
14627 (register_constraint "x"): Define.
14628 (constraint "Dv"): Define.
14629
752f0c67 146302007-07-03 Geoffrey Keating <geoffk@apple.com>
14631
14632 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
14633
920d59b0 146342007-07-03 Tom Tromey <tromey@redhat.com>
14635
14636 * c-parser.c (objc_pq_context): Removed.
14637 (objc_need_raw_identifier): Likewise.
14638 (c_parser) <objc_pq_context>: New field.
14639 <objc_need_raw_identifier>: Likewise.
14640 (OBJC_NEED_RAW_IDENTIFIER): Removed.
14641 (c_lex_one_token): Update.
14642 (c_parser_objc_protocol_definition): Update.
14643 (c_parser_objc_method_definition): Update.
14644 (c_parser_objc_methodproto): Update.
14645 (c_parser_declspecs): Update.
14646
d5db1563 146472007-07-03 David Ung <davidu@mips.com>
14648
14649 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
14650
784ebca0 146512007-07-03 David Ung <davidu@mips.com>
14652 Richard Sandiford <richard@codesourcery.com>
14653
14654 * doc/invoke.texi: Document -march=74kf3_2.
14655 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
14656 (TUNE_74K): Check for it.
14657 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
14658 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
14659 * config/mips/mips.md (cpu): Add 74kf3_2.
14660 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
14661 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
14662 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
14663 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
14664 74kf3_2 to the CPU list.
14665 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
14666 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
14667 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
14668 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
14669 (r74kf3_2_fxfer_from_c1): New insn reservations.
14670
3107df17 146712007-07-03 Richard Sandiford <richard@codesourcery.com>
14672 David Ung <davidu@mips.com>
14673
14674 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
14675 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
14676 and 74k[fx]. Document aliases for the new options.
14677 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
14678 (PROCESSOR_24KF2_1): ...this.
14679 (PROCESSOR_24KX): Rename to...
14680 (PROCESSOR_24KF1_1): ...this.
14681 (PROCESSOR_74KF): Rename to...
14682 (PROCESSOR_74KF2_1): ...this.
14683 (PROCESSOR_74KX): Rename to...
14684 (PROCESSOR_74KF1_1): ...this.
14685 (TUNE_74K): Update PROCESSOR_* names.
14686 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
14687 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
14688 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
14689 (mips_rtx_cost_data): Update processor names in comments.
14690 (mips_issue_rate): Update PROCESSOR_* names.
14691 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
14692 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
14693 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
14694 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
14695 Update cpu attribute names.
14696 (r24k_fpu_iss): Rename this reservation to...
14697 (r24kf2_1_fpu_iss): ...this and update all uses.
14698 (r24kx_fpu_iss): Rename this reservation to...
14699 (r24kf1_1_fpu_iss): ...this and update all uses.
14700 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
14701 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
14702 Update cpu attribute names.
14703
bd9c4764 147042007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
14705
14706 * config/m32r/constraints.md: New file.
14707 * config/m32r/m32r.c: Include tm-constrs.h.
14708 (small_data_operand): Use satisfies_constraint_* instead of macro.
14709 (addr24_operand, gen_compare): Likewise.
14710 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
14711 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
14712 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
14713 EXTRA_CONSTRAINT): Likewise.
14714 * config/m32r/m32r.md: Include constraints.md.
14715 (*movsi_insn): Use satisfies_constraint_* instead of macro.
14716 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
14717 * config/m32r/predicates.md (conditional_move_operand): Likewise.
14718 (two_insn_const_operand, int8_operand, uint16_operand,
14719 reg_or_int16_operand, reg_or_uint16_operand,
14720 reg_or_cmp_int16_operand, cmp_int16_operand,
14721 seth_add3_operand): Likewise.
14722
d2b0211b 147232007-07-03 Eric Christopher <echristo@gmail.com>
14724
14725 * libgcc2.h: Conditionally declare __bswapsi2 and
14726 __bswapdi2.
14727
d8b4f8df 147282007-07-03 H.J. Lu <hongjiu.lu@intel.com>
14729
14730 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
14731 defined.
14732
7f385964 147332007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14734
14735 PR target/28307
14736 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
14737 (__gthrw_pragma): Provide default definition.
14738 (__gthrw2): Use it.
14739 * gthr-posix.c (__gthrw_pragma): Define.
14740
6effd6da 147412007-07-03 Daniel Berlin <dberlin@dberlin.org>
14742
14743 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
14744 before declaring inequality.
14745
0f975d00 147462007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
14747
14748 * combine.c (recog_for_combine): Log the success or failure of
14749 matching new insn patterns against the machine description in
14750 detailed dumps.
14751
65ef61df 147522007-07-03 Revital Eres <eres@il.ibm.com>
14753
14754 * ddg.c (print_sccs): New function.
14755 (check_sccs): New function.
14756 (create_ddg_all_sccs): Use it.
14757 * ddg.h (print_sccs): Declare.
14758 * modulo-sched.c (sms_order_nodes): Call print_sccs.
14759
430be8e2 147602007-07-03 Uros Bizjak <ubizjak@gmail.com>
14761
14762 * targhooks.h (default_mode_for_suffix): New function declaration.
14763 * targhooks.c (default_mode_for_suffix): New default target hook.
14764 * target.h (struct c): New structure in the targetm struct.
14765 (mode_for_suffix): New target hook as part of struct c.
14766 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
14767 default_mode_for_suffix.
14768 (TARGET_C): New define.
14769 * c-lex.c: Include "target.h".
14770 (interpret_float): Use targetm.c.mode_for_suffix to determine
14771 the mode for a given non-standard suffix.
14772 Makefile.in (c-lex.o): Depend on $(TARGET_H).
14773
14774 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
14775 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
14776
14777 * doc/extend.texi (Floating Types): New node. Document __float80 and
14778 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
14779
3459f6a6 147802007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
14781
14782 PR target/32506
14783 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
14784 predicate instead of target_operand.
14785 (divsi3_i1_media, divsi3_media_2): Likewise.
14786
879f881c 147872007-07-02 Eric Botcazou <ebotcazou@adacore.com>
14788
14789 * tree.h (alias_sets_might_conflict_p): Rename into
14790 alias_sets_must_conflict_p.
14791 * alias.c (alias_sets_might_conflict_p): Likewise.
14792 (alias_sets_conflict_p): Use it.
14793 (objects_must_conflict_p): Likewise.
14794 * c-common.c (strict_aliasing_warning): Adjust.
14795
ed7dbf5d 147962007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
14797
14798 * rtlhooks.c (gen_lowpart_if_possible): Check for
14799 invalid subreg before calling gen_lowpart_SUBREG.
14800
0cbc4a01 148012007-07-02 Geoffrey Keating <geoffk@apple.com>
14802
14803 * config/darwin9.h: Add copyright notice.
14804 (LINK_COMMAND_SPEC): Add comment.
14805 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
14806 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
14807 DARWIN_LIBSYSTEM_HAS_UNWIND.
14808
de7ef844 148092007-07-02 Jakub Jelinek <jakub@redhat.com>
14810
14811 PR libgomp/32468
14812 * omp-low.c (check_combined_parallel): New function.
14813 (lower_omp_parallel): Call it via walk_stmts, set
14814 OMP_PARALLEL_COMBINED if appropriate.
14815 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
14816 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
14817 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
14818 don't consider it as combined parallel.
14819
fc5f9e0c 148202007-07-02 Richard Sandiford <richard@codesourcery.com>
14821
14822 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
14823 (gcc_tooldir): Likewise.
14824 * configure: Regenerate.
14825 * Makefile.in (libsubdir_to_prefix): New variable, based on the
14826 old configure.ac gcc_tooldir setting.
14827 (prefix_to_exec_prefix): New variable.
14828 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
14829 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
14830
8677cd08 148312007-07-02 Daniel Berlin <dberlin@dberlin.org>
14832
14833 Fix PR tree-optimization/32583
14834 Fix PR tree-optimization/32584
14835 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
14836 (phi_translate_set): Use phi_translate directly now.
14837 (make_values_for_stmt): Don't value number RHS if we already know
14838 it is constant.
14839
0f9736f3 148402007-07-02 Steve Ellcey <sje@cup.hp.com>
14841 Jim Wilson <wilson@specifix.com>
14842
14843 PR target/31684
14844 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
14845 copy_insn.
14846
0e13e859 148472007-07-02 Sandra Loosemore <sandra@codesourcery.com>
14848 Richard Sandiford <richard@codesourcery.com>
14849 Nigel Stephens <nigel@mips.com>
14850
14851 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
14852 (mips16e_output_save_restore): Declare.
14853 (mips16e_save_restore_pattern_p): Likewise.
14854 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
14855 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
14856 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
14857 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
14858 (BITSET_P): New global macro, extracted from...
14859 (mips_for_each_saved_reg): ...here.
14860 (mips16e_save_restore_info): New struct.
14861 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
14862 (mips16e_save_restore_regs): New variable.
14863 (mips_split_plus, mips16e_find_first_register): New functions.
14864 (mips16e_mask_registers): New function.
14865 (compute_frame_size): Expand the commentary before the function.
14866 Enforce the MIPS16e save and restore register range restrictions.
14867 Pad the general register save area at the low end.
14868 (mips16e_save_restore_reg, mips16e_build_save_restore)
14869 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
14870 (mips16e_output_save_restore, mips16e_collect_propagate_value)
14871 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
14872 New functions.
14873 (mips_expand_prologue, mips_expand_epilogue): Handle
14874 GENERATE_MIPS16E_SAVE_RESTORE.
14875 * config/mips/mips.md (*mips16e_save_restore): New pattern.
14876
58bc8309 148772007-07-02 Uros Bizjak <ubizjak@gmail.com>
14878
14879 PR tree-optimization/31966
14880 PR tree-optimization/32533
14881 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
14882 "basic_block" description as its third argument. Update function
14883 calls to get destination bb from "edge" argument. Save "cond" into
14884 aux field of the edge. Update prototype for changed arguments.
af962676 14885 (if_convertible_loop_p): Clear aux field of incoming edges if bb
14886 contains phi node.
58bc8309 14887 (find_phi_replacement_condition): Operate on incoming edges, not
14888 on predecessor blocks. If there is a condition saved in the
14889 incoming edge aux field, AND it with incoming bb predicate.
14890 Return source bb of the first edge.
14891 (clean_predicate_lists): Clean aux field of outgoing node edges.
14892 (tree_if_conversion): Do not initialize cond variable. Move
14893 variable declaration into the loop.
14894 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
14895 initializations of new_stmt, arg0 and arg1 variables.
14896
fbb5d9ac 148972007-07-02 Jakub Jelinek <jakub@redhat.com>
14898
14899 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
14900 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
14901
5bd657e9 149022007-07-02 Richard Guenther <rguenther@suse.de>
14903
14904 * tree-ssa.c (useless_type_conversion_p): Document
14905 future intent as defining the middle-end type system.
14906 Re-structure to call langhook last, group by type class,
14907 mark questionable parts.
14908
c8ca3ee7 149092007-07-02 Richard Guenther <rguenther@suse.de>
14910
14911 * tree-flow.h (types_compatible_p): Declare.
14912 * tree-ssa.c (types_compatible_p): New function.
14913 * ipa-type-escape.c (discover_unique_type): Use
14914 types_compatible_p instead of lang_hooks.types_compatible_p.
14915 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
14916 * tree-vn.c (expressions_equal_p): Likewise.
14917 * tree.c (fields_compatible_p): Likewise.
14918 * tree-ssa-dom.c (avail_expr_eq): Likewise.
14919 (cprop_operand): Use useless_type_conversion_p instead of
14920 lang_hooks.types_compatible_p.
14921 * tree-inline.c (setup_one_parameter): Likewise.
14922 (declare_return_variable): Likewise.
14923 * tree-nrv.c (tree_nrv): Likewise.
14924 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14925 (maybe_fold_offset_to_component_ref): Likewise.
14926 (maybe_fold_offset_to_reference): Likewise.
14927 * tree-ssa-copy.c (may_propagate_copy): Likewise.
14928 (merge_alias_info): Likewise.
14929 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14930 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
14931 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14932 * tree-tailcall.c (find_tail_calls): Likewise.
14933 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14934 * gimplify.c (canonicalize_addr_expr): Likewise.
14935 (fold_indirect_ref_rhs): Likewise.
14936 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
14937 (cpt_same_type): Likewise.
14938 (check_pointer_types_r): Swap parameters to cpt_same_type
14939 where appropriate.
14940 * fold-const.c (fold_convert): Revert fix for PR15988.
14941 * tree-inline.c (setup_one_parameter): Instead fix it here by
14942 using fold_build1 instead of fold_convert and checking for
14943 error_mark_node. Convert only if the conversion is necessary.
14944
6c7d78e4 149452007-07-02 Joseph Myers <joseph@codesourcery.com>
14946
14947 * configure.ac: Check for .gnu_attribute on Power.
14948 * configure: Regenerate.
14949 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
14950 attribute for floating-point ABI.
14951
bc5731b6 149522007-07-02 Ira Rosen <irar@il.ibm.com>
14953
14954 PR tree-optimization/32230
14955 PR tree-optimization/32477
14956 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
14957 address is a constant.
14958
7583e786 149592007-07-02 Richard Sandiford <richard@codesourcery.com>
14960
14961 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
14962 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
14963 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
14964 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
14965 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
14966 64-bit targets. Add support for *-elfoabi*.
14967 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
14968 different settings if $(tm_defines) does not select the EABI.
14969 (MULTILIB_EXCLUSIONS): Define in those circumstances.
14970 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
14971 (MIPS_ARCH_OPTION_SPEC): Likewise.
14972 (MIPS_ISA_LEVEL_SPEC): Likewise.
14973 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
14974 * config/mips/elfoabi.h: New file.
14975
548044d8 149762007-07-02 Richard Guenther <rguenther@suse.de>
14977
14978 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
14979 (useless_type_conversion_p): ... this.
14980 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
14981 (useless_type_conversion_p): ... this.
14982 * builtins.c (fold_builtin_memory_op): Rename
14983 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
14984 * tree-cfg.c (verify_expr): Likewise.
14985 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
14986 * tree-ssa-ccp.c (ccp_fold): Likewise.
14987 * tree-ssa-copy.c (may_propagate_copy): Likewise.
14988 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
14989 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14990 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
14991 * tree-ssa-pre.c (eliminate): Likewise.
14992 * tree-ssa.c (delete_tree_ssa): Likewise.
14993 (tree_ssa_useless_type_conversion): Likewise.
14994 * tree.c (build2_stat): Likewise.
14995
2a922cb6 149962007-07-01 Daniel Berlin <dberlin@dberlin.org>
14997
14998 Fix PR tree-optimization/32571
14999 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
15000 simplifying them.
15001
a0e3bc3a 150022007-07-01 Daniel Berlin <dberlin@dberlin.org>
15003
15004 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
15005 and other expected operations explicitly, change default to
15006 gcc_unreachable.
15007
beef0fb5 150082007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
15009
15010 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
15011 PARALLEL.
15012 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
15013 (tls_load_dot_plus_eight): Move the label number into the unspec.
15014 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
15015
bf780b7e 150162007-07-01 Andreas Schwab <schwab@suse.de>
15017
15018 * dwarf2out.c (initial_return_save): Define only if used.
15019
f22edc2d 150202007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
ec2fc131 15021
15022 Unreverting Richard's Revert of:
15023
15024 2007-06-27 Richard Sandiford <richard@codesourcery.com>
15025
15026 * dce.c (deletable_insn_p_1): New function, split out from...
15027 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
15028 specially, not those inside PARALLELs. Remove BODY argument
15029 and adjust recursive call accordingly.
15030 (prescan_insns_for_dce): Update call to delete_insn_p.
15031
56d2d05b 150322007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
15033 Revital Eres <eres@il.ibm.com>
15034
15035 * ddg.c (create_ddg_all_sccs): Fix missed
15036 initialization of scc_nodes.
15037
b30baf88 150382007-07-01 Uros Bizjak <ubizjak@gmail.com>
15039
15040 PR middle-end/32559
15041 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
15042 X + ~X to 1 only for INTEGRAL_TYPE_P type.
15043
0fd6d684 150442007-06-30 Joseph Myers <joseph@codesourcery.com>
15045
15046 * configure.ac: Check for .gnu_attribute on MIPS.
15047 * configure, config.in: Regenerate.
15048 * config/mips/mips.c (mips_file_start): If supported, output
15049 attribute for floating-point ABI.
15050
a44110d7 150512007-06-30 Uros Bizjak <ubizjak@gmail.com>
15052
15053 PR target/32433
15054 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
15055 (ffs_cmove): New expander to expand using ctz pattern.
15056 (*ffs_cmove): Remove pattern.
15057 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
15058 (ffsdi2): Expand using ctz pattern.
15059 (*ffs_rex64): Remove pattern.
15060
a179d6b2 150612007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15062
375316de 15063 PR rtl-optimization/32296
a179d6b2 15064 * pa.md (return): Delete pattern.
15065 (return_internal): Remove "(const_int 1)" from pattern.
15066 (epilogue): Use return_internal pattern for trivial returns.
15067 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
15068 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
15069
f75f5edd 150702007-06-30 Daniel Berlin <dberlin@dberlin.org>
15071
15072 * tree-ssa-pre.c (is_exception_related): New function
15073 (can_value_number_operation): Use it.
15074
9e9e6e3e 150752007-06-30 Daniel Berlin <dberlin@dberlin.org>
15076
15077 Fix PR tree-optimization/32540
15078 Fix PR tree-optimization/31651
15079
15080 * tree-ssa-sccvn.c: New file.
15081
15082 * tree-ssa-sccvn.h: Ditto.
15083
15084 * tree-vn.c: Include tree-ssa-sccvn.h
15085 (val_expr_paid_d): Removed.
15086 (value_table): Ditto.
15087 (vn_compute): Ditto.
15088 (val_expr_pair_hash): Ditto.
15089 (val_expr_pair_expr_eq): Ditto.
15090 (copy_vuses_from_stmt): Ditto.
15091 (vn_delete): Ditto.
15092 (vn_init): Ditto.
15093 (shared_vuses_from_stmt): Ditto.
15094 (print_creation_to_file): Moved up.
15095 (sort_vuses): Ditto.
15096 (sort_vuses_heap): Ditto.
15097 (set_value_handle): Make non-static.
15098 (make_value_handle): Ditto.
15099 (vn_add): Rewritten to use sccvn lookups.
15100 (vn_add_with_vuses): Ditto.
15101 (vn_lookup): Ditto (and second argument removed).
15102 (vn_lookup_with_vuses): Ditto.
15103 (vn_lookup_or_add): Ditto (and second argument removed);
15104 (vn_lookup_or_add_with_vuses): Ditto.
15105 (vn_lookup_with_stmt): New.
15106 (vn_lookup_or_add_with_stmt): Ditto.
15107 (create_value_handle_for_expr): Ditto.
15108
15109 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
15110 (seen_during_translate): New function.
15111 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
15112 (phi_trans_add): Ditto.
15113 (constant_expr_p): FIELD_DECL is always constant.
15114 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
15115 Use constant_expr_p.
15116 Avoid infinite recursion on mutually valued expressions.
15117 Change callers of vn_lookup_or_add.
15118 (phi_translate): New function.
15119 (compute_antic_safe): Allow phi nodes.
15120 (create_component_ref_by_pieces): Update for FIELD_DECL change.
15121 (find_or_generate_expression): Rewrite slightly.
15122 (create_expression_by_pieces): Updated for vn_lookup_or_add
15123 change.
15124 Update VN_INFO for new names.
15125 (insert_into_preds_of_block): Update for new names.
15126 (add_to_exp_gen): New function.
15127 (add_to_sets): Use vn_lookup_or_add_with_stmt.
15128 (find_existing_value_expr): Rewrite to changed vn_lookup.
15129 (create_value_expr_from): Ditto, and use add_to_exp_gen.
15130 (try_look_through_load): Removed.
15131 (try_combine_conversion): Ditto.
15132 (get_sccvn_value): New function.
15133 (make_values_for_phi): Ditto.
15134 (make_values_for_stmt): Ditto.
15135 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
15136 SCCVN.
15137 (init_pre): Update for SCCVN changes.
15138 (fini_pre): Ditto.
15139 (execute_pre): Ditto.
15140
15141 * tree-flow.h (make_value_handle): Declare.
15142 (set_value_handle): Ditto.
15143 (sort_vuses_heap): Ditto.
15144 (vn_lookup_or_add_with_stmt): Ditto.
15145 (vn_lookup_with_stmt): Ditto.
15146 (vn_compute): Remove.
15147 (vn_init): Ditto.
15148 (vn_delete): Ditto.
15149 (vn_lookup): Update arguments.
15150
15151 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
15152 (tree-vn.o): Ditto.
15153 (tree-ssa-sccvn.o): New.
15154 (OBJS-common): Add tree-ssa-sccvn.o
15155
3d053e06 151562007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15157
15158 PR c/4076
15159 * c-typeck.c (build_external_ref): Don't mark as used if called
15160 from itself.
15161 * calls.c (rtx_for_function_call): Likewise.
15162
a8b462d6 151632007-06-30 Richard Sandiford <richard@codesourcery.com>
15164
15165 Revert:
15166
15167 2007-06-27 Richard Sandiford <richard@codesourcery.com>
15168
15169 * dce.c (deletable_insn_p_1): New function, split out from...
15170 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
15171 specially, not those inside PARALLELs. Remove BODY argument
15172 and adjust recursive call accordingly.
15173 (prescan_insns_for_dce): Update call to delete_insn_p.
15174
028b5ee2 151752007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
06a8a63d 15176
15177 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
15178 (try_combine): Move potential calls to undo_all() so they happen
15179 before we commit to using the combined insns.
15180
028b5ee2 151812007-06-30 Jan Hubicka <jh@suse.cz>
ffbd194b 15182
b30baf88 15183 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
ffbd194b 15184 code.
15185
028b5ee2 151862007-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
cda6870f 15187
15188 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
15189 (cgraph_remove_unreachable_nodes): Likewise.
15190 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
15191 * ipa-inline.c (update_caller_keys): Cast according to the coding
15192 conventions.
15193 (cgraph_decide_recursive_inlining): Likewise.
15194 (cgraph_decide_inlining_of_small_function): Likewise.
15195 (try_inline): Likewise.
15196 (cgraph_decide_inlining_incrementally): Likewise.
15197 * ipa-pure-const.c (get_function_state): Likewise.
15198 (scan_function): Likewise.
15199 (analyze_function): Likewise.
15200 (static_execute): Likewise.
62f92e2c 15201 * ipa-reference.c (scan_for_static_refs): Likewise.
cda6870f 15202 (merge_callee_local_info): Likewise.
15203 (analyze_function): Use type safe memory macros.
15204 (static_execute): Likewise. Cast according to the coding conventions.
15205 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
15206 conventions.
15207 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
15208 names.
15209 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
15210 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
15211 variable names.
15212
4248fc32 152132007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
15214
2504c5e1 15215 PR middle-end/30024
4248fc32 15216 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
15217 for complex modes (both int and real).
15218
152192007-06-29 Jan Hubicka <jh@suse.cz>
68adecb2 15220
15221 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
15222
4248fc32 152232007-06-29 Jan Hubicka <jh@suse.cz>
eec33aca 15224
15225 PR middle-end/32372
15226 * cse.c (cse_insn): Avoid invalid sharing in between register note and
15227 the insn pattern.
15228
4248fc32 152292007-06-29 Anatoly Sokolov <aesok@post.ru>
a4c6e6a2 15230
15231 PR target/32335
15232 * config/avr/avr.c: Include dataflow header file.
15233 (expand_prologue): Adjust for prologue insn change.
15234 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
15235 inside a insn.
15236
c50b7e73 152372007-06-29 Richard Guenther <rguenther@suse.de>
020f74e7 15238
15239 PR middle-end/32493
15240 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
15241 during type verification.
15242
f6bee197 152432007-06-29 Jan Hubicka <jh@suse.cz>
15244
15245 * recog.c (validate_change_rtx_1): Unshare TO argument.
15246
887b0069 152472007-06-29 Uros Bizjak <ubizjak@gmail.com>
15248
15249 PR tree-optimization/24659
15250 * tree-vect-transform.c (vectorizable_call): Handle
15251 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
15252
15253 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
15254 * config/i386/i386.c (enum ix86_builtins)
15255 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
15256 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
15257 description.
15258 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
15259 const using def_builtin_const.
15260 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
15261 input operands in the same modes as the result.
15262 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
15263
788925c2 152642007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
15265
15266 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
15267 (df_set_dead_notes_for_mw): Likewise.
15268
499e523f 152692007-06-29 Eric Botcazou <ebotcazou@adacore.com>
15270
15271 * c-common.c (pointer_int_sum): Do the negation in sizetype.
15272
5f135410 152732007-06-28 DJ Delorie <dj@redhat.com>
15274
15275 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
15276
54f1c2a2 152772007-06-28 Geoffrey Keating <geoffk@apple.com>
15278
15279 * doc/invoke.texi (C++ Dialect Options): Document
15280 fvisibility-ms-compat.
15281 * c.opt (fvisibility-ms-compat): New.
15282
00de526b 152832007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
15284
15285 PR tree-opt/32417
15286 * tree-affine.c (aff_combination_add_elt): Handle
15287 pointer addition specially.
15288
90123b86 152892007-06-28 Jakub Jelinek <jakub@redhat.com>
15290
15291 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
15292 decl is non-external for AIX ABI.
15293
152942007-06-28 David Edelsohn <edelsohn@gnu.org>
15295
15296 * config/rs6000/predicates.md (current_file_function_operand):
15297 Ensure the symbol is non-external for AIX ABI.
15298
76c71f34 152992007-06-28 Nick Clifton <nickc@redhat.com>
15300
15301 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
15302 (fdce, fdse, fpredictive-commoning): Likewise.
15303
9a61fba1 153042007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15305
15306 PR other/31400
15307 * gcc.c (process_command): Recognize the new -static-libgfortran
15308 option.
15309
afde7ac7 153102007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
15311
15312 PR target/32418
15313 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
15314 Use a call clobbered hard reg instead of a pseudo reg.
15315
eb929862 153162007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
15317
15318 * config/sh/sh.md (load_gbr): Use correct operand constraint.
15319
0726838e 153202007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
15321
15322 PR target/32479
15323 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
15324 REG_LIBCALL and REG_RETVAL notes.
15325 (divsi3, mulsi3): Likewise.
15326 (mulhisi3): Likewise. Use emit_libcall_block.
15327 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
15328
d40c9fd1 153292007-06-27 Seongbae Park <seongbae.park@gmail.com>
15330
15331 PR rtl-optimization/32481
15332 * combine.c (adjust_for_new_dest): Rescan the changed insn.
15333
ce0cda2c 153342007-06-27 Richard Sandiford <richard@codesourcery.com>
15335
15336 * dce.c (deletable_insn_p_1): New function, split out from...
15337 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
15338 specially, not those inside PARALLELs. Remove BODY argument
15339 and adjust recursive call accordingly.
15340 (prescan_insns_for_dce): Update call to delete_insn_p.
15341
f549b28d 153422007-06-27 Richard Guenther <rguenther@suse.de>
15343
15344 PR middle-end/32492
15345 * tree.h (fold_convertible_p): Declare.
15346 * fold-const.c (fold_convertible_p): New function.
15347 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
15348 instead of lang_hooks.types_compatible_p.
15349
11d686e2 153502007-06-26 Jan Hubicka <jh@suse.cz>
15351
15352 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
15353 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
15354 early use validate_unshare_change.
15355 (reload_combine): Likewise.
15356 * recog.c (change_t): New field unshare.
15357 (validate_change_1): Rename from validate_change; add argument unshare.
15358 (validate_change): Turn into wrapper of validate_change_1; update
15359 prototype for bools.
15360 (validate_unshare_change): New.
15361 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
15362 calls of df_insn_rescan.
15363 * recog.h (validate_change): Replace ints by bools.
15364 (validate_unshare_change): Declare.
15365
f0bd9572 153662007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
15367
d07cd931 15368 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
f0bd9572 15369
940ddc5c 153702007-06-26 Steve Ellcey <sje@cup.hp.com>
15371
15372 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
15373
4eb7a440 153742007-06-25 Jan Hubicka <jh@suse.cz>
15375
15376 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
15377 uninlinable call.
15378 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
15379 cgraph_decide_inlining_incrementally): Move uninlinability checks to
15380 places other call site specific checks are performed.
15381
c39fe4aa 153822007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
15383
15384 PR tree-opt/32421
15385 * tree-vect-transform.c (vectorizable_operation): Convert
15386 POINTER_PLUS_EXPR over to PLUS_EXPR.
15387
c559c639 153882007-06-25 Chao-ying Fu <fu@mips.com>
15389
15390 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
15391 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
15392 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
15393 Document GET_MODE_IBIT, and GET_MODE_FBIT.
15394
15395 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
15396 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
15397 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
15398 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
15399 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
15400 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
15401 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
15402 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
15403 ALL_FIXED_POINT_MODE_P): New define.
15404 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
15405 MODE_UACCUM.
15406 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
15407
15408 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
15409 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
15410 MODE_VECTOR_UACCUM): New mode classes.
15411
15412 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
15413 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
15414 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
15415 USA, UDA, and UTA.
15416
15417 * genmodes.c (struct mode_data): Add ibit and fbit fields.
15418 (blank_mode): Initialize ibit and fbit.
15419 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
ed69c853 15420 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
15421 MODE_UACCUM.
c559c639 15422 (new_adjust): Change required_class to required_class_from and
15423 required_class_to for testing within a range.
15424 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
15425 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
15426 MODE_VECTOR_UACCUM.
15427 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
15428 (make_fixed_point_mode): New.
15429 (_ADD_ADJUST): Change C to C1 and C2.
15430 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
15431 use a range for machine classes.
15432 (ADJUST_IBIT, ADJUST_FBIT): New.
15433 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
15434 CONST_MODE_FBIT.
15435 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
15436 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
15437 Emit adjustment for ibit and fbit.
15438 (emit_mode_ibit, emit_mode_fbit): New.
15439 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
15440
5e791c11 154412007-06-25 Nathan Froyd <froydnj@codesourcery.com>
15442
15443 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
15444 as the source of the set.
15445
979e5a71 154462007-06-25 Roman Zippel <zippel@linux-m68k.org>
15447
15448 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
15449 FP_REGNO_P): Use IN_RANGE.
15450 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
15451 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
15452 (DATA_REG_P): Use DATA_REGNO_P.
15453 (FP_REG_P): Use FP_REGNO_P.
15454 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
15455 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
15456 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
15457
6e8d6e86 154582007-06-24 Jan Hubicka <jh@suse.cz>
15459
15460 PR middle-end/30563
15461 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
15462
5bd7f4f4 154632007-06-24 Sebastian Pop <sebpop@gmail.com>
15464
15465 PR middle-end/32461
15466 * fold-const.c (fold_binary): Strip nops of operand 0
15467 of BIT_NOT_EXPR before calling operand_equal_p.
15468 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
15469 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
15470
098a01e7 154712007-06-23 Mark Mitchell <mark@codesourcery.com>
15472
15473 * doc/extend.texi: Document that dllimport and dllexport imply
15474 default visibility.
15475 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
15476 imported or exported declaration, including type declarations.
15477 * c-common.c (handle_visibility_attribute): Check for conflicts
15478 with dllimport/dllexport.
15479 (c_determine_visibility): Handle dllimport/dllexport as an
15480 explicit visibility atttribute.
15481
28d5335f 154822007-06-23 Richard Guenther <rguenther@suse.de>
15483
15484 PR tree-optimization/16876
15485 PR middle-end/29478
15486 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
15487 for CALL_EXPRs.
15488 * tree-inline.c (initialize_inlined_parameters): Do not call
15489 lang_hooks.tree_inlining.convert_parm_for_inlining.
15490 * cgraphbuild.c (initialize_inline_failed): Set inline failed
15491 reason for mismatched types.
15492 * gimplify.c (gimplify_call_expr): Verify the call expression
15493 arguments match the called function type signature. Otherwise
15494 mark the call expression to be not considered for inlining
15495 using CALL_CANNOT_INLINE_P flag.
15496 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
15497 edges call expression.
15498 (cgraph_decide_inlining_of_small_function): Likewise.
15499 (cgraph_decide_inlining): Likewise.
15500 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15501 Remove define.
15502 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
15503 * c-typeck.c (c_convert_parm_for_inlining): Remove.
15504 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
15505 Remove declaration.
15506 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
15507 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
15508 Remove.
15509 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
15510 convert_parm_for_inlining member.
15511
2ca2ec2e 155122007-06-23 Richard Earnshaw <rearnsha@arm.com>
15513
15514 PR target/31152
15515 * arm.md (negscc): Match the correct operand for optimized LT0 test.
15516 Remove optimization for GT.
15517
d49ffcf4 155182007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
15519
15520 PR middle-end/32437
b1d106b3 15521 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
d49ffcf4 15522 is a PARALLEL.
15523 (prescan_insns_for_dce): Add extra parameter.
15524
f5224fc9 155252007-06-23 Jan Hubicka <jh@suse.cz>
15526
15527 PR middle-end/31541
15528 * gimplify.c (mark_addressable): New function.
15529 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
15530
887b0069 155312007-06-22 Uros Bizjak <ubizjak@gmail.com>
e8d1dcf2 15532
15533 PR middle-end/32374
15534 * expr.c (store_constructor): Do not clobber non-zeroed memory.
15535
785301ff 155362007-06-22 Uros Bizjak <ubizjak@gmail.com>
15537
15538 PR target/32413
15539 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
15540 moves between MMX/SSE registers to at least 8 units to prevent
15541 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
15542
9d6220ce 155432007-06-22 Uros Bizjak <ubizjak@gmail.com>
15544
15545 * config/i386/i386.c (override_options): Correct x86_sahf
15546 setting condition.
15547
4abe7848 155482007-06-21 David Daney <ddaney@avtrex.com>
15549
85c6e16c 15550 PR target/32406
4abe7848 15551 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
15552 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
15553 (exception_receiver): Renamed to ...
15554 (nonlocal_goto_receiver): ... this.
15555
c9a4672f 155562007-06-22 Roman Zippel <zippel@linux-m68k.org>
15557
15558 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
15559 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
15560 partial register accesses.
15561
394e718d 155622007-06-21 Adam Nemet <anemet@caviumnetworks.com>
15563
15564 * fold-const.c (debug_fold_checksum): Move it under
15565 ENABLE_FOLD_CHECKING.
15566
2bf4108d 155672007-06-21 Sebastian Pop <sebpop@gmail.com>
15568
15569 PR middle-end/20623
15570 * tree.h (debug_fold_checksum): Declared.
15571 * fold-const.c (build_fold_addr_expr_with_type_1): New.
15572 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
15573 build_fold_addr_expr_with_type_1.
15574 (fold_addr_expr, debug_fold_checksum): New.
15575 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
15576 (fold_unary, fold_comparison, split_address_to_core_and_offset):
15577 Use fold_addr_expr.
15578
437fd8c0 155792007-06-21 Sebastian Pop <sebpop@gmail.com>
15580
15581 PR tree-optimization/19590
15582 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
15583 of scev is a constant.
437fd8c0 15584
f5f2a0d1 155852007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
15586
d07cd931 15587 * df-problems.c (df_note_bb_compute): Made computation of live
f5f2a0d1 15588 info consistent with df_lr.
15589
079589a4 155902007-06-21 Richard Guenther <rguenther@suse.de>
15591
15592 PR tree-optimization/32453
15593 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
15594 for pointer anti-range.
15595
a3dadcde 155962007-06-21 H.J. Lu <hongjiu.lu@intel.com>
15597
15598 * config/i386/i386.c (processor_target_table): Increase maximum
15599 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
15600 default 64bit.
15601
15602 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
15603 byte alignment if > 8 byte alignment is preferred.
15604 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15605
c37594c7 156062007-06-21 Jakub Jelinek <jakub@redhat.com>
15607
a849aec4 15608 PR tree-optimization/31866
15609 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
15610 if ASM_EXPR's input is not a SSA_NAME.
15611
c37594c7 15612 PR middle-end/32362
15613 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
15614 but decl is a global var, instead return decl.
15615 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
15616 even for is_global_var decls, if they are private in some outer
15617 context.
15618
ad330780 156192007-06-21 Richard Guenther <rguenther@suse.de>
15620
15621 PR tree-optimization/32451
15622 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
15623
2f8b8488 156242007-06-21 Christian Bruel <christian.bruel@st.com>
15625
15626 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
15627 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
15628 (push_regs): Changed saving order or banked registers.
15629 (sh_expand_epilogue): Likewise.
15630 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
15631 (FIRST_BANKED_REG): Likewise.
15632 (LAST_BANKED_REG): Likewise.
15633 * config/sh/sh.md (banked) New attribute.
15634 (in_delay_slot): Check banked attribute.
15635
06d8daf4 156362007-06-20 Sebastian Pop <sebpop@gmail.com>
15637
15638 PR tree-optimization/32075
15639 * tree-data-ref.c (subscript_dependence_tester_1,
15640 analyze_miv_subscript, analyze_overlapping_iterations,
15641 add_distance_for_zero_overlaps, build_classic_dist_vector,
15642 subscript_dependence_tester_1, analyze_overlapping_iterations,
15643 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
15644 compute_affine_dependence, compute_all_dependences): Pass loop_nest
15645 to evolution_function_is_affine_multivariate_p.
15646
5736c998 156472007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
15648
15649 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
15650
1cc2a3ba 156512007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
15652
15653 PR target/32335
15654 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
15655 for TARGET_A16.
15656 * config/m32c/prologue.md (epilogue_exitd_16): New.
15657 (epilogue_reit_16): New.
15658 (epilogue_exitd): Rename to epilogue_exitd_24.
15659 (epilogue_reit): Rename to epilogue_reit_24.
15660
bdeaf25e 156612007-06-20 Seongbae Park <seongbae.park@gmail.com>
d07cd931 15662 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
bdeaf25e 15663
15664 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
15665 New counters.
15666 * haifa-sched.c (queue_to_ready): Don't requeue next insn
15667 if dbg_cnt (sched_insn) reaches the limit.
15668 (choose_ready): New parameter INSN_PTR and new return value.
15669 (schedule_block): Handle dbg_cnt (sched_insn). Handle
15670 the new return value from choose_ready.
15671 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
15672 (rest_of_handle_global_alloc): New global_alloc_at_func.
15673
c95895c9 156742007-06-20 Adam Nemet <anemet@caviumnetworks.com>
15675
15676 PR tree-optimization/25737
15677 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
15678 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
15679 * tree-flow.h (struct fieldoff): Add new field alias_set.
15680 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
15681 argument addressable_type. Set alias_set of fieldoff.
15682 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
15683 (create_overlap_variables_for): Pass alias_set from fieldoff to
15684 create_sft.
15685 * alias.c (get_alias_set): Use alias_set from SFT if set.
15686
82231ac7 156872007-06-20 Hui-May Chang <hm.chang@apple.com>
15688
15689 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
15690 of a variable as an unsigned HOST_WIDE_INT integer.
15691
605dec4e 156922007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
15693
15694 PR rtl-optimization/32405
15695 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
15696
c5dc094f 156972007-06-20 Jakub Jelinek <jakub@redhat.com>
15698
cc142ae5 15699 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
15700
07311427 15701 PR middle-end/31959
15702 * builtins.c: Include diagnostic.h.
15703 (expand_builtin_expect): Make gcc_assert more permissive.
15704 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
15705
a36f02c9 15706 PR inline-asm/32109
15707 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
15708 and !allows_mem.
15709
c5dc094f 15710 PR middle-end/32285
15711 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
15712 if ACCUMULATE_OUTGOING_ARGS.
15713
0eb1d2b3 157142007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
15715
15716 * config/m68hc11/m68hc11.c: Include dataflow header file.
15717 (m68hc11_reorg): Port to dataflow.
15718
2e8432f2 157192007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
deb2741b 15720
15721 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
15722 (struct df_problem.free_blocks_on_set_blocks): New field.
15723 (struct dataflow.optional_p): New field.
15724 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
15725 (df_live_set_all_dirty): New function.
15726 * df-scan.c (df_scan_alloc): Initialize optional_p.
15727 (problem_SCAN): Initialize free_blocks_on_set_blocks.
15728 * df-core.c (df_set_blocks): Removed use of
15729 DF_FIRST_OPTIONAL_PROBLEM. Now uses
15730 df_problem.free_blocks_on_set_blocks to determine which blocks are
15731 recycled.
15732 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
15733 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
15734 uses dataflow.optional_p to determine if problem should be
15735 deleted.
15736 (rest_of_handle_df_initialize): Only start live problem if
15737 -02 or above.
15738 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
15739 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
15740 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
15741 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
48dc2227 15742 problem_NOTE): Initialize free_blocks_on_set_blocks.
deb2741b 15743 (df_lr_bb_local_compute): Recompute luids if df_live problem is
15744 not active.
15745 (df_live_set_all_dirty, df_note_alloc): New function.
15746 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
15747 df_get_live_*.
15748 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
15749 * postreload.c (reload_combine): Ditto.
15750 * cse.c (cse_extended_basic_block): Ditto.
15751 * regmove.c (mark_flags_life_zones): Ditto.
15752 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
15753 erase_matching_seqs): Ditto.
15754 * bt-load.c (compute_defs_uses_and_gen): Ditto.
15755 * integrate (allocate_initial_values): Ditto.
15756 * combine.c (reg_dead_at_p): Ditto.
15757 * resource.c (mark_target_live_regs): Ditto.
15758 * sched-rgn.c (check_live_1, update_live_1): Ditto.
15759 * config/sh/sh.c (find_r0_life_regions): Ditto.
15760 * global.c (rest_of_handle_global_alloc): Only add back df_live
15761 for -O > 1.
15762 * local-alloc.c (rest_of_handle_local_alloc): Only remove
15763 df_live for -O > 1.
15764 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
15765 df_get_live_*.
15766 (if_convert): Make sure df_live is there at -O == 1.
15767 (pass_if_after_combine): Cleanup flags.
15768 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
15769 is there at -O == 1.
15770
a650636a 157712007-06-19 Seongbae Park <seongbae.park@gmail.com>
15772
15773 * config/arm/arm.c (arm_get_frame_offsets): Set
15774 offsets->locals_base to avoid negative stack size.
15775 (thumb1_expand_prologue): Assert on negative stack size.
15776
27eda240 157772007-06-19 Sebastian Pop <sebpop@gmail.com>
df09cc3d 15778
15779 PR tree-optimization/32367
15780 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
15781 of the chrec has no evolution in that loop.
15782 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
15783
d8002fbc 157842007-06-19 Bob Wilson <bob.wilson@acm.org>
15785
15786 * config/xtensa/xtensa.c: Include "df.h".
ed69c853 15787 (xtensa_builtin_saveregs): Use adjust_address instead of
15788 change_address.
d8002fbc 15789 (xtensa_va_start): Invoke make_tree with sizetype for
15790 expand_builtin_saveregs and then convert the result to a pointer.
15791 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
15792 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
15793 Subtract argument size from index value as integers and then use
15794 POINTER_PLUS_EXPR to add the result to the array address.
15795
97678fce 157962007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
15797
15798 PR target/32335
15799 * config/m32c/m32c.c: Include dataflow header file.
15800 (m32c_emit_prologue): Adjust for prologue insn change.
15801 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
15802 once inside a PARALLEL. Assume frame size passed in operand 0
15803 includes space to save the fb register.
15804 (prologue_enter_24): Likewise.
15805 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
15806
c82ceb32 158072007-06-19 David Daney <ddaney@avtrex.com
15808
15809 PR target/32313
15810 * config/mips/mips.md (cprestore): Mark $gp as used.
15811
33aca02a 158122007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
15813
15814 PR target/32369
15815 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
15816 (frv_ifcvt_modify_insn): Likewise.
15817
26df3050 158182007-06-19 Richard Guenther <rguenther@suse.de>
15819
15820 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
15821 only handle positive offsets that fit in a HOST_WIDE_INT.
15822
158232007-06-19 Uros Bizjak <ubizjak@gmail.com>
24355ccb 15824
7aefc96d 15825 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
15826 result of rsqrt insn for zero input argument to avoid NaN.
24355ccb 15827
2337199f 158282007-06-19 Richard Guenther <rguenther@suse.de>
15829
15830 PR middle-end/31950
15831 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
15832
770b1ac4 158332007-06-19 Jakub Jelinek <jakub@redhat.com>
15834
15835 PR tree-optimization/32353
15836 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
15837
82dda0a4 158382007-06-19 Nick Clifton <nickc@redhat.com>
15839
b1d106b3 15840 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
82dda0a4 15841
69ddc71a 158422007-06-18 Uros Bizjak <ubizjak@gmail.com>
15843
15844 PR target/32389
15845 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
15846 * config/i386/i386.c (assign_386_stack_local): Assert that
15847 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
15848 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
15849 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
15850 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
15851
3d7707ba 158522007-06-18 Steve Ellcey <sje@cup.hp.com>
15853
15854 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
15855
65a5a1a8 158562007-06-18 Seongbae Park <seongbae.park@gmail.com>
15857
15858 PR rtl-optimization/32321
15859 * gcse.c (replace_store_insn): Update the note before
15860 calling emit_insn_after.
b445418c 15861
2195f002 158622007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15863
15864 PR middle-end/32355
15865 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
15866 cse_main.
15867 * df-problems.c (df_note_bb_compute): Fix dumping info.
15868
e12df6c7 158692007-06-18 Kazu Hirata <kazu@codesourcery.com>
15870
15871 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
15872 insn with emit_jump_insn.
15873
2cd360b6 158742007-06-18 Uros Bizjak <ubizjak@gmail.com>
15875
15876 PR tree-optimization/32383
15877 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
15878 * targhooks.h (default_builtin_reciprocal): Update prototype.
15879 * target.h (struct gcc_target): Update builtin_reciprocal.
15880 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
15881 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
15882 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
15883 when fndecl is in BUILT_IN_MD class.
15884 (execute_convert_to_rsqrt): Ditto.
15885
15886 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
15887 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
15888 Convert BUILT_IN_SQRTF code only when md_fn is false.
15889
e9ffa5ca 158902007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15891
15892 * bt-load.c (move_btr_def): Fix the order of arguments
15893 to validate_replace_rtx.
15894
5f61e586 158952007-06-18 Nathan Sidwell <nathan@codesourcery.com>
15896
15897 * config/m68k/m68k-devices.def: Add 54450..54455.
15898
8373dacd 158992007-06-17 Uros Bizjak <ubizjak@gmail.com>
15900
15901 PR rtl-optimization/32366
15902 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
15903 FLOAT_EXTEND]: Prevent non-scalar modes from entering
15904 significand_size.
15905
73d0c05c 159062007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
15907
15908 PR middle-end/32349
15909 * modulo-sched (generate_reg_moves): Added rescan parameter and if
15910 this is true, rescan insn being modified.
15911 (sms_schedule): Added rescan parameter.
15912 (rest_of_handle_sms): Moved freeing of dominance info to before
15913 getting out of cfg_layout.
15914
da8fbdfe 159152007-06-17 Nathan Sidwell <nathan@codesourcery.com>
15916
15917 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
15918 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
15919 appropriate.
15920
b831ff4e 15921 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
15922 FL_CF_EMAC from the entry for isac.
15923
7f2330d5 15924 * config/m68k/predicates.md (const_call_operand): Adjust comment.
15925 (const_sibcall_operand): New.
15926 (sibcall_operand): Use it.
15927 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
15928 (m68k_isas): ISAC does not imply FPU or EMAC.
15929 (override_options): Add ISA_C logic for symbolic jump & call.
15930
7ef911ad 159312007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
15932
15933 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
15934 return mode from the builtin itself.
15935 (sparc_fold_builtin): Fix cast of zero constant.
15936
c3cc39c4 159372007-06-16 Uros Bizjak <ubizjak@gmail.com>
15938
15939 * targhooks.c (default_builtin_reciprocal): New default target hook.
15940 * targhooks.h (default_builtin_reciprocal): Add prototype.
15941 * hooks.c (hook_tree_tree_bool_null): Remove hook.
15942 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
15943 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
15944 default_builtin_reciprocal.
15945
e174638f 159462007-06-16 Uros Bizjak <ubizjak@gmail.com>
15947
15948 PR middle-end/31723
15949 * hooks.c (hook_tree_tree_bool_null): New hook.
15950 * hooks.h (hook_tree_tree_bool_null): Add prototype.
15951 * tree-pass.h (pass_convert_to_rsqrt): Declare.
15952 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
15953 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
15954 and convert it to reciprocal a*rfunc(b).
15955 (execute_convert_to_rsqrt): New function.
15956 (gate_convert_to_rsqrt): New function.
15957 (pass_convert_to_rsqrt): New pass definition.
15958 * target.h (struct gcc_target): Add builtin_reciprocal.
15959 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
15960 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
15961 TARGET_BUILTIN_RECIPROCAL.
15962 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
15963
15964 * config/i386/i386.h (TARGET_RECIP): New define.
15965 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
15966 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
15967 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
15968 and not optimizing for size.
15969 (*rcpsf2_sse): New insn pattern.
15970 (*rsqrtsf2_sse): Ditto.
15971 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
15972 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
15973 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
15974 and not optimizing for size.
15975 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
15976 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
15977 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
15978 and not optimizing for size.
15979 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
15980 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
15981 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
15982 and not optimizing for size.
15983 (*sse_rsqrtv4sf2): Do not export.
15984 (sqrtv4sf2): Ditto.
15985 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
15986 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
15987 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
15988 and not optimizing for size.
15989 (sqrtv4sf2): Ditto.
15990 * config/i386/i386.opt (mrecip): New option.
15991 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
15992 (ix86_emit_swsqrtsf): Ditto.
15993 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
15994 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
15995 builtin definition.
15996 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
15997 ix86_expand_unop1_builtin.
15998 (ix86_emit_swdivsf): New function.
15999 (ix86_emit_swsqrtsf): Ditto.
16000 (ix86_builtin_reciprocal): New function.
16001 (TARGET_BUILTIN_RECIPROCAL): Use it.
16002 (ix86_vectorize_builtin_conversion): Rename from
16003 ix86_builtin_conversion.
16004 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
16005 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
16006 "i386 and x86_64 Options" section.
16007 (Intel 386 and AMD x86_64 Options): Document -mrecip.
16008
0de36bdb 160092007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
d07cd931 16010 Zdenek Dvorak <dvorakz@suse.cz>
16011 Richard Guenther <rguenther@suse.de>
16012 Kaz Kojima <kkojima@gcc.gnu.org>
0de36bdb 16013
16014 * tree-vrp.c (compare_values_warnv): Convert val2 to
16015 the type of val1.
16016 (extract_range_from_assert): Create
16017 POINTER_PLUS_EXPR for pointer types.
16018 (extract_range_from_binary_expr): Handle
16019 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
16020 for pointer types.
16021 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
16022 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
16023 POINTER_PLUS_EXPR as PLUS_EXPR.
16024 (number_of_iterations_lt_to_ne):
16025 For pointer types, use sizetype when
16026 creating MINUS_EXPR/PLUS_EXPRs.
16027 (assert_loop_rolls_lt): For pointer types, use sizetype when
16028 creating MINUS_EXPR/PLUS_EXPRs.
16029 (number_of_iterations_le): Likewise.
16030 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
16031 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
16032 like PLUS_EXPR and MINUS_EXPR.
16033 * tree-pretty-print.c (dump_generic_node): Handle
16034 POINTER_PLUS_EXPR.
16035 (op_prio): Likewise.
16036 (op_symbol_1): Likewise.
16037 * optabs.c (optab_for_tree_code): Likewise.
16038 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
16039 specially.
16040 * tree-tailcall.c (process_assignment): Mention
16041 POINTER_PLUS_EXPR in a TODO comment.
16042 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
16043 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
16044 not used with a pointer and an integer type.
16045 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
16046 increment using chrec_convert_rhs instead of chrec_convert.
16047 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
16048 PLUS_EXPR except for the right hand side's type will be
16049 sizetype.
16050 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
16051 (fold_used_pointer_cast): Kill.
16052 (pointer_offset_p): Kill.
16053 (fold_used_pointer): Kill.
16054 (pointer_used_p): Kill.
16055 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
16056 call fold_used_pointer.
16057 (instantiate_parameters_1): Convert the increment
16058 using chrec_convert_rhs instead of chrec_convert.
16059 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
16060 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
16061 instead of PLUS_EXPR.
16062 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
16063 PLUS_EXPR for pointers.
16064 (std_gimplify_va_arg_expr): Likewise.
16065 (fold_builtin_memory_op): Likewise.
16066 (fold_builtin_strstr): Likewise.
16067 (fold_builtin_strchr): Likewise.
16068 (fold_builtin_strrchr): Likewise.
16069 (fold_builtin_strpbrk): Likewise.
16070 (expand_builtin_memory_chk): Likewise.
16071 (fold_builtin_memory_chk): Likewise.
16072 (std_expand_builtin_va_start): Use
16073 sizetype for the call to make_tree and then convert
16074 to the pointer type.
16075 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
16076 instead of PLUS_EXPR for adding to a pointer.
16077 (std_gimplify_va_arg_expr): Use fold_build2 for
16078 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
16079 the operands to sizetype first and then cast the BIT_AND_EXPR
16080 back to the pointer type.
16081 * fold-const.c (build_range_check): Handle pointer types
16082 specially.
16083 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
16084 of PLUS_EXPR's. Make sure the offset is converted to
16085 sizetype.
16086 (try_move_mult_to_index): Strip the NOPs from the offset.
16087 Remove code argument and replace all uses with PLUS_EXPR.
16088 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
16089 specially. Don't use a pointer type for MINUS_EXPR.
16090 (fold_unary): Handle for (T1)(X op Y),
16091 only p+ as that is the only as that can be handled for
16092 binary operators now.
16093 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
16094 POINTER_PLUS_EXPR.
16095 <case PLUS_EXPR>: Add folding of PTR+INT into
16096 PTR p+ INT.
16097 Don't call try_move_mult_to_index.
16098 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
16099 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
16100 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
16101 Don't call try_move_mult_to_index.
16102 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
16103 (tree_expr_nonzero_p): Likewise.
16104 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
16105 of PLUS_EXPR for the complex expression folding.
16106 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
16107 first chrec is a pointer type, then the second should
16108 be sizetype and not the first's type.
16109 For POINTER_PLUS_EXPR, use a different right hand side type.
16110 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
16111 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
16112 different right hand side type.
16113 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
16114 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
16115 instead of PLUS_EXPR.
16116 When either operand is zero, convert the other operand.
16117 (chrec_apply): Use chrec_convert_rhs
16118 on the argument x instead of chrec_convert.
16119 (reset_evolution_in_loop): For pointer types, the new_evol
16120 should be sizetype.
16121 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
16122 different right hand side type.
16123 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
16124 (chrec_convert_rhs): New function.
16125 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
16126 different right hand side type.
16127 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
16128 * tree-chrec.h (chrec_convert_rhs): New prototype.
16129 (build_polynomial_chrec): For pointer types, the right hand
16130 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
16131 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
16132 Remove subtraction case as it is always addition now.
16133 Make sure the offset is converted to sizetype.
16134 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
16135 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
16136 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
16137 PLUS_EXPR in pointer type.
16138 Handle POINTER_PLUS_EXPR.
16139 (tree_to_aff_combination): Likewise.
16140 (force_expr_to_var_cost): Likewise.
16141 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
16142 instead of PLUS_EXPR for pointers.
16143 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
16144 instead of PLUS_EXPR of pointer types.
16145 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
16146 as PLUS_EXPR.
16147 (check_va_list_escapes): Likewise.
16148 (check_all_va_list_escapes): Likewise.
16149 * dwarf2out.c (loc_descriptor_from_tree_1):
16150 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
16151 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
16152 (string_constant): Likewise.
16153 * tree-ssa-address.c (tree_mem_ref_addr): When adding
16154 the offset to the base, use POINTER_PLUS_EXPR.
16155 (add_to_parts): Convert the index to sizetype.
16156 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
16157 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
16158 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
16159 Offset only holds something for PLUS_EXPR.
16160 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
16161 a PLUS_EXPR.
16162 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
16163 and not PLUS_EXPR.
16164 (analyze_accesses_for_modify_stmt): Likewise.
16165 Remove comment about the type being integral type as it is
16166 wrong now.
16167 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
16168 PLUS_EXPR.
16169 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
16170 and not PLUS_EXPR.
16171 Correct the type which the artimentic is done in (is now
16172 sizetype).
16173 Reindent one loop.
16174 * tree-data-ref.c (split_constant_offset): Handle
16175 POINTER_PLUS_EXPR
16176 * tree-affine.c (tree_to_aff_combination): Likewise.
16177 * c-typeck.c (build_unary_op): For pointers create the increment
16178 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
16179 for pointers.
16180 * gimplify.c (gimplify_self_mod_expr): Create a
16181 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
16182 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
16183 * tree.def (POINTER_PLUS_EXPR): New tree code.
16184 * tree-predcom.c (ref_at_iteration): If we have a pointer
16185 type do the multiplication in sizetype.
16186 * tree-mudflap.c (mf_xform_derefs_1): Create a
16187 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
16188 * tree-ssa-forwprop.c
16189 (forward_propagate_addr_into_variable_array_index):
16190 Don't expect there to be a cast for the index as that
16191 does not exist anymore.
16192 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
16193 instead of PLUS_EXPR.
16194 Don't check for the first operand of the POINTER_PLUS_EXPR
16195 was the index as it cannot be.
16196 Call forward_propagate_addr_into_variable_array_index with
16197 the SSA_NAME instead of the statement.
16198 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
16199 (compare_constant): Likewise.
16200 (copy_constant): Likewise.
16201 (compute_reloc_for_constant): Likewise.
16202 (output_addressed_constants): Likewise.
16203 (initializer_constant_valid_p): Likewise.
16204 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
16205 Convert the MIN/MAX of the inner type to the outer
16206 type before comparing them.
48dc2227 16207 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
0de36bdb 16208 POINTER_PLUS_EXPR instead of PLUS_EXPR.
16209 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
16210 of PLUS_EXPR for pointers.
16211 * tree-inline.c (estimate_num_insns_1): Handle
16212 POINTER_PLUS_EXPR.
16213 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
16214 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
16215 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
16216 instead of PLUS_EXPR for the pointer increment statement.
16217 (vect_update_ivs_after_vectorizer): For pointer types, create
16218 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
16219 MULT_EXPR in sizetype.
16220 (vect_gen_niters_for_prolog_loop): Add a cast when creating
16221 byte_misalign.
16222 * tree-object-size.c (plus_expr_object_size): Handle
16223 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
16224 code which is trying to figure out which side is a pointer and
16225 is the index.
16226 (check_for_plus_in_loops_1): Likewise.
16227 (check_for_plus_in_loops): Likewise.
16228 * c-common.c (pointer_int_sum): Create a
16229 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
16230 * tree-ssa-structalias.c (handle_ptr_arith): Handle
16231 only POINTER_PLUS_EXPR. Removing all the extra
16232 code which is trying to figure out which side is a pointer and
16233 is the index.
16234 * tree-cfg.c (verify_expr): Add extra checking for pointers and
16235 PLUS_EXPR and MINUS_EXPR.
16236 Also add checking to make sure the operands of POINTER_PLUS_EXPR
16237 are correct.
16238 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
16239 with make_tree, instead of a pointer type.
16240 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
16241 for pointers instead of PLUS_EXPR.
16242 (s390_gimplify_va_arg): Likewise.
16243 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
16244 instead of PLUS_EXPR when doing addition on pointer
16245 types. Use sizetype for the second operand.
16246 (spu_gimplify_va_arg_expr): Likewise.
16247 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
16248 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
16249 a pointer. Don't create a BIT_AND_EXPR for pointer types.
16250 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
16251 for the pointer addition and also use size_int/sizetype
16252 for the offset.
16253 (ix86_gimplify_va_arg): Likewise.
16254 Perform BIT_AND_EXPR on sizetype arguments.
16255 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
16256 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
16257 for the pointer additions and also use size_int for the offsets.
16258 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
16259 additions and also use size_int for the offsets. Perform
16260 BIT_AND_EXPR on sizetype arguments.
16261 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
16262 POINTER_PLUS_EXPR for pointers and create the
16263 BIT_AND_EXPR in sizetype.
16264 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
16265 instead of PLUS_EXPR for pointer addition.
16266 (rs6000_va_start): Likewise.
16267 Also use sizetype for the offset.
16268 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
16269 as PLUS_EXPR/MINUS_EXPR.
16270 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
16271 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
16272 Don't use BIT_AND_EXPR on a pointer type, convert the
16273 expression to sizetype first.
16274 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
16275 for pointers.
16276 (mips_gimplify_va_arg_expr): Likewise.
16277 Don't create BIT_AND_EXPR in a pointer type.
16278
2e76978a 162792007-06-15 Eric Christopher <echristo@apple.com>
16280
16281 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
16282 (x86_64-*-darwin*): Ditto.
16283 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
16284 for above.
16285
2d3e8e7b 162862007-06-15 Matthew Wilcox <matthew@wil.cx>
16287
16288 * doc/extend.texi: Document behavior of __attribute__((aligned))
16289 on typedefs.
2e76978a 16290
02a63053 162912007-06-15 Mark Mitchell <mark@codesourcery.com>
16292
16293 * rtlanal.c (note_stores): Improve documentation.
16294
c388b73a 162952007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
16296
16297 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
16298 LOCAL_LABEL_PREFIX): Delete.
16299 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
16300 (bfin_internal_label): Delete.
16301
baf35995 163022007-06-15 Uros Bizjak <ubizjak@gmail.com>
16303
16304 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
16305 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
16306 otherwise define to LIBGCC2_TF_CEXT.
16307 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
16308 (LIBGCC_TF_CEXT): Ditto.
16309 (TF_SIZE): Ditto.
16310
7577c7f7 163112007-06-14 Seongbae Park <seongbae.park@gmail.com>
16312
16313 PR rtl-optimization/32339
baf35995 16314 * df-scan.c (df_uses_record): Don't modify flags but just add to
16315 it for df_ref_record.
7577c7f7 16316
f2ecdfeb 163172007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
16318
16319 * tree-mudflap.c: Fix whitespace issues.
16320
b01a4e73 163212007-06-15 Kazu Hirata <kazu@codesourcery.com>
16322
16323 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
16324
0bb48c33 163252007-06-14 Eric Christopher <echristo@apple.com>
16326
16327 * config/i386/sse.md (movdi_to_sse): Rewrite body.
16328 (movv4sf): Use gcc_unreachable instead of abort.
16329
8194ec20 163302007-06-14 Uros Bizjak <ubizjak@gmail.com>
16331
16332 PR target/32268
baf35995 16333 * config/i386/sfp-machine.h (CMPtype): New define.
8194ec20 16334 (mach stubs): Use CMPtype instead of int as a return type.
16335
9d73b0fe 163362007-06-14 Uros Bizjak <ubizjak@gmail.com>
16337
16338 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
16339 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
16340 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
16341 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
16342 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
16343 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
16344 config/soft-fp/soft-fp.h: Update from glibc CVS.
16345
e77068c4 163462007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
16347
16348 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
16349
9f8151b9 163502007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
16351
16352 PR target/32341
16353 * config/v850/v850.c: Include dataflow header file.
16354 (substitute_ep_register): Fix typo.
16355
624a5fae 163562007-06-14 Paolo Bonzini <bonzini@gnu.org>
e10a4579 16357
624a5fae 16358 * configure.ac: Fix earlier checkin.
e10a4579 16359 * configure: Regenerated.
16360
c7cc973b 163612007-06-14 Paolo Bonzini <bonzini@gnu.org>
16362
16363 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
16364 * aclocal.m4: Regenerate.
16365 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
16366 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
16367 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
16368 * configure: Regenerate.
e10a4579 16369 * Makefile.in (LOOSE_WARN): Subst loose_warn.
c7cc973b 16370
e10a4579 16371 * Makefile.in (quickstrap): Build libgcc too.
c7cc973b 16372
727a2c40 163732007-06-14 Paolo Bonzini <bonzini@gnu.org>
16374
16375 * configure.ac: Add --enable-checking=df. Explicitly mention that
16376 the variables are initialized as for "release".
16377 * df-core.c: Use it.
16378 * configure: Regenerate.
16379 * config.in: Regenerate.
16380
c3e2d63e 163812007-06-14 Bob Wilson <bob.wilson@acm.org>
16382
16383 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
16384 validate_replace_rtx instead of replace_rtx.
16385 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
16386
9e51385b 163872007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
16388
16389 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
16390 (DWARF2_UNWIND_INFO): Override default if configured with
16391 SJLJ EH disabled.
16392 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
16393 (ENDFILE_SPEC): Add crtend.o.
16394 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
16395 (ENDFILE_SPEC): Add crtend.o.
16396 (TARGET_USE_JCR_SECTION): Define.
16397 (MD_UNWIND_SUPPORT): Define for 32-bit target.
16398
16399 * config/i386/cygming-crtbegin.c: New file.
16400 * config/i386/cygming-crtend.c: New file.
16401
164022007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
16403
16404 * config/i386/w32-unwind.h: New file.
16405
4015e6f0 164062007-06-13 Eric Christopher <echristo@apple.com>
16407
16408 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
16409 the user set a value below STACK_BOUNDARY.
16410
332ca4bc 164112007-06-13 Thiemo Seufer <ths@networkno.de>
16412
16413 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
16414 imply -lpthread for -pthread.
16415
be7d62e8 164162007-06-13 Kazu Hirata <kazu@codesourcery.com>
16417
16418 * basic-block.h: Remove the prototype for
16419 free_basic_block_vars.
16420 * cfglayout.h: Remove the prototype for
16421 insn_locators_initialize.
16422 * tree.h: Remove the prototype for emit_line_note.
16423
8696933a 16424 * tree-ssa-pre.c (mergephitemp): Remove.
16425 (init_pre): Don't use mergephitemp.
16426
23d5b88f 164272007-06-13 Eric Christopher <echristo@apple.com>
16428
16429 * config/i386/i386.c (override_options): If we've specified
16430 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
16431
fdfd360b 164322007-06-13 Bob Wilson <bob.wilson@acm.org>
23d5b88f 16433
fdfd360b 16434 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
16435 is defined.
23d5b88f 16436
c6eb5fc4 164372007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
16438
16439 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
16440 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
16441 (eh_store_handler): New pattern.
16442 (eh_return): Emit it instead of a plain move.
16443
809ddccb 164442007-06-13 Uros Bizjak <ubizjak@gmail.com>
16445
16446 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
16447 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
16448 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
16449 def_builtin_const.
16450
771ce05e 164512007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
16452
16453 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
16454 (find_next_insn_start, find_load): New functions.
16455 (bfin_reorg): Use them to deal with the fact that parallel insns are
16456 no longer represented as a SEQUENCE.
16457
8005508c 164582007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
16459
16460 * config/sparc/sparc.c (sparc_override_options): Initialize
16461 fpu mask correctly.
16462
7f091c3c 164632007-06-13 Dave Korn <dave.korn@artimi.com>
16464
8d2d2fcd 16465 * config/i386/i386.c (ix86_eax_live_at_start_p): Use df_get_live_out.
7f091c3c 16466
bef304b8 164672007-06-13 Kazu Hirata <kazu@codesourcery.com>
16468
16469 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
16470 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
16471 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
16472 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
16473 tree-vect-transform.c: Fix comment typos. Follow spelling
16474 conventions.
16475
164762007-06-12 Seongbae Park <seongbae.park@gmail.com>
bff9eb26 16477
8d2d2fcd 16478 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
16479 to the exit block use set.
16480 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
16481 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
16482 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
bff9eb26 16483
d2153a46 164842007-06-12 Seongbae Park <seongbae.park@gmail.com>
16485
16486 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
16487 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
16488 to indicate an error.
ed69c853 16489 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
16490 New functions.
d2153a46 16491 (dbg_cnt_process_opt): Print an error on a bad argument.
16492 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
16493 * common.opt (-fdbg-cnt-list): New.
16494 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
16495
eef5001a 164962007-06-12 Eric Botcazou <ebotcazou@adacore.com>
16497
16498 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
16499 flag on ref-all pointers.
16500
af391a06 165012007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
16502
16503 PR middle-end/31579
16504 * expr.c (expand_expr_addr_expr_1): Call expand_expr
16505 for the offset with the modifier as EXPAND_INITIALIZER
16506 if the modifier is EXPAND_INITIALIZER.
16507 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
16508 a register if we had an overflow.
16509
776a7bab 165102007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16511
16512 * real.c (real_isfinite): New.
16513 (real_sqrt): Use it.
16514 * real.h (real_isfinite): New.
16515 * builtins.c: Use it.
16516
66723563 165172007-06-12 Ian Lance Taylor <iant@google.com>
16518 Daniel Berlin <dberlin@dberlin.org>
16519
16520 PR libstdc++/29286
16521 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
16522 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
16523 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
16524 (DECL_NO_TBAA_P): Define.
16525 (struct tree_decl_common): Add no_tbaa_flag field.
16526 * tree-ssa-structalias.c (struct variable_info): Add
16527 no_tbaa_pruning field.
16528 (new_var_info): Initialize no_tbaa_pruning field.
16529 (unify_nodes): Copy no_tbaa_pruning field.
16530 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
16531 (dump_solution_for_var): Print no_tbaa_pruning flag.
16532 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
16533 callers.
16534 (compute_tbaa_pruning): New static function.
16535 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
16536 Call compute_tbaa_pruning.
16537 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
16538 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
16539 * gimple-low.c (lower_stmt): Likewise.
16540 * tree-gimple.c (is_gimple_stmt): Likewise.
16541 * tree-ssa-operands.c (get_expr_operands): Likewise.
16542 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16543 * tree-inline.c (estimate_num_insns_1): Likewise.
16544 (copy_result_decl_to_var): Likewise.
16545 * expr.c (expand_expr_real_1): Likewise.
16546 * tree-pretty-print.c (dump_generic_node): Likewise.
16547 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
16548 * omp-low.c (omp_copy_decl_2): Likewise.
16549 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
16550 * doc/c-tree.texi (Expression trees): Document
16551 CHANGE_DYNAMIC_TYPE_EXPR.
16552
83753444 165532007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16554
16555 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
16556 with !HONOR_NANS and !HONOR_INFINITIES.
16557 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16558
91cec198 165592007-06-12 Tristan Gingold <gingold@adacore.com>
16560
16561 * gcov.c: Comments updated.
16562 (source_info): Add file_time field.
16563 (source_index): New variable.
16564 (mutiple_files): New variable.
16565 (generate_results): New function extracted from process_file.
16566 (process_file): Save and restore chain of functions, generate
16567 results and free structures only if not merging results.
16568 (release_structures): File names are now freed in create_file_names
16569 (create_file_names): Free previous file names.
16570 (find_source): File date is now read here and modifications in
16571 source files is checked here.
16572 (read_graph_file): Only reverse order of functions for the current
16573 object file.
16574 (make_gcov_file_name): Do not generate long names if input_name is
16575 NULL.
23d5b88f 16576 (output_lines): If merging results do not display graph, data and
91cec198 16577 runs informations.
16578 Checking source file modification is done in find_source.
16579
16580 * doc/gcov.texi: Append an s to sourcefile.
16581
d18119ae 165822007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
16583
16584 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
16585 (forced_nop): New pattern.
16586 * config/bfin/bfin.c: Include "df.h".
16587 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
16588 (bfin_discover_loop): Use df_get_live_in instead of
16589 global_live_at_start.
16590 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
16591 df_analyze when done.
16592 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
16593 the insns. Use QImode for the final insn in a bundle. Call
16594 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
16595 gen_nop.
16596 (reorder_var_tracking_notes): New function.
16597 (bfin_reorg): Pass no argument to split_all_insns. Don't call
16598 update_life_info. Call df_analyze after scheduling and bundle
ed69c853 16599 generation. Call reorder_var_tracking_notes if generating these
16600 notes. Call df_finish_pass at the end.
d18119ae 16601
b1906db7 166022007-06-12 Dirk Mueller <dmueller@suse.de>
16603
5f9c8932 16604 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
b1906db7 16605 a comparison, not an assignment.
16606
528571a4 166072007-06-12 Olivier Hainque <hainque@adacore.com>
16608
16609 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
16610 Request walking the subtrees only, leaving the current is_lhs/val_only
16611 untouched.
16612 (convert_non_local_reference): Likewise.
23d5b88f 16613
de7d4e07 166142007-06-12 Nathan Sidwell <nathan@codesourcery.com>
16615
16616 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
23d5b88f 16617
8530c7be 166182007-06-12 Richard Guenther <rguenther@suse.de>
16619
16620 PR tree-optimization/15353
16621 PR tree-optimization/31657
16622 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
16623 * timevar.def: Add TV_TREE_IFCOMBINE.
16624 * tree-pass.h (pass_tree_ifcombine): Declare.
16625 * tree-ssa-ifcombine.c: New file.
16626 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
16627 * tree-flow.h (blocks_in_phiopt_order): Declare.
16628 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
16629 (tree-ssa-ifcombine.o): New dependencies.
16630
bf6a5269 166312007-06-12 Uros Bizjak <ubizjak@gmail.com>
16632
16633 PR rtl-optimization/32293
16634 * combine.c (simplify_if_then_else): Truncate return from
16635 nonzero_bits() to correct mode.
16636
a307ebdf 166372007-06-12 Uros Bizjak <ubizjak@gmail.com>
16638
16639 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
16640 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
16641
0c1fe26b 166422007-06-11 Diego Novillo <dnovillo@google.com>
16643
16644 * Makefile.in (reload1.o-warn): Remove.
16645
a962da05 166462007-06-11 Seongbae Park <seongbae.park@gmail.com>
16647
16648 * combine.c (subst): Use reg_overlap_mentioned_p
16649 instead of comparing register numbers directly.
16650
ba0876aa 166512007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
16652
16653 * reload1.c (mark_home_live_1): Use the mode parameter.
16654
a3de79f9 166552007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
16656
16657 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
16658 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
16659 word "deferred".
16660 * df-core.c: Ditto.
23d5b88f 16661
3072d30e 166622007-06-11 Daniel Berlin <dberlin@dberlin.org>
16663
16664 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
16665
8ceb1bfd 166662007-06-11 Uros Bizjak <ubizjak@gmail.com>
16667
16668 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
16669 from integer registers.
16670 (FP mode splitters): Handle TFmode.
16671
2bff6d8b 166722007-06-11 Eric Botcazou <ebotcazou@adacore.com>
16673
16674 * tree-ssa-structalias.c (find_what_p_points_to): Return false
16675 for ref-all pointers that point-to anything.
16676
4471a482 166772007-06-11 Joseph Myers <joseph@codesourcery.com>
16678
16679 * config/arm/arm.c (arm_output_dwarf_dtprel,
16680 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
16681
7770f4b8 166822007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
16683
16684 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
16685 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
16686 to memory moves.
16687
71354ca1 166882007-06-11 Rafael Avila de Espindola <espindola@google.com>
16689
62f92e2c 16690 * tree.c (signed_or_unsigned_type_for): New.
71354ca1 16691 (unsigned_type_for): Use signed_or_unsigned_type_for.
16692 (signed_type_for): Use signed_or_unsigned_type_for.
62f92e2c 16693 * tree.h (signed_or_unsigned_type_for): New.
71354ca1 16694 (get_signed_or_unsigned_type): Remove.
62f92e2c 16695 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
71354ca1 16696 lang_hooks.types.signed_type
16697 (size_diffop): Likewise.
16698 (all_ones_mask_p): Likewise.
16699 (build_range_check): Likewise.
16700 (fold_cond_expr_with_comparison): Likewise.
16701 (fold_cond_expr_with_comparison): Likewise.
16702 (unextend): Likewise.
16703 (extract_muldiv_1): Likewise.
16704 (fold_single_bit_test_into_sign_test): Likewise.
16705 (fold_binary): Likewise.
16706 (fold_ternary): Likewise.
16707 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
16708 instead of get_signed_or_unsigned_type.
62f92e2c 16709 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
71354ca1 16710 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
62f92e2c 16711 * expr.c (signed_or_unsigned_type_for): Use
71354ca1 16712 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
62f92e2c 16713 * langhooks.c (get_signed_or_unsigned_type): Remove.
71354ca1 16714 (lhd_signed_or_unsigned_type): Remove.
62f92e2c 16715 * langhooks.h (lang_hooks_for_types): Remove signed_type and
71354ca1 16716 signed_or_unsigned_type.
16717 (lhd_signed_or_unsigned_type): Remove.
62f92e2c 16718 * expmed.c (make_tree): Use signed_type_for instead of
71354ca1 16719 lang_hooks.types.signed_type.
62f92e2c 16720 * c-common.c (same_scalar_type_ignoring_signedness): Use
71354ca1 16721 c_common_signed_type instead of lang_hooks.types.signed_type.
16722 (c_common_unsigned_type): New.
16723 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
16724 (shorten_compare): Use c_common_unsigned_type instead of
16725 c_common_signed_or_unsigned_type.
16726 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
16727 unsigned_type_for.
62f92e2c 16728 * convert.c (convert_to_integer): Use signed_type_for instead of
71354ca1 16729 lang_hooks.types.signed_type.
62f92e2c 16730 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
71354ca1 16731 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
16732 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
62f92e2c 16733 * c-format.c (check_format_types): Use c_common_unsigned_type
71354ca1 16734 instead of unsigned_type_for.
62f92e2c 16735 * c-decl.c (groakdeclarator): Likewise.
16736 * c-typeck.c (convert_for_assignment): Likewise.
16737 * c-common.h (c_common_unsigned_type): New.
71354ca1 16738
13c14c08 167392007-06-11 Uros Bizjak <ubizjak@gmail.com>
16740
16741 PR target/32280
16742 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
16743 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
16744
93ad369f 167452007-06-11 Uros Bizjak <ubizjak@gmail.com>
16746
16747 PR middle-end/32279
16748 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
16749 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
16750
a89f7eec 167512007-06-10 Jan Sjodin <jan.sjodin@amd.com>
16752 Sebastian Pop <sebpop@gmail.com>
16753
16754 * lambda-code.c (remove_iv): New.
16755 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
16756
5b5037b3 167572007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
16758
16759 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
16760 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
16761 * tree-ssa-loop-prefetch.c: Include optabs.h.
16762 (FENCE_FOLLOWING_MOVNT): New macro.
16763 (struct mem_ref): Add independent_p and storent_p fields.
16764 (record_ref): Initalize the new fields.
16765 (gather_memory_references_ref): Return true if the reference
16766 could be analysed.
16767 (gather_memory_references): Check whether all memory accesses
16768 in loop were recorded.
16769 (should_issue_prefetch_p): Return false for nontemporal stores.
16770 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
16771 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
16772 (determine_loop_nest_reuse): Detect independent memory references.
16773 (loop_prefetch_arrays): Call mark_nontemporal_stores.
16774 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
16775 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
16776 * config/i386/i386.h (x86_mfence): Declare.
16777 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
16778 * config/i386/i386.c (x86_mfence): New variable.
16779 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
16780
16781 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
16782 * optabs.c (init_optabs): Initialize storent_optab.
16783 * optabs.h (enum optab_index): Add OTI_storent.
16784 (storent_optab): Declare.
16785 * genopinit.c (optabs): Add initialization for storent_optab.
16786 * tree.h (MOVE_NONTEMPORAL): New macro.
16787 * expr.c (expand_assignment, store_expr, store_constructor_field,
16788 store_constructor, store_field, expand_expr_real_1): Propagate
16789 nontemporality of the expanded store.
16790 (emit_storent_insn): New function.
16791 * expr.h (expand_assignment, store_expr): Declaration changed.
16792 * function.c (assign_parm_setup_reg): Pass false as nontemporality
16793 to expand_assignment.
16794 * stmt.c (expand_asm_expr): Ditto.
16795 * calls.c (initialize_argument_information): Pass false as
16796 nontemporality to store_expr.
16797 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
16798 storentsi): New.
16799
5f414da7 168002007-06-09 Daniel Berlin <dberlin@dberlin.org>
16801
16802 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
16803 parameter, use it.
16804 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
16805
676792f6 168062007-06-09 Daniel Berlin <dberlin@dberlin.org>
16807
16808 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
16809 and allow DECL_P here.
16810
de39d8ad 168112007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
16812
16813 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
16814 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
16815 track of the size of the expression.
16816 * cfghooks.c (merge_blocks): Remove block from loops structure only
16817 after call of the merge_blocks hook.
16818
81f218ec 168192007-06-09 Tom Tromey <tromey@redhat.com>
16820
16821 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
16822 (deprecated_state): Removed.
16823 (start_decl): Update.
16824 (enum deprecated_states): Moved earlier.
16825 (groktypename): Update.
16826 (push_parm_decl): Likewise.
16827 (grokfield): Likewise.
16828 (start_function): Likewise.
16829
6d02409c 168302007-06-09 Ian Lance Taylor <iant@google.com>
16831
16832 PR tree-optimization/32169
16833 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
16834 CONVERT_EXPR, check whether min and max both converted to an
16835 overflow infinity representation.
16836
ab30576b 168372007-06-08 Eric Botcazou <ebotcazou@adacore.com>
16838
16839 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
16840 not inserted on the edge.
16841
8fc03a23 168422007-06-08 Bob Wilson <bob.wilson@acm.org>
16843
16844 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
16845 instructions if they are supported.
16846 (__divsi3, __umodsi3, __modsi3): Likewise.
16847 (__ashldi3, __ashrdi3, __lshrdi3): New.
16848 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
23d5b88f 16849
867c03eb 168502007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
7334ad53 16851 Tony Linthicum <tony.linthicum@amd.com>
867c03eb 16852
621a93b1 16853 * doc/invoke.texi: Add fvect-cost-model flag.
867c03eb 16854 * common.opt (fvect-cost-model): New flag.
16855 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
16856 cost fields in stmt_vec_info struct for STMT.
16857 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
16858 fields in stmt_vec_info struct and access functions for the same.
16859 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
16860 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
16861 load, store and vector to scalar operation.
16862 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
16863 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
16864 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
16865 (TARG_VEC_STORE_COST): Define cost of vector store.
16866 (vect_estimate_min_profitable_iters): Define new function.
16867 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
16868 check to evaluate if loop iterations are less than minimum profitable
16869 iterations determined by cost model or minimum vect loop bound defined
16870 by user, whichever is more conservative.
16871 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
16872 run-time check to evaluate if loop iterations are less than minimum
16873 profitable iterations determined by cost model or minimum vect loop
16874 bound defined by user, whichever is more conservative.
16875 (vect_estimate_min_profitable_iterations): New function to estimate
16876 mimimimum iterartions required for vector version of loop to be
16877 profitable over scalar version.
d07cd931 16878 (vect_model_reduction_cost): New function.
867c03eb 16879 (vect_model_induction_cost): New function.
16880 (vect_model_simple_cost): New function.
16881 (vect_cost_strided_group_size): New function.
16882 (vect_model_store_cost): New function.
16883 (vect_model_load_cost): New function.
16884 (vectorizable_reduction): Call vect_model_reduction_cost during
16885 analysis phase.
16886 (vectorizable_induction): Call vect_model_induction_cost during
16887 analysis phase.
16888 (vectorizable_load): Call vect_model_load_cost during analysis phase.
16889 (vectorizable_store): Call vect_model_store_cost during analysis phase.
16890 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
23d5b88f 16891 vectorizable_promotion, vectorizable_demotion): Call
867c03eb 16892 vect_model_simple_cost during analysis phase.
16893
2d0ff363 168942007-06-08 Simon Baldwin <simonb@google.com>
16895
16896 * reg-stack.c (get_true_reg): Readability change. Moved default case
16897 label into direct switch statement scope.
16898
a5f2f36e 168992007-06-08 Simon Baldwin <simonb@google.com>
16900
16901 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
16902 in gcc_assert() with '==' comparison.
16903
56c90f67 169042007-06-08 Uros Bizjak <ubizjak@gmail.com>
16905
16906 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
16907 TARGET_ABM handling of x86_popcnt variable.
16908
c902c5c2 169092007-06-08 Uros Bizjak <ubizjak@gmail.com>
16910
16911 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
16912 __builtin_copysignq and __builtin_infq built-in functions.
16913
e6fc1977 169142007-06-08 Uros Bizjak <ubizjak@gmail.com>
16915
16916 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
16917 SSE4.2 section. Correct built-in function names in SSE4A section.
16918
6fc069dd 169192007-06-08 Uros Bizjak <ubizjak@gmail.com>
16920
16921 PR tree-optimization/32243
16922 * tree-vect-transform.c (vectorizable_type_promotion): Move check
16923 for ncopies after ratio check between nunits_out and nunits_in.
16924 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
16925
bf094cbb 169262007-06-08 Dorit Nuzman <dorit@il.ibm.com>
16927
16928 PR tree-optimization/32224
16929 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
16930 vectorization upon a non GIMPLE_MODIFY_STMT.
16931
b06b27dd 169322007-06-08 Christian Bruel <christian.bruel@st.com>
16933
16934 PR target/29953
16935 * config/sh/sh.md (doloop_end): New pattern and splitter.
16936 * loop-iv.c (simple_rhs_p): Check for hardware registers.
23d5b88f 16937
0bffc570 169382007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
16939
16940 PR middle-end/32209
16941 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
16942 functions.
16943 (verify_dominators): Do not change dominance tree.
16944
abff7a2e 169452007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16946
16947 * config/sh/constraints.md: New file.
16948 * config/sh/sh.c: Include tm-constrs.h.
16949 (reg_class_from_letter): Remove.
16950 (prepare_cbranch_operands): Use satisfies_constraint_*
16951 function instead of macro.
16952 (andcosts, broken_move, sh_secondary_reload): Likewise.
16953 * config/sh/predicates.md (trapping_target_operand): Likewise.
16954 (and_operand, arith_operand, arith_reg_or_0_operand,
16955 cmp_operand, logical_operand, target_operand,
16956 ua_address_operand, ua_offset, xor_operand): Likewise.
16957 * config/sh/sh.md: Include constraints.md.
16958 (*movsicc_t_false): Use satisfies_constraint_* function
16959 instead of macro.
16960 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
16961 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
16962 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
16963 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
16964 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
16965 (REG_CLASS_FROM_CONSTRAINT): Remove.
16966 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
16967 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
16968 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
16969 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
16970 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16971 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
16972 function instead of macro.
16973 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
16974 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
16975 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
16976 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
16977 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
16978 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
16979 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
16980 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
16981 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
16982 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
16983 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
16984 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
16985 EXTRA_CONSTRAINT_STR): Likewise.
16986 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
16987
af8490b1 169882007-06-07 Geoffrey Keating <geoffk@apple.com>
16989
16990 * config/i386/darwin.h (STACK_BOUNDARY): Define.
16991
6dcdb5de 169922007-06-07 Simon Martin <simartin@users.sourceforge.net>
16993
16994 PR c++/30759
16995 * c-common.h (flag_cpp0x): Replaced by...
16996 (cxx_dialect): ... this new variable specifying the C++ dialect that
16997 is used.
16998 * c-common.c (flag_cpp0x): Removed.
16999 (cxx_dialect): Defined.
17000 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
17001 cxx_dialect.
17002 * c-opts.c (c_common_post_options): Likewise.
17003 (set_std_cxx98): Set cxx_dialect to cxx98.
17004 (set_std_cxx0x): Set cxx_dialect to cxx0x.
17005
af8490b1 170062007-06-07 Geoffrey Keating <geoffk@apple.com>
a9540fb6 17007 Hui-May Chang <hm.chang@apple.com>
17008
17009 * doc/invoke.texi (Darwin Options): Update documentation for
17010 -mmacosx-version-min.
17011 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
17012 * config/darwin-driver.c: New file.
17013 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
17014 * config/t-darwin (darwin-driver.o): New rule.
17015
17016 * config/darwin-c.c (version_as_macro): Ignore low digit.
17017
349d9d0e 170182007-06-07 Uros Bizjak <ubizjak@gmail.com>
17019
17020 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
17021 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
17022 (CSGNMODE): New mode macro.
17023 (CSGNVMODE): New mode attribute.
17024 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
17025 expander using CSGNMODE mode macro. Handle TFmode.
17026 (copysign<mode>3_const): Rename from copysignsf3_const and
17027 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
17028 Handle TFmode.
17029 (copysign<mode>3_var): Rename from copysignsf3_var and
17030 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
17031 Handle TFmode.
17032 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
17033 mode macro. Handle TFmode.
17034 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
17035 (iortf3, *iortf3): Ditto.
17036 (xortf3, *xortf3): Ditto.
17037 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
17038 TFmode and TImode masks.
17039 (ix86_expand_copysign): Expand TFmode copysign insn.
17040 (IX86_BUILTIN_INFQ): New.
17041 (IX86_BUILTIN_FABSQ): Ditto.
17042 (IX86_BUILTIN_COPYSIGNQ): Ditto.
17043 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
17044 [__builtin_fabsq]: Ditto.
17045 [__builtin_copysignq]: Ditto.
17046 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
17047 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
17048 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
7334ad53 17049 ix86_expand_binop_builtin().
349d9d0e 17050
252b29c9 170512007-06-07 Bob Wilson <bob.wilson@acm.org>
17052
17053 * config/xtensa/lib1funcs.asm: Clean up whitespace.
17054
28bf151d 170552007-06-07 Steve Ellcey <sje@cup.hp.com>
17056
17057 PR target/31850
17058 * rtl.h (push_to_sequence2): New.
17059 * emit-rtl.c (push_to_sequence2): New.
17060 * function.c (assign_parm_data_all): Add new fields.
23d5b88f 17061 (assign_parm_setup_block): Call push_to_sequence2 instead of
28bf151d 17062 push_to_sequence.
17063 (assign_parm_setup_reg): Ditto.
17064 (assign_parm_setup_stack): Ditto.
17065 (assign_parms_unsplit_complex): Ditto.
17066 (assign_parms): Change field name.
17067
3fa1e4f2 170682007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
17069
17070 PR tree-optimization/32220
17071 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
17072 phi node is reached before defining statement.
17073
b8905cbc 170742007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17075
17076 PR tree-opt/32231
17077 * tree-vect-transform.c (vectorizable_call): Call update_stmt
17078 after changing the right hand side of the assignment.
17079
0c439d1a 170802007-06-06 Eric Christopher <echristo@apple.com>
17081
17082 * config.gcc (i?86-*-darwin*): Remove arch parameter.
17083 (x86_64-*-darwin*): Ditto.
17084 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
17085 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
17086
f0d6e81c 170872007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
17088
17089 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
17090 coding conventions.
17091 (add_key): Likewise.
17092 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
17093 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
17094 variable names.
ed69c853 17095 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
17096 macros.
f0d6e81c 17097 (add_cost_one_coalesce): Likewise.
17098 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
17099 variable names. Rename orig to orig_name for consistency.
ed69c853 17100 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
17101 coding conventions.
17102 (cprop_into_successor_phis): Avoid using C++ keywords as variable
17103 names.
f0d6e81c 17104 (record_equivalences_from_stmt): Likewise.
17105 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
17106 the coding conventions.
17107 (memory_ssa_name_same): Likewise.
17108 (dse_optimize_stmt): Likewise.
17109 (dse_record_phis): Likewise.
17110 (dse_finalize_block): Likewise.
17111 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
17112 keywords as variable names.
17113 (may_move_till): Cast according to the coding conventions.
17114 (force_move_till_expr): Avoid using C++ keywords as variable names.
17115 (force_move_till): Cast according to the coding conventions.
17116 (memref_hash): Likewise.
17117 (memref_eq): Likewise.
17118 (gather_mem_refs_stmt): Likewise.
ed69c853 17119 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
17120 using C++ keywords as variable names.
f0d6e81c 17121 (idx_find_step): Cast according to the coding conventions.
17122 (idx_record_use): Likewise.
17123 (find_depends): Likewise.
17124 (prepare_decl_rtl): Likewise.
17125 (mbc_entry_hash): Likewise.
17126 (mbc_entry_eq): Likewise.
17127 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
17128 (simplify_replace_tree): Avoid using C++ keywords as variable names.
17129 (idx_infer_loop_bounds): Cast according to the coding conventions.
17130 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
17131 * tree-ssa-math-opts.c (occ_new ): Likwise.
17132 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
17133 macros.
ed69c853 17134 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
17135 variable names.
f0d6e81c 17136 (add_use_op): Likewise.
17137 (add_vop): Likewise.
17138 (add_vuse_op): Likewise.
17139 (add_vdef_op): Likewise.
17140 (get_expr_operands): Likewise.
17141 (push_stmt_changes): Use type safe memory macros.
17142 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
17143 keywords as variable names.
17144 (conditional_replacement): Likewise.
17145 (minmax_replacement): Likewise.
17146 (abs_replacement): Likewise.
17147 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
17148 coding conventions.
17149 (insert_fake_stores): Avoid using C++ keywords as variable names.
17150 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
17151 conventions.
17152 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
17153 (heapvar_insert): Use type safe memory macros.
17154 (new_var_info): Cast according to the coding conventions.
17155 (new_constraint): Likewise.
17156 (remove_preds_and_fake_succs): Use type safe memory macros.
17157 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
17158 conventions.
17159 (thread_single_edge): Likewise.
17160 (thread_through_loop_header): Likewise.
17161
9e31df45 171622007-06-06 Eric Christopher <echristo@apple.com>
17163
17164 * config/i386/i386.c (override_options): Move handling
17165 of TARGET_SUBTARGET* earlier.
17166
cc253ec9 171672007-06-06 Paolo Bonzini <bonzini@gnu.org>
17168
17169 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
17170 use %n on printf.
17171
39257eb5 171722007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
17173
17174 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
17175 emited outside of basic block.
17176 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
17177 the created blocks.
17178 * rtl.h (delete_insn_chain): Declaration changed.
17179 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
17180 non-removed insns.
17181 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
17182 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
9e31df45 17183 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
39257eb5 17184 to delete_insn_chain.
17185 (rtl_verify_flow_info_1): Verify that the insns in header and footer
17186 do not have bb field set.
17187 (rtl_verify_flow_info): Verify that insns between basic blocks do not
17188 have bb field set.
17189 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
17190 * cfgcleanup.c (try_optimize_cfg): Ditto.
17191
eb7d9cdc 171922007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
17193
17194 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
17195 (lambda_body_vector_new): Use type safe memory macros.
17196 (lambda_linear_expression_new): Likewise.
17197 (lambda_loopnest_new): Likewise.
17198 (lambda_lattice_new): Likewise.
17199 (replace_uses_equiv_to_x_with_y): Cast according to the coding
17200 conventions. Use type safe memory macros.
17201 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
17202 (lambda_body_vector_s): Likewise.
17203 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
17204 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
17205
4c580c8c 172062007-06-06 Richard Guenther <rguenther@suse.de>
17207
17208 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
17209 if we need to schedule cfg_cleanup.
17210 (tree_ssa_forward_propagate_single_use_vars): Do so.
17211
bdc68add 172122007-06-06 Ian Lance Taylor <iant@google.com>
17213
17214 * fold-const.c (merge_ranges): If range_successor or
17215 range_predecessor fail, just return 0.
17216
bb6c9541 172172007-06-06 Uros Bizjak <ubizjak@gmail.com>
17218
17219 PR tree-optimization/32216
17220 * tree-vectorizer.c (supportable_widening_operation): Determine
17221 signedness of FIX_TRUNC_EXPR from output operand.
17222 (supportable_narrowing_operation): Ditto.
17223 * tree-vect-generic.c (expand_vector_operations_1): Determine
17224 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
17225 from input operand.
17226
14526cae 172272007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
17228
17229 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
bb6c9541 17230 (struct pta): ...from here. Change flags to unsigned to avoid
17231 excessive casting (as it is used as a bit mask).
14526cae 17232 (override_options): Add casts according to the coding convenventions.
17233 (x86_64_elf_unique_section): Likewise.
17234 (examine_argument): Avoid using C++ keywords as variable names.
17235 (construct_container): Likewise.
17236 (legitimize_pic_address): Likewise.
17237 (get_dllimport_decl): Cast according to the coding conventions. Use
17238 type safe memory macros.
17239 (legitimize_address): Cast according to the coding conventions.
17240 (emit_i387_cw_initialization): Corrected the type of slot to enum
17241 ix86_stack_slot.
17242 (ix86_init_machine_status): Use type safe memory macros.
17243 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
17244 (bdesc_pcmpistr): Likewise.
17245 (bdesc_crc32): Likewise.
17246 (bdesc_sse_3arg): Likewise.
17247 (bdesc_2arg): Likewise.
17248 (bdesc_1arg): Likewise.
17249 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
17250 (ix86_expand_sse_pcmpistr): Likewise.
17251 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
17252 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
17253 int to match the langhook definition.
17254 (ix86_builtin_conversion): Change the type of code to unsigned init to
17255 match the langhook definition.
17256 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
17257 names.
17258 (ix86_preferred_output_reload_class): Likewise.
17259 (ix86_cannot_change_mode_class): Likewise.
17260 (ix86_memory_move_cost): Likewise.
17261 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
17262 avoid excessive casting later on.
17263 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
17264
acec7476 172652007-06-06 Uros Bizjak <ubizjak@gmail.com>
17266
17267 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
17268 as flags setting insn.
17269 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
17270
172712007-06-06 Uros Bizjak <ubizjak@gmail.com>
17272
17273 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
17274 (UNSPEC_ROUND): New.
17275 ("sse4_1_round<mode>2"): New insn pattern.
17276 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
17277 SSE4.1 targets.
17278 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
17279 expander using SSEMODEF mode macro. Expand using
17280 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
17281 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
17282 expander using SSEMODEF mode macro. Expand using
17283 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
17284 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
17285 expander using SSEMODEF mode macro. Expand using
17286 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
17287 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
17288 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
17289 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
17290 UNSPEC_ROUNDS.
17291
87cbf023 172922007-06-06 Jan Sjodin <jan.sjodin@amd.com>
17293 Sebastian Pop <sebpop@gmail.com>
17294
17295 * lambda.h (build_linear_expr): New.
9e31df45 17296 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
87cbf023 17297 Use build_linear_expr, call fold and force_gimple_operand.
17298 (lambda_loopnest_to_gcc_loopnest): Check that there is
17299 something to insert.
17300 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
17301
d7282a2b 173022007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
17303
17304 PR preprocessor/23479
17305 * doc/extend.texi: Document the 0b-prefixed binary integer
17306 constant extension.
9e31df45 17307
c8f1be8d 173082007-06-05 Uros Bizjak <ubizjak@gmail.com>
17309
17310 PR tree-optimization/32215
17311 * tree-vectorizer.c (supportable_widening_operation): Return false
17312 for unsupported FIX_TRUNC_EXPR tree code.
17313 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
17314
77e449db 173152007-06-06 Nathan Froyd <froydnj@codesourcery.com>
17316
17317 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
17318 register on SPE targets. Change documentation to reflect
17319 reality.
17320 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17321 Change FIXED_SCRATCH to 14 and document why we're keeping r14
17322 out of the register allocation pool.
17323 (rs6000_reg_live_or_pic_offset_p): New function.
17324 (rs6000_emit_prologue): Move the actual saving of LR up to free
17325 r0 for holding r11. Split saving of SPE 64-bit registers into
17326 its own case. Ensure that offsets will always be in-range for
17327 'evstdd' by using r11 as a scratch register to point at the start
17328 of the SPE save area. Save r11 if necessary, as it is the static
17329 chain register.
17330 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
17331 into its own case. Ensure that offsets will always be in-range
17332 for 'evldd' by using r11 as a scratch register to point at the
17333 start of the SPE save area. Also adjust r11 when restoring
17334 the stack pointer to compensate for pre-loading r11.
17335
f780cc25 173362007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
17337
17338 * cfg.c (init_flow): Use type safe memory macros.
17339 (alloc_block): Likewise.
17340 (unchecked_make_edge): Likewise.
17341 (dump_flow_info): Avoid using C++ keywords as variable names.
17342 (copy_original_table_clear): Cast according to the coding conventions.
17343 (copy_original_table_set): Likewise.
17344 * cfgexpand (label_rtx_for_bb): Likewise.
44cac4f9 17345 (expand_gimple_basic_block): Likewise.
f780cc25 17346 * cfghooks.c (dump_bb): Likewise.
acec7476 17347 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
17348 variable names.
f780cc25 17349 (lv_add_condition_to_bb): Likewise.
17350 * cfglayout (relink_block_chain): Cast according to the coding
17351 conventions.
17352 (fixup_reorder_chain): Likewise.
17353 (fixup_fallthru_exit_predecessor): Likewise.
17354 * cfgloop.c (glb_enum_p): Likewise.
17355 (get_exit_description): Likewise.
17356 (dump_recorded_exit): Likewise.
17357 * cfgloop.h (enum loop_estimation): Move out of struct scope...
17358 (struct loop): ... from here.
acec7476 17359 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
17360 conventions.
f780cc25 17361 * cfgrtl.c (rtl_create_basic_block): Likewise.
17362 (rtl_split_block): Likewise.
17363 (rtl_dump_bb): Likewise.
17364 (cfg_layout_split_block): Likewise.
17365 (init_rtl_bb_info): Use typesafe memory macros.
17366
17367 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
17368 * graphds.h: Updated all usages of edge to graph_edge.
17369 * graphds.c: Likewise.
17370 * cfgloopanal.c: Likewise.
17371
d8f696cf 173722007-06-05 Ian Lance Taylor <iant@google.com>
17373
17374 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
17375 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
17376 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
17377 expression.
17378 (test_for_singularity): Likewise.
17379
c40c9120 173802007-06-05 H.J. Lu <hongjiu.lu@intel.com>
17381
17382 * config/i386/constraints.md ("Y2"): Replaced by ...
17383 ("Yt"): This.
17384 * config/i386/i386.md: Likewise.
17385 * config/i386/mmx.md: Likewise.
17386 * config/i386/sse.md: Likewise.
17387
24f794d7 173882007-06-05 H.J. Lu <hongjiu.lu@intel.com>
17389
17390 * config/i386/constraints.md ("z"): Replaced by ...
17391 ("Y0"): This.
17392 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
17393 (sse4_1_blendvps): Likewise.
17394 (sse4_1_pblendvb): Likewise.
17395 (sse4_2_pcmpestr): Likewise.
17396 (sse4_2_pcmpestrm): Likewise.
17397 (sse4_2_pcmpestr_cconly): Likewise.
17398 (sse4_2_pcmpistr): Likewise.
17399 (sse4_2_pcmpistrm): Likewise.
17400 (sse4_2_pcmpistr_cconly): Likewise.
17401
b31765d0 174022007-06-05 Razya Ladelsky <razya@il.ibm.com>
17403
24f794d7 17404 * matrix-reorg.c (transform_access_sites): Fix computation.
17405 (transform_allocation_sites): Same.
b31765d0 17406
d3ec8b3b 174072007-06-05 Uros Bizjak <ubizjak@gmail.com>
17408
f002e136 17409 * config/i386/i386.c (override_options): Use
17410 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
17411
174122007-06-05 Uros Bizjak <ubizjak@gmail.com>
17413
17414 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
d3ec8b3b 17415 (nonimm_not_xmm0_operand): Ditto.
17416 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
17417 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
17418 as operand[2] predicate. Require "z" class XMM register for
17419 operand[3]. Adjust asm template.
17420 ("sse4_1_blendvpd"): Ditto.
17421 ("sse4_1_pblendvb"): Ditto.
17422 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
17423 force op2 into xmm0 register for variable blend instructions.
17424
13c7079e 174252007-06-04 Tom Tromey <tromey@redhat.com>
17426
17427 * c-tree.h (start_enum): Update.
17428 (build_enumerator): Likewise.
17429 * c-decl.c (enum_next_value): Removed.
17430 (enum_overflow): Likewise.
17431 (start_enum): Add c_enum_contents argument. Don't use globals.
17432 (build_enumerator): Likewise.
17433 * c-tree.h (struct c_enum_contents): New struct.
17434
af592f67 174352007-06-04 Tom Tromey <tromey@redhat.com>
17436
17437 * c-common.c (c_common_get_alias_set): Fix indentation.
17438
4d1ddfdf 174392007-06-04 Ian Lance Taylor <iant@google.com>
17440
17441 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
17442 to overflow, reduce overflow infinity to regular infinity.
17443 (vrp_var_may_overflow): New static function.
17444 (vrp_visit_phi_node): Check vrp_var_may_overflow.
17445
a2ee4f78 174462007-06-04 Kazu Hirata <kazu@codesourcery.com>
17447
17448 * stor-layout.c (layout_type): Remove duplicate code.
17449
87eb1c28 174502007-06-04 Uros Bizjak <ubizjak@gmail.com>
17451
17452 PR c/32191
62f92e2c 17453 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
87eb1c28 17454 before build_common_builtin_nodes ().
17455
8fcc0f14 174562007-06-04 Steve Ellcey <sje@cup.hp.com>
17457
17458 PR target/31733
17459 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
17460
4c580c8c 174612007-06-04 Jan Hubicka <jh@suse.cz>
aeb45ad3 17462
17463 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
17464 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
17465 instead of _stat version.
17466
ca4882a2 174672007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
17468
17469 PR tree-optimization/32194
17470 * tree-predcom.c (determine_offset): Check that both references have
17471 the same type.
17472
3f9439d7 174732007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
17474
17475 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
17476 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
17477 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
17478 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
17479 Add argument to iterate_fix_dominators call.
17480 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
17481 * gcse.c (hoist_code): Change domby to vector.
17482 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
17483 Add argument to iterate_fix_dominators call.
17484 * loop-doloop.c (doloop_modify): Changed recount_dominator to
17485 recompute_dominator.
17486 * lambda-code.c (perfect_nestify): Ditto.
17487 * cfgloopanal.c: Include graphds.h.
17488 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
17489 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
17490 (mark_irreducible_loops): Use graphds_scc. Remove argument from
17491 add_edge call.
17492 * graphds.c: New file.
17493 * graphds.h: New file.
17494 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
17495 (get_dominated_by, get_dominated_by_region): Change return type to
17496 vector.
17497 (verify_dominators): Recompute all dominators and compare the results.
17498 (recount_dominator): Renamed to ...
17499 (recompute_dominator): ... this. Do not check that the block is
17500 dominated by entry.
17501 (iterate_fix_dominators): Reimplemented.
17502 (prune_bbs_to_update_dominators, root_of_dom_tree,
17503 determine_dominators_for_sons): New functions.
17504 * et-forest.c (et_root): New function.
17505 * et-forest.h (et_root): Declare.
17506 * Makefile.in (graphds.o): Add.
17507 (cfgloopanal.o): Add graphds.h dependency.
17508 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
17509 * basic-block.h (get_dominated_by, get_dominated_by_region,
17510 iterate_fix_dominators): Declaration changed.
17511 (recount_dominator): Renamed to ...
17512 (recompute_dominator): ... this.
17513 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
17514 (thread_through_all_blocks): Do not free dominance info.
17515
604c77da 175162007-06-03 Andreas Schwab <schwab@suse.de>
17517
17518 * config/m68k/m68k.c (override_options): Don't override
17519 REAL_MODE_FORMAT.
17520 * config/m68k/m68k-modes.def (SF, DF): Define to use
17521 motorola_single_format and motorola_double_format, resp.
17522 * real.c (motorola_single_format): Renamed from
17523 coldfire_single_format.
17524 (motorola_double_format): Renamed from coldfire_double_format.
17525 (encode_ieee_extended): Generate a proper canonical NaN image
17526 respecting canonical_nan_lsbs_set.
17527 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
17528 true.
17529 * real.h: Adjust declarations.
17530
87a96196 175312007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
17532
17533 PR target/32163
17534 * config/sh/sh.md (symGOT_load): Don't schedule insns when
17535 the symbol is generated with the stack protector.
17536
29968436 175372007-06-03 Kazu Hirata <kazu@codesourcery.com>
17538
17539 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
17540 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
17541 "interrupt".
17542 * doc/extend.texi (interrupt): Mention m68k.
17543
a6239bc1 175442007-06-02 Uros Bizjak <ubizjak@gmail.com>
17545
a6239bc1 17546 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
389f413e 17547 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
a6239bc1 17548 (ix86_expand_sse_pcmpestr): Do not check operands for
17549 "register_operand", when insn operand predicate is "register_operand".
17550 (ix86_expand_sse_pcmpistr): Ditto.
17551
f0dd3deb 175522007-06-02 H.J. Lu <hongjiu.lu@intel.com>
17553 Uros Bizjak <ubizjak@gmail.com>
17554
17555 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
17556 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
17557 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
17558 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
17559 * config/i386/constraints.md ("z"): New register constraint
17560 for members of SSE_FIRST_REG class.
17561 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
17562 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
17563 SSE_FIRST_REG class.
17564 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
17565 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
17566 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
17567 (IX86_BUILTIN_PCMPESTRM128): Likewise.
17568 (IX86_BUILTIN_PCMPESTRA128): Likewise.
17569 (IX86_BUILTIN_PCMPESTRC128): Likewise.
17570 (IX86_BUILTIN_PCMPESTRO128): Likewise.
17571 (IX86_BUILTIN_PCMPESTRS128): Likewise.
17572 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
17573 (IX86_BUILTIN_PCMPISTRI128): Likewise.
17574 (IX86_BUILTIN_PCMPISTRM128): Likewise.
17575 (IX86_BUILTIN_PCMPISTRA128): Likewise.
17576 (IX86_BUILTIN_PCMPISTRC128): Likewise.
17577 (IX86_BUILTIN_PCMPISTRO128): Likewise.
17578 (IX86_BUILTIN_PCMPISTRS128): Likewise.
17579 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
17580 (struct builtin_description): Change "flag" field to unsigned.
17581 (bdesc_pcmpestr): New builtin description table.
17582 (bdesc_pcmpistr): Likewise.
17583 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
17584 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
17585 Initialize pcmp[ei]str[im] insns for SSE4.2.
17586 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
17587 (ix86_expand_sse_pcmpistr): Likewise.
17588 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
17589 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
17590 (UNSPEC_PCMPISTR): Likewise.
17591 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
17592 (sse4_2_pcmpestri):New isns pattern.
17593 (sse4_2_pcmpestrm): Likewise.
17594 (sse4_2_pcmpestr_cconly): Likewise.
17595 (sse4_2_pcmpistr): New insn patern and splitter.
17596 (sse4_2_pcmpistri):New isns pattern.
17597 (sse4_2_pcmpistrm): Likewise.
17598 (sse4_2_pcmpistr_cconly): Likewise.
17599 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
17600 in SSE4.2.
17601
790a389c 176022007-06-01 David Daney <ddaney@avtrex.com>
17603
17604 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
17605 LOADGP_ABSOLUTE and not binds_local_p.
9e31df45 17606
4e5e6d47 176072007-06-01 Geoffrey Keating <geoffk@apple.com>
17608
17609 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
17610
7192d2a6 176112007-06-01 Ian Lance Taylor <iant@google.com>
17612
17613 * tree-vrp.c (compare_name_with_value): Always set
17614 used_strict_overflow if we get a result from the variable itself.
17615
4e7a1eb8 176162007-06-01 Ian Lance Taylor <iant@google.com>
17617
17618 PR rtl-optimization/31455
17619 * lower-subreg.c (find_decomposable_subregs): Don't decompose
17620 subregs which have a cast between modes which are not tieable.
17621
4631d202 176222007-06-01 Uros Bizjak <ubizjak@gmail.com>
17623
17624 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
17625 breaks after return statements.
17626
395df746 176272007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
17628
17629 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
17630 only after no_new_pseudos.
17631
1f8b6002 176322007-05-31 Eric Christopher <echristo@apple.com>
17633
17634 * expr.c (convert_move): Assert that we don't have a BLKmode
17635 operand.
17636 (store_expr): Handle BLKmode moves by calling emit_block_move.
17637
17075f13 176382007-05-31 Daniel Berlin <dberlin@dberlin.org>
17639
17640 * c-typeck.c (build_indirect_ref): Include type in error message.
17641 (build_binary_op): Pass types to binary_op_error.
17642 * c-common.c (binary_op_error): Take two type arguments, print out
17643 types with error.
17644 * c-common.h (binary_op_error): Update prototype.
17645
2fc41e3c 176462007-05-31 H.J. Lu <hongjiu.lu@intel.com>
17647
17648 * config/i386/i386.c: Correct coments on -mno-sse4.
17649
f25d51c3 176502007-05-31 H.J. Lu <hongjiu.lu@intel.com>
17651
f0dd3deb 17652 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
f25d51c3 17653 (x86_64-*-*): Likewise.
f25d51c3 17654 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
17655 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
17656 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
17657 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
17658 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
17659 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
17660 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
17661 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
17662 (OPTION_MASK_ISA_SSE4): Likewise.
17663 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
17664 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
f0dd3deb 17665 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
f25d51c3 17666 (override_options): Support SSE4.2.
17667 (ix86_build_const_vector): Support SImode and DImode.
17668 (ix86_build_signbit_mask): Likewise.
17669 (ix86_expand_int_vcond): Support V2DImode.
17670 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
17671 (IX86_BUILTIN_CRC32HI): Likewise.
17672 (IX86_BUILTIN_CRC32SI): Likewise.
17673 (IX86_BUILTIN_CRC32DI): Likewise.
17674 (IX86_BUILTIN_PCMPGTQ): Likewise.
17675 (bdesc_crc32): Likewise.
17676 (bdesc_sse_3arg): Likewise.
17677 (ix86_expand_crc32): Likewise.
17678 (ix86_init_mmx_sse_builtins): Support SSE4.2.
17679 (ix86_expand_builtin): Likewise.
f25d51c3 17680 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
17681 __SSE4_2__ for -msse4.2.
f25d51c3 17682 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
17683 (CRC32MODE): Likewise.
17684 (crc32modesuffix): Likewise.
17685 (crc32modeconstraint): Likewise.
17686 (sse4_2_crc32<mode>): Likewise.
17687 (sse4_2_crc32di): Likewise.
f25d51c3 17688 * config/i386/i386.opt (msse4.2): New for SSE4.2.
17689 (msse4): Likewise.
f0dd3deb 17690 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
f25d51c3 17691 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
f0dd3deb 17692 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
f25d51c3 17693 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
17694 (vcondu<mode>): Likewise.
f25d51c3 17695 * doc/extend.texi: Document SSE4.2 built-in functions.
f25d51c3 17696 * doc/invoke.texi: Document -msse4.2/-msse4.
17697
a4c3242a 176982007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
17699
17700 PR tree-optimization/32160
17701 * tree-predcom.c (predcom_tmp_var): New function. Mark created
17702 variable as gimple reg.
17703 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
17704
3293d046 177052007-05-31 Kazu Hirata <kazu@codesourcery.com>
17706
17707 * gcc.c (main): Don't consider linker options when issuing the
17708 warning about a linker input file not being used.
17709
29188799 177102007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17711
17712 * tree-vrp.c (compare_names): Initialize sop.
17713
ad600aea 177142007-05-30 Dirk Mueller <dmueller@suse.de>
17715
17716 * cgraphunit.c (cgraph_analyze_function): Remove
17717 computation of inline parameters.
17718
177192007-05-30 Uros Bizjak <ubizjak@gmail.com>
94010584 17720
17721 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
17722
bac7fc85 177232007-05-30 Richard Sandiford <richard@codesourcery.com>
17724
17725 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
17726 Add vx-common.h. Include vxworks.h between vx-common.h and
17727 arm/vxworks.h.
17728 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
17729 redefining.
17730 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
17731 (TARGET_ASM_DESTRUCTOR): Likewise.
17732 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
17733 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
17734 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
17735 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
17736 (VXWORKS_ENDIAN_SPEC): Define.
17737 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
17738 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
17739 VXWORKS_* equivalents.
17740 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
17741 (ASM_FILE_START): Delete.
17742 (TARGET_VERSION): Reformat.
17743 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
17744 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
17745 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
17746 (FPBIT, DPBIT): Define.
17747 (fp-bit.c, dp-bit.c): New rules.
17748 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
17749 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
17750 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
17751 * config/arm/arm.h: Include vxworks-dummy.h.
17752 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
17753 Mark with ATTRIBUTE_UNUSED.
17754 (arm_override_options): Do not allow VxWorks RTP PIC to be used
17755 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
17756 make it incompatible with -msingle-pic-base.
17757 (arm_function_ok_for_sibcall): Return false for calls that might
17758 go through a VxWorks PIC PLT entry.
17759 (require_pic_register): New function, split out from...
17760 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
17761 for VxWorks RTPs.
17762 (arm_load_pic_register): Handle the VxWorks RTP initialization
17763 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
17764 (arm_emit_call_insn): New function.
17765 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
17766 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
17767 (pic_offset_arm): New pattern.
17768 (call, call_value): Use arm_emit_call_insn.
17769 (call_internal, call_value_internal): New expanders.
17770 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
17771 VxWorks unless __PIC__.
17772
fb16c776 177732007-05-30 Eric Christopher <echristo@gmail.com>
17774
17775 * genrecog.c: Include regs.h in generated file.
17776 * genemit.c: Ditto. Fix up formatting.
17777 * config/mn10300/constraints.md: New.
17778 * config/mn10300/mn10300.md: Include.
17779 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
17780 Fix up for removed macro.
48dc2227 17781 * config/mn10300/predicates.md (call_address_operand): Ditto.
fb16c776 17782 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
17783 (CONST_OK_FOR_I): Ditto.
17784 (CONST_OK_FOR_J): Ditto.
17785 (CONST_OK_FOR_K): Ditto.
17786 (CONST_OK_FOR_L): Ditto.
17787 (CONST_OK_FOR_M): Ditto.
17788 (CONST_OK_FOR_N): Ditto.
17789 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
17790 (OK_FOR_Q): Ditto.
17791 (OK_FOR_R): Ditto.
17792 (OK_FOR_T): Ditto.
17793 (EXTRA_CONSTRAINT): Ditto.
17794
24fd7929 177952007-05-30 Uros Bizjak <ubizjak@gmail.com>
17796
17797 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
17798 Remove defines.
17799 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
17800 OPTION_MASK_ISA_64BIT.
17801 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
17802
4fafe0c4 178032007-05-30 Richard Guenther <rguenther@suse.de>
17804
17805 PR middle-end/32152
17806 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
17807 types for comparison.
17808 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
17809 with original typed arguments.
17810 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
17811
52413226 178122007-05-30 Jakub Jelinek <jakub@redhat.com>
17813
17814 PR tree-optimization/31769
17815 * except.c (duplicate_eh_regions): Clear prev_try if
17816 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
17817
4122c2d4 178182007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
17819
17820 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
17821 * tree-ssa-sink.c (statement_sink_location): Return basic block and
17822 bsi of the location where statements should be inserted.
17823 (sink_code_in_bb): Take bsi from statement_sink_location.
17824 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
17825 instead of bsi_start.
17826 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
17827 bsi_insert_after.
17828 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
17829 (bsi_move_before): Document inconsistency with bsi_move_after.
17830 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
17831
e44348b5 178322007-05-30 Uros Bizjak <ubizjak@gmail.com>
17833
17834 * config/i386/i386.h (TARGET_ABM): New define.
17835 (TARGET_POPCNT): Ditto.
17836 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
17837 New temporary defines to redefine from OPTION_ISA_* defines.
17838 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
17839 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
17840 (ix86_isa_flags): New extern int declaration.
17841 (TARGET_SUBTARGET_DEFAULT): New define.
17842 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
17843 (TARGET_SUBTARGET32_DEFAULT): Ditto.
17844 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
17845 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
17846 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
17847 * config/i386/darwin.h: Change TARGET_64BIT define to
17848 OPTION_ISA_64BIT.
17849
17850 * config/i386/i386.opt (m3dnowa): Define as undocumented option
17851 using existing "ix86_isa_flags" varible.
17852 (m32, m64): Use existing "ix86_isa_flags" variable.
17853 (mmmx, m3dnow): Ditto.
17854 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
17855 (mabm): Define as non-negative option using "x86_abm" variable.
17856 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
17857
17858 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
17859 Rewrite feature test bitmap.
17860 (ix86_isa_flags): New initialized global int varible.
17861 (ix86_isa_flags_explicit): New static int variable.
17862 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
17863 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
17864 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
17865 target_flags_explicit.
17866 (override_options): Remove "target_enable" and "target_disable" fields
17867 from "struct ptt". Update processor_target_table accordingly. Remove
17868 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
17869 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
17870 "target_flags" and "ix86_isa_flags_explicit" instead of
17871 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
17872 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
17873 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
17874 to true when either of PTA_POPCNT or PTA_ABM is set in
17875 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
17876 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
17877 processor_alias_table flags entry. Remove handling of
17878 "target_enable" and "target_disable" fields of processor_target_table.
17879 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
17880 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
17881 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
17882 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
17883 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
17884 "target_flags".
17885 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
17886
24fd7929 178872007-05-29 David Daney <ddaney@avtrex.com>
f3aae35f 17888
17889 PR gcc/31975
17890 * config/mips/mips.c (mips_output_mi_thunk): Emit
17891 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
17892
8604e6cc 178932007-05-29 Hui-May Chang <hm.chang@apple.com>
fb16c776 17894 * config/i386/i386.c (ix86_function_regparm): Added checking of
8604e6cc 17895 ix86_force_align_arg_pointer to determine the number of
17896 register parameters.
17897
5c205353 178982007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
17899
17900 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
17901 (SET_DR_MISALIGNMENT): New.
17902 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
17903 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
17904 Use SET_DR_MISALIGNMENT.
17905 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
17906 pointer.
17907 * tree-data-ref.c (create_data_ref, compute_all_dependences,
17908 find_loop_nest): Export.
17909 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
17910 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
17911 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
17912 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
17913 New macros.
17914 (struct mem_ref): Add field reuse_distance.
17915 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
17916 Initialize reuse_distance field.
17917 (issue_prefetch_ref): Select temporality of prefetch according to
17918 reuse_distance.
17919 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
17920 self_reuse_distance, determine_loop_nest_reuse): New functions.
17921 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
17922 (tree_ssa_prefetch_arrays): Dump L2 cache size.
17923 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
17924 dependency.
17925
89467286 179262007-05-29 Daniel Berlin <dberlin@dberlin.org>
17927
17928 * tree-ssa-alias.c: Add aliasing overview.
17929
8f433c51 179302007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
5c205353 17931 Danny Smith <dannysmith@users.sourceforge.net>
8f433c51 17932
17933 PR target/29498
17934 * config/i386/t-crtfm: Compile crtfastmath.o with
17935 -minline-all-stringops.
17936 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
17937 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
17938
59ad2f1e 179392007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17940
99a75a59 17941 * doc/md.texi: Document constraints on HP PA-RISC.
17942
59ad2f1e 17943 * pa/constraints.md: New file.
17944 * pa.md: Include constraints.md.
17945 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
17946 (integer_store_memory_operand, ldil_cint_p): New functions.
17947 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
17948 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
17949 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
17950 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
17951 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
17952
3c550432 179532007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
17954
17955 PR c/31339
17956 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
17957 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
17958 case POSTDECREMENT_EXPR>): Return the error_mark_node
17959 if either the real or imaginary parts would an
17960 error_mark_node.
17961
e4c991ae 179622007-05-28 Daniel Berlin <dberlin@dberlin.org>
17963
17964 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
17965 name when we remove it from a call.
17966
87772ee1 179672007-05-28 Kazu Hirata <kazu@codesourcery.com>
17968
17969 * targhooks.c (default_narrow_bitfield): Remove.
17970 * targhooks.h: Remove the prototype for
17971 default_narrow_bitfield.
17972
171822d5 17973 * langhooks-def.h: Remove the prototype for
17974 hook_get_alias_set_0.
17975 * langhooks.c (hook_get_alias_set_0): Remove.
17976
93fa56e7 17977 * global.c (EXECUTE_IF_CONFLICT): Remove.
17978
f26516cb 179792007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
17980
17981 PR tree-opt/32100
17982 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
17983 return true when truth_value_p is true and the type
17984 is of signed:1.
17985
d67640e5 179862007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
17987
17988 * doc/install.texi (Prerequisites): We no longer require Autoconf
17989 2.13 for the top-level.
17990
bd318e71 179912007-05-28 Uros Bizjak <ubizjak@gmail.com>
17992
17993 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
17994 memory access via x86_expand_vector_move_misalign() only for
17995 TImode values on 32-bit targets.
fb16c776 17996
179972007-05-28 Razya Ladelsky <razya@il.ibm.com>
17998
bd318e71 17999 * matrix-reorg.c: New file. Implement matrix flattening and
18000 transposing optimization.
18001 * tree-pass.h: Add matrix reorg pass.
18002 * common.opt: Add fipa-mreorg flag.
18003 * Makefile.in: Add matrix-reorg.c.
18004 * passes.c: Add matrix reorg pass.
18005 * varpool.c (add_new_static_var): New function.
18006 * cgraph.h (add_new_static_var): Declare.
604cde73 18007
632dff31 180082007-05-27 Eric Christopher <echristo@apple.com>
18009
18010 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
18011 sp_offset depending on stack size. Save r12 depending
18012 on registers we're saving later.
18013 (rs6000_emit_epilogue): Update sp_offset depending only
18014 on stack size.
18015
7a3bf727 180162007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
18017
18018 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
18019 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
18020 * ifcvt.c (if_convert): Ditto.
18021 * tree-ssa-threadupdate.c (thread_block): Ditto.
18022 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
18023 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
e44348b5 18024 verify_loop_closed_ssa): Check number_of_loops instead of
18025 current_loops.
7a3bf727 18026 * predict.c (tree_estimate_probability): Ditto.
18027 * tree-if-conv.c (main_tree_if_conversion): Ditto.
18028 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
18029 * modulo-sched.c (sms_schedule): Ditto.
18030 * tree-scalar-evolution.c (scev_const_prop): Ditto.
18031 (scev_finalize): Do not do anything if scev analysis was not
18032 initialized.
18033 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
18034 current_loops == NULL.
18035 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
18036 * loop-init.c (loop_optimizer_init): Do not free current_loops when
18037 there are no loops.
18038 (loop_optimizer_finalize): Assert that loops were analyzed.
18039 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
18040 rtl_doloop): Check number_of_loops instead of current_loops.
18041 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
18042 current_loops == NULL.
18043 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
18044 gate_tree_vectorize tree_linear_transform, check_data_deps,
18045 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
18046 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
18047 Check number_of_loops instead of current_loops.
18048 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
18049 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
18050 free loops if available.
18051 (execute_pre): Do not pass do_fre to fini_pre.
18052
f53594a1 180532007-05-27 Tobias Burnus <burnus@net-b.de>
18054
18055 PR middle-end/32083
18056 * real.c (mpfr_from_real): Fix sign of -Inf.
18057
6bc904cc 180582007-05-27 H.J. Lu <hongjiu.lu@intel.com>
18059
18060 * tree-vect-transform.c (vectorizable_conversion): Initialize
18061 tree_code variables to ERROR_MARK.
18062 (vectorizable_type_demotion): Likewise.
18063 (vectorizable_type_promotion): Likewise.
18064
66c4d264 180652007-05-26 Uros Bizjak <ubizjak@gmail.com>
18066
18067 PR target/32065
18068 * config/i386/i386.md (movti): Handle push operands via
18069 ix86_expand_push().
18070
d447e866 180712007-05-26 Kazu Hirata <kazu@codesourcery.com>
18072
18073 * basic-block.h: Remove the prototype for merge_seq_blocks.
18074 * cfgcleanup.c (merge_seq_blocks): Remove.
18075
c62a6ee6 18076 * tree-flow.h: Remove the prototype for is_aliased_with.
18077 * tree-ssa-alias.c (is_aliased_with): Remove.
18078
49e5b7e8 180792007-05-26 H.J. Lu <hongjiu.lu@intel.com>
18080
18081 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
18082
18083 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
18084
18085 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
18086 ix86_expand_sse4_unpack if SSE4.1 is enabled.
18087 (vec_unpacks_hi_v16qi): Likewise.
18088 (vec_unpacku_lo_v16qi): Likewise.
18089 (vec_unpacks_lo_v16qi): Likewise.
18090 (vec_unpacku_hi_v8hi): Likewise.
18091 (vec_unpacks_hi_v8hi): Likewise.
18092 (vec_unpacku_lo_v8hi): Likewise.
18093 (vec_unpacks_lo_v8hi): Likewise.
18094 (vec_unpacku_hi_v4si): Likewise.
18095 (vec_unpacks_hi_v4si): Likewise.
18096 (vec_unpacku_lo_v4si): Likewise.
18097 (vec_unpacks_lo_v4si): Likewise.
18098
666137bc 180992007-05-26 Kazu Hirata <kazu@codesourcery.com>
18100
18101 * c-typeck.c, config/arm/arm.c, config/darwin.c,
18102 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
18103 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
18104 follow spelling conventions in various
18105 warning/error/diagnostic messages.
18106
80777cd8 18107 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
18108 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
18109 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
18110 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
18111 tree-vrp.c: Fix comment typos. Follow spelling conventions.
18112 * doc/tm.texi: Follow spelling conventions.
18113
6c01267c 181142007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
18115
18116 PR tree-opt/32090
18117 * tree-ssa-forwprop.c
18118 (forward_propagate_addr_into_variable_array_index): Remove
18119 the lhs argument. Use the type of def_rhs instead of lhs.
18120 (forward_propagate_addr_expr_1): Update use of
18121 forward_propagate_addr_into_variable_array_index.
18122
7808555b 181232007-05-25 Sandra Loosemore <sandra@codesourcery.com>
18124 Nigel Stephens <nigel@mips.com>
18125
18126 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
18127 function attributes, "far" being an alias for "long_call".
18128 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
18129 (mips_near_type_p, mips_far_type_p): New.
18130 (mips_comp_type_attributes): New function to check that attributes
18131 attached to a function type are compatible.
18132 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
18133 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
18134 to the target function of the thunk.
18135 (mips_encode_section_info): Check for "near" and "far" function
18136 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
18137
18138 * config/mips/predicates.md (const_call_insn_operand): Test only
18139 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
18140
18141 * doc/extend.texi (Function Attributes): Document MIPS "near" and
18142 "far" attributes.
18143
48dc2227 18144 * testsuite/gcc.target/mips/near-far-1.c: New test case.
18145 * testsuite/gcc.target/mips/near-far-2.c: New test case.
18146 * testsuite/gcc.target/mips/near-far-3.c: New test case.
18147 * testsuite/gcc.target/mips/near-far-4.c: New test case.
7808555b 18148
01b68987 181492007-05-25 Eric Christopher <echristo@apple.com>
18150
18151 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
18152 to x86-darwin configurations.
18153 * config/i386/t-darwin: Add softfp support.
18154 * config/i386/t-darwin64: Ditto.
18155 * config/i386/sfp-machine.h: If mach then don't use
18156 aliasing, emit a stub to call.
18157
310d2511 181582007-05-25 Kazu Hirata <kazu@codesourcery.com>
18159
18160 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
18161 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
18162 tree-predcom.c, tree-ssa-alias-warnings.c,
18163 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
18164 comment typos. Follow spelling conventions.
18165 * doc/cpp.texi, doc/invoke.texi: Fix typos.
18166
d07131bd 181672007-05-26 Uros Bizjak <ubizjak@gmail.com>
18168
18169 PR target/32065
18170 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
18171 constants into memory. Expand unaligned memory references for
18172 SSE modes via x86_expand_vector_move_misalign() function.
18173
cd90e13c 181742007-05-25 Uros Bizjak <ubizjak@gmail.com>
18175
18176 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
18177 "memory" attribute for "sseishft" type insn without operands[2].
18178
4a29c97c 181792007-05-25 Dirk Mueller <dmueller@suse.de>
18180 Marcus Meissner <meissner@suse.de>
18181
18182 * doc/extend.texi (alloc_size): New attribute.
18183 * c-common.c (handle_alloc_size_attribute): New.
18184 * tree-object-size.c (alloc_object_size): Use alloc_size
18185 attribute, if available.
18186
75bbc19a 181872007-05-25 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
18190 with MASK_SSE2.
18191 (__builtin_ia32_vec_ext_v2di): Likewise.
18192 (__builtin_ia32_vec_ext_v4si): Likewise.
18193 (__builtin_ia32_vec_ext_v8hi): Likewise.
18194 (__builtin_ia32_vec_ext_v16qi): Likewise.
18195 (__builtin_ia32_vec_set_v8hi): Likewise.
18196
c5823964 181972007-05-25 H.J. Lu <hongjiu.lu@intel.com>
18198
18199 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
18200
de55252a 182012007-05-25 Richard Sandiford <richard@codesourcery.com>
18202
18203 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
18204 (arm_is_longcall_p): Rename to...
18205 (arm_is_long_call_p): ...this. Take a single tree argument and
18206 return a bool.
18207 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
18208 (CUMULATIVE_ARGS): Remove call_cookie.
18209 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
18210 (ENCODED_LONG_CALL_ATTR_P): Delete.
18211 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
18212 LONG_CALL_FLAG_CHAR cases.
18213 (ARM_DECLARE_FUNCTION_SIZE): Delete.
18214 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
18215 ARM_DECLARE_FUNCTION_SIZE.
18216 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
18217 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
18218 (arm_encode_call_attribute, current_file_function_operand): Delete.
18219 (arm_function_in_section_p): New function.
18220 (arm_is_longcall_p): Rename to...
18221 (arm_is_long_call_p): ...this. Take the target function as a single
18222 argument and return a bool. Do not rely on call cookies. Check
18223 whether the target symbol is in the same section as the current
18224 function, not just the same compilation unit.
18225 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
18226 (arm_encode_section_info): Don't encode a call type.
18227 * config/arm/arm.md (call, call_value): Update calls to
18228 arm_is_long(_)call_p. Simplify logic.
18229 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
18230 Update calls to arm_is_long(_)call_p.
18231
1a773ec5 182322007-05-25 Richard Guenther <rguenther@suse.de>
18233
18234 PR tree-optimization/31982
18235 * tree-ssa-forwprop.c
18236 (forward_propagate_addr_into_variable_array_index): Handle arrays
18237 with element size one.
18238
0ac90aa3 182392007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
18240
18241 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
18242 (umulsi3_highpart): Likewise.
18243
93340cae 182442007-05-24 Ian Lance Taylor <iant@google.com>
18245
18246 PR rtl-optimization/32069
18247 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
18248 is NULL.
18249
ce079f70 182502007-05-24 Ollie Wild <aaw@google.com>
18251
18252 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
18253 description.
18254
20128b13 182552007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
18256
18257 * postreload-gcse.c (reg_changed_after_insn_p): New function.
18258 (oprs_unchanged_p): Use it to check all registers in a REG.
18259 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
18260 (reg_set_between_after_reload_p): Delete.
18261 (reg_used_between_after_reload_p): Likewise.
18262 (reg_set_or_used_since_bb_start): Likewise.
18263 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
18264 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
18265 Use reg_set_between_p instead of reg_set_between_after_reload_p.
18266 * rtlanal.c (reg_set_p): Check whether REG overlaps
18267 regs_invalidated_by_call, rather than just checking the
18268 membership of REGNO (REG).
18269
ad4a85ad 182702007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
18271
18272 * doc/passes.texi: Document predictive commoning.
18273 * doc/invoke.texi (-fpredictive-commoning): Document.
18274 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
18275 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
18276 adding indices to the generated name.
18277 (schedule_sm): Pass 0 to get_lsm_tmp_name.
18278 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
18279 * tree-pretty-print.c (op_symbol_1): Renamed to ...
18280 (op_symbol_code): ... and exported.
18281 (dump_omp_clause, op_symbol): Use op_symbol_code
18282 instead of op_symbol_1.
18283 * tree-pass.h (pass_predcom): Declare.
18284 * timevar.def (TV_PREDCOM): New timevar.
18285 * tree-ssa-loop.c (run_tree_predictive_commoning,
18286 gate_tree_predictive_commoning, pass_predcom): New.
18287 * tree-data-ref.c (find_data_references_in_loop): Find the
18288 references in dominance order.
18289 (canonicalize_base_object_address): Ensure that the result has
18290 pointer type.
18291 (dr_analyze_innermost): Export.
18292 (create_data_ref): Code to fail for references with invariant
18293 address moved ...
18294 (find_data_references_in_stmt): ... here.
18295 * tree-data-ref.h (dr_analyze_innermost): Declare.
18296 * tree-affine.c: Include tree-gimple.h and hashtab.h.
18297 (aff_combination_find_elt, name_expansion_hash,
18298 name_expansion_eq, tree_to_aff_combination_expand,
18299 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
18300 New functions.
18301 * tree-affine.h (aff_combination_constant_multiple_p,
18302 tree_to_aff_combination_expand): Declare.
18303 * tree-predcom.c: New file.
18304 * common.opt (fpredictive-commoning): New option.
18305 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
18306 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
18307 * Makefile.in (tree-predcom.o): Add.
18308 (tree-affine.o): Add TREE_GIMPLE_H dependency.
48dc2227 18309 * passes.c (init_optimization_passes): Add dceloop after
ad4a85ad 18310 copy propagation in loop optimizer. Add predictive commoning
18311 to loop optimizer passes.
18312
56788545 183132007-05-24 H.J. Lu <hongjiu.lu@intel.com>
18314
18315 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
18316 default hook.
18317
60ad3b0e 183182007-05-24 Jan Hubicka <jh@suse.cz>
18319
7b613d12 18320 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
18321 statistics.
18322 (genheader): Include statistics.h.
18323
60ad3b0e 18324 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
18325 notes are gone.
18326 * print-rtl.c (flag_dump_unnumbered): Update comments.
18327 (print_rtl): Fix my previous change.
18328 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
18329 specific data.
18330
96c90e5e 183312007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
18332
18333 PR middle-end/32018
18334 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
18335 set_loop_copy.
18336 (thread_through_all_blocks): Call initialize_original_copy_tables
18337 and free_original_copy_tables.
18338 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
18339 Use set_loop_copy.
18340 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
18341 * cfghooks.c (duplicate_block): Use get_loop_copy.
18342 * cfg.c: Include cfgloop.h.
18343 (loop_copy): New hash table.
18344 (initialize_original_copy_tables): Initialize loop_copy table.
18345 (free_original_copy_tables): Free loop_copy table.
18346 (copy_original_table_clear, copy_original_table_set,
18347 set_loop_copy, get_loop_copy): New functions.
18348 (set_bb_original, set_bb_copy): Use copy_original_table_set.
18349 * cfgloop.h (struct loop): Remove copy field.
18350 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
18351 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
18352
7ed90ee0 183532007-05-24 H.J. Lu <hongjiu.lu@intel.com>
18354
18355 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
18356 -msse/-msse2/-msse3.
18357
b93eb9a1 183582007-05-24 H.J. Lu <hongjiu.lu@intel.com>
18359
18360 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
18361 __builtin_ia32_vec_set_v2di with MASK_64BIT.
18362
97a424bc 183632007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
18364
18365 PR target/27067
18366 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
18367 * targhooks.h (default_mangle_decl_assembler_name): Declare
18368 default hook.
18369 * targhooks.c (default_mangle_decl_assembler_name): Define
18370 default hook.
18371 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
18372 default hook.
18373 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
18374 * langhooks.c (lhd_set_decl_assembler_name): Call
18375 targetm.mangle_decl_assembler_name for names with global scope.
18376
18377 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
18378 default.
18379 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
18380 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
18381 Declare.
18382 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18383 New. Factored out of i386_pe_encode_section_info.
18384 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
18385 Move check for prior decoration of stdcall
18386 symbols to i386_pe_encode_section_info.
18387 (i386_pe_encode_section_info): Adjust call to
18388 gen_stdcall_or_fastcall_suffix. Use
18389 i386_pe_maybe_mangle_decl_assembler_name, if needed.
18390 (i386_pe_mangle_decl_assembler_name): New. Wrap
18391 i386_pe_maybe_mangle_decl_assembler_name.
18392
ac265864 183932007-05-16 Rafael Avila de Espindola <espindola@google.com>
18394
18395 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
18396 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
18397 * langhooks.c (get_signed_or_unsigned_type): Don't check for
18398 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
18399 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
18400 TYPE_UNSIGNED.
18401
50b412ce 184022007-05-23 Sandra Loosemore <sandra@codesourcery.com>
18403 Nigel Stephens <nigel@mips.com>
18404 Richard Sandiford <richard@codesourcery.com>
18405
18406 Fix up MIPS16 hard float and add support for complex.
18407
18408 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
18409 (TARGET_SOFT_FLOAT_ABI): New.
18410 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
18411 __mips_soft_float to reflect the ABI in use, not whether the
18412 FPU is directly accessible (e.g., in MIPS16 mode).
18413 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
18414 (UNITS_PER_FPVALUE): Likewise.
18415
18416 * config/mips/mips.c (mips_expand_call): Remove redundant
18417 TARGET_MIPS16 check.
18418 (mips_arg_regno): New.
18419 (function_arg_advance): When setting bits in cum->fp_code for
18420 MIPS16, don't subtract 1 from cum->arg_number, since it is now
18421 zero-based.
18422 (function_arg): Use mips_arg_regno.
18423 (mips_return_mode_in_fpr_p): New.
18424 (mips16_call_stub_mode_suffix): New.
18425 (mips16_cfun_returns_in_fpr_p): New.
18426 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
18427 (mips_output_function_prologue): Test mips16_hard_float, not
18428 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
18429 (mips_expand_epilogue): Call MIPS16 helper routines to copy
18430 return value into a floating-point register.
18431 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
18432 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
18433 (mips16_fp_args): Handle MIPS32r2 ISA which supports
18434 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
18435 word of double arguments from or to the high bits of 64-bit
18436 floating point registers.
18437 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
18438 (mips16_fpret_double): New helper function.
18439 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
18440 support for complex modes. Fill in DECL_RESULT for stubdecl.
18441 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
18442
01b68987 18443 * config/mips/mips16.S
50b412ce 18444 (RET, ARG1, ARG2): New.
18445 (MERGE_GPRf, MERGE_GPRt): New.
18446 (DELAYt, DELAYf): New.
18447 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
18448 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
18449 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
18450 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
18451 (SFOP): Renamed to...
18452 (OPSF3): This, and macro-ified. Updated all uses.
18453 (SFOP2): Renamed to...
18454 (OPSF2): This, and macro-ified. Updated all uses.
18455 (SFCMP): Renamed to...
18456 (CMPSF): This, and macro-ified. Updated all uses.
18457 (SFREVCMP): Renamed to...
18458 (REVCMPSF): This, and macro-ified. Updated all uses.
18459 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
18460 (LDDBL1, LDDBL2, RETDBL): Deleted.
18461 (DFOP): Renamed to...
18462 (OPDF3): This, and macro-ified. Updated all uses.
18463 (DFOP2): Renamed to...
18464 (OPDF2): This, and macro-ified. Updated all uses.
18465 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
18466 (DFCMP): Renamed to...
18467 (CMPDF): This, and macro-ified. Updated all uses.
18468 (DFREVCMP): Renamed to...
18469 (REVCMPDF): This, and macro-ified. Updated all uses.
18470 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
18471 (RET_FUNCTION): New.
18472 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
18473 (__mips16_ret_sc, __mips16_ret_dc): New.
18474 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
18475 STUB_ARGS_6, STUB_ARGS_10): New.
18476 (CALL_STUB_NO_RET): New.
18477 (__mips16_call_stub_1): Macro-ified.
18478 (__mips16_call_stub_5): Macro-ified.
18479 (__mips16_call_stub_2): Macro-ified.
18480 (__mips16_call_stub_6): Macro-ified.
18481 (__mips16_call_stub_9): Macro-ified.
18482 (__mips16_call_stub_10): Macro-ified.
18483 (CALL_STUB_RET): New.
18484 (__mips16_call_stub_sf_0): Macro-ified.
18485 (__mips16_call_stub_sf_1): Macro-ified.
18486 (__mips16_call_stub_sf_5): Macro-ified.
18487 (__mips16_call_stub_sf_2): Macro-ified.
18488 (__mips16_call_stub_sf_6): Macro-ified.
18489 (__mips16_call_stub_sf_9): Macro-ified.
18490 (__mips16_call_stub_sf_10): Macro-ified.
18491 (__mips16_call_stub_df_0): Macro-ified.
18492 (__mips16_call_stub_df_1): Macro-ified.
18493 (__mips16_call_stub_df_5): Macro-ified.
18494 (__mips16_call_stub_df_2): Macro-ified.
18495 (__mips16_call_stub_df_6): Macro-ified.
18496 (__mips16_call_stub_df_9): Macro-ified.
18497 (__mips16_call_stub_df_10): Macro-ified.
18498 (__mips16_call_stub_sc_0): New.
18499 (__mips16_call_stub_sc_1): New.
18500 (__mips16_call_stub_sc_5): New.
18501 (__mips16_call_stub_sc_2): New.
18502 (__mips16_call_stub_sc_6): New.
18503 (__mips16_call_stub_sc_9): New.
18504 (__mips16_call_stub_sc_10): New.
18505 (__mips16_call_stub_dc_0): New.
18506 (__mips16_call_stub_dc_1): New.
18507 (__mips16_call_stub_dc_5): New.
18508 (__mips16_call_stub_dc_2): New.
18509 (__mips16_call_stub_dc_6): New.
18510 (__mips16_call_stub_dc_9): New.
18511 (__mips16_call_stub_dc_10): New.
01b68987 18512
50b412ce 18513 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
18514 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
18515 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
18516
72d1a71d 185172007-05-23 Ian Lance Taylor <iant@google.com>
18518
18519 * doc/invoke.texi (Invoking GCC): Document that the order of the
18520 -l option matters.
18521
8cc26894 185222007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
18523
18524 PR target/30987
d7e69d69 18525 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
18526 * config/score/predicate.md (const_pow2, const_npow2): Remove.
18527 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
18528 undef.
18529
8cc26894 18530 PR target/30474
d7e69d69 18531 * config/score/score.c (score_print_operand): Make sure that only
18532 lower bits are used.
01b68987 18533
afc1ad6d 185342007-05-22 Ian Lance Taylor <iant@google.com>
18535
18536 * tree-vrp.c (avoid_overflow_infinity): New static function,
18537 broken out of set_value_range_to_value.
18538 (set_value_range_to_value): Call avoid_overflow_infinity.
18539 (extract_range_from_assert): Likewise.
18540
05be68f3 185412007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
18542
18543 PR middle-end/31095
18544 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
18545 change the type before looking for a COMPOUND_EXPR.
18546
44e61675 185472007-05-22 Ian Lance Taylor <iant@google.com>
18548
18549 * lower-subreg.c (decompose_multiword_subregs): If we change an
18550 insn, call remove_retval_note on it.
18551
a2c6f0b7 185522007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
18553
18554 * regs.h (end_hard_regno): New function.
18555 (END_HARD_REGNO, END_REGNO): New macros.
18556 (add_to_hard_reg_set): New function.
18557 (remove_from_hard_reg_set): Likewise.
18558 (in_hard_reg_set_p): Likewise.
18559 (overlaps_hard_reg_set_p): Likewise.
18560 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
18561 (note_btr_set): Use END_HARD_REGNO.
18562 * caller-save.c (setup_save_areas): Use end_hard_regno.
18563 (mark_set_regs): Use END_HARD_REGNO.
18564 (add_stored_regs): Use end_hard_regno.
18565 (mark_referenced_regs): Use add_to_hard_reg_set.
18566 * combine.c (update_table_tick): Use END_REGNO.
18567 (record_value_for_reg): Likewise.
18568 (record_dead_and_set_regs): Likewise.
18569 (get_last_value_validate): Likewise.
18570 (use_crosses_set_p): Likewise.
18571 (reg_dead_at_p_1): Likewise.
18572 (reg_dead_at_p): Likewise.
18573 (mark_used_regs_combine): Use add_to_hard_reg_set.
18574 (move_deaths): Use END_HARD_REGNO.
18575 (reg_bitfield_target_p): Use end_hard_regno.
18576 (distribute_notes): Use END_HARD_REGNO.
18577 * cse.c (mention_regs): Use END_REGNO.
18578 (insert): Use add_to_hard_reg_set.
18579 (invalidate): Use END_HARD_REGNO.
18580 (invalidate_for_call): Likewise.
18581 (exp_equiv_p): Use END_REGNO.
18582 (cse_insn): Likewise.
18583 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
18584 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
18585 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
18586 * function.c (keep_stack_depressed): Use end_hard_regno.
18587 * global.c (global_alloc): Use end_hard_regno.
18588 (global_conflicts): Use add_to_hard_reg_set instead of
18589 mark_reg_live_nc.
18590 (find_reg): Likewise.
18591 (mark_reg_store): Likewise.
18592 (mark_reg_conflicts): Likewise.
18593 (mark_reg_death): Use remove_from_hard_reg_set.
18594 (mark_reg_live_nc): Delete.
18595 (set_preference): Use end_hard_regno.
18596 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
18597 remove_from_hard_reg_set.
18598 (post_mark_life): Use add_to_hard_reg_set.
18599 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
18600 (reg_becomes_live): Use add_to_hard_reg_set.
18601 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
18602 (peep2_find_free_register): Use add_to_hard_reg_set.
18603 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
18604 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
18605 * regrename.c (note_sets): Use add_to_hard_reg_set.
18606 (clear_dead_regs): Use remove_from_hard_reg_set.
18607 (regrename_optimize): Use add_to_hard_reg_set.
18608 (find_oldest_value_reg): Use in_hard_reg_set_p.
18609 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
18610 (hard_reg_set_here_p): Use end_hard_regno.
18611 (decompose): Likewise.
18612 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
18613 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
18614 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
18615 (mark_home_live): Use end_hard_regno.
18616 (spill_hard_reg): Likewise.
18617 (clear_reload_reg_in_use): Likewise.
18618 * reorg.c (delete_prior_computation): Use END_REGNO.
18619 * resource.c (update_live_status): Use END_HARD_REGNO.
18620 (mark_referenced_resources): Use add_to_hard_reg_set.
18621 (mark_set_resources): Likewise.
18622 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
18623 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
18624 (reg_overlap_mentioned_p): Likewise.
18625 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
18626 (covers_regno_no_parallel_p): Use END_REGNO.
18627 (find_regno_note): Likewise.
18628 (find_reg_fusage): Use END_HARD_REGNO.
18629 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
18630 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
18631
0ff4fe1d 186322007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
18633
18634 * mode-switching.c (reg_dies): Change type of second argument to
18635 "HARD_REG_SET *".
18636 (optimize_mode_switching): Update accordingly.
18637
ddc556d1 186382007-05-22 Richard Sandiford <richard@codesourcery.com>
18639
18640 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
18641 in favor of...
18642 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
18643 (hard_reg_set_empty_p): ...these new functions.
18644 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
18645 GO_IF_HARD_REG_SUBSET.
18646 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
18647 instead of GO_IF_HARD_REG_EQUAL.
18648 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
18649 instead of GO_IF_HARD_REG_EQUAL.
18650 * global.c (find_reg): Use hard_reg_set_empty_p instead of
18651 GO_IF_HARD_REG_SUBSET.
18652 (modify_reg_pav): Use hard_reg_set_empty_p instead of
18653 GO_IF_HARD_REG_EQUAL.
18654 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
18655 of GO_IF_HARD_REG_SUBSET.
18656 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
18657 instead of GO_IF_HARD_REG_EQUAL.
18658 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
18659 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
18660 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
18661 of GO_IF_HARD_REG_SUBSET,
18662 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
18663 GO_IF_HARD_REG_SUBSET.
18664 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
18665 instead of GO_IF_HARD_REG_EQUAL.
18666 * config/sh/sh.c (push_regs, calc_live_regs): Use
18667 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
18668 (hard_regs_intersect_p): Delete.
18669
5130af5f 186702007-05-22 Janis Johnson <janis187@us.ibm.com>
18671
18672 * doc/sourcebuild.texi (Test Directives) Add dg-message.
18673
2d771892 186742007-05-22 H.J. Lu <hongjiu.lu@intel.com>
18675 Richard Henderson <rth@redhat.com>
18676
18677 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
18678 extra_headers.
18679 (x86_64-*-*): Likewise.
18680
18681 * i386/i386-modes.def (V2QI): New.
18682
18683 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
18684 SSE4A.
18685 (override_options): Support SSE4.1.
18686 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
18687 (IX86_BUILTIN_BLENDPS): Likewise.
18688 (IX86_BUILTIN_BLENDVPD): Likewise.
18689 (IX86_BUILTIN_BLENDVPS): Likewise.
18690 (IX86_BUILTIN_PBLENDVB128): Likewise.
18691 (IX86_BUILTIN_PBLENDW128): Likewise.
18692 (IX86_BUILTIN_DPPD): Likewise.
18693 (IX86_BUILTIN_DPPS): Likewise.
18694 (IX86_BUILTIN_INSERTPS128): Likewise.
18695 (IX86_BUILTIN_MOVNTDQA): Likewise.
18696 (IX86_BUILTIN_MPSADBW128): Likewise.
18697 (IX86_BUILTIN_PACKUSDW128): Likewise.
18698 (IX86_BUILTIN_PCMPEQQ): Likewise.
18699 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
18700 (IX86_BUILTIN_PMAXSB128): Likewise.
18701 (IX86_BUILTIN_PMAXSD128): Likewise.
18702 (IX86_BUILTIN_PMAXUD128): Likewise.
18703 (IX86_BUILTIN_PMAXUW128): Likewise.
18704 (IX86_BUILTIN_PMINSB128): Likewise.
18705 (IX86_BUILTIN_PMINSD128): Likewise.
18706 (IX86_BUILTIN_PMINUD128): Likewise.
18707 (IX86_BUILTIN_PMINUW128): Likewise.
18708 (IX86_BUILTIN_PMOVSXBW128): Likewise.
18709 (IX86_BUILTIN_PMOVSXBD128): Likewise.
18710 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
18711 (IX86_BUILTIN_PMOVSXWD128): Likewise.
18712 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
18713 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
18714 (IX86_BUILTIN_PMOVZXBW128): Likewise.
18715 (IX86_BUILTIN_PMOVZXBD128): Likewise.
18716 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
18717 (IX86_BUILTIN_PMOVZXWD128): Likewise.
18718 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
18719 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
18720 (IX86_BUILTIN_PMULDQ128): Likewise.
18721 (IX86_BUILTIN_PMULLD128): Likewise.
18722 (IX86_BUILTIN_ROUNDPD): Likewise.
18723 (IX86_BUILTIN_ROUNDPS): Likewise.
18724 (IX86_BUILTIN_ROUNDSD): Likewise.
18725 (IX86_BUILTIN_ROUNDSS): Likewise.
18726 (IX86_BUILTIN_PTESTZ): Likewise.
18727 (IX86_BUILTIN_PTESTC): Likewise.
18728 (IX86_BUILTIN_PTESTNZC): Likewise.
18729 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
18730 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
18731 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
18732 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
18733 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
18734 (bdesc_ptest): New.
18735 (bdesc_sse_3arg): Likewise.
18736 (bdesc_2arg): Likewise.
18737 (bdesc_1arg): Likewise.
18738 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
18739 with 3 args.
18740 (ix86_expand_sse_4_operands_builtin): New.
18741 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
18742 smaller than 8 bits as the 2nd arg.
18743 (ix86_expand_sse_ptest): New.
18744 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
18745 (ix86_expand_vector_set): Support SSE4.1.
18746 (ix86_expand_vector_extract): Likewise.
18747
18748 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
18749 __SSE4_1__ for -msse4.1.
18750
18751 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
18752 (UNSPEC_INSERTPS): Likewise.
18753 (UNSPEC_DP): Likewise.
18754 (UNSPEC_MOVNTDQA): Likewise.
18755 (UNSPEC_MPSADBW): Likewise.
18756 (UNSPEC_PHMINPOSUW): Likewise.
18757 (UNSPEC_PTEST): Likewise.
18758 (UNSPEC_ROUNDP): Likewise.
18759 (UNSPEC_ROUNDS): Likewise.
18760
18761 * config/i386/i386.opt (msse4.1): New for SSE4.1.
18762
18763 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
18764 (const_pow2_1_to_32768_operand): Likewise.
18765
18766 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
18767 file.
18768
18769 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
18770 SSE4.1.
18771 (sse4_1_insertps): Likewise.
18772 (*sse4_1_extractps): Likewise.
18773 (sse4_1_ptest): Likewise.
18774 (sse4_1_mulv2siv2di3): Likewise.
18775 (*sse4_1_mulv4si3): Likewise.
18776 (*sse4_1_smax<mode>3): Likewise.
18777 (*sse4_1_umax<mode>3): Likewise.
18778 (*sse4_1_smin<mode>3): Likewise.
18779 (*sse4_1_umin<mode>3): Likewise.
18780 (sse4_1_eqv2di3): Likewise.
18781 (*sse4_1_pinsrb): Likewise.
18782 (*sse4_1_pinsrd): Likewise.
18783 (*sse4_1_pinsrq): Likewise.
18784 (*sse4_1_pextrb): Likewise.
18785 (*sse4_1_pextrb_memory): Likewise.
18786 (*sse4_1_pextrw_memory): Likewise.
18787 (*sse4_1_pextrq): Likewise.
18788 (sse4_1_blendpd): Likewise.
18789 (sse4_1_blendps): Likewise.
18790 (sse4_1_blendvpd): Likewise.
18791 (sse4_1_blendvps): Likewise.
18792 (sse4_1_dppd): Likewise.
18793 (sse4_1_dpps): Likewise.
18794 (sse4_1_movntdqa): Likewise.
18795 (sse4_1_mpsadbw): Likewise.
18796 (sse4_1_packusdw): Likewise.
18797 (sse4_1_pblendvb): Likewise.
18798 (sse4_1_pblendw): Likewise.
18799 (sse4_1_phminposuw): Likewise.
18800 (sse4_1_extendv8qiv8hi2): Likewise.
18801 (*sse4_1_extendv8qiv8hi2): Likewise.
18802 (sse4_1_extendv4qiv4si2): Likewise.
18803 (*sse4_1_extendv4qiv4si2): Likewise.
18804 (sse4_1_extendv2qiv2di2): Likewise.
18805 (*sse4_1_extendv2qiv2di2): Likewise.
18806 (sse4_1_extendv4hiv4si2): Likewise.
18807 (*sse4_1_extendv4hiv4si2): Likewise.
18808 (sse4_1_extendv2hiv2di2): Likewise.
18809 (*sse4_1_extendv2hiv2di2): Likewise.
18810 (sse4_1_extendv2siv2di2): Likewise.
18811 (*sse4_1_extendv2siv2di2): Likewise.
18812 (sse4_1_zero_extendv8qiv8hi2): Likewise.
18813 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
18814 (sse4_1_zero_extendv4qiv4si2): Likewise.
18815 (*sse4_1_zero_extendv4qiv4si2): Likewise.
18816 (sse4_1_zero_extendv2qiv2di2): Likewise.
18817 (*sse4_1_zero_extendv2qiv2di2): Likewise.
18818 (sse4_1_zero_extendv4hiv4si2): Likewise.
18819 (*sse4_1_zero_extendv4hiv4si2): Likewise.
18820 (sse4_1_zero_extendv2hiv2di2): Likewise.
18821 (*sse4_1_zero_extendv2hiv2di2): Likewise.
18822 (sse4_1_zero_extendv2siv2di2): Likewise.
18823 (*sse4_1_zero_extendv2siv2di2): Likewise.
18824 (sse4_1_roundpd): Likewise.
18825 (sse4_1_roundps): Likewise.
18826 (sse4_1_roundsd): Likewise.
18827 (sse4_1_roundss): Likewise.
18828 (mulv4si3): Don't expand for SSE4.1.
18829 (smax<mode>3): Likewise.
18830 (umaxv4si3): Likewise.
18831 (uminv16qi3): Likewise.
18832 (umin<mode>3): Likewise.
18833 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
18834
18835 * doc/extend.texi: Document SSE4.1 built-in functions.
18836
18837 * doc/invoke.texi: Document -msse4.1.
18838
d3f19e12 188392007-05-22 Nathan Sidwell <nathan@codesourcery.com>
18840
18841 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
18842 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
18843 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
18844 (ASM_SPEC): Add asm_pcrel_spec.
18845 (EXTRA_SPECS): Add asm_pcrel_spec.
18846
cc3b034a 188472007-05-21 David Daney <ddaney@avtrex.com>
18848
18849 * doc/install.texi (Building a cross compiler): Add requirements
18850 for Java cross compiler.
18851
9c77efff 188522007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18853
18854 PR middle-end/31995
18855 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
18856 Add loopno argument. Use evolution_function_is_invariant_rec_p
18857 instead of evolution_function_is_constant_p.
18858 Update calls to evolution_function_is_affine_multivariate_p.
d7e69d69 18859 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
9c77efff 18860 Add loopno argument.
18861 * tree-scalar-evolution.c (gather_chrec_stats): Call
d7e69d69 18862 evolution_function_is_affine_multivariate_p with a loop
9c77efff 18863 number of 0.
18864 * tree-data-ref.c (analyze_miv_subscript): Likewise.
18865 (analyze_overlapping_iterations): Likewise.
d7e69d69 18866 (access_functions_are_affine_or_constant_p): Likewise.
9c77efff 18867 (build_classic_dist_vector_1): If the access functions
18868 are equal, don't do anything.
18869
893358f7 188702007-05-21 Paolo Bonzini <bonzini@gnu.org>
d7e69d69 18871 Paolo Carlini <pcarlini@suse.de>
893358f7 18872 Uros Bizjak <ubizjak@gmail.com>
18873
18874 * c-cppbuiltin.c (c_cpp_builtins): Define
18875 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
18876 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
18877 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
18878 * doc/cpp.texi ([Standard Predefined Macros]): Document.
18879
0145b1e2 188802007-05-21 Mike Stump <mrs@apple.com>
18881
eebb423d 18882 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
0145b1e2 18883 handling as well.
18884 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18885
d61e5c1b 188862007-05-21 Uros Bizjak <ubizjak@gmail.com>
18887
18888 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
18889 implementation if __OPTIMIZE__ is not defined.
18890 (_mm_alignr_pi8): Ditto.
18891 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
18892 (_mm_inserti_si64): Ditto.
18893 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
18894 (_mm_slli_epi16): Ditto.
18895 (_mm_slli_epi32): Ditto.
18896 (_mm_slli_epi64): Ditto.
18897 (_mm_srai_epi16): Ditto.
18898 (_mm_srai_epi32): Ditto.
18899 (_mm_srli_si128): Ditto.
18900 (_mm_slli_si128): Ditto.
18901 (_mm_srli_epi16): Ditto.
18902 (_mm_srli_epi32): Ditto.
18903 (_mm_srli_epi64): Ditto.
18904 (_mm_extract_epi16): Ditto.
18905 (_mm_insert_epi16): Ditto.
18906 (_mm_shufflehi_epi16): Ditto.
18907 (_mm_shufflelo_epi16): Ditto.
18908 (_mm_shuffle_epi32): Ditto.
18909 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
18910 (_m_pextrw): Ditto.
18911 (_mm_insert_pi16): Ditto.
18912 (_m_pinsrw): Ditto.
18913 (_mm_shuffle_pi16): Ditto.
18914 (_m_pshufw): Ditto.
18915 (_mm_shufle_ps): Ditto.
18916 (_mm_prefetch): Ditto.
18917
8fa7d67b 189182007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
18919
18920 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
18921 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
18922 * real.c (encode_i370_single, decode_i370_single,
18923 encode_i370_double, decode_i370_double): Functions removed.
18924 (i370_single_format, i370_double_format): Initializations removed.
18925 (real_maxval, round_for_format, exact_real_truncate, significand_size):
18926 Consider the log2_b field to always be one.
18927 (ieee_single_format, mips_single_format, coldfire_single_format,
18928 ieee_double_format, mips_double_format, coldfire_double_format,
18929 ieee_extended_motorola_format, ieee_extended_intel_96_format,
18930 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
18931 ibm_extended_format, mips_extended_format, ieee_quad_format,
18932 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
18933 decimal_single_format, decimal_double_format, decimal_quad_format,
18934 c4x_single_format, c4x_extended_format, real_internal_format): Remove
18935 initialization of log2_b.
ed69c853 18936 * real.h (i370_single_format, i370_double_format): Declarations
18937 removed.
8fa7d67b 18938 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
18939 field to always be one.
18940
98b6e5c5 189412007-05-21 Andreas Schwab <schwab@suse.de>
18942
18943 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
18944 NOTE_INSN_BASIC_BLOCK_P.
18945 (process_for_unwind_directive): Likewise.
18946
29f09705 189472007-05-21 Nathan Sidwell <nathan@codesourcery.com>
18948
18949 * builtins.c (expand_builtin_setjmp_setup): Update comment.
18950 * function.h (struct function): Move va_list_gpr_size,
18951 va_list_fpr_size, function_frequency to front of bitfields. Add
18952 calls_unwind_init.
18953 (current_function_calls_unwind_init): New.
18954 * except.c (expand_builtin_unwind_init): Set
18955 current_function_calls_unwind_init not
18956 current_function_has_nonlocal_label.
18957 * reload1.c (has_nonexceptional_receiver): New.
18958 (reload): Use it and current_function_calls_unwind_init to
18959 determine whether call-saved regs must be saved.
18960
ad4583d9 189612007-05-20 Jan Hubicka <jh@suse.cz>
18962
18963 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
18964 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
18965 * ddg.c (create_ddg): LIkewise.
ed69c853 18966 * final.c (final): Remove hunk moving line number notes around since
ad4583d9 18967 they are no longer present at this stage.
18968 (final_scan_insn): Use NOTE_KIND instead of
18969 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
18970 (output_asm_label): Likewise.
18971 * reorg.c (dbr_schedule): Likewise.
18972 * haifa-sched.c (unlink_other_notes): Likewise.
18973 * mode-switching.c (optimize_mode_switching): Likewise.
18974 * graph.c (start_bb): Likewise.
18975 * rtl.def (NOTE): Update description.
18976 * jump.c (squeeze_notes): Delete.
18977 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
18978 NOTE_INSN_BASIC_BLOCK_P when possible.
18979 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
18980 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
d7e69d69 18981 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
ad4583d9 18982 (dwarf2out_var_location): Likewise.
18983 * cfgbuild.c (make_edges): Likewise.
18984 (find_basic_blocks_1): Likewise.
18985 * function.c (reorder_blocks_1): Likewise.
18986 (epilogue_done): Likewise.
18987 (reposition_prologue_and_epilogue_notes): Likewise.
ed69c853 18988 * print-rtl.c (print_rtx): Likewise; drop code for printing
18989 line number notes.
ad4583d9 18990 (print_rtl): Likewise.
18991 (print_rtl_single): Likewise.
18992 * gcse.c (insert_insn_start_bb): Likewise.
18993 * alias.c (init_alias_analysis): Likewise.
18994 * calls.c (fixup_tail_calls): Likewise.
18995 * except.c (sjlj_emit_function_enter): Likewise.
18996 * emit-rtl.c (add_insn_after): Likeiwse.
18997 (emit_label_before): Likewise.
18998 (emit_label_after): Likewise.
18999 (emit_note_before, emit_note_after, emit_note): Update
19000 parameter to be enum insn_note; do not deal with source
19001 files.
19002 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
19003 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
19004 when possible.
19005 (merge_blocks_move_successor_nojumps): Simplify now when
19006 we don't have BLOCK notes.
19007 (try_optimize_cfg): Likewise.
19008 * cfglayout.c (skip_insns_after_block): Likewise.
19009 (record_effective_endpoints): Likewise.
19010 (duplicate_insn_chain): Likewise.
19011 * varasm.c (output_constant_pool_1): Likewise.
19012 * sched-deps.c (sched_analyze): Likewise.
19013 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
19014 Exterminate.
19015 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
19016 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
19017 (SET_INSN_DELETED): Simplify.
19018 (NOTE_LINE_NUMBER): Exterminate.
19019 (NOTE_LINE_KIND): New.
19020 (NOTE_INSN_BASIC_BLOCK_P): Update.
19021 (enum insn_note): Simplify.
19022 (GET_NOTE_INSN_NAME) Simplify.
19023 (emit_note_before, emit_note_after, emit_note): Update prototype.
19024 (squeeze_notes): Remove.
19025 * sched-int.h (NOTE_NOT_BB_P): Update.
19026 * resource.c (mark_target_live_regs): Update.
19027 * sched-rgn.c (debug_dependencies): Update.
19028 * sched-vis.c (print_insn): Update.
19029 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
19030 * config/i386/i386.c (ix86_output_function_epilogue): Update.
19031 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
19032 (TARGET_ADJUST_UNROLL_MAX): Likewise.
19033 (split_branches): Update.
19034 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
19035 4.0.0.
19036 (sh_adjust_unroll_max): Exterminate.
19037 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
19038 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
19039 (m68hc11_reorg): Likewise.
19040 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
19041 (emit_predicate_relation_info): Update.
19042 (process_for_unwind_directive): Update.
19043 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
19044 (output_call): Update.
19045 * config/pa/pa.c (output_lbranch): Update.
19046 (output_millicode_call): Update.
19047 (output_call): Update.
19048 (pa_combine_instructions): Update.
19049 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
19050 * config/bfin/bfin.c (gen_one_bundle): Update.
19051 * cfgrtl.c (can_delete_note_p): Update.
19052 (delete_insn): Update.
19053 (rtl_merge_blocks): Update.
19054 (commit_one_edge_insertion): Update.
19055 (rtl_verify_flow_info): Update.
19056 * stmt.c (expand_case): Do not call squeeze_notes.
19057
e6e352cb 190582007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
01b68987 19059
e6e352cb 19060 PR middle-end/7651
19061 PR c++/11856
19062 PR c/12963
19063 PR c/23587
19064 PR other/29694
19065 * c.opt (Wtype-limits): New.
19066 * doc/invoke.texi (Wtype-limits): Document it.
19067 (Wextra): Enabled by -Wextra.
19068 * c-opts.c (c_common_post_options): Enabled by -Wextra.
19069 * c-common.c (shorten_compare): Warn with Wtype-limits.
19070
ccaa5066 190712007-05-20 Uros Bizjak <ubizjak@gmail.com>
712fea20 19072
19073 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
19074 inlined function, not as a macro.
19075 (_mm_alignr_pi8): Ditto.
19076 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
19077 (_mm_inserti_si64): Ditto.
19078 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
19079 (_mm_extract_epi16): Ditto.
19080 (_mm_insert_epi16): Ditto.
19081 (_mm_shufflehi_epi16): Ditto.
19082 (_mm_shufflelo_epi16): Ditto.
19083 (_mm_shuffle_epi32): Ditto.
19084 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
19085 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
19086 all functions.
19087 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
19088 float constant.
19089 (_m_to_float): Use C89 compatible assignment.
19090
27eda240 190912007-05-20 Martin Michlmayr <tbm@cyrius.com>
e1f3ed05 19092
19093 PR target/32007
19094 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
19095
ccaa5066 190962007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
c6ad2d21 19097
19098 PR middle-end/7651
19099 * doc/invoke.texi (Wreturn-type): Complete description.
19100 (Wextra): Delete item about return-type warning.
19101 * c-decl.c: Delete redundant Wextra warning.
01b68987 19102
ccaa5066 191032007-05-20 Uros Bizjak <ubizjak@gmail.com>
4dfac92d 19104
19105 PR target/31585
19106 * config/i386/pmmintrin.h: Do not include xmmintrin.h
19107 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
19108 inlined function, not as a macro.
19109 (_mm_prefetch): Ditto.
19110 (_m_pextrw): Ditto.
19111 (_mm_insert_pi16): Ditto.
19112 (_m_pinsrw): Ditto.
19113 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
19114 (_m_pshufw): Ditto. Add const to __N argument.
19115 (_mm_shufle_ps): Ditto. Add const to __mask argument.
19116 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
19117 (_mm_slli_epi32): Ditto.
ed69c853 19118 (_mm_srli_si128): Implement as always inlined function, not as a
19119 macro. Add __inline to function declaration.
4dfac92d 19120 (_mm_slli_si128): Ditto.
19121
87929f5d 191222007-05-19 Uros Bizjak <ubizjak@gmail.com>
19123
19124 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
19125 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
19126 New constants.
19127 (struct fenv): New structure.
19128 (FP_HANDLE_EXCEPTIONS): New define.
19129 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
19130 (_FP_DECL_EXP): New define.
19131 (FP_INIT_ROUNDMODE): New define.
19132 (FP_ROUNDMODE): New define.
19133
7ee0d227 191342007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19135
19136 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
19137 (Wconversion): Update description.
19138 (Wconversion-sign): New.
19139 * c.opt (Wconversion-sign): New.
19140 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
19141 means disabled for C++. Otherwise, take the status of Wconversion.
19142 * c-common.c (conversion_warning): Warn with either Wconversion or
19143 Wconversion-sign.
19144 (warnings_for_convert_and_check): Conditions are already checked by
19145 conversion_warning.
19146 (convert_and_check): Don't check warnings if the conversion failed.
19147
df3d6232 191482007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
87929f5d 19149 Anatoly Sokolov <aesok@dol.ru>
df3d6232 19150
01b68987 19151 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
df3d6232 19152 avr_epilogue_uses) : Add declaration.
19153 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
19154 * config/avr/constraints.md (R): New constraint.
01b68987 19155 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
df3d6232 19156 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
19157 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
19158 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
01b68987 19159 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
df3d6232 19160 call_prologue_saves, epilogue_restores, return_from_epilogue,
01b68987 19161 return_from_main_epilogue, return_from_interrupt_epilogue,
df3d6232 19162 return_from_naked_epilogue, prologue, epilogue): New patterns.
19163 (jump): Handle symbol reference.
01b68987 19164 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
19165 avr_output_function_prologue, avr_output_function_epilogue): Remove
df3d6232 19166 functions.
01b68987 19167 (avr_init_machine_status, expand_prologue, expand_epilogue,
19168 avr_asm_function_end_prologue, avr_epilogue_uses,
df3d6232 19169 avr_asm_function_begin_epilogue): New functions.
01b68987 19170 (prologue_size, epilogue_size, jump_tables_size): Remove global
df3d6232 19171 variables.
19172 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
19173 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
19174 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
19175 (avr_override_options): Initialise init_machine_status.
19176 (output_movhi): Handle all stack pointer loads.
19177 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
19178 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
19179 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
19180 (EPILOGUE_USES) Redefine.
19181 (machine_function) Declare.
19182
df68fc42 191832007-05-19 Richard Sandiford <richard@codesourcery.com>
19184
19185 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
19186 Use a single return statement.
19187
e84da7c1 191882007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19189
19190 PR middle-end/30250
19191 * builtins.c (do_mpfr_lgamma_r): New.
19192 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
19193 * tree.h (CASE_FLT_FN_REENT): New.
19194
c3dd0e85 191952007-05-18 Geoffrey Keating <geoffk@apple.com>
19196
de064be9 19197 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
19198 (output_die): Use 'unsigned long' with %x.
19199 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
19200 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
19201 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
19202
c3dd0e85 19203 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
19204
d7bb133f 192052007-05-18 H.J. Lu <hongjiu.lu@intel.com>
19206
19207 PR target/31989
19208 PR target/31681
19209 PR target/31666
19210 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
19211 true if function has no argument.
19212
eff6a3dc 192132007-05-18 DJ Delorie <dj@redhat.com>
19214
19215 * config/mips/mips.c (mips_offset_within_alignment_p): New.
19216 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
19217
520e55a3 192182007-05-18 Uros Bizjak <ubizjak@gmail.com>
19219
19220 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
19221 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
19222 count_trailing_zeros.
19223 (__i386__): Implement count_leading_zeros using __builtin_clz().
19224 Implement count_trailing_zeros usign __builtin_ctz().
19225
23fd0dec 192262007-05-18 Richard Sandiford <richard@codesourcery.com>
19227
19228 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
19229
2749a22e 192302007-05-18 Uros Bizjak <ubizjak@gmail.com>
19231
f5bb5fd5 19232 PR middle-end/31344
2749a22e 19233 * expr.c (emit_move_change_mode): Change mode of push operands here.
19234
4baf1a77 192352007-05-17 Ian Lance Taylor <iant@google.com>
19236
19237 PR tree-optimization/31953
19238 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
19239 Change all callers.
19240 (set_value_range_to_null): Call set_value_range_to_value.
19241 (extract_range_from_comparison): Likewise.
19242
65dd1378 192432007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19244
bd0d5325 19245 * toplev.c (print_version): Output GMP/MPFR version info.
19246
cd2656b0 19247 * builtins.c (CASE_MATHFN_REENT): New macro.
19248 (mathfn_built_in): Use it.
19249 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
19250 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
19251 BUILT_IN_LGAMMAL_R): New.
19252 * doc/extend.texi: Document new builtins.
19253
e5407ca6 19254 PR middle-end/31796
19255 * builtins.c (do_mpfr_remquo): New.
19256 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
19257 (fold_builtin_3): Handle BUILT_IN_REMQUO.
19258
6ff9eeff 19259 PR middle-end/30251
19260 * builtins.c (fold_builtin_1): Handle y0, y1.
19261 (fold_builtin_2): Handle yn.
19262
65dd1378 19263 PR middle-end/30251
19264 * builtins.c (do_mpfr_bessel_n): New.
19265 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
19266 (fold_builtin_2): Handle BUILT_IN_JN.
19267
b556e70c 192682007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
19269
19270 PR target/31965
19271 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
19272 TYPE_PRECISION (intmax_type_node).
19273
455ca9be 192742007-05-17 Steve Ellcey <sje@cup.hp.com>
19275
19276 PR target/31850
19277 * reload.c (subst_reloads): Remove checking.
19278
61e138d0 192792007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
19280
19281 PR rtl-optimization/31691
19282 * combine.c (simplify_set): Build a new src pattern instead of
19283 substituting its operands in the COMPARE case.
19284
7e0311ae 192852007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
19286
19287 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
19288 (execute_vrp): Preserve loops through jump threading.
19289 * tree-ssa-threadupdate.c (thread_single_edge,
19290 dbds_continue_enumeration_p, determine_bb_domination_status,
19291 thread_through_loop_header): New functions.
19292 (create_edge_and_update_destination_phis,
19293 create_edge_and_update_destination_phis): Set loops for the new blocks.
19294 (prune_undesirable_thread_requests): Removed.
19295 (redirect_edges): Do not pretend that redirect_edge_and_branch can
19296 create new blocks.
19297 (thread_block): Do not call prune_undesirable_thread_requests.
19298 Update loops.
19299 (mark_threaded_blocks): Select edges to thread here.
19300 (thread_through_all_blocks): Take may_peel_loop_headers argument.
19301 Thread edges through loop headers independently.
19302 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
19303 * tree-pass.h (TODO_mark_first_instance): New.
19304 (first_pass_instance): Declare.
19305 * cfghooks.c (duplicate_block): Put the block to the original loop
19306 if copy is not specified.
19307 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
19308 jump threading. Pass may_peel_loop_headers to
19309 thread_through_all_blocks according to first_pass_instance.
19310 * cfgloop.h (create_preheader): Declare.
19311 * tree-flow.h (thread_through_all_blocks): Declaration changed.
19312 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
19313 * passes.c (first_pass_instance): New variable.
19314 (next_pass_1): Set TODO_mark_first_instance.
19315 (execute_todo): Set first_pass_instance.
19316
8aa4e142 193172007-05-17 Uros Bizjak <ubizjak@gmail.com>
19318
19319 PR tree-optimization/24659
19320 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
19321 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
19322 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
19323 OTI_vec_pack_ufix_trunc.
19324 (vec_unpacks_float_hi_optab): Define new macro.
19325 (vec_unpacks_float_lo_optab): Ditto.
19326 (vec_unpacku_float_hi_optab): Ditto.
19327 (vec_unpacku_float_lo_optab): Ditto.
19328 (vec_pack_sfix_trunc_optab): Ditto.
19329 (vec_pack_ufix_trunc_optab): Ditto.
19330 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
19331 and vec_pack_[s|u]fix_trunc_optab using
19332 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
19333 * tree-vectorizer.c (supportable_widening_operation): Handle
19334 FLOAT_EXPR and CONVERT_EXPR. Update comment.
19335 (supportable_narrowing_operation): New function.
19336 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
19337 * tree-vect-transform.c (vectorizable_conversion): Handle
19338 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
19339 (vect_gen_widened_results_half): Move before vectorizable_conversion.
19340 (vectorizable_type_demotion): Call supportable_narrowing_operation()
19341 to check for target support.
19342 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
19343 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
19344 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
19345 for VEC_PACK_FIX_TRUNC_EXPR.
19346 (expand_binop): Special case mode of the result for
19347 vec_pack_[u|s]fix_trunc_optab.
19348 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
19349 vec_pack_[u|s]fix_trunc_optab.
19350
19351 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
19352 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
19353 * tree-pretty-print.c (dump_generic_node): Handle
19354 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
19355 VEC_PACK_FIX_TRUNC_EXPR.
19356 (op_prio): Ditto.
19357 * expr.c (expand_expr_real_1): Ditto.
19358 * tree-inline.c (estimate_num_insns_1): Ditto.
19359 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
19360
19361 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
19362 (vec_unpacks_float_lo_v8hi): Ditto.
19363 (vec_unpacku_float_hi_v8hi): Ditto.
19364 (vec_unpacku_float_lo_v8hi): Ditto.
19365 (vec_unpacks_float_hi_v4si): Ditto.
19366 (vec_unpacks_float_lo_v4si): Ditto.
19367 (vec_pack_sfix_trunc_v2df): Ditto.
19368
19369 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
19370 Document.
19371 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
19372 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
19373 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
19374 [vec_pack_ufix_trunc]: Ditto.
19375 [vec_unpacks_float_hi]: Ditto.
19376 [vec_unpacks_float_lo]: Ditto.
19377 [vec_unpacku_float_hi]: Ditto.
19378 [vec_unpacku_float_lo]: Ditto.
19379
da1302a1 193802007-05-16 Uros Bizjak <ubizjak@gmail.com>
19381
19382 * soft-fp/README: Update for new files.
19383 * soft-fp/floattisf.c: New file.
19384 * soft-fp/floattidf.c: New file.
19385 * soft-fp/floattitf.c: New file.
19386 * soft-fp/floatuntisf.c: New file.
19387 * soft-fp/floatuntidf.c: New file.
19388 * soft-fp/floatuntitf.c: New file.
19389 * soft-fp/fixsfti.c: New file.
19390 * soft-fp/fixdfti.c: New file.
19391 * soft-fp/fixtfti.c: New file.
19392 * soft-fp/fixunssfti.c: New file.
19393 * soft-fp/fixunsdfti.c: New file.
19394 * soft-fp/fixunstfti.c: New file.
19395 * soft-fp/extendxftf.c: New file.
19396 * soft-fp/trunctfxf.c: New file.
19397
19398 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
19399 (__trunctfxf2): Ditto.
19400
19401 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
19402 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
19403 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
19404 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
19405 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
19406 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
19407
19408 * config/i386/t-fprules-softfp64: New file.
19409 * config/i386/sfp-machine.h: New file.
19410 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
19411 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
19412 and soft-fp/t-softfp to tmake_file.
19413 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
19414 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
01b68987 19415
da1302a1 19416 * config/i386/t-linux64 (softfp_wrap_start): New.
19417 (softfp_wrap_end): New.
19418 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
19419 supported for TARGET_64BIT.
19420
7a91101f 194212007-05-16 Rafael Avila de Espindola <espindola@google.com>
19422
01b68987 19423 * c-common.c (c_common_signed_or_unsigned_type): Emulate
7a91101f 19424 c_common_unsigned_type behavior.
19425
9798961f 194262007-05-16 Paolo Bonzini <bonzini@gnu.org>
19427
8aa4e142 19428 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
19429 calls as pure.
9798961f 19430
9602d040 194312007-05-16 Eric Christopher <echristo@apple.com>
19432
19433 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
8aa4e142 19434 saving after stack push. Set sp_offset whenever we push.
19435 (rs6000_emit_epilogue): Move altivec register restore before
19436 stack push.
9602d040 19437
35ab6286 194382007-05-16 Richard Sandiford <richard@codesourcery.com>
19439
19440 * configure.ac: Allow sysroots to be relocated under $prefix as
19441 well as $exec_prefix.
19442 * configure: Regenerate.
19443
e83194ca 194442007-05-16 Richard Sandiford <richard@codesourcery.com>
19445
19446 Revert:
19447
19448 2007-05-12 Richard Sandiford <richard@codesourcery.com>
19449
19450 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
19451 (gcc_tooldir): Likewise.
19452 * configure: Regenerate.
19453 * Makefile.in (libsubdir_to_prefix): New variable, based on the
19454 old configure.ac gcc_tooldir setting.
19455 (prefix_to_exec_prefix): New variable.
19456 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
19457 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
19458
441df341 194592007-05-14 Janis Johnson <janis187@us.ibm.com>
19460
19461 * c-typeck.c (build_binary_op): Return early for error.
19462
ccae4f9f 194632007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
19464
19465 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
19466 struct nb_iter_bound.
19467 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
19468 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
19469 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
19470 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
19471 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
19472 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
19473 (del_scev_info): Use ggc_free.
19474 (scev_initialize): Allocate scalar_evolution_info in gc memory.
19475 * loop-init.c: Include ggc.h.
19476 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
19477 (loop_optimizer_finalize): Use ggc_free.
19478 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
19479 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
19480 pass_iv_optimize): Add TODO_ggc_collect.
ed69c853 19481 * function.h (struct function): Remove skip marker from
19482 x_current_loops.
ccae4f9f 19483 * cfgloop.c: Include ggc.h.
19484 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
19485 memory.
19486 (establish_preds): Vector superloops is gc allocated.
19487 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
19488 loop->exits list.
19489 (flow_loops_find): Vector larray is gc allocated.
19490 (loop_exit_free): Use ggc_free.
19491 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
19492 that head of exits list is now not a part of struct loop.
19493 (record_loop_exits): Allocate exits table in gc memory.
ed69c853 19494 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
19495 that head of exits list is now not a part of struct loop.
ccae4f9f 19496 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
19497 struct loop_exit): Add GTY marker.
19498 (struct loop): Add GTY marker. Make superloops vector gc allocated.
19499 Add skip marker to aux field. Make head of exits list a separate
19500 object.
19501 (struct loops): Add GTY marker. Make larray vector gc allocated.
19502 Add param marker to exits table.
19503 (get_loops): Type changed.
ed69c853 19504 * Makefile.in (tree-scalar-evolution.o): Add
19505 gt-tree-scalar-evolution.h dependency.
ccae4f9f 19506 (cfgloop.o, loop-init.o): Add ggc.h dependency.
19507 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
19508 * basic-block.h (struct basic_block_def): Remove skip marker from
19509 loop_father field.
19510
1db6d067 195112007-05-14 Uros Bizjak <ubizjak@gmail.com>
19512
19513 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
19514 of 0 in the call to expand_expr().
19515 (expand_builtin_mathfn_3): Ditto.
19516 (expand_builtin_interclass_mathfn): Ditto.
19517 (expand_builtin_cexpi): Ditto.
19518 (expand_builtin_int_roundingfn): Ditto.
19519 (expand_builtin_int_roundingfn_2): Ditto.
19520 (expand_builtin_pow): Ditto.
19521 (expand_builtin_powi): Ditto.
19522 (expand_builtin_bswap): Ditto.
19523 (expand_builtin_unop): Ditto.
19524 (expand_builtin_fabs): Ditto.
19525 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
19526 the call to expand_expr().
19527 (expand_builtin_sync_operation): Ditto.
19528 (expand_builtin_compare_and_swap): Ditto.
19529 (expand_builtin_lock_test_and_set): Ditto.
19530 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
19531 instead of 0 in the call to expand_expr().
19532 (expand_builtin_extract_return_addr): Ditto.
19533 (expand_builtin_eh_return): Ditto.
19534 (expand_eh_return): Ditto.
19535 * explow.c (expr_size): Ditto.
19536 * expr.c (optimize_bitfield_assignment_op): Ditto.
19537 (expand_assignement): Ditto.
19538 (store_expr): Ditto.
19539 (store_field): Ditto.
19540 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
19541 the call to expand_expr().
19542 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
19543 in the call to expand_expr().
19544 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
19545 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
19546 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
19547 of expand_expr().
19548 * optabs.c (expand_vec_shift_expr): Ditto.
19549 (expand_vec_cond_expr): Ditto.
19550 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
19551 call to expand_expr().
19552 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
19553 in the call to expand_expr().
19554
36211c58 195552007-05-14 Dave Korn <dave.korn@artimi.com>
19556
48dc2227 19557 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
36211c58 19558
71eea85c 195592007-05-14 Rafael Avila de Espindola <espindola@google.com>
19560
19561 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
19562 instead of c_common_unsigned_type.
19563 (c_common_unsigned_type): Remove.
19564 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
19565 c_common_unsigned_type.
19566 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
19567 c_common_unsigned_type.
19568 * c-common.h (c_common_unsigned_type): Remove.
19569 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
19570 c_common_unsigned_type.
19571 * c-format.c (check_format_types): Use unsigned_type_for instead of
19572 c_common_unsigned_type.
19573 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
ed69c853 19574 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
19575 of c_common_unsigned_type.
71eea85c 19576 * convert.c (convert_to_integer): Use unsigned_type_for instead of
19577 lang_hooks.types.unsigned_type.
19578 * expmed.c (make_tree): Use unsigned_type_for instead of
19579 lang_hooks.types.unsigned_type.
19580 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
19581 lang_hooks.types.unsigned_type.
19582 (build_range_check): Likewise.
19583 (fold_unary): Likewise.
19584 (fold_binary): Likewise.
19585 (fold_ternary): Likewise.
19586 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
19587 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
19588 * tree.c (get_unsigned_type): New.
19589 (unsigned_type_for): Use get_unsigned_type instead of
19590 lang_hooks.types.unsigned_type.
19591
f9a44575 195922007-05-14 Kazu Hirata <kazu@codesourcery.com>
19593
19594 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
19595 to m68k_get_function_kind. Update its prototype.
19596 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
19597 interrupt_thread.
19598 (m68k_interrupt_function_p): Return enum m68k_function_type
19599 instead of bool. Rename to m68k_get_function_kind.
19600 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
19601 target is not fido.
19602 (m68k_compute_frame_layout): Don't mark any register for save
19603 if an interrupt_thread attribute is specified.
19604 (m68k_hard_regno_rename_ok): Update a use of
19605 m68k_interrupt_function_p.
19606 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
19607 m68k_interrupt_function_p.
19608 (m68k_function_type): New.
19609 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
19610 for a function with an interrupt_thread attribute.
19611 * doc/extend.texi: Document the interrupt_thread attribute.
19612
d3cd5752 196132007-05-13 Daniel Berlin <dberlin@dberlin.org>
19614
19615 Fix PR tree-optimization/31911
19616 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
19617 if they didn't change the expression.
19618
80bb306a 196192007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
19620
19621 * tree-scalar-evolution.c (resolve_mixers): Exported.
19622 * tree-scalar-evolution.h (resolve_mixers): Declare.
19623 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
19624 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
19625 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
19626 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
19627 init_array_ref, init_pointer_ref, analyze_indirect_ref,
19628 strip_conversion, analyze_offset_expr, address_analysis,
19629 object_analysis, analyze_offset): Removed.
19630 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
19631 split_constant_offset, canonicalize_base_object_address,
19632 object_address_invariant_in_loop_p, disjoint_objects_p,
19633 dr_may_alias_p, dr_address_invariant_p): New functions.
19634 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
19635 and dr_analyze_alias.
19636 (initialize_data_dependence_relation): Use dr_may_alias_p
19637 and object_address_invariant_in_loop_p.
ed69c853 19638 (compute_self_dependence): Handle the case when
19639 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
19640 (find_data_references_in_stmt): Restrict the analysis of data
19641 references to the given loop nest.
80bb306a 19642 (find_data_references_in_loop): Made static. Pass loop nest to
19643 find_data_references_in_stmt.
19644 (compute_data_dependences_for_loop): Use DR_VOPS.
19645 (free_data_ref): Free DR_VOPS.
19646 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
19647 (struct innermost_loop_behavior): ... new.
19648 (struct base_object_info): Replaced by ...
19649 (struct indices): ... new.
19650 (struct dr_alias): New.
19651 (enum data_ref_type): Removed.
19652 (struct data_reference): Consist of struct innermost_loop_behavior,
19653 struct indices and struct dr_alias.
19654 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
19655 (DR_MEMTAG): Renamed to ...
19656 (DR_SYMBOL_TAG): ... this.
19657 (find_data_references_in_loop): Declaration removed.
19658 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
19659 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
19660 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
19661 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
19662
2bf1fefd 196632007-05-13 Revital Eres <eres@il.ibm.com>
19664
19665 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
19666 which walks virtual def-use chains to find redundant stores.
19667 (dse_optimize_stmt): Call it.
19668
ec028b54 196692007-05-12 Steven Bosscher <steven@gcc.gnu.org>
19670
19671 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
19672 * passes.c (init_optimization_passes): Move pass_jump_bypass
19673 after loop2.
19674
19675 * basic-block.h (bb_has_eh_pred): Fix style issue.
19676
bc25a2ee 196772007-05-12 Steven Bosscher <steven@gcc.gnu.org>
19678
19679 PR rtl-optimization/31848
19680 * loop-invariant.c (move_invariant_reg): If we move an insn
19681 with a REG_EQUAL note, and that insn is not always executed,
19682 remove the REG_EQUAL note.
19683
a540e2fe 196842007-05-12 Richard Guenther <rguenther@suse.de>
19685
19686 PR tree-optimization/31797
19687 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
19688 propagate into a stmt that has volatile ops.
19689
88a3dcb7 196902007-05-12 Richard Sandiford <richard@codesourcery.com>
19691
19692 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
19693 (gcc_tooldir): Likewise.
19694 * configure: Regenerate.
19695 * Makefile.in (libsubdir_to_prefix): New variable, based on the
19696 old configure.ac gcc_tooldir setting.
19697 (prefix_to_exec_prefix): New variable.
19698 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
19699 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
19700
e6fa0ea6 197012007-05-11 Silvius Rus <rus@google.com>
19702
19703 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
19704 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
19705 * c-common.h (strict_aliasing_warning): Change return type.
19706 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
19707 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
19708 (build_c_cast): Condition call to strict_aliasing_warning.
19709 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
19710 * flags.h (set_Wstrict_aliasing): Declare.
19711 * opts.c (set_Wstrict_alising): Define, add call to.
19712 * tree-flow.h (strict_aliasing_warning_backend): Declare.
19713 * tree-ssa-alias-warnings.c: New file.
19714 * tree-ssa-alias.c (compute_may_aliases): Add call to
9602d040 19715 strict_aliasing_warning_backend.
e6fa0ea6 19716
9e3536f4 197172007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
19718
19719 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
19720 Use loop_depth and loop_outer accessor functions.
19721 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
19722 determine_invariantness_stmt, move_computations_stmt): Ditto.
19723 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
19724 add_loop, loopify, unloop, fix_loop_structure): Ditto.
19725 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
19726 * tree-scalar-evolution.c (interpret_loop_phi,
19727 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
19728 instantiate_parameters_1, scev_const_prop): Ditto.
19729 * cfghooks.c (make_forwarder_block): Ditto.
19730 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
19731 * modulo-sched.c (loop_canon_p): Ditto.
19732 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
19733 slpeel_can_duplicate_loop_p): Ditto.
19734 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
19735 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
19736 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
19737 cancel_loop, verify_loop_structure): Ditto.
19738 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
19739 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
19740 superloops vector instead of "pred" array.
19741 (establish_preds): Take father loop as an argument. Initialize the
19742 superloops vector.
ed69c853 19743 (flow_loop_tree_node_add): Pass father loop to establish_preds.
19744 Do not initialize loop->outer.
9e3536f4 19745 (flow_loop_tree_node_remove): Truncate the superloops vector.
19746 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
19747 "pred" merged to "superloops" vector.
19748 (loop_depth, loop_outer): New.
19749 (fel_init): Use loop_outer.
19750
a861fe52 197512007-05-11 Jan Hubicka <jh@suse.cz>
19752
19753 * cgraphunit.c: Include gt-cgraphunit.h
19754 (static_ctors, static_dtors): New static vars.
19755 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
19756 based on implementation in c-common.c
19757 (cgraph_finalize_function): Call record_cdtor_fn.
19758 (cgraph_optimize): Call cgraph_build_cdtor_fns.
19759 * decl.c (finish_function): Do not call c_record_cdtor_fn.
19760 (c_write_global_declarations): Do not call c_build_cdtor_fns.
19761 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
19762 build_cdtor, c_build_cdtor_fns): Remove.
19763 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
19764 c_build_cdtor_fns): Remove prototype.
19765
7959b13b 197662007-05-11 Paolo Carlini <pcarlini@suse.de>
19767
19768 PR other/31852
19769 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
19770 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
19771 * builtins.c (fold_builtin_memchr): New.
19772 (expand_builtin_memchr): Call the latter.
19773 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
19774 * doc/extend.texi ([Other built-in functions provided by GCC]):
19775 Document memchr.
19776
9fa9680d 197772007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
19778
19779 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
19780 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
19781 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
19782 PFPO_OP1_TYPE_SHIFT): Constants added.
19783 (DFP_ALL): Mode macro defined.
19784 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
19785 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
19786 Insn definitions added.
19787 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
19788 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
19789 Expanders added.
19790
c4e91ab3 197912007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
19792
19793 PR tree-optimization/31885
ed69c853 19794 * tree-chrec.c (chrec_contains_undetermined): Do not consider
19795 NULL_TREE to be undetermined.
c4e91ab3 19796 (automatically_generated_chrec_p): Return false for NULL.
19797
fc9fdf60 197982007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
19799
19800 * config/bfin/bfin.h (MOVE_RATIO): Define.
19801
723e1902 198022007-05-10 Richard Sandiford <richard@codesourcery.com>
19803
19804 * config.gcc (sparc-wrs-vxworks): New target.
19805 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
19806 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
19807 * config/sparc/sparc.h: Include vxworks-dummy.h.
19808 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
19809 include LABEL_REFs too.
19810 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
19811 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
19812 VxWorks.
19813 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
19814 on VxWorks.
19815 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
19816 (sparc_emit_call_insn): New function.
19817 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
19818 functions when generating VxWorks PIC.
19819 * config/sparc/sparc.md (vxworks_load_got): New pattern.
19820 (call, call_value): Use sparc_emit_call_insn instead of
19821 emit_call_insn.
19822
205710bf 198232007-05-09 Bob Wilson <bob.wilson@acm.org>
9602d040 19824
205710bf 19825 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
9602d040 19826
c9876a47 198272007-05-09 Bob Wilson <bob.wilson@acm.org>
19828
19829 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
ed69c853 19830 for floating-point values if HOST_BITS_PER_LONG > 32. Use
19831 split_double instead of operand_subword.
c9876a47 19832
23285403 198332007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
19834
19835 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
19836 * config/bfin/bfin.c (bfin_local_alignment): New function.
19837 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
19838
43fda261 198392007-05-08 Chao-ying Fu <fu@mips.com>
19840
19841 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
19842 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
19843 (smsub_widen_optab, umsub_widen_optab): Define.
19844 * optabs.c (init_optabs): Initialize smsub_widen_optab and
19845 umsub_widen_optab.
19846 * genopinit.c (optabs): Fill in smsub_widen_optab and
19847 umsub_widen_optab.
19848 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
19849 and umsub_widen_optab to implement multiply-subtract sequences.
19850 * config/mips/mips.md (*msac<u>_di): Rename to...
19851 (<u>msubsidi4): ...this. Extend condition to include
19852 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
19853 of operand 0 to "ka" and use the three-operand form of msub<u>
19854 for TARGET_DSPR2.
19855 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
19856 to define_expands.
19857
1121ac6f 198582007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
19859
19860 PR rtl-optimization/28011
19861 * reload.c (push_reload): Set dont_share if IN appears in OUT
19862 also when IN is a PLUS rtx.
19863 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
19864 are same PLUS rtx.
19865
df329266 198662007-05-08 Kazu Hirata <kazu@codesourcery.com>
19867
19868 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
19869 call unshare_all_decls.
19870 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
19871 (unshare_all_decls): Remove.
19872
1b2b0409 198732007-05-08 Simon Martin <simartin@users.sourceforge.net>
19874
19875 PR 31847
19876 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
19877 dumps.
19878
fef98e29 198792007-05-08 Sandra Loosemore <sandra@codesourcery.com>
8aa4e142 19880 Nigel Stephens <nigel@mips.com>
fef98e29 19881
19882 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
19883 Update comments and all uses.
19884 (MIN_FPRS_PER_FMT): Define.
19885 * config/mips/mips.c (function_arg): Fix to correctly handle
19886 the -mips32r2 -mfp64 -mabi=32 case.
19887 (override_options): Enable use of odd-numbered registers for
19888 SFmode values on MIPS32.
19889 (mips_save_reg_p): Save whole floating-point register pair if
19890 either half is used.
19891 (compute_frame_size): Fix comment.
19892
a35b82b9 198932007-05-08 Jie Zhang <jie.zhang@analog.com>
19894
19895 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
19896 argument of type bool.
19897 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
19898 argument. Safely select temporary P register according to it.
19899 (do_link): Change call site of add_to_reg accordingly.
19900 (do_unlink): Add epilogue_p as a fourth argument and pass it
19901 to add_to_reg.
19902 (expand_interrupt_handler_epilogue): Change call of do_unlink
19903 accordingly.
19904 (bfin_expand_prologue): Add a third argument sibcall_p.
19905 * config/bfin/bfin.md (epilogue): Change call of
19906 bfin_expand_epilogue accordingly.
19907 (sibcall_epilogue): Likewise.
19908 (eh_return_internal): Likewise.
9602d040 19909
99fe38c0 19910 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
19911 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
19912 * config/bfin/bfin.c (bfin_handle_option): Handle
19913 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
19914 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
19915 Support bf534, bf536 and bf561.
19916 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
19917
691299da 199182007-05-08 Uros Bizjak <ubizjak@gmail.com>
19919
19920 PR target/31854
19921 * config/i386/i386.c (ix86_function_regparm): Process local
19922 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
9602d040 19923
cc742166 199242007-05-07 Mike Stump <mrs@apple.com>
19925
19926 * doc/invoke.texi (Warning Options): Document that -Wempty-body
19927 also checks for and while statements in C++.
19928
c159e0b7 199292007-05-07 Nathan Froyd <froydnj@codesourcery.com>
19930
19931 * gcc.c (at_file_supplied): New variable.
19932 (main): Set it if we expanded argv.
19933 (do_spec_1): Pass an @-file to the linker if we were called with
19934 an @-file argument and HAVE_GNU_LD.
19935 * collect2.c (at_file_supplied): New variable.
19936 (response_file): New variable.
19937 (collect_exit): Unlink response_file if necessary.
19938 (handler): Likewise.
19939 (do_wait): Likewise.
19940 (main): Set at_file_supplied if we expanded argv.
19941 (collect_execute): Pass an @-file to subprocesses if we were called
19942 with an @-file argument.
19943 * configure.ac: Add define for HAVE_GNU_LD.
19944 * configure: Regenerate.
19945 * config.in: Regenerate.
19946
8aa4e142 199472007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
39218c77 19948
19949 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
19950 operand to HI mode.
19951 (mulsi3): New.
19952 (divsi3): New.
19953 (udivsi3): New.
19954
2efce110 199552007-05-07 Jayant Sonar <jayants@kpitcummins.com>
19956
19957 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
19958 (TARGET_ENCODE_SECTION_INFO): Re-define.
19959 (m32c_encode_section_info): New
19960 (function_vector_handler): New
19961 (current_function_special_page_vector): New
19962 (m32c_special_page_vector_p): New.
9602d040 19963 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
2efce110 19964 Prototype.
9602d040 19965 * config/m32c/jump.md: Added instruction JSRS for functions
2efce110 19966 with attribute "function_vector".
9602d040 19967 * doc/extend.texi (function_vector): Added description
2efce110 19968 for M16C, M32C targets.
19969
2f1842a8 199702007-05-07 DJ Delorie <dj@redhat.com>
19971
19972 PR 31794
19973 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
19974 ashrpsi3, lshrpsi3): Update shift count constraint.
19975
b7158884 199762007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
c159e0b7 19977 Nathan Froyd <froydnj@codesourcery.com>
b7158884 19978
19979 PR 22133
19980 * c-incpath.c (add_path): Strip trailing path separators.
19981
9a17dd7d 199822007-05-07 Eric Botcazou <ebotcazou@adacore.com>
19983
19984 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
66d3a87b 19985 Free dominance info before purging EH edges.
9a17dd7d 19986 (eliminate_degenerate_phis): Likewise.
19987 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
19988
68411217 199892007-05-07 Jan Hubicka <jh@suse.cz>
19990
19991 * gimplify.c (gimplify_expr): Do not crash when folding
19992 (void *)(int)&a + 4.
19993
e297ac28 199942007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19995
19996 PR driver/31694
19997 * c-opts.c (lang_fortran): Make it non static.
19998 * c-common.h (lang_fortran): New prototype.
19999 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
20000 -lang-fortran option was passed by the driver.
20001
c15062b7 200022007-05-06 Eric Botcazou <ebotcazou@adacore.com>
20003
20004 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
20005 of ASSERT_CHECKING. Tweak message.
20006
200072007-05-06 Revital Eres <eres@il.ibm.com>
428c97ad 20008
20009 PR 30957
20010 * loop-unroll.c (insert_var_expansion_initialization):
20011 Initialize the expansions with -zero instead of +zero.
20012
3f8d8851 200132007-05-05 Aurelien Jarno <aurelien@aurel32.net>
20014
20015 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
9602d040 20016 into pic and non-pic versions. Mark r19 as used for
20017 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
3f8d8851 20018 for tgd_load, tld_load and tie_load .
20019 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
9602d040 20020 version of tgd_load, tld_load and tie_load depending on the
3f8d8851 20021 value of flag_pic.
20022
f9e6c0d4 200232007-05-04 Ulrich Drepper <drepper@redhat.com>
20024 Jakub Jelinek <jakub@redhat.com>
20025
20026 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
20027 (__do_global_dtors_aux): Use more paranoid loop to run
20028 destructors if HIDDEN_DTOR_LIST_END.
20029 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
20030
0722e767 200312007-05-04 Jakub Jelinek <jakub@redhat.com>
20032
20033 * varasm.c (align_variable): Don't increase alignment for
20034 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
20035 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
20036
50b08d37 200372007-05-04 Josh Conner <jconner@apple.com>
20038
20039 * basic-block.h (cdi_direction): Assign values to all enumeration
20040 constants.
20041 (dom_computed): Remove.
20042 (dom_info_state): New.
20043 (set_dom_info_availability): New.
20044 * tree-ssa-loop-im.c (determine_invariantness): Initialize
20045 walk_data.dom_direction.
20046 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
20047 instead of dom_computed[].
20048 (split_edge): Likewise.
20049 (create_basic_block): Likewise.
20050 (merge_blocks): Likewise.
20051 * ifcvt.c (find_if_header): Likewise.
20052 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
20053 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
20054 * tree-ssa.c (verify_ssa): Likewise.
20055 * tree-cfg.c (tree_verify_flow_info): Likewise.
20056 (remove_edge_and_dominated_blocks): Likewise.
20057 * dominance.c (dom_computed): Make static.
20058 (calc_dfs_tree_nonrec): Change third param to a bool.
20059 (calc_dfs_tree): Change second param to a bool.
20060 (calc_idioms): Change second param to a bool. Use
20061 dom_convert_dir_to_idx.
20062 (init_dom_info): Validate dir before using.
20063 (dom_convert_dir_to_idx): New.
20064 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
20065 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
20066 (free_dominance_info): Use dom_convert_dir_to_idx.
20067 (get_immediate_dominator): Likewise.
20068 (set_immediate_dominator): Likewise.
20069 (get_dominated_by): Likewise.
20070 (redirect_immediate_dominators): Likewise.
20071 (nearest_common_denominator): Likewise.
20072 (dominated_by_p): Likewise.
20073 (bb_dom_dfs_in): Likewise.
20074 (bb_dom_dfs_out): Likewise.
20075 (recount_dominator): Likewise.
20076 (iterate_fix_dominators): Likewise.
20077 (add_to_dominance_info): Likewise.
20078 (delete_from_dominance_info): Likewise.
20079 (first_dom_son): Likewise.
20080 (next_dom_son): Likewise.
20081 (dom_info_available_p): Likewise.
20082 (dom_info_state): New.
20083 (set_dom_info_availability): New.
20084
e7340e24 200852007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
20086
20087 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
20088 Expander removed.
20089 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
20090
4fc70e71 200912007-05-04 Bob Wilson <bob.wilson@acm.org>
9602d040 20092
4fc70e71 20093 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
20094 (subdi3, subdi_carry): Delete.
9602d040 20095
9160060d 200962007-05-04 Jan Hubicka <jh@suse.cz>
20097 Richard Guenther <rguenther@suse.de>
20098
20099 * opts.c (decode_options): Do not fiddle with inlining
20100 parameters in case of optimizing for size.
20101 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
20102 for size do nothing.
20103 (cgraph_decide_inlining_of_small_function): When optimizing for
20104 size never inline functions increasing caller size.
20105 (cgraph_early_inlining): Inline for size when optimizing for size.
20106
27eda240 201072007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
eb0dea99 20108
20109 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
20110 logical operations piecewise.
20111 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
20112 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
20113 subdi_sesidi_di): Delete.
20114 (add_with_carry): Produce carry in CC instead of a DREG to shorten
20115 the generated sequence. Allow three-reg add in constraints. Rewrite
20116 the rtl expression for carry to avoid zero_extend of a constant.
20117 (sub_with_carry): New pattern.
20118 (adddi3, subdi3): Change into define_expand. For subtract, generate a
20119 different sequence not involving jumps.
20120 (notbi): Now a named pattern.
20121
64447b3b 201222007-05-04 Bradley Lucier <lucier@math.purdue.edu>
20123
20124 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
20125 Add the note about a significant loss of accuracy of some
20126 mathematical routines when these options are used.
20127
3588ab9c 201282007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20129
20130 * haifa-sched.c (rtx_vec_t): New typedef.
20131 (contributes_to_priority_p): Extract piece of priority () into new
20132 static function.
20133 (priority): Use the function. Add assertion.
20134 (rank_for_schedule, set_priorities): Add assertion to check that
20135 insn's priority is initialized.
20136 (clear_priorities, calc_priorities): Change signature. Make it update
20137 all relevant insns. Update all callers ('add_to_speculative_block ()'
20138 and 'create_block_check_twin ()').
20139 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
20140 Add new field 'priority_status'.
20141 (INSN_PRIORITY_STATUS): New macro.
20142 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
20143
a2819fc2 201442007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20145
20146 * sched-ebb.c (debug_ebb_dependencies): New static function.
20147 (init_ready_list): Use it.
20148
20149 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
20150 with changed signature and 'debug_rgn_dependencies ()'.
20151 (debug_rgn_dependencies): New static function.
20152 (init_ready_list): Use it.
9602d040 20153
a2819fc2 20154 * sched-int.h (debug_dependencies): Declare.
20155
7cfa1204 201562007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
20157
20158 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
20159
b24655ef 201602007-05-04 Dirk Mueller <dmueller@suse.de>
20161
20162 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
20163
06f9fe3e 201642007-05-03 Jan Hubicka <jh@suse.cz>
20165
ed69c853 20166 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
20167 ((T1)X op (T1)Y), for pointer type in more cases than before.
06f9fe3e 20168
20169 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
20170
20171 * tree-object-size.c (plus_expr_object_size): When operand size is
20172 unknown, return unknown.
20173
c2d4d40a 201742007-05-03 Dirk Mueller <dmueller@suse.de>
20175
20176 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
20177
20178 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
20179 options.
20180
20181 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
20182
377bbc15 201832007-05-03 Janis Johnson <janis187@us.ibm.com>
20184
20185 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
20186
dc442fa0 201872007-05-03 Joseph Myers <joseph@codesourcery.com>
20188
20189 * config/soft-fp/double.h, config/soft-fp/extended.h,
20190 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
20191 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
20192 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
20193 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
20194 glibc CVS.
20195
a7c1ab49 201962007-05-03 Ian Lance Taylor <iant@google.com>
20197
b1b1bb64 20198 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
a7c1ab49 20199 MASK_PPC_GFXOPT for 8540 or 8548.
20200
fcca3533 202012007-05-03 Uros Bizjak <ubizjak@gmail.com>
20202
20203 * tree-vect-transform.c (vect_update_inits_of_drs): Use
20204 vect_print_dump_info() to output debug information.
20205
a0a6f22b 202062007-05-03 Uros Bizjak <ubizjak@gmail.com>
20207
20208 PR target/31768
20209 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
20210 operands of size 2 when operand is not MEM_P.
20211
1491dd5a 202122007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
20213
20214 PR tree-optimization/30565
20215 * lambda-code.c (perfect_nestify): Fix updating of dominators.
20216
b9904d32 202172007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
20218
20219 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
20220 (umulsi3_highpart): Use them.
20221 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
20222 for final accumulator to D regisster tranfser.
20223
30f263a4 202242007-05-03 Dorit Nuzman <dorit@il.ibm.com>
20225
20226 PR tree-optimization/31699
ed69c853 20227 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
20228 wrong code.
9602d040 20229 (vect_enhance_data_refs_alignment): Compute peel amount using
20230 TYPE_VECTOR_SUBPARTS instead of vf.
30f263a4 20231 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
20232
ad3827a6 202332007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
20234
20235 PR bootstrap/31776
20236 * system.h: Remove inclusion of double-int.h
20237 * tree.h: Include double-int.h
20238 * gengtype.c: Likewise
20239 * cfgloop.h: Likewise
20240 * Makefile.in: Adjust dependencies on double-int.h
20241
29686c2c 202422007-05-02 Eric Christopher <echristo@apple.com>
20243
20244 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
20245 -shared to -Zdynamiclib.
20246
57a0ed23 202472007-05-02 Seongbae Park <seongbae.park@gmail.com>
20248
20249 PR c++/31663
20250 * c-common.c (strip_pointer_or_array_types): New function.
20251 * c-common.h (strip_pointer_or_array_types): New function declaration.
20252
1f204d2d 202532007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
20254
20255 PR tree-optimization/31771
20256 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
20257
377dbc5d 202582007-05-02 Paul Brook <paul@codesourcery.com>
20259
20260 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
20261
b26f15a5 202622007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
20263
40ab1934 20264 PR middle-end/29715
b26f15a5 20265 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
20266 transformation.
20267
a12ac39a 202682007-05-02 Nick Clifton <nickc@redhat.com>
20269
20270 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
20271
6776dec8 202722007-05-02 Richard Guenther <rguenther@suse.de>
20273
20274 PR tree-optimization/31146
20275 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
20276 argument, single_use_p. If we have a single use that is
20277 a conversion to the definition rhs type, propagate that rhs.
20278 (forward_propagate_addr_expr): Pass single_use_p argument
20279 to forward_propagate_addr_expr_1.
20280
6c8a2ee2 202812007-05-01 H.J. Lu <hongjiu.lu@intel.com>
20282
20283 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
20284 variable.
20285
63df211a 202862007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
20287
29686c2c 20288 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
63df211a 20289 'AMD Family 10 core'.
29686c2c 20290
ba29708a 202912007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
20292
29686c2c 20293 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
20294 and athlon64-sse3 as improved versions of k8, opteron and athlon64
ba29708a 20295 with SSE3 instruction set support.
20296 * doc/invoke.texi: Likewise.
29686c2c 20297
029655af 202982007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
20299
20300 * config/i386/i386.c (override_options): Tuning 32-byte loop
29686c2c 20301 alignment for amdfam10 architecture. Increasing the max loop
029655af 20302 alignment to 24 bytes.
29686c2c 20303
584f29ac 203042007-05-01 Kazu Hirata <kazu@codesourcery.com>
20305
20306 * config/m68k/constraints.md: New.
20307 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
20308 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
20309 EXTRA_CONSTRAINT): Remove.
20310 * config/m68k/m68k.md: Include constraints.md.
20311 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
20312
b876a744 203132007-05-01 Ian Lance Taylor <iant@google.com>
20314
20315 PR tree-optimization/31739
20316 * tree-vrp.c (vrp_val_is_max): New static function.
20317 (vrp_val_is_min): New static function.
20318 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
20319 copying the node.
20320 (set_value_range): Use vrp_val_is_{max,min}.
20321 (extract_range_from_assert): Likewise.
20322 (extract_range_from_binary_expr): Likewise.
20323 (extract_range_from_unary_expr): Likewise.
20324 (dump_value_range, vrp_meet): Likewise.
20325 (vrp_visit_phi_node): Likewise.
20326 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
20327
2fdb7138 203282007-05-01 Mark Mitchell <mark@codesourcery.com>
20329
20330 * config/i386/gmon-sol2.c (size_t): New type.
20331 (intptr_t): Likewise.
20332 (s_textsize): Declare as size_t.
20333 (sbrk): Declare.
20334 (monstartup): Use size_t for sizes.
20335 (_mcount): Save and restore registers.
20336 (internal_mcount): Pass 0 as the first argument to monstartup
20337 in 64-bit mode.
20338 (moncontrol): Convert pointer to appropriately sized integer
20339 before passing to profil.
20340
d747da8e 203412007-05-01 Joseph Myers <joseph@codesourcery.com>
20342
20343 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
20344 __NO_FPRS__, not just if _SOFT_DOUBLE.
20345 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
20346 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
20347 also for E500 double.
20348 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
20349 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
20350 && !TARGET_FPRS).
20351
d92f9312 203522007-05-01 Richard Guenther <rguenther@suse.de>
20353
20354 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
20355 is NULL.
20356
cbc33164 203572007-05-01 Joseph Myers <joseph@codesourcery.com>
20358
20359 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
20360
d874c55e 203612007-05-01 Jan Hubicka <jh@suse.cz>
20362
20363 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
20364 invariant.
20365
3b45913d 203662007-05-01 Jan Hubicka <jh@suse.cz>
20367
20368 * tree.h (maybe_fold_offset_to_component_ref): Remove.
20369 (maybe_fold_offset_to_reference): Declare.
20370 * fold-const.c (fold_unary): Do not fold
20371 (type *)&A into &A->field_of_type_and_offset_0
20372 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
20373 size is unknown, give up.
20374 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
20375 offsets.
20376 (maybe_fold_offset_to_reference): New.
20377 (maybe_fold_stmt_indirect): Use it.
20378 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
20379 * gimplify.c (gimplify_conversion): Canonicalize conversions to
20380 field references.
20381 (gimplify_expr): Likewise for plus_expr.
20382
6313ae8b 203832007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
20384
20385 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
20386 bsi_after_labels. Always insert statements before bsi.
20387 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
20388 * predict.c (apply_return_prediction): Check for empty blocks.
20389 * cfgexpand.c (lab_rtx_for_bb): New variable.
20390 (label_rtx_for_bb): Do not create new tree labels.
20391 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
20392 (tree_expand_cfg): Initialize lab_rtx_for_bb.
20393 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
20394 creating edges.
20395 (label_for_bb): Add field used.
20396 (update_eh_label, main_block_label): Mark the label used.
20397 (cleanup_dead_labels): Remove unused labels.
20398
fbcece5e 203992007-05-01 Richard Guenther <rguenther@suse.de>
20400
20401 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
20402 if it is not about to be set.
20403 (get_value_range): Do not pre-allocate equiv bitmap.
20404 (update_value_range): No need to clear equiv field.
20405 (add_equivalence): Change prototype to get bitmap pointer.
20406 Allocate bitmap here if it is not already.
20407 (extract_range_from_assert): Do not allocate bitmap here.
20408 Update callers to add_equivalence.
20409 (extract_range_from_ssa_name): Likewise.
20410 (get_vr_for_comparison): New static helper.
20411 (compare_name_with_value): Handle NULL equiv bitmap by
20412 peeling the first iteration of the comparison loop.
20413 Use get_vr_for_comparison.
20414 (compare_names): Handle NULL equiv bitmaps by using fake
20415 ones. Use get_vr_for_comparison.
20416
612a17fc 204172007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
20418
20419 * double-int.c (mpz_set_double_int): Moved from
20420 tree-ssa-loop-niter.c.
20421 (mpz_get_double_int): Likewise; also, add option to wrap
20422 out-of-range integers.
20423 * double-int.h: New prototypes for above.
20424 * tree.c (get_static_type_bounds): Moved from
20425 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
20426 TYPE_MAX_VALUE if they exist..
20427 * tree.h: New prototype for above.
20428 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
20429 get_type_bounds calls.
20430 (mpz_set_double_int): Move to double-int.c.
20431 (get_type_bounds): Move to tree.c, rename to
20432 get_static_type_bounds.
20433 (mpz_to_double_int): Move to double-int.c, rename to
20434 mpz_get_double_int.
20435
2751c7d4 204362007-04-30 Bob Wilson <bob.wilson@acm.org>
20437
20438 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
20439 DIV0 exception can fall through to a normal return.
29686c2c 20440
6084da09 204412007-04-30 Alexandre Oliva <aoliva@redhat.com>
20442
20443 PR middle-end/22156
20444 Temporarily revert:
20445 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
8aa4e142 20446 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
6084da09 20447 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
20448 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
20449 initialize align to silence bogus warning.
20450 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
20451 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
20452 all_no_warning.
20453 (struct sra_walk_fns): Remove use_all parameter from use.
20454 (sra_hash_tree): Handle BIT_FIELD_REFs.
20455 (sra_elt_hash): Don't hash bitfld blocks.
20456 (sra_elt_eq): Skip them in parent compares as well. Handle
20457 BIT_FIELD_REFs.
20458 (sra_walk_expr): Don't maintain or pass down use_all_p.
20459 (scan_use): Remove use_all parameter.
20460 (scalarize_use): Likewise. Re-expand assignment to
20461 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
20462 output, and re-scalarize after output. Don't mark anything
20463 for no warning.
20464 (scalarize_ldst): Adjust.
20465 (scalarize_walk_gimple_modify_statement): Likewise.
20466 (build_element_name_1): Handle BIT_FIELD_REFs.
20467 (instantiate_element): Don't warn for any element whose parent
20468 is used as a whole.
20469 (instantiate_missing_elements_1): Return the sra_elt.
20470 (canon_type_for_field): New.
20471 (try_instantiate_multiple_fields): New.
20472 (instantiate_missing_elemnts): Use them.
20473 (mark_no_warning): Removed.
20474 (generate_one_element_ref): Handle BIT_FIELD_REFs.
20475 (REPLDUP, sra_build_elt_assignment): New.
20476 (generate_copy_inout): Use them.
20477 (generate_element_copy): Likewise. Handle bitfld differences.
20478 (generate_element_zero): Don't recurse for blocks. Use
20479 sra_build_elt_assignment.
20480 (generate_one_element_int): Take elt instead of var. Use
20481 sra_build_elt_assignment.
20482 (generate_element_init_1): Adjust.
20483 (scalarize_use, scalarize_copy): Use REPLDUP.
20484 (scalarize_ldst): Move assert before dereference.
20485 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
20486
86369aa7 204872007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
20488
20489 PR C++/31721
20490 * tree.c (reconstruct_complex_type): Reconstruct a reference
20491 correctly.
20492 Also use the same mode for the pointer as the old pointer type.
20493
7c9d05f6 204942007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20495
20496 * doc/trouble.texi (Interoperation): Remove note about Ultrix
20497 Fortran compiler.
20498
05268a5f 204992007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
20500
6cef4d4f 20501 PR rtl-optimization/31676
05268a5f 20502 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
20503 (df_refs_record): Call it.
20504
a4317a50 205052007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20506
20507 * rtl.def (SS_ABS): New code.
20508 * config/bfin/bfin.c (print_operand): New modifier 'v'.
20509 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
20510 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
20511 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
20512 (bfin_init_builtins): Define them.
20513 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
20514 (bfin_expand_builtin): ... and handle the others here.
20515 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
20516 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
20517 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
20518 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
20519 operand is only HImode.
20520
8c96295a 205212007-04-29 Steven Bosscher <steven@gcc.gnu.org>
20522
20523 * regclass.c (scan_one_insn): Remove splitting of
20524 two address insns.
20525
5ee52cdb 205262007-04-28 Sandra Loosemore <sandra@codesourcery.com>
20527 Nigel Stephens <nigel@mips.com>
20528
20529 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
20530
375c1c8a 205312007-04-28 Jan Hubicka <jh@suse.cz>
20532
20533 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
20534 insn_locators_alloc instead of insn_locators_initialize;
20535 call reset_block_changes.
20536 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
20537 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
20538 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
20539 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
20540 * config/score/score.c (th_output_mi_thunk): Likewise.
20541 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
20542 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
20543 tolerate uninitialized locator info.
20544
20545 Re-apply:
20546 * function.c (init_function_start): Don't init line number info.
20547 (expand_function_end): Update.
20548 (reset_block_changes, record_block_change, finalize_block_changes,
20549 check_block_change, free_block_changes): Kill.
20550 * function.h (reset_block_changes, record_block_change,
ed69c853 20551 finalize_block_changes, check_block_change, free_block_changes):
20552 Remove prototypes.
375c1c8a 20553 (struct function): Remove ib_boundaries_block.
20554 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
20555 Use curr_insn_locator to initialize locator.
20556 (emit_line_note): Remove.
20557 * cfgexpand.c (expand_gimple_cond_expr): Update.
20558 (construct_exit_block): Likewise.
20559 (tree_expand_cfg): Initialize/finalize locators.
20560 * expr.c (expand_expr_real): Update.
20561 * cfglayout.c (line_locators_locs, line_locators_lines,
20562 file_locators_locs, file_locators_files): Remove.
20563 (set_block_levels): Move to cfgexpand.c.
20564 (insn_locators_initialize): Remove.
20565 (pass_insn_locators_initialize): Remove.
20566 (locations_locators_locs, locations_locators_vals): New static vars.
20567 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
20568 Likewise.
20569 (insn_locators_alloc, insn_locators_finalize,
20570 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
20571 New functions.
20572 (locator_location): New.
20573 (locator_line, locator_file): Rewrite.
20574 * rtl.h (emit_line_note): Kill.
20575 (insn_locators_alloc, insn_locators_finalize,
20576 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
20577 Declare.
20578 * tree-inline.c (initialize_cfun): Do not initialize
20579 ib_boundaries_block.
20580 * passes.c (pass_insn_locators_initialize): Remove.
20581
e996e8f1 205822007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
20583
20584 * tree-cfg.c (move_block_to_fn): Release bb from dominance
20585 info. Update last_basic_block correctly.
20586
5e9db045 205872007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
20588
20589 PR target/31701
20590 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
20591 register itself to hold the offset constant. Tell flow the use
20592 of r4 and r5 when they are used.
20593
d080be9e 205942007-04-27 Richard Guenther <rguenther@suse.de>
20595
20596 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
20597 if we simplified anything.
20598 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
20599 warnings until we did a simplification and the stmt was not
20600 marked as TREE_NO_WARNING.
20601
44dc7eda 206022007-04-27 Mike Stump <mrs@apple.com>
20603
20604 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
20605
d2154397 206062007-04-27 Ian Lance Taylor <iant@google.com>
20607
20608 PR middle-end/31710
20609 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
20610 TYPE_MAX_VALUE exist, convert them to the new type.
20611
72e1a42b 206122007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
20613
20614 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
20615 if it claims to be available.
20616 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
20617 edge is redirected.
20618 (perform_tree_ssa_dce): Always free postdominators.
20619
0d96cd2b 206202007-04-27 Richard Henderson <rth@redhat.com>
20621
20622 * config/alpha/predicates.md (aligned_memory_operand): Mark
20623 as define_special_predicate.
20624 (unaligned_memory_operand, normal_memory_operand): Likewise.
20625 (reg_or_unaligned_mem_operand): Remove.
20626 (any_memory_operand): Match the documentation and check for
20627 non-renumbered pseudos during reload.
20628 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
20629 alpha_secondary_reload_class, update to new interface, make static.
20630 Handle CQImode like HImode. Remove FP subreg check.
20631 (alpha_expand_mov): Use replace_equiv_address.
20632 (alpha_expand_mov_nobwx): Use any_memory_operand.
20633 (TARGET_SECONDARY_RELOAD): New.
20634 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
20635 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
20636 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
20637 * config/alpha/alpha.md: ... here.
20638 (RELOAD12, reloadmode): New.
20639 (movcqi): New.
20640 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
20641 Don't handle the aligned case here.
20642 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
20643 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
20644 reload_inhi_help. Don't expect a scratch register.
20645 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
20646 reload_outhi_help.
20647 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
20648
83a20baf 206492007-04-27 Richard Guenther <rguenther@suse.de>
20650
20651 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
20652
5adc1066 206532007-04-27 Richard Guenther <rguenther@suse.de>
20654
20655 PR tree-optimization/30965
20656 PR tree-optimization/30978
20657 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
8aa4e142 20658 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
20659 (find_equivalent_equality_comparison): Likewise.
20660 (simplify_cond): Likewise.
20661 (get_prop_source_stmt): New helper.
20662 (get_prop_dest_stmt): Likewise.
5adc1066 20663 (can_propagate_from): Likewise.
20664 (remove_prop_source_from_use): Likewise.
8aa4e142 20665 (combine_cond_expr_cond): Likewise.
20666 (forward_propagate_comparison): New function.
20667 (forward_propagate_into_cond): Rewrite to use fold for
20668 tree combining.
5adc1066 20669 (tree_ssa_forward_propagate_single_use_vars): Call
20670 forward_propagate_comparison to propagate comparisons.
20671
e71da05f 206722007-04-27 Richard Guenther <rguenther@suse.de>
20673
20674 PR tree-optimization/31715
20675 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
20676 sure to do computation on the offset in an appropriate
20677 signed type.
20678
eca883d1 206792007-04-27 Richard Sandiford <richard@codesourcery.com>
20680
20681 * reload.h (elimination_target_reg_p): Declare.
20682 * reload.c (find_reloads): Don't apply the reg_rtx move
20683 optimization if the SET_DEST satisfies elimination_target_reg_p.
20684 * reload1.c (elimination_target_reg_p): New function.
20685 (gen_reload): In the move/add2 fallback, make sure that op0
20686 does not overlap the destination register.
20687
63f88450 206882007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
20689
20690 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
20691 transform only GIMPLE_MODIFY_STMTs.
20692 * tree-complex.c (expand_complex_operations_1): Ditto.
20693 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
20694 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
20695 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
20696 branches.
20697 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
20698 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
20699 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
20700 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
20701 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
20702 slpeel_add_loop_guard): Ditto.
20703 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
20704 * lambda-code.c (perfect_nestify): Ditto.
20705 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
20706 before the first statement.
20707 * tree-optimize.c (execute_free_datastructures): Fix comments.
20708 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
20709 * tree-flow.h (disband_implicit_edges): Declaration removed.
20710 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
20711 branches.
ed69c853 20712 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
20713 COND_EXPRs without gotos.
63f88450 20714 (disband_implicit_edges, has_label_p): Removed.
20715 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
20716 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
20717 branches.
20718 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
20719 side effects.
20720 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
20721 also for COND_EXPRs.
20722 * cfgexpand.c (label_rtx_for_bb): New function.
20723 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
20724 Use label_rtx_for_bb to find the labels.
20725 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
20726 last block. Detect fallthru edges.
20727
8d91a9b7 207282007-04-26 Ian Lance Taylor <iant@google.com>
20729
20730 PR target/28675
20731 * reload.c (find_reloads_subreg_address): If the address was valid
20732 in the original mode but not in the new mode, reload the whole
20733 address.
20734
31a8456e 207352007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
20736
20737 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
20738 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
20739 (cleanup_control_expr_graph): Do not invalidate dominance info.
20740 Record altered blocks.
20741 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
20742 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
20743 cleanup_tree_cfg_bb): New functions.
20744 (remove_forwarder_block): Do not maintain the worklist of blocks.
20745 Record altered blocks.
20746 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
20747 not over whole cfg.
20748 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
20749 delete_unreachable_blocks if dominators are not available.
20750 * tree-inline.c (optimize_inline_calls): Free dominance information
20751 earlier.
20752 * tree-flow.h (remove_edge_and_dominated_blocks,
20753 cfgcleanup_altered_bbs): Altered.
20754 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
20755 blocks.
20756 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
20757 functions.
20758 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
20759 do not invalidate dominators.
20760
98dac559 207612007-04-26 Anatoly Sokolov <aesok@post.ru>
20762
29686c2c 20763 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
98dac559 20764 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
20765 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20766 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
20767
64b86428 207682007-04-26 Steve Ellcey <sje@cup.hp.com>
20769
48dc2227 20770 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
64b86428 20771
27dc0bdf 207722007-04-26 Richard Guenther <rguenther@suse.de>
20773
20774 PR tree-optimization/31703
20775 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
20776 the right type for the target of the bittest.
20777
79387099 207782007-04-26 Richard Sandiford <richard@codesourcery.com>
20779
20780 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
20781 ix86_sol10_return_in_memory.
20782
96f62210 207832007-04-26 Richard Sandiford <richard@codesourcery.com>
20784
20785 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
20786 variables.
20787
42d78951 207882007-04-26 Jakub Jelinek <jakub@redhat.com>
20789
abb3caf7 20790 PR c++/31598
20791 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
20792
42d78951 20793 PR tree-optimization/30558
20794 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
20795 clear this_state.prev_try.
20796
c19a839c 207972007-04-26 Richard Sandiford <richard@codesourcery.com>
20798 Mark Mitchell <mark@codesourcery.com>
20799
20800 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
20801 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
20802 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
20803
ceac8e8c 208042007-04-26 Richard Sandiford <richard@codesourcery.com>
20805
20806 PR driver/31107
20807 * doc/invoke.texi (%:print-asm-header): Document.
20808 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
20809 and -ftarget-help.
20810 (static_spec_functions): Add print-asm-header.
20811 (main): Print a banner before the --target-help linker options.
20812 (print_asm_header_spec_function): New function.
20813
e42839f4 208142007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
20815
20816 PR target/31403
20817 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
20818 (movsf_ie): Likewise.
20819
0aa5d886 208202007-04-25 Paolo Carlini <pcarlini@suse.de>
20821
20822 * doc/extend.texi ([Type Traits]): Adjust per N2255.
20823
18505bd7 208242007-04-25 Bob Wilson <bob.wilson@acm.org>
20825
ed69c853 20826 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
20827 exception for divide-by-zero.
18505bd7 20828 (__umodsi3, __modsi3): Likewise.
20829
d6f138d6 208302007-04-25 Dirk Mueller <dmueller@suse.de>
20831
20832 * c-typeck.c (build_compound_expr): Annotate warning()
20833 call with OPT_Wunused_value.
01b54db5 20834 * tree-ssa.c (warn_uninit): Annotate warning with
20835 OPT_Wunintialized.
20836 * c-common.c (handle_sentinel_attribute): Annotate warning
20837 call with OPT_Wattributes.
d6f138d6 20838
e6a71de3 208392007-04-25 Thiemo Seufer <ths@mips.com>
20840
20841 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
20842 (mips16): Fix typo.
20843 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
20844 on to the assembler. Improve handling of -mno-mips16. Add handling
20845 of -mno-mips3d, -mno-dsp, -mno-dspr2.
20846 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
20847 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
20848 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
20849
76042623 208502007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
20851
20852 PR target/31680
20853 * config/i386/winnt.c (i386_pe_file_end): Strip only
20854 USER_LABEL_PREFIX when writing export name.
20855
a9cfe83b 208562007-04-25 Richard Sandiford <richard@codesourcery.com>
20857
20858 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
20859 sh/elf.h, vx-common.h and vxworks.h.
20860 * config/sh/sh.h: Include config/vxworks-dummy.h.
20861 (SUBTARGET_OVERRIDE_OPTIONS): Define.
20862 (OVERRIDE_OPTIONS): Use it.
20863 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
20864 (vxworks_picreg): New pattern.
20865 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
20866 VXWORKS_OS_CPP_BUILTINS.
20867 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
20868 to their VXWORKS_* equivalents.
20869 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
20870 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
20871 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
20872 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
20873 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
20874 -mrtp/-fPIC multilibs.
20875 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
20876 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
20877 (MULTILIB_OSDIRNAMES): Delete.
20878
9384357b 208792007-04-25 Anatoly Sokolov <aesok@post.ru>
20880
20881 PR target/18989
20882 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
20883
66fa16e6 208842007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
20885
20886 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
20887 rounding mode to be specified by the caller.
20888 (real_to_mpfr) Likewise.
20889 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
20890 include new arguments.
20891 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
20892
b700987e 208932007-04-24 Ian Lance Taylor <iant@google.com>
20894
20895 PR tree-optimization/31605
20896 * tree-vrp.c (set_value_range): Check that min and max are not
20897 both overflow infinities.
20898 (set_value_range_to_value): New static function.
20899 (extract_range_from_binary_expr): Call set_value_range_to_value.
20900 (extract_range_from_cond_expr): Likewise.
20901 (extract_range_from_expr): Likewise.
20902 (extract_range_from_unary_expr): Likewise. Don't create a range
20903 which overflows on both sides.
20904 (vrp_meet): Check for a useless range.
20905 (vrp_visit_phi_node): If we see a constant which looks like an
20906 overflow infinity, turn off the TREE_OVERFLOW flag.
20907
e8a7b357 209082007-04-24 Ian Lance Taylor <iant@google.com>
20909
20910 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
20911
b4c01899 209122007-04-24 Simon Martin <simartin@users.sourceforge.net>
20913
20914 PR diagnostic/25923
20915 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
20916 diagnostic message is being built.
e8a7b357 20917 * tree-pretty-print.c (dump_generic_node): Only write the
20918 formatted text into BUFFER's stream if we are not building a
20919 diagnostic message.
b4c01899 20920 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
20921 dump_generic_node.
20922 * Makefile.in (toplev.o): Depend on tree-pass.h.
20923
c7addd8c 209242007-04-24 Ian Lance Taylor <iant@google.com>
20925
20926 PR tree-optimization/31602
20927 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
20928 conditionals in the copied loop header.
20929 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
20930 warnings if TREE_NO_WARNING is set.
20931 * doc/invoke.texi (Warning Options): Clarify that
20932 -Wstrict-overflow does not warn about loops.
20933
ae11fff9 209342007-04-24 Janis Johnson <janis187@us.ibm.com>
20935
20936 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
20937 expand on the comment about _Decimal128 arguments and check the
20938 integer result of the modulus operation; for 64-bit ELF ABI, ensure
20939 that _Decimal128 argument uses even/odd register pair.
20940 (function_arg): Ditto.
20941
d9f9327b 209422007-04-24 Hui-May Chang <hm.chang@apple.com>
20943
20944 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
20945 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
20946
ee96af51 209472007-04-24 Richard Guenther <rguenther@suse.de>
20948 Olga Golovanevsky <olga@il.ibm.com>
20949
29686c2c 20950 * fold-const.c (multiple_of_p): Check for bottom
20951 to be zero.
ee96af51 20952
d439f3ef 209532007-04-24 Richard Henderson <rth@redhat.com>
20954
29686c2c 20955 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
d439f3ef 20956 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
20957 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
20958 looking for non-zero bits shifted out. Avoid a recursive call
20959 when constructing the scalar.
20960 (__floatundisf): Likewise.
20961
feb5f1b1 209622007-04-24 Nathan Froyd <froydnj@codesourcery.com>
20963
20964 * dwarf2out.c (field_byte_offset): Move the existing logic
20965 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
20966 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
20967
1ed6fd08 209682007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20969
20970 PR target/31641
ed69c853 20971 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
20972 length argument of 0 for memset.
1ed6fd08 20973 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
20974 unsigned shift instead of the signed variant.
20975
095798e3 209762007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20977
20978 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
20979 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
20980 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
20981 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
20982 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
20983 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
20984 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
20985 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
20986 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
20987 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
20988 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
20989 "mul<mode>3", "div<mode>3"): Insn definitions added.
20990 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
20991 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
20992 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
20993 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
20994 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
20995 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
20996 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
20997 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
20998 TARGET_FLOAT_FORMAT): Macro definitions removed.
20999 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
21000 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
21001 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
21002 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
21003 (s390_gen_rtx_const_DI): Function removed.
21004 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
21005
02bf340a 210062007-04-24 Richard Sandiford <richard@codesourcery.com>
21007
21008 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
21009 over an external ffs function.
21010
7e564f73 210112007-04-24 Chao-ying Fu <fu@mips.com>
21012 Richard Sandiford <richard@nildram.co.uk>
21013
21014 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
21015 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
21016 (smadd_widen_optab, umadd_widen_optab): Define.
21017 * optabs.c (init_optabs): Initialize smadd_widen_optab and
21018 umadd_widen_optab.
21019 * genopinit.c (optabs): Fill in smadd_widen_optab and
21020 umadd_widen_optab.
21021 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
21022 and umadd_widen_optab to implement multiply-add sequences.
21023 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
21024 (<u>maddsidi4): ...this. Extend condition to include
21025 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
21026 of operand 0 to "ka" and use the three-operand form of madd<u>
21027 for TARGET_DSPR2.
21028 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
21029 to define_expands.
21030 * config/mips/constraints.md (ka): New register constraint.
21031
32201e9a 210322007-04-24 Jan Hubicka <j@suse.cz>
21033
21034 Revert:
21035
21036 2007-04-23 Jan Hubicka <jh@suse.cz>
21037 * function.c (init_function_start): Don't init line number info.
21038 (expand_function_end): Update.
21039 (reset_block_changes, record_block_change, finalize_block_changes,
21040 check_block_change, free_block_changes): Kill.
21041 * function.h (reset_block_changes, record_block_change,
ed69c853 21042 finalize_block_changes, check_block_change, free_block_changes):
21043 Remove prototypes.
32201e9a 21044 (struct function): Remove ib_boundaries_block.
21045 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
21046 Use curr_insn_locator to initialize locator.
21047 (emit_line_note): Remove.
21048 * cfgexpand.c (expand_gimple_cond_expr): Update.
21049 (construct_exit_block): Likewise.
21050 (tree_expand_cfg): Initialize/finalize locators.
21051 * expr.c (expand_expr_real): Update.
21052 * cfglayout.c (line_locators_locs, line_locators_lines,
21053 file_locators_locs, file_locators_files): Remove.
21054 (set_block_levels): Move to cfgexpand.c.
21055 (insn_locators_initialize): Remove.
21056 (pass_insn_locators_initialize): Remove.
21057 (locations_locators_locs, locations_locators_vals): New static vars.
21058 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
21059 Likewise.
21060 (insn_locators_alloc, insn_locators_finalize,
21061 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
21062 New functions.
21063 (locator_location): New.
21064 (locator_line, locator_file): Rewrite.
21065 * rtl.h (emit_line_note): Kill.
21066 (insn_locators_alloc, insn_locators_finalize,
21067 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
21068 Declare.
21069 * tree-inline.c (initialize_cfun): Do not initialize
21070 ib_boundaries_block.
21071 * passes.c (pass_insn_locators_initialize): Remove.
21072
8c4b1b28 210732007-04-24 Daniel Franke <franke.daniel@gmail.com>
21074
21075 * doc/invoke.texi: Removed leading '-' from option index entries.
21076
c23dad79 210772007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
21078
21079 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
21080 Use phi_nodes_ptr.
21081 (create_phi_node): Use set_phi_nodes.
21082 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
21083 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
48dc2227 21084 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
c23dad79 21085 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
21086 (bsi_start, bsi_last): Use bb_stmt_list.
21087 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
21088 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
21089 Traverse the statements using tsi iterator.
21090 * basic-block.h (struct basic_block_def): Fields stmt_list
21091 and phi_nodes moved to ...
21092 (struct tree_bb_info): ... new structure.
21093 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
21094 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
21095 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
21096 (tree_verify_flow_info): Verify that il.tree is not set for
21097 entry and exit block.
21098 (tree_split_block): Use set_bb_stmt_list.
21099
401ed9a8 211002007-04-23 Mike Stump <mrs@apple.com>
21101
21102 * config/i386/i386.c (ix86_tune_features
21103 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
21104 nocona and core2.
21105
1f346cbc 211062007-04-23 H.J. Lu <hongjiu.lu@intel.com>
21107
21108 * config/i386/i386.md (prefix_extra): New attribute.
21109 (length): Add prefix_extra.
21110
21111 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
21112 (sse2_movntv2di): Likewise.
21113 (sse2_cvtps2dq): Likewise.
21114 (sse2_cvtpd2pi): Likewise.
21115 (sse2_cvttpd2pi): Likewise.
21116 (*sse2_cvtpd2ps): Likewise.
21117 (*add<mode>3): Likewise.
21118 (sse2_ssadd<mode>3): Likewise.
21119 (sse2_usadd<mode>3): Likewise.
21120 (*sub<mode>3): Likewise.
21121 (sse2_sssub<mode>3): Likewise.
21122 (sse2_ussub<mode>3): Likewise.
21123 (*mulv8hi3): Likewise.
21124 (*smulv8hi3_highpart): Likewise.
21125 (*umulv8hi3_highpart): Likewise.
21126 (sse2_umulv2siv2di3): Likewise.
21127 (sse2_pmaddwd): Likewise.
21128 (ashr<mode>3): Likewise.
21129 (lshr<mode>3): Likewise.
21130 (ashl<mode>3): Likewise.
21131 (sse2_ashlti3): Likewise.
21132 (sse2_lshrti3): Likewise.
21133 (*umaxv16qi3): Likewise.
21134 (*smaxv8hi3): Likewise.
21135 (*uminv16qi3): Likewise.
21136 (*sminv8hi3): Likewise.
21137 (sse2_eq<mode>3): Likewise.
21138 (sse2_gt<mode>3): Likewise.
21139 (*and<mode>3): Likewise.
21140 (sse2_nand<mode>3): Likewise.
21141 (*ior<mode>3): Likewise.
21142 (*xor<mode>3): Likewise.
21143 (sse2_packsswb): Likewise.
21144 (sse2_packssdw): Likewise.
21145 (sse2_packuswb): Likewise.
21146 (sse2_punpckhbw): Likewise.
21147 (sse2_punpcklbw): Likewise.
21148 (sse2_punpckhwd): Likewise.
21149 (sse2_punpcklwd): Likewise.
21150 (sse2_punpckhdq): Likewise.
21151 (sse2_punpckldq): Likewise.
21152 (sse2_punpckhqdq): Likewise.
21153 (sse2_punpcklqdq): Likewise.
21154 (*sse2_pinsrw): Likewise.
21155 (*sse2_pextrw): Likewise.
21156 (sse2_pshufd_1): Likewise.
21157 (sse2_uavgv16qi3): Likewise.
21158 (sse2_uavgv8hi3): Likewise.
21159 (sse2_psadbw): Likewise.
21160 (sse2_pmovmskb): Likewise.
21161 (*sse2_maskmovdqu): Likewise.
21162 (*sse2_maskmovdqu_rex64): Likewise.
21163 (sse4a_extrqi): Likewise.
21164 (sse4a_extrq): Likewise.
21165 (sse3_lddqu): Set prefix_rep.
21166 (sse3_addsubv4sf3): Likewise.
21167 (sse3_haddv4sf3): Likewise.
21168 (sse3_hsubv4sf3): Likewise.
21169 (sse_cvtss2si): Likewise.
21170 (sse_cvtss2si_2): Likewise.
21171 (sse_cvtss2siq): Likewise.
21172 (sse_cvtss2siq_2): Likewise.
21173 (sse_cvttss2si): Likewise.
21174 (sse_cvttss2siq): Likewise.
21175 (sse2_cvttps2dq): Likewise.
21176 (sse3_movshdup): Likewise.
21177 (sse3_movsldup): Likewise.
21178 (sse2_cvtsd2si): Likewise.
21179 (sse2_cvtsd2si_2): Likewise.
21180 (sse2_cvtsd2siq): Likewise.
21181 (sse2_cvtsd2siq_2): Likewise.
21182 (sse2_cvttsd2si): Likewise.
21183 (sse2_cvttsd2siq): Likewise.
21184 (*sse2_cvtpd2dq): Likewise.
21185 (*sse2_cvttpd2dq): Likewise.
21186 (sse2_pshuflw_1): Likewise.
21187 (sse2_pshufhw_1): Likewise.
21188 (sse4a_insertqi): Likewise.
21189 (sse4a_insertq): Likewise.
21190 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
21191 (ssse3_phadddv4si3): Likewise.
21192 (ssse3_phaddswv8hi3): Likewise.
21193 (ssse3_phsubwv8hi3): Likewise.
21194 (ssse3_phsubdv4si3): Likewise.
21195 (ssse3_phsubswv8hi3): Likewise.
21196 (ssse3_pmaddubswv8hi3): Likewise.
21197 (ssse3_pmulhrswv8hi3): Likewise.
21198 (ssse3_pshufbv16qi3): Likewise.
21199 (ssse3_psign<mode>3): Likewise.
21200 (ssse3_palignrti): Likewise.
21201 (abs<mode>2): Likewise.
21202 (ssse3_phaddwv4hi3): Set prefix_extra.
21203 (ssse3_phadddv2si3): Likewise.
21204 (ssse3_phaddswv4hi3): Likewise.
21205 (ssse3_phsubwv4hi3): Likewise.
21206 (ssse3_phsubdv2si3): Likewise.
21207 (ssse3_phsubswv4hi3): Likewise.
21208 (ssse3_pmaddubswv4hi3): Likewise.
21209 (ssse3_pmulhrswv4hi3): Likewise.
21210 (ssse3_pshufbv8qi3): Likewise.
21211 (ssse3_psign<mode>3): Likewise.
21212 (ssse3_palignrdi): Likewise.
21213 (abs<mode>2): Likewise.
21214 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
21215 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
21216 (sse2_pmovmskb): Set mode to SI instead of V2DF.
21217
8747a9a4 212182007-04-23 Nick Clifton <nickc@redhat.com>
21219
21220 * params.def: Fix formatting of emacs local variables.
21221
238270c6 212222007-04-23 H.J. Lu <hongjiu.lu@intel.com>
21223
21224 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
21225 move if inter-unit move isn't allowed.
21226 Don't split moving the first element of V2DI to DI to inter-unit
21227 move if inter-unit move isn't allowed.
21228
f1456a87 212292007-04-23 Richard Guenther <rguenther@suse.de>
21230
21231 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
21232 and CDI_POST_DOMINATORS separately.
21233
0e457001 212342007-04-23 Nick Clifton <nickc@redhat.com>
21235
21236 * c.opt (Wformat-contains-nul): Add warning attribute.
21237
6a06c824 212382007-04-23 Jan Hubicka <jh@suse.cz>
21239
21240 * function.c (init_function_start): Don't init line number info.
21241 (expand_function_end): Update.
21242 (reset_block_changes, record_block_change, finalize_block_changes,
21243 check_block_change, free_block_changes): Kill.
21244 * function.h (reset_block_changes, record_block_change,
ed69c853 21245 finalize_block_changes, check_block_change, free_block_changes):
21246 Remove prototypes.
6a06c824 21247 (struct function): Remove ib_boundaries_block.
21248 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
21249 Use curr_insn_locator to initialize locator.
21250 (emit_line_note): Remove.
21251 * cfgexpand.c (expand_gimple_cond_expr): Update.
21252 (construct_exit_block): Likewise.
21253 (tree_expand_cfg): Initialize/finalize locators.
21254 * expr.c (expand_expr_real): Update.
21255 * cfglayout.c (line_locators_locs, line_locators_lines,
21256 file_locators_locs, file_locators_files): Remove.
21257 (set_block_levels): Move to cfgexpand.c.
21258 (insn_locators_initialize): Remove.
21259 (pass_insn_locators_initialize): Remove.
21260 (locations_locators_locs, locations_locators_vals): New static vars.
21261 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
21262 Likewise.
21263 (insn_locators_alloc, insn_locators_finalize,
21264 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
21265 New functions.
21266 (locator_location): New.
21267 (locator_line, locator_file): Rewrite.
21268 * rtl.h (emit_line_note): Kill.
21269 (insn_locators_alloc, insn_locators_finalize,
21270 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
21271 Declare.
21272 * tree-inline.c (initialize_cfun): Do not initialize
21273 ib_boundaries_block.
21274 * passes.c (pass_insn_locators_initialize): Remove.
21275
32e79ae6 212762007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
21277
21278 PR middle-end/31448
21279 * expr.c (reduce_to_bit_field_precision): Handle
21280 CONST_INT rtx's.
21281
bb8107e7 212822007-04-22 Uros Bizjak <ubizjak@gmail.com>
21283
21284 PR tree-optimization/24659
21285 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
21286 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
21287 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
21288 * genopinit.c (optabs): Rename vec_pack_mod_optab
21289 to vec_pack_trunc_optab.
21290 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
21291 early for scalar floating point operands for NOP_EXPR.
21292 (vectorizable_type_promotion): Ditto.
21293 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
21294 vec_pack_trunc_optab.
21295 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
21296
21297 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
21298 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
21299 Rename from VEC_PACK_MOD_EXPR.
21300 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
21301 * expr.c (expand_expr_real_1): Ditto.
21302 * tree-inline.c (estimate_num_insns_1): Ditto.
21303 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
21304
21305 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
21306 (vec_unpacks_lo_v4sf): Ditto.
21307 (vec_pack_trunc_v2df): Ditto.
21308 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
21309 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
21310 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
21311
21312 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
21313 vec_pack_mod_v8hi.
21314 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
21315
21316 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
21317 Rename from VEC_PACK_MOD_EXPR. This expression also represent
21318 packing of floating point operands.
21319 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
21320 represent unpacking of floating point operands.
21321 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
21322 [vec_unpacks_hi]: Ditto.
21323 [vec_unpacks_lo]: Ditto.
21324
64c2e9b0 213252007-04-22 Jan Hubicka <jh@suse.cz>
21326
21327 * final.c (rest_of_handle_final): Call
21328 targetm.asm_out.constructor/targetm.asm_out.destructor
21329 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
21330 proper priority via decl_*_priority_insert.
21331 * c-common.c (c_expand_body): Likewise.
21332
790963ba 213332007-04-22 Richard Guenther <rguenther@suse.de>
21334
21335 PR tree-optimization/29789
21336 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
21337 (rewrite_reciprocal): New helper split out from
21338 determine_invariantness_stmt.
21339 (rewrite_bittest): Likewise.
21340 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
21341 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
21342 is not.
21343
0def560a 213442007-04-22 Revital Eres <eres@il.ibm.com>
21345
b42bbd03 21346 * loop-unroll.c (var_to_expand): New field to support also
21347 insns of the form x = something + x.
21348 (analyze_insn_to_expand_var): Use it.
21349 (expand_var_during_unrolling): Likewise.
0def560a 21350
b3723726 213512007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
21352
21353 * predict.c: Include pointer-set.h.
21354 (bb_predictions): New variable.
21355 (tree_predicted_by_p, tree_predict_edge,
21356 remove_predictions_associated_with_edge): Use bb_predictions map
21357 instead of bb->predictions.
21358 (clear_bb_predictions, assert_is_empty): New functions.
21359 (combine_predictions_for_bb): Use bb_predictions map. Call
21360 clear_bb_predictions.
21361 (tree_estimate_probability): Create and free bb_predictions map.
21362 * Makefile.in (predict.o): Add pointer-set.h dependency.
21363 * basic-block.h (struct basic_block_def): Remove predictions
21364 field.
21365 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
21366
ec49ea0b 213672007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
21368
21369 PR target/31480
21370 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
21371 is null.
21372
f7b38b18 213732007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
21374
21375 * timevar.c (timevar_print): Change reference of --disable-checking to
21376 --enable-checking=release. Also warn if assert checking is disabled.
21377
cae486e2 213782007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
21379
21380 PR C/30265
21381 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
21382 decl as addressable if the compound literal was marked as
21383 addressable.
21384 Mark the decl as a gimple register if it is a complex or
21385 vector decl and does not live in memory.
21386
98d4f925 213872007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
21388
21389 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
21390 (GENERIC_NEXT): New function macro.
21391 (PHI_CHAIN): Use phi_node's new chain variable.
21392 (tree_phi_node): Change tree_common to tree_base
21393 and add the chain field.
21394 * tree-phinodes.c (make_phi_node): Don't set
21395 TREE_TYPE on the new node.
21396 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
21397 instead of checking GIMPLE_TUPLE_P in chain_next.
21398 * tree-vect-transform.c
21399 (get_initial_def_for_induction): Look at
21400 PHI_RESULT_TREE for the type of the phi node.
21401 (update_vuses_to_preheader): Use PHI_CHAIN
21402 instead of TREE_CHAIN on the phi node.
21403 * tree-ssa-structalias.c (compute_points_to_sets):
21404 Likewise.
21405 (ipa_pta_execute): Likewise.
21406
7a6537b3 214072007-04-21 Richard Guenther <rguenther@suse.de>
21408
21409 PR middle-end/31136
21410 * fold-const.c (fold_unary): Call fold_convert_const on the
21411 original tree.
21412
7413a5e0 214132007-04-21 Alexandre Oliva <aoliva@redhat.com>
21414
21415 * gcse.c (store_killed_in_insn): Handle PARALLELs.
21416 (store_killed_in_pat): New.
21417
e865d428 214182007-04-20 Richard Henderson <rth@redhat.com>
21419
21420 PR target/31628
21421 * config/i386/i386.c (type_has_variadic_args_p): Look for any
21422 TREE_LIST with a void_type_node value, not void_list_node exactly.
21423
a7d782cd 214242007-04-21 Douglas Gregor <doug.gregor@gmail.com>
21425
21426 * doc/standards.texi: Re-arrange into language-specific
21427 subsections. Add a C++ section, documenting which standards we
21428 support.
21429
cf95b243 214302007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
21431
21432 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
21433 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
21434
1177f497 214352007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
21436
21437 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
21438 ecrti.o and crtbegin.o.
21439 (LIB_DEFAULT_SPEC): Include -lc.
21440 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
21441
0934d969 214422007-04-20 Richard Henderson <rth@redhat.com>
21443
21444 PR target/28623
21445 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
21446 argument; update all callers.
21447 (get_unaligned_offset): New.
21448 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
21449 get_unaligned_address, just pass on the address directly.
21450 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
21451 the subreg in the helper patterns.
21452 (unaligned_extendqidi_le): Use get_unaligned_offset.
21453 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
21454 (unaligned_extendhidi_be): Likewise.
21455 (unaligned_extendhidi): Tidy.
21456 * config/alpha/alpha-protos.h: Update.
21457
a2a5e014 214582007-04-20 Richard Henderson <rth@redhat.com>
21459
21460 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
21461 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
21462 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
21463 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
21464 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
21465 (CPP_SPEC): Don't include %(cpp_subtarget).
21466 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
21467 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
21468 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
21469
ddb8b0be 214702007-04-20 Jakub Jelinek <jakub@redhat.com>
21471
553633cf 21472 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
21473 for __builtin_ia32_cmpordss.
21474
ddb8b0be 21475 PR tree-optimization/31632
21476 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
21477 and arg1 for optimizations of comparison against min/max values.
21478 Fold arg0 to arg1's type for optimizations of comparison against
21479 min+1 and max-1 values.
21480
efb8c784 214812007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
21482
21483 * reload.c (combine_reloads): When trying to use a dying register,
21484 check whether it's uninitialized and don't use if so.
21485
bd56c1f7 214862007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
21487
21488 * fold-const.c: Remove prototypes for native_encode_expr and
21489 native_interpret_expr.
21490 (native_encode_expr): Make non-static.
21491 (native_interpret_expr): Likewise.
21492 * tree.h: Add prototypes for the above.
21493
4758e73d 214942007-04-19 Joseph Myers <joseph@codesourcery.com>
21495
4758e73d 21496 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
21497 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
21498 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
21499 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
21500 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
21501 Add length attributes.
21502
839803bd 215032007-04-19 Janis Johnson <janis187@us.ibm.com>
21504
7bb1423a 21505 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
21506 not that it is 1.
21507
839803bd 21508 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
21509 __STDC_WANT_DEC_FP__.
21510
8c3bf67d 215112007-04-19 Joseph Myers <joseph@codesourcery.com>
21512
21513 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
21514 for long double compatibility.
21515 * configure: Regenerate.
21516
88a00894 215172007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
21518
21519 PR rtl-optimization/29841
21520 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
21521 trap instructions.
21522 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
21523 that may cause control flow transfer from being moved.
21524
b2f88529 215252007-04-18 Jan Hubicka <jh@suse.cz>
21526
21527 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
21528 types.
21529
90c24387 215302007-04-18 Eric Christopher <echristo@apple.com>
572d7bec 21531
90c24387 21532 * config/rs6000/darwin.md (load_macho_picbase): Use link register
21533 only. Update operands.
21534 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
21535 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
21536 link register to pic register.
572d7bec 21537
7988a017 215382007-04-18 Dirk Mueller <dmueller@suse.de>
21539
21540 PR diagnostic/31227
21541 * tree-vrp.c (search_for_addr_array): New.
21542 (check_array_bounds): Suppress warning about
21543 address taken of array refs if its not de-referenced.
21544
33bbe730 215452007-04-18 Dorit Nuzman <dorit@il.ibm.com>
21546
21547 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
21548 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
21549
21550 * tree-vectorizer.h (NITERS_KNOWN_P): New.
90c24387 21551 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
33bbe730 21552 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
21553
90c24387 21554 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
33bbe730 21555 dump print.
21556 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
21557 print message.
21558 (vect_analyze_scalar_cycles): Fix indentation.
21559 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
21560 (vect_mark_relevant): Include phis in relevance analysis.
21561
21562 * tree-vect-transform.c (vect_transform_loop): Add an assert.
21563
5985f1ef 215642007-04-18 Anatoly Sokolov <aesok@post.ru>
21565
21566 * config/avr/avr.c (ptrreg_to_str): Replace error() with
21567 output_operand_lossage().
21568
24d7ad26 215692007-04-18 Dorit Nuzman <dorit@il.ibm.com>
21570
21571 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
21572 the unused code for reduction without adjust-in-epilog to simplify the
21573 function.
21574
27784c70 215752007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
21576
21577 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
21578 (S390_TDC_NEGATIVE_ZERO): New constant.
21579 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
21580 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
21581 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
21582 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
21583 (S390_TDC_POSITIVE_INFINITY): New constant.
21584 (S390_TDC_NEGATIVE_INFINITY): New constant.
21585 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
21586 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
21587 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
21588 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
21589 (S390_TDC_INFINITY): New constant.
21590 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
21591 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
21592 optimization for UNSPEC_CCZ_TO_INT.
21593 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
21594 ("*ccz_to_int"): New insn.
21595 ("isinf<mode>2"): New insn.
21596 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
21597 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
21598 (UNSPEC_CCZ_TO_INT): New constant.
21599
37361b38 216002007-04-18 Richard Guenther <rguenther@suse.de>
21601
21602 PR tree-optimization/19431
21603 PR tree-optimization/21463
21604 * tree-pass.h (pass_phiprop): Declare.
21605 * passes.c (init_optimization_passes): New phiprop pass.
21606 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
21607 (phivn_valid_p): New helper function.
21608 (phiprop_insert_phi): Likewise.
21609 (propagate_with_phi): Likewise.
21610 (tree_ssa_phiprop): New propagator propagating loads
21611 through phi nodes if profitable.
21612
a5e56906 216132007-04-18 Dorit Nuzman <dorit@il.ibm.com>
21614
21615 * tree-vect-analyze.c (process_use): New function.
21616 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
21617 Check phis in all bbs.
21618 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
21619 assert.
21620
ea4c8f87 216212007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
21622
21623 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
21624 we use REG_EQUAL.
21625
c3384cae 216262007-04-17 Anatoly Sokolov <aesok@post.ru>
21627
21628 PR target/30483
21629 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
21630 error().
21631
2c2034a3 216322007-04-17 H.J. Lu <hongjiu.lu@intel.com>
21633
21634 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
21635 on "0".
21636 (sse_vmmulv4sf3): Likewise.
21637 (sse2_vmaddv2df3): Likewise.
21638 (sse2_vmmulv2df3): Likewise.
21639
25153338 216402007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
21641
21642 PR rtl-optimization/31360
21643 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
21644 (target_reg_cost): New.
21645 (init_set_costs): Initialize target_reg_cost. Add comments
21646 regarding the rationale of the costs.
21647 (global_cost_for_size): Renamed to...
21648 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
21649 of register pressure.
21650 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
21651 estimate_reg_pressure_cost. Add number of ivs.
21652 (determine_set_costs): Dump target_reg_cost.
48dc2227 21653 * loop-invariant.c (gain_for_invariant): Use
25153338 21654 estimate_reg_pressure_cost. Removed n_inv_uses argument.
21655 (best_gain_for_invariant, find_invariants_to_move): Remove
21656 n_inv_uses.
21657 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
21658 (target_reg_cost): Declare.
21659 (global_cost_for_size): Declaration removed.
21660 (estimate_reg_pressure_cost): Declare.
21661
32eb5ffe 216622007-04-17 Peter Bergner <bergner@vnet.ibm.com>
21663
21664 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
21665 regnos into even/odd register pairs.
21666 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
21667 TDmode similar to the other floating point modes.
21668 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
21669 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
21670 define_expand's.
21671 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
21672 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
21673 (movdd_hardfloat64): Use TARGET_MFPGPR.
21674
759d3f80 216752007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
21676
21677 * reload1.c (delete_output_reload): Don't count output in n_inherited.
21678
21679 Revert
21680 2005-01-05 Richard Henderson <rth@redhat.com>
21681 PR rtl-opt/10692
21682 * reload1.c (do_input_reload): Restrict the optimization deleteing
21683 a previous output reload to RELOAD_FOR_INPUT.
21684
6fada017 216852007-04-17 Dorit Nuzman <dorit@il.ibm.com>
21686
21687 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
21688 induc_vec_info_type.
21689 (vectorizable_induction): New function declaration.
21690 * tree-vect-transform.c (get_initial_def_for_induction): No need to
21691 check if already vectorized. Find first place in BB where new stmts
21692 can be inserted. Takes only one argument.
21693 (vectorizable_induction): New function.
21694 (vect_transform_stmt): Add case for induc_vec_info_type to call
21695 vectorizable_induction.
21696 (vect_transform_loop): Consider phis for vectorization.
21697 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
21698 condition.
90c24387 21699 (analyze_operations): Call vectorizable_induction when analyzing phis.
6fada017 21700 Fix comment.
21701 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
21702 (vect_mark_relevant): Include phis in relevance analysis.
21703 (vect_mark_stmts_to_be_vectorize): Likewise.
21704 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
21705
0e4744ac 217062007-04-16 Lawrence Crowl <crowl@google.com>
21707
21708 * doc/invoke.texi (Debugging Options): Add documentation for the
21709 -femit-struct-debug options -femit-struct-debug-baseonly,
21710 -femit-struct-debug-reduced, and
21711 -femit-struct-debug-detailed[=...].
21712
21713 * c-opts.c (c_common_handle_option): Add
21714 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
21715 and OPT_femit_struct_debug_detailed_.
21716 * c.opt: Add specifications for
21717 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
21718 and -femit-struct-debug-detailed[=...].
21719 * opts.c (set_struct_debug_option): Parse the
21720 -femit-struct-debug-... options.
21721 * opts.c (matches_main_base, main_input_basename,
21722 main_input_baselength, base_of_path, matches_main_base): Add
21723 variables and functions to compare header base name to compilation
21724 unit base name.
21725 * opts.c (should_emit_struct_debug): Add to determine to emit a
21726 structure based on the option.
21727 (dump_struct_debug) Also disabled function to debug this
21728 function.
21729 * opts.c (handle_options): Save the base name of the
21730 compilation unit.
21731
21732 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
e865d428 21733 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
0e4744ac 21734 This hook indicates if a type is generic. Set it by default
21735 to "never generic".
21736 * langhooks.h (struct lang_hooks_for_types): Add a new hook
21737 to determine if a struct type is generic or not.
21738 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
21739 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
21740 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
21741 with live C++ hook.
21742
21743 * flags.h (enum debug_info_usage): Add an enumeration to describe
21744 a program's use of a structure type.
21745 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
21746 to indicate the program's usage of the type. Filter structs based
21747 on the -femit-struct-debug-... specification.
21748 (gen_type_die): Split into two routines, gen_type_die and
21749 gen_type_die_with_usage. gen_type_die is now a wrapper
21750 that assumes direct usage.
21751 (gen_type_die_with_usage): Replace calls to gen_type_die
21752 with gen_type_die_with_usage adding the program usage of
21753 the referenced type.
21754 (dwarf2out_imported_module_or_decl): Suppress struct debug
21755 information using should_emit_struct_debug when appropriate.
21756
91c9ef60 217572007-04-16 Ian Lance Taylor <iant@google.com>
21758
5c7155ca 21759 PR tree-optimization/31522
21760 * tree-vrp.c (vr_phi_edge_counts): New static variable.
21761 (vrp_initialize): Allocate vr_phi_edge_counts.
21762 (vrp_visit_phi_node): Don't push to infinity if we saw a new
21763 executable edge. Drop test for all constants.
21764 (vrp_finalize): Free vrp_phi_edge_counts.
21765
40b49e8f 21766 * doc/cpp.texi (Common Predefined Macros): Clarify description of
21767 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
21768
91c9ef60 21769 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
21770 predecessors at head rather than tail.
21771
fc7dfeb9 217722007-04-16 Matthias Klose <doko@debian.org>
21773
ddb8b0be 21774 * config/alpha/linux.h (CPP_SPEC): Define.
21775 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
fc7dfeb9 21776
c085e9f9 217772007-04-16 Aldy Hernandez <aldyh@redhat.com>
21778
e865d428 21779 * function.h: Remove sequence_stack extern declaration.
c085e9f9 21780
98d02c10 217812007-04-16 Kazu Hirata <kazu@codesourcery.com>
21782
21783 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
21784 TARGET_FIDOA.
21785 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
21786 defined.
21787
8c23ba29 217882007-04-16 Anatoly Sokolov <aesok@post.ru>
21789
21790 * config/avr/avr.c (avr_arch_types): Rearranging array.
21791 (enum avr_arch): Add.
90c24387 21792 (avr_mcu_types): Use avr_arch enumeration constants instead of
8c23ba29 21793 numbers.
21794 * config/avr/avr.h (LINK_SPEC): Simplify.
21795
dbaae14a 217962007-04-16 Kazu Hirata <kazu@codesourcery.com>
21797
21798 * config/m68k/m68k.c (m68k_libcall_value,
21799 m68k_function_value): Use macros for register names more.
21800
47313d14 21801 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
21802 instead.
21803 (M68K_REGNAME): Use A6_REG.
21804 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
21805
c5947ab7 218062007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
21807
21808 PR middle-end/28071
21809 * sched-int.h (struct deps): Split field 'pending_lists_length' into
21810 'pending_read_list_length' and 'pending_write_list_length'. Update
21811 comment.
21812 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
21813 to handle two length counters instead of one. Update all uses.
21814 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
21815 two length counters instead of one.
21816 * sched-rgn.c (propagate_deps): Update to handle two length counters
21817 instead of one.
21818
c3a50b15 218192007-04-16 H.J. Lu <hongjiu.lu@intel.com>
21820
21821 PR target/31582
21822 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
21823 copy of source, pass it to ix86_expand_vector_set and return
21824 it as target.
21825
11b70d7d 218262007-04-16 David Ung <davidu@mips.com>
c3a50b15 21827 Joseph Myers <joseph@codesourcery.com>
11b70d7d 21828
21829 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
21830 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
21831 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
21832 Add 74K processor information.
21833 * config/mips/mips.md: Include 74k.md.
21834 (cpu): Add 74kc,74kf,74kx.
21835 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
21836 * config/mips/74k.md: New.
21837 * doc/invoke.texi (MIPS Options): Document 74K support.
21838
29696c95 218392007-04-16 Dorit Nuzman <dorit@il.ibm.com>
21840
21841 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
21842 vectorizable_* functions.
21843 * tree-vect-transform.c (vectorizable_call): Add check for
21844 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
21845 (vectorizable_store): likewise.
21846 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
21847 Add comments.
21848 (vectorizable_operation, vectorizable_type_demotion): Likewise.
21849 (vectorizable_type_promotion, vectorizable_load): Likewise.
21850 (vectorizable_live_operation, vectorizable_condition): Likewise.
21851 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
21852 STMT_VINFO_LIVE_P.
21853 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
21854
9d463c3d 218552007-04-15 Kazu Hirata <kazu@codesourcery.com>
21856
21857 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
21858 register numbers more.
21859 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
21860 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
21861 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
21862 FUNCTION_VALUE_REGNO_P): Likewise.
21863 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
21864 STATIC_CHAIN_REGNUM): Likewise.
21865 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
21866 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
21867 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
21868 * config/m68k/m68k.md (FP_REG): New.
21869
35387ada 218702007-04-15 Kazu Hirata <kazu@codesourcery.com>
21871
21872 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
21873 alignment on fido.
21874
efec32e0 218752007-04-15 Kazu Hirata <kazu@codesourcery.com>
21876
21877 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
21878 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
21879 comment typos.
21880
a30d0a5b 218812007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
21882
21883 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
21884 cold loops.
21885
0dd13847 218862007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
21887
21888 PR c/31520
e865d428 21889 * c-decl.c (finish_decl): Grab the type of the decl after the call
0dd13847 21890 to store_init_value.
21891
55d51835 218922007-04-14 Steven Bosscher <steven@gcc.gnu.org>
21893
21894 * common.opt (fforward-propagate): Fix "Optimization" annotation.
21895
480e5bc3 218962007-04-14 Jakub Jelinek <jakub@redhat.com>
21897
21898 PR c++/25874
ed69c853 21899 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
21900 dominators, post dominators and cleanup cfg before returning.
480e5bc3 21901
5ff4f029 219022007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
21903
21904 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
21905 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
21906
278e2fd1 219072007-04-14 Kazu Hirata <kazu@codesourcery.com>
21908
21909 * config.gcc: Recognize fido.
21910 * config/m68k/m68k-devices.def (fidoa): New.
21911 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
21912 __mfido__.
21913 (FL_FIDOA, TARGET_FIDOA): New.
21914 * config/m68k/m68k.opt (mfidoa): New.
21915
849ea31c 219162007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21917
21918 PR middle-end/31322
21919 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
21920 when a personality function is used.
21921
d4c45216 219222007-04-13 Bob Wilson <bob.wilson@acm.org>
21923
21924 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
21925
2775d4b5 219262007-04-13 Mike Stump <mrs@apple.com>
21927
21928 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
21929 we can...
21930 * config/darwin.opt (fapple-kext): Make C++ only.
21931 * config/darwin.c (darwin_override_options): Remove code to ensure
21932 -fapple-kext is given for C++ only.
21933
e7fb4953 219342007-04-13 Richard Sandiford <richard@codesourcery.com>
21935
21936 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
21937 * config/mips/mips.c (override_options): Call
21938 SUBTARGET_OVERRIDE_OPTIONS, if defined.
21939
ba47d267 219402007-04-13 H.J. Lu <hongjiu.lu@intel.com>
21941
21942 * config/i386/i386.opt (msvr3-shlib): Removed.
21943
21944 * doc/invoke.texi: Remove -msvr3-shlib.
21945
1b89f7c8 219462007-04-13 H.J. Lu <hongjiu.lu@intel.com>
21947
21948 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
21949 with "popcnt" instruction.
21950
f3d56fef 219512007-04-13 Richard Guenther <rguenther@suse.de>
21952
21953 PR tree-optimization/21258
21954 * tree-vrp.c (compare_case_labels): New helper.
21955 (find_switch_asserts): New function.
21956 (find_assert_locations): Call it for SWITCH_EXPRs.
21957
d26e00d8 219582007-04-13 Uros Bizjak <ubizjak@gmail.com>
21959
21960 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
21961 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
21962 check is now implied in X87_FLOAT_MODE_P.
21963 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
21964 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
21965 (fix_trunc<mode>_i386_fisttp): Ditto.
21966 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
21967 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
21968 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
21969 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
21970 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
21971 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
21972 (unnamed_splitters): Ditto.
21973 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
21974 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
21975 FIRST_SSE_REG for local functions when SSE math is enabled or
21976 for functions with sseregparm attribute.
21977 (standard_80387_constant_p): Return -1 if mode is not
21978 X87_FLOAT_MODE_P.
21979 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
21980 (ix86_expand_compare): Ditto.
21981 (ix86_expand_carry_flag_compare): Ditto.
21982 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
21983 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
21984 DECIMAL_FLOAT_MODE_P.
21985 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
21986 of SCALAR_FLOAT_MODE_P.
21987 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
21988 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
21989 checks before FLOAT_MODE_P.
21990 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
21991 before FLOAT_MODE_P.
21992 [DIV]: Ditto.
21993 [NEG]: Ditto.
21994 [ABS]: Ditto.
21995 [SQRT]: Ditto.
21996 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
21997
bdbe7091 219982007-04-12 Paolo Bonzini <bonzini@gnu.org>
e865d428 21999 Charles Wilson <libtool@cwilson.fastmail.fm>
bdbe7091 22000
22001 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
22002 (libgcc.mvars): Don't depend on them.
22003 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
22004 * exec-tool.in: New.
22005
2211b4ca 220062007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
22007
22008 * doc/invoke.text (--help): Document --help=common.
22009
cab08a39 220102007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
22011
22012 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
22013
a8a393cb 220142007-04-12 Richard Sandiford <richard@codesourcery.com>
22015
22016 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
22017 * genemit.c (main): Emit #include "integrate.h".
22018 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
22019 (LOADGP_RTP): New mips_loadgp_style.
22020 * config/mips/mips.h: Include config/vxworks-dummy.h.
22021 (TARGET_RTP_PIC): New macro.
22022 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
22023 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
22024 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
22025 for TARGET_RTP_PIC.
22026 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
22027 -mvxworks-pic when using -mrtp and a PIC option.
22028 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
22029 for RTP PIC.
22030 (mips_symbolic_constant_p, mips_symbolic_address_p)
22031 (mips_symbol_insns): Handle SYMBOL_HALF.
22032 (override_options): Warn about -G and -mrtp being used together.
22033 Initialize mips_lo_relocs[SYMBOL_HALF].
22034 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
22035 (mips_emit_loadgp): Handle LOADGP_RTP.
22036 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
22037 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
22038 (tablejump): Handle function-relative case table entries if
22039 TARGET_RTP_PIC.
22040 * config/mips/predicates.md (symbol_ref_operand): New predicate.
22041
d1b79aba 220422007-04-12 Richard Sandiford <richard@codesourcery.com>
22043
22044 * config/mips/mips.md (load_call<mode>): Allow any general register.
22045 destination.
22046 (sibcall_value_internal, sibcall_value_multiple_internal)
22047 (call_value_internal, call_value_split, call_value_multiple_internal)
22048 (call_value_multiple_split): Remove constraints from operand 0.
22049
de604551 220502007-04-12 Richard Sandiford <richard@codesourcery.com>
22051
22052 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
22053 rather than loadgp_noshared.
22054 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
22055 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
22056 gen_loadgp.
22057 * config/mips/mips.md (loadgp): Rename to...
22058 (loadgp_newabi): ...this.
22059 (loadgp_noshared): Rename to...
22060 (loadgp_absolute): ...this.
22061
ffe0cc16 220622007-04-12 Richard Sandiford <richard@codesourcery.com>
22063
22064 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
22065 false for locally-binding symbols.
22066 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
22067
4cb04729 220682007-04-12 Richard Sandiford <richard@codesourcery.com>
22069
22070 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
22071 (SYMBOL_GOT_PAGE_OFST): ...this.
22072 (SYMBOL_GOT_GLOBAL): Rename to...
22073 (SYMBOL_GOT_DISP): ...this.
22074 (SYMBOL_GOTOFF_GLOBAL): Rename to...
22075 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
22076 * config/mips/mips.c (mips_global_symbol_p): New function.
22077 (mips_symbol_binds_local_p): Likewise.
22078 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
ed69c853 22079 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
22080 mips_global_symbol_p and mips_symbol_binds_local_p.
4cb04729 22081 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
22082 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
22083 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
22084 SYMBOL_GOTOFF_DISP.
22085 (mips_ok_for_lazy_binding_p): New function.
22086 (mips_load_call_address, mips_expand_call): Use it.
22087 (mips_dangerous_for_la25_p): Likewise.
22088 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
22089 (*got_disp<mode>): Use got_disp_operand instead of
22090 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
22091 SYMBOL_GOTOFF_GLOBAL.
22092 (*got_page<mode>): Use got_page_ofst_operand instead of
22093 local_got_operand.
22094 * config/mips/predicates.md (const_call_insn_operand): Use
22095 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
22096 (global_got_operand): Rename to...
22097 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
22098 SYMBOL_GOT_GLOBAL.
22099 (local_got_operand): Rename to...
22100 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
22101 of SYMBOL_GOT_LOCAL.
22102
46414626 221032007-04-12 Richard Sandiford <richard@codesourcery.com>
22104
22105 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
22106 TARGET_CALL_CLOBBERED_GP.
22107 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
22108 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
22109 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
22110 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
22111 of TARGET_ABICALLS && !TARGET_NEWABI.
22112 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
22113 * config/mips/mips.c (mips_load_call_address): Check
22114 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
22115 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
22116 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
22117 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
22118 TARGET_ABICALLS && TARGET_NEWABI.
22119 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
22120 TARGET_ABICALLS.
22121 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
22122 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
22123 TARGET_ABICALLS && TARGET_NEWABI.
22124 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
22125 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
22126 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
22127 whether indirect calls must use $25.
22128 (mips_extra_live_on_entry): Check TARGET_GOT instead of
22129 TARGET_ABICALLS.
22130 * config/mips/mips.md (jal_macro): Check flag_pic and
22131 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
22132 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
22133 instead of TARGET_ABICALLS.
22134 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
22135 TARGET_ABICALLS && TARGET_OLDABI.
22136 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
22137 (sibcall): In the comment above the define_insn, mention
22138 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
22139 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
22140 instead of TARGET_ABICALLS.
22141
9422b03b 221422007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
22143
22144 * doc/md.texi (Blackfin family constraints): Document PA and PB.
22145 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
22146 (MACFLAGS_MATCH_P): New macro.
22147 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
22148 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
22149 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
22150 the other MACFLAG constants.
22151 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
22152 (flag_machi): Tighten constraints. Renumber some of the operands.
22153 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
22154 output template.
22155 (flag_machi_parts_acconly): New pattern.
22156 (flag_macinithi): Tighten constraints. Allow any accumulator to be
22157 used.
22158 (flag_macinit1hi): Tighten constraints.
22159 (flag_mul_macv2hi_parts_acconly): New pattern.
22160
6daa377b 22161 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
22162 Use a more efficient implementation.
22163 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
22164 inline sequences when not optimizing for size.
22165
4462e6ac 22166 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
22167 movhi_high2low): Delete, merge functionality into...
22168 (packv2hi): ... this pattern.
22169
c9ddd413 22170 2007-02-11 Jie Zhang <jie.zhang@analog.com>
22171 * config/bfin/bfin.opt (msim): New option.
22172 (mcpu=): New option.
22173 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
22174 (bfin_cpu_t): Typedef of enum bfin_cpu.
22175 (bfin_cpu_type): New declaration.
22176 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
22177 -msim and -mcpu= options.
22178 (LIB_SPEC): Likewise.
22179 * config/bfin/bfin.c (bfin_cpu_type): Define.
22180 (bfin_handle_option): Handle -mcpu= option.
22181 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
22182 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
22183 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
22184
c77a1c92 221852007-04-12 Richard Sandiford <richard@codesourcery.com>
22186
22187 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
22188 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
22189 (powerpc-wrs-vxworksae): Use ${tm_file}.
22190 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
22191 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
22192 * config/i386/vx-common.h: New file.
22193
6f3d6768 221942007-04-12 Richard Sandiford <richard@codesourcery.com>
22195
22196 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
22197 of crt0.o%s.
22198
47d34a13 221992007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
22200
22201 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
22202 ldxtr.
22203
5bfe6313 222042007-04-12 Douglas Gregor <doug.gregor@gmail.com>
22205
22206 PR c++/31078
22207 PR c++/31103
22208 * c-common.c (c_build_qualified_type): Set canonical type
90c24387 22209 appropriately.
5bfe6313 22210
a128a28f 222112007-04-12 Richard Guenther <rguenther@suse.de>
22212
22213 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
22214 lower bound and element size if lower bound is not zero
22215 or either of the ARRAY_REF operands is set.
22216
a2501610 222172007-04-12 Richard Guenther <rguenther@suse.de>
22218
22219 PR tree-optimization/24689
22220 PR tree-optimization/31307
22221 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
22222 indices by value.
22223 * gimplify.c (canonicalize_addr_expr): To be consistent with
22224 gimplify_compound_lval only set operands two and three of
22225 ARRAY_REFs if they are not gimple_min_invariant. This makes
22226 it never at this place.
22227 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
22228
9f4a0384 222292007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22230
22231 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
22232 null before emitting a .nsubspa directive.
22233
12a2c9ea 222342007-04-11 Diego Novillo <dnovillo@redhat.com>
22235
22236 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
22237 need_to_partition_p if there are no memory statements in the
22238 function.
22239
cabedb72 222402007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
22241
22242 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
22243 (gcd_of_steps_may_divide_p): New function.
22244 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
22245
c89e828f 222462007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
22247
22248 * reload.c (find_reloads_toplev, find_reloads_address,
22249 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
22250 not a pointer equality test, to decide if we need to call
22251 push_reg_equiv_alt_mem.
22252
2a21a5df 222532007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
22254
22255 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
ed69c853 22256 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
22257 New.
2a21a5df 22258 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
22259
cabedb72 222602007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
8fb896c4 22261
22262 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
22263 vector to be positive.
22264
c227f8de 222652007-04-11 Diego Novillo <dnovillo@redhat.com>
22266
22267 PR 30735
22268 PR 31090
22269 * doc/invoke.texi: Document --params max-aliased-vops and
22270 avg-aliased-vops.
22271 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
22272 debug_memory_partitions): Move to tree-flow.h
22273 * params.h (AVG_ALIASED_VOPS): Define.
22274 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
22275 users.
22276 (mp_info_t): Likewise.
22277 (get_mem_sym_stats_for): New.
22278 (set_memory_partition): Move from tree-flow-inline.h.
22279 (mark_non_addressable): Only clear the set of symbols for the
22280 partition if it exists.
22281 (dump_memory_partitions): Move from tree-ssa-operands.c
22282 (debug_memory_partitions): Likewise.
22283 (need_to_partition_p): New.
22284 (dump_mem_ref_stats): New.
22285 (debug_mem_ref_stats): New.
22286 (dump_mem_sym_stats): New.
22287 (debug_mem_sym_stats): New.
22288 (update_mem_sym_stats_from_stmt): New.
22289 (compare_mp_info_entries): New.
22290 (mp_info_cmp): Call it.
22291 (sort_mp_info): Change argument to a list of mem_sym_stats_t
22292 objects.
22293 (get_mpt_for): Move from tree-ssa-operands.c.
22294 (find_partition_for): New.
22295 (create_partition_for): Remove.
22296 (estimate_vop_reduction): New.
22297 (update_reference_counts): New.
22298 (build_mp_info): New.
22299 (compute_memory_partitions): Refactor.
22300 Document new heuristic.
22301 Call build_mp_info, update_reference_counts,
22302 find_partition_for and estimate_vop_reduction.
22303 (compute_may_aliases): Populate virtual operands before
22304 calling debugging dumps.
22305 (delete_mem_sym_stats): New.
22306 (delete_mem_ref_stats): New.
22307 (init_mem_ref_stats): New.
22308 (init_alias_info): Call it.
22309 (maybe_create_global_var): Remove alias_info argument.
22310 Get number of call sites and number of pure/const call sites
22311 from gimple_mem_ref_stats().
22312 (dump_alias_info): Call dump_memory_partitions first.
22313 (dump_points_to_info_for): Show how many times a pointer has
22314 been dereferenced.
22315 * opts.c (decode_options): For -O2 set --param
22316 max-aliased-vops to 500.
22317 For -O3 set --param max-aliased-vops to 1000 and --param
22318 avg-aliased-vops to 3.
22319 * fortran/options.c (gfc_init_options): Remove assignment to
22320 MAX_ALIASED_VOPS.
22321 * tree-flow-inline.h (gimple_mem_ref_stats): New.
22322 * tree-dfa.c (dump_variable): Dump memory reference
22323 statistics.
22324 Dump NO_ALIAS* settings.
22325 (referenced_var_lookup): Tidy.
22326 (mem_sym_stats): New.
22327 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
22328 and ORIG are different SSA names for a memory partition.
22329 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
22330 * tree-flow.h (struct mem_sym_stats_d): Define.
22331 (mem_sym_stats_t): Define.
22332 (struct mem_ref_stats_d): Define.
22333 (struct gimple_df): Add field mem_ref_stats.
22334 (enum noalias_state): Define.
22335 (struct var_ann_d): Add bitfield noalias_state.
22336 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
22337 debug_mem_ref_stats, debug_memory_partitions,
22338 debug_mem_sym_stats): Declare.
22339 * tree-ssa-structalias.c (update_alias_info): Update call
22340 sites, pure/const call sites and asm sites in structure
22341 returned by gimple_mem_ref_stats.
22342 Remove local variable IS_POTENTIAL_DEREF.
22343 Increase NUM_DEREFS if the memory expression is a potential
22344 dereference.
22345 Call update_mem_sym_stats_from_stmt.
22346 If the memory references memory, call
22347 update_mem_sym_stats_from_stmt for all the direct memory
22348 symbol references found.
22349 (intra_create_variable_infos): Set noalias_state field for
22350 pointer arguments according to the value of
22351 flag_argument_noalias.
22352 * tree-ssa-structalias.h (struct alias_info): Remove fields
22353 num_calls_found and num_pure_const_calls_found.
22354 (update_mem_sym_stats_from_stmt): Declare.
22355 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
22356 Set default value to 100.
22357 (PARAM_AVG_ALIASED_VOPS): Define.
22358
516aa37d 223592007-04-11 Richard Guenther <rguenther@suse.de>
22360
22361 PR middle-end/31530
22362 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
22363 a * -b + c as c - a * b if we honor sign dependent rounding.
22364
2b8e874f 223652007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
22366
22367 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
22368 bfin_expand_strmov.
22369 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
22370 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
22371 variables.
22372 (initialize_trampoline): Don't use old-style function definition.
22373 (bfin_secondary_reload): Mark IN_P argument as unused.
22374
3e6bc865 223752007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
22376
22377 PR tree-optimization/31343
22378 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
22379 (build_polynomial_chrec): Return a scalar when the evolution is zero.
22380 * testsuite/gcc.dg/vect/pr31343.c: New.
22381
ed01e173 223822007-04-10 Eric Christopher <echristo@apple.com>
22383
22384 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
22385 * config/i386/i386.md (*cmpfp0): Use.
22386 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
22387 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
22388 (fix_trunc<mode>_i386_fisttp): Ditto.
22389 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
22390 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
22391 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
22392 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
22393 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
22394 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
22395 (unnamed_splitters): Ditto.
22396 * config/i386/i386.c (output_fix_trunc): Assert that
22397 we're not being passed a TFmode operand.
22398
944cca50 223992007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
22400
22401 PR tree-optimization/31526
22402 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
22403 n_basic_blocks to find newly added blocks.
22404
c778ae84 224052007-04-10 Uros Bizjak <ubizjak@gmail.com>
22406
22407 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
22408 alternative.
22409 (fix_trunc<mode>si_sse): Ditto.
22410 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
22411 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
22412 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
22413 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
22414 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
22415 expander using SSEMODEF mode macro.
22416 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
22417 expander using SSEMODEF mode macro.
22418 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
22419 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
22420 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
22421 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
22422 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
22423 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
22424 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
22425 Macroize insn using X87MODEF mode macro.
22426
d8d6e6ac 224272007-04-09 H.J. Lu <hongjiu.lu@intel.com>
22428
22429 * config/i386/sse.md (sse2_pinsrw): Removed.
22430 (sse2_pextrw): Renamed to ...
22431 (*sse2_pextrw): This.
22432
cb00447a 224332007-04-09 Jan Hubicka <jh@suse.cz>
22434
22435 PR target/27869
22436 * config/i386/sse.md
22437 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
22438 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
22439 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
22440 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
22441
d9745cea 224422007-04-09 Jan Hubicka <jh@suse.cz>
22443
22444 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
22445 multiple fields of union.
22446
d8a0d6b8 224472007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
22448
22449 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
22450 (create_preheaders): Check that loops are available.
22451 (fix_loop_structure): Clean up, improve comments.
22452 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
22453 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
22454 state flags.
22455 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
22456 * predict.c (tree_estimate_probability): Do not call
22457 calculate_dominance_info. Call create_preheaders.
22458 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
22459 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
22460 flags.
22461 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
22462 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
22463 * tree-cfg.c (tree_split_edge): Make an assert more precise.
22464 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
22465 arguments.
22466
27290809 224672007-04-08 Jan Hubicka <jh@suse.cz>
22468
22469 * tree.h (maybe_fold_offset_to_component_ref): Declare.
22470 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
22471 * fold-const.c (fold_unary): Use it.
22472
bbdc7974 224732007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
22474
22475 * varasm.c (assemble_variable): Remove call to
22476 lang_hooks.decls.prepare_assemble_variable.
22477 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
22478 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
22479 * langhooks.h (lang_hooks_for_decls): Remove
22480 prepare_assemble_variable.
22481
105eb9b9 224822007-04-08 Mike Stump <mrs@apple.com>
22483
22484 * config/i386/i386.c: Use inc/dec on Core2.
22485
94be3290 224862007-04-08 Steven Bosscher <steven@gcc.gnu.org>
22487
22488 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
22489 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
22490 lhd_tree_inlining_end_inlining): Remove.
22491 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
22492 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
22493 end_inlining hooks.
22494 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
22495 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
22496 lhd_tree_inlining_end_inlining): Remove prototypes.
22497 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
22498 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
22499 LANG_HOOKS_TREE_INLINING_START_INLINING,
22500 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
22501
22502 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
22503 not set it.
22504
8e5f08fe 225052007-04-08 Anatoly Sokolov <aesok@post.ru>
22506
22507 PR target/29932
22508 * config/avr/predicates.md (io_address_operand): Delete predicate.
22509 (low_io_address_operand): Don't use 'mode' argument.
22510 (higth_io_address_operand): Rename ...
22511 (high_io_address_operand): ... to this. Don't use 'mode' argument.
22512 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
22513 for above change.
22514
cf484390 225152007-04-07 Daniel Berlin <dberlin@dberlin.org>
22516
22517 Revert change removing staticp.
22518
4704b743 225192007-04-07 Anatoly Sokolov <aesok@post.ru>
22520
22521 PR target/30289
ed01e173 22522 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
4704b743 22523 earlyclobber.
22524
0e9b4e74 225252007-04-07 Bruce Korb <bkorb@gnu.org>
22526
22527 * c.opt: Add -Wformat-contains-nul.
48dc2227 22528 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
0e9b4e74 22529 -Wformat setting.
22530 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
22531 the NUL byte warning.
22532
918ee506 225332007-04-07 H.J. Lu <hongjiu.lu@intel.com>
22534
22535 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
22536
57d1a308 225372007-04-06 Daniel Berlin <dberlin@dberlin.org>
22538
22539 * tree.c (staticp): No longer use staticp langhook.
22540 * langhooks.c (lhd_staticp): Removed.
22541 * langhooks.h (struct lang_hooks): Remove staticp.
22542 * c-common.c (c_staticp): Remove.
22543 * c-common.h (c_staticp): Ditto.
22544 * langhooks-defs.h (lhd_staticp): Ditto.
22545 (LHD_HOOKS_STATICP): Ditto
22546 * tree.h (gcc_assert_lowered): New macro.
22547
d97e22fb 225482007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
22549
22550 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
22551 argument "reliable".
22552 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
22553 Add argument "reliable". Propagate it through calls.
48dc2227 22554 (infer_loop_bounds_from_undefined): Derive number of iterations
d97e22fb 22555 estimates from references in blocks that do not dominate loop latch.
22556 (gcov_type_to_double_int): New function.
22557 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
22558 and expected_loop_iterations_unbounded.
22559 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
22560 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
22561 * tree-data-ref.c (estimated_loop_iterations): Export.
22562 (get_references_in_stmt): Fix -- do not return addresses of local
22563 objects.
22564 * cfgloop.h (expected_loop_iterations_unbounded,
22565 estimated_loop_iterations): Declare.
22566
fe0b46c1 225672007-04-06 Andreas Tobler <a.tobler@schweiz.org>
22568
22569 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
22570
9926a1b3 225712007-04-06 Uros Bizjak <ubizjak@gmail.com>
22572
22573 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
22574 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
22575 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
22576 Use output_387_reg_move().
22577 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
22578 expander using X87MODEF12 mode macro.
22579 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
22580 choosing register preferences. Use output_387_reg_move().
22581 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
22582 instead of "x". Use output_387_reg_move().
22583 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
22584 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
22585 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
22586 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
22587 Use output_387_reg_move().
22588 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
22589 mode macro.
22590 (*truncxf?f_i387 splitter): Ditto.
22591
b140c9fd 225922007-04-06 Daniel Berlin <dberlin@dberlin.org>
22593
22594 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
22595 LANG_HOOKS_SAFE_FROM_P.
22596 * expr.c (safe_from_p): Remove langhook call.
22597 * langhooks.h (lang_hooks): Remove safe_from_p.
22598 (lhd_safe_from_p): Remove prototype.
22599 * langhooks.c (lhd_safe_from_p): Remove.
ed01e173 22600
316ef6d8 226012007-04-06 Jan Hubicka <jh@suse.cz>
22602
22603 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
22604 functions.
22605
4c756287 226062007-04-06 Uros Bizjak <ubizjak@gmail.com>
22607
22608 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
22609 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
22610 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
22611 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
22612 alternative.
22613 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
22614 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
22615
32a8f747 226162007-04-05 Richard Henderson <rth@redhat.com>
22617
22618 * config/alpha/alpha.c (print_operand) [+]: Remove.
22619 (alpha_end_function): Print nop if call at end of function.
22620 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
22621 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
22622 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
22623 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
22624 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
22625 the call pattern. Update peepholes to match.
22626
004e23c4 226272007-04-05 Janis Johnson <janis187@us.ibm.com>
22628
22629 * doc/extend.texi (Other Builtins): Add decimal float variants
22630 of signbit.
22631 * builtins.def: Ditto.
22632 * builtins.c (expand_builtin): Ditto.
22633
70169283 226342007-04-05 Uros Bizjak <ubizjak@gmail.com>
22635 H.J. Lu <hongjiu.lu@intel.com>
22636
22637 PR target/31478
22638 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
22639 of V8HImode when calling ix86_binary_operator_ok.
22640 (sse2_pmaddwd): Call ix86_binary_operator_ok.
22641 (sdot_prodv8hi): Operands 1 and 2 must be register.
22642
f3e8be3e 226432007-04-05 Alexandre Oliva <aoliva@redhat.com>
22644
22645 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
22646 initialize align to silence bogus warning.
22647
2e4b8bcd 226482007-04-05 Alexandre Oliva <aoliva@redhat.com>
22649
22650 PR middle-end/22156
22651 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
22652 all_no_warning.
22653 (struct sra_walk_fns): Remove use_all parameter from use.
22654 (sra_hash_tree): Handle BIT_FIELD_REFs.
22655 (sra_elt_hash): Don't hash bitfld blocks.
22656 (sra_elt_eq): Skip them in parent compares as well. Handle
22657 BIT_FIELD_REFs.
22658 (sra_walk_expr): Don't maintain or pass down use_all_p.
22659 (scan_use): Remove use_all parameter.
22660 (scalarize_use): Likewise. Re-expand assignment to
22661 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
22662 output, and re-scalarize after output. Don't mark anything
22663 for no warning.
22664 (scalarize_ldst): Adjust.
22665 (scalarize_walk_gimple_modify_statement): Likewise.
22666 (build_element_name_1): Handle BIT_FIELD_REFs.
22667 (instantiate_element): Don't warn for any element whose parent
22668 is used as a whole.
22669 (instantiate_missing_elements_1): Return the sra_elt.
22670 (canon_type_for_field): New.
22671 (try_instantiate_multiple_fields): New.
22672 (instantiate_missing_elemnts): Use them.
22673 (mark_no_warning): Removed.
22674 (generate_one_element_ref): Handle BIT_FIELD_REFs.
22675 (REPLDUP, sra_build_elt_assignment): New.
22676 (generate_copy_inout): Use them.
22677 (generate_element_copy): Likewise. Handle bitfld differences.
22678 (generate_element_zero): Don't recurse for blocks. Use
22679 sra_build_elt_assignment.
22680 (generate_one_element_int): Take elt instead of var. Use
22681 sra_build_elt_assignment.
22682 (generate_element_init_1): Adjust.
22683 (scalarize_use, scalarize_copy): Use REPLDUP.
22684 (scalarize_ldst): Move assert before dereference.
22685 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
22686
2a515194 226872007-04-05 Steven Bosscher <steven@gcc.gnu.org>
22688
22689 * regmove.c: Fix unused variable warnings due to previous commit.
22690
f9f428c6 226912007-04-05 Steven Bosscher <steven@gcc.gnu.org>
22692
22693 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
22694 (regmove_bb_head): Remove.
22695 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
22696 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
22697 problems with fixup_match_1.
22698 Don't initialize/free regmove_bb_head.
22699
22700 (reg_is_remote_constant_p): If an insn is in the same basic block
22701 but not before INSN, consider it remote, too.
22702
0d528483 227032007-04-05 Anatoly Sokolov <aesok@post.ru>
22704
22705 PR target/25448
ed01e173 22706 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
0d528483 22707 DECL_ASSEMBLER_NAME, not the DECL_NAME.
22708
9f525417 227092007-04-05 H.J. Lu <hongjiu.lu@intel.com>
22710
22711 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
22712 (CONDITIONAL_REGISTER_USAGE): Likewise.
22713
de13ca97 227142007-04-04 Richard Henderson <rth@redhat.com>
22715
22716 * config/alpha/lib1funcs.asm: Remove unused file.
22717
7fbbfa9f 227182007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
22719
22720 PR other/31356
22721 * opts.c (print_specific_help): Fix --help=<language>
22722 header line.
22723 (common_handle_option): Support --help=common.
22724
4b70b183 227252007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
22726
22727 PR other/31353
22728 * gcc.c (main): Do not run the linker if
22729 print_subprocess_help indicates that it shouldn't be
22730 run.
22731
a1d3fae9 227322007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
22733
22734 PR doc/31355
22735 * doc/invoke.texi (--help=): Document <languages> value, fix
22736 formatting in tables of values.
22737
f5b1f90b 227382007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
22739
22740 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
22741 dllimport attribute of virtual methods.
22742
0875e592 227432007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
22744
e865d428 22745 * config/score/crti.asm: Change _bss_start to __bss_start.
22746 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
22747 (OUTGOING_REG_PARM_STACK_SPACE) update.
22748 * config/score/score.opt: add options to make backend support
22749 score5, score5u, score7 and score7d.
22750 * config/score/score.md: Likewise.
22751 * config/score/misc.md: Likewise.
22752 * config/score/mac.md: Likewise.
22753 * doc/invoke.texi: Likewise.
22754 * doc/md.texi: update constraints define.
0875e592 22755
a4521f7e 227562007-04-03 Richard Henderson <rth@redhat.com>
22757
22758 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
22759 an appropriate type, use the mode instead.
22760
223f6dbc 227612007-04-03 Richard Sandiford <richard@codesourcery.com>
22762
22763 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
22764 Set the default --with-arch setting to mips2.
22765 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
22766 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
22767 (MULTILIB_OSDIRNAMES): Delete.
22768 (MULTILIB_DIRNAMES): Define.
22769 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
22770 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
22771 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
22772 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
22773 VXWORKS_OS_CPP_BUILTINS.
22774 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
22775 (MIPS_DEBUGGING_INFO): Undefine.
22776 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
22777
f83924bb 227782007-04-03 Jakub Jelinek <jakub@redhat.com>
22779
22780 PR middle-end/30704
22781 * fold-const.c (native_encode_real): Encode real.c provided longs
22782 as a series of 32-bit native integers.
22783 (native_interpret_real): Interpret buffer as a series of 32-bit
22784 native integers.
22785
b0ecf094 227862007-04-03 Richard Guenther <rguenther@suse.de>
22787
22788 * genpreds.c (write_insn_constraint_len): Write function
22789 optimized for CONSTRAINT_LEN implementation.
22790 (write_tm_preds_h): Output insn_constraint_len inline and
22791 use it for CONSTRAINT_LEN.
22792 (write_insn_preds_c): Don't output insn_constraint_len.
22793 * doc/md.texi (define_register_constraint): Document multi-letter
22794 constraints shall have the same length if they start with the same
22795 letter.
22796
79959616 227972007-04-03 Uros Bizjak <ubizjak@gmail.com>
22798
22799 PR target/31175
22800 * config/i386/i386.md (isinf<mode>2): Expand only when
22801 TARGET_C99_FUNCTIONS is set.
22802
6d057ce8 228032007-04-03 Uros Bizjak <ubizjak@gmail.com>
22804
22805 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
22806 (x86_64-*-linux*): Ditto.
22807 * config/i386/i386.opt (mpc): New option.
22808 * config/i386/i386.c (overrride_options): Handle
22809 ix87_precision_string.
22810 * config/i386/crtprec.c: New file.
22811 * config/i386/t-crtpc: Ditto.
22812 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
22813 and -mpc80 options.
22814 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
22815 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
22816 crtprec32.o, crtprec64.o and crtprec80.o.
22817
22818 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
22819 and -mpc80 options.
22820 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
22821
924dc384 228222007-04-02 Eric Christopher <echristo@apple.com>
22823
22824 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
22825 limitations on darwin.
22826
ba92127f 228272007-04-02 Anatoly Sokolov <aesok@post.ru>
22828
22829 PR target/31137
22830 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
22831
8995c1df 228322007-04-02 Dave Korn <dave.korn@artimi.com>
22833
bda7c187 22834 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
924dc384 22835
ac7d39a1 228362007-04-02 Dave Korn <dave.korn@artimi.com>
22837
bda7c187 22838 * libgcc2.h (exception_descriptor): Don't forward-declare.
22839 (__get_eh_table_language, __get_eh_table_version): Delete
ac7d39a1 22840 prototypes of long-dead functions.
22841
bcb0e3ff 228422007-04-01 Daniel Berlin <dberlin@dberlin.org>
22843
22844 * ebitmap.h: New file
22845 * ebitmap.c: New file
22846 * Makefile.in (ebitmap.o): New target.
22847
4486418e 228482007-04-01 Jan Hubicka <jh@suse.cz>
22849
22850 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
22851 before very first instruction.
22852
228532007-04-01 Jan Hubicka <jh@suse.cz>
22854
22855 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
22856 waring on 64bit hosts.
22857 * bitmap.h: Fix typo in bitmap_head_def.
22858
6ca330f8 228592007-04-01 Steven Bosscher <steven@gcc.gnu.org>
22860
22861 PR rtl-optimization/31391
22862 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
22863 into a DELETED_LABEL note, and the label is in an empty basic
22864 block, update BB_END as well as BB_HEAD.
22865
6291249b 228662007-04-01 Richard Henderson <rth@redhat.com>
22867
22868 PR tree-optimization/31169
22869 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
22870 to varying if the range is outside [0, prec-1].
22871
34a43822 228722007-04-01 Richard Sandiford <richard@codesourcery.com>
22873
22874 PR target/31388
22875 * config/mips/mips.md (load_const_gp): New insn.
22876 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
22877 the MIPS16 GP pseudo register if no_new_pseudos.
22878 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
22879
0eafba8d 228802007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
22881
22882 PR target/31364
22883 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
22884 secureplt.
22885 (call_value): Likewise.
22886
42cef9df 228872007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
6d057ce8 22888 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
42cef9df 22889
22890 PR 14737
22891 * doc/invoke.texi: (optimization options): Reword description
22892 of -ffast-math. Document its primary purpose.
924dc384 22893
e3022db7 228942007-03-31 Richard Guenther <rguenther@suse.de>
22895
22896 * omp-low.c (splay-tree.h): Include.
22897 (lookup_decl): Replace splay-tree usage by pointer-map.
22898 (maybe_lookup_decl): Likewise.
22899 (new_omp_context): Likewise.
22900 (delete_omp_context): Likewise.
22901 * gimplify.c (splay-tree.h): Include.
22902 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
22903 pointer-map.
22904 (remap_ssa_name): Likewise.
22905 (remap_decl): Likewise.
22906 (remap_type_1): Likewise.
22907 (remap_type): Likewise.
22908 (copy_body_r): Likewise.
22909 (expand_call_inline): Likewise.
22910 (clone_body): Likewise.
22911 (copy_tree_r): Likewise.
22912 (remap_save_expr): Likewise.
22913 (unsave_r): Likewise.
22914 (unsave_expr_now): Likewise.
22915 (tree_function_versioning): Likewise.
22916 (build_duplicate_type): Likewise.
22917 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
22918 (struct copy_body_data): Replace splay-tree by pointer-map.
22919 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
22920 not $(SPLAY_TREE_H).
22921 (gimplify.o): Depend on $(SPLAY_TREE_H).
22922 (omp-low.p): Likewise.
22923
db54c785 229242007-03-31 Anatoly Sokolov <aesok@post.ru>
22925
924dc384 22926 * config/avr/predicates.md (even_register_operand,
db54c785 22927 odd_register_operand): New predicates.
22928 * config/avr/avr.md (movw peephole2): New.
22929 (movw_r peephole2): New.
22930
81e897e4 229312007-03-30 Rafael Avila de Espindola <espindola@google.com>
22932
22933 * tree.h (get_signed_or_unsigned_type): New.
22934 * fold-const.c (operand_equal_for_comparison_p): Use
22935 get_signed_or_unsigned_type instead of
22936 lang_hooks.types.signed_or_unsigned_type.
22937 * expr.c (store_expr): Ditto.
22938 * langhooks.c (get_signed_or_unsigned_type): New.
22939 (lhd_signed_or_unsigned_type): New.
22940 * langhooks.h (lhd_signed_or_unsigned_type): New.
22941 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
22942
0bbe9142 229432007-03-30 Richard Henderson <rth@redhat.com>
22944
22945 * tree-ssa-loop-ivopts.c: Include target.h.
22946 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
22947 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
22948 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
22949 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
22950
229512007-03-30 Richard Henderson <rth@redhat.com>
22952 Kai Tietz <kai.tietz@onevision.com>
22953
22954 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
22955 default for 64-bit.
22956 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
22957 (TARGET_64BIT_MS_ABI): New.
22958 (DBX_REGISTER_NUMBER): Handle 64-bit.
22959 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
22960 (LONG_TYPE_SIZE): Force to 32.
22961 (REG_PARM_STACK_SPACE): New.
22962 (OUTGOING_REG_PARM_STACK_SPACE): New.
22963 (REGPARM_MAX, SSE_REGPARM_MAX): New.
22964 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
22965 (STACK_BOUNDARY): Use 128 for 64-bit.
22966 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
22967 Add 64-bit implementation.
22968 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
22969 argument unused.
22970 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
22971 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
22972 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
22973 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
22974 (ix86_handle_cconv_attribute): Don't warn when ignoring if
22975 TARGET_64BIT_MS_ABI.
22976 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
22977 (ix86_pass_by_reference): Likewise.
22978 (ix86_function_value_regno_p): Likewise.
22979 (ix86_build_builtin_va_list): Likewise.
22980 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
22981 (function_arg_advance_ms_64): New.
22982 (function_arg_advance): Call it.
22983 (function_arg_ms_64): New.
22984 (function_arg): Call it.
22985 (function_value_ms_64): New.
22986 (ix86_function_value_1): Call it.
22987 (return_in_memory_ms_64): New.
22988 (ix86_return_in_memory): Call it.
22989 (setup_incoming_varargs_ms_64): New.
22990 (ix86_setup_incoming_varargs): Call it.
22991 (ix86_expand_prologue): Handle 64-bit stack probing.
22992 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
22993 (output_pic_addr_const): Likewise.
22994 (x86_this_parameter): Likewise.
22995 (x86_output_mi_thunk): Likewise.
22996 (x86_function_profiler): Likewise.
22997 (TARGET_STRICT_ARGUMENT_NAMING): New.
22998 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
22999 (TARGET_64BIT_MS_ABI): New.
23000 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
23001 * config/i386/i386.md (allocate_stack_worker): Remove.
23002 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
23003 describe the clobber of eax without a match_scratch.
23004 (allocate_stack_worker_postreload): Remove.
23005 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
23006 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
23007 (allocate_stack_worker_rex64_postreload): Remove.
23008 (allocate_stack): Handle 64-bit.
23009 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
23010 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
23011 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
23012 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
23013 (STANDARD_STARTFILE_PREFIX_1): Likewise.
23014 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
23015 * config.build (x86_64-*-mingw*): New host.
23016 * config.host (x86_64-*-mingw*): New host.
23017 * config.gcc (x86_64-*-mingw*): New target.
23018 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
23019
3fa3949d 230202007-03-30 Richard Henderson <rth@redhat.com>
23021 Kai Tietz <kai.tietz@onevision.com>
23022
23023 * c-pragma.c (struct def_pragma_macro_value): New.
23024 (struct def_pragma_macro): New.
23025 (pushed_macro_table): New.
23026 (dpm_hash, dpm_eq): New.
23027 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
23028 (init_pragma): Install them.
23029 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
23030
6e9e3dbe 230312007-03-30 Anatoly Sokolov <aesok@post.ru>
23032
924dc384 23033 * config/avr/avr.c (avr_override_options): Clear
6e9e3dbe 23034 'flag_delete_null_pointer_checks'.
23035
481451eb 230362007-03-30 Paolo Carlini <pcarlini@suse.de>
23037
23038 PR c++/26099
23039 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
23040 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
23041 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
23042 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
23043 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
23044 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
23045 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
23046 C++ extensions.
23047 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
23048
e1caca42 230492007-03-30 Steven Bosscher <steven@gcc.gnu.org>
23050
23051 * regmove.c: Move all of pass_stack_adjustments from here...
23052 * combine-stack-adj.c: ...to this new file.
23053 * Makefile.in: Add rules for combine-stack-adj.o.
23054
de33470d 230552007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
23056
23057 PR tree-optimization/31383
ed69c853 23058 * tree-data-ref.c (affine_function_equal_p): Do not require the
23059 vectors to have the same length.
de33470d 23060
5615be0f 230612007-03-30 Jan Hubicka <jh@suse.cz>
23062
b2e3c5f9 23063 PR middle-end/30700
924dc384 23064 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
5615be0f 23065 availablility; add more sanity checking; ask varpool only about
23066 VAR_DECL.
23067
9c0794a1 230682007-03-29 Richard Henderson <rth@redhat.com>
23069
23070 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
23071 to decide, but __SIZEOF_LONG_LONG__.
23072
bedbe58b 230732007-03-29 Richard Henderson <rth@redhat.com>
23074
23075 * emutls.c (struct __emutls_array): New.
23076 (emutls_destroy): Use it instead of casting element 0 from void*.
23077 (__emutls_get_address): Likewise.
23078
dd1a226e 230792007-03-29 Richard Henderson <rth@redhat.com>
23080
23081 * varasm.c (initializer_constant_valid_p): Don't deny
23082 DECL_DLLIMPORT_P on functions.
23083
23084 * config/i386/cygming.h: Remove function declarations.
23085 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
23086 (ASM_OUTPUT_LABELREF): Remove.
23087 (COMMON_ASM_OP): Remove.
23088 (ASM_OUTPUT_COMMON): Remove.
23089 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23090 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
23091 (ASM_DECLARE_FUNCTION_NAME): Likewise.
23092 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
23093 Rename from TARGET_ENCODE_SECTION_INFO.
23094 * config/i386/netware.h: Likewise.
23095 * config/i386/i386-protos.h: Update.
23096 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
23097 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
23098 (legitimate_constant_p): Reject dllimports.
23099 (dllimport_map, get_dllimport_decl): New.
23100 (legitimize_dllimport_symbol): New.
23101 (legitimize_address, ix86_expand_move): Use it.
23102 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
23103 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
23104 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
23105 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
23106 * config/i386/predicates.md (constant_call_address_operand): Only
23107 accept symbols; reject dllimport_p symbols.
23108 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
23109 i386_pe_maybe_record_exported_symbol.
23110 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
23111 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
23112 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
23113 trust the setting of DECL_DLLIMPORT_P.
23114 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
23115 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
23116 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
23117 tidy the argument scanning loop.
23118 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
23119 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
23120 (i386_pe_strip_name_encoding): Remove.
23121 (i386_pe_binds_local_p): New.
23122 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
23123 (i386_pe_output_labelref): Remove.
23124 (i386_pe_asm_output_aligned_decl_common): New.
23125 (i386_pe_maybe_record_exported_symbol): Rename from
23126 i386_pe_record_exported_symbol; check for dllexported symbols.
23127
409f9175 231282007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
23129
23130 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
23131 add comment explaining why vsnprintf cannot be used.
23132
a024c245 231332007-03-29 Douglas Gregor <doug.gregor@gmail.com>
23134
23135 PR tree-optimization/30666
23136 * tree.c (build_complex_type): When creating type names for DWARF2
23137 debug info, create TYPE_DECLs for TYPE_NAME instead of
23138 IDENTIFIER_NODEs.
23139 (build_common_tree_nodes_2): Use build_complex_type when building
23140 predefined complex types, to preserve canonical types.
23141
ba45c933 231422007-03-29 Steven Bosscher <steven@gcc.gnu.org>
23143
23144 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
23145 (noce_get_alt_condition): Look at it to determine whether to
23146 reverse the condition or not.
23147 (noce_get_condition): Substitute the truth for lies.
23148 (noce_find_if_block): Set the then_else_reversed field.
23149
5e8ebe59 231502007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
23151
23152 * config/fr30/fr30.md (movdi): Do not accept immediates as the
23153 destination of this insn.
23154 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
23155 than calling gen_rtx_SET directly. Use r0 to hold the value of
23156 'address + 4' rather than a stack based temporary which can be
23157 mis-optimized away.
924dc384 23158
328d5423 231592007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
23160
23161 * config/s390/s390.c (s390_secondary_input_reload_class,
23162 s390_secondary_output_reload_class): Functions removed.
23163 (s390_secondary_reload): New function.
23164 (TARGET_SECONDARY_RELOAD): Target macro defined.
23165 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
23166 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
23167 * config/s390/s390.md ("reload_outti", "reload_outdi",
23168 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
23169 "reload_out<mode>"): Expanders removed.
23170 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
23171 "reload<mode>_nonoffmem_out"): Expanders added.
23172
fc7c3aae 231732007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
23174
ed69c853 23175 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
23176 action if SRC->DEST replacement failed anyway.
fc7c3aae 23177
f3e0a067 231782007-03-28 Mike Stump <mrs@apple.com>
23179
23180 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
23181 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
a8654287 23182 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
f3e0a067 23183
d80b6b7d 231842007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
23185
23186 * config.gcc: Accept barcelona as a variant of amdfam10.
23187 * config/i386/i386.c (override_options): Likewise.
23188 * doc/invoke.texi: Likewise.
924dc384 23189
74aab153 231902007-03-28 Eric Botcazou <ebotcazou@adacore.com>
23191
23192 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
23193 offsets for BIT_FIELD_REF and COMPONENT_REF.
23194
dc6fafc6 231952007-03-28 Richard Guenther <rguenther@suse.de>
23196
23197 * tree.c (is_global_var): Move ...
23198 * tree-flow-inline.h (is_global_var): ... here.
23199 * tree.h (is_global_var): Remove declaration.
23200
58c9a086 232012007-03-28 Uros Bizjak <ubizjak@gmail.com>
23202
23203 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
23204 option.
23205 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
23206 * config/i386/i386.c (ix86_tune_features): Initialize new
23207 tuning option.
23208 * config/i386/predicates.md (promotable_binary_operator): Use
23209 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
23210
41b0d74f 232112007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
23212
23213 PR target/31380
23214 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
23215
0c570b19 232162007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
95175695 23217
23218 * config/fr30/fr30.md (movsi_internal): Change destination
924dc384 23219 constraint from m to V and add m to the end.
95175695 23220
4a98dc74 232212007-03-28 Christian Bruel <christian.bruel@st.com>
23222
23223 * config/sh/sh.md (movsi_i): Fix type attribute.
23224
0c570b19 232252007-03-28 Christian Bruel <christian.bruel@st.com>
e661b951 23226
23227 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
23228 (movsf_ie): Likewise.
23229
99b0f6d9 232302007-03-28 Christian Bruel <christian.bruel@st.com>
23231
23232 * config.gcc: Add sh4-300 to multilib.
23233 * config/sh/t-mlib-sh4-300: New file.
23234
37e3ac7e 232352007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
23236
23237 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
23238 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
23239 fix_trunc<mode>di2.
924dc384 23240 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
37e3ac7e 23241 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
23242 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
23243 "fixuns_trunctddi2"): Whitespace fix.
23244
f328f118 232452007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
23246
23247 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
23248 the definition of struct sh_args.
23249 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
23250 CALL_COOKIE_INT_REG_GET): Likewise.
23251
0fffdebc 232522007-03-28 Steven Bosscher <steven@gcc.gnu.org>
23253
23254 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
23255 transformations are applied successfully.
23256
5ca99950 232572007-03-27 Douglas Gregor <doug.gregor@gmail.com>
23258
23259 * tree.c (tree_contains_struct): Permit 512 tree codes.
23260 * tree.h (tree_contains_struct): Ditto.
23261 (MAX_TREE_CODES): Ditto.
23262 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
23263 SPARE member to store remaining padding bits.
23264
097373ae 232652007-03-27 Anatoly Sokolov <aesok@post.ru>
23266
924dc384 23267 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
097373ae 23268 architecture.
23269
ca0d2b55 232702007-03-27 Janis Johnson <janis187@us.ibm.com>
23271
88f38265 23272 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
23273 * configure: Regenerate.
23274
ca0d2b55 23275 * configure: Regenerate using the correct version of autoconf.
23276
232772007-03-27 Anatoly Sokolov <aesok@post.ru>
dc39da57 23278
23279 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
23280 pointer regs.
23281 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
23282 regs to "__SP_L__" and "__SP_H__".
23283
209f25b9 232842007-03-27 Richard Guenther <rguenther@suse.de>
23285
23286 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
924dc384 23287 computations with it with a HOST_WIDE_INT variable.
209f25b9 23288
45ccdeb8 232892007-03-26 Mike Stump <mrs@apple.com>
23290
23291 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
23292 objective-c-header, objective-c++-header and objc++-cpp-output
23293 support.
23294 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
23295
1a510660 232962007-03-26 Richard Henderson <rth@redhat.com>
23297
58c9a086 23298 PR target/31361
23299 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
23300 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
23301 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
23302 IX86_BUILTIN_PSRLQ128): New.
23303 (ix86_init_mmx_sse_builtins): Add them.
23304 (ix86_expand_builtin): Expand them.
23305 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
23306 operand 2 be TImode.
23307 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
23308 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
23309 _mm_srli_epi64): Mark __B const.
23310 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
23311 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
924dc384 23312 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
58c9a086 23313 new two-vector shift builtins.
1a510660 23314
c68b42d2 233152007-03-26 Ian Lance Taylor <iant@google.com>
23316
23317 PR tree-optimization/31345
23318 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
23319 [+INF, +INF(OVF)] into VARYING.
23320
f8be92ce 233212007-03-26 Zack Weinberg <zackw@panix.com>
23322
1e837561 23323 * gengtype-parse.c: New file.
23324 * gengtype-yacc.y: Delete.
23325 * gengtype-lex.l: Don't include gengtype-yacc.h.
23326 Define YY_DECL and yyterminate appropriately for recursive
23327 descent parser. yylval is now a string out-parameter to yylex.
23328 (HWS, EOID): New shorthand.
23329 (IWORD): Add a couple more types.
23330 (yylex): Add a setup stanza. Remove the complex rules for
23331 detecting GTY'ed types and typedefs; replace with simple
23332 keyword detectors. Adjust everything for the changed
23333 definition of yylval. Ignore all pp-directives, not just #define.
23334 (yyerror): Delete.
23335 (parse_file): Rename yybegin; do not call yyparse.
23336 (yyend): New.
23337 * gengtype.c (xasprintf): Export again.
23338 (this_file): New. Use everywhere __FILE__ was being used.
23339 (get_lang_bitmap): Special case types defined in gengtype.c.
23340 (do_typedef, new_structure): Suppress definition of certain types.
23341 (new_structure): Improve diagnostics of duplicate definitions.
23342 Make sure location_s is associated with input.h.
23343 (nreverse_pairs, define_location_structures): New functions.
23344 (main): Improve tagging of kludge types. Remove old kludges
23345 for input.h types; use define_location_structures.
23346 * gengtype.h: Update prototypes. Define token codes here.
23347 * Makefile.in: Remove all references to gengtype-yacc.
23348 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
23349 and gengtype.
23350 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
23351 add GTY((skip)) to the field that's only conditionally there.
23352 * doc/install.texi: Document that Bison is no longer required
23353 unless building treelang.
23354
570af75a 23355 * gengtype.c: Don't include gtyp-gen.h.
23356 (srcdir): Declare here.
23357 (base_files, lang_dir_names): Allocate dynamically.
23358 (gt_files, num_gt_files, num_lang_dirs): New globals.
23359 (measure_input_list, read_input_line, read_input_list)
23360 (set_lang_bitmap): New functions.
23361 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
23362 simplify, relying on read_input_list to set up the bitmaps.
23363 (main): Arguments are no longer unused. Check for correct number
23364 of command line arguments, set srcdir and srcdir_len, then call
23365 read_input_list, before doing anything else. No need to worry
23366 about duplicates in main loop.
23367 * configure.ac: Simplify the calculation of all_gtfiles.
23368 Put language tags in there. Don't set or substitute
23369 all_gtfiles_files_langs or all_gtfiles_files_frags.
23370 * Makefile.in: Revamp the way gengtype is invoked, now that it
23371 takes a file on its command line with a much simpler format.
23372 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
23373 (GTFILES): Remove duplicates and C source files.
23374 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
23375 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
23376 * configure: Regenerate.
23377
4097676c 23378 * gengtype.h: Remove all type definitions to gengtype.c; leave
23379 only definitions of options_p, type_p, and pair_p as opaque
23380 pointers. Update prototypes.
23381 * gengtype.c: Many type definitions moved here from gengtype.h.
23382 Consolidate type definitions at the top of the file.
23383 (xvasprintf): Delete.
23384 (xasprintf): Make static.
23385 (create_nested_pointer_option): Add 'next' parameter.
23386 (create_field_all, create_field_at): New functions.
23387 (create_field): Now a thin wrapper around create_field_all.
23388 (create_optional_field): Rename create_optional_field_ and add
23389 line argument. Original name is now a macro which supplies
23390 __LINE__.
23391 (oprintf): Use vsnprintf directly.
23392 (close_output_files): Use fatal rather than perror/exit.
23393 (note_def_vec, note_def_vec_alloc): Use create_field_at.
23394 (main): Set progname. Don't use exit.
23395 * gengtype-yacc.y (struct_fields): Use create_field_at.
23396 (option, optionseqopt): Delete.
23397 (optionseq): Consolidate productions from option here so we
23398 can use the first argument to create_option.
23399
6fee8f02 23400 * gengtype-lex.l: Distinguish unions from structures in the
23401 token type. Don't call find_structure; return the tag as a string.
ed69c853 23402 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
23403 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
23404 string. Reorganize typedef_struct production accordingly.
6fee8f02 23405 Use create_nested_ptr_option.
23406 * gengtype.c (create_nested_ptr_option): New function.
23407 * gengtype.h: Declare it.
23408
80da8e25 23409 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
23410 (string_type): Don't declare.
23411 (do_scalar_typedef): Declare.
23412 (create_scalar_type): Update prototype.
23413 * gengtype.c (string_type): Make static.
23414 (scalar_nonchar, scalar_char): New.
23415 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
23416 (resolve_typedef): Use scalar_nonchar for error recovery.
23417 (create_scalar_type): Remove name_len field. Return scalar_char
23418 or scalar_nonchar as appropriate.
23419 (adjust_field_type): Look at scalar_is_char boolean to decide whether
23420 to use string_type.
ed69c853 23421 (throughout): Use scalar_nonchar instead of calling
23422 create_scalar_type, whenever possible.
80da8e25 23423 (main): Initialize scalar_char and scalar_nonchar before calling
23424 gen_rtx_next.
23425 * gengtype-lex.l: Adjust for removal of second argument to
23426 create_scalar_type. Use yylval.s instead of yylval.t when
23427 returning SCALAR.
23428 * gengtype-yacc.y: Type of SCALAR is string. Call
23429 create_scalar_type from type:SCALAR rule. Adjust for removal of
23430 second argument to create_scalar_type.
23431
696e7773 23432 * vec.h: Remove all #if IN_GENGTYPE blocks.
23433 Add comment saying that changes may require adjustments to gengtype.
23434 * gengtype.c: Don't include coretypes.h or tm.h.
23435 Add comment to inclusion of errors.h.
23436 (note_def_vec, note_def_vec_alloc): New functions.
23437 * gengtype.h: Declare new functions.
23438 * gengtype-lex.l: Don't include coretypes.h.
23439 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
23440 Delete.
23441 (update_lineno): Remove unnecessary prototype.
23442 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
23443 (VEC rule): Just return VEC_TOKEN.
23444 * gengtype-yacc.y (VEC_TOKEN): New token type.
23445 (type): Add a production for VEC(a,b).
23446 * Makefile.in: Update dependencies.
23447
892ddc0b 23448 * gengtype-lex.l: Remove rules for parsing pointer-to-function
23449 typedefs that use the old PARAMS macro.
23450
f8be92ce 23451 * gengtype-lex.l: Remove all rules and states relating to yacc
23452 input files.
23453 * gengtype-yacc.y: Similarly.
23454 * gengtype.c (note_yacc_type): Delete function.
23455 * gengtype.h: Update prototypes.
23456
e4e0b898 234572007-03-26 Joseph Myers <joseph@codesourcery.com>
23458
23459 * tree-pretty-print.c (dump_generic_node): Report precision of
23460 unnamed integer types.
23461
03dbd7cc 234622007-03-26 Steven Bosscher <steven@gcc.gnu.org>
23463
23464 * ifcvt.c (noce_try_store_flag_constants): Don't check
23465 no_new_pseudos here.
23466 (noce_try_store_flag_constants): Don't check no_new_pseudos.
23467 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
23468 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
23469 noce_try_sign_mask): Likewise.
23470 (if_convert): Check no_new_pseudos here.
23471
23472 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
23473 Remove prototypes.
23474 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
23475 (noce_get_condition): Handle new then_else_reversed argument.
23476 (noce_init_if_info): Remove, fold into noce_find_if_block.
23477 (noce_process_if_block): Take a struct noce_if_info as the
23478 argument. Don't set up one based on ce_if_info. Update pointer
23479 references accordingly.
23480 (cond_move_process_if_block): Likewise.
23481 (process_if_block): Removed.
23482 (find_if_block): Removed. Move functionality two new functions,
23483 noce_find_if_block and cond_exec_find_if_block.
23484 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
23485 blocks and the symmetric IF-ELSE-JOIN case.
23486 (cond_exec_find_if_block): Also new function mostly based on old
23487 find_if_block and process_if_block.
23488 (find_if_header): Replace find_if_block call with separately
23489 guarded calls to noce_find_if_block and cond_exec_find_if_block.
23490 (find_cond_trap): Update noce_get_condition call.
23491 (dead_or_predicable): Likewise.
23492
211d5b9a 234932007-03-26 Jakub Jelinek <jakub@redhat.com>
23494
23495 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
23496 Remove.
23497 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
23498 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
23499 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
23500 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
58c9a086 23501 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
211d5b9a 23502 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
23503 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
23504 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
23505 __builtin_ia32_psrad128 builtins.
23506
4e9abdcc 235072007-03-26 Uros Bizjak <ubizjak@gmail.com>
23508
23509 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
23510 * config/i386/constraints.md
23511 (define_constraint "I"): Use IN_RANGE macro.
23512 (define_constraint "J"): Ditto.
23513 (define_constraint "K"): Ditto.
23514 (define_constraint "M"): Ditto.
23515 (define_constraint "N"): Ditto.
23516 (define_constraint "O"): Ditto.
23517 * config/i386/predicates.md
23518 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
23519 (define_predicate "const_0_to_3_operand"): Ditto.
23520 (define_predicate "const_0_to_7_operand"): Ditto.
23521 (define_predicate "const_0_to_15_operand"): Ditto.
23522 (define_predicate "const_0_to_63_operand"): Ditto.
23523 (define_predicate "const_0_to_255_operand"): Ditto.
23524 (define_predicate "const_1_to_31_operand"): Ditto.
23525 (define_predicate "const_2_to_3_operand"): Ditto.
23526 (define_predicate "const_4_to_7_operand"): Ditto.
23527
87ba92a7 235282007-03-25 David Edelsohn <edelsohn@gnu.org>
23529
23530 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
23531 in SImode for save_world.
23532 * config/rs6000/altivec.md (save_world, restore_world): Convert to
23533 LR hard reg.
23534
3cbad267 235352007-03-25 Dorit Nuzman <dorit@il.ibm.com>
23536
23537 PR tree-optimization/30784
23538 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
23539 BIT_FIELD_REF.
23540
73772494 235412007-03-25 Revital Eres <eres@il.ibm.com>
23542
f8be92ce 23543 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
23544 Fold movement_possibility function into it.
73772494 23545
327202e2 235462007-03-25 David Edelsohn <edelsohn@gnu.org>
23547
23548 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
23549 (load_macho_picbase_{si,di}): Convert to LR hard reg.
23550 (call_indirect_nonlocal_darwin64): Same.
23551 (call_nonlocal_darwin64): Same.
23552 (call_value_indirect_nonlocal_darwin64): Same.
23553 (call_value_nonlocal_darwin64): Same.
23554 (sibcall_nonlocal_darwin64): Same.
23555 (sibcall_value_nonlocal_darwin64): Same.
23556 (sibcall_symbolic_64): Same.
23557 (sibcall_value_symbolic_64): Same.
23558 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
23559 LR pseudo.
23560 (rs6000_emit_load_toc_table): Same.
23561 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
23562 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
23563 (mull_call): Same.
23564 (divss_call): Same.
23565 (divus_call): Same.
23566 (quoss_call): Same.
23567 (quous_call): Same.
23568 (load_toc_v4_pic_si): Same
23569 (load_toc_v4_PIC_1): Same.
23570 (load_toc_v4_PIC_1b): Same.
23571 (call_indirect_aix{32,64}): Same.
23572 (call_value_indirect_aix{32,64}): Same.
23573 (call): Same.
23574 (call_value): Same.
23575 (call_local{32,64}): Same.
23576 (call_value_local{32,64}): Same.
23577 (call_indirect_nonlocal_aix{32,64}): Same.
23578 (call_nonlocal_aix{32,64}): Same.
23579 (call_value_indirect_nonlocal_aix{32,64}): Same.
23580 (call_value_nonlocal_aix{32,64}): Same.
23581 (call_indirect_nonlocal_sysv<mode>): Same.
23582 (call_nonlocal_sysv<mode>): Same.
23583 (call_value_indirect_nonlocal_sysv<mode>): Same.
23584 (call_value_nonlocal_sysv<mode>): Same.
23585 (sibcall): Same.
23586 (sibcall_local{32,64}): Same.
23587 (sibcall_value_local{32,64}): Same.
23588 (sibcall_nonlocal_aix{32,64}): Same.
23589 (sibcall_value_nonlocal_aix{32,64}): Same.
23590 (sibcall_nonlocal_sysv<mode>): Same.
23591 (sibcall_value): Same.
23592 (sibcall_value_nonlocal_sysv<mode>): Same.
23593
8eba3d10 235942007-03-24 Paul Brook <paul@codesourcery.com>
23595
23596 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
23597 * config/arm/linux-eabi.h: Remove legacy syscall hack.
23598
269f7060 235992007-03-24 Richard Henderson <rth@redhat.com>
23600
23601 * config/ia64/constraints.md: New file.
23602 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
23603 satisfies_constraint_?.
23604 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
23605 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
23606 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
23607 ia64_output_mi_thunk): Likewise.
23608 (ia64_const_ok_for_letter_p): Remove.
23609 (ia64_const_double_ok_for_letter_p): Remove.
23610 (ia64_extra_constraint): Remove.
23611 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
23612 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
23613 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
23614 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
23615 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
23616 EXTRA_MEMORY_CONSTRAINT): Remove.
23617 * config/ia64/ia64.md: Include constriants.md. Replace
23618 CONST_OK_FOR_? with satisfies_constraint_?.
23619
10de71e1 236202007-03-23 Michael Meissner <michael.meissner@amd.com>
23621 H.J. Lu <hongjiu.lu@intel.com>
23622
23623 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
23624 DPD or BID name.
23625 (name macros): Use DPD_BID_NAME to convert names properly.
23626
23627 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
23628 decimal floating point format.
23629 (init_floating_libfuncs): Change decimal functions so that they
23630 have a "bid_" prefix if the decimal system uses the BID format,
23631 and "dpd_" prefix if the decimal system uses the DPD format.
23632 (init_interclass_conv_libfuncs): Ditto.
23633 (init_intraclass_conv_libfuncs): Ditto.
23634
23635 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
23636 using the BID format.
23637
23638 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
23639 whether we are using the BID decimal format.
23640 * configure: Regenerate.
23641
23642 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
23643 the compiler has decimal floating point enabled. Define
23644 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
23645 instead of DPD.
23646
23647 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
23648 using the BID format.
23649
23650 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
23651 whether we are using the BID decimal format.
23652 * configure: Regenerate.
23653
23654 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
23655 the compiler has decimal floating point enabled. Define
23656 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
23657 instead of DPD.
23658
23659 * doc/install.texi (--enable-decimal-float): Document BID and DPD
23660 options, and that it is enabled for i386/x86_64 systems.
23661
23662 * Makefile.in (enable_decimal_float): New.
23663 (DECNUMFMT): New.
23664 (DECNUMINC): Add -I$(DECNUMFMT).
23665 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
23666 to $(DECNUMFMT) from $(DECNUM).
23667
23668 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
23669 Substitute enable_decimal_float.
23670 * configure: Regenerated.
23671
23672 PR other/30529
23673 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
23674 unsigned long.
23675
23676 * configure.ac: Enable decimal float for x86_64-*-linux*.
23677 * configure: Regenerated.
23678
23679 PR other/30530
23680 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
23681 decimal128ClearSign to flip and clear the sign bit in decimal128.
23682 (decimal_real_maxval): Set decimal128SetSign to set the sign
23683 bit in decimal128.
23684
558517fd 236852007-03-23 Ian Lance Taylor <iant@google.com>
23686
23687 * fold-const.c (fold_binary): Correct warning for X - c >= X.
23688
fb5b6d1b 236892007-03-23 Ian Lance Taylor <iant@google.com>
23690
23691 * tree-dump.c (dump_files): Correct comment.
23692
f82ccac1 236932007-03-23 Ian Lance Taylor <iant@google.com>
23694
23695 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
23696
207c7ab2 236972007-03-23 Steven Bosscher <steven@gcc.gnu.org>
23698
23699 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
23700 in cfglayout mode. Don't go into and out of cfglayout mode.
23701 Link the blocks in the order of the constructed traces.
23702 (rest_of_handle_tracer): Adjust call to tracer.
23703 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
23704 Don't go into cfglayout mode.
23705 (rtl_loop_done): Don't go out of cfglayout mode.
23706 * cfglayout.c (relink_block_chain): New function, split out from...
23707 (fixup_reorder_chain): ...here. Remove redundant checking.
23708 (cfg_layout_finalize): Don't clear the header, footer, and aux
23709 fields here, move the code to do so to relink_block_chain. Likewise
23710 for free_original_copy_tables.
23711 * rtl.h (tracer): Update prototype.
23712 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
23713 Assert we are in cfglayout mode. Don't go into and out of cfglayout
23714 mode. Use relink_block_chain to serialize the CFG according to the
23715 new basic block order. Move targetm.cannot_modify_jumps_p check from
23716 here...
23717 (gate_handle_reorder_blocks): ...to here.
23718 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
23719 from here...
23720 (gate_duplicate_computed_gotos): ...to here.
23721 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
23722 something always changes when going into and out of cfglayout mode.
23723 Perform an expensive cfg cleanup while going into cfglayout mode.
23724 Always update liveness information on HAVE_conditional_execution
23725 targets. Reserialize the basic blocks and go out of cfglayout mode.
23726 * reg-stack.c: Include cfglayout.h.
23727 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
23728 the call to reorder_basic_blocks.
23729 * basic-block.h (reorder_basic_blocks): Update prototype.
23730 (relink_block_chain): New prototype.
23731 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
23732
f01296c3 237332007-03-23 Joseph Myers <joseph@codesourcery.com>
23734
23735 * config/mips/mips.md (type, hazard, *movdi_32bit,
23736 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
23737 *movhi_internal, *movqi_internal, *movsf_hardfloat,
23738 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
23739 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
23740 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
23741 applicable.
23742 (movcc): Change first xfer to multi.
23743 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
23744 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
23745 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
23746 config/mips/generic.md: Change reservations using "xfer" to use
23747 "mfc,mtc".
23748 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
23749 using match_operand.
23750 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
23751 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
23752 examining mode.
23753 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
23754
788002f3 237552007-03-22 Richard Henderson <rth@redhat.com>
23756
23757 * config/i386/i386.c: Remove unnecessary function declarations.
23758 Move targetm definition, and all related macros, to the end of
23759 the file. Resort some functions to put definitions before uses.
23760 (ix86_attribute_table): Make static. Move to end of file.
23761 (ix86_gimplify_va_arg): Make static.
23762
9c587e53 237632007-03-22 Richard Henderson <rth@redhat.com>
23764
23765 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
23766 don't increase local_regparm with force_align_arg_pointer check.
23767 (ix86_function_sseregparm): Assert 32-bit.
23768 (type_has_variadic_args_p): New.
23769 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
23770 type_has_variadic_args_p.
23771 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
23772 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
23773 use memset instead. Do maybe_vaarg check first; skip attribute
23774 tests if true; skip attribute tests for 64-bit.
23775 (construct_container): Remove TARGET_DEBUG_ARG.
23776 (function_arg_advance_32, function_arg_advance_64): Split out ...
23777 (function_arg_advance): ... from here.
23778 (function_arg_32, function_arg_64): Split out ...
23779 (function_arg): ... from here.
23780 (ix86_pass_by_reference): Tidy.
23781 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
23782 (function_value_32): New, from parts of ix86_function_value
23783 and ix86_value_regno.
23784 (function_value_64): New, from parts of ix86_function_value
23785 and ix86_libcall_value.
23786 (ix86_function_value_1): New.
23787 (ix86_function_value, ix86_libcall_value): Use it.
23788 (return_in_memory_32, return_in_memory_64): Split out ...
23789 (ix86_return_in_memory): ... from here.
23790 (ix86_struct_value_rtx): Skip for 64-bit.
23791 (ix86_libcall_value, ix86_value_regno): Remove.
23792 (setup_incoming_varargs_64): Split out ...
23793 (ix86_setup_incoming_varargs): ... from here.
23794 (ix86_va_start): Remove TARGET_DEBUG_ARG.
23795 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
23796 * config/i386/i386-protos.h (ix86_function_value): Remove.
23797 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
23798
64214dab 237992007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23800
23801 PR other/23572
23802 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
23803 infinities not supported, otherwise emit warning if -Woverflow. On
23804 underflow, emit warning if -Woverflow.
23805 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
23806 and 0 otherwise.
23807 * real.h (real_from_string): Update declaration
f8be92ce 23808
63c68695 238092007-03-22 Kai Tietz <kai.tietz@onevision.com>
23810 Richard Henderson <rth@redhat.com>
23811
23812 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
23813 * calls.c (compute_argument_block_size, expand_call,
23814 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
23815 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
23816 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
23817 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
23818 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
23819 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
23820 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
23821 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
23822 Set to 1.
23823
016bf95b 238242007-03-22 Joseph Myers <joseph@codesourcery.com>
23825
23826 * c-incpath.c (add_sysroot_to_chain): New.
23827 (merge_include_chains): Add sysroot argument. Call
23828 add_sysroot_to_chain if sysrooted.
23829 (register_include_chains): Update call to merge_include_chains.
23830 * doc/cppopts.texi: Document use of '=' in include directory
23831 arguments.
23832
a745c94e 238332007-03-22 Uros Bizjak <ubizjak@gmail.com>
23834
23835 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
23836 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
23837 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
23838 insn pattern using X87MODEF12 mode macro.
f8be92ce 23839
02f07e87 238402007-03-21 Seongbae Park <seongbae.park@gmail.com>
23841
23842 * regmove.c (regmove_optimize): Use reg_mentioned_p
23843 instead of reg_overlap_mentioned_p for DST.
23844
dad26ad9 238452007-03-21 Mike Stump <mrs@apple.com>
23846
23847 * c.opt: Fixup for Objective-C/C++.
23848
a745c94e 238492007-03-21 Steve Ellcey <sje@cup.hp.com>
2800ac1a 23850
23851 * explow.c (convert_memory_address): Fold memory reference when
23852 POINTERS_EXTEND_UNSIGNED < 0
23853
0e960ba8 238542007-03-21 Richard Henderson <rth@redhat.com>
23855
23856 PR target/31245
23857 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
23858 * config/i386/mmintrin.h (__m64): Likewise.
23859 * config/i386/xmmintrin.h (__m128): Likewise.
23860
f868f9f1 238612007-03-21 Richard Sandiford <richard@codesourcery.com>
23862
23863 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
23864 (VXWORKS_OS_CPP_BUILTINS): Define.
23865 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
23866 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
23867
3aba99c8 238682007-03-21 Richard Sandiford <richard@codesourcery.com>
23869
23870 * rtl.h (constant_pool_reference_p): Delete.
23871 (find_constant_src): Declare.
23872 * rtlanal.c (find_constant_src): New function.
23873 * simplify-rtx.c (constant_pool_reference_p): Delete.
23874 * config/i386/i386.md: Use find_constant_src instead of
23875 constant_pool_reference_p/avoid_constant_pool_reference pairs.
23876
7a0eea86 238772007-03-21 Richard Sandiford <richard@codesourcery.com>
23878
23879 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
23880 * c-cppbuiltin.c (c_cpp_builtins): Define them.
23881
a457f9f8 238822007-03-20 Mark Mitchell <mark@codesourcery.com>
23883
23884 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
23885 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
23886 (arm_elf_asm_constructor): Use it.
23887 (arm_elf_asm_destructor): New function.
23888
76021441 238892007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
23890
23891 * jump.c (mark_jump_label): Treat SEQUENCE specially.
23892
08b2466e 238932007-03-20 Nathan Sidwell <nathan@codesourcery.com>
23894
23895 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
23896
2b9f2e46 238972007-03-19 Andrew Haley <aph@redhat.com>
23898
23899 PR tree-optimization/31264
23900 * tree-vrp.c (register_edge_assert_for_1): Don't look though
23901 VIEW_CONVERT_EXPRs.
23902
243f24c5 239032007-03-19 Paolo Bonzini <bonzini@gnu.org>
23904
23905 PR rtl-optimization/30907
23906 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
23907 (fwprop_init): Always call loop_optimizer_initialize.
23908 (fwprop_done): Always call loop_optimizer_finalize.
23909 (fwprop): We always have loop info now.
23910 (gate_fwprop_addr): Remove.
23911 (pass_fwprop_addr): Use gate_fwprop as gate.
23912
23913 PR rtl-optimization/30841
23914 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
23915 df_chain_alloc): Call df_reorganize_refs unconditionally.
23916 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
23917 refs_organized to refs_organized_size.
23918 (df_ref_create_structure): Use refs_organized_size instead of
23919 bitmap_size if refs had been organized, and keep refs_organized_size
23920 up-to-date.
23921 * df.h (struct df_ref_info): Change refs_organized to
23922 refs_organized_size.
23923 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
23924 bitmap_size.
23925
9519f67b 239262007-03-19 Mark Mitchell <mark@codesourcery.com>
23927
23928 * except.c (output_function_exception_table): Do not reference the
23929 EH personality routine for functions that do not require an
23930 exception table.
23931
3d8785bc 239322007-03-20 Jakub Jelinek <jakub@redhat.com>
23933
aedd6e32 23934 PR c/30762
23935 * c-typeck.c (convert_for_assignment): Call comptypes for
23936 RECORD_TYPE or UNION_TYPE.
23937
3d8785bc 23938 PR inline-asm/30505
23939 * reload1.c (reload): Do invalid ASM checking after
23940 cleanup_subreg_operands.
23941
94ca4916 239422007-03-19 Jeff Law <law@redhat.com>
23943
23944 * tree-cfg.c (find_taken_edge): Tighten conditions for
23945 optimizing computed gotos.
23946
a8bb7059 239472007-03-19 Michael Matz <matz@suse.de>
23948
23949 * builtins.c (expand_builtin_sync_operation,
23950 expand_builtin_compare_and_swap,
23951 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
23952 correctly.
23953
23954 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
23955 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
23956 for operand 3.
23957
021a18ba 239582007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
23959
23960 * doc/tm.texi: Add brackets around the return type of
23961 TARGET_SECONDARY_RELOAD.
23962
d42c14ae 239632007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
23964 Richard Guenther <rguenther@suse.de>
23965
23966 PR tree-optimization/31254
23967 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
23968 Use handled_component_p () where appropriate. Continue
23969 propagating into the rhs if we propagated into an INDIRECT_REF
23970 on the lhs.
23971
1f8e70bc 239722007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
23973
23974 * config/s390/s390.md (op_type attribute): RRR instruction type added.
23975 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
23976 (xde, xdee): Mode attributes adjusted to support DFP modes.
23977 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
23978 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
f8be92ce 23979 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1f8e70bc 23980 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
23981 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
23982 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
f8be92ce 23983 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1f8e70bc 23984 numbers.
23985 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
23986 "movsf"): Insn definitions removed.
23987 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
23988 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
23989 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
23990 definitions added.
23991 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
23992 "reload_in<mode>", "reload_out<mode>"): Expander added.
23993 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
23994 Expander removed.
23995
708607d5 239962007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
23997
23998 * config/s390/s390.md: Only non-functional changes. Renamed
23999 FPR mode macro to BFP all over the file.
24000
0c2edaa7 240012007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
24002
24003 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
24004 (op_type attribute): RRF instruction type added.
24005 (fT0): New mode attribute.
24006 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
24007 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
ed69c853 24008 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
24009 instruction no secondary memory is needed when moving DFmode values
24010 between GPRs and FPRs.
0c2edaa7 24011
7818a08e 240122007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
24013
24014 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
24015 inverted and documentation adjusted.
24016 ("mhard-dfp", "msoft-dfp"): New options.
24017 * config/s390/s390.c (s390_handle_arch_option): New architecture
24018 switch: z9-ec.
24019 (override_options): Sanity checks for the new options added.
24020 * config.gcc: New architecture switch: z9-ec.
24021 * config/s390/s390.h (processor_flags): PF_DFP added.
24022 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
24023 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
24024 when the bit is NOT set so remove it from the defaults.
24025
3b55c036 240262007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
24027
24028 * genemit.c (main): Print include statement for dfp.h.
24029 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
24030 is not available.
24031
55d19f36 240322007-03-19 Hans-Peter Nilsson <hp@axis.com>
24033
24034 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
24035
99971c03 240362007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24037
24038 PR target/31022
24039 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
24040 instead of PATTERN.
24041
c5559ed4 240422007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24043
24044 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
24045 attr_length_call, output_call, output_indirect_call): Cleanup
24046 formatting of targetm calls.
24047
fed42b71 240482007-03-19 Hans-Peter Nilsson <hp@axis.com>
24049
24050 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
24051
7d9f62cc 240522007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24053
24054 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
ed69c853 24055 reservation, bypass and anti-bypass descriptions for these
24056 instructions. Update move patterns.
7d9f62cc 24057 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
24058 TYPE_FPSTORE.
f8be92ce 24059
e817bf15 240602007-03-18 Dorit Nuzman <dorit@il.ibm.com>
24061
24062 * tree-vect-transform.c (get_initial_def_for_induction): Replace
24063 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
24064 (get_initial_def_for_reduction): Likewise.
24065
c1d4daae 240662007-03-16 Daniel Berlin <dberlin@dberlin.org>
24067
24068 Fix PR tree-optimization/29922
24069 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
24070 (get_representative): Removed.
24071 (value_dies_in_block_x): Update for rvuse removal.
24072 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
24073 (compute_antic_aux): Handle when PHI nodes appear in
f8be92ce 24074 non-single-successors.
c1d4daae 24075 (dump_bitmap_of_names): Removed.
24076 (compute_antic_safe): Renamed and removed rvuse calculation.
24077 Calculate only antic safe.
24078 (insert_into_preds_of_block): Remove assert.
24079 (execute_pre): Update for renamed functions.
24080 (defer_or_phi_translate_block): New function.
f8be92ce 24081
f6a0d06f 240822007-03-17 Kazu Hirata <kazu@codesourcery.com>
24083
24084 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
24085 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
24086 typos.
24087 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
24088 Follow spelling conventions.
24089
10f4b721 24090 * tree-data-ref.h: Remove the prototype for analyze_array.
24091
8d072f6d 240922007-03-17 Dorit Nuzman <dorit@il.ibm.com>
24093
24094 PR tree-optimization/31041
24095 * tree-vect-transform.c (get_initial_def_for_induction): Call
24096 force_gimple_operand.
f8be92ce 24097
51e779f4 240982007-03-17 Olga Golovanevsky <olga@il.ibm.com>
f8be92ce 24099
51e779f4 24100 * ipa-type-escape.c (look_for_casts) : Revert code to use
24101 handled_component_p due to ada test a-numaux.adb.
24102
f8df4da2 241032007-03-17 Kazu Hirata <kazu@codesourcery.com>
24104
24105 * final.c (final_scan_insn): Alter the condition of a
24106 conditional trap if we have nonstandard CC.
24107
95cd4953 241082007-03-16 Alexandre Oliva <aoliva@redhat.com>
24109
24110 * configure.ac: Remove excess quoting from asm line 0 test.
24111 * configure: Rebuilt.
24112
59dd8856 241132007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24114
24115 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
24116 * c-common.c (convert_and_check): Move warning logic to...
24117 (warnings_for_convert_and_check): ...here. Define.
24118 * c-common.h (warnings_for_convert_and_check): Declare.
f8be92ce 24119
ec94117d 241202007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24121
24122 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
24123 (output_call): Likewise.
24124
ac03c1db 241252007-03-16 Richard Sandiford <richard@codesourcery.com>
24126
24127 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
24128
e9204790 241292007-03-16 Richard Sandiford <richard@codesourcery.com>
24130
24131 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
24132
d53e2283 241332007-03-16 Uros Bizjak <ubizjak@gmail.com>
24134
24135 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
24136 opteron, athlon-64 and athlon-fx processor_alias_table entries.
24137
a75122be 241382007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
24139
24140 PR tree-optimization/31183
f8be92ce 24141 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
a75122be 24142 Use double_int instead of unsigned int for representing access_strides.
24143 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
24144
15ec875c 241452007-03-16 Richard Guenther <rguenther@suse.de>
24146
24147 PR tree-optimization/31146
24148 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
24149 to allow recursion of forward_propagate_addr_expr.
24150 (forward_propagate_addr_into_variable_array_index): Likewise.
24151 (forward_propagate_addr_expr): Likewise.
24152 (tree_ssa_forward_propagate_single_use_vars): Likewise.
24153 (forward_propagate_addr_expr_1): Recurse on simple copies
24154 instead of propagating into them. Do so for useless conversions
24155 as well.
24156 (forward_propagate_addr_expr): Clean up unused statements after
24157 recursion.
24158
3737e769 241592007-03-16 Richard Guenther <rguenther@suse.de>
24160
24161 * builtins.c (expand_builtin_cexpi): Use the right argument
24162 for the expansion via cexp.
24163
5c17a266 241642007-03-16 Alexandre Oliva <aoliva@redhat.com>
24165
24166 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
24167 * configure: Rebuilt.
24168
a357c7c2 241692007-03-16 Alexandre Oliva <aoliva@redhat.com>
24170
24171 PR debug/29906
24172 * dwarf2out.c (force_type_die): Adjust comment.
24173 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
24174
89c31ddb 241752007-03-15 DJ Delorie <dj@redhat.com>
24176
24177 * config/frv/predicates.md (minmax_operator): Don't check operands
24178 here.
24179
4b4ab846 241802007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
24181
24182 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
24183 Update constant estimates of number of iterations.
24184 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
24185 argument renamed to "realistic".
24186 (compute_estimated_nb_iterations): Removed.
24187 (record_niter_bound): New function.
24188 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
24189 call record_nonwrapping_iv with upper = false.
24190 (infer_loop_bounds_from_signedness): Pass upper argument to
24191 record_nonwrapping_iv.
24192 (estimate_numbers_of_iterations_loop): Do not call
24193 compute_estimated_nb_iterations. Record estimate based on profile
24194 information. Initialize the constant estimates of number of
24195 iterations.
24196 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
24197 estimates.
24198 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
24199 number of iterations is too small.
24200 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
24201 (EST_NOT_AVAILABLE): Removed.
24202 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
24203 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
24204 fields.
24205
8cd53b4f 242062007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
24207
24208 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
24209 Handle NE_EXPR guards.
24210
aa509316 242112007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24212
24213 PR c++/24924
24214 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
24215 Set also -pedantic-errors by default for the preprocessor unless
24216 -fpermissive is given.
f8be92ce 24217
fc0dfa6e 242182007-03-15 Richard Guenther <rguenther@suse.de>
24219
24220 PR middle-end/29719
24221 PR middle-end/31161
24222 * builtins.c (expand_builtin_cexpi): As a fallback if we
24223 don't have builtins for sincos or cexp create a function
24224 declaration for cexp and expand to a call to that.
24225 (expand_builtin_int_roundingfn): Always fall
24226 back to floor/ceil and its variants even if they may be
24227 not available.
24228
4aaec180 242292007-03-15 Steven Bosscher <steven@gcc.gnu.org>
24230
24231 PR middle-end/31159
24232 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
24233 jump tables, move the call to delete_dead_jumptables from here...
24234 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
24235 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
24236 don't allow merging of blocks that try_redirect_by_replacing_jump
24237 also does not handle when not optimizing.
24238
a1758a13 242392007-03-15 Uros Bizjak <ubizjak@gmail.com>
24240 Francois-Xavier Coudert <coudert@clipper.ens.fr>
24241
24242 * config/i386/i386.md (x86_sahf_1): Correctly handle
24243 HAVE_AS_IX86_SAHF.
24244
ed2235c8 242452007-03-15 Uros Bizjak <ubizjak@gmail.com>
24246
24247 PR target/31167
24248 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
24249 x86_64_general_operand as operand[2] predicate. Remove "iF"
24250 from operand constraints and use "e" constraint instead.
24251 (*subti3_1, *subti3_1 splitter): Ditto.
24252 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
24253 operand[1] predicate.
24254
28d4f5a1 242552007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
24256
24257 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
24258 arrays, multiply the access strides by the size of the sub-array.
24259 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
24260
735630ef 242612007-03-14 Uros Bizjak <ubizjak@gmail.com>
24262
24263 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
24264 the configured assembler supports the sahf mnemonic.
24265 * configure: Regenerate.
24266 * config.in: Regenerate.
24267
24268 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
24269 emit "sahf" or ".byte\t0x9e" as asm template.
24270
2b28c681 242712007-03-14 Michael Meissner <michael.meissner@amd.com>
24272
24273 PR 31018
24274 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
24275 option to replace hard coded TARGET_xxx in md file.
24276 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
24277 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
24278 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
24279 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
24280 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
24281 (X86_TUNE_NOT_VECTORMODE): Ditto.
24282 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
24283 (TUNE_AVOID_VECTOR_DECODE): Ditto.
24284 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
24285 (TUNE_SLOW_IMUL_IMM8): Ditto.
24286 (TUNE_MOVE_M1_VIA_OR): Ditto.
24287 (TUNE_NOT_UNPAIRABLE): Ditto.
24288 (TUNE_NOT_VECTORMODE): Ditto.
f8be92ce 24289
2b28c681 24290 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
24291 options.
24292
24293 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
24294 tuning options instead of hard coded TARGET_xxx.
24295 (fix ssemode peephole2's): Ditto.
24296 (imul peephole2's): Ditto.
24297 (movsi_or): Ditto.
24298 (movdi_or_rex64): Ditto.
24299 (move peephole2): Ditto.
24300 (not peephole2's): Ditto.
24301
ffe8fd56 243022007-03-14 Dirk Mueller <dmueller@suse.de>
24303
24304 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
24305 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
24306 * c-parser.c (c_parser_if_body): Always add an empty statement in case
24307 of empty body.
24308 * c-parser.c (c_parser_do_statement): Warn about empty body in
24309 do/while statement.
24310 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
24311 * doc/invoke.texi (-Wempty-body): Update documentation.
24312
f092582b 243132007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24314
24315 PR c/21438
24316 * c-common.h (warn_for_div_by_zero): Declare.
24317 * c-common.c (warn_for_div_by_zero): Define.
24318 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
24319 warning.
24320
72d997cb 243212007-03-14 Richard Sandiford <richard@codesourcery.com>
24322
24323 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
24324 to PREFIX and STANDARD_PREFIX.
24325
efe5559c 243262007-03-14 Richard Sandiford <richard@codesourcery.com>
24327 Phil Edwards <phil@codesourcery.com>
24328
24329 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
24330 (__gthread_once_t): Remove busy field for RTPs.
24331 (__GTHREAD_ONCE_INIT): Update accordingly.
24332
809bb1c7 243332007-03-14 Richard Sandiford <richard@codesourcery.com>
24334
24335 * doc/invoke.texi: Document VxWorks options.
24336
e85fd4fb 243372007-03-14 Uros Bizjak <ubizjak@gmail.com>
24338
24339 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
24340
fdf6266d 243412007-03-13 Seongbae Park <seongbae.park@gmail.com>
24342
24343 PR tree-optimization/30590
24344 * tree-nrv.c (tree_nrv): Check for the partial update of the
24345 return value.
24346
b6c1bd72 243472007-03-13 Alexandre Oliva <aoliva@redhat.com>
24348
24349 * flags.h (flag_random_seed): Remove declaration, in favor of...
24350 * toplev.h (get_random_seed, set_random_seed): ... these.
24351 * tree.c (get_file_function_name): Use the former.
24352 * opts.c (common_handle_option): Use the latter.
24353 * toplev.c
24354
3752d411 243552007-03-13 Steven Bosscher <steven@gcc.gnu.org>
24356
24357 PR middle-end/31127
24358 * cse.c (cse_find_path): Do not bail out if a basic block that
24359 we already visited now becomes part of a path that starts at a
24360 different basic block. Just disallow this, to make sure we
24361 visit each basic block at most once.
24362
24bc216e 243632007-03-13 Jan Hubicka <jh@suse.cz>
24364
ed69c853 24365 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
24366 attributes, when profile esitmate is present, calls with very low
24367 frequency are cold.
24bc216e 24368
a463eaea 243692007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
24370
24371 PR tree-optimization/30730
24372 PR tree-optimization/26900
24373 * tree-ssa-loop-niter.c: Include gmp.h.
24374 (bounds): New type.
24375 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
24376 split_to_var_and_offset, determine_value_range,
24377 bound_difference_of_offsetted_base, refine_bounds_using_guard,
24378 bound_difference, bounds_add, bounds_negate,
24379 number_of_iterations_ne_max, dump_affine_iv): New functions.
24380 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
24381 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
24382 difference of initial and final value of control iv to validate
24383 results.
24384 (number_of_iterations_cond): Add loop parameter. Determine bounds
24385 on the difference of the extremes of the control iv. Add dumps.
24386 (expand_simple_operations): Handle phi nodes.
24387 (simplify_using_initial_conditions): Do not record used conditions.
24388 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
24389 Do not set additional_info.
24390 (implies_nonnegative_p, implies_ge_p): Removed.
24391 (derive_constant_upper_bound): Do not use parameter `additional'.
24392 (record_estimate): Parameter `additional' removed. Parameter
24393 `i_bound' added. Do not call derive_constant_upper_bound.
24394 (record_nonwrapping_iv): Use derive_constant_upper_bound to
24395 bound the number of iterations estimate.
24396 (estimate_numbers_of_iterations_loop): Pass the estimate from
24397 the number of iterations analysis to record_estimate.
24398 * tree.h (multiple_of_p): Declare.
24399 * tree-scalar-evolution.c (expression_expensive_p): Removed.
24400 (scev_const_prop): Do not check expression_expensive_p.
24401 * fold-const.c (multiple_of_p): Exported.
24402 * double-int.c (double_int_mask): Exported.
24403 * double-int.h (double_int_mask): Declare.
24404 * tree-flow.h (struct tree_niter_desc): Removed additional_info
24405 field. Added max field.
24406
e238d235 244072007-03-13 David Taylor <taylor@candd.org>
24408
24409 PR driver/12448:
24410 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
24411 default -MQ.
24412
a0ece9f6 244132007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24414
73fc3472 24415 PR target/31123
a0ece9f6 24416 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
24417 two unamed patterns.
f8be92ce 24418
92a5086b 244192007-03-13 Uros Bizjak <ubizjak@gmail.com>
24420
24421 * config/i386/i386.opt (mcx16, msahf): New options.
24422 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
24423 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
24424
24425 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
24426 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
24427 Output -mcx16 and -msahf options when corresponding bit is set.
24428
24429 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
24430 and -msahf options.
24431
a8971681 244322007-03-13 Alexandre Oliva <aoliva@redhat.com>
24433
24434 * configure.ac: Test for assembler tolerance to # 0 "".
24435 * configure, config.in: Rebuilt.
24436 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
24437
c99afad8 244382007-03-13 Geoffrey Keating <geoffk@apple.com>
24439
24440 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
47adc701 24441
24442 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
24443 (handle_syscall): Handle direct system calls.
24444 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
24445
6713f0a0 244462007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
24447
24448 * doc/invoke.texi: Fix cpp.info cross-reference.
24449 * doc/passes.texi: Fix gcc.info cross-reference.
24450
f8494ea3 244512007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
24452
24453 PR tree-optimization/30835
24454 * lambda-code.c (can_convert_to_perfect_nest): Check whether
24455 bb_for_stmt is not NULL before accessing it.
24456
021d874e 244572007-03-12 Joseph Myers <joseph@codesourcery.com>
24458
24459 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
24460 some multilibs.
24461
16e1a7da 244622007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
24463
24464 PR 30635
24465 * doc/install.texi: Document --enable-stage1-languages
24466
154480b1 244672007-03-12 Steven Bosscher <steven@gcc.gnu.org>
24468
24469 * tree-pass.h (pass_into_cfg_layout_mode,
24470 pass_outof_cfg_layout_mode): Declare.
24471 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
24472 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
24473 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
24474 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
24475
aaafd660 244762007-03-12 Seongbae Park <seongbae.park@gmail.com>
24477
24478 * c-decl.c (warn_variable_length_array): New function.
24479 Refactored from grokdeclarator to handle warn_vla
24480 and handle unnamed array case.
24481 (grokdeclarator): Refactored VLA warning case.
24482 * c.opt (Wvla): New flag.
974bc84e 24483 * doc/invoke.texi (Wvla): New warning.
aaafd660 24484
cc2af183 244852007-03-12 Richard Henderson <rth@redhat.com>
24486
24487 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
24488 (TARGET_SECTION_TYPE_FLAGS): New.
24489
0b769e4a 244902007-03-12 Richard Henderson <rth@redhat.com>
24491
f8494ea3 24492 * config/darwin.c (machopic_reloc_rw_mask): New.
24493 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
24494 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
0b769e4a 24495
a8bb4f69 244962007-03-12 Mark Mitchell <mark@codesourcery.com>
24497
24498 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
24499 * cppdefault.h (cpp_PREFIX): Document.
24500 (cpp_PREFIX_len): Likewise.
24501 (cpp_EXEC_PREFIX): New variable.
24502 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
24503 * c-incpath.c (add_standard_paths): Correct logic for relocating
24504 paths within prefix.
24505
d3fcb417 245062007-03-12 Uros Bizjak <ubizjak@gmail.com>
24507
24508 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
24509 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
24510 mode macro.
24511 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
24512 fix_truncdfdi_sse using SSEMODEF mode macro.
24513 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
24514 fix_truncdfsi_sse using SSEMODEF mode macro.
24515 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
24516 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
24517
ac2799d5 245182007-03-12 Richard Sandiford <richard@codesourcery.com>
24519
24520 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
24521 elfos.h to tm_file.
24522
96b038b0 245232007-03-12 Olga Golovanevsky <olga@il.ibm.com>
f8be92ce 24524
96b038b0 24525 * tree.h : Add multiple_of_p declaration.
f8be92ce 24526 * fold-const.c (multiple_of_p): Make multiple_of_p public.
96b038b0 24527 * ipa-type-escape.c (results_of_malloc): Redundant.
24528 (visited_stmts): New. Visited stmt for walk_use_def_chains.
24529 (cast_type): Extended with new members.
24530 (check_cast): Returns cast_type.
24531 (cast): New structure for data of walk_use_def_chains.
24532 (is_malloc_result, is_cast_from_non_pointer_1,
f8be92ce 24533 is_cast_from_non_pointer,
96b038b0 24534 is_array_access_through_pointer_and_index): New functions.
24535 (look_for_casts): Returns cast types.
24536 (check_call): Returns void.
24537 (okay_pointer_operation): Use support of pointer plus index,
24538 pointer plus constant and allow all multiplications.
f8be92ce 24539
62065c0b 245402007-03-11 Richard Guenther <rguenther@suse.de>
24541
24542 PR tree-optimization/31115
24543 * tree-vrp.c (extract_range_from_binary_expr): Make sure
24544 the shift count is positive and non-anti-range for RSHIFT_EXPR.
24545 A shift count of zero is not special as with *_DIV_EXPR.
24546 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
24547 direction.
24548
659753d3 245492007-03-11 Ian Lance Taylor <iant@google.com>
24550
24551 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
24552 the *_DIV_EXPR codes correctly with overflow infinities.
24553
72443169 245542007-03-11 Ira Rosen <irar@il.ibm.com>
24555
f8be92ce 24556 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
72443169 24557 indicate success/failure of the analysis. Add negation to subtrahend
24558 in case of subtraction. Fail if both operands contain constants.
24559 (create_data_ref): Fail if analyze_offset fails.
24560
4209e9f9 245612007-03-11 Uros Bizjak <ubizjak@gmail.com>
24562
24563 * config/i386/i386.md (frndintxf2): Rename to ...
24564 (rintxf2): ... this. Remove expander having same name.
24565 (rintsf2, rintdf2): Implement using SSEMODEF macro.
24566 (roundsf2, rounddf2): Ditto.
24567 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
24568 (lround<mode>di2, lround<mode>si2): Ditto.
24569
db1c50be 245702007-03-11 Steven Bosscher <steven@gcc.gnu.org>
24571
24572 * lower-subreg.c: Include except.h.
24573 (decompose_multiword_subregs): Verify that the only control flow
24574 insns we can split are loads to multi-words pseudos.
24575 Handle breaking such blocks after splitting, instead of calling
24576 find_many_sub_basic_blocks.
24577
24578 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
24579 on the new basic block. Add a lengthy comment explaining why we
24580 thought this was necessary.
24581 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
24582
6783c055 245832007-03-10 Mark Mitchell <mark@codesourcery.com>
24584
752d462d 24585 PR c++/30924
6783c055 24586 * tree.c (walk_type_fields): Recurse into the element type of
24587 ARRAY_TYPEs if there is a pointer set.
24588
e6978426 245892007-03-10 Dirk Mueller <dmueller@suse.de>
24590
24591 * c-common.c (warn_logical_operator): Fix condition.
24592
4f409e20 245932007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
c6134e23 24594
24595 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
24596 quotation mark.
77cd4e90 24597 * config/darwin.c (machopic_select_section): Remove superfluous
24598 argument in call to categorize_decl_for_section. Remove unused
24599 variable shlib.
c6134e23 24600
e9cef88c 246012007-03-10 Joseph Myers <joseph@codesourcery.com>
24602
24603 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
24604 defined.
24605 * configure: Regenerate.
24606
5c2d2d32 246072007-03-10 Uros Bizjak <ubizjak@gmail.com>
24608
24609 PR target/31101
24610 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
24611 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
24612 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
4209e9f9 24613 Add LABEL_NUSES to emitted label.
5c2d2d32 24614 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
4209e9f9 24615 branch probability value to emitted jump insn.
5c2d2d32 24616 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
24617 Do not check life information and do not re-arrange input operands
24618 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
24619
796e4476 246202007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
24621
24622 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
24623 the change of decode_asm_operands.
24624
8801c4fd 246252007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
24626
24627 * mode-switching.c (create_pre_exit): Skip blockage insn.
24628
eb9161e7 246292007-03-09 Diego Novillo <dnovillo@redhat.com>
24630
24631 * tree-pass.h (TODO_update_smt_usage): Remove.
24632 Update all users.
24633 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
24634 argument SOME.
24635 Update all users.
24636
ea24f9f4 246372007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24638
ed69c853 24639 * pa.c (attr_length_call): Revise condition for long
24640 pc-relative branch.
24641 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
24642 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
24643 sequence on SOM target.
ea24f9f4 24644
90e35d1a 246452007-03-09 Geoffrey Keating <geoffk@apple.com>
24646
24647 * gcc.c: Document %{, in big comment at top.
24648 (input_suffix_matches): Remove special handling for .s and
24649 .S.
24650 (input_spec_matches): New.
24651 (handle_braces): Handle %{,.
24652 (validate_switches): ',' indicates a value which is not a switch.
24653 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
24654 to detect assembler input.
24655 * config/i386/sol2.h (CPP_SPEC): Likewise.
24656 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24657 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24658 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
24659 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
24660 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
24661 -m64 causes deployment target to default to 10.5.
24662 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
24663
4e151b05 246642007-03-09 Richard Henderson <rth@redhat.com>
24665
24666 PR target/26090
24667 * target.h (targetm.asm.out.reloc_rw_mask): New.
24668 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
24669 (TARGET_ASM_OUT): Use it.
24670 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
24671 * varasm.c (categorize_decl_for_section): Remove shlib argument;
24672 use the new reloc_rw_mask target hook instead.
24673 (default_section_type_flags_1): Merge into...
24674 (default_section_type_flags): ... here.
24675 (decl_readonly_section_1): Merge into...
24676 (decl_readonly_section): ... here.
24677 (default_elf_select_section_1): Merge into...
24678 (default_elf_select_section): ... here.
24679 (default_unique_section_1): Merge into...
24680 (default_unique_section): ... here.
24681 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
24682 (default_select_rtx_section): Use it.
24683 (default_elf_select_rtx_section): Likewise.
24684 * output.h: Update to match.
24685 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
24686 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
24687 (TARGET_ASM_RELOC_RW_MASK): New.
24688 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
24689 to categorize_decl_for_section.
24690 (x86_64_elf_unique_section): Likewise.
24691 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
24692 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
24693 (TARGET_ASM_RELOC_RW_MASK): New.
24694 * config/ia64/ia64.c (ia64_rwreloc_select_section,
24695 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
24696 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
24697 (TARGET_RWRELOC): Remove.
24698 (ia64_section_type_flags): Adjust call to default_section_type_flags.
24699 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
24700 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
24701 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
24702 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
24703 (rs6000_xcoff_select_section): Use decl_readonly_section.
24704 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
24705 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
24706 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
24707 (TARGET_SECTION_TYPE_FLAGS): Remove.
24708 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
24709
5dbcb7c4 247102007-03-09 Roger Sayle <roger@eyesopen.com>
24711
24712 * fold-const.c (fold_comparison): Remove compile-time evaluation of
24713 complex constant equality/inequality comparisons for here.
24714 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
24715 known at compile-time or can be simplified to a scalar comparison.
24716 (fold_relational_const): Move compile-time evaluation of complex
24717 constant equality/inequality comparisons to here.
24718
06320855 247192007-03-09 Alexandre Oliva <aoliva@redhat.com>
24720
24721 PR rtl-optimization/30643
24722 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
50819eed 24723 dest_addr_elt.
06320855 24724 (fold_rtx): Recurse, like before 2006-11-03.
24725
f58c51a5 247262007-03-09 DJ Delorie <dj@redhat.com>
24727
5dbcb7c4 24728 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
24729 m32c-pragma.o.
f58c51a5 24730
161fe168 247312007-03-09 Aldy Hernandez <aldyh@redhat.com>
24732
4209e9f9 24733 PR tree-optimization/30375
24734 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
24735 LHS of statements is not the same.
24736 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
161fe168 24737
c1901bc7 247382007-03-09 Chao-ying Fu <fu@mips.com>
24739
24740 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
24741 REV 2.
24742 * doc/invoke.texi (-mdspr2): Document new option.
24743 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
24744 New unspec for DSP REV 2.
24745 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
24746 these instructions are extended in DSP REV 2.
24747 (mips-dspr2.md): Include.
24748 * config/mips/mips.opt (mdspr2): New option.
24749 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
24750 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
24751 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
24752 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
24753 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
24754 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
24755 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
24756 and 2 builtins.
24757 (bdesc_map): Add one field of unsupported_target_flags.
48dc2227 24758 (bdesc_arrays): Update entries to have extra fields. Add
c1901bc7 24759 dsp_32only_bdesc.
24760 (mips_init_builtins): Initialize new function types.
24761 Check unsupported_target_fileds to filter out builtins.
24762 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
24763 TARGET_DSPR2.
24764 (ASM_SPEC): Pass mdspr2 to the assembler.
24765 * config/mips/mips-dspr2.md: New file.
24766
f50f824f 247672007-03-09 Sa Liu <saliu@de.ibm.com>
24768
24769 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
24770
47fcc258 247712007-03-09 Ian Lance Taylor <iant@google.com>
24772
24773 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
24774 argument) like -Wstrict-overflow=2.
24775 * doc/invoke.texi (Warning Options): Update documentation.
24776
b13d1547 247772007-03-09 Dirk Mueller <dmueller@suse.de>
24778
24779 PR c++/17946
24780 * doc/invoke.texi (-Wlogical-op): Document.
24781 * common.opt (-Wlogical-op): New.
24782 * c-common.h (warn_logical_operator): Declare.
24783 * c-common.c (warn_logical_operator): Define.
24784 * c-typeck.c (parser_build_binary_op): Call
24785 warn_logical_operator.
24786
565b6b35 247872007-03-09 Alexandre Oliva <aoliva@redhat.com>
24788
24789 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
24790 * final.c (final_scan_insn): Test for non-"" file name.
24791
355572cc 247922007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
24793
24794 * doc/loop.texi: Document the Omega linear constraints solver.
24795 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
f8be92ce 24796 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
24797 omega-hash-table-size, omega-max-keys, and
355572cc 24798 omega-eliminate-redundant-constraints.
24799 * tree-pass.h (pass_check_data_deps): Declared.
24800 * omega.c: New.
24801 * omega.h: New.
24802 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
f8be92ce 24803 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
355572cc 24804 pass_check_data_deps): New.
24805 * tree-data-ref.c (init_data_ref): Remove declaration.
24806 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
24807 (analyze_array): Renamed init_array_ref, move up initializations.
24808 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
24809 Removed arguments that are set to NULL.
f8be92ce 24810 (analyze_indirect_ref): Correct indentation, correct call to
355572cc 24811 init_pointer_ref.
24812 (object_analysis): Call init_array_ref instead of analyze_array.
24813 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
24814 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
24815 of DR_ACCESS_FNS_ADDR.
f8be92ce 24816 (init_omega_eq_with_af, omega_extract_distance_vectors,
355572cc 24817 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
24818 ddr_consistent_p): New.
f8be92ce 24819 (compute_affine_dependence): Check consistency of ddrs when
355572cc 24820 flag_check_data_deps is passed.
24821 (analyze_all_data_dependences): Uncomment.
24822 (tree_check_data_deps): New.
24823 * tree-data-ref.h: Include omega.h.
24824 (DR_ACCESS_FNS_ADDR): Removed.
24825 (data_dependence_relation): Add inner_loop.
24826 (DDR_INNER_LOOP): New.
24827 * common.opt (fcheck-data-deps): New.
24828 * tree-flow.h (tree_check_data_deps): Declare.
24829 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
24830 (OBJS-common): Depend on omega.o.
24831 (omega.o): Define.
24832 * passes.c (pass_check_data_deps): Scheduled.
f8be92ce 24833 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
355572cc 24834 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
24835 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
24836 PARAM_VECT_MAX_VERSION_CHECKS,
24837 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
24838
975070ea 248392007-03-09 Richard Guenther <rguenther@suse.de>
24840
24841 PR tree-optimization/30904
24842 PR middle-end/31058
24843 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
24844 the same way as *_DIV_EXPR.
24845
29c734f4 248462007-03-09 Alexandre Oliva <aoliva@redhat.com>
24847
24848 * recog.c (decode_asm_operands): No mixed declarations and code.
24849
09fb10e8 248502007-03-09 Alexandre Oliva <aoliva@redhat.com>
24851
24852 * rtl.def (ASM_INPUT): Add location.
24853 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
24854 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
24855 (decode_asm_operands): Add loc operand.
24856 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
24857 * stmt.c (expand_asm): Rename to...
24858 (expand_asm_loc): ... this. Add locus argument. Pass it on to
24859 gen_rtx_ASM_INPUT_loc.
24860 (expand_asm_expr): Adjust.
24861 * recog.c (decode_asm_operands): Add loc operand.
24862 (check_asm_operands, extract_insn): Adjust.
24863 * reload1.c (maybe_fix_stack_asms): Likewise.
24864 * final.c (asm_insn_count): Likewise.
24865 (final_scan_insn): Output # line before and after asm.
24866
58d16c5f 248672007-03-09 Daniel Berlin <dberlin@dberlin.org>
24868
24869 * tree-ssa-structalias.c (variable_info): Remove
24870 finished_solution.
24871 (new_var_info): Ditto.
24872 (shared_bitmap_info_t): New structure.
24873 (shared_bitmap_table): New variable.
24874 (shared_bitmap_hash): New function.
24875 (shared_bitmap_eq): Ditto
24876 (shared_bitmap_lookup): Ditto.
24877 (shared_bitmap_add): Ditto.
24878 (merge_smts_into): Change to take bitmap directly.
24879 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
24880 (init_alias_vars): Init shared bitmap hashtable.
24881 (delete_points_to_sets): Delete shared bitmap hashtable.
24882 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
24883 is_aliased removal as a change that was still necessary was
24884 deleted.
24885
f1d7c974 248862007-03-09 Uros Bizjak <ubizjak@gmail.com>
24887
24888 * config/i386/i386.h (override_options): Conditionally disable
24889 x86_sahf for 64bit targets only.
24890
ebef29eb 248912007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
24892
24893 PR C/31072
24894 * c-decl.c (merge_decls): Don't call make_var_volatile.
24895 * varasm.c (make_var_volatile): Remove.
24896 * output.h (make_var_volatile): Remove.
24897
0e0e5aec 248982007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
24899
24900 PR tree-optimization/31085
24901 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
24902
4c9596cf 249032007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24904
24905 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
24906 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
24907 ATTR_CONST_NOTHROW_LIST.
f8be92ce 24908
4c9596cf 24909 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
24910 FIX_TRUNC_EXPR.
24911
463bc075 249122007-03-08 Diego Novillo <dnovillo@redhat.com>
24913
24914 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
24915
0f6e93a5 249162007-03-08 Geoffrey Keating <geoffk@apple.com>
24917
24918 PR 31013
24919 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
24920 is declared.
24921 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
24922 passed, use shared libgcc.
24923
46a0e9e8 249242007-03-08 Roger Sayle <roger@eyesopen.com>
24925
24926 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
24927 instead of calling build2 with a GIMPLE_MODIFY_STMT.
24928 (honor_protect_cleanup_actions, lower_try_finally_switch):
24929 Likewise.
24930 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
24931 ifc_temp_var): Likewise.
24932 * tree-inline.c (setup_one_parameter): Likewise.
24933 * tree-mudflap.c (mf_decl_cache_locals,
24934 mf_build_check_statement_for): Likewise.
24935 * tree-nested.c (init_tmp_var, save_tmp_var,
24936 finalize_nesting_tree_1): Likewise.
24937 * tree-outof-ssa.c (insert_copy_on_edge,
24938 insert_backedge_copies): Likewise.
24939 * tree-profile.c (tree_gen_edge_profiler,
24940 tree_gen_ic_profiler): Likewise.
24941 * tree-scalar-evolution.c (scev_const_prop): Likewise.
24942 * tree-sra.c (sra_build_assignment): Likewise.
24943 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
24944 * tree-ssa-math-opts.c (insert_reciprocals,
24945 execute_cse_sincos_1): Likewise.
24946 * tree-tailcall.c (adjust_accumulator_values,
24947 adjust_return_value): Likewise.
24948 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
24949 * tree-vect-transform.c (vect_create_data_ref_ptr,
24950 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
24951 vect_create_epilog_for_reduction, vectorizable_reduction,
24952 vectorizable_call, vectorizable_conversion,
24953 vectorizable_assignment, vectorizable_operation,
24954 vectorizable_type_demotion, vect_gen_widened_results_half,
24955 vect_permute_store_chain, vectorizable_store,
24956 vect_setup_realignment, vect_permute_load_chain,
24957 vectorizable_load, vectorizable_condition,
24958 vect_create_cond_for_align_checks): Likewise.
24959 * tree-vrp.c (build_assert_expr_for): Likewise.
24960
a2a1fde2 249612007-03-08 Ian Lance Taylor <iant@google.com>
24962
24963 * tree-vrp.c: Include "intl.h".
24964 (usable_range_p): New static function.
24965 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
24966 overflowed values, juts set *strict_overflow_p.
24967 (compare_values): Only return -2 if one of the operands is not a
24968 constant.
24969 (compare_ranges): Call usable_range_p.
24970 (compare_range_with_value): Likewise.
24971 (vrp_evaluate_conditional_warnv): Rename from
24972 vrp_evaluate_conditional. Make static. Change all callers.
24973 (vrp_evaluate_conditional): New function.
24974 (simplify_div_or_mod_using_ranges): Issue warning about reliance
24975 on signed overflow.
24976 (simplify_abs_using_ranges): Likewise.
24977 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
24978 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
24979 within_stmt parameter.
24980 * tree-ssa-propagate.c (fold_predicate_in): Update call to
24981 vrp_evaluate_conditional.
24982 * tree-ssa-threadedge.c
24983 (record_temporary_equivalences_from_stmts_at_dest): Change
24984 simplify parameter to take a second tree parameter.
24985 (simplify_control_stmt_condition): Likewise.
24986 (thread_across_edge): Likewise.
24987 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
24988 (thread_across_edge): Likewise.
ddb8b0be 24989 * Makefile.in (tree-vrp.o): Depend upon intl.h.
a2a1fde2 24990
4d9301a8 249912007-03-08 Uros Bizjak <ubizjak@gmail.com>
24992
24993 * config/i386/i386.h (TARGET_SAHF): New define.
24994 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
24995 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
24996 (x86_sahf): New global variable.
24997 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
24998 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
24999 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
25000 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
25001 for 64-bit.
25002 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
25003 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
25004 when expanding fcomi/sahf based tests.
25005 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
25006 expanding sahf based alternative. Emit sahf based sequence when
25007 optimizing for code size.
25008 * config/i386/i386.md (x86_sahf_1): Do not disable for
f8be92ce 25009 TARGET_64BIT, enable for TARGET_SAHF.
4d9301a8 25010
43f13e2b 250112007-03-08 Martin Michlmayr <tbm@cyrius.com>
25012
25013 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
25014 spurious whitespace from error message.
25015
ede90cc2 250162007-03-08 Volker Reichelt <reichelt@netcologne.de>
25017
25018 PR c++/30852
25019 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
25020
78ba9fed 250212007-03-08 Alexandre Oliva <aoliva@redhat.com>
25022
25023 * c-decl.c (grokdeclarator): Disable warnings for anonymous
25024 bitfields.
25025 * tree-sra.c (instantiate_element): Propagate disabled warnings
25026 from the element itself to the created variable.
25027
b8c362b7 250282007-03-07 Richard Henderson <rth@redhat.com>
25029
25030 PR target/30848
25031 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
25032 silently fix up the stack in the case of a missing register.
25033
89cd0070 250342007-03-07 Paul Brook <paul@codesourcery.com>
25035
25036 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
25037
250382007-03-07 Joseph Myers <joseph@codesourcery.com>
25039
25040 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
25041 New.
25042 (phase1_vrs): Use them.
25043 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
25044 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
25045 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
25046 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
25047 __gnu_Unwind_Restore_WMMXC if required.
25048 (_Unwind_VRS_Pop): Implement iWMMXt support.
25049 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
25050 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
25051 gnu_Unwind_Save_WMMXC): Define.
25052
80fbffcb 250532007-03-07 Richard Sandiford <richard@codesourcery.com>
25054
25055 * config/vxworks.h (vxworks_override_options): Declare.
25056 (VXWORKS_OVERRIDE_OPTIONS): Use it.
25057 * config/vxworks.c: Include target.h and toplev.h.
25058 (vxworks_override_options): New function.
25059 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
25060
00d233e6 250612007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
25062
25063 * config/s390/s390.c (override_options): Don't emit an error when
25064 -mstack-size is used without providing -mstack-guard.
25065 (s390_emit_prologue): Choose stack_guard value automatically if not
25066 provided via command line.
ed69c853 25067 * doc/invoke.texi: Adjust description of -mstack-guard and
25068 -mstack-size.
00d233e6 25069
f60a98e6 250702007-03-07 Richard Sandiford <richard@codesourcery.com>
25071
25072 * config/i386/i386.c (output_set_got): Add a GOT initialization
25073 sequence for VxWorks PIC.
25074 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
25075 around labels as well as symbols. Use gotoff_operand instead
25076 of local_symbolic_operand.
25077 (legitimize_pic_address): Use gotoff_operand instead of
25078 local_symbolic_operand. Use @GOT accesses for labels as
25079 well as symbols.
25080 (ix86_output_addr_diff_elt): Use PC-relative rather than
25081 GP-relative offsets for VxWorks PIC.
25082 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
25083 no_new_pseudos. Check whether the returned register is op0.
25084 * config/i386/i386.md (tablejump): Use PC-relative rather than
25085 GP-relative offsets for VxWorks PIC.
25086 * config/i386/predicates.md (gotoff_operand): New predicate.
25087
2522d9ea 250882007-03-06 Richard Sandiford <richard@codesourcery.com>
25089
25090 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
25091 before defining.
25092 * config/vxworks-dummy.h: New file.
25093 * config/i386/i386.h: Include it.
25094
17db73b6 250952007-03-07 Alexandre Oliva <aoliva@redhat.com>
25096
25097 * dwarf2out.c (is_inlined_entry_point): New
25098 (add_high_low_attributes): Emit DW_AT_entry_pc along with
25099 DW_AT_ranges if the first subblock is the entry point.
25100
a0f31a09 251012007-03-06 David Daney <ddaney@avtrex.com>
25102
25103 * doc/install.texi (mips-*-*): Change recommended binutils
25104 version.
25105
251062007-03-06 Anatoly Sokolov <aesok@post.ru>
80df34ab 25107
25108 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
f8be92ce 25109 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
80df34ab 25110 devices.
25111 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25112 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
25113
5de92639 251142007-03-06 Jan Hubicka <jh@suse.cz>
25115
25116 * errors.h (warning, error, fatal, internal_error): Mark as cold.
ed69c853 25117 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
25118 functions are hot.
5de92639 25119 (probably_cold_bb_p): Cold functions are cold.
25120 (probably_never_executed_bb_p): Cold functions are cold.
25121 (tree_bb_level_predictions): Predict calls to cold functions as not
25122 taken.
25123 (compute_function_frequency): Check hot/cold attributes.
25124 * function.h (function_frequency): Update comments.
25125 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
25126 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
25127 (c_common_att): Add cold and hot.
25128
25129 * doc/extend.texi (hot,cold attributes): Document.
25130
1b7fd1d9 251312007-03-06 Andrew Haley <aph@redhat.com>
25132
25133 * function.c (expand_function_end): Move blockage to just after we
25134 emit the label for the naked return from the function.
25135
9dd4f611 251362007-03-06 Richard Sandiford <richard@codesourcery.com>
25137
25138 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
25139 before redefining.
25140
5fe80ef0 251412007-03-06 Jan Hubicka <jh@suse.cz>
25142
25143 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
25144 loaded for constant large models. Non-large 64bit PIC can do.
25145 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
25146 * cmodel.h: Add LARGE PIC.
25147 * i386.md (UNSPEC_PLTOFF): New.
ed69c853 25148 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
25149 unspecs as needed.
5fe80ef0 25150 (*call_1_rex64): Disable for large models.
25151 (*call_1_rex64_large): New.
25152 (*call_value_1_rex64): Disable for large models.
25153 (*call_value_1_rex64_large): New.
25154 (set_rip_rex4): New.
25155 (set_got_offset_rex64): New.
25156 * predicates.md (constant_call_address_operand): For large model
25157 constant calls are not possible.
25158 * i386-protos.h (construct_plt_address): Declare.
25159 * i386.c (override_options): Accept large models.
25160 (ix86_expand_prologue): Expand large PIC GOT pointer load.
25161 (legitimate_constant_p): Add new UNSPECs.
25162 (legitimate_pic_operand_p): Likewise.
25163 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
25164 (legitimize_pic_address): Do easy RIP relative way for TLS only for
25165 non-large model.
25166 (output_pic_addr_const): Add PLTOFF.
25167 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
25168 (ix86_expand_move): Legitimize pic address when in PIC mode.
25169 (construct_plt_address): New function.
ed69c853 25170 (ix86_expand_call): Offload the address to register and use GOT
25171 pointer for large model.
5fe80ef0 25172 * invoke.texi (mcmodel=large): Update documentation.
25173
e9f301ea 251742007-03-06 Richard Henderson <rth@redhat.com>
25175
25176 * config/i386/i386.c (x86_use_leave, x86_push_memory,
25177 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
25178 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
25179 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
25180 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
25181 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
f8be92ce 25182 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
e9f301ea 25183 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
25184 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
f8be92ce 25185 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
25186 x86_partial_reg_dependency, x86_memory_mismatch_stall,
e9f301ea 25187 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
f8be92ce 25188 x86_sse_partial_reg_dependency, x86_sse_split_regs,
e9f301ea 25189 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
25190 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
25191 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
4209e9f9 25192 x86_schedule, x86_use_bt, x86_pad_returns,
25193 x86_use_xchgb): Merge into ...
e9f301ea 25194 (ix86_tune_features): ... here. New array.
4209e9f9 25195 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
25196 x86_bswap): Merge into ...
e9f301ea 25197 (ix86_arch_features): ... here. New array.
25198 (x86_3dnow_a): Remove.
25199 (x86_accumulate_outgoing_args): Make static.
25200 (x86_arch_always_fancy_math_387): Make static.
25201 (ix86_tune_mask, ix86_arch_mask): Move ...
25202 (override_options): ... to local variables here. Apply the
25203 appropriate mask to each element of ix86_arch_features and
25204 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
25205 as were done in the old macros.
25206 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
25207 * config/i386/i386.h (x86_use_leave, x86_push_memory,
25208 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
25209 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
25210 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
25211 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
25212 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
25213 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
25214 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
25215 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
25216 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
25217 x86_partial_reg_dependency, x86_memory_mismatch_stall,
25218 x86_accumulate_outgoing_args, x86_prologue_using_move,
25219 x86_epilogue_using_move, x86_decompose_lea,
25220 x86_arch_always_fancy_math_387, x86_shift1,
25221 x86_sse_partial_reg_dependency, x86_sse_split_regs,
f8be92ce 25222 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
e9f301ea 25223 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
25224 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
25225 x86_use_incdec, x86_pad_returns, x86_bswap,
25226 x86_partial_flag_reg_stall): Remove.
25227 (enum ix86_tune_indices): New.
25228 (ix86_tune_features): New.
25229 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
25230 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
25231 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
25232 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
25233 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
25234 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
25235 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
25236 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
25237 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
25238 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
25239 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
25240 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
25241 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
25242 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
25243 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
25244 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
25245 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
25246 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
25247 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
25248 TARGET_EXT_80387_CONSTANTS): Use it.
25249 (enum ix86_arch_indices): New.
25250 (ix86_arch_features): New.
25251 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
25252 TARGET_BSWAP): Use it.
25253 (ix86_tune_mask, ix86_arch_mask): Remove.
25254
6ea4242f 252552007-03-06 Joseph Myers <joseph@codesourcery.com>
25256
25257 PR bootstrap/31020
25258 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
25259 Define using $${sysroot_headers_suffix}.
25260 * configure: Regenerate.
25261 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
25262 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
25263 defined.
25264 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
25265 * gcc.c (print_sysroot_headers_suffix): New.
25266 (option_map): Include --print-sysroot-headers-suffix.
25267 (display_help): Mention -print-sysroot-headers-suffix.
25268 (process_command): Handle -print-sysroot-headers-suffix.
25269 (do_spec_1): Append multilib directory to include-fixed path if
25270 sysroot suffixes in use.
25271 (main): Handle -print-sysroot-headers-suffix.
25272 * Makefile.in (start.encap): Don't depend on xlimits.h
25273 (xlimits.h): Remove.
25274 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
25275 limits.h for each multilib in fixinc_list.
25276 (fixinc_list, s-fixinc_list): New.
25277 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
25278 generate them for each multilib in fixinc_list.
25279 (stmp-fixproto): Use include-fixed. Run fixproto for each
25280 multilib in fixinc_list.
25281 (mostlyclean): Don't remove xlimits.h.
25282 (clean): Remove include-fixed.
25283 (real-install-headers-tar, real-install-headers-cpio,
25284 real-install-headers-cp): Don't copy include, only include-fixed.
25285 (install-mkheaders): Depend on fixinc_list. Don't depend on
25286 xlimits.h. Save limits.h files for each multilib in fixinc_list.
25287 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
25288 SYSTEM_HEADER_DIR setting in mkheaders.conf.
25289
aeca5627 252902007-03-06 Jan Hubicka <jh@suse.cz>
25291
25292 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
25293 NANs easilly.
25294
504cf784 252952007-03-06 Richard Sandiford <richard@codesourcery.com>
25296
25297 * configure.ac: Allow tm_file to contain build-directory files.
25298 * configure: Regenerate.
25299 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
25300 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
25301 * config/m68k/print-sysroot-suffix.sh: New file.
25302
e2182937 253032007-03-06 Richard Sandiford <richard@codesourcery.com>
25304
25305 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
25306 of pic_offset_table_rtx if reload_completed.
25307 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
25308 PIC_OFFSET_TABLE_REGNUM.
25309 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
25310 return true.
25311 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
25312 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
25313
5e19f315 253142007-03-06 Richard Sandiford <richard@codesourcery.com>
25315
25316 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
25317 functions that call eh_return.
25318
d68ee78f 253192007-03-06 Richard Sandiford <richard@codesourcery.com>
25320
25321 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
25322 functions that need a constant pool.
25323
350e24f5 253242007-03-06 Richard Sandiford <richard@codesourcery.com>
25325
25326 PR target/28181
25327 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
25328 (m68k_preferred_reload_class): Likewise.
25329 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
25330 (SECONDARY_RELOAD_CLASS): Define.
25331 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
25332 (LIMIT_RELOAD_CLASS): Delete.
25333 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
25334 registers from storing bytes.
25335 (m68k_secondary_reload_class): New function.
25336 (m68k_preferred_reload_class): Likewise.
25337
8ee6107b 253382007-03-06 Richard Sandiford <richard@codesourcery.com>
25339
25340 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
25341 leaf functions.
25342 (m68k_expand_prologue): Likewise.
25343
33fb08b8 253442007-03-06 Richard Sandiford <richard@codesourcery.com>
25345
25346 * config/m68k/m68k-protos.h (output_sibcall): Declare.
25347 (mips_expand_epilogue): Add a bool parameter.
25348 (m68k_legitimize_sibcall_address): Declare.
25349 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
25350 (m68k_expand_epilogue): Add a parameter to select between sibling
25351 and normal epilogues. Only generate a return for the latter.
25352 (m68k_ok_for_sibcall_p): New function.
25353 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
25354 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
25355 (sibcall_value, *sibcall_value): Likewise.
25356 (*call, *call_value): Require !SIBLING_CALL_P.
25357 (epilogue): Update call to m68k_expand_epilogue.
25358 (sibcall_epilogue): New pattern.
25359 * config/m68k/predicates.md (const_call_operand): Say that this
25360 predicate applies to sibling calls too.
25361 (sibcall_operand): New predicate.
25362
e333f915 253632007-03-06 Richard Sandiford <richard@codesourcery.com>
25364
25365 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
25366 alternatives as movsi_cf.
25367 (movsf_cf_hard): Add commentary.
25368
9c47decb 253692007-03-06 Kazu Hirata <kazu@codesourcery.com>
25370 Richard Sandiford <richard@codesourcery.com>
25371
25372 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
25373 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
25374 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
25375 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
25376 as being live on exit from an interrupt function.
25377 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
25378 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
25379 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
25380 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
25381 (m68k_interrupt_function_p): Globalize.
25382 (m68k_compute_frame_layout): Remove reverse mask code.
25383 (m68k_emit_movem, m68k_set_frame_related): New functions.
25384 (m68k_output_function_prologue): Delete in favor of...
25385 (m68k_expand_prologue): ...this new function.
25386 (m68k_output_function_epilogue): Delete in favor of...
25387 (m68k_expand_epilogue): ...this new function.
25388 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
25389 functions.
25390 (print_operand): Handle %?.
25391 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
25392 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
25393 (prologue, epilogue): New patterns.
25394 (return): Turn into a define_expand.
25395 (*return): New pattern, derived from old "return" pattern. Use rte
25396 rather than rts for interrupt functions. Only use rtd if the pop
25397 count is nonzero.
25398 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
25399 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
25400 (link, *link, unlink, *unlink, load_got): Likewise.
25401
b97b0687 254022007-03-06 Richard Sandiford <richard@codesourcery.com>
25403
25404 PR target/23482
25405 PR target/17114
25406 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
25407 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
25408 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
25409 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
25410 and m68k_matches_u_p.
25411 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
25412 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
25413 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
25414 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
25415 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
25416 (REG_STRICT_P): New macro.
25417 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
25418 PCREL_GENERAL_OPERAND_OK.
25419 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
25420 m68k_legitimate_base_reg_p.
25421 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
25422 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
25423 (PIC_CASE_VECTOR_ADDRESS): Update comment.
25424 * config/m68k/m68k.c (m68k_address): New structure.
25425 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
25426 (m68k_decompose_index, m68k_legitimate_constant_address_p)
25427 (m68k_jump_table_ref_p, m68k_decompose_address)
25428 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
25429 (m68k_matches_u_p): New functions.
25430 (print_operand_address): Rewrite to use m68k_decompose_index.
25431
775fab00 254322007-03-05 David Taylor <dtaylor@emc.com>
7fc65810 25433
25434 * gcc.c: Correct copyright date in --version output.
25435
91c6ad74 254362007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25437
25438 * pa.md: In unamed move patterns, disparge copies between general
25439 and floating point registers using '?' modifier. Don't include 'f'
25440 constraint for register preferences in DImode, SImode, HImode and
25441 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
25442 Remove constraints for copies between general and floating registers
25443 in soft-float DFmode pattern.
25444 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
25445 floating register.
f8be92ce 25446 (movsf): Likewise.
91c6ad74 25447
b9fc964a 254482007-03-05 Mike Stump <mrs@apple.com>
25449
4209e9f9 25450 * c-common.c (targetcm): Add.
b9fc964a 25451 * c-opts.c (c_common_handle_option): Handle language specific
25452 target options.
25453 * opts.c (handle_option): Verify language for target options, if
25454 any are given.
25455 * opth-gen.awk: Add CL_LANG_ALL.
25456 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
25457 (TARGETCM_INITIALIZER): Add.
25458 * target.h (struct gcc_targetcm): Add.
25459 (targetcm): Add.
25460 * targhooks.c (default_handle_c_option): Add.
25461 * targhooks.h (default_handle_c_option): Add.
25462 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
25463
25464 * config/darwin.opt (iframework): Add.
25465 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
25466 * config/darwin-c.c (handle_c_option): Add.
25467 (TARGET_HANDLE_C_OPTION): Add.
25468 (targetcm): Add.
25469 * doc/invoke.texi (Darwin Options): Add -iframework.
25470
7e50d9b5 254712007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25472
25473 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
25474 conversion.
25475
11950bdd 254762007-03-05 Ian Lance Taylor <iant@google.com>
25477
25478 * c.opt (fgnu89-inline): New option.
25479 * c-opts.c (c_common_post_options): Set default value for
25480 flag_gnu89_inline.
25481 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
25482 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
25483 inline functions.
25484 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
25485 (grokdeclarator, start_function): Likewise.
25486 * c-cppbuiltin.c (c_cpp_builtins): Define either
25487 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
25488 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
25489 (C Dialect Options): Document -fgnu89-inline.
25490 * doc/extend.texi (Function Attributes): Explain what the
25491 gnu_inline attribute does.
25492 * doc/cpp.texi (Common Predefined Macros): Document
25493 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
25494
c08d658d 254952007-03-05 Ian Lance Taylor <iant@google.com>
25496
25497 PR tree-optimization/31034
25498 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
25499 half-range if the other side is an overflow infinity.
25500
bce94ab5 255012007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
25502
25503 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
25504 (bfin*-linux-uclibc*): New configuration.
25505 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
25506 defining.
25507 * config/bfin/linux.h: New file.
25508 * config/bfin/libgcc-bfin.ver: New file.
25509 * config/bfin/t-bfin-uclinux: New file.
25510 * config/bfin/t-bfin-linux: New file.
25511 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
25512 (TARGET_OS_CPP_BUILTINS): New macro.
25513
55d865b3 255142007-03-05 Richard Guenther <rguenther@suse.de>
25515
25516 * fold-const.c (fold_binary): Remove duplicate folding
25517 of comparison of non-null ADDR_EXPR against null.
25518
d74ee105 255192007-03-05 Richard Guenther <rguenther@suse.de>
4d9301a8 25520 Dorit Nuzman <dorit@il.ibm.com>
d74ee105 25521
25522 PR tree-optimization/26420
25523 * tree-vectorizer.c (vectorize_loops): Bail out early if there
25524 are no loops in the function. Only print the number of
25525 vectorized loops if it is greater than zero or we are supposed
25526 to print information about unvectorized loops.
25527
e24a805c 255282007-03-05 Revital Eres <eres@il.ibm.com>
25529
4d9301a8 25530 * gcc.dg/var-expand1.c: New test.
25531 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
25532 when an accumulator is expanded.
e24a805c 25533
e0913805 255342007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25535
25536 PR other/30465
25537 * c-common.c (convert_and_check): Don't give warnings for
25538 conversion if 'expr' already overflowed.
f8be92ce 25539
626b33bb 255402007-03-04 Roger Sayle <roger@eyesopen.com>
25541
25542 PR middle-end/30744
25543 * fold-const.c (fold_comparison): Enforce type consistency when
25544 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
25545
5e22b9e0 255462007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
25547
25548 * tree-ssa-address.c (create_mem_ref): Do not put an expression
25549 containing a cast to the base of TARGET_MEM_REF.
25550
21e9153c 255512007-03-04 Martin Michlmayr <tbm@cyrius.com>
25552
25553 * tree.c (tree_contains_struct_check_failed): Remove spurious
25554 whitespace from error message.
25555
9744993e 255562007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
25557
25558 PR target/30406
25559 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
25560 instead of precision.
25561
698ff1f0 255622007-03-04 Roman Zippel <zippel@linux-m68k.org>
5e22b9e0 25563 Nathan Sidwell <nathan@codesourcery.com>
698ff1f0 25564
25565 * emit-rtl.c (find_auto_inc): New.
25566 (try_split): recreate REG_INC notes,
25567 Use regular for loops rather than whiles.
25568
34fe62ca 255692007-03-03 Andreas Schwab <schwab@suse.de>
25570
25571 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
25572 * configure: Regenerate.
25573
b3da1868 255742007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25575
234e67b6 25576 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
25577 flag_rounding_math, not flag_unsafe_math_optimizations.
25578
b3da1868 25579 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
25580 fold_build2.
25581 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
25582 alpha_fold_vector_minmax): Likewise.
25583 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
25584 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
25585
723e4ab0 255862007-03-02 Eric Botcazou <ebotcazou@adacore.com>
25587
25588 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
25589 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
25590 if the lhs has side-effects.
25591 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
25592
92691afd 255932007-03-02 Uros Bizjak <ubizjak@gmail.com>
25594
25595 * config/i386/i386.h (TUNEMASK): Remove define.
25596 (ARCHMASK): Remove define.
25597 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
25598 Use ix86_arch_mask variable instead of ARCHMASK.
25599 * config/i386/i386.c (override_options): Ditto.
25600 (standard_80387_constant_p): Ditto.
25601
723e4ab0 256022007-03-02 Ian Lance Taylor <iant@google.com>
c3783c3b 25603
25604 Used signed infinities in VRP.
25605 * tree-vrp.c (uses_overflow_infinity): New static function.
25606 (supports_overflow_infinity): New static function.
25607 (make_overflow_infinity): New static function.
25608 (negative_overflow_infinity): New static function.
25609 (positive_overflow_infinity): New static function.
25610 (is_negative_overflow_infinity): New static function.
25611 (is_positive_overflow_infinity): New static function.
25612 (is_overflow_infinity): New static function.
25613 (overflow_infinity_range_p): New static function.
25614 (compare_values_warnv): New function split out of compare_values.
25615 (compare_value): Call it.
25616 (set_value_range_to_nonnegative): Add overflow_infinity
25617 parameter. Change caller.
25618 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
25619 Change callers.
25620 (vrp_expr_computes_nonzero): Likewise.
25621 (compare_ranges, compare_range_with_value): Likewise.
25622 (compare_name_with_value, compare_names): Likewise.
25623 (vrp_evaluate_conditional): Likewise.
25624 (set_value_range): Handle infinity
25625 (vrp_operand_equal_p, operand_less_p): Likewise.
25626 (extract_range_from_assert): Likewise.
25627 (vrp_int_const_binop): Likewise.
25628 (extract_range_from_binary_expr): Likewise.
25629 (extract_range_from_unary_expr): Likewise.
25630 (extract_range_from_comparison): Likewise.
25631 (extract_range_from_expr): Likewise.
25632 (dump_value_range): Likewise.
25633 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
25634 (test_for_singularity): Likewise.
25635 (vrp_int_const_binop): Remove inline qualifier.
25636 (adjust_range_with_scev): Add comment.
25637 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
25638
085b7aab 256392007-03-02 Diego Novillo <dnovillo@redhat.com>
25640
25641 * tree-ssa-structalias.c (could_have_pointers): Tidy.
25642 (get_constraint_for): Likewise.
25643 (do_structure_copy): Likewise.
25644 (find_func_aliases): Fix references to MODIFY_EXPR.
25645 (intra_create_variable_infos): Tidy.
25646 * tree-ssa-operands.c (add_virtual_operand): Add argument
25647 IS_CALL_SITE.
25648 When adding members of alias sets, if IS_CALL_SITE is true and
25649 the symbol is not call-clobbered, skip it.
25650 Adjust all callers.
25651
3e24a03e 256522007-03-02 Eric Botcazou <ebotcazou@adacore.com>
25653
25654 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
25655 entry by means of emit_insn_at_entry.
25656
21ee4079 256572007-03-02 Richard Henderson <rth@redhat.com>
25658
25659 * expr.h (promoted_input_arg): Remove decl.
25660 * function.c (promoted_input_arg): Merge into ...
25661 * combine.c (setup_incoming_promotions): ... only caller.
25662 Rearrange to avoid double loop.
25663
7fefc6e7 256642007-03-02 Ben Elliston <bje@au.ibm.com>
25665 Peter Bergner <bergner@vnet.ibm.com>
25666 Janis Johnson <janis187@us.ibm.com>
25667
25668 * config/rs6000/dfp.md: New file.
25669 * config/rs6000/rs6000.md: Include dfp.md.
25670 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
25671 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
25672 and TDmode decimal float modes in FP registers.
25673 (num_insns_constant): Likewise.
25674 (rs6000_legitimate_offset_address_p): Likewise.
25675 (rs6000_legitimize_address): Likewise.
25676 (rs6000_legitimize_reload_address): Likewise.
25677 (rs6000_legitimate_address): Likewise.
25678 (rs6000_emit_move): Likewise.
25679 (function_arg_boundary): Likewise.
25680 (function_arg_advance): Likewise.
25681 (rs6000_darwin64_record_arg_recurse): Likewise.
25682 (function_arg): Likewise.
25683 (rs6000_gimplify_va_arg): Likewise.
25684 (rs6000_split_multireg_move): Likewise.
25685 (rs6000_output_function_epilogue): Likewise.
25686 (rs6000_output_function_epilogue): Likewise.
25687 (rs6000_register_move_cost): Likewise.
25688 (rs6000_function_value): Likewise.
25689 (rs6000_libcall_value): Likewise.
25690
e3061c85 256912007-03-02 Richard Sandiford <richard@codesourcery.com>
25692
25693 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
25694
edb474a1 256952007-03-02 Richard Sandiford <richard@codesourcery.com>
25696
25697 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
25698 Use $MULTIDIR to choose between the kernel and RTP headers,
25699 and use $WIND_BASE and $WIND_USR to locate them.
25700
ec7b4e89 257012007-03-02 Uros Bizjak <ubizjak@gmail.com>
25702
25703 * config/i386/i386.c (override_options): Put initialization of
25704 ix86_tune_mask and ix86_arch_mask to the correct place.
25705
3e6cba40 257062007-03-02 Uros Bizjak <ubizjak@gmail.com>
25707 Michael Meissner <michael.meissner@amd.com>
25708
25709 PR target/31019
25710 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
25711 (ARCHMASK): Define.
25712 (TARGET_CMOVE): Use ARCHMASK.
25713 (TARGET_CMPXCHG): Ditto.
25714 (TARGET_CMPXCHG8B): Ditto.
25715 (TARGET_XADD): Ditto.
25716 (TARGET_BSWAP): Ditto.
25717 * config/i386/i386.c (ix86_tune_mask): New global variable.
25718 (ix86_arch_mask): Ditto.
25719 (override_options): Initialize ix86_tune_mask and
25720 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
25721 target_flags.
25722
7a128c21 257232007-03-02 Ben Elliston <bje@au.ibm.com>
25724
25725 PR 30992
25726 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
25727
114a8a4b 257282007-03-02 Joseph Myers <joseph@codesourcery.com>
25729
25730 * target.h (init_dwarf_reg_sizes_extra): New target hook.
25731 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
25732 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
25733 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
25734 hook.
25735 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
25736 rs6000_init_dwarf_reg_sizes_extra): New.
25737 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
25738 SPE register high parts.
25739
ba5147c6 257402007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
25741
25742 * Makefile.in: Add install-pdf target as
25743 copied from automake v1.10 rules.
25744 * configure.ac: Add install-pdf to target list.
25745 * configure: Regenerate.
25746
f1225f6f 257472007-03-01 Paul Brook <paul@codesourcery.com>
25748
25749 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
25750 modes to LDRD for DImode.
25751 (output_move_double): Fixup out of range ldrd/strd.
25752 (vfp_secondary_reload_class): Rename...
25753 (coproc_secondary_reload_class): ... to this. Add wb argument.
25754 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
25755 coproc_secondary_reload_class for CLASS_IWMMXT.
25756 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
25757 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
25758
78f46d45 257592007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
25760
48dc2227 25761 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
ed69c853 25762 unroll factor by the estimated number of iterations.
25763 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
25764 than prefetch latency.
78f46d45 25765
e3ca9bbb 25766 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
25767 decode_caches_intel, detect_caches_intel): New functions.
25768 (host_detect_local_cpu): Use detect_caches_amd and
25769 detect_caches_intel.
25770
64003036 257712007-03-01 Richard Henderson <rth@redhat.com>
25772
25773 * expr.c (emit_move_complex_push): Export.
25774 (emit_move_complex_parts): Split out from ...
25775 (emit_move_complex): ... here.
25776 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
25777 * config/i386/i386.md (movcdi): New.
25778
af0b4c32 257792007-03-01 Uros Bizjak <ubizjak@gmail.com>
25780
25781 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
25782 size of mode1 to check for tieable modes in MMX case.
25783
e0ab7256 257842007-03-01 Richard Sandiford <richard@codesourcery.com>
25785
25786 * Makefile.in (rtlanal.o): Depend on tree.h.
25787 * rtl.h (offset_within_section_p, split_const): Declare.
25788 * rtlanal.c: Include tree.h.
25789 (offset_within_block_p): New function, taken from
25790 mips_offset_within_object_p.
25791 (split_const): New function, taken from mips_split_const.
25792 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
25793 Declare.
25794 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
25795 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
25796 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
25797 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
25798 (m68k_illegitimate_symbolic_constant_p): New function.
25799 * config/m68k/m68k.md (movsi): Remove misleading predicates.
25800 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
25801 symbolic constant that might be outside the symbol's section,
25802 move the symbol first and then add the offset.
25803 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
25804 Override.
25805 * config/mips/mips.c (mips_split_const): Delete.
25806 (mips_offset_within_object_p): Delete.
25807 (mips_symbolic_constant_p): Use offset_within_section_p and
25808 split_const instead of mips_offset_within_object_p and
25809 mips_split_const.
25810 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
25811 (mips_legitimize_const_move, print_operand_reloc)
25812 (mips_dangerous_for_la25_p): Use split_const instead of
25813 mips_split_const.
25814
32abc985 258152007-02-28 Eric Christopher <echristo@apple.com>
25816
25817 * Makefile.in (install-include-dir): Don't rm -rf include.
25818
fb700337 258192007-02-28 Richard Guenther <rguenther@suse.de>
25820
25821 PR middle-end/30364
25822 * fold-const.c (fold_binary): Do not associate expressions
25823 with more than one variable for integer types that do not wrap.
25824
d01f58f9 258252007-02-28 Sandra Loosemore <sandra@codesourcery.com>
25826
25827 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
25828 Delete, and replace with...
25829 (fold_builtin_call_array): This. Update callers to use it.
25830 * fold-const.c (fold_build_call_list): Delete, and replace with...
25831 (fold_build_call_array): This.
25832 (fold_build_call_list_initializer): Delete, and replace with...
25833 (fold_build_call_array_initializer): This.
25834 * tree.h: Update declarations to reflect above changes.
25835
25836 * c-typeck.c (build_function_call): Store converted arguments
25837 in a stack-allocated array instead of building a list.
25838 (convert_arguments): Store arguments in the array passed in as an
25839 argument, and return the actual number of arguments.
25840 * c-format.c: (check_function_format): Pass arguments in an
25841 array instead of a list.
25842 * c-common.c (check_function_nonnull): Likewise.
25843 (check_function_sentinel): Likewise.
25844 (check_function_arguments): Likewise.
25845 * c-common.h: Update declarations to reflect above changes.
25846
5331f35a 258472007-02-28 Jan Hubicka <jh@suse.cz>
25848
25849 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
25850 PRED_NEGATIVE_RETURN): Update outcomes.
25851
6c6f16e5 258522007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
25853
25854 * calls.c (emit_library_call_value_1): Handle partial registers
25855 correctly when building up CALL_INSN_FUNCTION_USAGE.
32abc985 25856
d8e78641 258572007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25858
25859 * pa/predicates.md (move_src_operand): Allow zero for mode.
25860 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
25861 move pattern.
25862
d7aff3ba 258632007-02-27 Uros Bizjak <ubizjak@gmail.com>
25864
25865 PR target/30970
25866 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
25867 *movv2df_internal): Enable pattern only for valid operand
25868 combinations.
25869 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
25870 tie only 128bit modes. For MMX registers, tie only 64bit modes.
25871
e9b20616 258722007-02-27 Mike Stump <mrs@apple.com>
25873
25874 * config/darwin-crt3.c: Avoid compilation when compiling for a
25875 kext multilib.
25876
d3036f42 258772007-02-27 Joseph Myers <joseph@codesourcery.com>
25878
25879 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
25880 FIXED_INCLUDE_DIR.
25881 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
25882 for fixed headers and limits.h.
25883 (install-include-dir, install-headers-tar, install-headers-cpio,
25884 install-headers-cp, real-install-headers-tar,
25885 real-install-headers-cpio, real-install-headers-cp): Handle
25886 include-fixed as well as include.
25887 (install-mkheaders): Don't install files that go only in include
25888 not include-fixed.
25889 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
25890 from GCC_INCLUDE_DIR.
25891 * gcc.c (process_command): Remove special -BstageN/ handling.
25892 (do_spec_1): Add include-fixed directories.
25893
762d9e5d 258942007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
25895
25896 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
25897 _smulsi3_highpart.
25898 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
25899 New functions.
25900 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
25901 patterns.
25902
28fbc04f 259032007-02-27 Mark Mitchell <mark@codesourcery.com>
25904
25905 * c-common.c (get_priority): Add check for
25906 SUPPORTS_INIT_PRIORITY.
25907
3300e462 259082007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
25909
25910 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
25911
917c4036 25912 * config/bfin/bfin.c: Include "cfglayout.h".
25913 (MAX_LSETUP_DISTANCE): New macro.
25914 (struct loop_info): New members incoming, incoming_src and
25915 incoming_dest. Delete member predecessor.
25916 (length_for_loop): New function.
25917 (bfin_optimize_loop): Handle more different loop structures.
25918 (bfin_discover_loop): Rework detection of predecessor blocks by
25919 examining incoming edges.
25920 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
25921 bfin_reorg_loops.
25922 (bfin_reorder_loops): New function.
25923 (bfin_reorg_loops): Use these three new functions.
25924
f141221f 25925 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
25926 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
25927 (CONSTRAINT_LEN): Add entry for 'q'.
25928 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
25929 Add 'q' constraints.
25930 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
25931 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
25932
25933 * config/bfin/bfin.md (add_with_carry): New pattern.
25934 (s_or_u, su_optab, su_modifier): New code macros/attrs.
25935 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
25936 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
25937 support unsigned multiplies too. Removed incorrect commutativity from
25938 operand 1 constraint where appropriate.
25939 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
25940 patterns.
25941 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
25942 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
25943 New patterns.
25944 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
25945 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
25946 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
25947 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
25948 usmulhisi_hh_huh): New patterns.
25949
dd84684d 25950 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
25951 lshifthi3): Fix output template to use half reg for operand 2.
25952
7943de3b 25953 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
25954 instead of R2.
25955
e829ba77 25956 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
25957
ac30c31e 259582007-02-27 Andreas Schwab <schwab@suse.de>
25959
25960 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
25961
f657a7ae 259622007-02-27 Jan Hubicka <jh@suse.cz>
25963
25964 * predict.c (last_basic_block_p): Remove.
25965 (tree_estimate_probability): Update return heuristic for commonized
25966 return blocks.
25967
3a8843c6 259682007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
25969
25970 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
25971
8a667fb9 259722007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
25973
25974 * doc/include/gcc-common.texi (versionsubtitle): New macro.
25975 * doc/cpp.texi: Standardize title page.
25976 * doc/cppinternals.texi: Likewise.
25977 * doc/gcc.texi: Standardize title page, remove version number
25978 from copyright page.
25979 * doc/gccint.texi: Likewise.
25980 * doc/install.texi: Standardize title page, add table of
25981 contents.
25982
4a4e4487 259832007-02-26 Jan Hubicka <jh@suse.cz>
25984
25985 * predict.def: Set outcomes according to more recent results.
25986 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
25987 Remove dead predictors.
25988 * predict.c (return_prediction): Fix pasto.
25989
9676249d 259902007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
25991
25992 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
25993 change; avoid a memory leak when returning early.
32abc985 25994
6c181a06 259952007-02-26 Mark Mitchell <mark@codesourcery.com>
25996
2970ab3d 25997 * c-decl.c (static_ctors): Move to c-common.c.
25998 (static_dtors): Likewise.
25999 (finish_function): Use c_record_cdtor_fn.
26000 (build_cdtor): Move to c-common.c.
26001 (c_write_global_declarations): Use c_build_cdtor_fns.
26002 * c-common.h (static_ctors): Declare.
26003 (static_dtors): Likewise.
26004 (c_record_cdtor_fn): Likewise.
26005 (c_build_cdtor_fns): Likewise.
26006 * c-common.c (static_ctors): New variable.
26007 (static_dtors): Likewise.
26008 (c_record_cdtor_fn): New function.
26009 (build_cdtor): Move from c-decl.c
26010 (c_build_cdtor_fns): New function.
26011
6c181a06 26012 * output.h (assemble_addr_to_section): Declare.
26013 (get_cdtor_priority_section): Likewise.
26014 * varasm.c (assemble_addr_to_section): New function.
26015 (get_cdtor_priority_section): Likewise.
26016 (default_named_section_asm_out_destructor): Use them.
26017 (destor_dtor_section_asm_out_destructor): Likewise.
26018 (default_named_section_asm_out_constructor): Likewise.
26019 (default_ctor_section_asm_out_constructor): Likewise.
26020 * config.gcc (*-*-vxworks*): Include vxworks.o.
26021 * config/t-vxworks (vxworks.o): New target.
26022 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
26023 (TARGET_ASM_CONSTRUCTOR): Define.
26024 (TARGET_ASM_DESTRUCTOR): Likewise.
26025 (vxworks_asm_out_constructor): Declare.
26026 (vxworks_asm_out_destructor): Likewise.
26027
26028 * c-common.c (get_priority): Check that we have not just an
26029 INTEGER_CST, but an integer constant with integeral type.
26030
2c83afb0 260312007-02-25 Uros Bizjak <ubizjak@gmail.com>
26032
26033 PR tree-optimization/30938
26034 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
26035 use &dt[nargs-1] instead of &dt[nargs] in the call to
26036 vect_is_simple_use().
26037
cc6757ec 260382007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
26039
26040 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
26041 from register elimination as PRE_MODIFY / POST_MODIFY increments.
26042 Do not attempt to handle MEM inside auto-inc expressions.
26043 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
26044 of a register modified by an auto-inc expression. However, do handle
26045 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
26046 (elimination_effects): Prohibit elimination of a register modified
26047 by an auto-inc expression. Disable register elimination rules whose
26048 target register is modified by an auto-inc expression with variable
26049 increment.
26050
d500fef3 260512007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
26052
26053 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
26054 off-by-one error.
26055 (array_at_struct_end_p): New function.
26056 (idx_infer_loop_bounds): Use it.
26057 (estimate_numbers_of_iterations_loop): Export.
26058 * predict.c (predict_loops): Use estimated_loop_iterations_int.
26059 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
26060 (tree_estimate_probability): Call record_loop_exits.
26061 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
26062 (estimated_loop_iterations, estimated_loop_iterations_int,
26063 estimated_loop_iterations_tree): New functions.
26064 (analyze_siv_subscript_cst_affine,
26065 compute_overlap_steps_for_affine_1_2,
26066 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
26067 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
26068 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
26069 (PRED_LOOP_ITERATIONS_GUESSED): New.
26070 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
26071 * cfgloop.h (estimate_numbers_of_iterations_loop,
26072 estimated_loop_iterations_int): Declare.
26073
9af7fd5b 260742007-02-25 Mark Mitchell <mark@codesourcery.com>
26075
26076 * doc/extend.texi: Document optional priority argument to
26077 constructors and destructors.
26078 * tree.c (init_priority_for_decl): Adjust GTY markers.
26079 (init_ttree): Use priority-info hash functions for
26080 init_priority_for_decl.
26081 (tree_map_eq): Rename to ...
26082 (tree_map_base_eq): ... this.
26083 (tree_map_marked_p): Rename to ...
26084 (tree_map_base_marked_p): ... this.
26085 (tree_map_base_hash): New function.
26086 (decl_init_priority_lookup): Rework.
26087 (decl_fini_priority_lookup): New function.
26088 (decl_priority_info): New function.
26089 (decl_init_priority_insert): Use it.
26090 (decl_fini_priority_insert): Likewise.
26091 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
26092 hierarchy.
26093 (decl_restrict_base_insert): Likewise.
26094 (decl_debug_expr_insert): Likewise.
26095 (decl_value_expr_lookup): Likewise.
26096 (decl_value_expr_insert): Likewise.
26097 * tree.h (priority_type): New type.
26098 (decl_init_priority_lookup): Use priority_type.
26099 (decl_fini_priority_lookup): New function.
26100 (decl_init_priority_insert): Use priority_type.
26101 (decl_fini_priority_insert): New function.
26102 (DECL_HAS_INIT_PRIORITY): Tweak comments.
26103 (DECL_INIT_PRIORITY): Likewise.
26104 (SET_DECL_INIT_PRIORITY): Add comment.
26105 (DECL_FINI_PRIORITY): New macro.
26106 (SET_DECL_FINI_PRIORITY): Likewise.
26107 (DEFAULT_INIT_PRIORITY): Document.
26108 (MAX_INIT_PRIORITY): Likewise.
26109 (MAX_RESERVED_INIT_PRIORITY): Likewise.
26110 (tree_map_base): New type.
26111 (tree_map_base_eq): New function.
26112 (tree_map_base_hash): Likewise.
26113 (tree_map_base_marked_p): Likewise.
26114 (tree_map): Inherit from tree_map_base.
26115 (tree_map_eq): Make it a macro.
26116 (tree_map_marked_p): Likewise.
26117 (tree_int_map): Inherit from tree_map_base.
26118 (tree_int_map_eq): Make it a macro.
26119 (tree_int_map_hash): Likewise.
26120 (tree_int_map_marked_p): Likewise.
26121 (tree_priority_map): New type.
26122 (tree_priority_map_eq): New macro.
26123 (tree_priority_map_hash): Likewise.
26124 (tree_priority_map_marked_p): Likewise.
26125 * varasm.c (emults_decl): Adjust for refactoring of tree_map
26126 hierarchy.
26127 (emutls_common_1): Likewise.
26128 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
26129 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
26130 of tree_map hierarchy.
26131 * tree-cfg.c (move_stmt_r): Likewise.
26132 (new_label_mapper): Likewise.
26133 * c-tree.h (c_expand_body): Move to ...
26134 * c-common.h (c_expand_body): ... here.
26135 * c-decl.c (c_expand_body): Move to ...
26136 * c-common.c (c_expand_body): ... here.
26137 (c_common_attribute_table): Allow 1 argument for the constructor
26138 and destructor attributes.
26139 (get_priority): New function.
26140 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
26141 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
26142
fc128a8d 261432007-02-24 Jan Hubicka <jh@suse.cz>
26144
26145 PR middle-end/30509
ed69c853 26146 * tree-inline.c (copy_bb): Produce exact copy of EH info when
26147 copying for inlining.
fc128a8d 26148
1a4d0a29 261492007-02-24 Uros Bizjak <ubizjak@gmail.com>
26150 Jan Hubicka <jh@suse.cz>
26151
26152 PR target/30778
26153 * i386.c (counter_mode): New function.
26154 (expand_set_or_movmem_via_loop): Use it.
26155 (expand_movmem_epilogue): Likewise; fix pasto.
26156 (ix86_expand_movmem): Do emit guard even for constant counts.
26157 (ix86_expand_setmem): Likewise.
26158
273e3156 261592007-02-25 Nick Clifton <nickc@redhat.com>
26160
26161 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
26162 (JUMP_TABLES_IN_TEXT_SECTION): Define.
26163
909efa5d 261642007-02-24 Uros Bizjak <ubizjak@gmail.com>
26165
26166 PR target/30770
26167 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
26168 count argument with 0x10, not with 0x16.
26169 (expand_setmem_epilogue): Ditto.
26170
b830255d 261712007-02-24 Mike Stump <mrs@apple.com>
26172
26173 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
26174 symbols.
26175
428b02b4 261762007-02-24 Richard Guenther <rguenther@suse.de>
26177
26178 PR middle-end/30951
26179 * fold-const.c (fold_binary): Fold x +- CST op x for
26180 EQ_EXPR and NE_EXPR.
26181
40f89ebf 261822007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26183
26184 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
26185
55680bef 261862007-02-24 Jan Hubicka <jh@suse.cz>
26187
26188 * cgraphunit.c (decide_is_function_needed): Honor
26189 -fkeep-inline-functions.
26190
ebf8b4f5 261912007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26192
26193 * builtins.c (fold_builtin_modf): New.
26194 (fold_builtin_2): Use it.
26195
731d95c8 261962007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
26197
26198 * loop-iv.c (implies_p): Detect additional cases where A implies B.
26199 (determine_max_iter): Take additional LOOP arg; all callers changed.
26200 Lose broken logic dealing with PLUS. Try to limit the upper bound by
26201 one using simplifications.
1887df24 26202 (simplify_using_initial_values): Return if the expression becomes
26203 invalid due to altered regs.
731d95c8 26204
b9bbc279 262052007-02-23 DJ Delorie <dj@redhat.com>
26206
26207 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
26208
f1148292 262092007-02-23 Mike Stump <mrs@apple.com>
26210
26211 * tlink.c (scan_linker_output): Parse linker messages from
26212 darwin9's linker better.
26213
11cc227f 262142007-02-23 Steve Ellcey <sje@cup.hp.com>
26215
26216 PR debug/29614
48dc2227 26217 * varpool.c (varpool_assemble_pending_decls): Set
11cc227f 26218 varpool_last_needed_node to null.
26219
cf9d2c34 262202007-02-23 DJ Delorie <dj@redhat.com>
26221
26222 * config/i386/i386.c (ix86_data_alignment): Don't specify an
26223 alignment bigger than the object file can handle.
26224
a3ee7d9b 262252007-02-23 Uros Bizjak <ubizjak@gmail.com>
26226
26227 PR target/30825
26228 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
26229 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
26230 (*movsf_1): Penalize MMX moves.
26231
ee445de8 262322007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
26233
26234 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
26235 2^32-1 or more times unless flag_unsafe_loop_optimizations.
26236
c9d59418 26237 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
26238
cb2b9385 262392007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26240
26241 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
26242 (fold_builtin_1): Use them.
26243 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
26244 BUILT_IN_SIGNIFICAND.
26245
9d711a59 262462007-02-23 H.J. Lu <hongjiu.lu@intel.com>
26247
26248 * config/i386/i386.c (bdesc_1arg): Initialize
26249 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
26250 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
26251 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
26252 and IX86_BUILTIN_MOVSLDUP.
26253
deb3d513 262542007-02-22 Paolo Bonzini <bonzini@gnu.org>
26255
26256 PR rtl-optimization/30841
9d711a59 26257 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
deb3d513 26258
3838b9ae 262592007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26260
26261 * builtins.c (fold_builtin_frexp): New.
26262 (fold_builtin_2): Use it.
26263
0305c755 262642007-02-22 Mark Mitchell <mark@codesourcery.com>
26265
d0252125 26266 * doc/invoke.texi (Spec Files): Document getenv spec function.
26267
0305c755 26268 * gcc.c (getenv_spec_function): New function.
26269 (static_spec_functions): Add it.
26270 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
26271 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
26272 header files.
26273
facb12b2 262742007-02-22 Michael Matz <matz@suse.de
26275
26276 PR c++/29433
26277 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
26278 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
26279
3ab1d710 262802007-02-22 Ian Lance Taylor <iant@google.com>
26281
26282 PR debug/30898
26283 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
26284 (mem_loc_descriptor): Call it.
26285
d8454216 262862007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
facb12b2 26287 Ira Rosen <irar@il.ibm.com>
d8454216 26288
26289 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
26290
3326680b 262912007-02-22 Ira Rosen <irar@il.ibm.com>
26292
26293 PR tree-optimization/30843
32abc985 26294 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3326680b 26295 stores only after all the group is vectorized.
26296
bfe8bfe9 262972007-02-22 Dorit Nuzman <dorit@il.ibm.com>
26298
26299 PR tree-optimization/30858
26300 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
26301 in the reduction cycle have a single use in the loop.
26302 * tree-vectorizer.h (relevant): Add documentation.
26303
267a6571 263042007-02-20 Mike Stump <mrs@apple.com>
26305
26306 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
26307 * configure: Regenerate.
26308
5df189be 263092007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
26310
26311 Change the defaults of some parameters and options.
26312 * config/spu/spu-protos.h (spu_optimization_options): Declare.
26313 * config/spu/spu.c (spu_optimization_options): Add.
26314 (spu_override_options): Change params in spu_optimization_options.
26315 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
26316
26317 Register 127 is only 16 byte aligned when used as a frame pointer.
26318 * config/spu/spu-protos.h (spu_init_expanders): Declare.
26319 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
26320 HARD_FRAME_POINTER_REGNUM.
48dc2227 26321 (spu_legitimate_address): Use regno_aligned_for_reload.
26322 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
5df189be 26323 aligned when frame_pointer_needed is true.
26324 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
26325 to 8 bits.
26326 * config/spu/spu.h (INIT_EXPANDERS): Define.
26327
26328 Make sure shift and rotate instructions have valid immediate operands.
26329 * config/spu/predicates.md (spu_shift_operand): Remove.
26330 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
267a6571 26331 * config/spu/constraints.md (W, O): Extend range.
5df189be 26332 * config/spu/spu.md (umask, nmask): Define.
26333 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
26334 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
26335 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
26336 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
26337 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
48dc2227 26338 (lshr<mode>3_reg): Fix rtl description.
5df189be 26339
26340 Make sure mulhisi immediate operands are valid.
26341 * config/spu/predicates.md (imm_K_operand): Add.
26342 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
26343
26344 Generate constants using fsmbi and andi.
26345 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
26346 (print_operand, spu_split_immediate, classify_immediate,
26347 fsmbi_const_p): Handle IC_FSMBI2.
26348
26349 Correctly handle a CONST_VECTOR containing symbols.
26350 * config/spu/spu.c (print_operand): Handle HIGH correctly.
26351 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
26352 (immediate_load_p): Allow symbols that use 2 instructions to create.
48dc2227 26353 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
5df189be 26354 with symbols when flag_pic is set.
26355 (const_vector_immediate_p): New.
26356 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
26357 accept a CONST_VECTOR with symbols.
26358 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
26359 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
26360 correctly.
26361 * config/spu/spu.md (high, low): Delete.
26362 (low_<mode>): Define.
26363
26364 Remove INTRmode and INTR_REGNUM, which didn't work.
26365 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
26366 of INTR_REGNUM.
26367 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
26368 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
26369 peephole2 pattern): Don't use INTR or 131.
26370 (movintrcc): Delete.
26371 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
26372 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
26373 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
26374 (UNSPEC_SET_INTR): Add.
26375 * config/spu/spu-modes.def (INTR): Remove.
26376
26377 More accurate warnings about run-time relocations.
26378 * config/spu/spu.c (reloc_diagnostic): Test in_section.
26379
26380 Correctly warn about immediate arguments to specific intrinsics.
26381 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
26382 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
26383 the instruction predicate.
26384
26385 Fix tree check errors with latest update.
26386 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
26387 CALL_EXPR_ARG.
26388 (spu_expand_builtin): Use CALL_EXPR_FN.
26389
26390 Add missing specific intrinsics.
26391 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
26392 si_bislede.
26393 * config/spu/spu_internals.h: Ditto.
26394
26395 Fix incorrect operand modifiers.
48dc2227 26396 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
26397 * config/spu/spu.md (xor<mode>3): Change %S to %J.
5df189be 26398
26399 Optimize one case of zero_extend of a vec_select.
48dc2227 26400 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
5df189be 26401
26402 Accept any immediate for hbr.
48dc2227 26403 * config/spu/spu.md (hbr): Change s constraints to i.
5df189be 26404
7dd28afd 264052007-02-21 Paul Brook <paul@codesourcery.com>
26406
26407 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
26408 condexec_count when skipping USE and CLOBBER.
26409
e8831472 264102007-02-21 Nick Clifton <nickc@redhat.com>
26411
26412 * common.opt (Warray-bounds): Add Warning attribute.
26413 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
26414 Likewise.
26415 (fsized-zeroes): Add Optimization attribute.
26416 (fsplit-wide-types, ftree-scev-cprop): Likewise.
26417 * c.opt (Wc++0x-compat): Add Warning attribute.
26418
403ac203 264192007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
26420
26421 PR middle-end/30761
26422 * reload1.c (eliminate_regs_in_insn): In the single_set special
26423 case, attempt to re-recognize the insn before falling back to
26424 having reload fix it up.
26425
1da85181 264262007-02-20 Eric Christopher <echristo@gmail.com>
26427
26428 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
26429 Rewrite accordingly.
26430 (frv_read_iacc_argument): Ditto.
26431 (frv_expand_set_builtin): Take a call instead of arglist, update for
26432 above changes.
26433 (frv_expand_unop_builtin): Ditto.
26434 (frv_expand_binop_builtin): Ditto.
26435 (frv_expand_cut_builtin): Ditto.
26436 (frv_expand_binopimm_builtin): Ditto.
26437 (frv_expand_voidbinop_builtin): Ditto.
26438 (frv_expand_int_void2arg): Ditto.
26439 (frv_expand_prefetches): Ditto.
26440 (frv_expand_voidtriop_builtin): Ditto.
26441 (frv_expand_voidaccop_builtin): Ditto.
26442 (frv_expand_load_builtin): Ditto.
26443 (frv_expand_store_builtin): Ditto.
26444 (frv_expand_mdpackh_builtin): Ditto.
26445 (frv_expand_mclracc_builtin): Ditto.
26446 (frv_expand_mrdacc_builtin): Ditto.
26447 (frv_expand_mwtacc_builtin): Ditto.
26448 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
26449 calls for above.
26450
3230b740 264512007-02-20 Janis Johnson <janis187@us.ibm.com>
26452
26453 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
26454 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
26455 cmpb instruction.
26456 (HAVE_GAS_DFP): Check for assembler support of decimal floating
26457 point instructions.
26458 * configure: Regenerate.
26459 * config.in: Regenerate.
26460 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
26461 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
26462 masks to power6 and power6x and to POWERPC_MASKS.
26463 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26464 _ARCH_PWR6.
26465 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
26466 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
26467 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
26468 Access PROTOTYPE as variable, not mask.
26469
f16feee2 264702007-02-20 Steven Bosscher <steven@gcc.gnu.org>
26471
26472 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
26473 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
26474 * combine.c (adjust_for_new_dest): Use it.
26475 * postreload.c (reload_combine): Likewise.
26476
e4f51d19 264772007-02-20 Steven Bosscher <steven@gcc.gnu.org>
26478
26479 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
26480 notes on an insn with multiple sets, even if single_set returns
26481 non-NULL for that insn.
26482
f64551e5 264832007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26484
26485 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
26486 scalbn and scalbln.
26487
b9351f51 264882007-02-20 Geoffrey Keating <geoffk@apple.com>
26489
26490 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
26491 if user didn't pass it.
26492 * config/i386/darwin.h (CC1_SPEC): Likewise.
26493 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
26494 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
26495 -mmacosx-version-min.
26496
73a954a1 264972007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26498 Uros Bizjak <ubizjak@gmail.com>
26499
26500 * optabs.h (enum optab_index): Add new OTI_scalb.
26501 (scalb_optab): Define corresponding macro.
26502 * optabs.c (init_optabs): Initialize scalb_optab.
26503 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
26504 patterns.
26505 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
26506 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
26507 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
26508 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
26509 flag_unsafe_math_optimizations is set.
26510
26511 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
26512 to implement scalbf, scalb and scalbl built-ins as inline x87
26513 intrinsics.
26514
f9a354ab 265152007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
267a6571 26516 DJ Delorie <dj@redhat.com>
f9a354ab 26517
26518 PR other/30824
26519 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
26520 (diagnostic_report_diagnostic): ... here, and turn them into real
26521 errors. If warnings are inhibited, no need to do anything.
26522
ef1ec073 265232007-02-20 Uros Bizjak <ubizjak@gmail.com>
26524
26525 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
26526 better code generation.
26527
b6ec720b 265282007-02-20 Ben Elliston <bje@au.ibm.com>
26529
26530 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
26531
85c36fd1 265322007-02-20 Kazu Hirata <kazu@codesourcery.com>
26533
26534 * config/alpha/alpha.c, config/alpha/alpha.md,
26535 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
26536 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
26537 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
26538 config/arm/lib1funcs.asm: Follow spelling conventions.
26539
5b865faf 26540 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
26541 config/fr30/fr30.md, config/i386/i386.h,
26542 config/iq2000/iq2000.h, config/iq2000/predicates.md,
26543 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
26544 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
26545 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
26546 config/rs6000/altivec.md, config/rs6000/rs6000.c,
26547 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
26548 config/sparc/sparc.c, config/sparc/sparc.h,
26549 config/sparc/sparc.md, config/spu/constraints.md,
26550 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
26551 conventions.
26552
53861d5d 265532007-02-20 Alan Modra <amodra@bigpond.net.au>
26554
26555 PR target/29943
26556 * varasm.c (use_blocks_for_decl_p): Return false for decls with
26557 alias attribute.
26558
87237fb6 265592007-02-19 Kazu Hirata <kazu@codesourcery.com>
26560
26561 * doc/invoke.texi (-ftree-lrs): Remove.
26562
1bf2539a 265632007-02-19 Diego Novillo <dnovillo@redhat.com>
26564
26565 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
26566 NULL.
26567
f3a91845 265682007-02-19 Lee Millward <lee.millward@codesourcery.com>
26569
26570 * config/ia64/ia64.c (ia64_expand_builtin): Use the
1da85181 26571 new CALL_EXPR_FN macro for retrieving the function
f3a91845 26572 declaration of the input expression.
1da85181 26573
ede5a481 265742007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26575
26576 * c.opt (Waddress): New.
26577 * common.opt (Walways-true): Delete.
26578 (Wstring-literal-comparison): Delete.
26579 * doc/invoke.texi (Warning Options): Delete -Walways-true and
26580 -Wstring-literal-comparison. Add -Waddress.
26581 (Waddress): New.
26582 (Walways-true): Delete.
26583 (Wstring-literal-comparison): Delete.
26584 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
26585 consistently instead of -Walways-true in example.
26586 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
26587 * c-typeck.c (parser_build_binary_op): Replace
26588 -Wstring-literal-comparison and -Walways-true with -Waddress.
26589 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
26590 with -Waddress.
1da85181 26591
2debe3a3 265922007-02-19 Eric Botcazou <ebotcazou@adacore.com>
26593
26594 * tree-cfg.c (dump_function_to_file): Be prepared for functions
26595 without DECL_STRUCT_FUNCTION initialized.
26596
f62a072c 265972007-02-19 Eric Botcazou <ebotcazou@adacore.com>
26598
26599 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
26600 due to calls to functions taking pointers as parameters.
26601
39018906 266022007-02-19 Richard Henderson <rth@redhat.com>
26603
ef1ec073 26604 PR debug/29558
26605 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
26606 in memory.
39018906 26607
347301d6 266082007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
26609
26610 * config/s390/s390.c (s390_call_saved_register_used,
26611 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
26612 accessed to the new scheme.
26613
683d2985 266142007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26615
26616 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
26617 (cris_print_index, cris_print_operand, cris_print_operand_address)
26618 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
26619 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
26620 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
26621 GET_CODE () == xxx.
26622 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
26623 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
26624 GO_IF_LEGITIMATE_ADDRESS): Ditto.
26625 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
26626 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
26627 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
26628 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
26629 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
26630 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
26631 (uminsi3, call, call_value): Ditto.
26632 (define_split: indir_to_reg_split, unnamed): Ditto.
26633
435c1032 266342007-02-19 Dorit Nuzman <dorit@il.ibm.com>
26635
26636 PR tree-optimization/30975
26637 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
26638 wrong assert.
26639
ec72623f 266402007-02-18 Eric Christopher <echristo@gmail.com>
26641
26642 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
26643 Remove use of arglist.
26644 (mips_expand_builtin): Remove use of arglist, pass in expr.
26645 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
26646 (mips_expand_builtin_movtf): Ditto.
26647 (mips_expand_builtin_compare): Ditto.
26648
33536fd1 266492007-02-19 Alexandre Oliva <aoliva@redhat.com>
26650
26651 * tree-sra.c (sra_build_assignment): Replace assertion
26652 checking with a comment explaining why it can't be done.
26653
f43a1a60 266542007-02-18 Sandra Loosemore <sandra@codesourcery.com>
26655
26656 PR middle-end/30833
26657 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
26658 during CALL_EXPR representation conversion.
26659 * tree-ssa-propagate.c (set_rhs): Likewise.
26660
a42c3d85 266612007-02-19 Alexandre Oliva <aoliva@redhat.com>
26662
26663 * tree-sra.c (sra_build_assignment): Disable assertion checking
26664 for now.
26665
a0147880 266662007-02-18 Roger Sayle <roger@eyesopen.com>
26667
26668 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
26669 instead of calling build2 with a GIMPLE_MODIFY_STMT.
26670 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
26671 Likewise.
26672 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
26673 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
26674 gimplify_init_ctor_eval_range, gimple_push_cleanup,
ec72623f 26675 gimplify_omp_for, gimplify_omp_atomic_pipeline,
a0147880 26676 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
26677 force_gimple_operand): Likewise.
26678 * ipa-cp.c (constant_val_insert): Likewise.
26679 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
26680 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
26681 perfect_nestify): Likewise.
26682 * langhooks.c (lhd_omp_assignment): Likewise.
26683 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
26684 lower_copyprivate_clauses, lower_send_clauses,
26685 lower_send_shared_vars, expand_parallel_call,
26686 expand_omp_for_generic, expand_omp_for_static_nochunk,
26687 expand_omp_for_static_chunk, expand_omp_sections,
26688 lower_omp_single_copy, lower_omp_for_lastprivate,
26689 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
26690 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
26691 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
26692 Likewise.
26693
a61b32a8 266942007-02-19 Kazu Hirata <kazu@codesourcery.com>
26695
26696 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
26697 config/sh/sh.md: Follow spelling conventions.
26698
5f858eac 26699 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
26700 config/frv/predicates.md: Follow spelling conventions.
26701
312b8e4a 26702 * config/m68k/linux-unwind.h: Fix a comment typo.
26703 * target.h: Follow spelling conventions.
26704
d7517e93 267052007-02-18 Roger Sayle <roger@eyesopen.com>
26706
26707 PR rtl-optimization/28173
48dc2227 26708 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
d7517e93 26709 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
26710 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
26711 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
26712 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
26713
7587301b 267142007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26715
26716 * builtins.c (fold_builtin_load_exponent): New.
26717 (fold_builtin_2): Use it.
26718
896bc914 267192007-02-18 Steven Bosscher <steven@gcc.gnu.org>
26720
26721 PR rtl-optimization/30773
26722 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
26723 if we fail to attach a REG_EQUIV note.
26724
de70c973 267252007-02-18 David Edelsohn <edelsohn@gnu.org>
26726 Roger Sayle <roger@eyesopen.com>
26727
26728 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
26729
cd46caee 267302007-02-18 Sandra Loosemore <sandra@codesourcery.com>
26731
26732 * calls.c (initialize_argument_information): Pass original EXP
26733 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
26734 code to split complex arguments here, as part of initializing the
26735 ARGS array.
26736 (expand_call): Remove code that builds a list of arguments and
26737 inserts implicit arguments into it. Instead, just count how many
26738 implicit arguments there will be so we can determine the size of
26739 the ARGS array, and let initialize_argument_information do the work.
26740 (split_complex_values): Delete unused function.
26741
26d2ad79 267422007-02-18 Eric Botcazou <ebotcazou@adacore.com>
26743
26744 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
26745
e7ffa1e6 267462007-02-18 Eric Botcazou <ebotcazou@adacore.com>
26747
26748 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
26749 for arg pointer based indexed addressing.
26750
3cc94518 267512007-02-18 Kazu Hirata <kazu@codesourcery.com>
26752
26753 * config/ia64/ia64.h, config/ia64/ia64.md,
26754 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
26755 spelling conventions.
26756
8ec9650e 267572007-02-18 Roman Zippel <zippel@linux-m68k.org>
26758
26759 * config/m68k/m68k.c (split_di): New.
26760 * config/m68k/m68k-protos.h: Declare split_di.
26761 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
26762 Improve predicate handling and split constant shifts.
26763
894a8d28 267642007-02-18 Roman Zippel <zippel@linux-m68k.org>
26765
26766 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
26767 parameter for register bitfield operations, general predicates
26768 cleanup
26769
f3263347 267702007-02-18 Roman Zippel <zippel@linux-m68k.org>
26771
26772 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
26773 * config/m68k/linux-unwind.h: New file.
26774
85694bac 267752007-02-18 Kazu Hirata <kazu@codesourcery.com>
26776
26777 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
26778 config/i386/athlon.md, config/ia64/ia64.md,
26779 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
26780 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
26781 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
26782 tree-ssa-loop-niter.c, tree-vect-analyze.c,
26783 tree-vect-transform.c: Fix comment typos.
26784
7865f8be 267852007-02-17 Kazu Hirata <kazu@codesourcery.com>
26786
26787 * sched-deps.c (find_insn_list): Remove.
26788 * sched-int.h: Remove the prototype for find_insn_list.
26789
fb320d7f 267902007-02-16 Geoffrey Keating <geoffk@apple.com>
26791
7f1f8831 26792 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
26793 to linker.
26794 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
26795 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
26796 darwin_rs6000_override_options.
26797 (C_COMMON_OVERRIDE_OPTIONS): Expect
26798 darwin_macosx_version_min to be non-NULL always.
26799 (TARGET_C99_FUNCTIONS): Likewise.
26800 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
26801 (DARWIN_MINVERSION_SPEC): New.
26802 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
26803 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
ec72623f 26804 to cc1*.
7f1f8831 26805 (DARWIN_MINVERSION_SPEC): New.
26806 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
26807 value.
26808 * config/darwin-c.c (darwin_cpp_builtins): Expect
26809 darwin_macosx_version_min to be non-NULL always.
26810
fb320d7f 26811 * config/rs6000/rs6000.c: Clean up trailing whitespace.
26812
3289a94d 268132007-02-16 Uros Bizjak <ubizjak@gmail.com>
26814
26815 * config/i386/i386.h (x86_use_xchgb): New.
26816 (TARGET_USE_XCHGB): New macro.
26817 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
26818 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
26819 Split after reload into bswaphi for shifts of 8.
26820 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
26821 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
26822 or when optimizing for size.
ec72623f 26823
d1d2495d 268242007-02-16 Richard Guenther <rguenther@suse.de>
3289a94d 26825 Christian Bruel <christian.bruel@st.com>
d1d2495d 26826
26827 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
26828 DECLs but prefer SSA_NAMEs over DECLs.
26829
d860e1f9 268302007-02-16 Richard Guenther <rguenther@suse.de>
26831
26832 * tree-flow-inline.h (single_imm_use_p): Remove.
26833 (zero_imm_uses_p): Likewise.
26834 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
26835 instead of single_imm_use_p.
26836 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
26837 zero_imm_uses_p.
26838
01916651 268392007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26840
26841 PR other/27843
26842 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
26843 nested double- and backquotes.
26844
41076ef6 268452007-02-15 Roger Sayle <roger@eyesopen.com>
26846
26847 PR middle-end/30391
26848 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
26849 should be unreachable.
26850 (build2_stat): Allow construction of MODIFY_EXPR at any time.
26851 For the time being redirect GIMPLE_MODIFY_STMT to the new
26852 (renamed) build_gimple_modify_stmt_stat.
26853 (build2_gimple_stat): Rename to...
26854 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
26855 Always build a GIMPLE_MODIFY_STMT node.
26856 * tree.h (build2_gimple, build2_gimple_stat): Delete.
26857 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
26858 declarations.
26859
26860 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
26861 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
26862 * tree-complex.c (set_component_ssa_name, expand_complex_move,
26863 expand_complex_div_wide): Likewise.
26864 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
26865 * tree-ssa-loop-im.c (schedule_sm): Likewise.
26866 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
26867 * tree-ssa-loop-manip.c (create_iv): Likewise.
26868 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
26869 abs_replacement): Likewise.
26870 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
26871 realify_fake_stores): Likewise.
26872
26873 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
26874 node rather than a GIMPLE_MODIFY_STMT node.
26875 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
26876 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
26877 Likewise.
26878 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
26879 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
26880 GIMPLE_MODIFY_STMT.
26881
f74811fe 268822007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
26883
26884 PR middle-end/30433
26885 * fold-const.c (fold_comparison): Add back the
26886 folding of constant complex comparisions.
26887
7229f9d7 268882007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
26889
26890 PR middle-end/30729
26891 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
26892 effects unknown to this function, return early.
26893
97bb2849 268942007-02-15 Ian Lance Taylor <iant@google.com>
26895
26896 * lower-subreg.c (move_eh_region_note): New static function.
26897 (resolve_simple_move): Call it.
26898 (decompose_multiword_subregs): Track blocks for which we resolve a
26899 simple move which is also a control flow insn. Pass them to
26900 find_many_sub_basic_blocks.
26901 (pass_lower_subreg): Add TODO_verify_flow.
26902 (pass_lower_subreg2): Likewise.
26903
c2f47e15 269042007-02-15 Sandra Loosemore <sandra@codesourcery.com>
26905 Brooks Moses <brooks.moses@codesourcery.com>
26906 Lee Millward <lee.millward@codesourcery.com>
26907
26908 * tree.h (enum tree_code_class): Add tcc_vl_exp.
26909 (VL_EXP_CLASS_P): New.
26910 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
26911 TREE_CODE_LENGTH.
26912 (TREE_OPERAND_CHECK_CODE): Likewise.
26913 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
26914 (TREE_RTL_OPERAND_CHECK): Likewise.
26915 (tree_operand_check_failed): Make second parameter the whole tree
26916 instead of its code. Fixed callers.
26917 (VL_EXP_CHECK): New.
26918 (TREE_OPERAND_LENGTH): New.
26919 (VL_EXP_OPERAND_LENGTH): New.
26920 (CALL_EXPR_FN): New.
26921 (CALL_EXPR_STATIC_CHAIN): New.
26922 (CALL_EXPR_ARGS): New.
26923 (CALL_EXPR_ARG): New.
26924 (call_expr_nargs): New.
26925 (CALL_EXPR_ARGP): New.
26926 (build_nt_call_list): Declare.
26927 (build_vl_exp_stat): Declare.
26928 (build_vl_exp): New.
26929 (build_call_list): Declare.
26930 (build_call_nary): Declare.
26931 (build_call_valist): Declare.
26932 (build_call_array): Declare.
26933 (call_expr_arg): Declare.
26934 (call_expr_argp): Declare.
26935 (call_expr_arglist): Declare.
26936 (fold_build_call_list): Declare.
26937 (fold_build_call_list_initializer): Declare.
26938 (fold_call_expr): Declare to replace fold_builtin.
26939 (fold_builtin_fputs): Update to agree with modified definition.
26940 (fold_builtin_strcpy): Likewise.
26941 (fold_builtin_strncpy): Likewise.
26942 (fold_builtin_memory_chk): Likewise.
26943 (fold_builtin_stxcpy_chk): Likewise.
26944 (fold_builtin_strncpy_chk): Likewise.
26945 (fold_builtin_next_arg): Likewise.
26946 (fold_build_call_expr): Declare.
26947 (fold_builtin_call_list): Declare.
26948 (fold_builtin_call_valist): Declare.
26949 (build_call_expr): Declare.
26950 (validate_arglist): Update to agree with modified definition.
26951 (tree_operand_length): New.
26952 (call_expr_arg_iterator): New.
26953 (init_call_expr_arg_iterator): New.
26954 (next_call_expr_arg): New.
26955 (first_call_expr_arg): New.
26956 (more_call_expr_args_p): New.
26957 (FOR_EACH_CALL_EXPR_ARG): New.
26958
26959 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
26960 and tcc_gimple_stmt.
26961 (tree_code_size): Update documentation. Use sizeof (tree) rather
26962 than sizeof (char *).
26963 (tree_size): Likewise. Add case for tcc_vl_exp.
26964 (tree_node_structure): Add case for tcc_vl_exp.
26965 (contains_placeholder_p): Likewise.
26966 (substitute_in_expr): Likewise.
26967 (substitute_placeholder_in_expr): Likewise.
26968 (stabilize_reference_1): Likewise.
26969 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
26970 to diagnose breakage of this interface for constructing CALL_EXPRs.
26971 (build_nt): Add similar assertion here.
26972 (build_nt_call_list): New.
26973 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
26974 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
26975 TREE_CODE_LENGTH.
26976 (get_callee_fndecl): Use new CALL_EXPR accessors.
26977 (tree_operand_check_failed): Change parameters to pass entire node
26978 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
26979 (process_call_operands): New.
26980 (build_vl_exp_stat): New.
26981 (build_call_list): New.
26982 (build_call_nary): New.
26983 (build_call_valist): New.
26984 (build_call_array): New.
26985 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
26986 (call_expr_arglist): New.
26987
26988 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
26989 tcc_vl_exp instead of a fixed-size tcc_expression.
26990
26991 * doc/c-tree.texi (CALL_EXPR): Document new representation and
26992 accessors for CALL_EXPRs.
26993 (AGGR_INIT_EXPR): Likewise.
26994
269952007-02-15 Sandra Loosemore <sandra@codesourcery.com>
26996 Brooks Moses <brooks.moses@codesourcery.com>
26997 Lee Millward <lee.millward@codesourcery.com>
26998
26999 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
27000 (expand_builtin_nonlocal_goto): Change parameter to be entire
27001 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
27002 (expand_builtin_prefetch): Likewise.
27003 (expand_builtin_classify_type): Likewise.
27004 (mathfn_built_in): Return NULL_TREE instead of 0.
27005 (expand_errno_check): Use new CALL_EXPR accessors.
27006 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
27007 Return NULL_RTX instead of 0.
27008 (expand_builtin_mathfn_2): Likewise.
27009 (expand_builtin_mathfn_3): Likewise.
27010 (expand_builtin_interclass_mathfn): Likewise.
27011 (expand_builtin_sincos): Likewise.
27012 (expand_builtin_cexpi): Likewise.
27013 (expand_builtin_int_roundingfn): Likewise.
27014 (expand_builtin_int_roundingfn_2): Likewise.
27015 (expand_builtin_pow): Likewise.
27016 (expand_builtin_powi): Likewise.
27017 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
27018 of arglist, fixing callers appropriately. Use new CALL_EXPR
27019 accessors and constructors. Return NULL_RTX instead of 0.
27020 (expand_builtin_strstr): Likewise.
27021 (expand_builtin_strchr): Likewise.
27022 (expand_builtin_strrchr): Likewise.
27023 (expand_builtin_strpbrk): Likewise.
27024 (expand_builtin_memcpy): Likewise.
27025 (expand_builtin_mempcpy): Likewise.
27026 (expand_builtin_mempcpy_args): New.
27027 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
27028 (expand_builtin_memmove_args): New.
27029 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
27030 (expand_movstr): Likewise.
27031 (expand_builtin_strcpy): Likewise.
27032 (expand_builtin_strcpy_args): New.
27033 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
27034 (expand_builtin_strncpy): Likewise.
27035 (expand_builtin_memset): Likewise.
27036 (expand_builtin_memset_args): New.
27037 (expand_builtin_bzero): Similarly to expand_builtin_memset.
27038 (expand_builtin_memcmp): Likewise.
27039 (expand_builtin_strcmp): Likewise.
27040 (expand_builtin_strncmp): Likewise.
27041 (expand_builtin_strcat): Likewise.
27042 (expand_builtin_strncat): Likewise.
27043 (expand_builtin_strspn): Likewise.
27044 (expand_builtin_strcspn): Likewise.
27045 (expand_builtin_args_info): Likewise.
27046 (expand_builtin_va_start): Likewise.
27047 (gimplify_va_arg_expr): Likewise.
27048 (expand_builtin_va_end): Likewise.
27049 (expand_builtin_va_copy): Likewise.
27050 (expand_builtin_frame_address): Likewise.
27051 (expand_builtin_alloca): Likewise.
27052 (expand_builtin_bswap): Likewise.
27053 (expand_builtin_unop): Likewise.
27054 (expand_builtin_fputs): Likewise.
27055 (expand_builtin_expect): Likewise.
27056 (expand_builtin_fabs): Likewise.
27057 (expand_builtin_copysign): Likewise.
27058 (expand_builtin_printf): Likewise.
27059 (expand_builtin_fprintf): Likewise.
27060 (expand_builtin_sprintf): Likewise.
27061 (expand_builtin_init_trampoline): Likewise.
27062 (expand_builtin_signbit): Likewise.
27063 (expand_builtin_fork_or_exec): Likewise.
27064 (expand_builtin_sync_operation): Likewise.
27065 (expand_builtin_compare_and_swap): Likewise.
27066 (expand_builtin_lock_test_and_set): Likewise.
27067 (expand_builtin_lock_release): Likewise.
27068 (expand_builtin): Likewise.
27069 (builtin_mathfn_code): Likewise.
27070
27071 (fold_builtin_constant_p): Pass call arguments individually instead
27072 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
27073 accessors and constructors. Return NULL_TREE instead of 0.
27074 (fold_builtin_expect): Likewise.
27075 (fold_builtin_classify_type): Likewise.
27076 (fold_builtin_strlen): Likewise.
27077 (fold_builtin_nan): Likewise.
27078 (integer_valued_real_p): Likewise.
27079 (fold_trunc_transparent_mathfn): Likewise.
27080 (fold_fixed_mathfn): Likewise.
27081 (fold_builtin_cabs): Likewise.
27082 (fold_builtin_sqrt): Likewise.
27083 (fold_builtin_cbrt): Likewise.
27084 (fold_builtin_cos): Likewise.
27085 (fold_builtin_cosh): Likewise.
27086 (fold_builtin_tan): Likewise.
27087 (fold_builtin_sincos): Likewise.
27088 (fold_builtin_cexp): Likewise.
27089 (fold_builtin_trunc): Likewise.
27090 (fold_builtin_floor): Likewise.
27091 (fold_builtin_ceil): Likewise.
27092 (fold_builtin_round): Likewise.
27093 (fold_builtin_int_roundingfn): Likewise.
27094 (fold_builtin_bitop): Likewise.
27095 (fold_builtin_bswap): Likewise.
27096 (fold_builtin_logarithm): Likewise.
27097 (fold_builtin_hypot): Likewise.
27098 (fold_builtin_pow): Likewise.
27099 (fold_builtin_powi): Likewise.
27100 (fold_builtin_exponent): Likewise.
27101 (fold_builtin_memset): Likewise.
27102 (fold_builtin_bzero): Likewise.
27103 (fold_builtin_memory_op): Likewise.
27104 (fold_builtin_bcopy): Deleted; call site changed to invoke
27105 fold_builtin_memory_op directly.
27106 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
27107 (fold_builtin_strncpy): Likewise.
27108 (fold_builtin_memcmp): Likewise.
27109 (fold_builtin_strcmp): Likewise.
27110 (fold_builtin_strncmp): Likewise.
27111 (fold_builtin_signbit): Likewise.
27112 (fold_builtin_copysign): Likewise.
27113 (fold_builtin_isascii): Likewise.
27114 (fold_builtin_toascii): Likewise.
27115 (fold_builtin_isdigit): Likewise.
27116 (fold_builtin_fabs): Likewise.
27117 (fold_builtin_abs): Likewise.
27118 (fold_builtin_fmin_fmax): Likewise.
27119 (fold_builtin_carg): Likewise.
27120 (fold_builtin_classify): Likewise.
27121 (fold_builtin_unordered_cmp): Likewise.
27122
27123 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
27124 New functions split out from fold_builtin_1.
27125 (fold_builtin_n): New.
27126 (fold_builtin_varargs): New.
27127 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
27128 instead.
27129 (fold_call_expr): New.
27130 (build_function_call_expr): Rewrite to use new helper function.
27131 (fold_builtin_call_list): New.
27132 (build_call_expr): New.
27133 (fold_builtin_call_valist): New.
27134 (rewrite_call_expr): New.
27135 (validate_arg): New.
27136 (validate_arglist): Change parameter to be entire CALL_EXPR instead
27137 of an arglist. Change return type to bool. Use new CALL_EXPR
27138 accessors.
27139
48dc2227 27140 (fold_builtin_strstr): Pass call arguments individually instead
c2f47e15 27141 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
27142 accessors and constructors. Return NULL_TREE instead of 0.
27143 (fold_builtin_strchr): Likewise.
27144 (fold_builtin_strrchr): Likewise.
27145 (fold_builtin_strpbrk): Likewise.
27146 (fold_builtin_strcat): Likewise.
27147 (fold_builtin_strncat): Likewise.
27148 (fold_builtin_strspn): Likewise.
27149 (fold_builtin_strcspn): Likewise.
27150 (fold_builtin_fputs): Likewise.
27151 (fold_builtin_next_arg): Likewise.
27152 (fold_builtin_sprintf): Likewise.
27153
27154 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
27155 NULL_RTX instead of 0.
27156 (expand_builtin_memory_chk): Likewise.
27157 (maybe_emit_chk_warning): Likewise.
27158 (maybe_emit_sprintf_chk_warning): Likewise.
27159
27160 (fold_builtin_object_size): Pass call arguments individually instead
27161 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
27162 accessors and constructors. Return NULL_TREE instead of 0.
27163 (fold_builtin_memory_chk): Likewise.
27164 (fold_builtin_stxcpy_chk): Likewise.
27165 (fold_builtin_strncpy_chk): Likewise.
27166 (fold_builtin_strcat_chk): Likewise.
27167 (fold_builtin_strcat_chk): Likewise.
27168 (fold_builtin_strncat_chk): Likewise.
27169 (fold_builtin_sprintf_chk): Likewise.
27170 (fold_builtin_snprintf_chk): Likewise.
27171 (fold_builtin_printf): Likewise.
27172 (fold_builtin_vprintf): Likewise.
27173
27174 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
27175 constructors.
27176 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
27177 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27178 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
27179 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
27180 (fold_unary): Likewise.
27181 (fold_binary): Likewise.
27182 (fold_ternary): Remove CALL_EXPR case, since they are no longer
27183 ternary expressions.
27184 (fold): Add logic for tcc_vl_exp.
48dc2227 27185 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
c2f47e15 27186 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27187 (fold_build3_stat): Add assertion to flag broken interface for
27188 constructing CALL_EXPRs.
27189 (fold_build_call_list): New.
27190 (fold_build_call_list_initializer): New.
27191 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
27192 constructors.
27193 (fold_strip_sign_ops): Likewise.
27194
271952007-02-15 Sandra Loosemore <sandra@codesourcery.com>
27196 Brooks Moses <brooks.moses@codesourcery.com>
27197 Lee Millward <lee.millward@codesourcery.com>
27198
27199 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
27200 accessors and dump arguments explicitly.
27201
27202 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
27203 TREE_CODE_LENGTH.
27204 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
27205 explicitly.
27206 (print_call_name): Use new CALL_EXPR accessors.
27207
27208 * print-tree.c (print_node): Add case tcc_vl_exp. Print
27209 CALL_EXPR arguments explicitly instead of as a list. Use
27210 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27211
27212 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
27213 (vrp_visit_stmt): Likewise.
27214
48dc2227 27215 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
c2f47e15 27216 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
27217 TREE_CODE_LENGTH.
27218 (force_move_till_expr): Likewise.
27219
27220 * targhooks.c (default_external_stack_protect_fail): Use
27221 build_call_expr instead of build_function_call_expr.
27222 (default_hidden_stack_protect_fail): Likewise.
27223
27224 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
27225 build the call.
27226
27227 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
27228 and walk arguments explicitly.
27229
27230 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
27231 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27232 (expand_simple_operations): Likewise.
27233 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
27234
27235 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
27236 of TREE_CODE_LENGTH.
27237 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
27238
27239 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
27240 instead of TREE_CODE_LENGTH.
27241
27242 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
27243 (tree_ic_transform): Likewise.
27244 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
27245 parameter instead of arglist. Fix callers.
27246 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
27247 (tree_stringops_transform): Likewise.
27248 (tree_indirect_call_to_profile): Likewise.
27249 (tree_stringops_values_to_profile): Likewise.
27250
27251 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
27252 (eliminate_tail_call): Likewise.
27253
27254 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
27255
27256 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27257 Use TREE_OPERAND_LENGTH and generalize to handle any number of
27258 operands.
27259 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
27260
27261 * omp-low.c (build_omp_barrier): Use build_call_expr.
27262 (lower_rec_input_clauses): Likewise.
27263 (lower_reduction_clauses): Likewise.
27264 (expand_parallel_call): Likewise.
27265 (maybe_catch_exception): Likewise.
27266 (expand_omp_for_generic): Likewise.
27267 (expand_omp_for_static_nochunk): Likewise.
27268 (expand_omp_sections): Likewise.
27269 (lower_omp_single_simple): Likewise.
27270 (lower_omp_single_copy): Likewise.
27271 (lower_omp_master): Likewise.
27272 (lower_omp_ordered): Likewise.
27273 (lower_omp_critical): Likewise.
27274
27275 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
27276 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
27277
27278 * tree-gimple.c (is_gimple_call_addr): Fix doc.
27279 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
27280 TREE_CODE_LENGTH. Add tcc_vl_exp case.
27281
27282 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
27283 and generalize to handle any number of operands.
27284 (chrec_contains_undetermined): Likewise.
27285 (tree_contains_chrecs): Likewise.
27286 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
27287
27288 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
27289
27290 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
27291 fold_call_expr instead of fold_builtin.
27292 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
27293 match declarations there.
27294 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
27295 updates.
27296
27297 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
27298 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27299
27300 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
27301 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
27302
27303 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
27304 accessors.
27305
27306 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
27307 (execute_cse_sincos): Use new CALL_EXPR accessors.
27308
27309 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
27310
27311 * gimple-low.c (lower_function_body): Use build_call_expr.
27312 (lower_builtin_setjmp): Likewise.
27313
27314 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
27315 (set_storage_via_libcall): Likewise.
27316 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
27317 instead of TREE_CODE_LENGTH.
27318 (expand_expr_real_1): Use new CALL_EXPR accessors.
27319
27320 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
27321 generalize to handle any number of operands.
27322 (TB_parent_eq): Likewise.
27323
27324 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
27325 (strip_builtin_expect): Likewise.
27326
27327 * function.c (gimplify_parameters): Use build_call_expr.
27328
ed69c853 27329 * tree-vectorizer.c (vect_is_simple_reduction): Use
27330 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
c2f47e15 27331
27332 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
27333 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
27334
27335 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
27336 iterators.
27337
27338 * gimplify.c (build_stack_save_restore): Use build_call_expr.
27339 (gimplify_decl_expr): Likewise.
27340 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
27341 Use new CALL_EXPR iterators.
27342 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
27343 (gimplify_modify_expr_to_memset): Likewise.
27344 (gimplify_variable_sized_compare): Likewise.
27345 (gimplify_omp_atomic_fetch_op): Likewise.
27346 (gimplify_omp_atomic_pipeline): Likewise.
27347 (gimplify_omp_atomic_mutex): Likewise.
27348 (gimplify_function_tree): Likewise.
27349
27350 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
27351 (call_expr_flags): Likewise.
27352 (expand_call): Likewise.
27353
27354 * except.c (expand_builtin_eh_return_data_regno): Pass entire
ec72623f 27355 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
ef1ec073 27356 accessors.
c2f47e15 27357
27358 * coverage.c (create_coverage): Use build_call_expr.
27359
27360 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
27361 (temp_call_expr_obstack): New.
27362 (pool_copy_list): Delete.
27363 (temp_copy_call_expr): New.
27364 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
27365 CALL_EXPR accessors. Get rid of special goo for copying argument
27366 lists and use temp_copy_call_expr instead.
27367 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
27368 CALL_EXPR accessors.
27369 (create_expression_by_pieces): Likewise. Use build_call_array
27370 to construct the result instead of fold_build3.
27371 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
27372 dealing with argument lists.
27373 (init_pre): Remove references to expression_node_pool and
27374 list_node_pool. Init temp_call_expr_obstack instead.
27375 (fini_pre): Remove references to expression_node_pool and
27376 list_node_pool.
27377
27378 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
27379 and walk arguments explicitly instead of as a list.
27380
27381 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
27382 (mx_register_decls): Likewise.
27383 (mudflap_register_call): Likewise.
27384 (mudflap_finish_file): Likewise.
27385
27386 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
27387 (ipa_callsite_compute_param): Likewise.
27388
27389 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
27390 accessors and constructor.
27391
27392 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
27393 accessors and constructor.
ec72623f 27394 (convert_tramp_reference): Likewise.
c2f47e15 27395 (convert_call_expr): Likewise.
27396 (finalize_nesting_tree_1): Likewise.
27397
27398 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
27399 accessors.
27400
27401 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
27402
27403 * tree-inline.c (initialize_inlined_parameters): Pass entire
27404 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
27405 accessors.
27406 (estimate_num_insns_1): Use new CALL_EXPR accessors.
27407 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
27408
48dc2227 27409 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
c2f47e15 27410 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27411 (vectorizable_reduction): Likewise.
27412 (vectorizable_call): Use new CALL_EXPR iterators.
27413 (vectorizable_conversion): Use build_call_expr.
27414 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
27415 (vect_gen_widened_results_half): Use build_call_expr.
27416 (vect_setup_realignment): Likewise.
27417 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
27418
27419 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
27420 (pass_through_call): Likewise.
27421 (compute_object_sizes): Likewise. Use fold_call_expr instead of
27422 fold_builtin.
27423
27424 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
27425 (tree_gen_pow2_profiler): Likewise.
27426 (tree_gen_one_value_profiler): Likewise.
27427 (tree_gen_ic_func_profiler): Likewise.
27428 (tree_gen_average_profiler): Likewise.
27429 (tree_gen_ior_profiler): Likewise.
27430
27431 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
27432 (find_func_aliases): Use new CALL_EXPR accessors. Add case
27433 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
27434
27435 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
27436 of TREE_CODE_LENGTH.
27437
27438 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
27439 of TREE_CODE_LENGTH.
27440
27441 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
27442 constructor.
27443 (convert_to_integer): Likewise.
27444
27445 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
27446 accessors.
27447
274482007-02-15 Sandra Loosemore <sandra@codesourcery.com>
27449 Brooks Moses <brooks.moses@codesourcery.com>
27450 Lee Millward <lee.millward@codesourcery.com>
27451
27452 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
27453 accessors.
27454 * config/frv/frv.c (frv_expand_builtin): Likewise.
27455 * config/s390/s390.c (s390_expand_builtin): Likewise.
27456
27457 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
27458 (sparc_expand_builtin): Use new CALL_EXPR accessors.
27459
27460 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
27461 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
27462 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
27463 (ix86_expand_store_builtin): Likewise.
27464 (ix86_expand_unop_builtin): Likewise.
27465 (ix86_expand_unop1_builtin): Likewise.
27466 (ix86_expand_sse_compare): Likewise.
27467 (ix86_expand_sse_comi): Likewise.
27468 (ix86_expand_vec_init_builtin): Likewise.
27469 (ix86_expand_vec_ext_builtin): Likewise.
27470 (ix86_expand_vec_set_builtin): Likewise.
27471 (ix86_expand_builtin): Use new CALL_EXPR accessors.
27472
27473 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
27474 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
27475
27476 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
27477 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
27478 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
27479
27480 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
27481 build_call_expr.
27482 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
27483 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
27484 arglist. Use new CALL_EXPR accessors. Fix callers.
27485 (altivec_expand_abs_builtin): Likewise.
27486 (rs6000_expand_binop_builtin): Likewise.
27487 (altivec_expand_predicate_builtin): Likewise.
27488 (altivec_expand_lv_builtin): Likewise.
27489 (spe_expand_stv_builtin): Likewise.
27490 (altivec_expand_stv_builtin): Likewise.
27491 (rs6000_expand_ternop_builtin): Likewise.
27492 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
27493 (altivec_expand_st_builtin): Likewise.
27494 (altivec_expand_dst_builtin): Likewise.
27495 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
27496 arglist. Use new CALL_EXPR accessors. Fix callers.
27497 (altivec_expand_vec_set_builtin): Likewise.
27498 (altivec_expand_vec_ext_builtin): Likewise.
27499 (altivec_expand_builtin): Use new CALL_EXPR accessors.
27500 (spe_expand_builtin): Likewise.
27501 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
27502 arglist. Use new CALL_EXPR accessors. Fix callers.
27503 (spe_expand_evsel_builtin): Likewise.
27504 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
27505 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
27506
27507 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
27508 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
27509 (arm_expand_unop_builtin): Likewise.
27510 (arm_expand_builtin): Use new CALL_EXPR accessors.
27511
48dc2227 27512 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
c2f47e15 27513 accessors.
27514
ed69c853 27515 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
27516 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
27517 Fix callers.
c2f47e15 27518 (bfin_expand_unop_builtin): Likewise.
27519 (bfin_expand_builtin): Use new CALL_EXPR accessors.
27520
275212007-02-15 Sandra Loosemore <sandra@codesourcery.com>
27522 Brooks Moses <brooks.moses@codesourcery.com>
27523 Lee Millward <lee.millward@codesourcery.com>
27524
27525 * c-semantics.c (build_stmt): Add internal diagnostic check.
27526
27527 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
27528 accessors. Print arguments explicitly instead of as a list.
27529
27530 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
27531
27532 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
27533 (c_finish_omp_flish): Likewise.
27534
27535 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
27536 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
27537 instead of TREE_CODE_LENGTH.
27538 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
27539 (c_warn_unused_result): Likewise.
27540
3ba510aa 275412007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27542
27543 PR c/26494
27544 * doc/invoke.texi (Warning Options): Remove
27545 -Werror-implicit-function-declaration.
27546 (Wimplicit-function-declaration): Update description.
27547 * opts.c (common_handle_option): Move handling of -Werror=* to...
27548 (enable_warning_as_error): ...here.
27549 * opts.h (enable_warning_as_error): Declare.
27550 * c-decl.c (implicit_decl_warning): Unless
27551 -Wno-implicit-function-declaration is given, emit a pedwarn if
27552 -std=c99 or emit a warning if -Wimplicit-function-declaration.
27553 * c.opt (Wimplicit-function-declaration): Replace
27554 mesg_implicit_function_declaration with
27555 warn_implicit_function_declaration.
27556 * c-opts.c (c_common_handle_option):
27557 -Werror-implicit-function-declaration is exactly equal as
27558 -Werror=implicit-function-declaration.
27559 (set_Wimplicit): Replace mesg_implicit_function_declaration with
27560 warn_implicit_function_declaration.
27561 (c_common_post_options): -Wimplict-function-declaration is enabled
27562 by default by -std=c99, otherwise is disabled by default.
27563 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
27564
4bef6a37 275652007-02-15 Eric Botcazou <ebotcazou@adacore.com>
27566
27567 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
27568 DECL on the rhs to a DECL on the lhs for debug info purposes if the
27569 former is ignored but not the latter.
27570
4432b023 275712007-02-15 Eric Botcazou <ebotcazou@adacore.com>
27572
27573 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
27574 is made and the reference doesn't use the alias set of its type,
27575 do not create the temporary using that type.
27576
33e91809 275772007-02-15 Aldy Hernandez <aldyh@redhat.com>
27578
27579 * jump.c: Remove prototypes for delete_computation and
27580 delete_prior_computation.
27581
e3766402 275822007-02-15 Paolo Bonzini <bonzini@gnu.org>
27583
27584 * jump.c (get_label_after): Delete.
27585 (get_label_before, delete_computation, delete_jump,
27586 delete_prior_computation, follow_jumps): Move...
27587 * reorg.c (delete_computation, delete_prior_computation): ... here...
27588 (get_label_before, delete_jump): ... making these static ...
27589 (follow_jumps): ... and simplifying this since it only runs after
27590 reload.
27591 * rtl.h (get_label_after, get_label_before, delete_jump,
27592 follow_jumps): Delete prototypes.
27593
35c2394d 275942007-02-15 Paolo Bonzini <bonzini@gnu.org>
27595
27596 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
ec72623f 27597
e6d8e73f 275982007-02-15 Nick Clifton <nickc@redhat.com>
27599
27600 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
27601 order to prevent it from being munged by the target.
27602
4386ee95 276032007-02-15 Uros Bizjak <ubizjak@gmail.com>
27604
27605 * config/i386/i386.md: Remove misleading comment.
27606
fd2d61d6 276072007-02-15 Alexandre Oliva <aoliva@redhat.com>
27608
27609 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
27610 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
27611 invalid patterns.
27612
005b6665 276132007-02-15 Alexandre Oliva <aoliva@redhat.com>
27614
27615 * tree-sra.c (instantiate_missing_elements): Canonicalize
27616 bit-field types.
27617 (sra_build_assignment): New.
27618 (generate_copy_inout, generate_element_copy,
27619 generate_element_zero, generate_one_element_init): Use it.
27620
276212007-02-15 Alexandre Oliva <aoliva@redhat.com>
27622
27623 * tree-sra.c (instantiate_missing_elements): Canonicalize
27624 bit-field types.
27625 (sra_build_assignment): New.
27626 (generate_copy_inout, generate_element_copy,
27627 generate_element_zero, generate_one_element_init): Use it.
27628
356f311d 276292007-02-15 Alexandre Oliva <aoliva@redhat.com>
27630
27631 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
27632 limbo die nodes.
27633
cfefc966 276342007-02-14 Joseph Myers <joseph@codesourcery.com>
27635
27636 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
27637 types as aggregates not scalars.
27638 * function.c (assign_stack_temp_for_type): Likewise.
27639
2b304bd2 276402007-02-14 Roger Sayle <roger@eyesopen.com>
27641 Zdenek Dvorak <dvorakz@suse.cz>
27642
27643 * tree-dump.c (dump_switch_p_1): Require exact match of the option
27644 name.
27645
d3a5fc6b 276462007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
27647
27648 * passes.c (next_pass_1): Clear the next field of the copied
27649 pass structure.
27650
1f0a4df8 276512007-02-14 Richard Henderson <rth@redhat.com>
27652
27653 * tree-sra.c (early_sra): New.
27654 (decl_can_be_decomposed_p): Deny va_list if early_sra.
27655 (tree_sra_early, pass_sra_early): New.
27656 * tree-pass.h (pass_sra_early): Declare.
27657 * passes.c (init_optimization_passes): Use it.
27658
184c9ca9 276592007-02-14 Richard Guenther <rguenther@suse.de>
27660
27661 * flags.h (issue_strict_overflow_warning): Convert to a macro.
27662
276632007-02-14 Dorit Nuzman <dorit@il.ibm.com>
d2e42551 27664
27665 PR tree-optimization/30771
27666 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
27667 also phi nodes.
27668 (vect_analyze_operations): Induction phis can now be marked as
27669 used_in_loop.
27670 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
27671 Update documentation accordingly.
27672
24ede95f 276732007-02-14 Nick Clifton <nickc@redhat.com>
27674
27675 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
27676 most 3 arguments are supported.
27677 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
27678
c926c35f 276792007-02-13 Seongbae Park <seongbae.park@gmail.com>
27680
d3a5fc6b 27681 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
27682 Ensure dst->current is valid.
c926c35f 27683
1ad38120 276842007-02-13 Paul Brook <paul@codesourcery.com>
27685
27686 * config.gcc: Add arm*-*-uclinux-*eabi.
27687 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
27688 (SUBTARGET_EXTRA_LINK_SPEC): Define.
27689 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
27690 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
27691 (LINK_SPEC): Define.
27692 (LIB_SPEC): Define.
27693 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
27694 register.
27695 * config/arm/uclinux-eabi.h: New file.
27696 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
27697 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
27698 based targets.
27699
add6ee5e 277002007-02-13 Ian Lance Taylor <iant@google.com>
27701
27702 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
27703 * flags.h (warn_strict_overflow): Declare.
27704 (enum warn_strict_overflow_code): Define.
27705 (issue_strict_overflow_warning): New static inline function.
27706 * opts.c (warn_strict_overflow): New variable.
27707 (common_handle_option): Handle OPT_Wstrict_overflow and
27708 OPT_Wstrict_overflow_.
27709 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
27710 OPT_Wall.
27711 * fold-const.c: Include intl.h.
27712 (fold_deferring_overflow_warnings): New static variable.
27713 (fold_deferred_overflow_warning): New static variable.
27714 (fold_deferred_overflow_code): New static variable.
27715 (fold_defer_overflow_warnings): New function.
27716 (fold_undefer_overflow_warnings): New function.
27717 (fold_undefer_and_ignore_overflow_warnings): New function.
27718 (fold_deferring_overflow_warnings_p): New function.
27719 (fold_overflow_warning): New static function.
27720 (make_range): Add strict_overflow_p parameter. Change all
27721 callers.
27722 (extract_muldiv, extract_muldiv_1): Likewise.
27723 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
27724 tree_expr_nonnegative_p.
27725 (fold_negate_expr): Call fold_overflow_warning.
27726 (fold_range_test): Likewise.
27727 (fold_comparison): Likewise.
27728 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
27729 instead of tree_expr_nonnegative_p.
27730 (tree_expr_nonnegative_warnv_p): Rename from
27731 tree_expr_nonnegative_p, add strict_overflow_p parameter.
27732 (tree_expr_nonnegative_p): New function.
27733 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
27734 strict_overflow_p parameter.
27735 (tree_expr_nonzero_p): New function.
27736 * passes.c (verify_interpass_invariants): New static function.
27737 (execute_one_pass): Call it.
27738 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
27739 warnings.
27740 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
27741 (estimate_numbers_of_iterations): Likewise.
27742 (scev_probably_wraps_p): Likewise.
27743 * tree-ssa-ccp.c: Include "toplev.h".
27744 (evaluate_stmt): Defer fold overflow warnings until we know we are
27745 going to optimize.
27746 (struct fold_stmt_r_data): Add stmt field.
27747 (fold_stmt_r): Defer fold overflow warnings until we know we
27748 optimized.
27749 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
27750 (fold_stmt_inplace): Likewise.
27751 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
27752 (cleanup_control_expr_graph): Defer fold overflow warnings until
27753 we know we are going to optimize.
27754 * tree-cfg.c (fold_cond_expr_cond): Likewise.
27755 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
27756 Likewise.
27757 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
27758 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
27759 * tree-ssa-loop-manip.c (create_iv): Likewise.
27760 * c-typeck.c (build_conditional_expr): Likewise.
27761 (build_binary_op): Likewise.
27762 * tree-vrp.c (vrp_expr_computes_nonzero): Call
27763 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
27764 (extract_range_from_unary_expr): Likewise.
27765 * simplify-rtx.c (simplify_const_relational_operation): Warn when
27766 assuming that signed overflow does not occur.
27767 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
27768 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
27769 (fold_defer_overflow_warnings): Declare.
27770 (fold_undefer_overflow_warnings): Declare.
27771 (fold_undefer_and_ignore_overflow_warnings): Declare.
27772 (fold_deferring_overflow_warnings_p): Declare.
27773 (tree_expr_nonzero_warnv_p): Declare.
27774 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
27775 of warning options.
27776 (Warning Options): Document -Wstrict-overflow.
27777 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
27778 (tree-ssa-ccp.o): Likewise.
27779 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
27780 (fold-const.o): Depend on intl.h.
27781
ccd1ec59 277822007-02-13 Ian Lance Taylor <iant@google.com>
27783
27784 PR middle-end/30751
27785 * lower-subreg.c (resolve_simple_move): Decompose subregs in
27786 addresses.
27787
b7940b13 277882007-02-13 Stuart Hastings <stuart@apple.com>
27789
ddb8b0be 27790 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
b7940b13 27791
adde8f91 277922007-02-13 Richard Henderson <rth@redhat.com>
27793
27794 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
27795 handled_component_p before looking for the indirect_ref.
27796
1b5539c8 277972007-02-13 Richard Henderson <rth@redhat.com>
27798
27799 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
27800 remove flags clobber.
27801 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
27802 (bswaphi_lowpart): New.
27803 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
27804 remove TARGET_BSWAP test. Delete expander of the same name.
27805
27806 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
27807 (expand_unop): Use them.
27808
1aff3f78 278092007-02-13 Uros Bizjak <ubizjak@gmail.com>
27810
27811 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
27812 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
27813 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
27814 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
27815 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
27816 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
27817 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
27818 assembler dialect choice from asm templates.
27819
0760e423 278202007-02-12 Richard Henderson <rth@redhat.com>
27821
27822 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
27823 (fixuns_trunc<SSEMODEF>si2): Use it.
27824 * config/i386/sse.md (vec_setv4sf_0): Export.
27825 * config/i386/i386.c (ix86_build_const_vector): Export.
27826 (ix86_split_convert_uns_si_sse): Rename from
27827 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
27828 * config/i386/i386-protos.h: Update.
27829
6e4e3580 278302007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27831
27832 PR c/29521
27833 * c-typeck.c (c_finish_return): Improve warning message.
27834
600380f0 278352007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27836
27837 * alias.c (find_symbolic_term): Delete unused function.
ec72623f 27838
ec29ad3e 278392007-02-12 Uros Bizjak <ubizjak@gmail.com>
27840
27841 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
27842 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
27843 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
27844
5a13c1e6 278452007-02-12 Eric Botcazou <ebotcazou@adacore.com>
27846
27847 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
27848 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
27849 the function, temporarily point the debug interface to the null one.
27850
71b5358c 278512007-02-12 Eric Botcazou <ebotcazou@adacore.com>
27852
27853 * dwarf2out.c (round_up_to_align): New static function.
27854 (field_byte_offset): Use it to round the offset.
27855
dff270e5 278562007-02-12 Richard Henderson <rth@redhat.com>
27857
27858 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
27859 (inswl_const): Export.
27860
4e1a3169 278612007-02-12 Richard Henderson <rth@redhat.com>
27862
27863 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
27864 result mode of the libcall, convert back to outmode.
27865
d179ab1f 278662007-02-12 Roger Sayle <roger@eyesopen.com>
27867
27868 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
27869 (bswapdi2): New define_expand to implement 32-bit implementation.
27870
87c75316 278712007-02-12 Nick Clifton <nickc@redhat.com>
27872
27873 * doc/invoke.texi (Overall Options): Document --help=.
27874 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
27875 (cc1_options): Pass --help= on to cc1.
27876 (display_help): Add description of --help=.
27877 (process_command): Add code to handle --help=. Allow translated
27878 --help and --target-help switches to be passed on to compiler
27879 sub-process.
27880 (main): Remove unused if statement.
27881 * opts.c (columns): Remove.
27882 (LEFT_COLUMN): Define.
27883 (wrap_help): Add columns argument.
27884 (print_filtered_help): Change parameters to be an include bitmask,
27885 an exclude bitmask, an any bitmask and the column width. Move the
27886 code to display the params list here. Add code to display the
27887 status of options rather than their descriptions if the quiet flag
27888 is not active.
27889 (print_specific_help): Change parameters to be an include bitmask,
27890 an exclude bitmask and an any bitmask. Move code to look up the
27891 column width here. Decide upon the title for an options listing.
27892 (common_handle_options): Add code to handle --help=. Adapt code
27893 for --help and --target-help to use the revised form of the
27894 print_specific_help function.
27895 (print_help): Delete.
27896 (print_param_help): Delete.
27897 (print_switch): Delete.
27898 * opts.h (cl_lang_count): Add prototype.
27899 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
27900 CL_MAX_OPTION_CLASS): New defines.
27901 * optc-gen.awk: Add construction of cl_lang_count.
27902 * c.opt: Add Warning attribute to warning options and Optimization
27903 attribute to optimization options.
27904 * common.opt: Likewise.
27905 Add --help=.
27906 Add -fhelp and -ftarget-help as aliases for the transformed --help
27907 and --target-help options.
27908 * opt-functions.awk: Add code to handle Warning and Optimization
27909 attributes.
27910
1dffd068 279112007-02-12 Richard Henderson <rth@redhat.com>
27912
27913 * config/alpha/constraints.md: New file.
27914 * config/alpha/alpha.c: Include tm-constrs.h.
27915 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
27916 alpha_extra_constraint): Remove.
27917 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
27918 * config/alpha/alpha-protos.h: Update.
27919 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
27920 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
27921 (EXTRA_CONSTRAINT): Remove.
27922 * config/alpha/alpha.md: Include constraints.md.
27923 (adddi splitter): Use satisfies_constraint_*.
27924 * config/alpha/predicates.md (add_operand): Likewise.
27925 (sext_add_operand, addition_operation): Likewise.
27926
20ae4d7b 279272007-02-12 Dorit Nuzman <dorit@il.ibm.com>
27928
27929 PR tree-optimization/29145
27930 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
27931 in our handling of restrict qualified pointers.
27932
43667bd3 279332007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27934
27935 PR middle-end/7651
27936 * doc/invoke.texi (Wunused-value): Update description.
27937 (Wextra): Delete item.
27938 * opts.c (set_Wextra): Don't use the value of Wextra to set the
27939 value of Wunused-value.
27940 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
27941 (c_finish_stmt_expr): Don't check extra_warnings.
27942 (emit_side_effect_warnings): The caller is responsible to check
27943 warn_unused_value.
ec72623f 27944
9966a430 279452007-02-11 Roger Sayle <roger@eyesopen.com>
27946 Matt Thomas <matt@3am-software.com>
27947
27948 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
27949
ecf8b614 279502007-02-11 Roger Sayle <roger@eyesopen.com>
27951
27952 * simplify-rtx.c (simplify_relational_operation_1): Optimize
27953 comparisons of POPCOUNT against zero.
27954 (simplify_const_relational_operation): Likewise.
27955
cb8ff8c6 279562007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27957
27958 * doc/invoke.texi (Wextra): Delete outdated paragraph.
ec72623f 27959
2f0cc145 279602007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27961
27962 * dwarf2out.c (root_type): Delete unused function.
ec72623f 27963
ad9a29f3 279642007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27965
27966 * genattrtab.c (contained_in_p): Delete unused function.
27967 (write_expr_attr_cache): Likewise.
27968
54e3de71 279692007-02-11 Jan Hubicka <jh@suse.cz>
27970
27971 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
27972 previous patch.
27973
750a330e 279742007-02-11 Steven Bosscher <steven@gcc.gnu.org>
27975
27976 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
27977 to add the REG_EQ* note.
27978 * see.c (see_merge_one_use_extension): Likewise.
27979 * local-alloc.c (update_equiv_regs): Likewise. Also don't
27980 turn REG_EQUAL notes into REG_EQUIV notes if the target
27981 register may have more than one set.
27982 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
27983 * gcse.c (try_replace_reg): Likewise.
27984 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
27985 * calls.c (fixup_tail_calls): Likewise. Abort if there is
27986 more than one REG_EQUIV note.
27987 * reload1.c (gen_reload): Use set_unique_reg_note.
27988
647e9f06 279892007-02-11 Uros Bizjak <ubizjak@gmail.com>
27990
27991 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
27992 (ix86_builtin_conversion): New function.
27993
1a614365 279942007-02-06 Mark Mitchell <mark@codesourcery.com>
27995
27996 PR target/29487
27997 * tree.h (DECL_REPLACEABLE_P): New macro.
27998 * except.c (set_nothrow_function_flags): Likewise.
27999
9d8bf4aa 280002007-02-11 Tehila Meyzels <tehila@il.ibm.com>
28001 Ira Rosen <irar@il.ibm.com>
28002 Dorit Nuzman <dorit@il.ibm.com>
28003
28004 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
28005 * targhooks.c (default_builtin_vectorized_conversion): New.
28006 * targhooks.h (default_builtin_vectorized_function): New declaration.
28007 * target.h (struct vectorize): Add builtin_conversion field.
28008 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
28009 stmt_vec_info_type value.
28010 (vectorizable_conversion): New declaration.
28011 * tree-vect-analyze.c (vect_analyze_operations): Add
28012 vectorizable_conversion call.
28013 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
28014 * tree-vect-transform.c (vectorizable_conversion): New function.
28015 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
28016 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
28017 mode.
28018 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
28019 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
ec29ad3e 28020 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
28021 or ALTIVEC_BUILTIN_VCFSX.
9d8bf4aa 28022
7d85f118 280232007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28024
28025 PR target/30634
28026 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
28027 CONST_DOUBLE and operand 0 is a hard register.
28028 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
28029 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
28030 is a hard floating-point register.
28031
c6f3c945 280322007-02-10 Richard Henderson <rth@redhat.com>
28033 Jakub Jelinek <jakub@redhat.com>
28034 Alexandre Oliva <aoliva@redhat.com>
9dda1f80 28035
28036 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
28037 * builtin-types.def (BT_WORD): Make unsigned.
28038 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
28039 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
28040 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
28041 * c-decl.c (grokdeclarator): Don't error if !have_tls.
28042 * c-parser.c (c_parser_omp_threadprivate): Likewise.
28043 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
28044 emulated tls.
28045 * expr.c (emutls_var_address): New.
28046 (expand_expr_real_1): Expand emulated tls.
28047 (expand_expr_addr_expr_1): Likewise.
28048 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
28049 * output.h (emutls_finish): Declare.
28050 * toplev.c (compile_file): Call it.
28051 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
28052 address before wrapping in CONST.
28053 * varasm.c (emutls_htab, emutls_object_type): New.
28054 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
28055 (get_emutls_object_name, get_emutls_object_type): New.
28056 (get_emutls_init_templ_addr, emutls_decl): New.
28057 (emutls_common_1, emutls_finish): New.
28058 (assemble_variable): When emulating tls, swap decls; generate
28059 constructor for the emutls objects.
28060 (do_assemble_alias): When emulating tls, swap decl and target name.
28061 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
28062 for emulated tls.
28063 * varpool.c (decide_is_variable_needed): Look at force_output.
28064 Recurse for emulated tls.
28065 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
28066 with decide_is_variable_needed.
28067 * emutls.c: New file.
28068 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
28069 tls_object for real tls.
28070
81ef6b6a 280712007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
28072
28073 PR rtl-optimization/29599
28074 * reload1.c (eliminate_regs_in_insn): Take the destination
28075 mode into account when computing the offset.
28076
751bdb92 280772007-02-09 Stuart Hastings <stuart@apple.com>
c6f3c945 28078 Richard Henderson <rth@redhat.com>
751bdb92 28079
ddb8b0be 28080 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
28081 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
28082 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
751bdb92 28083 fixuns_truncdfhi2): New.
28084 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
28085 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
28086 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
28087 (floatunssidf2): Allow nonimmediate source.
ddb8b0be 28088 * config/i386/sse.md (movdi_to_sse): New.
c6f3c945 28089 (vec_concatv2di): Drop '*'.
ddb8b0be 28090 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
751bdb92 28091 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
c6f3c945 28092 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
28093 New.
ddb8b0be 28094 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
751bdb92 28095 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
28096 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
28097 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
c6f3c945 28098 (ix86_build_signbit_mask): Fix decl of v, refactor to call
28099 ix86_build_const_vector.
751bdb92 28100 (x86_emit_floatuns): Rewrite.
28101
71eb48ba 281022007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28103
28104 * genautomata.c (longest_path_length): Delete unused function.
28105 (struct state): Delete unused longest_path_length.
28106 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
28107 (get_free_state): Delete unused.
ec72623f 28108
4ae20857 281092007-02-09 Jan Hubicka <jh@suse.cz>
28110
994d5439 28111 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
28112 * doc/invoke.texi (inline-unit-growth): Update default value.
28113
4ae20857 28114 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
28115 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
28116 (rebuild_cgraph_edges): Likewise.
28117 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
28118 (dump_cgraph_node): Dump frequencies.
28119 (cgraph_clone_edge): Add frequency scales.
28120 (cgraph_clone_node): Add freuqnecy.
28121 * cgraph.h (cgraph_edge): Add freuqnecy argument.
28122 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
28123 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
28124 * tree-pass.h (TODO_rebuild_frequencies): New constant.
28125 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
28126 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
28127 (save_inline_function_body): Likewise.
28128 * ipa-inline.c: inluce rtl.h
28129 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
28130 (cgraph_edge_badness): Use frequencies.
28131 (cgraph_decide_recursive_inlining): Update clonning.
28132 (cgraph_decide_inlining_of_small_function): Dump frequency.
28133 * predict.c (estimate_bb_frequencies): Export.
28134 * predict.h (estimate_bb_frequencies): Declare.
28135 * tree-inline.c (copy_bb): Watch overflows.
28136 (expand_call_inline): Update call of cgraph_create_edge.
28137 (optimize_inline_calls): Use TODO flags to update frequnecies.
28138 * passes.h: Include predict.h
28139 (init_optimization_passes): Move profile ahead.
28140 (execute_function_todo): Handle TODO_rebuild_frequencies.
28141
9a6f4ddd 281422007-02-09 Roger Sayle <roger@eyesopen.com>
28143
28144 * config/alpha/alpha.c (emit_insxl): Force the first operand of
28145 the insbl or inswl pattern into a register.
28146
b4267756 281472007-02-09 Roger Sayle <roger@eyesopen.com>
28148
28149 * config/ia64/ia64.md (bswapdi2): New define_insn.
28150
f957796f 281512007-02-09 Richard Henderson <rth@redhat.com>
28152
28153 * config/i386/constraints.md (Ym): New constraint.
28154 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
28155 (movdi_1_rex64): Split sse and xmm general register moves from
28156 memory move alternatives. Use conditional register constraints.
28157 (movsf_1, movdf_integer): Likewise.
28158 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
28159 (movdf_integer_rex64): New.
28160 (pushsf_rex64): Fix output constraints.
28161 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
28162 (sse2_stored): Likewise.
28163 (sse2_storeq_rex64): New.
28164 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
28165 amd and not generic.
28166 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
28167 for optimize_size. Remove SF/DFmode hack.
28168
c6f3c945 281692007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
b60d490a 28170
c6f3c945 28171 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
28172 (bit_SSE4a): New.
b60d490a 28173
558b196a 281742007-02-09 Nathan Sidwell <nathan@codesourcery.com>
28175 Richard Sandiford <richard@codesourcery.com>
28176
28177 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
28178 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
28179 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
28180 m68k/t-mlib to tmake_file.
28181 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
28182 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
28183 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
28184 Allow it to be cf or m68k. Set m68k_arch_family. If that
28185 variable is not empty, add t-$m68k_arch_family to tmake_file.
28186 Add t-mlibs to tmake_file.
28187 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
28188 * config/m68k/t-cf: New file.
28189 * config/m68k/t-m68k: Likewise.
28190 * config/m68k/t-mlibs: Likewise.
28191 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
28192 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
28193 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
28194 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
28195 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
28196 Delete.
28197 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
28198 (INSTALL_LIBGCC): Delete.
28199 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
28200 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
28201 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
28202 (M68K_MLIB_CPU): Define.
28203 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
28204 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
28205 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
28206
a9995c22 282072007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
c6f3c945 28208 Richard Guenther <rguenther@suse.de>
a9995c22 28209
28210 PR middle-end/23361
28211 * fold-const.c (fold_comparison): Handle obfuscated comparisons
28212 against INT_MIN/INT_MAX.
28213 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
28214 file if a loop is removed.
28215
851fc2b3 282162007-02-09 Joseph Myers <joseph@codesourcery.com>
28217
28218 * calls.c (store_one_arg): Pass correct alignment to
28219 emit_push_insn for non-BLKmode values.
28220 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
28221 unaligned stack slot via a suitably aligned slot.
28222
89adc165 282232007-02-08 DJ Delorie <dj@redhat.com>
28224
28225 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
28226 warnings.
28227 (legal_subregs): Use unsigned char, make const.
28228 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
28229
36fc2b2d 282302007-02-08 Paul Brook <paul@codesourcery.com>
28231
28232 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
28233 special interworking needed.
28234
bfad7f66 282352007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
28236
28237 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
28238 conditional to __SSE2__.
28239 (Entries below should have been added to first ChangeLog
28240 entry for amdfam10 dated 2007-02-05)
28241 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
28242 defined.
28243 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
28244 defined.
28245 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
28246 defined.
28247
80be3ac5 282482007-02-08 DJ Delorie <dj@redhat.com>
28249
28250 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
28251 * config/m32c/m32c.c (legal_subregs): New.
28252 (m32c_illegal_subreg_p): New.
28253 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
28254 unsupported subregs of hard regs.
28255
54746cd3 282562007-02-08 Jan Hubicka <jh@suse.cz>
28257
28258 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
28259 the same one; always update histograms.
28260
48a12060 282612007-02-08 Diego Novillo <dnovillo@redhat.com>
28262
28263 * passes.c (init_optimization_passes): Tidy comment.
28264
199c981a 282652007-02-08 Roger Sayle <roger@eyesopen.com>
28266
28267 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
28268 strip zero_extend, bswap and rotates from POCOUNT's argument.
28269 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
28270 zero_extend and rotates from PARITY's argument.
28271 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
28272 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
28273 of an integer constant at compile-time.
28274
ce4a3cad 282752007-02-08 Diego Novillo <dnovillo@redhat.com>
28276
28277 PR 30562
28278 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
28279 Update all users.
28280 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
28281 users.
28282 (init_alias_info):
28283 * tree-ssa-live.c (remove_unused_locals): Do not remove
28284 TREE_ADDRESSABLE variables.
28285 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
28286 * tree-ssa-operands.c (add_virtual_operand): Remove argument
28287 FOR_CLOBBER. Update all users.
28288 If VAR has an associated alias set, add a virtual operand for
28289 it if no alias is found to conflict with the memory reference.
28290
a63f3f1d 282912007-02-07 Jan Hubicka <jh@suse.cz>
28292 Robert Kidd <rkidd@crhc.uiuc.edu>
28293
28294 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
28295
5e016dfc 282962007-02-07 Ian Lance Taylor <iant@google.com>
28297
28298 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
28299
8fd0991a 283002007-02-07 Roger Sayle <roger@eyesopen.com>
28301
28302 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
28303 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
28304 tablejumpdi, movsi_to_cr_one): Remove constraints from
28305 define_expand's match_operands.
28306
808f5ffc 283072007-02-07 Roger Sayle <roger@eyesopen.com>
28308
28309 * global.c (compute_regsets): Move declatation of "i" inside of
28310 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
28311
587ac6db 283122007-02-07 Jakub Jelinek <jakub@redhat.com>
28313
6bfa729b 28314 PR c++/30703
28315 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
28316 of INDIRECT_REF <RESULT_DECL>.
28317
587ac6db 28318 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
28319
feb80442 283202007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
28321 Kaz Kojima <kkojima@gcc.gnu.org>
28322
28323 PR target/29746
28324 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
28325 properly.
28326 (sh_initialize_trampoline): Add parentheses to avoid a warning.
28327
4a6f9e19 283282007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
28329
28330 * doc/loop.texi: Document possibility not to perform disambiguation
28331 of loops with multiple latches.
28332 * cfgloopmanip.c (alp_enum_p): Removed.
28333 (add_loop): Handle subloops. Use get_loop_body_with_size.
28334 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
28335 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
28336 the new forwarder block.
28337 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
28338 Handle the case latch is NULL.
ed69c853 28339 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
28340 modifications when marking loop exits.
4a6f9e19 28341 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
28342 be modified.
28343 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
28344 disambiguate_loops_with_multiple_latches.
28345 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
28346 before fix_loop_structure.
28347 * cfgloop.c: Include pointer-set.h and output.h.
28348 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
28349 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
28350 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
28351 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
28352 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
28353 disambiguate_multiple_latches, get_loop_body_with_size,
28354 disambiguate_loops_with_multiple_latches): New functions.
28355 (flow_loop_dump): Dump multiple latch edges.
28356 (flow_loop_nodes_find): Handle loops with multiple latches.
28357 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
28358 (glb_enum_p): Modified.
28359 (get_loop_body): Use get_loop_body_with_size.
28360 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
28361 (AVOID_CFG_MODIFICATIONS): New constant.
28362 (disambiguate_loops_with_multiple_latches, add_loop,
28363 get_loop_body_with_size): Declare.
28364 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
28365
87861bf1 283662007-02-06 Seongbae Park <seongbae.park@gmail.com>
28367
28368 PR inline-asm/28686
28369 * global.c (compute_regsets): New function.
28370 (global_alloc): Refactored ELIMINABLE_REGSET
28371 and NO_GLOBAL_ALLOC_REGS computation out.
28372 (rest_of_handle_global_alloc): Call compute_regsets()
28373 for non-optimizing case.
28374
7e777250 283752007-02-06 Richard Henderson <rth@redhat.com>
28376
28377 * config/i386/constraints.md (Y2): Rename from Y.
28378 (Yi): New constraint.
28379 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
28380 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
28381 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
28382 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
28383 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
28384 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
ec72623f 28385 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
7e777250 28386 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
28387 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
28388 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
28389 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
28390 vec_extractv2si_1): Change Y constraints to Y2.
28391 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
28392 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
28393 Change Y constraints to Y2.
28394 (sse2_loadld): Change Y constraints to x.
28395
083405c7 283962007-02-06 Roger Sayle <roger@eyesopen.com>
28397
28398 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
28399 (parity<mode>2): New define_expand using rs6000_emit_parity.
28400 * config/rs6000/rs6000.c (rs6000_emit_popcount,
28401 rs6000_emit_parity): New functions.
28402 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
28403 rs6000_emit_parity): Prototype here.
28404
ab9eaa97 284052007-02-06 Ian Lance Taylor <iant@google.com>
28406
28407 * lower-subreg.c (simple_move_operand): Reject CONST.
28408 (resolve_clobber): Call validate_change rather than directly
28409 assigning to XEXP (pat, 0).
28410
b30a8715 284112006-02-06 Paolo Bonzini <bonzini@gnu.org>
28412
28413 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
28414 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
28415 (tree-cfg.o): Remove hashtab.h dependency.
28416
28417 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
28418 (struct ivopts_data): Change niters to pointer_map_t.
28419 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
28420 (niter_for_exit): Create pointer_map on demand. Change for
28421 pointer_map API.
28422 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
28423 (free_loop_data): Destroy data->niters if created and reset field.
28424 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
28425 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
28426
28427 * tree-ssa-reassoc.c: Include pointer-set.h.
28428 (bb_rank): Change to long *.
28429 (operand_rank): Change to pointer_map_t.
28430 (find_operand_rank): Return long, -1 if not found. Declare as inline.
28431 (insert_operand_rank): Accept long.
28432 (operand_entry_hash, operand_entry_eq): Remove.
28433 (get_rank): Return long. Adjust for changes above.
28434 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
28435 and operand_rank.
28436 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
28437
28438 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
28439 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
28440 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
28441 is not NULL.
28442 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
28443 directly since it cannot be NULL.
28444 (get_vi_for_tree): Rewrite for pointer_map API.
28445 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
28446 (init_alias_vars): Create vi_for_tree as pointer_map.
28447 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
28448
28449 * tree-cfg.c: Don't include hashtab.h.
28450 (edge_to_cases): Declare as pointer_map.
28451 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
28452 Delete.
28453 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
28454 (start_recording_case_labels): Create edge_to_cases as pointer_map.
28455 (end_recoding_case_labels): Cleanup edge_to_cases manually before
28456 destroying it.
28457 (record_switch_edge): Delete.
28458 (get_cases_for_edge): Adjust for pointer_map API, inline
28459 record_switch_edge (rewritten for new API), remove goto.
28460
284612006-02-06 Paolo Bonzini <bonzini@gnu.org>
28462
28463 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
28464 * tree-nested.c: Include pointer-set.h.
28465 (var_map_elt, var_map_eq, var_map_hash): Delete.
28466 (struct nesting_info): Remove GTY marker. Change the two htab_t's
28467 to pointer_map_t's.
28468 (nesting_info_bitmap_obstack): New.
28469 (lookup_field_for_decl): Adjust for pointer_map API.
28470 (lookup_tramp_for_decl): Adjust for pointer_map API.
28471 (get_nonlocal_debug_decl): Adjust for pointer_map API.
28472 (get_local_debug_decl): Adjust for pointer_map API.
28473 (convert_nl_goto_reference): Adjust for pointer_map API.
28474 (convert_nl_goto_receiver): Adjust for pointer_map API.
28475 (create_nesting_tree): Create outside GGC space. Create bitmap on
28476 the new obstack. Create field_map and var_map as pointer_maps.
28477 (free_nesting_tree): Adjust for changes to create_nesting_tree.
ec72623f 28478 (root): Delete.
b30a8715 28479 (lower_nested_functions): Move root here, no need to NULL it.
28480 Initialize and release the obstack.
28481
bfd211a3 284822007-02-06 Paolo Bonzini <bonzini@gnu.org>
28483
c6f3c945 28484 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
28485 Remove prototypes and make them non-static.
28486 (struct tree_int_map): Remove.
28487 * tree.h (struct tree_int_map): Move here, turning TO into an
28488 unsigned int.
28489 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
bfd211a3 28490
c6f3c945 28491 * tree.h (TREE_COMPLEXITY): Remove.
28492 (struct tree_exp): Remove complexity field.
28493 * tree.c (build1_stat): Don't set it.
bfd211a3 28494
2a6e95ba 284952007-02-06 Dorit Nuzman <dorit@il.ibm.com>
28496 Victor Kaplansky <victork@il.ibm.com>
28497
28498 * tree-vectorizer.c (vect_is_simple_use): Support induction.
28499 (vect_is_simple_reduction): Support reduction with induction as
28500 one of the operands.
28501 (vect_is_simple_iv_evolution): Fix formatting.
ec72623f 28502 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
2a6e95ba 28503 formatting. Don't mark induction phis for vectorization.
28504 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
28505 * tree-vect-transform.c (get_initial_def_for_induction): New function.
28506 (vect_get_vec_def_for_operand): Support induction.
28507 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
28508 induction case.
ec72623f 28509 (vectorizable_reduction): Support reduction with induction as one of
28510 the operands.
2a6e95ba 28511 (vectorizable_type_demotion): Use def-type of stmt argument rather
28512 than dummy def-type.
28513
28514 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
28515 flag_tree_scev_cprop.
28516 * common.opt (tree-scev-cprop): New flag.
28517
28518 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
28519 call to vect_get_new_vect_var.
28520
f031fa03 285212007-02-06 Ira Rosen <irar@il.ibm.com>
28522
ec72623f 28523 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
f031fa03 28524 vectype is not NULL.
28525 (vect_pattern_recog_1): Likewise.
28526
6da8bb4f 285272007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28528
28529 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
28530 (fold_negate_expr): Likewise.
28531
37f26c2d 285322007-02-05 Alexandre Oliva <aoliva@redhat.com>
28533
28534 PR debug/30189
28535 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
28536 even if cv-qualification is the same.
28537
4777eff4 285382007-02-05 Geoffrey Keating <geoffk@apple.com>
28539
28540 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
28541 __enable_execute_stack on completion.
28542
c6f3c945 285432007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28544
28545 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
28546 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
28547 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
28548 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
28549 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
28550 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
28551 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
28552 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
28553
c6f3c945 285542007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28555
28556 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
28557 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
28558 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
28559 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
28560 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
28561 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
28562 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
28563 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
28564 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
28565 umuldi3_highpart_rex64, umulsi3_highpart_insn,
28566 umulsi3_highpart_zext, smuldi3_highpart_rex64,
28567 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
28568 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
28569 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
28570 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
28571 sqrtextenddfxf2_i387): Added amdfam10_decode.
ec72623f 28572
3d775f8e 28573 * config/i386/athlon.md (athlon_idirect_amdfam10,
28574 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
28575 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
28576 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
28577 athlon_ivector_store_amdfam10): New define_insn_reservation.
28578 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
28579 amdfam10.
28580
c6f3c945 285812007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28582
28583 * config/i386/athlon.md (athlon_call_amdfam10,
28584 athlon_pop_amdfam10, athlon_lea_amdfam10): New
28585 define_insn_reservation.
28586 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
28587 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
28588 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
28589
c6f3c945 285902007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28591
28592 * config/i386/athlon.md (athlon_sseld_amdfam10,
28593 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
28594 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
28595
c6f3c945 285962007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28597
28598 * config/i386/athlon.md (athlon_sseins_amdfam10): New
28599 define_insn_reservation.
28600 * config/i386/i386.md (sseins): Added sseins to define_attr type
28601 and define_attr unit.
28602 * config/i386/sse.md: Set type attribute to sseins for insertq
28603 and insertqi.
28604
c6f3c945 286052007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28606
28607 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
28608 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
28609 ssecomi_load_amdfam10, ssecomi_amdfam10,
28610 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
28611 define_insn_reservation.
28612 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
28613
c6f3c945 286142007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28615
28616 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
28617 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
28618 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
28619 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
28620 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
ec72623f 28621 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
3d775f8e 28622 define_insn_reservation.
28623
28624 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
28625 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
28626 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
28627 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
28628 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
28629
c6f3c945 286302007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28631
28632 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
28633 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
28634 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
28635 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
28636 athlon_ssemul_load_k8): Added amdfam10.
28637
c6f3c945 286382007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28639
28640 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
28641 (x86_sse_unaligned_move_optimal): New variable.
ec72623f 28642
28643 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
3d775f8e 28644 m_AMDFAM10.
28645 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
28646 for unaligned vector SSE double/single precision loads for AMDFAM10.
28647
c6f3c945 286482007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
3d775f8e 28649
28650 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
28651 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
28652 Define TARGET_CPU_DEFAULT_amdfam10.
28653 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
ec72623f 28654 (processor_type): Add PROCESSOR_AMDFAM10.
28655
3d775f8e 28656 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
28657 processor_type in config/i386/i386.h.
28658 Enable imul peepholes for TARGET_AMDFAM10.
ec72623f 28659
3d775f8e 28660 * config.gcc: Add support for --with-cpu option for amdfam10.
ec72623f 28661
3d775f8e 28662 * config/i386/i386.c (amdfam10_cost): New variable.
28663 (m_AMDFAM10): New macro.
28664 (m_ATHLON_K8_AMDFAM10): New macro.
28665 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
28666 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
28667 x86_promote_QImode, x86_integer_DFmode_moves,
ec72623f 28668 x86_partial_reg_dependency, x86_memory_mismatch_stall,
3d775f8e 28669 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
28670 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
28671 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
28672 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
28673 Enable/disable for amdfam10.
28674 (override_options): Add amdfam10_cost to processor_target_table.
ec72623f 28675 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
3d775f8e 28676 processor_alias_table.
28677 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
28678 (ix86_adjust_cost): Add code for amdfam10.
28679
c6f3c945 286802007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
ec72623f 28681
3d775f8e 28682 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
ec72623f 28683 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
3d775f8e 28684 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
28685 * config/i386/i386.h: Add builtin definition for SSE4A.
ec72623f 28686 * config/i386/i386.md: Add support for ABM instructions
3d775f8e 28687 (popcnt and lzcnt).
28688 * config/i386/sse.md: Add support for SSE4A instructions
28689 (movntss, movntsd, extrq, insertq).
28690 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
28691 Add -march=amdfam10 flag.
28692 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
28693 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
28694 and amdfam10.
28695 * doc/extend.texi: Add documentation for SSE4A builtins.
28696
b0e603fe 286972007-02-05 Bob Wilson <bob.wilson@acm.org>
28698
28699 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
28700
6d85df69 287012007-02-05 Richard Guenther <rguenther@suse.de>
28702
28703 * tree-vectorizer.h (vectorizable_function): Add argument type
28704 argument, change return type.
28705 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
28706 * tree-vect-transform.c (vectorizable_function): Handle extra
28707 argument, return vectorized function decl.
28708 (build_vectorized_function_call): Remove.
28709 (vectorizable_call): Handle calls with result and argument types
28710 differing. Handle loop vectorization factor correctly.
28711 * targhooks.c (default_builtin_vectorized_function): Adjust for
28712 extra argument.
28713 * targhooks.h (default_builtin_vectorized_function): Likewise.
28714 * target.h (builtin_vectorized_function): Add argument type
c6f3c945 28715 argument.
6d85df69 28716 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
28717 extra argument, allow vectorizing of lrintf.
28718 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
28719 documentation of target hook.
28720
f6a8d1cb 287212007-02-05 Hans-Peter Nilsson <hp@axis.com>
28722
a0faeb5b 28723 PR target/30665
f6a8d1cb 28724 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
28725 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
28726 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
28727
2a6b4c77 287282007-02-05 Roger Sayle <roger@eyesopen.com>
28729
28730 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
28731 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
28732 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
28733 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
28734 before canonicalizing sincos to cexpi.
28735 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
28736
b657e73a 287372007-02-05 Roger Sayle <roger@eyesopen.com>
28738
28739 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
28740 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
28741 (alpha_init_builtins): Use alpha_add_builtins to process tables.
28742
730c983c 287432007-02-05 Roger Sayle <roger@eyesopen.com>
28744
28745 * mips-tfile.c (initialize_init_file): Correct endianness test.
28746
22f6d4d0 287472007-02-05 Kazu Hirata <kazu@codesourcery.com>
28748
28749 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
28750 the 'y' constraint.
28751
a1d50f1d 287522007-02-05 Richard Sandiford <richard@codesourcery.com>
28753
28754 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
28755 saves in a PARALLEL before the register assignments.
28756
dd5e1e90 287572007-02-05 Richard Sandiford <richard@codesourcery.com>
28758
28759 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
28760 DWARF_FRAME_RETURN_COLUMN to be a general register.
28761 * dwarf2out.c (init_return_column_size): New function, split from...
28762 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
28763 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
28764 to be nongeneral registers.
28765 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
28766 integer registers.
28767 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
28768 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
28769
2a3e49aa 287702007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
28771
28772 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
28773
611d2ac1 287742007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
28775
28776 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
28777 (remove_path): Use can_remove_branch_p and remove_branch instead
28778 of loop_delete_branch_edge.
28779 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
28780 (tree_transform_and_unroll_loop): Remove dead branches immediately.
28781 Update profile using scale_dominated_blocks_in_loop.
28782 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
28783 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
28784 (can_remove_branch_p, remove_branch): Declare.
28785 * tree-cfg.c (tree_can_remove_branch_p): New function.
28786 (tree_cfg_hooks): Add tree_can_remove_branch_p.
28787 * cfgrtl.c (rtl_can_remove_branch_p): New function.
28788 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
28789
9606b4af 287902007-02-05 Jan Hubicka <jh@suse.cz>
28791
28792 PR middle-end/30696
28793 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
28794 nodes in cgraph, don't remove offline copy of the function.
28795
08e5bc43 287962007-02-04 Jan Hubicka <jh@suse.cz>
28797
28798 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
28799 vectors might cause maybe_lookup_element_for_expr to be called
28800 on non-sra-candidate.
28801
905ea169 288022007-02-04 Kazu Hirata <kazu@codesourcery.com>
28803
28804 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
28805 config/bfin/bfin.md, config/bfin/predicates.md: Follow
28806 spelling conventions.
28807
98f4d382 288082007-02-04 Richard Guenther <rguenther@suse.de>
28809
28810 PR middle-end/30636
28811 * fold-const.c (try_move_mult_to_index): Make sure to not
28812 overflow one dimension of a multi-dimensional array access.
28813
fdd35027 288142007-02-04 Jan Hubicka <jh@suse.cz>
28815
28816 * passes.c (init_optimization_passes): Reindent.
28817
223e470b 288182007-02-04 Jan Hubicka <jh@suse.cz>
2a3e49aa 28819 Eric Botcazou <ebotcazou@adacore.com>
223e470b 28820
0d6b9aac 28821 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
223e470b 28822 (execute_fixup_cfg): Break out the abnormal goto code.
0d6b9aac 28823 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
223e470b 28824 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
28825 (optimize_inline_calls): Call make_nonlocal_label_edges.
28826
ea0ab927 288272007-02-04 Jan Hubicka <jh@suse.cz>
28828
28829 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
28830 true when something was changed.
28831 (rename_ssa_copies): When something was changed, do
28832 TODO_remove_unused_locals.
28833 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
28834 add TODO_remove_unused_locals when instruction was removed.
28835
f41629b6 288362007-02-04 Jan Hubicka <jh@suse.cz>
28837
28838 * ipa-inline.c (try_inline): Improve debug output; work on already
28839 inline edges too.
28840 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
ec72623f 28841 call try_inline for already inlined edges too when flattening;
f41629b6 28842 inline also functions that make callee growth but overall unit size
28843 reduce.
28844
c910419d 288452007-02-04 Kazu Hirata <kazu@codesourcery.com>
28846
28847 * config/m32c/bitops.md, config/m32c/jump.md,
28848 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
28849 config/m32r/m32r.h, config/m32r/m32r.md,
28850 config/m32r/predicates.md, config/m68hc11/larith.asm,
28851 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
28852 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
28853 config/mips/mips-protos.h, config/mips/mips.c,
28854 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
28855 config/mn10300/mn10300.h, config/mn10300/predicates.md,
28856 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
28857 spelling conventions.
28858
d15353b6 28859 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
28860 Follow spelling conventions.
28861
e1db7b20 288622007-02-03 Douglas Gregor <doug.gregor@gmail.com>
28863
ef1ec073 28864 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
28865 warn about C++0x compatibility.
ec72623f 28866
03fb0c81 288672007-02-04 Kazu Hirata <kazu@codesourcery.com>
28868
28869 * config/h8300/h8300.c, config/h8300/h8300.h,
28870 config/h8300/h8300.md: Follow spelling conventions.
28871
676806d4 288722007-02-03 Uros Bizjak <ubizjak@gmail.com>
28873
28874 PR middle-end/30667
28875 * combine.c (try_combine): Do not substitute source operand
28876 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
28877
553eb299 288782007-02-03 Jan Hubicka <jh@suse.cz>
28879
28880 PR gcov-profile/30650
28881 * value-prof.c (stringop_block_profile): Fix handling of size counter;
28882 do not divide by zero for never executed counters.
28883 (tree_find_values_to_profile): Fix counters.
28884 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
28885
67c3f580 288862007-02-03 Ian Lance Taylor <iant@google.com>
28887
28888 * lower-subreg.c (simple_move_operand): New static function,
28889 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
28890 operands.
28891 (simple_move): Call simple_move_operand.
28892 (find_decomposable_subregs): Add special handling of MEMs.
28893 (can_decompose_p): Rename from cannot_decompose_p. Reverse
28894 meaning of return value. If we see a hard register, test whether
28895 it can store a word_mode value. Change all callers.
28896
a6af46b6 288972007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28898
ee7100c7 28899 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
28900 ftrapv insns and expanders.
28901 (subdi3): Change define_expand operand 1 to arith11_operand, and
28902 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
28903 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
28904 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
28905 respectively.
28906
a6af46b6 28907 PR middle-end/30174
28908 * varasm.c (notice_global_symbol): Treat global objects as weak when
28909 flag_shlib is true.
28910
2e7ca27b 289112007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28912
28913 * emit-rtl.c (dconstpi): Delete.
28914 (dconstsqrt2): New.
28915 (init_emit_once): Delete dconstpi and init dconstsqrt2.
28916 * real.h (dconstpi): Delete.
28917 (dconstsqrt2): New.
28918 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
28919 (fold_builtin_hypot): Likewise.
28920
a8c200f7 289212007-02-03 Tom Tromey <tromey@redhat.com>
28922
28923 PR driver/30246
28924 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
28925 -gcoff3, -gxcoff3, -gvms3 implies -dD.
28926
f2b32076 289272007-02-03 Kazu Hirata <kazu@codesourcery.com>
28928
28929 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
28930 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
28931 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
28932 config/rs6000/cell.md, config/rs6000/darwin.h,
28933 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
28934 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
28935 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
28936 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
28937 typos. Follow spelling conventions.
28938 * doc/invoke.texi: Follow spelling conventions.
28939
b114d7da 289402007-02-03 Roger Sayle <roger@eyesopen.com>
28941
28942 * simplify-rtx.c (simplify_relational_operation_1): Implement some
28943 canonicalization transformations that attempt to simplify integer
28944 constant comparisons to become comparisons against zero.
28945
1af0d139 289462007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28947
28948 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
28949 fabs(x)*sqrt(2).
28950 * fold-const.c (fold_binary): Fix comment typos. Fold complex
28951 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
28952
a15a1b51 289532007-02-02 Mike Stump <mrs@apple.com>
28954
28955 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
28956 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
28957 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
28958 generate a branch island.
28959
771b6086 289602007-02-02 Bob Wilson <bob.wilson@acm.org>
28961
28962 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
28963 (xtensa_legitimate_address_p): New.
28964 (xtensa_legitimize_address): New.
28965 (xtensa_output_addr_const_extra): New.
28966 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
28967 (BASE_REG_P): New.
28968 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
28969 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
28970 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
28971 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
28972 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
28973 (xtensa_legitimize_address): New.
28974 (xtensa_output_addr_const_extra): New.
28975
01445752 289762007-02-02 Steve Ellcey <sje@cup.hp.com>
28977
28978 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
28979
3d77819c 289802007-02-02 Ian Lance Taylor <iant@google.com>
28981
28982 * expmed.c (expand_divmod): Add comment.
28983
8f48a1f7 289842007-02-02 Kazu Hirata <kazu@codesourcery.com>
28985
28986 * emit-rtl.c (renumber_insns): Remove.
28987 * flags.h: Remove the extern for flag_renumber_insns.
28988 * rtl.h: Remove the prototype for renumber_insns.
28989 * toplev.c (flag_renumber_insns): Remove.
28990
60d73ea6 289912007-02-02 Hui-May Chang <hm.chang@apple.com>
28992
28993 Revert for x86 darwin:
28994 2005-06-19 Uros Bizjak <uros@kss-loka.si>
ec72623f 28995
60d73ea6 28996 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
28997 code before the following patch under TARGET_MACHO.
28998 (ix86_function_value_regno_p): Likewise.
28999
7c4eaf72 290002007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29001
29002 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
29003 COMPLEX_EXPR.
29004
1c42a59d 290052007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
29006
29007 PR target/29682
ed69c853 29008 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
29009 loads to general or fp registers. Add comments.
1c42a59d 29010 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
29011
8a6f311e 290122007-02-02 Paolo Bonzini <bonzini@gnu.org>
29013
29014 * pointer-set.c (insert_aux): Only return insertion slot.
29015 (pointer_set_insert): Adjust.
29016 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
29017 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
29018 pointer_map_traverse): New.
29019 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
29020 pointer_map_create, pointer_map_destroy, pointer_map_insert,
29021 pointer_map_contains, pointer_map_traverse): Declare.
29022
72dfb3f2 290232007-02-02 Jakub Jelinek <jakub@redhat.com>
29024
29025 PR middle-end/30473
29026 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
29027 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
29028
9997bd27 290292007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
29030
29031 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
ec72623f 29032
9997bd27 29033 (struct _dep): New type.
29034 (dep_t): New typedef.
29035 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
29036 (DEP_STATUS): New access macro. The macro with the same name was
29037 renamed to DEP_LINK_STATUS.
29038 (dep_init): Declare function
29039
29040 (struct _dep_link): New type.
29041 (dep_link_t): New typedef.
29042 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
29043 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
29044 (DEP_LINK_STATUS): New macro.
29045 (debug_dep_links): New debug function.
29046
29047 (struct _deps_list): New type.
29048 (deps_list_t): New typedef.
29049 (DEPS_LIST_FIRST): New access macro.
29050 (FOR_EACH_DEP_LINK): New cycle macro.
29051 (create_deps_list, free_deps_list, delete_deps_list): Declare
29052 functions.
29053 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
29054 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
29055 (copy_deps_list_change_con): Ditto.
29056
29057 (move_dep_link): Declare function.
29058
29059 (struct _dep_node): New type.
29060 (dep_node_t): New typedef.
29061 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
29062
29063 (struct haifa_insn_data.back_deps): New field to hold backward
29064 dependencies of the insn.
29065 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
29066 to deps_list_t.
29067 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
29068 Change its type to deps_list_t.
29069 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
29070 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
29071 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
29072
29073 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
ec72623f 29074
9997bd27 29075 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
29076
ed69c853 29077 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
29078 and all callers.
9997bd27 29079 (dep_cost): Declare.
ec72623f 29080
9997bd27 29081 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
29082 (ds_to_dk, dk_to_ds): New functions.
ec72623f 29083
9997bd27 29084 (init_dep_1): New static function.
29085 (init_dep): New function.
29086 (copy_dep): New static function.
ec72623f 29087
9997bd27 29088 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
29089 functions.
29090 (detach_dep_link): New static function.
29091 (move_dep_link): New function.
ec72623f 29092
9997bd27 29093 (dep_links_consistent_p, dump_dep_links): New static functions.
29094 (debug_dep_links): New debugging function.
ec72623f 29095
9997bd27 29096 (deps_obstack, dl_obstack, dn_obstack): New static variables.
ec72623f 29097
9997bd27 29098 (alloc_deps_list, init_deps_list): New static functions.
29099 (create_deps_list): New function.
29100 (clear_deps_list): New static function.
29101 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
29102 (deps_list_consistent_p, dump_deps_list): New static functions.
29103 (debug_deps_list): New function.
29104 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
29105 functions.
29106 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
29107
29108 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
29109 use new scheduler dependencies lists.
29110 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
29111 (sched_analyze): Ditto. Initialize dependencies lists.
29112 (add_forw_dep, compute_forward_dependences): Update to use new
29113 scheduler dependencies lists.
ec72623f 29114
9997bd27 29115 (init_dependency_caches): Init deps_obstack.
29116 (free_dependency_caches): Free deps_obstack.
ec72623f 29117
9997bd27 29118 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
29119 new scheduler dependencies lists.
29120 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
29121 (add_back_forw_dep, delete_back_forw_dep): Ditto.
29122
29123 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
29124 Update to use new scheduler dependencies lists.
29125 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
29126 (debug_dependencies): Ditto.
29127 (schedule_region): Update comments.
ec72623f 29128
9997bd27 29129 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
29130 scheduler dependencies lists.
29131 (schedule_ebb): Update comments.
ec72623f 29132
9997bd27 29133 * rtl.def (DEPS_LIST): Remove.
ec72623f 29134
9997bd27 29135 * lists.c (unused_deps_list): Remove.
29136 (free_list): Update assertions.
ec72623f 29137
9997bd27 29138 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
29139 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
29140
29141 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
29142 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
ec72623f 29143
9997bd27 29144 * haifa-sched.c (comments): Update.
29145 (insn_cost1): Remove. Inline the code into insn_cost ().
29146 (insn_cost): Update to use new scheduler dependencies lists. Move
29147 processing of the dependency cost to dep_cost ().
29148 (dep_cost): New function. Use it instead of insn_cost () when
29149 evaluating cost of the dependency. Use compatible interface to
29150 interact with the target.
29151 (priority): Update to use new scheduler dependencies lists.
29152 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
29153 with greater number of insns that depend on the insn.
29154 (schedule_insn): Update to use new scheduler dependencies lists. Add
29155 code to free backward dependencies lists. Inline and optimize code
29156 from resolve_dep () - see PR28071.
29157 (ok_for_early_queue_removal): Update to use new scheduler dependencies
29158 lists. Update call to targetm.sched.is_costly_dependence hook.
ec72623f 29159
9997bd27 29160 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
29161 scheduler dependencies lists.
ec72623f 29162
9997bd27 29163 (resolve_dep): Remove. Move the logic to schedule_insn ().
29164 (init_h_i_d): Initialize dependencies lists.
ec72623f 29165
9997bd27 29166 (process_insn_depend_be_in_spec): Rename to
29167 process_insn_forw_deps_be_in_spec. Update to use new scheduler
29168 dependencies lists.
29169 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
29170 Update to use new scheduler dependencies lists.
29171 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
ec72623f 29172
9997bd27 29173 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
29174 new scheduler dependencies lists.
29175 (build_intra_loop_deps): Ditto.
ec72623f 29176
9997bd27 29177 * target.h (struct _dep): Declare to use in
29178 gcc_target.sched.is_costly_dependence.
29179 (struct gcc_target.sched.adjust_cost): Fix typo.
ed69c853 29180 (struct gcc_target.sched.is_costly_dependence): Change signature to
29181 use single dep_t parameter instead of an equivalent triad.
9997bd27 29182 (struct gcc_target.sched.adjust_cost_2): Remove.
29183
29184 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
29185
29186 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
29187
29188 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
29189 documentation.
29190 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
29191
29192 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
29193 (REG_DEP_TRUE): Document.
ec72623f 29194
9997bd27 29195 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
ec72623f 29196 Change signature to correspond to the targetm.sched.adjust_cost hook.
9997bd27 29197 Update use in TARGET_SCHED_ADJUST_COST_2.
29198 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
29199 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
29200 new scheduler dependencies lists.
29201 (ia64_gen_check): Ditto.
29202
ed69c853 29203 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
29204 scheduler dependencies lists.
ec72623f 29205
9997bd27 29206 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
29207 signature to correspond to the targetm.sched.is_costly_dependence hook.
29208 (is_costly_group): Update to use new scheduler dependencies lists.
29209
29210 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
29211 instead of INSN_COST () macro.
29212
2289a5f2 292132007-02-01 Ian Lance Taylor <iant@google.com>
29214
29215 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
29216
b2ad6ac2 292172007-02-01 Guy Martin <gmsoft@gentoo.org>
29218
29219 * pa.md (tp_load): Correct mfctl instruction syntax.
29220
11d02745 292212007-02-01 Geoffrey Keating <geoffk@apple.com>
29222
8429b204 29223 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
29224 altivec_padding_size calculation on AIX. Improve comment, add
29225 assert to verify that it's right.
29226
11d02745 29227 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
29228 64-bit.
29229
c6f3c945 292302007-2-01 Seongbae Park <seongbae.park@gmail.com>
9dca18da 29231
c6f3c945 29232 PR inline-asm/28686
9dca18da 29233 * global.c (global_alloc): Add mising initialization of
29234 ELIMINABLE_REGSET.
29235
d4473c84 292362007-02-01 Roger Sayle <roger@eyesopen.com>
29237
29238 * alias.c (init_alias_analysis): Correct whitespace.
29239 * bb-reorder.c (fix_edges_for_rarely_executed_code,
29240 partition_hot_cold_basic_blocks): Likewise.
29241 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
29242 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
29243 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
29244 fold_builtin_snprintf_chk, fold_builtin_printf,
29245 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
29246 do_mpfr_arg3, do_mpfr_sincos): Likewise.
29247 * cfgcleanup.c (cleanup_cfg): Likewise.
29248 * cfgexpand.c (tree_expand_cfg): Likewise.
29249 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
29250 * function.c (get_next_funcdef_no): Likewise.
29251 * gengtype.c (main): Likewise.
29252 * genmodes.c (main): Likewise.
29253 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
29254 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
29255 * ifcvt.c (noce_emit_move_insn): Likewise.
29256 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
29257 Likewise.
29258 * stor-layout.c (get_best_mode): Likewise.
29259 * tree-ssa-loop-niter.c (get_val_for): Likewise.
29260 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
29261 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
29262 perform_var_substitution, solve_graph): Likewise.
29263 * tree-vrp.c (vrp_finalize): Likewise.
29264
3fa57b79 292652007-02-01 Ian Lance Taylor <iant@google.com>
29266
29267 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
29268 high part of a paradoxical subreg, return a constant zero.
29269
7a9ae52e 292702007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
29271
29272 * toplev.c (lang_dependent_init): Call init_set_costs.
29273 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
29274
20e133d9 292752007-02-01 Richard Guenther <rguenther@suse.de>
29276
29277 PR middle-end/30656
29278 * fold-const.c (fold_negate_expr): Allow negating a
29279 constant if overflow does not change.
29280
284bef0e 292812007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29282
29283 * doc/c-tree.texi (Expression trees): Improve markup.
29284 * doc/tm.texi (Register Classes, Addressing Modes)
29285 (Floating Point): Fix spacing after abbreviations. Fix some
29286 typos.
29287
3ef65804 292882007-02-01 Ben Elliston <bje@au.ibm.com>
29289
29290 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
29291 * doc/contrib.texi: Likewise.
29292 * doc/install.texi: Likewise.
29293
1a6a0f2a 292942007-01-31 Richard Henderson <rth@redhat.com>
29295 Ian Lance Taylor <iant@google.com>
29296
29297 * lower-subreg.c: New file.
29298 * rtl.def (CONCATN): Define.
29299 * passes.c (init_optimization_passes): Add pass_lower_subreg and
29300 pass_lower_subreg2.
29301 * emit-rtl.c (update_reg_offset): New static function, broken out
29302 of gen_rtx_REG_offset.
29303 (gen_rtx_REG_offset): Call update_reg_offset.
29304 (gen_reg_rtx_offset): New function.
29305 * regclass.c: Revert patch of 2006-03-05, restoring
29306 reg_scan_update.
29307 (clear_reg_info_regno): New function.
29308 * dwarf2out.c (concatn_loc_descriptor): New static function.
29309 (loc_descriptor): Handle CONCATN.
29310 * common.opt (fsplit_wide_types): New option.
29311 * opts.c (decode_options): Set flag_split_wide_types when
29312 optimizing.
29313 * timevar.def (TV_LOWER_SUBREG): Define.
29314 * rtl.h (gen_reg_rtx_offset): Declare.
29315 (reg_scan_update): Declare.
29316 * regs.h (clear_reg_info_regno): Declare.
29317 * tree-pass.h (pass_lower_subreg): Declare.
29318 (pass_lower_subreg2): Declare.
29319 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
29320 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
29321 -fsplit-wide-types.
29322 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
29323 * Makefile.in (OBJS-common): Add lower-subreg.o.
29324 (lower-subreg.o): New target.
29325
0c8e1d8d 293262007-01-31 Kazu Hirata <kazu@codesourcery.com>
29327
29328 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
29329
cc48d302 293302007-01-31 Anatoly Sokolov <aesok@post.ru>
29331
29332 PR target/19087
29333 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
29334
b4e8ab0c 293352007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29336
29337 PR middle-end/29335
29338 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
29339
3bbbcdff 293402007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
29341
29342 * cfgloop.h: Include vec-prim.h.
29343 (enum li_flags): Remove LI_ONLY_OLD.
29344 (loop_iterator): Changed.
29345 (fel_next, fel_init): Iterate over loop tree.
29346 (FOR_EACH_LOOP_BREAK): New macro.
29347 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
29348 FOR_EACH_LOOP.
29349 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
29350 * modulo-sched.c (sms_schedule): Ditto.
29351 * tree-vectorizer.c (vectorize_loops): Ditto.
29352 * doc/loop.texi: Update information on loop numbering and behavior of
29353 FOR_EACH_LOOP wrto new loops.
29354 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
29355 add_to_evolution_1): Test nestedness of loops instead of comparing
29356 their numbers.
29357 * tree-chrec.c (chrec_fold_plus_poly_poly,
29358 chrec_fold_multiply_poly_poly, chrec_evaluate,
29359 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
29360 reset_evolution_in_loop): Ditto.
29361 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
29362
6ce0c450 293632007-01-31 Dirk Mueller <dmueller@suse.de>
29364
29365 * c-common.c (warn_about_parentheses): Separate warning about
29366 un-parenthized sequence of comparison operators from the one
29367 which is supposed to warn about x <= y <= z.
29368
69b779ea 293692007-01-31 Uros Bizjak <ubizjak@gmail.com>
29370
29371 * optabs.h (enum optab_index): Add new OTI_isinf.
29372 (isinf_optab): Define corresponding macro.
29373 * optabs.c (init_optabs): Initialize isinf_optab.
29374 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
29375 patterns.
29376 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
29377 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
29378 using isinf_optab.
29379 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
29380 expand_builtin_interclass_mathfn.
29381 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
29382 * config/i386/i386.md (UNSPEC_FXAM): New constant.
29383 (fxam<mode>2_i387): New insn pattern.
29384 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
29385 built-in functions as x87 inline asm.
29386
9941519c 293872007-01-31 Kazu Hirata <kazu@codesourcery.com>
29388
ddb8b0be 29389 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
9941519c 29390
3451fffd 293912007-01-30 Eric Christopher <echristo@apple.com>
29392
29393 * config.gcc: Add geode.
29394
0d424440 293952007-01-31 Kazu Hirata <kazu@codesourcery.com>
29396
29397 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
29398 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
29399 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
29400 value-prof.c: Fix comment typos.
29401
a07d3cd8 294022007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29403
29404 PR c++/24745
29405 * doc/invoke.texi (Wpointer-arith): Document warning.
3451fffd 29406
c6f3c945 294072007-01-30 Janis Johnson <janis187@us.ibm.com>
c7e4e456 29408
29409 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
29410 the list of discrepancies from the draft TR.
29411
ca0cc11f 294122007-01-30 Dirk Mueller <dmueller@suse.de>
29413
29414 PR c++/30601
29415 * doc/invoke.texi (-Wreturn-type): Update description to
3451fffd 29416 match new behavior.
ca0cc11f 29417
3d5a3e76 294182007-01-30 Richard Sandiford <richard@codesourcery.com>
29419
29420 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
29421
a67a90e5 294222007-01-30 Uros Bizjak <ubizjak@gmail.com>
29423
29424 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
29425 to handle optabs that operate on floating point input argument and
29426 output to integer output.
29427 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
29428 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
29429 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
29430 expand_builtin_interclass_mathfn ().
29431 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
29432 (ilogbsi2): Remove.
29433 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
29434 ilogbl built-in functions as x87 intrinsics.
29435
56e902bd 294362007-01-30 Richard Guenther <rguenther@suse.de>
29437
29438 PR middle-end/27657
29439 * dwarf2out.c (reference_to_unused): Query varpool if the
29440 variable was output.
29441
159787b7 294422007-01-30 Richard Guenther <rguenther@suse.de>
29443
29444 PR middle-end/30313
29445 * passes.c (execute_one_pass): Reset in_gimple_form to not
29446 confuse non-unit-at-a-time mode.
29447
816f7496 294482007-01-29 Roger Sayle <roger@eyesopen.com>
29449 Richard Guenther <rguenther@suse.de>
29450
29451 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
29452 avoid undefined behaviour on overflow. Use force_fit_type_double
29453 to construct the constant with the specified TREE_OVERFLOW.
29454
4d863ca5 294552007-01-29 Janis Johnson <janis187@us.ibm.com>
29456
29457 * config/dfp-bit.c: Add parameterized support for fp exceptions.
29458 * config/dfp-bit.h: Ditto.
29459
816f7496 294602007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
92fccaaa 29461
29462 * c-decl.c (pop_scope): Replace warnings with call to
29463 warn_for_unused_label.
29464 * c-common.h (warn_for_unused_label): Declare.
29465 * c-common.c (warn_for_unused_label): Define.
29466
e00076da 294672007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29468
29469 * tree-optimize.c (update_inlined_to_pointers): Delete unused
29470 function.
29471
2675096e 294722007-01-29 Janis Johnson <janis187@us.ibm.com>
29473
29474 * Makefile.in (USER_H): Remove decfloat.h.
29475 * ginclude/decfloat.h: Delete, moving contents to ...
29476 * ginclude/float.h: Add support for decimal floating point,
29477 guarded by __STDC_WANT_DEC_FP__.
29478
339496f1 294792007-01-29 Mike Stump <mrs@apple.com>
29480
29481 * doc/gccint.texi (Top): Rename Loop Representation to Loop
29482 Analysis and Representation to resolve case insensitive conflict.
29483 * doc/loop.texi (Loop Analysis and Representation): Likewise.
29484
0eaf9bd7 294852007-01-28 Daniel Berlin <dberlin@dberlin.org>
29486
29487 * tree.h (struct tree_memory_tag): Add aliases member.
29488 (MTAG_ALIASES): New macro.
29489 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
29490 (add_may_alias): Remove pointer-set. Update for may_aliases being
3451fffd 29491 a bitmap.
0eaf9bd7 29492 (mark_aliases_call_clobbered): Update for may_aliases being a
29493 bitmap.
29494 (compute_tag_properties): Ditto.
29495 (create_partition_for): Ditto.
29496 (compute_memory_partitions): Ditto.
29497 (dump_may_aliases_for): Ditto.
29498 (is_aliased_with): Ditto.
29499 (add_may_alias_for_new_tag): Ditto.
29500 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
29501 (compute_is_aliased): New function.
29502 (compute_may_aliases): Call compute_is_aliased).
29503 (init_alias_info): Initialize alias_bitmap_obstack.
29504 (union_alias_set_into): New function.
29505 (compute_flow_sensitive_aliasing): Use union_aliases_into.
29506 (have_common_aliases_p): Rewrite to take two bitmaps and use
29507 intersection.
29508 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
29509 Update for bitmaps.
29510 (finalize_ref_all_pointers): Update for add_may_alias changes.
29511 (new_type_alias): Ditto.
29512 * tree-flow-inline.h (may_aliases): Return a bitmap.
29513 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
29514 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
29515 may_aliases being a bitmap.
29516 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
29517 may_aliases now returns a bitmap.
29518 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
29519 being a bitmap.
29520 * tree-ssa-operands.c (add_virtual_operand): Update for
29521 may_aliases being a bitmap.
3451fffd 29522
c2bed432 295232007-01-29 Daniel Berlin <dberlin@dberlin.org>
29524
29525 PR tree-optimization/30630
29526 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
29527 variable as changed.
29528
e1f6aa48 295292007-01-29 Simon Martin <simartin@users.sourceforge.net>
29530
29531 PR c++/28266
29532 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
29533 expanded only once even if an error occurs.
29534
f8de4e8d 295352007-01-29 Ben Elliston <bje@au.ibm.com>
29536
29537 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
29538 (__gcov_average_profiler): Likewise.
29539 (__gcov_ior_profiler): Likewise.
29540 (__gcov_merge_ior): Likewise.
29541
f8eabf22 295422007-01-28 Jan Hubicka <jh@suse.cz>
29543
29544 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
29545 * value-prof.c (stringop_block_profile): Likewise.
29546
162719b3 295472007-01-28 Jan Hubicka <jh@suse.cz>
29548
ed69c853 29549 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
29550 Add variant handling histograms; add wrapper.
162719b3 29551 (clear_storage_via_libcall): Export.
29552 (emit_block_move_hints): Break out from ...; add histograms.
29553 (emit_block_move): ... this one.
29554 (clear_storage_hints): Break out from ...; add histograms.
29555 (clear_storage): ... this one.
29556 (set_storage_via_memset): Handle histogram.
29557 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
29558 (clear_storage_hints, clear_storage_via_libcall): Declare.
29559 (set_storage_via_setmem): Update prototype.
29560 * doc/md.texi (movmem, setmem): Document new arguments.
29561
ed69c853 29562 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
29563 Add new histograms.
162719b3 29564 (stringop_block_profile): New global function.
29565 (tree_stringops_values_to_profile): Profile block size and alignment.
29566 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
29567 HIST_TYPE_IOR.
29568 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
29569 (stringop_block_profile): Declare.
29570 * builtins.c: Include value-prof.h.
29571 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
29572 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
29573 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
29574 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
29575 * profile.c (instrument_values): Add new counters.
29576 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
29577 calls.
29578 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
29579 (tree_init_edge_profiler): Build new profilers.
29580 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
29581 (pass_tree_profile): Add dump.
29582 (tree_profile_hooks): Update.
29583 * Makefile.in (LIBGCOV): Add new constants.
29584 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
29585 __gcov_ior_profiler): New.
29586 * i386.md (movmem/setmem expanders): Add new optional arguments.
29587
5a9b9759 295882007-01-28 David Edelsohn <edelsohn@gnu.org>
29589
29590 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
29591
bc8bb825 295922007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
29593
29594 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
29595 (tree_unswitch_single_loop): Pass eni_size_weights to
29596 tree_num_loop_insns.
29597 * tree-ssa-loop-manip.c: Include tree-inline.h.
29598 (can_unroll_loop_p): Pass eni_size_weights to
29599 tree_num_loop_insns.
29600 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
29601 Pass eni_size_weights to estimate_num_insns.
29602 * tree.h (init_inline_once): Export.
29603 * toplev.c (backend_init): Call init_inline_once.
29604 * cgraphunit.c (cgraph_process_new_functions,
29605 cgraph_analyze_function): Pass eni_inlining_weights to
29606 estimate_num_insns.
29607 * ipa-inline.c (compute_inline_parameters): Ditto.
29608 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
29609 to estimate_num_insns.
29610 (try_unroll_loop_completely): Pass eni_size_weights to
29611 tree_num_loop_insns.
29612 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
29613 ot estimate_num_insns.
29614 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
29615 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
29616 * tree-inline.c (eni_inlining_weights, eni_size_weights,
29617 eni_time_weights): New variables.
29618 (init_inline_once): Initialize them.
29619 (struct eni_data): Mew.
29620 (estimate_num_insns_1, estimate_num_insns): Use weights.
29621 * tree-inline.h (struct eni_weights_d): New.
29622 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
29623 (estimate_num_insns): Declaration changed.
29624 * cfgloop.h (tree_num_loop_insns): Declaration changed.
29625 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
29626 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
29627
a86c75a6 296282007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
29629
29630 * tree-data-ref.c (conflict_fn): Assert that the number of affine
29631 relations in the conflict function is valid.
29632
981eb798 296332007-01-27 Ian Lance Taylor <iant@google.com>
29634
29635 * common.opt: Add fstrict-overflow.
29636 * opts.c (decode_options): Set flag_strict_overflow if -O2.
29637 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
29638 (TYPE_OVERFLOW_UNDEFINED): Define.
29639 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
29640 Replace all uses.
29641 * tree.h (TYPE_TRAP_SIGNED): Don't define.
29642 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
29643 (fold_negate_expr): Likewise.
29644 (make_range): Likewise.
29645 (extract_muldiv_1): Likewise.
29646 (maybe_canonicalize_comparison): Likewise.
29647 (fold_comparison): Likewise.
29648 (fold_binary): Likewise.
29649 (tree_expr_nonnegative_p): Likewise.
29650 (tree_expr_nonzero_p): Likewise.
29651 * tree-vrp.c (compare_values): Likewise.
29652 (extract_range_from_binary_expr): Likewise.
29653 (extract_range_from_unary_expr): Likewise.
29654 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
29655 Likewise.
29656 (nowrap_type_p): Likewise.
29657 * tree-scalar-evolution.c (simple_iv): Likewise.
29658 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
29659 (build_range_check): Likewise.
29660 (extract_muldiv_1): Likewise.
29661 (fold_comparison): Likewise.
29662 * tree-vrp.c (vrp_int_const_binop): Likewise.
29663 (extract_range_from_unary_expr): Likewise.
29664 * convert.c (convert_to_integer): Likewise.
29665 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
29666 (fold_comparison): Likewise.
29667 (fold_binary): Likewise.
29668 * optabs.c (optab_for_tree_code): Likewise.
29669 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
29670 * simplify-rtx.c (simplify_const_relational_operation): Check
29671 flag_strict_overflow and flag_trapv.
29672 (simplify_const_relational_operation): Likewise.
29673 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
29674 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
29675 -fstrict-overflow.
29676
426a138f 296772007-01-27 Roger Sayle <roger@eyesopen.com>
29678
29679 * tree.c (tree_fold_gcd): Delete.
29680 * tree.h (tree_fold_gcd): Remove prototype.
29681 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
29682 test whether one constant integer is a multiple of another. Instead
29683 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
48dc2227 29684 * fold-const.c (multiple_of_p): We've determined both TOP and
426a138f 29685 BOTTOM are integer constants so we can call int_const_binop directly
29686 instead of the more generic const_binop.
29687
6117e415 296882007-01-27 Roger Sayle <roger@eyesopen.com>
29689
29690 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
29691 1*X check that the constant hasn't overflowed, to preserve the
29692 TREE_OVERFLOW bit.
29693 (round_up): Provide an efficient implementation when rouding-up an
29694 INTEGER_CST to a power-of-two.
29695
d97af3bf 296962007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29697
29698 * doc/sourcebuild.texi: Add comma for clarity.
29699 * doc/extend.texi: Fix some typos.
29700 * doc/passes.texi: Likewise.
29701 * doc/cppinternals.texi: Likewise.
29702 * doc/c-tree.texi: Likewise.
29703 * doc/tree-ssa.texi: Likewise.
c828b754 29704 * doc/install.texi: Likewise.
d97af3bf 29705
5620e045 297062007-01-27 Jan Hubicka <jh@suse.cz>
29707
29708 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
29709 (pass_sra): Do not require alias information.
29710 * passes.c (init_optimization_passes): Add SRA
29711
fcde5c9e 297122007-01-27 Steven Bosscher <steven@gcc.gnu.org>
29713
29714 * tracer.c (rest_of_handle_tracer): We already cleaned
29715 up the CFG in tracer() so don't do it here again.
29716 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
29717 cleanup_cfg here, either. And don't call renumber_insns.
29718
29719 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
29720 and BB_HEAD are in the insn stream here. Instead make sure
29721 that BB_INSN is valid on all insns. Also, do check here that
29722 there are no pending branch predictions...
29723 (rtl_verify_flow_info): ...instead of doing it here. Checks
29724 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
29725 here.
29726
aa58076f 297272007-01-26 Roger Sayle <roger@eyesopen.com>
29728
29729 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
29730 function to simplify/factorize operand order canonicalization.
29731 (ix86_fixup_binary_operands): Reorganize using the above function.
29732 (ix86_binary_operator_ok): Likewise.
29733
92f58791 297342007-01-27 Jakub Jelinek <jakub@redhat.com>
29735
29736 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
29737 file scope from optimize_attrs.
29738 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
29739 up search.
29740 (optimize_attrs): Clear insn_code_values after freeing it.
29741
4957c5e4 297422007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
29743
29744 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
29745 a parts.base assignment.
29746
87da4f2e 297472007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
29748
29749 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
29750 (compute_subscript_distance, initialize_data_dependence_relation,
29751 finalize_ddr_dependent, analyze_ziv_subscript,
29752 analyze_siv_subscript_cst_affine,
29753 compute_overlap_steps_for_affine_univar,
29754 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
29755 analyze_siv_subscript, analyze_miv_subscript,
29756 analyze_overlapping_iterations, subscript_dependence_tester_1,
29757 compute_self_dependence, free_dependence_relation): Work
29758 with affine_fn instead of chrecs.
29759 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
29760 common_affine_function, affine_function_base,
29761 affine_function_constant_p, affine_fn_op, affine_fn_plus,
29762 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
29763 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
29764 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
29765 (all_chrecs_equal_p): Removed.
29766 * tree-data-ref.h (affine_fn, conflict_function): New types.
29767 (struct subscript): Change type of conflicting_iterations_in_a
29768 and conflicting_iterations_in_b.
29769
01cbacb9 297702007-01-26 Steve Ellcey <sje@cup.hp.com>
29771
29772 PR other/30182
29773 * config/pa/pa.h (TARGET_HPUX_11): New.
29774 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
29775 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
29776
07cd0533 297772007-01-26 Daniel Berlin <dberlin@dberlin.org>
29778 Richard Guenther <rguenther@suse.de>
29779
29780 * tree-ssa-structalias.c (solve_graph): Handle case
29781 we merged the variable to another.
29782
503733d5 297832007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29784
29785 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
29786 functions.
29787
29788 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
29789 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
29790
f82c9309 297912007-01-25 DJ Delorie <dj@redhat.com>
29792
ced4068a 29793 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
29794 allow changes to modes which don't fit in those registers.
29795
f82c9309 29796 * reload1.c (choose_reload_regs): Check for invalid subregs before
29797 computing their locations, not after.
29798
8cdbd846 297992007-01-25 Geoffrey Keating <geoffk@apple.com>
29800
29801 PR 25127
29802 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
29803 save Altivec registers in an eh_return function.
29804 (compute_vrsave_mask): Likewise.
29805 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
29806 for saving Altivec registers.
29807 (rs6000_emit_prologue): Don't allocate stack twice in
29808 eh_return function. Correct expected value of altivec_save_offset
29809 when using save_world. Describe save of R0 to stack when using
29810 save_world. Describe stack pointer adjustment when using
29811 save_world. Remove duplicated eh_return parameter register saving.
29812 Update sp_offset variable after save_world.
29813 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
29814 darwin-world.asm.
29815 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
29816 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
29817 implies Altivec.
29818
c5e978ad 298192007-01-25 Steve Ellcey <sje@cup.hp.com>
29820
29821 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
29822
aafb162c 298232007-01-25 Steve Ellcey <sje@cup.hp.com>
29824
29825 PR other/30182
29826 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
48dc2227 29827 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
aafb162c 29828
c81ed7c1 298292007-01-25 Richard Guenther <rguenther@suse.de>
29830
29831 * doc/invoke.texi (-Wcoverage-mismatch): Document.
29832 * common.opt (-Wcoverage-mismatch): New warning option.
29833 * coverage.c (get_coverage_counts): Ignore coverage mismatch
29834 if -Wcoverage-mismatch is given.
29835
efec805e 298362007-01-25 Razya Ladelsky <razya@il.ibm.com>
29837
3451fffd 29838 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
29839 (ipcp_driver): Change to static definition.
8cdbd846 29840 Add dumping of the ifunctions.
29841 (constant_val_insert): Remove unused parameter. Support for SSA.
29842 (ipcp_propagate_const): Support for SSA.
29843 (ipcp_profile_bb_print): Print only analyzed nodes.
3451fffd 29844 (ipcp_replace_map_create): Remove support for Fortran constant
8cdbd846 29845 for now.
3451fffd 29846 * ipa-prop.c (ipa_method_modify_stmt,
8cdbd846 29847 ipa_callsite_compute_param): Support for SSA.
29848 * ipa-prop.h (ipcp_driver): Remove declaration.
29849 (IS_VALID_TREE_MAP_INDEX): Add define.
29850
91431f97 298512007-01-24 Geoffrey Keating <geoffk@apple.com>
29852
29853 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
29854
b4725390 298552007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29856
29857 PR middle-end/30447
29858 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
29859 constant argument to cabs and do it without checking for
29860 -funsafe-math-optimizations.
29861
71d66778 298622007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
29863
29864 * c-common.h (RID_FIRST_CXX0X): New.
29865 (RID_LAST_CXX0X): New.
29866 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
29867 by -Wall.
29868 * c.opt (Wc++0x-compat): New.
29869 * doc/invoke.texi (-Wc++0x-compat): Document.
29870
abe4dcf6 298712007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29872
29873 * builtins.c (fold_builtin_carg): New.
29874 (fold_builtin_1): Use it.
29875
5c121ffe 298762007-01-24 Jan Hubicka <jh@suse.cz>
29877
7c877cea 29878 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
29879
5c121ffe 29880 * ipa-inline.c (initial_insns, max_insns): Delete.
29881 (compute_max_insns): New function.
ed69c853 29882 (cgraph_decide_inlining_of_small_function): Use it; take minimal
29883 amount of insns as base for code growth.
5c121ffe 29884 (cgraph_decide_inlining): Make initial_insns local; do not compute
29885 max_insns.
29886 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
29887 * doc/invoke.texi (inline-unit-growth): Update docs.
29888
1e4afe3c 298892007-01-24 Jakub Jelinek <jakub@redhat.com>
29890
7d024c6a 29891 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
29892 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
29893 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
29894 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
29895 for CPUs that have PTA_CX16 set.
29896
f9b59f0c 29897 PR middle-end/27416
29898 * gimplify.c (omp_check_private): New function.
29899 (gimplify_scan_omp_clauses): Use it for
29900 firstprivate/lastprivate/reduction.
29901
fc6ebbc0 29902 PR middle-end/30494
29903 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
29904 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
29905
1e4afe3c 29906 PR middle-end/30421
29907 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
29908 If lower_lastprivate_clauses emits some statements, append them
29909 to dlist rather than body_p and to body_p append an initializer.
29910 (lower_omp_for): Adjust caller.
29911
649f4321 299122007-01-24 Steve Ellcey <sje@cup.hp.com>
29913
29914 * target.h (globalize_decl_name): New.
29915 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
29916 * output.h (default_globalize_decl_name): New.
29917 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
29918 globalize_label.
c6f3c945 29919 (globalize_decl): Ditto.
649f4321 29920 (default_globalize_decl_name): New.
29921 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
29922 (ia64_handle_version_id_attribute): New.
29923 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
29924 (ia64_asm_output_external): Use globalize_decl_name instead
29925 of globalize_label.
29926 * doc/extend.texi (version_id): New pragma.
29927 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
29928
c68b099b 299292007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
29930
3451fffd 29931 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
c68b099b 29932 _uleb128_t and _Unwind_SWord with _sleb128_t.
ed69c853 29933 * unwind-dw2.c (extract_cie_info, execute_stack_op,
29934 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
29935 Likewise.
c68b099b 29936 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
29937 * unwind-pe.h (read_uleb128, read_sleb128,
29938 read_encoded_value_with_base): Likewise.
29939 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
29940
0ecbc158 299412007-01-24 Richard Guenther <rguenther@suse.de>
29942
29943 * builtins.c (expand_builtin_cexpi): Get the fndecl
29944 for cexp in the correct way.
29945
7f0432c3 299462007-01-24 Jan Hubicka <jh@suse.cz>
29947
ed69c853 29948 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
29949 of calls.
7f0432c3 29950
6a60f216 299512007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
29952
29953 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
29954 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
29955 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
29956 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
29957 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
29958 __SIZEOF_PTRDIFF_T__.
29959 * doc/cpp.texi: Documentation for the new builtin macros added.
29960
bec03e1c 299612007-01-24 Uros Bizjak <ubizjak@gmail.com>
29962
29963 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
29964 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
29965 instead of operands[2] to avoid access past the end of array.
29966
7b1ee155 299672007-01-24 Richard Sandiford <richard@codesourcery.com>
29968
29969 * reload1.c (emit_reload_insns): Pass the reload register
29970 for a non-spill output reload through forget_old_reloads_1.
29971
3da0fdbc 299722007-01-23 Joseph Myers <joseph@codesourcery.com>
29973
29974 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
29975 _SOFT_DOUBLE if doubles use software floating-point.
29976 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
29977 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
29978 * config/rs6000/darwin-ldouble.c: Also compile functions for
29979 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
29980 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
29981 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
29982 commented-out long double override.
29983 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
29984 * config/rs6000/eabispe.h: Likewise.
29985 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
29986 long double for non-SPE.
29987 (rs6000_handle_option): Likewise.
29988 (invalid_e500_subreg): Disallow more subregs involding DImode,
29989 DFmode, TImode or TFmode.
29990 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
29991 E500 double.
29992 (legitimate_lo_sum_address_p): Also check for TFmode for E500
29993 double.
29994 (rs6000_legitimize_address): Also handle TFmode for E500 double.
29995 (rs6000_legitimize_reload_address): Also handle TFmode for E500
29996 double.
29997 (rs6000_legitimate_address): Also check for TFmode for E500
29998 double.
29999 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
30000 (spe_build_register_parallel): Handle TFmode and TCmode.
30001 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
30002 double.
30003 (function_arg): Handle TFmode and TCmode for E500 double.
30004 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
30005 in general.
30006 (print_operand): Handle TFmode and TImode for %y.
30007 (rs6000_generate_compare): Handle TFmode comparisons for E500
30008 double.
30009 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
30010 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
30011 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
30012 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
30013 TFmode for E500 double.
30014 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
30015 (floatsidf2): Enable for E500 double.
30016 (movtf_softfloat): Use rs6000_nonimmediate_operand.
30017 (extenddftf2): Change to extenddftf2_fprs.
30018 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
30019 depending on TARGET_E500_DOUBLE.
30020 (extendsftf2): Enable for E500 double.
30021 (trunctfdf2): Enable for E500 double.
30022 (trunctfsf2): Change to trunctfsf2_fprs.
30023 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
30024 depending on TARGET_E500_DOUBLE.
30025 (floatsitf2): Enable for E500 double.
30026 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
30027 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
30028 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
30029 (negtf2): Change to negtf2_internal.
30030 (negtf2): New expander.
30031 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
30032 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
30033 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
30034 (movdi_internal32): Use rs6000_nonimmediate_operand.
30035 (unnamed splitter): Likewise.
30036 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
30037 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
30038 (SPE64TF, DITI): New mode macros.
30039 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
30040 modes.
30041 (frob_tf_ti): New.
30042 (frob_<mode>_di_2): New.
30043 (frob_tf_di_8_2): New.
30044 (frob_di_df): Change to frob_di_<mode>; allow more modes.
30045 (frob_ti_tf): New.
30046 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
30047 more modes.
30048 (frob_ti_<mode>_8_2): New.
30049 (frob_ti_tf_2): New.
30050 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
30051 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
30052 TFmode.
30053 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
30054 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
30055 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
30056 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
30057 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
30058 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
30059 tsttflt_gp): New.
30060
cfcda0e0 300612007-01-23 Ian Lance Taylor <iant@google.com>
30062
30063 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
30064 insn-*.o first.
30065 (OBJS-archive): Reformat, alphabetize.
30066 (OBJS): Change out_object_file to OBJS-md.
30067
24deb0af 300682007-01-23 Uros Bizjak <ubizjak@gmail.com>
30069
30070 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
30071 JUMP_P and CALL_P predicates where applicable.
30072 * config/i386/i386.c: Ditto.
30073 * config/i386/i386.md: Ditto.
30074 * config/i386/mmx.md: Ditto.
30075 * config/i386/predicates.md: Ditto.
30076
874f8dfb 300772007-01-22 Andreas Schwab <schwab@suse.de>
30078
30079 * config/m68k/m68k.h: Fix comment.
30080
f6c42322 300812007-01-22 Jan Hubicka <jh@suse.cz>
30082
30083 * passes.c (init_optimization_passes): Do not rerun
30084 pass_early_warn_uninitialized.
30085
a0315874 300862007-01-22 Richard Guenther <rguenther@suse.de>
30087
30088 PR tree-optimization/30038
30089 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
30090 function.
30091 (execute_cse_sincos_1): Likewise.
30092 (execute_cse_sincos): Likewise.
30093 (gate_cse_sincos): Likewise.
30094 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
30095 the cexpi() canonicalization of sincos().
30096 * tree-pass.h (pass_cse_sincos): Declare.
30097 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
30098
cf86e5ce 300992007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
30100
30101 PR rtl-optimization/29329
30102 * combine.c (replaced_rhs_insn): Rename to i2mod.
30103 (replaced_rhs_value): Rename to i2mod_new_rhs.
30104 (i2mod_old_rhs): New global variable.
30105 (combine_instructions): Adjust for above change. Save a copy of
30106 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
30107 note are substituted in the second instruction.
30108 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
30109 ditch the note if it pertains to the second eliminated register
30110 and this register is mentioned in i2mod_old_rhs.
30111
30112 Revert:
30113 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
30114
30115 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
30116 the insn to which the note was originally attached.
30117
436a2379 301182007-01-21 Jan Hubicka <jh@suse.cz>
30119
30120 * ipa-inline.c (inlining_mode): Comment, move up.
24deb0af 30121 (cgraph_decide_inlining_incrementally): Do not perform inlining
30122 itself; fix handling of flattening of self recursive functions.
436a2379 30123 (cgraph_find_cycles): Remove.
30124 (cgraph_flatten_node): Remove.
30125 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
30126 (try_inline): New function.
f6c42322 30127 (cgraph_early_inlining): Update call of
30128 cgraph_decide_inlining_incrementally. Apply inlining here.
436a2379 30129 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
30130
533a9fbc 301312007-01-21 Dirk Mueller <dmueller@suse.de>
30132
30133 PR bootstrap/30511
30134 * tree-vrp.c (check_array_bounds): do not warn
30135 about ADDR_EXPR's of ARRAY_REF's which are immediately
30136 used in binary expressions.
30137
e51f5136 301382007-01-21 Ira Rosen <irar@il.ibm.com>
30139
3451fffd 30140 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
e51f5136 30141 read_write_dep and macros for its access.
30142 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
3451fffd 30143 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
e51f5136 30144 argument, call vect_check_interleaving for every independent pair of
30145 data-refs. Mark loads that access the same memory location as a store
30146 in the loop.
30147 (vect_check_dependences): Remove.
3451fffd 30148 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
e51f5136 30149 call, fix the call to vect_analyze_data_ref_dependence.
3451fffd 30150 (vect_analyze_data_ref_access): For statements that access the same
e51f5136 30151 data-ref, check that they are not stores; for loads, check that there
30152 is no store that access the same location.
30153
0c672d68 301542007-01-20 Roger Sayle <roger@eyesopen.com>
30155 Joseph Myers <joseph@codesourcery.com>
30156
30157 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
30158 (-fdump-rtl-stack): Likewise.
30159 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
30160 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
30161 (-mpt-fixed): Use @minus{} for minus sign.
30162 (Using Precompiled Headers): Fix under/overfull hbox.
30163
bec28d38 301642007-01-20 Jan Hubicka <jh@suse.cz>
30165
30166 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
30167 place within annotation.
30168
b2f8bd14 301692007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30170
30171 * pa.c (output_move_double): Change array size of xoperands to 4.
30172
0747b42f 301732007-01-20 Jan Hubicka <jh@suse.cz>
30174
30175 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
30176 as temporary.
30177
f74f4e04 301782007-01-19 Ian Lance Taylor <iant@google.com>
30179
30180 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
30181 constant to unsigned HOST_WIDE_INT before negating.
30182
aa1fb459 301832007-01-19 Ian Lance Taylor <iant@google.com>
30184
30185 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
30186 to unsigned.
30187 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
30188 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
30189 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
30190 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
30191 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
30192 (realloc_vdef, realloc_vuse): Change second parameter to
30193 unsigned.
30194 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
30195 fields to unsigned.
30196 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
30197 unsigned. Change x and lim locals to unsigned.
30198 (realloc_vdef, realloc_vuse): Change num_elem parameter to
30199 unsigned.
30200 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
30201 (copy_virtual_operands): Change i and n locals to unsigned.
30202
46b3f237 302032007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30204
30205 PR middle-end/29335
30206 * builtins.c (fold_builtin_1): Handle builtin fdim.
30207
8a4affa8 302082007-01-20 Jan Hubicka <jh@suse.cz>
30209
c6f3c945 30210 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
30211 * tree-ssa-structalias.c (compute_points_to_sets): Do call
30212 init_alias_heapvars.
30213 (init_alias_heapvars): Initialize only when not already initialized.
30214 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
8a4affa8 30215
893038cd 302162007-01-19 Roger Sayle <roger@eyesopen.com>
30217
30218 * common.opt (fsigned-zeros): New command line option.
30219 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
30220 of flag_unsafe_math_optimizations.
30221 * opts.c (set_fast_math_flags): The -ffast-math command line option
30222 implies -fno-signed-zeros.
30223 (fast_math_flags_set_p): Likewise.
30224
30225 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
30226 the documentation of -ffast-math appropriately. Wrap long lines.
30227
c5a1dccd 302282007-01-19 Steve Ellcey <sje@cup.hp.com>
30229
30230 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
30231 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
30232
167b550b 302332007-01-19 Tomas Bily <tbily@suse.cz>
30234
c6f3c945 30235 * cgraphunit.c (cgraph_finalize_function): Updating of pid
30236 * tree-profile.c:
30237 (tree_init_ic_make_global_vars): New function
30238 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
30239 (tree_gen_ic_profiler): New function
30240 (tree_gen_ic_func_profiler): New function
30241 (tree_profiling): Added calling of tree_gen_ic_func_profiler
30242 (tree_profile_hooks): Added hook for indirec/virtual calls
30243 * value-prof.c (tree_find_values_to_profile): New case for
30244 indirect calls
30245 (tree_values_to_profile): Call for determining indirect/virtual
30246 counters
30247 (tree_indirect_call_to_profile): New function
30248 (tree_ic_transform): New function
30249 (tree_ic): New function
30250 (find_func_by_pid): New function
30251 (init_pid_map): New function
30252 (tree_value_profile_transformations): Added check for
30253 indirect/virtual call transformation
30254 * value-prof.h (enum hist_type): New counter type for
30255 indirect/virtual calls
30256 (profile_hooks): Added new hook for profiling indirect/virtual
30257 calls
30258 * profile.c (instrument_values): New case for indirect/virtual
30259 call added
30260 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
30261 (GCOV_COUNTER_V_INDIR): New counter type
30262 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
30263 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
30264 call added
30265 * cgraph.c: Definition of cgraph_max_pid
30266 (cgraph_create_node): Default init of pid attribute
30267 * cgraph.h: Declaration of cgraph_max_pid
30268 (struct cgraph_node): Added pid attribute
30269 * libgcov.c (__gcov_indirect_call_profiler): New function
167b550b 30270 (__gcov_one_value_profiler_body): New function
30271 (__gcov_one_value_profiler): Body was moved to
30272 __gcov_one_value_profiler_body and calls it
30273
c1b4ac84 302742007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
3451fffd 30275
c467a6ec 30276 * doc/gty.texi (Options): Document the mark_hook option to GTY.
c6f3c945 30277 * gengtype.c (write_types_data, write_func_for_structure,
30278 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
30279 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
30280 (walk_type, write_func_for_structure): Generate the mark_hook if
30281 needed.
c1b4ac84 30282
a223d5ed 302832007-01-19 Jan Hubicka <jh@suse.cz>
30284
f6c42322 30285 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
30286 'early' argument take inlining mode argument specifying whether to
30287 inline for size/speeed or all functions; add support for flattening;
30288 improve dumpting.
a223d5ed 30289 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
30290
bf6fb451 302912007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30292
30293 PR c++/17947
30294 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
30295 the name of the declared identifier.
3451fffd 30296
ae451f6e 302972007-01-19 Dirk Mueller <dmueller@suse.de>
30298
30299 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
30300 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
30301 duplicate evaluation.
30302
6947119e 303032007-01-19 Uros Bizjak <ubizjak@gmail.com>
30304
30305 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
30306 Macroize expander using X87MODEF12 mode macro. Extend operand 1
30307 to XFMode, use acosxf2 and truncate result to requested mode.
30308 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
30309 (asin<mode>2): Similarly, with asin expanders.
30310 (*fscalexf4_i387): Rename from *fscalexf4.
30311 (expNcorexf3): New expander.
30312 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
30313 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
30314 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
30315 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
30316 patterns for SSE math.
30317 (exp10<mode>2): Similarly, with exp10 expanders.
30318 (exp2<mode>2): Similarly, with exp2 expanders.
30319 (expm1<mode>2): Similarly, with expm1 expanders.
30320 (ldexp<mode>3): Similarly, with ldexp expanders.
30321 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
30322 Use gen_truncxf<mode>2_i387_noop to truncate result.
30323
ef1d56fd 303242007-01-19 Richard Sandiford <richard@codesourcery.com>
30325
30326 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
30327 for ColdFire targets.
30328
f6aeaff7 303292007-01-19 Nathan Sidwell <nathan@codesourcery.com>
30330 Richard Sandiford <richard@codesourcery.com>
30331
30332 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
30333 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
30334 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
30335 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
30336 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
30337 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
30338
b5489b01 303392007-01-19 Richard Sandiford <richard@codesourcery.com>
30340
30341 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
30342 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
30343 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
30344 (*adddi_dilshr32_cf): New pattern.
30345 (adddi3, subdi3): Remove first alternatives.
30346
12e6817c 303472007-01-19 Richard Sandiford <richard@codesourcery.com>
30348
30349 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
30350 implemented using move.l, do not use its cc result for floating-point
30351 comparisons.
30352
53d1aede 303532007-01-19 Richard Sandiford <richard@codesourcery.com>
30354
30355 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
30356 from accepting 's' constraints if flag_pic.
30357
a77fcdb5 303582007-01-19 Richard Sandiford <richard@codesourcery.com>
30359
30360 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
30361 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
30362 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
30363 condition from TARGET_68881 to TARGET_HARD_FLOAT.
30364
afc78fc6 303652007-01-19 Sandra Loosemore <sandra@codesourcery.com>
30366
30367 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
30368 ColdFire alternatives.
30369 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
48dc2227 30370 * config/m68k/m68k.md (clzsi2): Define for ColdFire
afc78fc6 30371 architectures that support ff1 instruction.
30372
9b84b1a0 303732007-01-19 Richard Sandiford <richard@codesourcery.com>
30374 Julian Brown <julian@codesourcery.com>
30375
30376 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
30377 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
30378 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
30379 Add commentary.
30380
92b2fb42 303812007-01-19 Richard Sandiford <richard@codesourcery.com>
30382
30383 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
30384 and return a bool.
30385 (output_move_const_into_data_reg, output_move_simode_const): Delete.
30386 * config/m68k/m68k.c (const_method, const_int_cost): Take a
30387 HOST_WIDE_INT instead of an rtx.
30388 (m68k_rtx_costs): Update call accordingly.
30389 (output_move_const_into_data_reg): Likewise. Fix formatting.
30390 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
30391 Return a bool.
30392 (output_move_simode_const): Update calls after above changes.
30393 Rework to use automatic variables and predicates like MEM_P.
30394 * config/m68k/m68k.md (pushexthisi_const): Update call to
30395 valid_mov3q_const.
30396
0868ec7d 303972007-01-19 Dirk Mueller <dmueller@suse.de>
30398
30399 * tree-ssa-alias.c (perform_var_substitution): Fix typo
30400 in dump_flags test.
30401
18b8d8ae 304022007-01-19 Richard Guenther <rguenther@suse.de>
30403
30404 * builtins.c (expand_builtin_cexpi): Fall back to expanding
30405 via cexp in case sincos is not available.
30406
164951a6 304072007-01-19 Richard Guenther <rguenther@suse.de>
30408
30409 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
30410 * defaults.h (TARGET_HAS_SINCOS): Default to off.
30411 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
30412 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
30413 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
30414 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
30415 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
30416 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
30417
6f3bbf88 304182007-01-19 Uros Bizjak <ubizjak@gmail.com>
30419
30420 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
30421 New insn patterns.
30422 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
30423 (atan2xf3): Directly generate RTL pattern.
30424 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
30425 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
30426 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
30427 disable patterns for SSE math.
30428 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
30429 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
30430 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
30431 disable patterns for SSE math.
30432
87a18e8b 304332007-01-19 Alexandre Oliva <aoliva@redhat.com>
30434
30435 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
30436
eb381097 304372007-01-18 Roger Sayle <roger@eyesopen.com>
30438
30439 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
30440 VIEW_CONVERT_EXPR to the same type as it's operand.
30441
1c61d3c1 304422007-01-18 David Edelsohn <edelsohn@gnu.org>
30443
30444 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
30445 configured for long double 128.
30446
7676ab0b 304472007-01-18 Mike Stump <mrs@apple.com>
30448
30449 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
30450 error.
30451
94675b16 304522007-01-18 Michael Meissner <michael.meissner@amd.com>
30453
30454 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
30455 type correct.
30456
490862aa 304572007-01-18 Jan Hubicka <jh@suse.cz>
30458
30459 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
30460 greater than NUM_VOP_FREE_BUCKETS.
30461
8a3fd8a7 304622007-01-18 Daniel Berlin <dberlin@dberlin.org>
30463
30464 * tree-ssa-structalias.c: Update comments.
30465 (ptabitmap_obstack): Removed.
30466 (pta_obstack): New.
30467 (oldpta_obstack): Ditto.
30468 (stats): Add a few members.
30469 (struct variable_info): Remove node, complex, address_taken, and
30470 indirect_target members. Add oldsolution member.
30471 (new_var_info): Do not initialize removed members.
30472 (constraint_expr_type): Remove INCLUDES.
30473 (constraint_graph): Add size, implicit_preds, rep,
30474 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
30475 (FIRST_REF_NODE): New macro.
30476 (LAST_REF_NODE): Ditto.
30477 (FIRST_ADDR_NODE): Ditto.
30478 (find): New function.
30479 (unite): Ditto.
30480 (dump_constraint): Do not handle INCLUDES.
30481 (insert_into_complex): Do not insert duplicate constraints.
30482 (condense_varmap_nodes): Renamed and rewritten into ...
30483 (merge_node_constraints): This. Also fix bug in handling of
30484 offseted copy constraints.
30485 (clear_edges_for_node): No longer need to deal with preds at all,
3451fffd 30486 or removing associated preds/succs.
8a3fd8a7 30487 (merge_graph_nodes): Deal with indirect_cycles.
30488 Don't deal with predecessors.
30489 (add_implicit_graph_edge): New function.
30490 (add_pred_graph_edge): Ditto.
30491 (add_graph_edge): Don't deal with predecessors.
30492 (build_constraint_graph): Removed.
30493 (build_pred_graph): New function.
30494 (build_succ_graph): Ditto.
30495 (struct scc_info): Removed in_component. Added roots, dfs, and
30496 node_mapping. Remove visited_index, unification_queue.
30497 (scc_visit): Deal with union-find we do now.
30498 Deal with cycles with REF nodes.
30499 (collapse_nodes): Renamed and rewritten to ...
30500 (unify_nodes): This.
30501 (process_unification_queue): Removed.
30502 (topo_visit): Cleanup
30503 (do_da_constraint): Use find.
30504 (do_sd_constraint): Ditto.
30505 (do_ds_constraint): Ditto.
30506 (do_complex_constraint): Ditto.
30507 (init_scc_info): Update for removed and added members.
30508 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
30509 (find_indirect_cycles): This.
30510 (equivalence_class): New variable.
30511 (label_visit): New function.
30512 (perform_variable_substitution): Rewritten.
30513 (free_var_substitution_info): New function.
30514 (find_equivalent_node): Ditto.
30515 (move_complex_constraints): Ditto.
30516 (eliminate_indirect_cycles): Ditto.
30517 (solve_graph): Only propagate changed bits.
30518 Use indirect cycle elimination.
30519 Use find.
30520 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
30521 (tree_id_eq): Renamed to ...
30522 (tree_vi_eq): This. Update for member change
30523 (insert_id_for_tree): Renamed and rewritten to ...
30524 (insert_vi_for_tree): This.
30525 (lookup_id_for_tree): Renamed and rewritten to ...
30526 (lookup_vi_for_tree): This.
30527 (get_id_for_tree): Renamed and rewritten to ...
30528 (get_vi_for_tree): Ditto.
30529 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
30530 (process_constraint): Don't handle INCLUDES.
30531 Remove special ADDRESSOF case.
30532 (find_func_aliases): Rewrite to use vi functions instead of id
30533 ones.
30534 (create_function_info_for): Ditto.
30535 (create_variable_info_for): Ditto.
30536 (intra_create_variable_infos): Ditto.
30537 (merge_smts_into): Ditto.
30538 (find_what_p_points_to): Ditto.
30539 (init_base_vars): Ditto.
30540 (init_alias_vars): Ditto.
30541 (remove_preds_and_fake_succs): New function.
30542 (dump_sa_points_to_info): Dump new stats.
30543 (dump_solution_for_var): Use find.
30544 (set_used_smts): Fix formatting.
30545 (compute_points_to_sets): Updated for new functions.
30546 (ipa_pta_execute): Ditto.
30547
2d329930 305482007-01-18 Kazu Hirata <kazu@codesourcery.com>
30549 Richard Sandiford <richard@codesourcery.com>
30550
30551 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
30552 parallels.
30553 * calls.c (expand_call): If the return value is a PARALLEL,
30554 extract its first member.
30555 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
30556 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
30557 use FUNCTION_EXTRA_EPILOGUE.
30558 (m68k_function_value): Return a PARALLEL if the return value
30559 is of a pointer type.
30560 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
30561 (FUNCTION_EXTRA_EPILOGUE): Remove.
30562 * config/m68k/m68k.md (D0_REG): New constant.
30563
fbb404bf 305642007-01-18 Kazu Hirata <kazu@codesourcery.com>
30565
30566 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
30567 output a NOP for empty epilogues.
30568
6571ac6e 305692007-01-18 Richard Sandiford <richard@codesourcery.com>
30570
30571 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
30572 before function. Extend register save check to include all
30573 registers, not just integer ones.
30574
b38bcc54 305752007-01-18 Kazu Hirata <kazu@codesourcery.com>
30576
30577 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
30578 (m68k_use_return_insn): ...this.
30579 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
30580 * config/m68k/m68k.c (use_return_insn): Rename to...
30581 (m68k_use_return_insn): ...this.
30582 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
30583 of USE_RETURN_INSN.
30584
110da380 305852007-01-18 Nathan Sidwell <nathan@codesourcery.com>
30586
30587 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
30588 nearest even, fix denormal rounding overflow.
30589
6026414c 305902007-01-18 Richard Sandiford <richard@codesourcery.com>
30591
30592 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
30593 f%$smove and f%$move.
30594 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
30595 (extendsfdf2_cf): Use fdmove instead of f%&move.
30596 (truncdfsf2_cf): Use fsmove instead of f%$smove.
30597 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
30598
301b951b 305992007-01-18 Richard Sandiford <richard@codesourcery.com>
30600
30601 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
30602 GPR<-GPR moves.
30603
f313069d 306042007-01-18 Richard Sandiford <richard@codesourcery.com>
30605
30606 * real.h (real_format): Add a canonical_nan_lsbs_set field.
30607 (coldfire_single_format): Declare.
30608 (coldfire_double_format): Likewise.
30609 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
30610 of qnan_msb_set to determine the lower bits of a canonical
30611 NaN significand.
30612 (encode_ieee_double): Likewise.
30613 (encode_ieee_quad): Likewise.
30614 (ieee_single_format): Initialize canonical_nan_lsbs_set.
30615 (mips_single_format): Likewise.
30616 (ieee_double_format): Likewise.
30617 (mips_double_format): Likewise.
30618 (ieee_extended_motorola_format): Likewise.
30619 (ieee_extended_intel_96_format): Likewise.
30620 (ieee_extended_intel_128_format): Likewise.
30621 (ieee_extended_intel_96_round_53_format): Likewise.
30622 (ibm_extended_format): Likewise.
30623 (mips_extended_format): Likewise.
30624 (ieee_quad_format): Likewise.
30625 (mips_quad_format): Likewise.
30626 (vax_f_format): Likewise.
30627 (vax_d_format): Likewise.
30628 (vax_g_format): Likewise.
30629 (i370_single_format): Likewise.
30630 (i370_double_format): Likewise.
30631 (decimal_single_format): Likewise.
30632 (decimal_double_format): Likewise.
30633 (decimal_quad_format): Likewise.
30634 (c4x_single_format): Likewise.
30635 (c4x_extended_format): Likewise.
30636 (real_internal_format): Likewise.
30637 (coldfire_single_format): New real_format.
30638 (coldfire_double_format): Likewise.
30639 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
30640 canonical_nan_lsbs_set.
30641 (pdp11_d_format): Likewise.
30642 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
30643 if TARGET_COLDFIRE_CPU.
30644
dd7218bb 306452007-01-18 Richard Sandiford <richard@codesourcery.com>
30646
30647 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
30648 (output_call, m68k_legitimize_call_address): Declare.
30649 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
30650 parenthesees. Add support for a 'W' constraint.
30651 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
30652 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
30653 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
30654 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
30655 variables.
30656 (override_options): Initialize them. Do not set flag_no_function_cse
30657 for TARGET_ID_SHARED_LIBRARY.
30658 (m68k_output_pic_call): Delete.
30659 (m68k_legitimize_call_address): New function.
30660 (print_operand): Remove the %o prefix. Handle the %p prefix.
30661 (output_call): New function.
30662 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
30663 target address from the GOT if symbolic jumps are not allowed.
30664 * config/m68k/m68k.md (call, general_operand): Do not set
30665 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
30666 Merge separate flag_pic and !flag_pic define_insns into...
30667 (*call, *call_value): ...these new patterns. Match the address
30668 rather than the containing MEM and require it to be a call_operand.
30669 Use output_call to generate the asm template.
30670 * config/m68k/predicates.md (const_call_operand): New predicate.
30671 (call_operand): Likewise.
30672
d2a91c7e 306732007-01-18 Nathan Sidwell <nathan@codesourcery.com>
30674
30675 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
30676 (STACK_GROWS_DOWNWARD): Define to 1.
30677 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
30678 comments, emphasizing that these values are only defaults.
30679 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
30680 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
30681
7dd6ff6d 306822007-01-18 Richard Sandiford <richard@codesourcery.com>
30683
30684 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
30685
0b93d200 306862007-01-18 Kazu Hirata <kazu@codesourcery.com>
30687 Richard Sandiford <richard@codesourcery.com>
30688
30689 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
30690 (FP_REGNO_P): New macros.
30691 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
30692 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
30693 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
30694 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
30695
45965f3c 306962007-01-18 Nathan Sidwell <nathan@codesourcery.com>
30697
30698 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
30699 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
30700 to $tmake_file.
30701 * config/m68k/t-floatlib: New file, extracting common code from...
30702 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
30703 * config/m68k/t-uclinux: Here.
30704 * config/m68k/fpgnulib.c: Do not compile extendeed precision
30705 routines on ColdFire targets.
30706
2f87f72a 307072007-01-18 Nathan Sidwell <nathan@codesourcery.com>
30708
30709 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
30710 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
30711 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
30712 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
30713 explicitly set MOTOROLA to 1.
30714 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
30715
bfcb79ea 307162007-01-18 Richard Sandiford <richard@codesourcery.com>
30717 Nathan Sidwell <nathan@codesourcery.com>
30718
30719 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
30720 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
30721 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
30722 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
30723 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
30724 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
30725 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
30726 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
30727 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
30728 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
30729 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
30730 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
30731 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
30732 (DBX_REGISTER_NUMBER): Delete.
30733 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
30734 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
30735 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
30736
f8200b2a 307372007-01-18 Richard Sandiford <richard@codesourcery.com>
30738
30739 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
30740 * config/flat.h: New file.
30741 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
30742 OBJECT_FORMAT_FLAT.
30743 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
30744 indirect references for -msep-data or -mid-shared-library.
30745 Do not use PC-relative code addresses either.
30746 * config/m68k/m68k.c (override_options): Restrict -fPIC error
30747 to -mpcrel.
30748 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
30749 for shared libraries and crt1.o for executables. Use crti.o and
30750 crtbegin.o.
30751 (ENDFILE_SPEC): Use crtend.o and crtn.o.
30752 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
30753 Do not add -elf2flt or -shared-lib-id options here.
30754 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
30755 Pass -shared-lib-id if -mid-shared-library, taking the library
30756 identifier from -mshared-library-id if given, otherwise
30757 defaulting to 0.
30758 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
30759 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
30760 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
30761 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
30762 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
30763 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
30764 and crtend.o.
30765 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
30766 jump sequence for ISA A and ISA A+.
30767 (PICJUMP): Likewise.
30768
a4e649cf 307692007-01-18 Richard Sandiford <richard@codesourcery.com>
30770
30771 * config.gcc (m68k-*-uclinux*): Base the port on the common
30772 and m68k GNU/Linux files rather than on the generic ELF ones.
30773 * config/m68k/uclinux.h (TARGET_VERSION): Override.
30774 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
30775
86d3be83 307762007-01-18 Julian Brown <julian@codesourcery.com>
30777 Richard Sandiford <richard@codesourcery.com>
30778
30779 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
30780 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30781 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
30782 before redefining.
30783 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
30784 80 unconditionally.
30785 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30786
8bc67792 307872007-01-18 Richard Sandiford <richard@codesourcery.com>
30788
30789 * doc/install.texi: Document m68k-uclinuxoldabi.
30790 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
30791 * config/m68k/uclinux-oldabi.h: New file, copied from
30792 config/m68k/uclinux.h.
30793
58f4ce52 307942007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
30795
30796 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
30797 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
30798 (m32r_compute_frame_size): Use unsigned for regno.
30799 (m32r_reload_lr): Use gen_frame_mem.
30800 (pop): New.
30801 (m32r_output_function_epilogue): Don't output the function epilogue
30802 textually here.
30803 (m32r_expand_epilogue): New.
30804 (direct_return): Return false if the function has the interrupt
30805 attribute.
30806 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
30807 * config/m32r/m32r.md (epilogue): New expander.
30808 (return_lr, return_rte): New insns.
30809 (return): Make it expander.
30810 (return_normal): New expander.
30811
fa4b183b 308122007-01-18 Josh Conner <jconner@apple.com>
30813
30814 PR target/30485
30815 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
30816 support for UNLE, UNLT, UNGE, and UNGT.
30817
6fa78c7b 308182007-01-18 Jan Hubicka <jh@suse.cz>
30819
30820 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
30821 * tree-tailcall (add_virtual_phis): Likewise.
30822 (optimize_tail_call): Return TODOs.
30823 (execute_tail_calls): Return TODOs.
30824 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
30825 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
30826 changed.
30827 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
30828 Cleanup cfg using TODO.
30829 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
30830 * passes.c (execute_function_todo): When cleanup did something, remove
30831 unused locals.
30832 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
30833 (make_edges): Don't cleanup_cfg.
30834
64d0b996 308352007-01-18 Uros Bizjak <ubizjak@gmail.com>
30836
30837 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
30838 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
30839 operate on the top of stack.
30840 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
30841 register handling of instructions that output to the second
30842 stack slot.
30843 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
30844 (move_for_stack_reg): Special-case check for dead destination
30845 stack slot for constant load of 1.0 inside UNSPEC_TAN.
30846
30847 * config/i386/i386.md (UNSPEC_TAN): New constant.
30848 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
30849 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
30850 to correctly model move of constant 1.0 to top stack slot.
30851 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
30852 (unnamed peephole2 pattern): Remove corresponding peephole2
30853 pattern that optimizes tan insn and loading of constant 1.0.
30854 (tanxf2): Use fptanxf4_i387.
30855 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
30856 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
30857 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
30858 disable patterns for SSE math.
30859 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
30860 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
30861
5bc96398 308622007-01-18 Dirk Mueller <dmueller@suse.de>
64d0b996 30863 Richard Guenther <rguenther@suse.de>
5bc96398 30864
64d0b996 30865 PR diagnostic/8268
30866 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
30867 * common.opt (Warray-bounds): Add new warning option.
30868 * c-opts.c (c_common_handle_option): Define -Warray-bounds
30869 if -Wall is given.
5bc96398 30870 * Makefile.in: make tree-vrp.o depend on toplev.h
64d0b996 30871 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
30872 is enabled.
30873 (check_array_refs, check_array_bounds, check_array_ref): New.
5bc96398 30874
64d0b996 308752007-01-18 Jan Hubicka <jh@suse.cz>
33a34f1e 30876
30877 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
30878 (execute_ssa_ccp): Return flags conditionally.
30879 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
30880 changed.
30881 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
30882
64d0b996 308832007-01-18 Steven Bosscher <steven@gcc.gnu.org>
30641a08 30884
30885 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
30886 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
30887
30888 * Makefile.c (GTFILES): Add cfglayout.h.
30889 * gengtype.c (open_base_files): Likewise.
30890 * cfglayout.c (cfg_layout_function_footer,
30891 cfg_layout_function_header) Reindent to make gengtype happy.
30892 * cfglayout.h (cfg_layout_function_footer,
30893 cfg_layout_function_header): Add GTY(()) marker.
30894
30895 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
30896
115875a1 308972007-01-18 Ben Elliston <bje@au.ibm.com>
30898
30899 * genautomata.c (write_automata): Include xstrerror output in the
30900 error message if writing the DFA description file fails.
30901
34967002 309022007-01-17 H.J. Lu <hongjiu.lu@intel.com>
30903
30904 * config/mips/mips-protos.h (mips_output_external): Make it
30905 return void.
30906 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
30907 * config/mips/mips.c (irix_output_external_libcall): Likewise.
30908 (extern_list): Likewise.
30909 (extern_head): Likewise.
30910 (TARGET_ASM_FILE_END): Likewise.
30911 (mips_file_end): Likewise.
30912 (mips_output_external): Rewritten.
30913
ed5217e6 309142007-01-18 Ben Elliston <bje@au.ibm.com>
30915
30916 * genpreds.c (write_insn_preds_c): Only write out the function
30917 body for regclass_for_constraint if we have register constraints.
30918
f182cde3 309192007-01-17 Tom Tromey <tromey@redhat.com>
30920
30921 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
30922 * doc/install.texi (Testing): Use sourceware.org.
30923 (Binaries): Likewise.
30924 (Specific): Likewise.
30925 * doc/contrib.texi (Contributors): Use sourceware.org.
30926
be815e57 309272007-01-17 Anatoly Sokolov <aesok@post.ru>
30928
30929 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
30930 (AVR_ENHANCED): Rename to ...
30931 (AVR_HAVE_MUL): ... new.
30932 (avr_enhanced_p): Rename to ...
30933 (avr_have_mul_p): ... new.
3451fffd 30934 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
be815e57 30935 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
30936 * config/avr/avr.c (avr_enhanced_p): Rename to ...
30937 (avr_have_mul_p): ... new.
30938 (base_arch_s): Rename 'enhanced' to 'have_mul'.
30939 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
30940 'avr_enhanced_p' and 'enhanced'.
3451fffd 30941 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
be815e57 30942 AVR_HAVE_MUL instead of AVR_ENHANCED.
30943 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
3451fffd 30944 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
30945 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
be815e57 30946 instead of AVR_ENHANCED.
30947 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
30948 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
30949 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
8cc5a1af 30950
24ffec38 309512007-01-17 Ian Lance Taylor <iant@google.com>
30952
30953 * vec.h (VEC_reserve_exact): Define.
30954 (vec_gc_p_reserve_exact): Declare.
30955 (vec_gc_o_reserve_exact): Declare.
30956 (vec_heap_p_reserve_exact): Declare.
30957 (vec_heap_o_reserve_exact): Declare.
30958 (VEC_OP (T,A,reserve_exact)): New static inline function, three
30959 versions.
30960 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
30961 negative parameter.
30962 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
30963 (VEC_OP (T,A,copy)) [all versions]: Likewise.
30964 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
30965 * vec.c (calculate_allocation): Add exact parameter. Change all
30966 callers.
30967 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
30968 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
30969 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
30970 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
30971 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
30972 (vec_heap_p_reserve_exact): New function.
30973 (vec_heap_o_reserve_exact): New function.
30974
7faf1979 309752007-01-17 Jan Hubicka <jh@suse.cz>
30976
30977 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
30978
5d266583 309792007-01-17 Eric Christopher <echristo@apple.com>
30980
30981 * config.gcc: Support core2 processor.
30982
5fa09f4d 309832007-01-16 Jan Hubicka <jh@suse.cz>
30984
30985 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
ed69c853 30986 the names, just unlink the chain so we don't crash on dangling
30987 pointers
5fa09f4d 30988 to dead SSA names.
30989
09a2e412 309902007-01-16 Jan Hubicka <jh@suse.cz>
30991
30992 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
30993 * tree-pass.h: Reorder to make IPA passes appear toegher.
ed69c853 30994 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
30995 Declare.
09a2e412 30996 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
30997 parameters, do not call early inliner.
30998 * ipa-inline.c: Update comments. Include tree-flow.h
30999 (cgraph_decide_inlining): Do not compute inlining parameters.
31000 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
31001 be called with function context set up.
31002 (pass_ipa_inline): Remove unreachable functions before pass.
31003 (cgraph_early_inlining): Simplify assuming to be called from the
31004 PM as local pass.
31005 (pass_early_inline): New pass.
31006 (cgraph_gate_ipa_early_inlining): New gate.
31007 (pass_ipa_early_inline): Turn into simple wrapper.
31008 (compute_inline_parameters): New function.
31009 (gate_inline_passes): New gate.
31010 (pass_inline_parameters): New pass.
31011 (apply_inline): Move here from tree-optimize.c
31012 (pass_apply_inline): New pass.
31013 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
31014 transforming.
31015 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
31016 doing them by hand.
31017 (tree_function_versioning): Do not allocate dummy struct function.
31018 * tree-inline.h (optimize_inline_calls): Update prototype.
31019 * tree-optimize.c (execute_fixup_cfg): Export.
31020 (pass_fixup_cfg): Remove
31021 (tree_rest_of_compilation): Do not apply inlines.
31022 * tree-flow.h (execute_fixup_cfg): Declare.
31023 * Makefile.in (gt-passes.c): New.
31024 * passes.c: Include gt-passes.h
31025 (init_optimization_passes): New passes.
31026 (nnodes, order): New static vars.
31027 (do_per_function_toporder): New function.
31028 (execute_one_pass): Dump current pass here.
31029 (execute_ipa_pass_list): Don't dump current pass here.
31030
0ab5481f 310312007-01-16 Janis Johnson <janis187@us.ibm.com>
31032
31033 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
31034 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
31035
23ee0777 310362007-01-16 David Edelsohn <edelsohn@gnu.org>
31037
31038 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
31039 (strong_alias): Define.
31040 (__gcc_qmul): Provide non-FMA for soft-float.
31041 (__gcc_qdiv): Same.
31042 (__gcc_qneg): New.
31043 (__gcc_qeq): New.
31044 (__gcc_qle): New.
31045 (__gcc_qge): New.
31046 (__gcc_qunord): New.
31047 (__gcc_stoq): New.
31048 (__gcc_dtoq): New.
31049 (__gcc_qtos): New.
31050 (__gcc_qtod): New.
31051 (__gcc_qtoi): New.
31052 (__gcc_qtou): New.
31053 (__gcc_itoq): New.
31054 (__gcc_utoq): New.
31055 (fmsub): New.
31056 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
31057 soft-float functions.
31058 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
31059 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
31060 about long double soft float.
31061
213448e9 310622007-01-16 Dorit Nuzman <dorit@il.ibm.com>
c6f3c945 31063 Tehila Meyzels <tehila@il.ibm.com>
213448e9 31064
31065 * tree-vectorizer.h (is_pattern_stmt_p): New.
31066 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
31067 formatting (tabs instead of spaces). Cleanup and clarify setting
31068 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
31069 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
31070 (vectorizable_type_demotion): Check that types are integral.
31071 (vectorizable_type_promotion): Likewise.
31072 (vectorizable_store): Fix typo. Eliminate new-line at end of
31073 comments.
31074
eb254442 310752007-01-16 Jan Hubicka <jh@suse.cz>
31076
31077 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
31078 cgraph edges too.
31079
e592f6ea 310802007-01-15 Eric Christopher <echristo@apple.com>
31081
31082 * ifcvt.c: Include vec.h, vecprim.h.
31083 (check_cond_move_block): New argument regs.
31084 Reorganize. Add registers used to regs.
31085 (cond_move_process_if_block): Use regs set above as
31086 loop bounds.
31087
624df7b0 310882007-01-15 Eric Christopher <echristo@apple.com>
31089
31090 * config/darwin.h: Update copyright.
31091 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
31092 (LINK_COMMAND_SPEC): Add -u.
31093 (LINK_SPEC): Fix umbrella for above.
31094
a2a54432 310952007-01-15 Joseph S. Myers <joseph@codesourcery.com>
31096
31097 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
31098 glibc CVS.
31099
573c8db9 311002007-01-15 Tom Tromey <tromey@redhat.com>
31101
31102 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
31103 * doc/install.texi (Testing): Don't mention jacks.
31104 (Configuration): Document --enable-java-maintainer-mode. Move
31105 --with-java-home to libgcj-specific section. Document
31106 --with-ecj-jar.
31107 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
31108
a6b3b25c 311092007-01-15 Jan Hubicka <jh@suse.cz>
31110
31111 * tree-ssa-dce.c (DCE_TODOs): New.
31112 (propagate_necessity): Return if something changed.
31113 (eliminate_unnecessary_stmts): Likewise.
31114 (perform_tree_ssa_dce): Return TODO flags when needed.
31115 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
31116
5d0ab98f 311172007-01-15 Uros Bizjak <ubizjak@gmail.com>
31118
31119 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
31120 (fyl2x_extend<mode>xf3_i387): New insn pattern.
31121 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
64d0b996 31122 patterns using X87MODEF12 mode macro. Extend operand 1
5d0ab98f 31123 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
31124 (log10<mode>2): Ditto.
31125 (log2<mode>2): Ditto.
31126 (log1p<mode>2): Ditto.
31127 (logb<mode>2): Ditto.
31128 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
31129 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
31130 (*fxtractxf3_i387): Rename from *fxtractxf3.
31131 (fxtract_extend<mode>xf3_i387): New insn pattern.
31132 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
5d0ab98f 31133 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
31134 and gen_fyl2xxf3_i387().
31135
99b6a86e 311362007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
31137
31138 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
31139 * cfgloopmanip.c (fix_loop_placement): Made static. Use
31140 get_loop_exit_edges. Changed return type to bool.
31141 * cfgloop.h (fix_loop_placement): Declaration removed.
31142
8964b5be 311432007-01-14 Dorit Nuzman <dorit@il.ibm.com>
31144
31145 * param.h (MIN_VECT_LOOP_BOUND): New.
31146 * params.def (MIN_VECT_LOOP_BOUND): New.
31147 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
624df7b0 31148 argument - minimum threshold for number of iterations.
8964b5be 31149 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
31150 argument to declaration.
624df7b0 31151 * tree-vect-analyze.c (vect_analyze_operations): Check value of
8964b5be 31152 MIN_VECT_LOOP_BOUND.
31153 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
31154 slpeel_tree_peel_loop_to_edge with additional argument.
31155 (vect_do_peeling_for_alignment): Likewise.
31156 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
31157
67ed5d34 311582007-01-14 Uros Bizjak <ubizjak@gmail.com>
31159
31160 PR target/30413
31161 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
31162 operands of size 1.
31163
fe15b701 311642007-01-14 Jan Hubicka <jh@suse.cz>
31165
31166 * tree-dfa.c (remove_referenced_var): New function.
31167 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
31168 prune referenced vars list too.
31169 * tree-flow.h (remove_referenced_var): Declare.
31170
836074a5 311712007-01-14 Jan Hubicka <jh@suse.cz>
31172
31173 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
31174 separately.
31175 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
31176 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
31177 * except.h (verify_eh_throw_table_statements): Kill prototype.
31178 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
31179 into call exrepssions.
31180 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
31181 eh trhow verifier.
31182 * tree-cfg.c: Include pointer-set.h.
31183 (verify_node_sharing): Work on pointer set.
31184 (verify_eh_throw_stmt_node): New.
31185 (verify_stmts): Use pointers sets, verify throw_stmt.
31186
2e1c3fd6 311872007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
31188
31189 * ipa-reference.c (analyze_function): Consider also addresses taken
31190 in phi nodes.
31191
ca24357c 311922007-01-12 Roger Sayle <roger@eyesopen.com>
31193
31194 * c-typeck.c (null_pointer_constant_p): Replace use of
31195 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
31196 (build_c_cast): Likewise.
31197
eddad94a 311982007-01-12 Roger Sayle <roger@eyesopen.com>
31199
31200 * tree.h (force_fit_type_double): Remove unused final argument.
31201 * c-common.c (constant_expression_warning): Replace use of
31202 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
31203 (convert_and_check): Likewise.
31204 (shorten_compare): Update call to force_fit_type_double.
31205 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
31206 * convert.c (convert_to_pointer): Update call to
31207 force_fit_type_double.
31208 * fold-const.c (force_fit_type_double): Remove overflowed_const
31209 argument.
31210 (int_const_binop, fold_convert_const_int_from_int,
31211 fold_convert_const_int_from_real, fold_div_compare,
31212 fold_sign_changed_comparison, fold_unary, fold_negate_const,
31213 fold_abs_const, fold_not_const): Remove the final argument from
31214 calls to force_fit_type_double.
31215
c754f56c 312162007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
31217
31218 * configure.ac: Set insn to "nop" for spu-*-* also.
31219 * configure: Regenerate.
31220
a20cec60 312212007-01-12 Olga Golovanevsky <olga@il.ibm.com>
31222
31223 * builtins.def : Add BUILT_IN_FREE.
624df7b0 31224
b2f42a98 312252007-01-12 Jan Hubicka <jh@suse.cz>
31226
31227 PR tree-optimization/30443
31228 * tree-inline.c (tree_function_versioning): Do not optimize when
31229 cloning for inlining.
31230
dce58e66 312312007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
31232
31233 * doc/loop.texi: Document recording of loop exits.
31234 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
31235 (update_single_exits_after_duplication,
31236 update_single_exit_for_duplicated_loop,
31237 update_single_exit_for_duplicated_loops): Removed.
31238 (duplicate_loop_to_header_edge): Do not call
31239 update_single_exits_after_duplication and
31240 update_single_exit_for_duplicated_loops.
31241 (loop_version): Do not update single_exit information.
31242 (fix_loop_structure): Use record_loop_exits instead of
31243 mark_single_exit_loops.
31244 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
31245 the lists of loop exits.
31246 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
31247 split_edge, merge_blocks): Update the lists of loop exits.
31248 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
31249 loop_optimizer_init.
31250 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
31251 of mark_single_exit_loops.
31252 (loop_optimizer_finalize): Call release_recorded_exits.
31253 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
31254 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
31255 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
31256 update single exit information.
31257 * lambda-code.c (perfect_nestify): Ditto.
31258 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
31259 (mark_single_exit_loops): Removed.
31260 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
31261 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
31262 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
31263 functions.
31264 (get_loop_exit_edges, single_exit): Use recorded exit lists.
31265 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
31266 (verify_loop_structure): Verify consistency of the exit lists.
31267 (flow_loops_find): Use alloc_loop. Initialize exits hash.
31268 (set_single_exit): Removed.
31269 * cfgloop.h (struct loop_exit): New function.
31270 (struct loop): single_exit_ field replaced by exits field.
ed69c853 31271 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
31272 LOOPS_HAVE_RECORDED_EXITS.
dce58e66 31273 (struct loops): Added exits hash.
31274 (mark_single_exit_loops, set_single_exit): Declaration removed.
31275 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
31276
2656a84c 312772007-01-12 Richard Sandiford <richard@codesourcery.com>
31278
31279 * doc/invoke.texi: Avoid use of @headitem.
31280
9fdf0f08 312812007-01-12 Richard Sandiford <richard@codesourcery.com>
31282
31283 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
31284
302dca4f 312852007-01-12 Richard Sandiford <richard@codesourcery.com>
31286
31287 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
31288 list of targets.
31289
528f4cd2 312902007-01-12 Nathan Sidwell <nathan@codesourcery.com>
31291 Richard Sandiford <richard@codesourcery.com>
31292
31293 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
31294 * config/m68k/m68k.opt: Resort options.
31295 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
31296
46e5dde5 312972007-01-12 Nathan Sidwell <nathan@codesourcery.com>
31298 Richard Sandiford <richard@codesourcery.com>
31299
31300 * doc/invoke.texi: Document the macros that are defined by
31301 m68k's -mtune and -mhard-float options.
31302 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
31303 (m68k_cpp_cpu_family): Likewise.
31304 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
31305 of __ucfv*__ macros. Define __mcffpu__ if generating code for
31306 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
31307 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
31308 (m68k_cpp_cpu_family): Likewise.
31309
3d110987 313102007-01-12 Richard Sandiford <richard@codesourcery.com>
31311
31312 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
31313 macros besides mc68000 as tuning macros. Use a switch statement
31314 to set them and mcpu32.
31315
6e6d2086 313162007-01-12 Julian Brown <julian@codesourcery.com>
31317
31318 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
31319 (TARGET_68040_ONLY): Rename to...
31320 (TARGET_68040): ...this.
31321 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
31322 * config/m68k/m68k.md: Likewise.
31323
8aed3cb3 313242007-01-12 Julian Brown <julian@codesourcery.com>
31325 Nathan Sidwell <nathan@codesourcery.com>
31326 Richard Sandiford <richard@codesourcery.com>
31327
31328 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
31329 the -mcpu= argument associated with the --with-cpu setting.
31330 Define M68K_DEFAULT_TUNE to the default -mtune= option,
31331 if different from the one implied by the -mcpu setting.
31332 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
31333 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
31334 * doc/invoke.texi: Mention ColdFire in the introduction to the
31335 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
31336 -mno-div and -mhard-float options. Make -m68881 a synonym for
31337 -mhard-float. Document the previously-undocumented -m5206e,
31338 -m528x, -m5307 and -m5407 options. Tweak the existing option
31339 documentation for consistency.
31340 * doc/install.texi: Mention new --with-cpu arguments.
31341 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
31342 default CPU if neither -mcpu nor -march are specified.
31343 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
31344 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
31345 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
31346 using m68k_tune to decide between families that implement the
31347 same ISA. Use m68k_tune to set __mcfv4e__.
31348 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
31349 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
31350 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
31351 (FL_ISA_C, FL_ISA_MMU): New macros.
31352 (MASK_COLDFIRE): Delete.
31353 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
31354 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
31355 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
31356 (TARGET_HARD_FLOAT): Do not define here.
31357 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
31358 (TUNE_68000): New macro.
31359 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
31360 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
31361 (TUNE_CFV2): Redefine in terms of m68k_tune.
31362 (uarch_type, target_device, fpu_type): New enums.
31363 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
31364 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
31365 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
31366 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
31367 (FL_FOR_isa_c): New macros.
31368 (m68k_isa): New enum.
31369 (m68k_target_selection): New structure.
31370 (all_devices, all_isas, all_microarchs): New tables.
31371 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
31372 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
31373 (MASK_ALL_CPU_BITS): Delete.
31374 (m68k_find_selection): New function.
31375 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
31376 Map the legacy target options to a combination of the new ones.
31377 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
31378 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
31379 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
31380 settings.
31381 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
31382 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
31383 properties.
31384 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
31385 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
31386 * config/m68k/m68k-devices.def: New file.
31387
79518b07 313882007-01-12 Richard Sandiford <richard@codesourcery.com>
31389 Nathan Sidwell <nathan@codesourcery.com>
31390
31391 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
31392 (SUBTARGET_EXTRA_SPECS): New macros.
31393 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
31394 use %(asm_cpu_spec) instead.
31395 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
31396 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
31397 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
31398 (EXTRA_SPECS): Rename to...
31399 (SUBTARGET_EXTRA_SPECS): ...this.
31400
f84195ec 314012007-01-12 Nathan Sidwell <nathan@codesourcery.com>
31402 Richard Sandiford <richard@codesourcery.com>
31403 Julian Brown <julian@codesourcery.com>
31404
31405 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
31406 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
31407 to the configuration's default CPU.
31408 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
31409 Remove default masks.
31410 (m680[012]0-*-*): Set the default with_cpu to the first part of
31411 the target name.
31412 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
31413 (m68k*-*-linux): Extend the --with-cpu handling to...
31414 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
31415 and m68010. Don't set target_cpu_default2.
31416 * doc/install.texi: Document --with-cpu for m68k.
31417 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
31418 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
31419 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
31420 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
31421 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
31422 (ASM_SPEC): Remove use of %(asm_cpu_default).
31423 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
31424 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
31425 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
31426 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
31427 __HAVE_FPU__ if TARGET_HARD_FLOAT.
31428 (TARGET_DEFAULT): Delete.
31429 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
31430 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
31431 (CPP_CPU_SPEC): Delete.
31432 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
31433 the appropriate string.
31434 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
31435 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
31436 (ASM_SPEC): Don't use %(asm_default_spec).
31437 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
31438 TARGET_DEFAULT and add MASK_68881.
31439 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
31440
374e1815 314412007-01-12 Richard Sandiford <richard@codesourcery.com>
31442
31443 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
31444 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
31445 MASK_68010 alongside MASK_68020.
31446 * doc/invoke.texi: Document -m68010.
31447 * config/m68k/m68k.opt (m68010): New.
31448 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
31449 if TUNE_68010.
31450 (TUNE_68010): New macro.
31451 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
31452 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
31453 (M68K_CPU_m68332): Add MASK_68010.
31454 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
31455 fallback definition.
31456 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
31457 defines.
31458 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
31459 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
31460 to all entries that use MASK_68020.
31461 (output_move_simode_const, output_move_himode, output_move_qimode)
31462 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
31463 instead of TARGET_68020 to select clr behavior. Remove comment
31464 about there being no TARGET_68010.
31465 * config/m68k/m68k.md: Likewise throughout.
31466
42af5438 314672007-01-12 Julian Brown <julian@codesourcery.com>
31468
31469 * config/m68k/m68k.h (TARGET_ISAB): New macro.
31470 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
31471 * config/m68k/m68k.md: Likewise.
31472
69b3e376 314732007-01-12 Julian Brown <julian@codesourcery.com>
31474
31475 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
31476 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
31477
f716b74b 314782007-01-12 Julian Brown <julian@codesourcery.com>
31479
31480 * config/m68k/m68k.h (TUNE_68040_60): New macro.
31481 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
31482 * config/m68k/m68k.md: Likewise.
31483
bd40163f 314842007-01-12 Julian Brown <julian@codesourcery.com>
31485 Richard Sandiford <richard@codesourcery.com>
31486
31487 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
31488 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
31489 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
31490 TARGET_CPU32.
31491 (TARGET_CPU32): Rename to...
31492 (TUNE_CPU32): ...this.
31493 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
31494 (TUNE_CFV2): New macros.
31495 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
31496 remove conditions that are implied by TARGET_68020.
31497 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
31498 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
31499 (m68k_output_function_epilogue): Likewise.
31500 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
31501 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
31502 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
31503 non-68000 timings. Refactor multiplication and division costs.
31504 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
31505 TUNE_CPU32 instead of TARGET_CPU32.
31506 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
31507 and TUNE_68060 instead of TARGET_68060.
31508 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
31509 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
31510 TARGET_CPU32.
31511 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
31512 && !TARGET_COLDFIRE" to choose between moveq and clr.
31513 Likewise in the unnamed movsf pattern.
31514 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
31515 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
31516 ashiftrt pattern.
31517
edf7bcd6 315182007-01-12 Richard Sandiford <richard@codesourcery.com>
31519
31520 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
31521 of tabbing before backslashes.
31522
217720f0 315232007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31524
31525 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
31526 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
31527 (ASM_OUTPUT_INTERNAL_LABEL): Define.
31528
02f8cd87 315292007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
31530
31531 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
31532 find_interesting_uses_cond.
31533 (find_interesting_uses_cond): Use extract_cond_operands.
31534 (rewrite_use_compare): Use extract_cond_operands and
31535 force_gimple_operand_bsi. Do not call update_stmt.
31536 (determine_use_iv_cost_condition): Use extract_cond_operands.
31537 Return cheaper of using original bound and changing the exit bound.
31538
33c25cf0 315392007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
31540
31541 PR tree-optimization/29516
31542 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
31543 most_expensive_mult_to_index, addr_to_parts,
31544 create_mem_ref, maybe_fold_tmr): Make the type of
31545 fields of TARGET_MEM_REF sizetype.
31546 (move_fixed_address_to_symbol, move_pointer_to_base):
31547 New functions.
31548 * tree.def (TARGET_MEM_REF): Add comment on types of
31549 the operands.
33c25cf0 31550
ae6db8ab 315512007-01-11 Joseph Myers <joseph@codesourcery.com>
31552
31553 * c-common.c (vector_types_convertible_p): Treat opaque types as
31554 always convertible if they have the same size, but not otherwise.
31555
5b410d6a 315562007-01-11 Steven Bosscher <steven@gcc.gnu.org>
31557
31558 * ifcvt.c (struct noce_if_info): Add comments to the fields.
31559 Remove the b_unconditional field.
31560 (noce_try_sign_mask): Do not look at b_unconditional.
31561 (noce_process_if_block): Do not use merge_if_blocks. Update
31562 the CFG here. Do not set b_unconditional.
31563 (cond_move_process_if_block): Likewise.
31564 (find_cond_trap): Likewise.
31565 (check_cond_move_block): Require simple jump insns at the end
31566 of the basic block.
31567
49290934 315682007-01-11 Jan Hubicka <jh@suse.cz>
31569
31570 PR tree-optimization/1046
31571 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
31572 when alias info is not ready.
31573 (pass_tail_recursion): Do not require aliasing.
31574 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
31575 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
31576 * tree-ssa-copy.c (pass_copy_prop): Likewise.
31577 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
31578 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
31579 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
31580 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
31581 before inlining.
31582 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
31583 When aliasing is not build, mark statement as volatile.
31584
f41e06ed 315852007-01-11 Tom Tromey <tromey@redhat.com>
31586
31587 PR preprocessor/15185, PR preprocessor/20989:
31588 * doc/cppopts.texi <-MT>: Update description of algorithm for
31589 computing default target.
31590 <-M, -MD>: Reword "basename" text.
31591
f96bd2bf 315922007-01-11 Roger Sayle <roger@eyesopen.com>
31593
31594 * builtins.c (expand_builtin_pow, expand_builtin_powi,
31595 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
31596 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
31597 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
31598 fold_builtin_bswap, real_constp, fold_builtin_pow,
31599 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
31600 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
31601 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
31602 * convert.c (convert_to_pointer): Likewise.
31603 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
31604 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
31605 const_binop, fold_convert_const_int_from_int,
31606 fold_convert_const_int_from_real,
31607 fold_convert_const_real_from_real, sign_bit_p,
31608 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
31609 fold_sign_changed_comparison, fold_unary, fold_comparison,
31610 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
31611 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
31612 * print-tree.c (print_node_brief, print_node): Likewise.
31613 * stor-layout.c (place_field, layout_type): Likewise.
31614 * tree-chrec.c (keep_cast): Likewise.
31615 * tree.c (build_vector, build_real, build_real_from_int_cst,
31616 build_complex): Likewise.
31617
acfce21e 316182007-01-11 Roger Sayle <roger@eyesopen.com>
31619
31620 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
31621 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
31622
e3ca137a 316232007-01-11 Paolo Bonzini <bonzini@gnu.org>
31624
31625 * configure.ac (strict1_warn): Rename to strict_warn.
31626 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
31627 cc_set_by_configure, quoted_cc_set_by_configure,
31628 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
31629 all_boot_languages, all_stagestuff): Remove.
31630 (target_list): Remove bootstrap targets.
31631 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
31632 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
31633 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
31634 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
31635 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
31636 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
31637 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
31638 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
31639 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
31640 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
31641 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
31642 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
31643 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
31644 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
31645 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
31646 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
31647 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
31648 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
31649 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
31650 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
31651 (mostlyclean): Adjust.
31652 (clean, distclean): Don't mention bootstrap stuff.
31653 * configure: Regenerate.
31654 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
31655 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
31656 treelang/config-lang.in (stagestuff): Remove.
31657 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
31658 stageprofile, stagefeedback, stagestuff): Remove mention.
31659
90fab4b1 316602007-01-11 Nick Clifton <nickc@redhat.com>
31661
31662 * config/mcore/predicates.md (mcore_general_movesrc_operand):
31663 Accept CONSTs.
31664 (mcore_general_movdst_operand): Do not accept CONST_INTs.
31665 (mcore_arith_K_S_operand): Run the test for the S constraint not
31666 the test for the M constraint.
31667 (mcore_addsub_operand): Do not accept integer values that are
31668 larger than 32 bits.
31669 * config/mcore/mcore.md: Remove unused constraints from split.
31670 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
31671 (addsi3): Likewise.
31672 (allocate_stack): Likewise.
31673 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
31674 operands to 32 bits.
31675 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
31676 INTVAL.
31677 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
31678 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
31679 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
31680 mcore_output_bclri, mcore_output_andn, output_inline_const,
31681 mcore_output_move, mcore_output_movedouble): Likewise.
31682 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
31683 (output_inline_const): Likewise.
31684 (output_inline_const): Fix format strings used in sprintf
31685 statements.
31686 * config/mcore/mcore-protos.h: Update prototypes for changed
31687 functions in mcore.c.
31688 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
31689 HOST_WIDE_INT and not int.
31690 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
31691 CONST_OK_FOR_N): Likewise.
31692 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
31693 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
31694 an INTVAL.
31695
8d9f686b 316962007-01-10 Jan Hubicka <jh@suse.cz>
31697
31698 * tree-vrp.c (remove_range_assertions): Release defs.
31699 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
31700 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
31701
89545238 317022007-01-10 Paul Brook <paul@codesourcery.com>
31703
31704 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
31705 * config/arm/arm.md (mulsi3subsi): New insn.
31706
f6ae6f2a 317072007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
31708
31709 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
31710 (tree_transform_and_unroll_loop): New.
31711 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
31712 Declare.
31713
9112c6d3 317142007-01-10 Robert Kennedy <jimbob@google.com>
31715
31716 * fold-const.c (fold_comparison): Fold comparisons like (x *
31717 1000 < 0) to (x < 0).
31718
3814cd68 317192007-01-10 Ian Lance Taylor <iant@google.com>
31720
31721 * tree-pretty-print.c (dump_generic_node): Print parentheses when
31722 operands have the same priority.
31723
551c9b1b 317242007-01-10 Tom Tromey <tromey@redhat.com>
31725
31726 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
31727 (fold_binary): Likewise.
31728 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
31729 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
31730 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
31731 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
31732 * langhooks.h (struct lang_hooks): Removed field
31733 'can_use_bit_fields_p'.
31734
784abdb2 31735