]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
f7b38b18 12007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2
3 * timevar.c (timevar_print): Change reference of --disable-checking to
4 --enable-checking=release. Also warn if assert checking is disabled.
5
cae486e2 62007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7
8 PR C/30265
9 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
10 decl as addressable if the compound literal was marked as
11 addressable.
12 Mark the decl as a gimple register if it is a complex or
13 vector decl and does not live in memory.
14
98d4f925 152007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
16
17 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
18 (GENERIC_NEXT): New function macro.
19 (PHI_CHAIN): Use phi_node's new chain variable.
20 (tree_phi_node): Change tree_common to tree_base
21 and add the chain field.
22 * tree-phinodes.c (make_phi_node): Don't set
23 TREE_TYPE on the new node.
24 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
25 instead of checking GIMPLE_TUPLE_P in chain_next.
26 * tree-vect-transform.c
27 (get_initial_def_for_induction): Look at
28 PHI_RESULT_TREE for the type of the phi node.
29 (update_vuses_to_preheader): Use PHI_CHAIN
30 instead of TREE_CHAIN on the phi node.
31 * tree-ssa-structalias.c (compute_points_to_sets):
32 Likewise.
33 (ipa_pta_execute): Likewise.
34
7a6537b3 352007-04-21 Richard Guenther <rguenther@suse.de>
36
37 PR middle-end/31136
38 * fold-const.c (fold_unary): Call fold_convert_const on the
39 original tree.
40
7413a5e0 412007-04-21 Alexandre Oliva <aoliva@redhat.com>
42
43 * gcse.c (store_killed_in_insn): Handle PARALLELs.
44 (store_killed_in_pat): New.
45
e865d428 462007-04-20 Richard Henderson <rth@redhat.com>
47
48 PR target/31628
49 * config/i386/i386.c (type_has_variadic_args_p): Look for any
50 TREE_LIST with a void_type_node value, not void_list_node exactly.
51
a7d782cd 522007-04-21 Douglas Gregor <doug.gregor@gmail.com>
53
54 * doc/standards.texi: Re-arrange into language-specific
55 subsections. Add a C++ section, documenting which standards we
56 support.
57
cf95b243 582007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
59
60 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
61 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
62
1177f497 632007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
64
65 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
66 ecrti.o and crtbegin.o.
67 (LIB_DEFAULT_SPEC): Include -lc.
68 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
69
0934d969 702007-04-20 Richard Henderson <rth@redhat.com>
71
72 PR target/28623
73 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
74 argument; update all callers.
75 (get_unaligned_offset): New.
76 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
77 get_unaligned_address, just pass on the address directly.
78 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
79 the subreg in the helper patterns.
80 (unaligned_extendqidi_le): Use get_unaligned_offset.
81 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
82 (unaligned_extendhidi_be): Likewise.
83 (unaligned_extendhidi): Tidy.
84 * config/alpha/alpha-protos.h: Update.
85
a2a5e014 862007-04-20 Richard Henderson <rth@redhat.com>
87
88 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
89 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
90 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
91 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
92 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
93 (CPP_SPEC): Don't include %(cpp_subtarget).
94 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
95 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
96 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
97
ddb8b0be 982007-04-20 Jakub Jelinek <jakub@redhat.com>
99
553633cf 100 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
101 for __builtin_ia32_cmpordss.
102
ddb8b0be 103 PR tree-optimization/31632
104 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
105 and arg1 for optimizations of comparison against min/max values.
106 Fold arg0 to arg1's type for optimizations of comparison against
107 min+1 and max-1 values.
108
efb8c784 1092007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
110
111 * reload.c (combine_reloads): When trying to use a dying register,
112 check whether it's uninitialized and don't use if so.
113
bd56c1f7 1142007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
115
116 * fold-const.c: Remove prototypes for native_encode_expr and
117 native_interpret_expr.
118 (native_encode_expr): Make non-static.
119 (native_interpret_expr): Likewise.
120 * tree.h: Add prototypes for the above.
121
4758e73d 1222007-04-19 Joseph Myers <joseph@codesourcery.com>
123
4758e73d 124 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
125 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
126 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
127 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
128 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
129 Add length attributes.
130
839803bd 1312007-04-19 Janis Johnson <janis187@us.ibm.com>
132
7bb1423a 133 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
134 not that it is 1.
135
839803bd 136 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
137 __STDC_WANT_DEC_FP__.
138
8c3bf67d 1392007-04-19 Joseph Myers <joseph@codesourcery.com>
140
141 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
142 for long double compatibility.
143 * configure: Regenerate.
144
88a00894 1452007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
146
147 PR rtl-optimization/29841
148 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
149 trap instructions.
150 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
151 that may cause control flow transfer from being moved.
152
b2f88529 1532007-04-18 Jan Hubicka <jh@suse.cz>
154
155 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
156 types.
157
90c24387 1582007-04-18 Eric Christopher <echristo@apple.com>
572d7bec 159
90c24387 160 * config/rs6000/darwin.md (load_macho_picbase): Use link register
161 only. Update operands.
162 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
163 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
164 link register to pic register.
572d7bec 165
7988a017 1662007-04-18 Dirk Mueller <dmueller@suse.de>
167
168 PR diagnostic/31227
169 * tree-vrp.c (search_for_addr_array): New.
170 (check_array_bounds): Suppress warning about
171 address taken of array refs if its not de-referenced.
172
33bbe730 1732007-04-18 Dorit Nuzman <dorit@il.ibm.com>
174
175 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
176 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
177
178 * tree-vectorizer.h (NITERS_KNOWN_P): New.
90c24387 179 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
33bbe730 180 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
181
90c24387 182 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
33bbe730 183 dump print.
184 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
185 print message.
186 (vect_analyze_scalar_cycles): Fix indentation.
187 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
188 (vect_mark_relevant): Include phis in relevance analysis.
189
190 * tree-vect-transform.c (vect_transform_loop): Add an assert.
191
5985f1ef 1922007-04-18 Anatoly Sokolov <aesok@post.ru>
193
194 * config/avr/avr.c (ptrreg_to_str): Replace error() with
195 output_operand_lossage().
196
24d7ad26 1972007-04-18 Dorit Nuzman <dorit@il.ibm.com>
198
199 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
200 the unused code for reduction without adjust-in-epilog to simplify the
201 function.
202
27784c70 2032007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
204
205 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
206 (S390_TDC_NEGATIVE_ZERO): New constant.
207 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
208 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
209 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
210 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
211 (S390_TDC_POSITIVE_INFINITY): New constant.
212 (S390_TDC_NEGATIVE_INFINITY): New constant.
213 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
214 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
215 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
216 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
217 (S390_TDC_INFINITY): New constant.
218 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
219 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
220 optimization for UNSPEC_CCZ_TO_INT.
221 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
222 ("*ccz_to_int"): New insn.
223 ("isinf<mode>2"): New insn.
224 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
225 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
226 (UNSPEC_CCZ_TO_INT): New constant.
227
37361b38 2282007-04-18 Richard Guenther <rguenther@suse.de>
229
230 PR tree-optimization/19431
231 PR tree-optimization/21463
232 * tree-pass.h (pass_phiprop): Declare.
233 * passes.c (init_optimization_passes): New phiprop pass.
234 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
235 (phivn_valid_p): New helper function.
236 (phiprop_insert_phi): Likewise.
237 (propagate_with_phi): Likewise.
238 (tree_ssa_phiprop): New propagator propagating loads
239 through phi nodes if profitable.
240
a5e56906 2412007-04-18 Dorit Nuzman <dorit@il.ibm.com>
242
243 * tree-vect-analyze.c (process_use): New function.
244 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
245 Check phis in all bbs.
246 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
247 assert.
248
ea4c8f87 2492007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
250
251 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
252 we use REG_EQUAL.
253
c3384cae 2542007-04-17 Anatoly Sokolov <aesok@post.ru>
255
256 PR target/30483
257 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
258 error().
259
2c2034a3 2602007-04-17 H.J. Lu <hongjiu.lu@intel.com>
261
262 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
263 on "0".
264 (sse_vmmulv4sf3): Likewise.
265 (sse2_vmaddv2df3): Likewise.
266 (sse2_vmmulv2df3): Likewise.
267
25153338 2682007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
269
270 PR rtl-optimization/31360
271 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
272 (target_reg_cost): New.
273 (init_set_costs): Initialize target_reg_cost. Add comments
274 regarding the rationale of the costs.
275 (global_cost_for_size): Renamed to...
276 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
277 of register pressure.
278 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
279 estimate_reg_pressure_cost. Add number of ivs.
280 (determine_set_costs): Dump target_reg_cost.
281 * loop-invariant.c (gain_for_invariant): Use
282 estimate_reg_pressure_cost. Removed n_inv_uses argument.
283 (best_gain_for_invariant, find_invariants_to_move): Remove
284 n_inv_uses.
285 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
286 (target_reg_cost): Declare.
287 (global_cost_for_size): Declaration removed.
288 (estimate_reg_pressure_cost): Declare.
289
32eb5ffe 2902007-04-17 Peter Bergner <bergner@vnet.ibm.com>
291
292 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
293 regnos into even/odd register pairs.
294 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
295 TDmode similar to the other floating point modes.
296 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
297 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
298 define_expand's.
299 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
300 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
301 (movdd_hardfloat64): Use TARGET_MFPGPR.
302
759d3f80 3032007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
304
305 * reload1.c (delete_output_reload): Don't count output in n_inherited.
306
307 Revert
308 2005-01-05 Richard Henderson <rth@redhat.com>
309 PR rtl-opt/10692
310 * reload1.c (do_input_reload): Restrict the optimization deleteing
311 a previous output reload to RELOAD_FOR_INPUT.
312
6fada017 3132007-04-17 Dorit Nuzman <dorit@il.ibm.com>
314
315 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
316 induc_vec_info_type.
317 (vectorizable_induction): New function declaration.
318 * tree-vect-transform.c (get_initial_def_for_induction): No need to
319 check if already vectorized. Find first place in BB where new stmts
320 can be inserted. Takes only one argument.
321 (vectorizable_induction): New function.
322 (vect_transform_stmt): Add case for induc_vec_info_type to call
323 vectorizable_induction.
324 (vect_transform_loop): Consider phis for vectorization.
325 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
326 condition.
90c24387 327 (analyze_operations): Call vectorizable_induction when analyzing phis.
6fada017 328 Fix comment.
329 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
330 (vect_mark_relevant): Include phis in relevance analysis.
331 (vect_mark_stmts_to_be_vectorize): Likewise.
332 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
333
0e4744ac 3342007-04-16 Lawrence Crowl <crowl@google.com>
335
336 * doc/invoke.texi (Debugging Options): Add documentation for the
337 -femit-struct-debug options -femit-struct-debug-baseonly,
338 -femit-struct-debug-reduced, and
339 -femit-struct-debug-detailed[=...].
340
341 * c-opts.c (c_common_handle_option): Add
342 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
343 and OPT_femit_struct_debug_detailed_.
344 * c.opt: Add specifications for
345 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
346 and -femit-struct-debug-detailed[=...].
347 * opts.c (set_struct_debug_option): Parse the
348 -femit-struct-debug-... options.
349 * opts.c (matches_main_base, main_input_basename,
350 main_input_baselength, base_of_path, matches_main_base): Add
351 variables and functions to compare header base name to compilation
352 unit base name.
353 * opts.c (should_emit_struct_debug): Add to determine to emit a
354 structure based on the option.
355 (dump_struct_debug) Also disabled function to debug this
356 function.
357 * opts.c (handle_options): Save the base name of the
358 compilation unit.
359
360 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
e865d428 361 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
0e4744ac 362 This hook indicates if a type is generic. Set it by default
363 to "never generic".
364 * langhooks.h (struct lang_hooks_for_types): Add a new hook
365 to determine if a struct type is generic or not.
366 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
367 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
368 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
369 with live C++ hook.
370
371 * flags.h (enum debug_info_usage): Add an enumeration to describe
372 a program's use of a structure type.
373 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
374 to indicate the program's usage of the type. Filter structs based
375 on the -femit-struct-debug-... specification.
376 (gen_type_die): Split into two routines, gen_type_die and
377 gen_type_die_with_usage. gen_type_die is now a wrapper
378 that assumes direct usage.
379 (gen_type_die_with_usage): Replace calls to gen_type_die
380 with gen_type_die_with_usage adding the program usage of
381 the referenced type.
382 (dwarf2out_imported_module_or_decl): Suppress struct debug
383 information using should_emit_struct_debug when appropriate.
384
91c9ef60 3852007-04-16 Ian Lance Taylor <iant@google.com>
386
5c7155ca 387 PR tree-optimization/31522
388 * tree-vrp.c (vr_phi_edge_counts): New static variable.
389 (vrp_initialize): Allocate vr_phi_edge_counts.
390 (vrp_visit_phi_node): Don't push to infinity if we saw a new
391 executable edge. Drop test for all constants.
392 (vrp_finalize): Free vrp_phi_edge_counts.
393
40b49e8f 394 * doc/cpp.texi (Common Predefined Macros): Clarify description of
395 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
396
91c9ef60 397 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
398 predecessors at head rather than tail.
399
fc7dfeb9 4002007-04-16 Matthias Klose <doko@debian.org>
401
ddb8b0be 402 * config/alpha/linux.h (CPP_SPEC): Define.
403 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
fc7dfeb9 404
c085e9f9 4052007-04-16 Aldy Hernandez <aldyh@redhat.com>
406
e865d428 407 * function.h: Remove sequence_stack extern declaration.
c085e9f9 408
98d02c10 4092007-04-16 Kazu Hirata <kazu@codesourcery.com>
410
411 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
412 TARGET_FIDOA.
413 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
414 defined.
415
8c23ba29 4162007-04-16 Anatoly Sokolov <aesok@post.ru>
417
418 * config/avr/avr.c (avr_arch_types): Rearranging array.
419 (enum avr_arch): Add.
90c24387 420 (avr_mcu_types): Use avr_arch enumeration constants instead of
8c23ba29 421 numbers.
422 * config/avr/avr.h (LINK_SPEC): Simplify.
423
dbaae14a 4242007-04-16 Kazu Hirata <kazu@codesourcery.com>
425
426 * config/m68k/m68k.c (m68k_libcall_value,
427 m68k_function_value): Use macros for register names more.
428
47313d14 429 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
430 instead.
431 (M68K_REGNAME): Use A6_REG.
432 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
433
c5947ab7 4342007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
435
436 PR middle-end/28071
437 * sched-int.h (struct deps): Split field 'pending_lists_length' into
438 'pending_read_list_length' and 'pending_write_list_length'. Update
439 comment.
440 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
441 to handle two length counters instead of one. Update all uses.
442 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
443 two length counters instead of one.
444 * sched-rgn.c (propagate_deps): Update to handle two length counters
445 instead of one.
446
c3a50b15 4472007-04-16 H.J. Lu <hongjiu.lu@intel.com>
448
449 PR target/31582
450 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
451 copy of source, pass it to ix86_expand_vector_set and return
452 it as target.
453
11b70d7d 4542007-04-16 David Ung <davidu@mips.com>
c3a50b15 455 Joseph Myers <joseph@codesourcery.com>
11b70d7d 456
457 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
458 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
459 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
460 Add 74K processor information.
461 * config/mips/mips.md: Include 74k.md.
462 (cpu): Add 74kc,74kf,74kx.
463 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
464 * config/mips/74k.md: New.
465 * doc/invoke.texi (MIPS Options): Document 74K support.
466
29696c95 4672007-04-16 Dorit Nuzman <dorit@il.ibm.com>
468
469 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
470 vectorizable_* functions.
471 * tree-vect-transform.c (vectorizable_call): Add check for
472 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
473 (vectorizable_store): likewise.
474 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
475 Add comments.
476 (vectorizable_operation, vectorizable_type_demotion): Likewise.
477 (vectorizable_type_promotion, vectorizable_load): Likewise.
478 (vectorizable_live_operation, vectorizable_condition): Likewise.
479 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
480 STMT_VINFO_LIVE_P.
481 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
482
9d463c3d 4832007-04-15 Kazu Hirata <kazu@codesourcery.com>
484
485 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
486 register numbers more.
487 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
488 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
489 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
490 FUNCTION_VALUE_REGNO_P): Likewise.
491 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
492 STATIC_CHAIN_REGNUM): Likewise.
493 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
494 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
495 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
496 * config/m68k/m68k.md (FP_REG): New.
497
35387ada 4982007-04-15 Kazu Hirata <kazu@codesourcery.com>
499
500 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
501 alignment on fido.
502
efec32e0 5032007-04-15 Kazu Hirata <kazu@codesourcery.com>
504
505 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
506 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
507 comment typos.
508
a30d0a5b 5092007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
510
511 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
512 cold loops.
513
0dd13847 5142007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
515
516 PR c/31520
e865d428 517 * c-decl.c (finish_decl): Grab the type of the decl after the call
0dd13847 518 to store_init_value.
519
55d51835 5202007-04-14 Steven Bosscher <steven@gcc.gnu.org>
521
522 * common.opt (fforward-propagate): Fix "Optimization" annotation.
523
480e5bc3 5242007-04-14 Jakub Jelinek <jakub@redhat.com>
525
526 PR c++/25874
527 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
528 post dominators and cleanup cfg before returning.
529
5ff4f029 5302007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
531
532 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
533 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
534
278e2fd1 5352007-04-14 Kazu Hirata <kazu@codesourcery.com>
536
537 * config.gcc: Recognize fido.
538 * config/m68k/m68k-devices.def (fidoa): New.
539 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
540 __mfido__.
541 (FL_FIDOA, TARGET_FIDOA): New.
542 * config/m68k/m68k.opt (mfidoa): New.
543
849ea31c 5442007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
545
546 PR middle-end/31322
547 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
548 when a personality function is used.
549
d4c45216 5502007-04-13 Bob Wilson <bob.wilson@acm.org>
551
552 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
553
2775d4b5 5542007-04-13 Mike Stump <mrs@apple.com>
555
556 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
557 we can...
558 * config/darwin.opt (fapple-kext): Make C++ only.
559 * config/darwin.c (darwin_override_options): Remove code to ensure
560 -fapple-kext is given for C++ only.
561
e7fb4953 5622007-04-13 Richard Sandiford <richard@codesourcery.com>
563
564 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
565 * config/mips/mips.c (override_options): Call
566 SUBTARGET_OVERRIDE_OPTIONS, if defined.
567
ba47d267 5682007-04-13 H.J. Lu <hongjiu.lu@intel.com>
569
570 * config/i386/i386.opt (msvr3-shlib): Removed.
571
572 * doc/invoke.texi: Remove -msvr3-shlib.
573
1b89f7c8 5742007-04-13 H.J. Lu <hongjiu.lu@intel.com>
575
576 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
577 with "popcnt" instruction.
578
f3d56fef 5792007-04-13 Richard Guenther <rguenther@suse.de>
580
581 PR tree-optimization/21258
582 * tree-vrp.c (compare_case_labels): New helper.
583 (find_switch_asserts): New function.
584 (find_assert_locations): Call it for SWITCH_EXPRs.
585
d26e00d8 5862007-04-13 Uros Bizjak <ubizjak@gmail.com>
587
588 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
589 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
590 check is now implied in X87_FLOAT_MODE_P.
591 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
592 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
593 (fix_trunc<mode>_i386_fisttp): Ditto.
594 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
595 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
596 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
597 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
598 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
599 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
600 (unnamed_splitters): Ditto.
601 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
602 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
603 FIRST_SSE_REG for local functions when SSE math is enabled or
604 for functions with sseregparm attribute.
605 (standard_80387_constant_p): Return -1 if mode is not
606 X87_FLOAT_MODE_P.
607 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
608 (ix86_expand_compare): Ditto.
609 (ix86_expand_carry_flag_compare): Ditto.
610 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
611 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
612 DECIMAL_FLOAT_MODE_P.
613 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
614 of SCALAR_FLOAT_MODE_P.
615 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
616 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
617 checks before FLOAT_MODE_P.
618 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
619 before FLOAT_MODE_P.
620 [DIV]: Ditto.
621 [NEG]: Ditto.
622 [ABS]: Ditto.
623 [SQRT]: Ditto.
624 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
625
bdbe7091 6262007-04-12 Paolo Bonzini <bonzini@gnu.org>
e865d428 627 Charles Wilson <libtool@cwilson.fastmail.fm>
bdbe7091 628
629 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
630 (libgcc.mvars): Don't depend on them.
631 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
632 * exec-tool.in: New.
633
2211b4ca 6342007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
635
636 * doc/invoke.text (--help): Document --help=common.
637
cab08a39 6382007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
639
640 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
641
a8a393cb 6422007-04-12 Richard Sandiford <richard@codesourcery.com>
643
644 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
645 * genemit.c (main): Emit #include "integrate.h".
646 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
647 (LOADGP_RTP): New mips_loadgp_style.
648 * config/mips/mips.h: Include config/vxworks-dummy.h.
649 (TARGET_RTP_PIC): New macro.
650 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
651 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
652 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
653 for TARGET_RTP_PIC.
654 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
655 -mvxworks-pic when using -mrtp and a PIC option.
656 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
657 for RTP PIC.
658 (mips_symbolic_constant_p, mips_symbolic_address_p)
659 (mips_symbol_insns): Handle SYMBOL_HALF.
660 (override_options): Warn about -G and -mrtp being used together.
661 Initialize mips_lo_relocs[SYMBOL_HALF].
662 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
663 (mips_emit_loadgp): Handle LOADGP_RTP.
664 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
665 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
666 (tablejump): Handle function-relative case table entries if
667 TARGET_RTP_PIC.
668 * config/mips/predicates.md (symbol_ref_operand): New predicate.
669
d1b79aba 6702007-04-12 Richard Sandiford <richard@codesourcery.com>
671
672 * config/mips/mips.md (load_call<mode>): Allow any general register.
673 destination.
674 (sibcall_value_internal, sibcall_value_multiple_internal)
675 (call_value_internal, call_value_split, call_value_multiple_internal)
676 (call_value_multiple_split): Remove constraints from operand 0.
677
de604551 6782007-04-12 Richard Sandiford <richard@codesourcery.com>
679
680 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
681 rather than loadgp_noshared.
682 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
683 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
684 gen_loadgp.
685 * config/mips/mips.md (loadgp): Rename to...
686 (loadgp_newabi): ...this.
687 (loadgp_noshared): Rename to...
688 (loadgp_absolute): ...this.
689
ffe0cc16 6902007-04-12 Richard Sandiford <richard@codesourcery.com>
691
692 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
693 false for locally-binding symbols.
694 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
695
4cb04729 6962007-04-12 Richard Sandiford <richard@codesourcery.com>
697
698 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
699 (SYMBOL_GOT_PAGE_OFST): ...this.
700 (SYMBOL_GOT_GLOBAL): Rename to...
701 (SYMBOL_GOT_DISP): ...this.
702 (SYMBOL_GOTOFF_GLOBAL): Rename to...
703 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
704 * config/mips/mips.c (mips_global_symbol_p): New function.
705 (mips_symbol_binds_local_p): Likewise.
706 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
707 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
708 and mips_symbol_binds_local_p.
709 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
710 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
711 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
712 SYMBOL_GOTOFF_DISP.
713 (mips_ok_for_lazy_binding_p): New function.
714 (mips_load_call_address, mips_expand_call): Use it.
715 (mips_dangerous_for_la25_p): Likewise.
716 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
717 (*got_disp<mode>): Use got_disp_operand instead of
718 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
719 SYMBOL_GOTOFF_GLOBAL.
720 (*got_page<mode>): Use got_page_ofst_operand instead of
721 local_got_operand.
722 * config/mips/predicates.md (const_call_insn_operand): Use
723 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
724 (global_got_operand): Rename to...
725 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
726 SYMBOL_GOT_GLOBAL.
727 (local_got_operand): Rename to...
728 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
729 of SYMBOL_GOT_LOCAL.
730
46414626 7312007-04-12 Richard Sandiford <richard@codesourcery.com>
732
733 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
734 TARGET_CALL_CLOBBERED_GP.
735 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
736 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
737 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
738 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
739 of TARGET_ABICALLS && !TARGET_NEWABI.
740 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
741 * config/mips/mips.c (mips_load_call_address): Check
742 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
743 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
744 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
745 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
746 TARGET_ABICALLS && TARGET_NEWABI.
747 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
748 TARGET_ABICALLS.
749 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
750 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
751 TARGET_ABICALLS && TARGET_NEWABI.
752 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
753 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
754 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
755 whether indirect calls must use $25.
756 (mips_extra_live_on_entry): Check TARGET_GOT instead of
757 TARGET_ABICALLS.
758 * config/mips/mips.md (jal_macro): Check flag_pic and
759 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
760 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
761 instead of TARGET_ABICALLS.
762 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
763 TARGET_ABICALLS && TARGET_OLDABI.
764 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
765 (sibcall): In the comment above the define_insn, mention
766 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
767 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
768 instead of TARGET_ABICALLS.
769
9422b03b 7702007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
771
772 * doc/md.texi (Blackfin family constraints): Document PA and PB.
773 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
774 (MACFLAGS_MATCH_P): New macro.
775 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
776 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
777 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
778 the other MACFLAG constants.
779 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
780 (flag_machi): Tighten constraints. Renumber some of the operands.
781 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
782 output template.
783 (flag_machi_parts_acconly): New pattern.
784 (flag_macinithi): Tighten constraints. Allow any accumulator to be
785 used.
786 (flag_macinit1hi): Tighten constraints.
787 (flag_mul_macv2hi_parts_acconly): New pattern.
788
6daa377b 789 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
790 Use a more efficient implementation.
791 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
792 inline sequences when not optimizing for size.
793
4462e6ac 794 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
795 movhi_high2low): Delete, merge functionality into...
796 (packv2hi): ... this pattern.
797
c9ddd413 798 2007-02-11 Jie Zhang <jie.zhang@analog.com>
799 * config/bfin/bfin.opt (msim): New option.
800 (mcpu=): New option.
801 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
802 (bfin_cpu_t): Typedef of enum bfin_cpu.
803 (bfin_cpu_type): New declaration.
804 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
805 -msim and -mcpu= options.
806 (LIB_SPEC): Likewise.
807 * config/bfin/bfin.c (bfin_cpu_type): Define.
808 (bfin_handle_option): Handle -mcpu= option.
809 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
810 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
811 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
812
c77a1c92 8132007-04-12 Richard Sandiford <richard@codesourcery.com>
814
815 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
816 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
817 (powerpc-wrs-vxworksae): Use ${tm_file}.
818 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
819 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
820 * config/i386/vx-common.h: New file.
821
6f3d6768 8222007-04-12 Richard Sandiford <richard@codesourcery.com>
823
824 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
825 of crt0.o%s.
826
47d34a13 8272007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
828
829 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
830 ldxtr.
831
5bfe6313 8322007-04-12 Douglas Gregor <doug.gregor@gmail.com>
833
834 PR c++/31078
835 PR c++/31103
836 * c-common.c (c_build_qualified_type): Set canonical type
90c24387 837 appropriately.
5bfe6313 838
a128a28f 8392007-04-12 Richard Guenther <rguenther@suse.de>
840
841 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
842 lower bound and element size if lower bound is not zero
843 or either of the ARRAY_REF operands is set.
844
a2501610 8452007-04-12 Richard Guenther <rguenther@suse.de>
846
847 PR tree-optimization/24689
848 PR tree-optimization/31307
849 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
850 indices by value.
851 * gimplify.c (canonicalize_addr_expr): To be consistent with
852 gimplify_compound_lval only set operands two and three of
853 ARRAY_REFs if they are not gimple_min_invariant. This makes
854 it never at this place.
855 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
856
9f4a0384 8572007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
858
859 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
860 null before emitting a .nsubspa directive.
861
12a2c9ea 8622007-04-11 Diego Novillo <dnovillo@redhat.com>
863
864 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
865 need_to_partition_p if there are no memory statements in the
866 function.
867
cabedb72 8682007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
869
870 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
871 (gcd_of_steps_may_divide_p): New function.
872 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
873
c89e828f 8742007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
875
876 * reload.c (find_reloads_toplev, find_reloads_address,
877 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
878 not a pointer equality test, to decide if we need to call
879 push_reg_equiv_alt_mem.
880
2a21a5df 8812007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
882
883 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
884 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
885 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
886
cabedb72 8872007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
8fb896c4 888
889 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
890 vector to be positive.
891
c227f8de 8922007-04-11 Diego Novillo <dnovillo@redhat.com>
893
894 PR 30735
895 PR 31090
896 * doc/invoke.texi: Document --params max-aliased-vops and
897 avg-aliased-vops.
898 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
899 debug_memory_partitions): Move to tree-flow.h
900 * params.h (AVG_ALIASED_VOPS): Define.
901 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
902 users.
903 (mp_info_t): Likewise.
904 (get_mem_sym_stats_for): New.
905 (set_memory_partition): Move from tree-flow-inline.h.
906 (mark_non_addressable): Only clear the set of symbols for the
907 partition if it exists.
908 (dump_memory_partitions): Move from tree-ssa-operands.c
909 (debug_memory_partitions): Likewise.
910 (need_to_partition_p): New.
911 (dump_mem_ref_stats): New.
912 (debug_mem_ref_stats): New.
913 (dump_mem_sym_stats): New.
914 (debug_mem_sym_stats): New.
915 (update_mem_sym_stats_from_stmt): New.
916 (compare_mp_info_entries): New.
917 (mp_info_cmp): Call it.
918 (sort_mp_info): Change argument to a list of mem_sym_stats_t
919 objects.
920 (get_mpt_for): Move from tree-ssa-operands.c.
921 (find_partition_for): New.
922 (create_partition_for): Remove.
923 (estimate_vop_reduction): New.
924 (update_reference_counts): New.
925 (build_mp_info): New.
926 (compute_memory_partitions): Refactor.
927 Document new heuristic.
928 Call build_mp_info, update_reference_counts,
929 find_partition_for and estimate_vop_reduction.
930 (compute_may_aliases): Populate virtual operands before
931 calling debugging dumps.
932 (delete_mem_sym_stats): New.
933 (delete_mem_ref_stats): New.
934 (init_mem_ref_stats): New.
935 (init_alias_info): Call it.
936 (maybe_create_global_var): Remove alias_info argument.
937 Get number of call sites and number of pure/const call sites
938 from gimple_mem_ref_stats().
939 (dump_alias_info): Call dump_memory_partitions first.
940 (dump_points_to_info_for): Show how many times a pointer has
941 been dereferenced.
942 * opts.c (decode_options): For -O2 set --param
943 max-aliased-vops to 500.
944 For -O3 set --param max-aliased-vops to 1000 and --param
945 avg-aliased-vops to 3.
946 * fortran/options.c (gfc_init_options): Remove assignment to
947 MAX_ALIASED_VOPS.
948 * tree-flow-inline.h (gimple_mem_ref_stats): New.
949 * tree-dfa.c (dump_variable): Dump memory reference
950 statistics.
951 Dump NO_ALIAS* settings.
952 (referenced_var_lookup): Tidy.
953 (mem_sym_stats): New.
954 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
955 and ORIG are different SSA names for a memory partition.
956 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
957 * tree-flow.h (struct mem_sym_stats_d): Define.
958 (mem_sym_stats_t): Define.
959 (struct mem_ref_stats_d): Define.
960 (struct gimple_df): Add field mem_ref_stats.
961 (enum noalias_state): Define.
962 (struct var_ann_d): Add bitfield noalias_state.
963 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
964 debug_mem_ref_stats, debug_memory_partitions,
965 debug_mem_sym_stats): Declare.
966 * tree-ssa-structalias.c (update_alias_info): Update call
967 sites, pure/const call sites and asm sites in structure
968 returned by gimple_mem_ref_stats.
969 Remove local variable IS_POTENTIAL_DEREF.
970 Increase NUM_DEREFS if the memory expression is a potential
971 dereference.
972 Call update_mem_sym_stats_from_stmt.
973 If the memory references memory, call
974 update_mem_sym_stats_from_stmt for all the direct memory
975 symbol references found.
976 (intra_create_variable_infos): Set noalias_state field for
977 pointer arguments according to the value of
978 flag_argument_noalias.
979 * tree-ssa-structalias.h (struct alias_info): Remove fields
980 num_calls_found and num_pure_const_calls_found.
981 (update_mem_sym_stats_from_stmt): Declare.
982 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
983 Set default value to 100.
984 (PARAM_AVG_ALIASED_VOPS): Define.
985
516aa37d 9862007-04-11 Richard Guenther <rguenther@suse.de>
987
988 PR middle-end/31530
989 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
990 a * -b + c as c - a * b if we honor sign dependent rounding.
991
2b8e874f 9922007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
993
994 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
995 bfin_expand_strmov.
996 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
997 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
998 variables.
999 (initialize_trampoline): Don't use old-style function definition.
1000 (bfin_secondary_reload): Mark IN_P argument as unused.
1001
3e6bc865 10022007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
1003
1004 PR tree-optimization/31343
1005 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
1006 (build_polynomial_chrec): Return a scalar when the evolution is zero.
1007 * testsuite/gcc.dg/vect/pr31343.c: New.
1008
ed01e173 10092007-04-10 Eric Christopher <echristo@apple.com>
1010
1011 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
1012 * config/i386/i386.md (*cmpfp0): Use.
1013 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
1014 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
1015 (fix_trunc<mode>_i386_fisttp): Ditto.
1016 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
1017 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
1018 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
1019 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
1020 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
1021 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
1022 (unnamed_splitters): Ditto.
1023 * config/i386/i386.c (output_fix_trunc): Assert that
1024 we're not being passed a TFmode operand.
1025
944cca50 10262007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
1027
1028 PR tree-optimization/31526
1029 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
1030 n_basic_blocks to find newly added blocks.
1031
c778ae84 10322007-04-10 Uros Bizjak <ubizjak@gmail.com>
1033
1034 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
1035 alternative.
1036 (fix_trunc<mode>si_sse): Ditto.
1037 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
1038 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
1039 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
1040 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
1041 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
1042 expander using SSEMODEF mode macro.
1043 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
1044 expander using SSEMODEF mode macro.
1045 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
1046 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
1047 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
1048 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
1049 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
1050 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
1051 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
1052 Macroize insn using X87MODEF mode macro.
1053
d8d6e6ac 10542007-04-09 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 * config/i386/sse.md (sse2_pinsrw): Removed.
1057 (sse2_pextrw): Renamed to ...
1058 (*sse2_pextrw): This.
1059
cb00447a 10602007-04-09 Jan Hubicka <jh@suse.cz>
1061
1062 PR target/27869
1063 * config/i386/sse.md
1064 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
1065 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
1066 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
1067 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
1068
d9745cea 10692007-04-09 Jan Hubicka <jh@suse.cz>
1070
1071 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
1072 multiple fields of union.
1073
d8a0d6b8 10742007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
1075
1076 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
1077 (create_preheaders): Check that loops are available.
1078 (fix_loop_structure): Clean up, improve comments.
1079 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
1080 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
1081 state flags.
1082 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
1083 * predict.c (tree_estimate_probability): Do not call
1084 calculate_dominance_info. Call create_preheaders.
1085 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
1086 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
1087 flags.
1088 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
1089 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
1090 * tree-cfg.c (tree_split_edge): Make an assert more precise.
1091 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
1092 arguments.
1093
27290809 10942007-04-08 Jan Hubicka <jh@suse.cz>
1095
1096 * tree.h (maybe_fold_offset_to_component_ref): Declare.
1097 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
1098 * fold-const.c (fold_unary): Use it.
1099
bbdc7974 11002007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
1101
1102 * varasm.c (assemble_variable): Remove call to
1103 lang_hooks.decls.prepare_assemble_variable.
1104 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
1105 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
1106 * langhooks.h (lang_hooks_for_decls): Remove
1107 prepare_assemble_variable.
1108
105eb9b9 11092007-04-08 Mike Stump <mrs@apple.com>
1110
1111 * config/i386/i386.c: Use inc/dec on Core2.
1112
94be3290 11132007-04-08 Steven Bosscher <steven@gcc.gnu.org>
1114
1115 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
1116 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1117 lhd_tree_inlining_end_inlining): Remove.
1118 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
1119 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
1120 end_inlining hooks.
1121 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
1122 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1123 lhd_tree_inlining_end_inlining): Remove prototypes.
1124 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
1125 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
1126 LANG_HOOKS_TREE_INLINING_START_INLINING,
1127 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
1128
1129 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
1130 not set it.
1131
8e5f08fe 11322007-04-08 Anatoly Sokolov <aesok@post.ru>
1133
1134 PR target/29932
1135 * config/avr/predicates.md (io_address_operand): Delete predicate.
1136 (low_io_address_operand): Don't use 'mode' argument.
1137 (higth_io_address_operand): Rename ...
1138 (high_io_address_operand): ... to this. Don't use 'mode' argument.
1139 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
1140 for above change.
1141
cf484390 11422007-04-07 Daniel Berlin <dberlin@dberlin.org>
1143
1144 Revert change removing staticp.
1145
4704b743 11462007-04-07 Anatoly Sokolov <aesok@post.ru>
1147
1148 PR target/30289
ed01e173 1149 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
4704b743 1150 earlyclobber.
1151
0e9b4e74 11522007-04-07 Bruce Korb <bkorb@gnu.org>
1153
1154 * c.opt: Add -Wformat-contains-nul.
1155 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
1156 -Wformat setting.
1157 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
1158 the NUL byte warning.
1159
918ee506 11602007-04-07 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
1163
57d1a308 11642007-04-06 Daniel Berlin <dberlin@dberlin.org>
1165
1166 * tree.c (staticp): No longer use staticp langhook.
1167 * langhooks.c (lhd_staticp): Removed.
1168 * langhooks.h (struct lang_hooks): Remove staticp.
1169 * c-common.c (c_staticp): Remove.
1170 * c-common.h (c_staticp): Ditto.
1171 * langhooks-defs.h (lhd_staticp): Ditto.
1172 (LHD_HOOKS_STATICP): Ditto
1173 * tree.h (gcc_assert_lowered): New macro.
1174
d97e22fb 11752007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
1176
1177 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
1178 argument "reliable".
1179 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
1180 Add argument "reliable". Propagate it through calls.
1181 (infer_loop_bounds_from_undefined): Derive number of iterations
1182 estimates from references in blocks that do not dominate loop latch.
1183 (gcov_type_to_double_int): New function.
1184 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
1185 and expected_loop_iterations_unbounded.
1186 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
1187 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
1188 * tree-data-ref.c (estimated_loop_iterations): Export.
1189 (get_references_in_stmt): Fix -- do not return addresses of local
1190 objects.
1191 * cfgloop.h (expected_loop_iterations_unbounded,
1192 estimated_loop_iterations): Declare.
1193
fe0b46c1 11942007-04-06 Andreas Tobler <a.tobler@schweiz.org>
1195
1196 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
1197
9926a1b3 11982007-04-06 Uros Bizjak <ubizjak@gmail.com>
1199
1200 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
1201 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
1202 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
1203 Use output_387_reg_move().
1204 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
1205 expander using X87MODEF12 mode macro.
1206 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
1207 choosing register preferences. Use output_387_reg_move().
1208 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
1209 instead of "x". Use output_387_reg_move().
1210 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
1211 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
1212 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
1213 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
1214 Use output_387_reg_move().
1215 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
1216 mode macro.
1217 (*truncxf?f_i387 splitter): Ditto.
1218
b140c9fd 12192007-04-06 Daniel Berlin <dberlin@dberlin.org>
1220
1221 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1222 LANG_HOOKS_SAFE_FROM_P.
1223 * expr.c (safe_from_p): Remove langhook call.
1224 * langhooks.h (lang_hooks): Remove safe_from_p.
1225 (lhd_safe_from_p): Remove prototype.
1226 * langhooks.c (lhd_safe_from_p): Remove.
ed01e173 1227
316ef6d8 12282007-04-06 Jan Hubicka <jh@suse.cz>
1229
1230 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
1231 functions.
1232
4c756287 12332007-04-06 Uros Bizjak <ubizjak@gmail.com>
1234
1235 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
1236 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
1237 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
1238 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
1239 alternative.
1240 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
1241 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
1242
32a8f747 12432007-04-05 Richard Henderson <rth@redhat.com>
1244
1245 * config/alpha/alpha.c (print_operand) [+]: Remove.
1246 (alpha_end_function): Print nop if call at end of function.
1247 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
1248 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
1249 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
1250 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
1251 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
1252 the call pattern. Update peepholes to match.
1253
004e23c4 12542007-04-05 Janis Johnson <janis187@us.ibm.com>
1255
1256 * doc/extend.texi (Other Builtins): Add decimal float variants
1257 of signbit.
1258 * builtins.def: Ditto.
1259 * builtins.c (expand_builtin): Ditto.
1260
70169283 12612007-04-05 Uros Bizjak <ubizjak@gmail.com>
1262 H.J. Lu <hongjiu.lu@intel.com>
1263
1264 PR target/31478
1265 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
1266 of V8HImode when calling ix86_binary_operator_ok.
1267 (sse2_pmaddwd): Call ix86_binary_operator_ok.
1268 (sdot_prodv8hi): Operands 1 and 2 must be register.
1269
f3e8be3e 12702007-04-05 Alexandre Oliva <aoliva@redhat.com>
1271
1272 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
1273 initialize align to silence bogus warning.
1274
2e4b8bcd 12752007-04-05 Alexandre Oliva <aoliva@redhat.com>
1276
1277 PR middle-end/22156
1278 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
1279 all_no_warning.
1280 (struct sra_walk_fns): Remove use_all parameter from use.
1281 (sra_hash_tree): Handle BIT_FIELD_REFs.
1282 (sra_elt_hash): Don't hash bitfld blocks.
1283 (sra_elt_eq): Skip them in parent compares as well. Handle
1284 BIT_FIELD_REFs.
1285 (sra_walk_expr): Don't maintain or pass down use_all_p.
1286 (scan_use): Remove use_all parameter.
1287 (scalarize_use): Likewise. Re-expand assignment to
1288 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
1289 output, and re-scalarize after output. Don't mark anything
1290 for no warning.
1291 (scalarize_ldst): Adjust.
1292 (scalarize_walk_gimple_modify_statement): Likewise.
1293 (build_element_name_1): Handle BIT_FIELD_REFs.
1294 (instantiate_element): Don't warn for any element whose parent
1295 is used as a whole.
1296 (instantiate_missing_elements_1): Return the sra_elt.
1297 (canon_type_for_field): New.
1298 (try_instantiate_multiple_fields): New.
1299 (instantiate_missing_elemnts): Use them.
1300 (mark_no_warning): Removed.
1301 (generate_one_element_ref): Handle BIT_FIELD_REFs.
1302 (REPLDUP, sra_build_elt_assignment): New.
1303 (generate_copy_inout): Use them.
1304 (generate_element_copy): Likewise. Handle bitfld differences.
1305 (generate_element_zero): Don't recurse for blocks. Use
1306 sra_build_elt_assignment.
1307 (generate_one_element_int): Take elt instead of var. Use
1308 sra_build_elt_assignment.
1309 (generate_element_init_1): Adjust.
1310 (scalarize_use, scalarize_copy): Use REPLDUP.
1311 (scalarize_ldst): Move assert before dereference.
1312 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1313
2a515194 13142007-04-05 Steven Bosscher <steven@gcc.gnu.org>
1315
1316 * regmove.c: Fix unused variable warnings due to previous commit.
1317
f9f428c6 13182007-04-05 Steven Bosscher <steven@gcc.gnu.org>
1319
1320 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
1321 (regmove_bb_head): Remove.
1322 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
1323 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
1324 problems with fixup_match_1.
1325 Don't initialize/free regmove_bb_head.
1326
1327 (reg_is_remote_constant_p): If an insn is in the same basic block
1328 but not before INSN, consider it remote, too.
1329
0d528483 13302007-04-05 Anatoly Sokolov <aesok@post.ru>
1331
1332 PR target/25448
ed01e173 1333 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
0d528483 1334 DECL_ASSEMBLER_NAME, not the DECL_NAME.
1335
9f525417 13362007-04-05 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
1339 (CONDITIONAL_REGISTER_USAGE): Likewise.
1340
de13ca97 13412007-04-04 Richard Henderson <rth@redhat.com>
1342
1343 * config/alpha/lib1funcs.asm: Remove unused file.
1344
7fbbfa9f 13452007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
1346
1347 PR other/31356
1348 * opts.c (print_specific_help): Fix --help=<language>
1349 header line.
1350 (common_handle_option): Support --help=common.
1351
4b70b183 13522007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
1353
1354 PR other/31353
1355 * gcc.c (main): Do not run the linker if
1356 print_subprocess_help indicates that it shouldn't be
1357 run.
1358
a1d3fae9 13592007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
1360
1361 PR doc/31355
1362 * doc/invoke.texi (--help=): Document <languages> value, fix
1363 formatting in tables of values.
1364
f5b1f90b 13652007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
1366
1367 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
1368 dllimport attribute of virtual methods.
1369
0875e592 13702007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
1371
e865d428 1372 * config/score/crti.asm: Change _bss_start to __bss_start.
1373 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
1374 (OUTGOING_REG_PARM_STACK_SPACE) update.
1375 * config/score/score.opt: add options to make backend support
1376 score5, score5u, score7 and score7d.
1377 * config/score/score.md: Likewise.
1378 * config/score/misc.md: Likewise.
1379 * config/score/mac.md: Likewise.
1380 * doc/invoke.texi: Likewise.
1381 * doc/md.texi: update constraints define.
0875e592 1382
a4521f7e 13832007-04-03 Richard Henderson <rth@redhat.com>
1384
1385 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
1386 an appropriate type, use the mode instead.
1387
223f6dbc 13882007-04-03 Richard Sandiford <richard@codesourcery.com>
1389
1390 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
1391 Set the default --with-arch setting to mips2.
1392 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
1393 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1394 (MULTILIB_OSDIRNAMES): Delete.
1395 (MULTILIB_DIRNAMES): Define.
1396 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
1397 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
1398 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
1399 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
1400 VXWORKS_OS_CPP_BUILTINS.
1401 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
1402 (MIPS_DEBUGGING_INFO): Undefine.
1403 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
1404
f83924bb 14052007-04-03 Jakub Jelinek <jakub@redhat.com>
1406
1407 PR middle-end/30704
1408 * fold-const.c (native_encode_real): Encode real.c provided longs
1409 as a series of 32-bit native integers.
1410 (native_interpret_real): Interpret buffer as a series of 32-bit
1411 native integers.
1412
b0ecf094 14132007-04-03 Richard Guenther <rguenther@suse.de>
1414
1415 * genpreds.c (write_insn_constraint_len): Write function
1416 optimized for CONSTRAINT_LEN implementation.
1417 (write_tm_preds_h): Output insn_constraint_len inline and
1418 use it for CONSTRAINT_LEN.
1419 (write_insn_preds_c): Don't output insn_constraint_len.
1420 * doc/md.texi (define_register_constraint): Document multi-letter
1421 constraints shall have the same length if they start with the same
1422 letter.
1423
79959616 14242007-04-03 Uros Bizjak <ubizjak@gmail.com>
1425
1426 PR target/31175
1427 * config/i386/i386.md (isinf<mode>2): Expand only when
1428 TARGET_C99_FUNCTIONS is set.
1429
6d057ce8 14302007-04-03 Uros Bizjak <ubizjak@gmail.com>
1431
1432 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
1433 (x86_64-*-linux*): Ditto.
1434 * config/i386/i386.opt (mpc): New option.
1435 * config/i386/i386.c (overrride_options): Handle
1436 ix87_precision_string.
1437 * config/i386/crtprec.c: New file.
1438 * config/i386/t-crtpc: Ditto.
1439 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
1440 and -mpc80 options.
1441 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
1442 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1443 crtprec32.o, crtprec64.o and crtprec80.o.
1444
1445 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
1446 and -mpc80 options.
1447 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
1448
924dc384 14492007-04-02 Eric Christopher <echristo@apple.com>
1450
1451 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
1452 limitations on darwin.
1453
ba92127f 14542007-04-02 Anatoly Sokolov <aesok@post.ru>
1455
1456 PR target/31137
1457 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
1458
8995c1df 14592007-04-02 Dave Korn <dave.korn@artimi.com>
1460
bda7c187 1461 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
924dc384 1462
ac7d39a1 14632007-04-02 Dave Korn <dave.korn@artimi.com>
1464
bda7c187 1465 * libgcc2.h (exception_descriptor): Don't forward-declare.
1466 (__get_eh_table_language, __get_eh_table_version): Delete
ac7d39a1 1467 prototypes of long-dead functions.
1468
bcb0e3ff 14692007-04-01 Daniel Berlin <dberlin@dberlin.org>
1470
1471 * ebitmap.h: New file
1472 * ebitmap.c: New file
1473 * Makefile.in (ebitmap.o): New target.
1474
4486418e 14752007-04-01 Jan Hubicka <jh@suse.cz>
1476
1477 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
1478 before very first instruction.
1479
14802007-04-01 Jan Hubicka <jh@suse.cz>
1481
1482 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
1483 waring on 64bit hosts.
1484 * bitmap.h: Fix typo in bitmap_head_def.
1485
6ca330f8 14862007-04-01 Steven Bosscher <steven@gcc.gnu.org>
1487
1488 PR rtl-optimization/31391
1489 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
1490 into a DELETED_LABEL note, and the label is in an empty basic
1491 block, update BB_END as well as BB_HEAD.
1492
6291249b 14932007-04-01 Richard Henderson <rth@redhat.com>
1494
1495 PR tree-optimization/31169
1496 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
1497 to varying if the range is outside [0, prec-1].
1498
34a43822 14992007-04-01 Richard Sandiford <richard@codesourcery.com>
1500
1501 PR target/31388
1502 * config/mips/mips.md (load_const_gp): New insn.
1503 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
1504 the MIPS16 GP pseudo register if no_new_pseudos.
1505 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
1506
0eafba8d 15072007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
1508
1509 PR target/31364
1510 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
1511 secureplt.
1512 (call_value): Likewise.
1513
42cef9df 15142007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
6d057ce8 1515 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
42cef9df 1516
1517 PR 14737
1518 * doc/invoke.texi: (optimization options): Reword description
1519 of -ffast-math. Document its primary purpose.
924dc384 1520
e3022db7 15212007-03-31 Richard Guenther <rguenther@suse.de>
1522
1523 * omp-low.c (splay-tree.h): Include.
1524 (lookup_decl): Replace splay-tree usage by pointer-map.
1525 (maybe_lookup_decl): Likewise.
1526 (new_omp_context): Likewise.
1527 (delete_omp_context): Likewise.
1528 * gimplify.c (splay-tree.h): Include.
1529 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
1530 pointer-map.
1531 (remap_ssa_name): Likewise.
1532 (remap_decl): Likewise.
1533 (remap_type_1): Likewise.
1534 (remap_type): Likewise.
1535 (copy_body_r): Likewise.
1536 (expand_call_inline): Likewise.
1537 (clone_body): Likewise.
1538 (copy_tree_r): Likewise.
1539 (remap_save_expr): Likewise.
1540 (unsave_r): Likewise.
1541 (unsave_expr_now): Likewise.
1542 (tree_function_versioning): Likewise.
1543 (build_duplicate_type): Likewise.
1544 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
1545 (struct copy_body_data): Replace splay-tree by pointer-map.
1546 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
1547 not $(SPLAY_TREE_H).
1548 (gimplify.o): Depend on $(SPLAY_TREE_H).
1549 (omp-low.p): Likewise.
1550
db54c785 15512007-03-31 Anatoly Sokolov <aesok@post.ru>
1552
924dc384 1553 * config/avr/predicates.md (even_register_operand,
db54c785 1554 odd_register_operand): New predicates.
1555 * config/avr/avr.md (movw peephole2): New.
1556 (movw_r peephole2): New.
1557
81e897e4 15582007-03-30 Rafael Avila de Espindola <espindola@google.com>
1559
1560 * tree.h (get_signed_or_unsigned_type): New.
1561 * fold-const.c (operand_equal_for_comparison_p): Use
1562 get_signed_or_unsigned_type instead of
1563 lang_hooks.types.signed_or_unsigned_type.
1564 * expr.c (store_expr): Ditto.
1565 * langhooks.c (get_signed_or_unsigned_type): New.
1566 (lhd_signed_or_unsigned_type): New.
1567 * langhooks.h (lhd_signed_or_unsigned_type): New.
1568 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
1569
0bbe9142 15702007-03-30 Richard Henderson <rth@redhat.com>
1571
1572 * tree-ssa-loop-ivopts.c: Include target.h.
1573 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
1574 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
1575 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
1576 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
1577
15782007-03-30 Richard Henderson <rth@redhat.com>
1579 Kai Tietz <kai.tietz@onevision.com>
1580
1581 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
1582 default for 64-bit.
1583 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
1584 (TARGET_64BIT_MS_ABI): New.
1585 (DBX_REGISTER_NUMBER): Handle 64-bit.
1586 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
1587 (LONG_TYPE_SIZE): Force to 32.
1588 (REG_PARM_STACK_SPACE): New.
1589 (OUTGOING_REG_PARM_STACK_SPACE): New.
1590 (REGPARM_MAX, SSE_REGPARM_MAX): New.
1591 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1592 (STACK_BOUNDARY): Use 128 for 64-bit.
1593 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
1594 Add 64-bit implementation.
1595 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
1596 argument unused.
1597 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
1598 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
1599 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
1600 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
1601 (ix86_handle_cconv_attribute): Don't warn when ignoring if
1602 TARGET_64BIT_MS_ABI.
1603 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
1604 (ix86_pass_by_reference): Likewise.
1605 (ix86_function_value_regno_p): Likewise.
1606 (ix86_build_builtin_va_list): Likewise.
1607 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1608 (function_arg_advance_ms_64): New.
1609 (function_arg_advance): Call it.
1610 (function_arg_ms_64): New.
1611 (function_arg): Call it.
1612 (function_value_ms_64): New.
1613 (ix86_function_value_1): Call it.
1614 (return_in_memory_ms_64): New.
1615 (ix86_return_in_memory): Call it.
1616 (setup_incoming_varargs_ms_64): New.
1617 (ix86_setup_incoming_varargs): Call it.
1618 (ix86_expand_prologue): Handle 64-bit stack probing.
1619 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
1620 (output_pic_addr_const): Likewise.
1621 (x86_this_parameter): Likewise.
1622 (x86_output_mi_thunk): Likewise.
1623 (x86_function_profiler): Likewise.
1624 (TARGET_STRICT_ARGUMENT_NAMING): New.
1625 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
1626 (TARGET_64BIT_MS_ABI): New.
1627 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
1628 * config/i386/i386.md (allocate_stack_worker): Remove.
1629 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
1630 describe the clobber of eax without a match_scratch.
1631 (allocate_stack_worker_postreload): Remove.
1632 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
1633 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
1634 (allocate_stack_worker_rex64_postreload): Remove.
1635 (allocate_stack): Handle 64-bit.
1636 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
1637 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
1638 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
1639 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
1640 (STANDARD_STARTFILE_PREFIX_1): Likewise.
1641 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
1642 * config.build (x86_64-*-mingw*): New host.
1643 * config.host (x86_64-*-mingw*): New host.
1644 * config.gcc (x86_64-*-mingw*): New target.
1645 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
1646
3fa3949d 16472007-03-30 Richard Henderson <rth@redhat.com>
1648 Kai Tietz <kai.tietz@onevision.com>
1649
1650 * c-pragma.c (struct def_pragma_macro_value): New.
1651 (struct def_pragma_macro): New.
1652 (pushed_macro_table): New.
1653 (dpm_hash, dpm_eq): New.
1654 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
1655 (init_pragma): Install them.
1656 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1657
6e9e3dbe 16582007-03-30 Anatoly Sokolov <aesok@post.ru>
1659
924dc384 1660 * config/avr/avr.c (avr_override_options): Clear
6e9e3dbe 1661 'flag_delete_null_pointer_checks'.
1662
481451eb 16632007-03-30 Paolo Carlini <pcarlini@suse.de>
1664
1665 PR c++/26099
1666 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
1667 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
1668 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
1669 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
1670 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
1671 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
1672 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
1673 C++ extensions.
1674 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
1675
e1caca42 16762007-03-30 Steven Bosscher <steven@gcc.gnu.org>
1677
1678 * regmove.c: Move all of pass_stack_adjustments from here...
1679 * combine-stack-adj.c: ...to this new file.
1680 * Makefile.in: Add rules for combine-stack-adj.o.
1681
de33470d 16822007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
1683
1684 PR tree-optimization/31383
1685 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
1686 to have the same length.
1687
5615be0f 16882007-03-30 Jan Hubicka <jh@suse.cz>
1689
b2e3c5f9 1690 PR middle-end/30700
924dc384 1691 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
5615be0f 1692 availablility; add more sanity checking; ask varpool only about
1693 VAR_DECL.
1694
9c0794a1 16952007-03-29 Richard Henderson <rth@redhat.com>
1696
1697 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
1698 to decide, but __SIZEOF_LONG_LONG__.
1699
bedbe58b 17002007-03-29 Richard Henderson <rth@redhat.com>
1701
1702 * emutls.c (struct __emutls_array): New.
1703 (emutls_destroy): Use it instead of casting element 0 from void*.
1704 (__emutls_get_address): Likewise.
1705
dd1a226e 17062007-03-29 Richard Henderson <rth@redhat.com>
1707
1708 * varasm.c (initializer_constant_valid_p): Don't deny
1709 DECL_DLLIMPORT_P on functions.
1710
1711 * config/i386/cygming.h: Remove function declarations.
1712 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
1713 (ASM_OUTPUT_LABELREF): Remove.
1714 (COMMON_ASM_OP): Remove.
1715 (ASM_OUTPUT_COMMON): Remove.
1716 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1717 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
1718 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1719 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
1720 Rename from TARGET_ENCODE_SECTION_INFO.
1721 * config/i386/netware.h: Likewise.
1722 * config/i386/i386-protos.h: Update.
1723 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
1724 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
1725 (legitimate_constant_p): Reject dllimports.
1726 (dllimport_map, get_dllimport_decl): New.
1727 (legitimize_dllimport_symbol): New.
1728 (legitimize_address, ix86_expand_move): Use it.
1729 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1730 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
1731 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
1732 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
1733 * config/i386/predicates.md (constant_call_address_operand): Only
1734 accept symbols; reject dllimport_p symbols.
1735 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1736 i386_pe_maybe_record_exported_symbol.
1737 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
1738 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
1739 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
1740 trust the setting of DECL_DLLIMPORT_P.
1741 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
1742 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
1743 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
1744 tidy the argument scanning loop.
1745 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
1746 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
1747 (i386_pe_strip_name_encoding): Remove.
1748 (i386_pe_binds_local_p): New.
1749 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
1750 (i386_pe_output_labelref): Remove.
1751 (i386_pe_asm_output_aligned_decl_common): New.
1752 (i386_pe_maybe_record_exported_symbol): Rename from
1753 i386_pe_record_exported_symbol; check for dllexported symbols.
1754
409f9175 17552007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
1756
1757 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
1758 add comment explaining why vsnprintf cannot be used.
1759
a024c245 17602007-03-29 Douglas Gregor <doug.gregor@gmail.com>
1761
1762 PR tree-optimization/30666
1763 * tree.c (build_complex_type): When creating type names for DWARF2
1764 debug info, create TYPE_DECLs for TYPE_NAME instead of
1765 IDENTIFIER_NODEs.
1766 (build_common_tree_nodes_2): Use build_complex_type when building
1767 predefined complex types, to preserve canonical types.
1768
ba45c933 17692007-03-29 Steven Bosscher <steven@gcc.gnu.org>
1770
1771 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
1772 (noce_get_alt_condition): Look at it to determine whether to
1773 reverse the condition or not.
1774 (noce_get_condition): Substitute the truth for lies.
1775 (noce_find_if_block): Set the then_else_reversed field.
1776
5e8ebe59 17772007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
1778
1779 * config/fr30/fr30.md (movdi): Do not accept immediates as the
1780 destination of this insn.
1781 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
1782 than calling gen_rtx_SET directly. Use r0 to hold the value of
1783 'address + 4' rather than a stack based temporary which can be
1784 mis-optimized away.
924dc384 1785
328d5423 17862007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
1787
1788 * config/s390/s390.c (s390_secondary_input_reload_class,
1789 s390_secondary_output_reload_class): Functions removed.
1790 (s390_secondary_reload): New function.
1791 (TARGET_SECONDARY_RELOAD): Target macro defined.
1792 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
1793 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
1794 * config/s390/s390.md ("reload_outti", "reload_outdi",
1795 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
1796 "reload_out<mode>"): Expanders removed.
1797 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
1798 "reload<mode>_nonoffmem_out"): Expanders added.
1799
fc7c3aae 18002007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
1801
1802 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
1803 SRC->DEST replacement failed anyway.
1804
f3e0a067 18052007-03-28 Mike Stump <mrs@apple.com>
1806
1807 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
1808 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
a8654287 1809 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
f3e0a067 1810
d80b6b7d 18112007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1812
1813 * config.gcc: Accept barcelona as a variant of amdfam10.
1814 * config/i386/i386.c (override_options): Likewise.
1815 * doc/invoke.texi: Likewise.
924dc384 1816
74aab153 18172007-03-28 Eric Botcazou <ebotcazou@adacore.com>
1818
1819 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
1820 offsets for BIT_FIELD_REF and COMPONENT_REF.
1821
dc6fafc6 18222007-03-28 Richard Guenther <rguenther@suse.de>
1823
1824 * tree.c (is_global_var): Move ...
1825 * tree-flow-inline.h (is_global_var): ... here.
1826 * tree.h (is_global_var): Remove declaration.
1827
58c9a086 18282007-03-28 Uros Bizjak <ubizjak@gmail.com>
1829
1830 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
1831 option.
1832 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
1833 * config/i386/i386.c (ix86_tune_features): Initialize new
1834 tuning option.
1835 * config/i386/predicates.md (promotable_binary_operator): Use
1836 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
1837
41b0d74f 18382007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
1839
1840 PR target/31380
1841 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
1842
0c570b19 18432007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
95175695 1844
1845 * config/fr30/fr30.md (movsi_internal): Change destination
924dc384 1846 constraint from m to V and add m to the end.
95175695 1847
4a98dc74 18482007-03-28 Christian Bruel <christian.bruel@st.com>
1849
1850 * config/sh/sh.md (movsi_i): Fix type attribute.
1851
0c570b19 18522007-03-28 Christian Bruel <christian.bruel@st.com>
e661b951 1853
1854 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
1855 (movsf_ie): Likewise.
1856
99b0f6d9 18572007-03-28 Christian Bruel <christian.bruel@st.com>
1858
1859 * config.gcc: Add sh4-300 to multilib.
1860 * config/sh/t-mlib-sh4-300: New file.
1861
37e3ac7e 18622007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
1863
1864 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
1865 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
1866 fix_trunc<mode>di2.
924dc384 1867 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
37e3ac7e 1868 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
1869 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
1870 "fixuns_trunctddi2"): Whitespace fix.
1871
f328f118 18722007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
1873
1874 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
1875 the definition of struct sh_args.
1876 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
1877 CALL_COOKIE_INT_REG_GET): Likewise.
1878
0fffdebc 18792007-03-28 Steven Bosscher <steven@gcc.gnu.org>
1880
1881 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
1882 transformations are applied successfully.
1883
5ca99950 18842007-03-27 Douglas Gregor <doug.gregor@gmail.com>
1885
1886 * tree.c (tree_contains_struct): Permit 512 tree codes.
1887 * tree.h (tree_contains_struct): Ditto.
1888 (MAX_TREE_CODES): Ditto.
1889 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
1890 SPARE member to store remaining padding bits.
1891
097373ae 18922007-03-27 Anatoly Sokolov <aesok@post.ru>
1893
924dc384 1894 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
097373ae 1895 architecture.
1896
ca0d2b55 18972007-03-27 Janis Johnson <janis187@us.ibm.com>
1898
88f38265 1899 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
1900 * configure: Regenerate.
1901
ca0d2b55 1902 * configure: Regenerate using the correct version of autoconf.
1903
19042007-03-27 Anatoly Sokolov <aesok@post.ru>
dc39da57 1905
1906 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
1907 pointer regs.
1908 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
1909 regs to "__SP_L__" and "__SP_H__".
1910
209f25b9 19112007-03-27 Richard Guenther <rguenther@suse.de>
1912
1913 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
924dc384 1914 computations with it with a HOST_WIDE_INT variable.
209f25b9 1915
45ccdeb8 19162007-03-26 Mike Stump <mrs@apple.com>
1917
1918 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
1919 objective-c-header, objective-c++-header and objc++-cpp-output
1920 support.
1921 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1922
1a510660 19232007-03-26 Richard Henderson <rth@redhat.com>
1924
58c9a086 1925 PR target/31361
1926 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
1927 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
1928 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
1929 IX86_BUILTIN_PSRLQ128): New.
1930 (ix86_init_mmx_sse_builtins): Add them.
1931 (ix86_expand_builtin): Expand them.
1932 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
1933 operand 2 be TImode.
1934 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
1935 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1936 _mm_srli_epi64): Mark __B const.
1937 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
1938 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
924dc384 1939 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
58c9a086 1940 new two-vector shift builtins.
1a510660 1941
c68b42d2 19422007-03-26 Ian Lance Taylor <iant@google.com>
1943
1944 PR tree-optimization/31345
1945 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
1946 [+INF, +INF(OVF)] into VARYING.
1947
f8be92ce 19482007-03-26 Zack Weinberg <zackw@panix.com>
1949
1e837561 1950 * gengtype-parse.c: New file.
1951 * gengtype-yacc.y: Delete.
1952 * gengtype-lex.l: Don't include gengtype-yacc.h.
1953 Define YY_DECL and yyterminate appropriately for recursive
1954 descent parser. yylval is now a string out-parameter to yylex.
1955 (HWS, EOID): New shorthand.
1956 (IWORD): Add a couple more types.
1957 (yylex): Add a setup stanza. Remove the complex rules for
1958 detecting GTY'ed types and typedefs; replace with simple
1959 keyword detectors. Adjust everything for the changed
1960 definition of yylval. Ignore all pp-directives, not just #define.
1961 (yyerror): Delete.
1962 (parse_file): Rename yybegin; do not call yyparse.
1963 (yyend): New.
1964 * gengtype.c (xasprintf): Export again.
1965 (this_file): New. Use everywhere __FILE__ was being used.
1966 (get_lang_bitmap): Special case types defined in gengtype.c.
1967 (do_typedef, new_structure): Suppress definition of certain types.
1968 (new_structure): Improve diagnostics of duplicate definitions.
1969 Make sure location_s is associated with input.h.
1970 (nreverse_pairs, define_location_structures): New functions.
1971 (main): Improve tagging of kludge types. Remove old kludges
1972 for input.h types; use define_location_structures.
1973 * gengtype.h: Update prototypes. Define token codes here.
1974 * Makefile.in: Remove all references to gengtype-yacc.
1975 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
1976 and gengtype.
1977 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
1978 add GTY((skip)) to the field that's only conditionally there.
1979 * doc/install.texi: Document that Bison is no longer required
1980 unless building treelang.
1981
570af75a 1982 * gengtype.c: Don't include gtyp-gen.h.
1983 (srcdir): Declare here.
1984 (base_files, lang_dir_names): Allocate dynamically.
1985 (gt_files, num_gt_files, num_lang_dirs): New globals.
1986 (measure_input_list, read_input_line, read_input_list)
1987 (set_lang_bitmap): New functions.
1988 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
1989 simplify, relying on read_input_list to set up the bitmaps.
1990 (main): Arguments are no longer unused. Check for correct number
1991 of command line arguments, set srcdir and srcdir_len, then call
1992 read_input_list, before doing anything else. No need to worry
1993 about duplicates in main loop.
1994 * configure.ac: Simplify the calculation of all_gtfiles.
1995 Put language tags in there. Don't set or substitute
1996 all_gtfiles_files_langs or all_gtfiles_files_frags.
1997 * Makefile.in: Revamp the way gengtype is invoked, now that it
1998 takes a file on its command line with a much simpler format.
1999 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
2000 (GTFILES): Remove duplicates and C source files.
2001 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
2002 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
2003 * configure: Regenerate.
2004
4097676c 2005 * gengtype.h: Remove all type definitions to gengtype.c; leave
2006 only definitions of options_p, type_p, and pair_p as opaque
2007 pointers. Update prototypes.
2008 * gengtype.c: Many type definitions moved here from gengtype.h.
2009 Consolidate type definitions at the top of the file.
2010 (xvasprintf): Delete.
2011 (xasprintf): Make static.
2012 (create_nested_pointer_option): Add 'next' parameter.
2013 (create_field_all, create_field_at): New functions.
2014 (create_field): Now a thin wrapper around create_field_all.
2015 (create_optional_field): Rename create_optional_field_ and add
2016 line argument. Original name is now a macro which supplies
2017 __LINE__.
2018 (oprintf): Use vsnprintf directly.
2019 (close_output_files): Use fatal rather than perror/exit.
2020 (note_def_vec, note_def_vec_alloc): Use create_field_at.
2021 (main): Set progname. Don't use exit.
2022 * gengtype-yacc.y (struct_fields): Use create_field_at.
2023 (option, optionseqopt): Delete.
2024 (optionseq): Consolidate productions from option here so we
2025 can use the first argument to create_option.
2026
6fee8f02 2027 * gengtype-lex.l: Distinguish unions from structures in the
2028 token type. Don't call find_structure; return the tag as a string.
2029 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
2030 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
2031 Reorganize typedef_struct production accordingly.
2032 Use create_nested_ptr_option.
2033 * gengtype.c (create_nested_ptr_option): New function.
2034 * gengtype.h: Declare it.
2035
80da8e25 2036 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
2037 (string_type): Don't declare.
2038 (do_scalar_typedef): Declare.
2039 (create_scalar_type): Update prototype.
2040 * gengtype.c (string_type): Make static.
2041 (scalar_nonchar, scalar_char): New.
2042 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
2043 (resolve_typedef): Use scalar_nonchar for error recovery.
2044 (create_scalar_type): Remove name_len field. Return scalar_char
2045 or scalar_nonchar as appropriate.
2046 (adjust_field_type): Look at scalar_is_char boolean to decide whether
2047 to use string_type.
2048 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
2049 whenever possible.
2050 (main): Initialize scalar_char and scalar_nonchar before calling
2051 gen_rtx_next.
2052 * gengtype-lex.l: Adjust for removal of second argument to
2053 create_scalar_type. Use yylval.s instead of yylval.t when
2054 returning SCALAR.
2055 * gengtype-yacc.y: Type of SCALAR is string. Call
2056 create_scalar_type from type:SCALAR rule. Adjust for removal of
2057 second argument to create_scalar_type.
2058
696e7773 2059 * vec.h: Remove all #if IN_GENGTYPE blocks.
2060 Add comment saying that changes may require adjustments to gengtype.
2061 * gengtype.c: Don't include coretypes.h or tm.h.
2062 Add comment to inclusion of errors.h.
2063 (note_def_vec, note_def_vec_alloc): New functions.
2064 * gengtype.h: Declare new functions.
2065 * gengtype-lex.l: Don't include coretypes.h.
2066 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
2067 Delete.
2068 (update_lineno): Remove unnecessary prototype.
2069 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
2070 (VEC rule): Just return VEC_TOKEN.
2071 * gengtype-yacc.y (VEC_TOKEN): New token type.
2072 (type): Add a production for VEC(a,b).
2073 * Makefile.in: Update dependencies.
2074
892ddc0b 2075 * gengtype-lex.l: Remove rules for parsing pointer-to-function
2076 typedefs that use the old PARAMS macro.
2077
f8be92ce 2078 * gengtype-lex.l: Remove all rules and states relating to yacc
2079 input files.
2080 * gengtype-yacc.y: Similarly.
2081 * gengtype.c (note_yacc_type): Delete function.
2082 * gengtype.h: Update prototypes.
2083
e4e0b898 20842007-03-26 Joseph Myers <joseph@codesourcery.com>
2085
2086 * tree-pretty-print.c (dump_generic_node): Report precision of
2087 unnamed integer types.
2088
03dbd7cc 20892007-03-26 Steven Bosscher <steven@gcc.gnu.org>
2090
2091 * ifcvt.c (noce_try_store_flag_constants): Don't check
2092 no_new_pseudos here.
2093 (noce_try_store_flag_constants): Don't check no_new_pseudos.
2094 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
2095 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2096 noce_try_sign_mask): Likewise.
2097 (if_convert): Check no_new_pseudos here.
2098
2099 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
2100 Remove prototypes.
2101 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
2102 (noce_get_condition): Handle new then_else_reversed argument.
2103 (noce_init_if_info): Remove, fold into noce_find_if_block.
2104 (noce_process_if_block): Take a struct noce_if_info as the
2105 argument. Don't set up one based on ce_if_info. Update pointer
2106 references accordingly.
2107 (cond_move_process_if_block): Likewise.
2108 (process_if_block): Removed.
2109 (find_if_block): Removed. Move functionality two new functions,
2110 noce_find_if_block and cond_exec_find_if_block.
2111 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
2112 blocks and the symmetric IF-ELSE-JOIN case.
2113 (cond_exec_find_if_block): Also new function mostly based on old
2114 find_if_block and process_if_block.
2115 (find_if_header): Replace find_if_block call with separately
2116 guarded calls to noce_find_if_block and cond_exec_find_if_block.
2117 (find_cond_trap): Update noce_get_condition call.
2118 (dead_or_predicable): Likewise.
2119
211d5b9a 21202007-03-26 Jakub Jelinek <jakub@redhat.com>
2121
2122 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
2123 Remove.
2124 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
2125 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
2126 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
2127 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
58c9a086 2128 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
211d5b9a 2129 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
2130 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
2131 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
2132 __builtin_ia32_psrad128 builtins.
2133
4e9abdcc 21342007-03-26 Uros Bizjak <ubizjak@gmail.com>
2135
2136 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
2137 * config/i386/constraints.md
2138 (define_constraint "I"): Use IN_RANGE macro.
2139 (define_constraint "J"): Ditto.
2140 (define_constraint "K"): Ditto.
2141 (define_constraint "M"): Ditto.
2142 (define_constraint "N"): Ditto.
2143 (define_constraint "O"): Ditto.
2144 * config/i386/predicates.md
2145 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
2146 (define_predicate "const_0_to_3_operand"): Ditto.
2147 (define_predicate "const_0_to_7_operand"): Ditto.
2148 (define_predicate "const_0_to_15_operand"): Ditto.
2149 (define_predicate "const_0_to_63_operand"): Ditto.
2150 (define_predicate "const_0_to_255_operand"): Ditto.
2151 (define_predicate "const_1_to_31_operand"): Ditto.
2152 (define_predicate "const_2_to_3_operand"): Ditto.
2153 (define_predicate "const_4_to_7_operand"): Ditto.
2154
87ba92a7 21552007-03-25 David Edelsohn <edelsohn@gnu.org>
2156
2157 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
2158 in SImode for save_world.
2159 * config/rs6000/altivec.md (save_world, restore_world): Convert to
2160 LR hard reg.
2161
3cbad267 21622007-03-25 Dorit Nuzman <dorit@il.ibm.com>
2163
2164 PR tree-optimization/30784
2165 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
2166 BIT_FIELD_REF.
2167
73772494 21682007-03-25 Revital Eres <eres@il.ibm.com>
2169
f8be92ce 2170 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
2171 Fold movement_possibility function into it.
73772494 2172
327202e2 21732007-03-25 David Edelsohn <edelsohn@gnu.org>
2174
2175 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
2176 (load_macho_picbase_{si,di}): Convert to LR hard reg.
2177 (call_indirect_nonlocal_darwin64): Same.
2178 (call_nonlocal_darwin64): Same.
2179 (call_value_indirect_nonlocal_darwin64): Same.
2180 (call_value_nonlocal_darwin64): Same.
2181 (sibcall_nonlocal_darwin64): Same.
2182 (sibcall_value_nonlocal_darwin64): Same.
2183 (sibcall_symbolic_64): Same.
2184 (sibcall_value_symbolic_64): Same.
2185 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
2186 LR pseudo.
2187 (rs6000_emit_load_toc_table): Same.
2188 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
2189 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
2190 (mull_call): Same.
2191 (divss_call): Same.
2192 (divus_call): Same.
2193 (quoss_call): Same.
2194 (quous_call): Same.
2195 (load_toc_v4_pic_si): Same
2196 (load_toc_v4_PIC_1): Same.
2197 (load_toc_v4_PIC_1b): Same.
2198 (call_indirect_aix{32,64}): Same.
2199 (call_value_indirect_aix{32,64}): Same.
2200 (call): Same.
2201 (call_value): Same.
2202 (call_local{32,64}): Same.
2203 (call_value_local{32,64}): Same.
2204 (call_indirect_nonlocal_aix{32,64}): Same.
2205 (call_nonlocal_aix{32,64}): Same.
2206 (call_value_indirect_nonlocal_aix{32,64}): Same.
2207 (call_value_nonlocal_aix{32,64}): Same.
2208 (call_indirect_nonlocal_sysv<mode>): Same.
2209 (call_nonlocal_sysv<mode>): Same.
2210 (call_value_indirect_nonlocal_sysv<mode>): Same.
2211 (call_value_nonlocal_sysv<mode>): Same.
2212 (sibcall): Same.
2213 (sibcall_local{32,64}): Same.
2214 (sibcall_value_local{32,64}): Same.
2215 (sibcall_nonlocal_aix{32,64}): Same.
2216 (sibcall_value_nonlocal_aix{32,64}): Same.
2217 (sibcall_nonlocal_sysv<mode>): Same.
2218 (sibcall_value): Same.
2219 (sibcall_value_nonlocal_sysv<mode>): Same.
2220
8eba3d10 22212007-03-24 Paul Brook <paul@codesourcery.com>
2222
2223 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
2224 * config/arm/linux-eabi.h: Remove legacy syscall hack.
2225
269f7060 22262007-03-24 Richard Henderson <rth@redhat.com>
2227
2228 * config/ia64/constraints.md: New file.
2229 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
2230 satisfies_constraint_?.
2231 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
2232 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
2233 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
2234 ia64_output_mi_thunk): Likewise.
2235 (ia64_const_ok_for_letter_p): Remove.
2236 (ia64_const_double_ok_for_letter_p): Remove.
2237 (ia64_extra_constraint): Remove.
2238 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
2239 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
2240 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
2241 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
2242 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
2243 EXTRA_MEMORY_CONSTRAINT): Remove.
2244 * config/ia64/ia64.md: Include constriants.md. Replace
2245 CONST_OK_FOR_? with satisfies_constraint_?.
2246
10de71e1 22472007-03-23 Michael Meissner <michael.meissner@amd.com>
2248 H.J. Lu <hongjiu.lu@intel.com>
2249
2250 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
2251 DPD or BID name.
2252 (name macros): Use DPD_BID_NAME to convert names properly.
2253
2254 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
2255 decimal floating point format.
2256 (init_floating_libfuncs): Change decimal functions so that they
2257 have a "bid_" prefix if the decimal system uses the BID format,
2258 and "dpd_" prefix if the decimal system uses the DPD format.
2259 (init_interclass_conv_libfuncs): Ditto.
2260 (init_intraclass_conv_libfuncs): Ditto.
2261
2262 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2263 using the BID format.
2264
2265 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2266 whether we are using the BID decimal format.
2267 * configure: Regenerate.
2268
2269 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2270 the compiler has decimal floating point enabled. Define
2271 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2272 instead of DPD.
2273
2274 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2275 using the BID format.
2276
2277 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2278 whether we are using the BID decimal format.
2279 * configure: Regenerate.
2280
2281 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2282 the compiler has decimal floating point enabled. Define
2283 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2284 instead of DPD.
2285
2286 * doc/install.texi (--enable-decimal-float): Document BID and DPD
2287 options, and that it is enabled for i386/x86_64 systems.
2288
2289 * Makefile.in (enable_decimal_float): New.
2290 (DECNUMFMT): New.
2291 (DECNUMINC): Add -I$(DECNUMFMT).
2292 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
2293 to $(DECNUMFMT) from $(DECNUM).
2294
2295 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
2296 Substitute enable_decimal_float.
2297 * configure: Regenerated.
2298
2299 PR other/30529
2300 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
2301 unsigned long.
2302
2303 * configure.ac: Enable decimal float for x86_64-*-linux*.
2304 * configure: Regenerated.
2305
2306 PR other/30530
2307 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
2308 decimal128ClearSign to flip and clear the sign bit in decimal128.
2309 (decimal_real_maxval): Set decimal128SetSign to set the sign
2310 bit in decimal128.
2311
558517fd 23122007-03-23 Ian Lance Taylor <iant@google.com>
2313
2314 * fold-const.c (fold_binary): Correct warning for X - c >= X.
2315
fb5b6d1b 23162007-03-23 Ian Lance Taylor <iant@google.com>
2317
2318 * tree-dump.c (dump_files): Correct comment.
2319
f82ccac1 23202007-03-23 Ian Lance Taylor <iant@google.com>
2321
2322 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
2323
207c7ab2 23242007-03-23 Steven Bosscher <steven@gcc.gnu.org>
2325
2326 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
2327 in cfglayout mode. Don't go into and out of cfglayout mode.
2328 Link the blocks in the order of the constructed traces.
2329 (rest_of_handle_tracer): Adjust call to tracer.
2330 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
2331 Don't go into cfglayout mode.
2332 (rtl_loop_done): Don't go out of cfglayout mode.
2333 * cfglayout.c (relink_block_chain): New function, split out from...
2334 (fixup_reorder_chain): ...here. Remove redundant checking.
2335 (cfg_layout_finalize): Don't clear the header, footer, and aux
2336 fields here, move the code to do so to relink_block_chain. Likewise
2337 for free_original_copy_tables.
2338 * rtl.h (tracer): Update prototype.
2339 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
2340 Assert we are in cfglayout mode. Don't go into and out of cfglayout
2341 mode. Use relink_block_chain to serialize the CFG according to the
2342 new basic block order. Move targetm.cannot_modify_jumps_p check from
2343 here...
2344 (gate_handle_reorder_blocks): ...to here.
2345 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
2346 from here...
2347 (gate_duplicate_computed_gotos): ...to here.
2348 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
2349 something always changes when going into and out of cfglayout mode.
2350 Perform an expensive cfg cleanup while going into cfglayout mode.
2351 Always update liveness information on HAVE_conditional_execution
2352 targets. Reserialize the basic blocks and go out of cfglayout mode.
2353 * reg-stack.c: Include cfglayout.h.
2354 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
2355 the call to reorder_basic_blocks.
2356 * basic-block.h (reorder_basic_blocks): Update prototype.
2357 (relink_block_chain): New prototype.
2358 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
2359
f01296c3 23602007-03-23 Joseph Myers <joseph@codesourcery.com>
2361
2362 * config/mips/mips.md (type, hazard, *movdi_32bit,
2363 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
2364 *movhi_internal, *movqi_internal, *movsf_hardfloat,
2365 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
2366 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
2367 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
2368 applicable.
2369 (movcc): Change first xfer to multi.
2370 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
2371 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
2372 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
2373 config/mips/generic.md: Change reservations using "xfer" to use
2374 "mfc,mtc".
2375 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
2376 using match_operand.
2377 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
2378 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
2379 examining mode.
2380 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
2381
788002f3 23822007-03-22 Richard Henderson <rth@redhat.com>
2383
2384 * config/i386/i386.c: Remove unnecessary function declarations.
2385 Move targetm definition, and all related macros, to the end of
2386 the file. Resort some functions to put definitions before uses.
2387 (ix86_attribute_table): Make static. Move to end of file.
2388 (ix86_gimplify_va_arg): Make static.
2389
9c587e53 23902007-03-22 Richard Henderson <rth@redhat.com>
2391
2392 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
2393 don't increase local_regparm with force_align_arg_pointer check.
2394 (ix86_function_sseregparm): Assert 32-bit.
2395 (type_has_variadic_args_p): New.
2396 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
2397 type_has_variadic_args_p.
2398 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
2399 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
2400 use memset instead. Do maybe_vaarg check first; skip attribute
2401 tests if true; skip attribute tests for 64-bit.
2402 (construct_container): Remove TARGET_DEBUG_ARG.
2403 (function_arg_advance_32, function_arg_advance_64): Split out ...
2404 (function_arg_advance): ... from here.
2405 (function_arg_32, function_arg_64): Split out ...
2406 (function_arg): ... from here.
2407 (ix86_pass_by_reference): Tidy.
2408 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
2409 (function_value_32): New, from parts of ix86_function_value
2410 and ix86_value_regno.
2411 (function_value_64): New, from parts of ix86_function_value
2412 and ix86_libcall_value.
2413 (ix86_function_value_1): New.
2414 (ix86_function_value, ix86_libcall_value): Use it.
2415 (return_in_memory_32, return_in_memory_64): Split out ...
2416 (ix86_return_in_memory): ... from here.
2417 (ix86_struct_value_rtx): Skip for 64-bit.
2418 (ix86_libcall_value, ix86_value_regno): Remove.
2419 (setup_incoming_varargs_64): Split out ...
2420 (ix86_setup_incoming_varargs): ... from here.
2421 (ix86_va_start): Remove TARGET_DEBUG_ARG.
2422 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
2423 * config/i386/i386-protos.h (ix86_function_value): Remove.
2424 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
2425
64214dab 24262007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2427
2428 PR other/23572
2429 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
2430 infinities not supported, otherwise emit warning if -Woverflow. On
2431 underflow, emit warning if -Woverflow.
2432 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
2433 and 0 otherwise.
2434 * real.h (real_from_string): Update declaration
f8be92ce 2435
63c68695 24362007-03-22 Kai Tietz <kai.tietz@onevision.com>
2437 Richard Henderson <rth@redhat.com>
2438
2439 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
2440 * calls.c (compute_argument_block_size, expand_call,
2441 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
2442 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2443 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
2444 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
2445 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
2446 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
2447 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
2448 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
2449 Set to 1.
2450
016bf95b 24512007-03-22 Joseph Myers <joseph@codesourcery.com>
2452
2453 * c-incpath.c (add_sysroot_to_chain): New.
2454 (merge_include_chains): Add sysroot argument. Call
2455 add_sysroot_to_chain if sysrooted.
2456 (register_include_chains): Update call to merge_include_chains.
2457 * doc/cppopts.texi: Document use of '=' in include directory
2458 arguments.
2459
a745c94e 24602007-03-22 Uros Bizjak <ubizjak@gmail.com>
2461
2462 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
2463 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
2464 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
2465 insn pattern using X87MODEF12 mode macro.
f8be92ce 2466
02f07e87 24672007-03-21 Seongbae Park <seongbae.park@gmail.com>
2468
2469 * regmove.c (regmove_optimize): Use reg_mentioned_p
2470 instead of reg_overlap_mentioned_p for DST.
2471
dad26ad9 24722007-03-21 Mike Stump <mrs@apple.com>
2473
2474 * c.opt: Fixup for Objective-C/C++.
2475
a745c94e 24762007-03-21 Steve Ellcey <sje@cup.hp.com>
2800ac1a 2477
2478 * explow.c (convert_memory_address): Fold memory reference when
2479 POINTERS_EXTEND_UNSIGNED < 0
2480
0e960ba8 24812007-03-21 Richard Henderson <rth@redhat.com>
2482
2483 PR target/31245
2484 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
2485 * config/i386/mmintrin.h (__m64): Likewise.
2486 * config/i386/xmmintrin.h (__m128): Likewise.
2487
f868f9f1 24882007-03-21 Richard Sandiford <richard@codesourcery.com>
2489
2490 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
2491 (VXWORKS_OS_CPP_BUILTINS): Define.
2492 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
2493 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
2494
3aba99c8 24952007-03-21 Richard Sandiford <richard@codesourcery.com>
2496
2497 * rtl.h (constant_pool_reference_p): Delete.
2498 (find_constant_src): Declare.
2499 * rtlanal.c (find_constant_src): New function.
2500 * simplify-rtx.c (constant_pool_reference_p): Delete.
2501 * config/i386/i386.md: Use find_constant_src instead of
2502 constant_pool_reference_p/avoid_constant_pool_reference pairs.
2503
7a0eea86 25042007-03-21 Richard Sandiford <richard@codesourcery.com>
2505
2506 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
2507 * c-cppbuiltin.c (c_cpp_builtins): Define them.
2508
a457f9f8 25092007-03-20 Mark Mitchell <mark@codesourcery.com>
2510
2511 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
2512 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
2513 (arm_elf_asm_constructor): Use it.
2514 (arm_elf_asm_destructor): New function.
2515
76021441 25162007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
2517
2518 * jump.c (mark_jump_label): Treat SEQUENCE specially.
2519
08b2466e 25202007-03-20 Nathan Sidwell <nathan@codesourcery.com>
2521
2522 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
2523
2b9f2e46 25242007-03-19 Andrew Haley <aph@redhat.com>
2525
2526 PR tree-optimization/31264
2527 * tree-vrp.c (register_edge_assert_for_1): Don't look though
2528 VIEW_CONVERT_EXPRs.
2529
243f24c5 25302007-03-19 Paolo Bonzini <bonzini@gnu.org>
2531
2532 PR rtl-optimization/30907
2533 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
2534 (fwprop_init): Always call loop_optimizer_initialize.
2535 (fwprop_done): Always call loop_optimizer_finalize.
2536 (fwprop): We always have loop info now.
2537 (gate_fwprop_addr): Remove.
2538 (pass_fwprop_addr): Use gate_fwprop as gate.
2539
2540 PR rtl-optimization/30841
2541 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
2542 df_chain_alloc): Call df_reorganize_refs unconditionally.
2543 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
2544 refs_organized to refs_organized_size.
2545 (df_ref_create_structure): Use refs_organized_size instead of
2546 bitmap_size if refs had been organized, and keep refs_organized_size
2547 up-to-date.
2548 * df.h (struct df_ref_info): Change refs_organized to
2549 refs_organized_size.
2550 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
2551 bitmap_size.
2552
9519f67b 25532007-03-19 Mark Mitchell <mark@codesourcery.com>
2554
2555 * except.c (output_function_exception_table): Do not reference the
2556 EH personality routine for functions that do not require an
2557 exception table.
2558
3d8785bc 25592007-03-20 Jakub Jelinek <jakub@redhat.com>
2560
aedd6e32 2561 PR c/30762
2562 * c-typeck.c (convert_for_assignment): Call comptypes for
2563 RECORD_TYPE or UNION_TYPE.
2564
3d8785bc 2565 PR inline-asm/30505
2566 * reload1.c (reload): Do invalid ASM checking after
2567 cleanup_subreg_operands.
2568
94ca4916 25692007-03-19 Jeff Law <law@redhat.com>
2570
2571 * tree-cfg.c (find_taken_edge): Tighten conditions for
2572 optimizing computed gotos.
2573
a8bb7059 25742007-03-19 Michael Matz <matz@suse.de>
2575
2576 * builtins.c (expand_builtin_sync_operation,
2577 expand_builtin_compare_and_swap,
2578 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
2579 correctly.
2580
2581 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
2582 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
2583 for operand 3.
2584
021a18ba 25852007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2586
2587 * doc/tm.texi: Add brackets around the return type of
2588 TARGET_SECONDARY_RELOAD.
2589
d42c14ae 25902007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2591 Richard Guenther <rguenther@suse.de>
2592
2593 PR tree-optimization/31254
2594 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
2595 Use handled_component_p () where appropriate. Continue
2596 propagating into the rhs if we propagated into an INDIRECT_REF
2597 on the lhs.
2598
1f8e70bc 25992007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2600
2601 * config/s390/s390.md (op_type attribute): RRR instruction type added.
2602 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
2603 (xde, xdee): Mode attributes adjusted to support DFP modes.
2604 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
2605 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
f8be92ce 2606 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1f8e70bc 2607 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
2608 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
2609 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
f8be92ce 2610 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1f8e70bc 2611 numbers.
2612 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
2613 "movsf"): Insn definitions removed.
2614 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
2615 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
2616 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
2617 definitions added.
2618 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
2619 "reload_in<mode>", "reload_out<mode>"): Expander added.
2620 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
2621 Expander removed.
2622
708607d5 26232007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2624
2625 * config/s390/s390.md: Only non-functional changes. Renamed
2626 FPR mode macro to BFP all over the file.
2627
0c2edaa7 26282007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2629
2630 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
2631 (op_type attribute): RRF instruction type added.
2632 (fT0): New mode attribute.
2633 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2634 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
2635 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
2636 no secondary memory is needed when moving DFmode values between GPRs
2637 and FPRs.
2638
7818a08e 26392007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2640
2641 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
2642 inverted and documentation adjusted.
2643 ("mhard-dfp", "msoft-dfp"): New options.
2644 * config/s390/s390.c (s390_handle_arch_option): New architecture
2645 switch: z9-ec.
2646 (override_options): Sanity checks for the new options added.
2647 * config.gcc: New architecture switch: z9-ec.
2648 * config/s390/s390.h (processor_flags): PF_DFP added.
2649 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
2650 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
2651 when the bit is NOT set so remove it from the defaults.
2652
3b55c036 26532007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
2654
2655 * genemit.c (main): Print include statement for dfp.h.
2656 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
2657 is not available.
2658
55d19f36 26592007-03-19 Hans-Peter Nilsson <hp@axis.com>
2660
2661 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
2662
99971c03 26632007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
2664
2665 PR target/31022
2666 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
2667 instead of PATTERN.
2668
c5559ed4 26692007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2670
2671 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
2672 attr_length_call, output_call, output_indirect_call): Cleanup
2673 formatting of targetm calls.
2674
fed42b71 26752007-03-19 Hans-Peter Nilsson <hp@axis.com>
2676
2677 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2678
7d9f62cc 26792007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2680
2681 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
2682 reservation, bypass and anti-bypass descriptions for these instructions.
2683 Update move patterns.
2684 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
2685 TYPE_FPSTORE.
f8be92ce 2686
e817bf15 26872007-03-18 Dorit Nuzman <dorit@il.ibm.com>
2688
2689 * tree-vect-transform.c (get_initial_def_for_induction): Replace
2690 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
2691 (get_initial_def_for_reduction): Likewise.
2692
c1d4daae 26932007-03-16 Daniel Berlin <dberlin@dberlin.org>
2694
2695 Fix PR tree-optimization/29922
2696 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
2697 (get_representative): Removed.
2698 (value_dies_in_block_x): Update for rvuse removal.
2699 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
2700 (compute_antic_aux): Handle when PHI nodes appear in
f8be92ce 2701 non-single-successors.
c1d4daae 2702 (dump_bitmap_of_names): Removed.
2703 (compute_antic_safe): Renamed and removed rvuse calculation.
2704 Calculate only antic safe.
2705 (insert_into_preds_of_block): Remove assert.
2706 (execute_pre): Update for renamed functions.
2707 (defer_or_phi_translate_block): New function.
f8be92ce 2708
f6a0d06f 27092007-03-17 Kazu Hirata <kazu@codesourcery.com>
2710
2711 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
2712 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
2713 typos.
2714 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
2715 Follow spelling conventions.
2716
10f4b721 2717 * tree-data-ref.h: Remove the prototype for analyze_array.
2718
8d072f6d 27192007-03-17 Dorit Nuzman <dorit@il.ibm.com>
2720
2721 PR tree-optimization/31041
2722 * tree-vect-transform.c (get_initial_def_for_induction): Call
2723 force_gimple_operand.
f8be92ce 2724
51e779f4 27252007-03-17 Olga Golovanevsky <olga@il.ibm.com>
f8be92ce 2726
51e779f4 2727 * ipa-type-escape.c (look_for_casts) : Revert code to use
2728 handled_component_p due to ada test a-numaux.adb.
2729
f8df4da2 27302007-03-17 Kazu Hirata <kazu@codesourcery.com>
2731
2732 * final.c (final_scan_insn): Alter the condition of a
2733 conditional trap if we have nonstandard CC.
2734
95cd4953 27352007-03-16 Alexandre Oliva <aoliva@redhat.com>
2736
2737 * configure.ac: Remove excess quoting from asm line 0 test.
2738 * configure: Rebuilt.
2739
59dd8856 27402007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2741
2742 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
2743 * c-common.c (convert_and_check): Move warning logic to...
2744 (warnings_for_convert_and_check): ...here. Define.
2745 * c-common.h (warnings_for_convert_and_check): Declare.
f8be92ce 2746
ec94117d 27472007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2748
2749 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
2750 (output_call): Likewise.
2751
ac03c1db 27522007-03-16 Richard Sandiford <richard@codesourcery.com>
2753
2754 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
2755
e9204790 27562007-03-16 Richard Sandiford <richard@codesourcery.com>
2757
2758 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
2759
d53e2283 27602007-03-16 Uros Bizjak <ubizjak@gmail.com>
2761
2762 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
2763 opteron, athlon-64 and athlon-fx processor_alias_table entries.
2764
a75122be 27652007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
2766
2767 PR tree-optimization/31183
f8be92ce 2768 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
a75122be 2769 Use double_int instead of unsigned int for representing access_strides.
2770 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
2771
15ec875c 27722007-03-16 Richard Guenther <rguenther@suse.de>
2773
2774 PR tree-optimization/31146
2775 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
2776 to allow recursion of forward_propagate_addr_expr.
2777 (forward_propagate_addr_into_variable_array_index): Likewise.
2778 (forward_propagate_addr_expr): Likewise.
2779 (tree_ssa_forward_propagate_single_use_vars): Likewise.
2780 (forward_propagate_addr_expr_1): Recurse on simple copies
2781 instead of propagating into them. Do so for useless conversions
2782 as well.
2783 (forward_propagate_addr_expr): Clean up unused statements after
2784 recursion.
2785
3737e769 27862007-03-16 Richard Guenther <rguenther@suse.de>
2787
2788 * builtins.c (expand_builtin_cexpi): Use the right argument
2789 for the expansion via cexp.
2790
5c17a266 27912007-03-16 Alexandre Oliva <aoliva@redhat.com>
2792
2793 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
2794 * configure: Rebuilt.
2795
a357c7c2 27962007-03-16 Alexandre Oliva <aoliva@redhat.com>
2797
2798 PR debug/29906
2799 * dwarf2out.c (force_type_die): Adjust comment.
2800 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
2801
89c31ddb 28022007-03-15 DJ Delorie <dj@redhat.com>
2803
2804 * config/frv/predicates.md (minmax_operator): Don't check operands
2805 here.
2806
4b4ab846 28072007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2808
2809 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
2810 Update constant estimates of number of iterations.
2811 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
2812 argument renamed to "realistic".
2813 (compute_estimated_nb_iterations): Removed.
2814 (record_niter_bound): New function.
2815 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
2816 call record_nonwrapping_iv with upper = false.
2817 (infer_loop_bounds_from_signedness): Pass upper argument to
2818 record_nonwrapping_iv.
2819 (estimate_numbers_of_iterations_loop): Do not call
2820 compute_estimated_nb_iterations. Record estimate based on profile
2821 information. Initialize the constant estimates of number of
2822 iterations.
2823 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
2824 estimates.
2825 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
2826 number of iterations is too small.
2827 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
2828 (EST_NOT_AVAILABLE): Removed.
2829 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
2830 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
2831 fields.
2832
8cd53b4f 28332007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2834
2835 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
2836 Handle NE_EXPR guards.
2837
aa509316 28382007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2839
2840 PR c++/24924
2841 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
2842 Set also -pedantic-errors by default for the preprocessor unless
2843 -fpermissive is given.
f8be92ce 2844
fc0dfa6e 28452007-03-15 Richard Guenther <rguenther@suse.de>
2846
2847 PR middle-end/29719
2848 PR middle-end/31161
2849 * builtins.c (expand_builtin_cexpi): As a fallback if we
2850 don't have builtins for sincos or cexp create a function
2851 declaration for cexp and expand to a call to that.
2852 (expand_builtin_int_roundingfn): Always fall
2853 back to floor/ceil and its variants even if they may be
2854 not available.
2855
4aaec180 28562007-03-15 Steven Bosscher <steven@gcc.gnu.org>
2857
2858 PR middle-end/31159
2859 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
2860 jump tables, move the call to delete_dead_jumptables from here...
2861 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
2862 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
2863 don't allow merging of blocks that try_redirect_by_replacing_jump
2864 also does not handle when not optimizing.
2865
a1758a13 28662007-03-15 Uros Bizjak <ubizjak@gmail.com>
2867 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2868
2869 * config/i386/i386.md (x86_sahf_1): Correctly handle
2870 HAVE_AS_IX86_SAHF.
2871
ed2235c8 28722007-03-15 Uros Bizjak <ubizjak@gmail.com>
2873
2874 PR target/31167
2875 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
2876 x86_64_general_operand as operand[2] predicate. Remove "iF"
2877 from operand constraints and use "e" constraint instead.
2878 (*subti3_1, *subti3_1 splitter): Ditto.
2879 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
2880 operand[1] predicate.
2881
28d4f5a1 28822007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
2883
2884 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
2885 arrays, multiply the access strides by the size of the sub-array.
2886 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
2887
735630ef 28882007-03-14 Uros Bizjak <ubizjak@gmail.com>
2889
2890 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
2891 the configured assembler supports the sahf mnemonic.
2892 * configure: Regenerate.
2893 * config.in: Regenerate.
2894
2895 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
2896 emit "sahf" or ".byte\t0x9e" as asm template.
2897
2b28c681 28982007-03-14 Michael Meissner <michael.meissner@amd.com>
2899
2900 PR 31018
2901 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
2902 option to replace hard coded TARGET_xxx in md file.
2903 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
2904 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2905 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
2906 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
2907 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
2908 (X86_TUNE_NOT_VECTORMODE): Ditto.
2909 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
2910 (TUNE_AVOID_VECTOR_DECODE): Ditto.
2911 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2912 (TUNE_SLOW_IMUL_IMM8): Ditto.
2913 (TUNE_MOVE_M1_VIA_OR): Ditto.
2914 (TUNE_NOT_UNPAIRABLE): Ditto.
2915 (TUNE_NOT_VECTORMODE): Ditto.
f8be92ce 2916
2b28c681 2917 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
2918 options.
2919
2920 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
2921 tuning options instead of hard coded TARGET_xxx.
2922 (fix ssemode peephole2's): Ditto.
2923 (imul peephole2's): Ditto.
2924 (movsi_or): Ditto.
2925 (movdi_or_rex64): Ditto.
2926 (move peephole2): Ditto.
2927 (not peephole2's): Ditto.
2928
ffe8fd56 29292007-03-14 Dirk Mueller <dmueller@suse.de>
2930
2931 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
2932 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
2933 * c-parser.c (c_parser_if_body): Always add an empty statement in case
2934 of empty body.
2935 * c-parser.c (c_parser_do_statement): Warn about empty body in
2936 do/while statement.
2937 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
2938 * doc/invoke.texi (-Wempty-body): Update documentation.
2939
f092582b 29402007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2941
2942 PR c/21438
2943 * c-common.h (warn_for_div_by_zero): Declare.
2944 * c-common.c (warn_for_div_by_zero): Define.
2945 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
2946 warning.
2947
72d997cb 29482007-03-14 Richard Sandiford <richard@codesourcery.com>
2949
2950 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
2951 to PREFIX and STANDARD_PREFIX.
2952
efe5559c 29532007-03-14 Richard Sandiford <richard@codesourcery.com>
2954 Phil Edwards <phil@codesourcery.com>
2955
2956 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
2957 (__gthread_once_t): Remove busy field for RTPs.
2958 (__GTHREAD_ONCE_INIT): Update accordingly.
2959
809bb1c7 29602007-03-14 Richard Sandiford <richard@codesourcery.com>
2961
2962 * doc/invoke.texi: Document VxWorks options.
2963
e85fd4fb 29642007-03-14 Uros Bizjak <ubizjak@gmail.com>
2965
2966 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
2967
fdf6266d 29682007-03-13 Seongbae Park <seongbae.park@gmail.com>
2969
2970 PR tree-optimization/30590
2971 * tree-nrv.c (tree_nrv): Check for the partial update of the
2972 return value.
2973
b6c1bd72 29742007-03-13 Alexandre Oliva <aoliva@redhat.com>
2975
2976 * flags.h (flag_random_seed): Remove declaration, in favor of...
2977 * toplev.h (get_random_seed, set_random_seed): ... these.
2978 * tree.c (get_file_function_name): Use the former.
2979 * opts.c (common_handle_option): Use the latter.
2980 * toplev.c
2981
3752d411 29822007-03-13 Steven Bosscher <steven@gcc.gnu.org>
2983
2984 PR middle-end/31127
2985 * cse.c (cse_find_path): Do not bail out if a basic block that
2986 we already visited now becomes part of a path that starts at a
2987 different basic block. Just disallow this, to make sure we
2988 visit each basic block at most once.
2989
24bc216e 29902007-03-13 Jan Hubicka <jh@suse.cz>
2991
2992 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
2993 when profile esitmate is present, calls with very low frequency are
2994 cold.
2995
a463eaea 29962007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2997
2998 PR tree-optimization/30730
2999 PR tree-optimization/26900
3000 * tree-ssa-loop-niter.c: Include gmp.h.
3001 (bounds): New type.
3002 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
3003 split_to_var_and_offset, determine_value_range,
3004 bound_difference_of_offsetted_base, refine_bounds_using_guard,
3005 bound_difference, bounds_add, bounds_negate,
3006 number_of_iterations_ne_max, dump_affine_iv): New functions.
3007 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
3008 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
3009 difference of initial and final value of control iv to validate
3010 results.
3011 (number_of_iterations_cond): Add loop parameter. Determine bounds
3012 on the difference of the extremes of the control iv. Add dumps.
3013 (expand_simple_operations): Handle phi nodes.
3014 (simplify_using_initial_conditions): Do not record used conditions.
3015 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
3016 Do not set additional_info.
3017 (implies_nonnegative_p, implies_ge_p): Removed.
3018 (derive_constant_upper_bound): Do not use parameter `additional'.
3019 (record_estimate): Parameter `additional' removed. Parameter
3020 `i_bound' added. Do not call derive_constant_upper_bound.
3021 (record_nonwrapping_iv): Use derive_constant_upper_bound to
3022 bound the number of iterations estimate.
3023 (estimate_numbers_of_iterations_loop): Pass the estimate from
3024 the number of iterations analysis to record_estimate.
3025 * tree.h (multiple_of_p): Declare.
3026 * tree-scalar-evolution.c (expression_expensive_p): Removed.
3027 (scev_const_prop): Do not check expression_expensive_p.
3028 * fold-const.c (multiple_of_p): Exported.
3029 * double-int.c (double_int_mask): Exported.
3030 * double-int.h (double_int_mask): Declare.
3031 * tree-flow.h (struct tree_niter_desc): Removed additional_info
3032 field. Added max field.
3033
e238d235 30342007-03-13 David Taylor <taylor@candd.org>
3035
3036 PR driver/12448:
3037 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
3038 default -MQ.
3039
a0ece9f6 30402007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3041
73fc3472 3042 PR target/31123
a0ece9f6 3043 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
3044 two unamed patterns.
f8be92ce 3045
92a5086b 30462007-03-13 Uros Bizjak <ubizjak@gmail.com>
3047
3048 * config/i386/i386.opt (mcx16, msahf): New options.
3049 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
3050 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
3051
3052 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
3053 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
3054 Output -mcx16 and -msahf options when corresponding bit is set.
3055
3056 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
3057 and -msahf options.
3058
a8971681 30592007-03-13 Alexandre Oliva <aoliva@redhat.com>
3060
3061 * configure.ac: Test for assembler tolerance to # 0 "".
3062 * configure, config.in: Rebuilt.
3063 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
3064
c99afad8 30652007-03-13 Geoffrey Keating <geoffk@apple.com>
3066
3067 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
47adc701 3068
3069 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
3070 (handle_syscall): Handle direct system calls.
3071 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
3072
6713f0a0 30732007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
3074
3075 * doc/invoke.texi: Fix cpp.info cross-reference.
3076 * doc/passes.texi: Fix gcc.info cross-reference.
3077
f8494ea3 30782007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
3079
3080 PR tree-optimization/30835
3081 * lambda-code.c (can_convert_to_perfect_nest): Check whether
3082 bb_for_stmt is not NULL before accessing it.
3083
021d874e 30842007-03-12 Joseph Myers <joseph@codesourcery.com>
3085
3086 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
3087 some multilibs.
3088
16e1a7da 30892007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
3090
3091 PR 30635
3092 * doc/install.texi: Document --enable-stage1-languages
3093
154480b1 30942007-03-12 Steven Bosscher <steven@gcc.gnu.org>
3095
3096 * tree-pass.h (pass_into_cfg_layout_mode,
3097 pass_outof_cfg_layout_mode): Declare.
3098 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
3099 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
3100 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
3101 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
3102
aaafd660 31032007-03-12 Seongbae Park <seongbae.park@gmail.com>
3104
3105 * c-decl.c (warn_variable_length_array): New function.
3106 Refactored from grokdeclarator to handle warn_vla
3107 and handle unnamed array case.
3108 (grokdeclarator): Refactored VLA warning case.
3109 * c.opt (Wvla): New flag.
974bc84e 3110 * doc/invoke.texi (Wvla): New warning.
aaafd660 3111
cc2af183 31122007-03-12 Richard Henderson <rth@redhat.com>
3113
3114 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
3115 (TARGET_SECTION_TYPE_FLAGS): New.
3116
0b769e4a 31172007-03-12 Richard Henderson <rth@redhat.com>
3118
f8494ea3 3119 * config/darwin.c (machopic_reloc_rw_mask): New.
3120 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
3121 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
0b769e4a 3122
a8bb4f69 31232007-03-12 Mark Mitchell <mark@codesourcery.com>
3124
3125 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
3126 * cppdefault.h (cpp_PREFIX): Document.
3127 (cpp_PREFIX_len): Likewise.
3128 (cpp_EXEC_PREFIX): New variable.
3129 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
3130 * c-incpath.c (add_standard_paths): Correct logic for relocating
3131 paths within prefix.
3132
d3fcb417 31332007-03-12 Uros Bizjak <ubizjak@gmail.com>
3134
3135 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
3136 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
3137 mode macro.
3138 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
3139 fix_truncdfdi_sse using SSEMODEF mode macro.
3140 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
3141 fix_truncdfsi_sse using SSEMODEF mode macro.
3142 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
3143 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
3144
ac2799d5 31452007-03-12 Richard Sandiford <richard@codesourcery.com>
3146
3147 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
3148 elfos.h to tm_file.
3149
96b038b0 31502007-03-12 Olga Golovanevsky <olga@il.ibm.com>
f8be92ce 3151
96b038b0 3152 * tree.h : Add multiple_of_p declaration.
f8be92ce 3153 * fold-const.c (multiple_of_p): Make multiple_of_p public.
96b038b0 3154 * ipa-type-escape.c (results_of_malloc): Redundant.
3155 (visited_stmts): New. Visited stmt for walk_use_def_chains.
3156 (cast_type): Extended with new members.
3157 (check_cast): Returns cast_type.
3158 (cast): New structure for data of walk_use_def_chains.
3159 (is_malloc_result, is_cast_from_non_pointer_1,
f8be92ce 3160 is_cast_from_non_pointer,
96b038b0 3161 is_array_access_through_pointer_and_index): New functions.
3162 (look_for_casts): Returns cast types.
3163 (check_call): Returns void.
3164 (okay_pointer_operation): Use support of pointer plus index,
3165 pointer plus constant and allow all multiplications.
f8be92ce 3166
62065c0b 31672007-03-11 Richard Guenther <rguenther@suse.de>
3168
3169 PR tree-optimization/31115
3170 * tree-vrp.c (extract_range_from_binary_expr): Make sure
3171 the shift count is positive and non-anti-range for RSHIFT_EXPR.
3172 A shift count of zero is not special as with *_DIV_EXPR.
3173 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
3174 direction.
3175
659753d3 31762007-03-11 Ian Lance Taylor <iant@google.com>
3177
3178 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
3179 the *_DIV_EXPR codes correctly with overflow infinities.
3180
72443169 31812007-03-11 Ira Rosen <irar@il.ibm.com>
3182
f8be92ce 3183 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
72443169 3184 indicate success/failure of the analysis. Add negation to subtrahend
3185 in case of subtraction. Fail if both operands contain constants.
3186 (create_data_ref): Fail if analyze_offset fails.
3187
4209e9f9 31882007-03-11 Uros Bizjak <ubizjak@gmail.com>
3189
3190 * config/i386/i386.md (frndintxf2): Rename to ...
3191 (rintxf2): ... this. Remove expander having same name.
3192 (rintsf2, rintdf2): Implement using SSEMODEF macro.
3193 (roundsf2, rounddf2): Ditto.
3194 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
3195 (lround<mode>di2, lround<mode>si2): Ditto.
3196
db1c50be 31972007-03-11 Steven Bosscher <steven@gcc.gnu.org>
3198
3199 * lower-subreg.c: Include except.h.
3200 (decompose_multiword_subregs): Verify that the only control flow
3201 insns we can split are loads to multi-words pseudos.
3202 Handle breaking such blocks after splitting, instead of calling
3203 find_many_sub_basic_blocks.
3204
3205 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
3206 on the new basic block. Add a lengthy comment explaining why we
3207 thought this was necessary.
3208 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
3209
6783c055 32102007-03-10 Mark Mitchell <mark@codesourcery.com>
3211
752d462d 3212 PR c++/30924
6783c055 3213 * tree.c (walk_type_fields): Recurse into the element type of
3214 ARRAY_TYPEs if there is a pointer set.
3215
e6978426 32162007-03-10 Dirk Mueller <dmueller@suse.de>
3217
3218 * c-common.c (warn_logical_operator): Fix condition.
3219
c6134e23 3220