1 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
3 * final.c (call_from_call_insn): New.
4 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
8 * configure.ac: Substitute ADA_CFLAGS.
9 * configure: Regenerate.
10 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
11 * Makefile.in: Remove mention of X_* variables.
12 * config/pa/x-ada-hpux10: Remove.
13 * config/pa/x-ada: Remove.
15 * doc/fragments.texi: Update.
17 2008-07-30 Olivier Hainque <hainque@adacore.com>
19 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
20 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
21 __dso_handle explicitly here.
23 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26 * c-typeck.c (build_binary_op): Encapsulate code into...
27 * c-common.c (shorten_binary_op): ...this new function.
28 (conversion_warning): Use the new function. Handle non-negative
29 constant in bitwise-and.
30 * c-common.h (shorten_binary_op): Declare.
32 2008-07-30 Olivier Hainque <hainque@adacore.com>
34 * scan.c (make_sstring_space): Add explicit conversions of
35 allocator's return value.
36 * fix-header.c (recognized_function): Likewise.
38 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40 * doc/cpp.texi: Update to GFDL 1.2.
41 * doc/gcc.texi: Do not list GPL as Invariant Section.
42 * doc/gccint.texi: Likewise. Update copyright years.
43 * doc/install.texi: Update copyright years.
45 2008-07-30 Alan Modra <amodra@bigpond.net.au>
48 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
49 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
51 2008-07-29 Jan Hubicka <jh@suse.cz>
53 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
54 (grokdeclarator): Likewise.
55 * langhooks.c (lhd_warn_unused_global_decl): Use
56 DECL_DECLARED_INLINE_P.
57 * print-tree.c (print_node): Remove DECL_INLINE check.
59 2008-07-29 Richard Guenther <rguenther@suse.de>
61 PR tree-optimization/36945
62 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
63 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
64 Record invariant addresses un-decomposed.
65 (copy_reference_ops_from_call): Record reference call
66 arguments properly. Simplify.
67 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
68 helper split out from ...
69 (create_component_ref_by_pieces): ... here. Simplify.
70 Prepare for recursive invocation for call arguments.
71 (create_expression_by_pieces): Adjust call to
72 create_component_ref_by_pieces.
73 (compute_avail): Process operand 2 of reference ops.
75 2008-07-29 Richard Guenther <rguenther@suse.de>
77 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
80 2008-07-29 Jakub Jelinek <jakub@redhat.com>
82 * c-format.c (check_format_types): Revert unwanted checkin.
84 2008-07-29 Jan Hubicka <jh@suse.cz>
86 * flags.h (flag_really_no_inline): Remove.
87 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
88 * toplev.c (flag_really_no_inline): Remove.
89 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
90 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
91 (cgraph_decide_inlining_incrementally): Likewise.
92 (compute_inline_parameters): Likewise.
93 * opts.c (decode_options): Simplify.
94 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
95 * common.opt (finline): Initialize to 1.
96 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
98 2008-07-29 Jan Hubicka <jh@suse.cz>
100 * predict.c (always_optimize_for_size_p): New function.
101 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
102 optimize_edge_for_size_p, optimize_edge_for_speed_p,
103 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
105 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
106 * function.c (prepare_function_start): Set default profile.
107 * function.h (rtl_data): Add maybe_hot_insn_p.
108 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
109 (construct_exit_block): Likewise.
110 (tree_expand_cfg): Likewise.
112 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
113 optimize_edge_for_size_p, optimize_edge_for_speed_p,
114 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
115 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
118 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
121 * c-decl.c (merge_decls): Merge USED flags.
123 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
125 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
126 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
127 next_stack, lab_false and lab_over trees.
129 2008-07-28 Richard Guenther <rguenther@suse.de>
131 PR tree-optimization/36957
132 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
133 (useless_type_conversion_p): Remove.
134 (types_compatible_p): Remove.
135 * gimple.h (tree_ssa_useless_type_conversion): Declare.
136 (useless_type_conversion_p): Declare.
137 (types_compatible_p): Declare.
138 (gimple_expr_type): Return the base type only if it is
139 trivially convertible to the subtype.
141 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
143 * configure.ac: Use the m4_do macro to concatenate the warnings into
144 one string in ACX_PROG_CC_WARNING_OPTS,
145 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
146 * configure: Regenerate.
148 2008-07-28 Richard Guenther <rguenther@suse.de>
150 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
151 (insert_fake_stores): Remove.
152 (realify_fake_stores): Likewise.
153 (execute_pre): Remove dead code.
154 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
156 (find_func_aliases): Deal with it here instead.
157 Re-enable gcc_unreachable call.
159 2008-07-28 Richard Guenther <rguenther@suse.de>
161 Merge from gimple-tuples-branch.
163 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
164 * gimple.def: New file.
165 * gsstruct.def: Likewise.
166 * gimple-iterator.c: Likewise.
167 * gimple-pretty-print.c: Likewise.
168 * tree-gimple.c: Removed. Merged into ...
169 * gimple.c: ... here. New file.
170 * tree-gimple.h: Removed. Merged into ...
171 * gimple.h: ... here. New file.
173 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
174 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
175 --enable-checking=gimple flag.
176 * config.in: Likewise.
177 * configure: Regenerated.
179 * tree-ssa-operands.h: Tuplified.
180 * tree-vrp.c: Likewise.
181 * tree-loop-linear.c: Likewise.
182 * tree-into-ssa.c: Likewise.
183 * tree-ssa-loop-im.c: Likewise.
184 * tree-dump.c: Likewise.
185 * tree-complex.c: Likewise.
186 * cgraphbuild.c: Likewise.
187 * tree-ssa-threadupdate.c: Likewise.
188 * tree-ssa-loop-niter.c: Likewise.
189 * tree-pretty-print.c: Likewise.
190 * tracer.c: Likewise.
191 * gengtype.c: Likewise.
192 * tree-loop-distribution.c: Likewise.
193 * tree-ssa-loop-unswitch.c: Likewise.
194 * cgraph.c: Likewise.
195 * cgraph.h: Likewise.
196 * tree-ssa-loop-manip.c: Likewise.
197 * value-prof.c: Likewise.
198 * tree-ssa-loop-ch.c: Likewise.
199 * tree-tailcall.c: Likewise.
200 * value-prof.h: Likewise.
203 * tree-pass.h: Likewise.
204 * ipa-cp.c: Likewise.
205 * tree-scalar-evolution.c: Likewise.
206 * tree-scalar-evolution.h: Likewise.
207 * target.h: Likewise.
208 * lambda-mat.c: Likewise.
209 * tree-phinodes.c: Likewise.
210 * diagnostic.h: Likewise.
211 * builtins.c: Likewise.
212 * tree-ssa-alias-warnings.c: Likewise.
213 * cfghooks.c: Likewise.
214 * fold-const.c: Likewise.
215 * cfghooks.h: Likewise.
216 * omp-low.c: Likewise.
217 * tree-ssa-dse.c: Likewise.
218 * ipa-reference.c: Likewise.
219 * tree-ssa-uncprop.c: Likewise.
220 * toplev.c: Likewise.
221 * tree-gimple.c: Likewise.
222 * tree-gimple.h: Likewise.
223 * tree-chrec.c: Likewise.
224 * tree-chrec.h: Likewise.
225 * tree-ssa-sccvn.c: Likewise.
226 * tree-ssa-sccvn.h: Likewise.
227 * cgraphunit.c: Likewise.
228 * tree-ssa-copyrename.c: Likewise.
229 * tree-ssa-ccp.c: Likewise.
230 * tree-ssa-loop-ivopts.c: Likewise.
231 * tree-nomudflap.c: Likewise.
232 * tree-call-cdce.c: Likewise.
233 * ipa-pure-const.c: Likewise.
234 * c-format.c: Likewise.
235 * tree-stdarg.c: Likewise.
236 * tree-ssa-math-opts.c: Likewise.
237 * tree-ssa-dom.c: Likewise.
238 * tree-nrv.c: Likewise.
239 * tree-ssa-propagate.c: Likewise.
240 * ipa-utils.c: Likewise.
241 * tree-ssa-propagate.h: Likewise.
242 * tree-ssa-alias.c: Likewise.
243 * gimple-low.c: Likewise.
244 * tree-ssa-sink.c: Likewise.
245 * ipa-inline.c: Likewise.
246 * c-semantics.c: Likewise.
247 * dwarf2out.c: Likewise.
249 * tree-ssa-loop-ivcanon.c: Likewise.
250 * predict.c: Likewise.
251 * tree-ssa-loop.c: Likewise.
252 * tree-parloops.c: Likewise.
253 * tree-ssa-address.c: Likewise.
254 * tree-ssa-ifcombine.c: Likewise.
255 * matrix-reorg.c: Likewise.
256 * c-decl.c: Likewise.
257 * tree-eh.c: Likewise.
258 * c-pretty-print.c: Likewise.
259 * lambda-trans.c: Likewise.
260 * function.c: Likewise.
261 * langhooks.c: Likewise.
262 * ebitmap.h: Likewise.
263 * tree-vectorizer.c: Likewise.
264 * function.h: Likewise.
265 * langhooks.h: Likewise.
266 * tree-vectorizer.h: Likewise.
267 * ipa-type-escape.c: Likewise.
268 * ipa-type-escape.h: Likewise.
269 * domwalk.c: Likewise.
270 * tree-if-conv.c: Likewise.
271 * profile.c: Likewise.
272 * domwalk.h: Likewise.
273 * tree-data-ref.c: Likewise.
274 * tree-data-ref.h: Likewise.
275 * tree-flow-inline.h: Likewise.
276 * tree-affine.c: Likewise.
277 * tree-vect-analyze.c: Likewise.
278 * c-typeck.c: Likewise.
279 * gimplify.c: Likewise.
280 * coretypes.h: Likewise.
281 * tree-ssa-phiopt.c: Likewise.
283 * tree-ssa-coalesce.c: Likewise.
284 * tree.def: Likewise.
285 * tree-dfa.c: Likewise.
286 * except.c: Likewise.
287 * except.h: Likewise.
288 * cfgexpand.c: Likewise.
289 * tree-cfgcleanup.c: Likewise.
290 * tree-ssa-pre.c: Likewise.
291 * tree-ssa-live.c: Likewise.
292 * tree-sra.c: Likewise.
293 * tree-ssa-live.h: Likewise.
294 * tree-predcom.c: Likewise.
295 * lambda.h: Likewise.
296 * tree-mudflap.c: Likewise.
297 * ipa-prop.c: Likewise.
298 * print-tree.c: Likewise.
299 * tree-ssa-copy.c: Likewise.
300 * ipa-prop.h: Likewise.
301 * tree-ssa-forwprop.c: Likewise.
302 * ggc-page.c: Likewise.
304 * tree-ssa-dce.c: Likewise.
305 * tree-vect-patterns.c: Likewise.
306 * tree-ssa-ter.c: Likewise.
307 * tree-nested.c: Likewise.
308 * tree-ssa.c: Likewise.
309 * lambda-code.c: Likewise.
310 * tree-ssa-loop-prefetch.c: Likewise.
311 * tree-inline.c: Likewise.
312 * tree-inline.h: Likewise.
313 * tree-iterator.c: Likewise.
314 * tree-optimize.c: Likewise.
315 * tree-ssa-phiprop.c: Likewise.
316 * tree-vect-transform.c: Likewise.
317 * tree-object-size.c: Likewise.
318 * tree-outof-ssa.c: Likewise.
319 * cfgloop.c: Likewise.
320 * system.h: Likewise.
321 * tree-profile.c: Likewise.
322 * cfgloop.h: Likewise.
323 * c-gimplify.c: Likewise.
324 * c-common.c: Likewise.
325 * tree-vect-generic.c: Likewise.
326 * tree-flow.h: Likewise.
327 * c-common.h: Likewise.
328 * basic-block.h: Likewise.
329 * tree-ssa-structalias.c: Likewise.
330 * tree-switch-conversion.c: Likewise.
331 * tree-ssa-structalias.h: Likewise.
332 * tree-cfg.c: Likewise.
333 * passes.c: Likewise.
334 * ipa-struct-reorg.c: Likewise.
335 * ipa-struct-reorg.h: Likewise.
336 * tree-ssa-reassoc.c: Likewise.
337 * cfgrtl.c: Likewise.
338 * varpool.c: Likewise.
340 * tree-ssanames.c: Likewise.
341 * tree-ssa-threadedge.c: Likewise.
342 * langhooks-def.h: Likewise.
343 * tree-ssa-operands.c: Likewise.
344 * config/alpha/alpha.c: Likewise.
345 * config/frv/frv.c: Likewise.
346 * config/s390/s390.c: Likewise.
347 * config/m32c/m32c.c: Likewise.
348 * config/m32c/m32c-protos.h: Likewise.
349 * config/spu/spu.c: Likewise.
350 * config/sparc/sparc.c: Likewise.
351 * config/i386/i386.c: Likewise.
352 * config/sh/sh.c: Likewise.
353 * config/xtensa/xtensa.c: Likewise.
354 * config/stormy16/stormy16.c: Likewise.
355 * config/ia64/ia64.c: Likewise.
356 * config/rs6000/rs6000.c: Likewise.
357 * config/pa/pa.c: Likewise.
358 * config/mips/mips.c: Likewise.
360 2008-07-28 Simon Baldwin <simonb@google.com>
362 * c-pragma.c (handle_pragma_message): New function.
363 (init_pragma): Register handle_pragma_message.
364 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
367 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
369 PR tree-optimization/35252
370 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
371 REALPART_EXPR to be considered as same load operation.
373 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
375 PR tree-optimization/36830
376 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
377 (expressions_equal_p): Return false if only one operand is null.
379 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
381 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
382 version requirements.
384 2008-07-26 Olivier Hainque <hainque@adacore.com>
386 * collect2.c (symkind): New enum. Symbol kinds we care about.
387 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
388 code and head comment accordingly.
389 (scan_prog_file): Use symkind names instead of bare integers.
391 2008-07-25 Jan Hubicka <jh@suse.cz>
393 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
394 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
395 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
396 * dojump.c (clear_pending_stack_adjust): Likewise.
397 * print-tree.c (print_node): Ignore DECL_INLINE.
398 * tree-inline.c (inlinable_function_p): Likewise.
400 2008-07-25 Michael Meissner <gnu@the-meissners.org>
402 * doc/extend.texi (hot attribute): Document that the hot attribute
403 turns on -O3 for some ports.
404 (cold attribute): Document that the cold attribute turns on -Os
407 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
408 reflect function specific option support.
410 * target.h (struct target_option_hooks): Add fields to say whether
411 the cold attribute implies -Os and the hot attribute implies -O3.
413 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
414 By default, do not turn on -Os for cold functions.
415 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
416 not turn on -O3 for hot functions.
418 * c-common.c (handle_hot_attribute): Use target hook to determine
419 if hot functions should enable -O3.
420 (handle_cold_attribute): Use target hook to determine if cold
421 functions should enable -Os.
423 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
424 (override_options): Move disable scheduling to
425 optimization_options.
426 (optimization_options): Disable scheduling here, not
428 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
429 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
431 * config/ia64/ia64.c (ia64_override_options): Move setting
432 scheduling flags to ia64_optimization_options.
433 (ia64_optimization_options): Disable scheduling options here, and
434 not in ia64_override_options.
435 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
436 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
438 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
441 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
443 2008-07-25 Martin Jambor <mjambor@suse.cz>
445 PR tree-optimization/36926
446 * ipa-prop.c (ipa_analyze_call_uses): Call
447 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
449 2008-07-25 Joseph Myers <joseph@codesourcery.com>
451 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
452 movv2si_internal): Add mem = reg alternative.
454 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
457 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
458 DEFAULT_PCC_STRUCT_RETURN to 127.
460 2008-07-24 Jan Hubicka <jh@suse.cz>
462 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
463 (build_cgraph_edges): Likewise.
464 * cgraph.c (cgraph_node): Do not update assembler hash.
465 (cgraph_remove_node): Drop non-unit-at-a-time code.
466 * tree-pass.h (pass_O0_always_inline): Remove.
467 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
468 * toplev.c (process_options): Flag unit-at-a-time does not imply
470 * cgraphunit.c: Update comments.
471 (decide_is_function_needed): Drop non-unit-at-a-time mode.
472 (cgraph_assemble_pending_functions): Remove.
473 (cgraph_reset_node): Drop non-unit-at-a-time code.
474 (cgraph_finalize_function): Likewise.
475 (cgraph_analyze_function): Likewise.
476 (cgraph_finalize_compilation_unit): Likewise.
477 (cgraph_expand_function): Likewise.
478 (cgraph_optimize): Likesise.
479 (save_inline_function_body): Likewise.
480 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
481 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
482 * ipa-inline.c: Update comments.
483 (enum inlining_mode): remove INLINE_SPEED.
484 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
485 (cgraph_mark_inline_edge): Likewise.
486 (try_inline): Likewise.
487 (cgraph_decide_inlining_incrementally): Likewise.
488 (cgraph_gate_inlining): Remove.
489 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
490 (cgraph_gate_early_inlining): Likewise.
491 (gate_inline_passes): Remove.
492 (pass_inline_parameters, pass_ipa_inline): Remove gates.
493 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
494 pass_O0_always_inline): Remove.
495 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
496 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
497 * opts.c (no_unit_at_a_time_default): Remove.
498 (decode_options): Remove flag_unit_at_a_time reset and warning.
499 * opts.h (no_unit_at_a_time_default): Remove.
500 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
501 early in GNU dialect.
502 (merge_decls): Update comment; drop unit-at-a-time check.
503 (finish_decl): Likewise.
504 (grok_declaration): Remove flag_inline_trees code.
505 (finish_functions): Return on function returning non-void on all
507 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
508 * cfgexpand.c (expand_one_static_var): Remove.
509 (expand_one_var): Remove expand_one_static_var call.
510 (expand_used_vars_for_block): Remove flag_unit_a_time check.
511 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
512 and flag_unit_at_a-time compatibility checks.
513 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
514 * tree-inline.c (flag_inline_trees): Remove.
515 (inlinable_function_p): Don't check it.
516 (expand_call_inline): Remove non-unit-at-a-time code.
517 * tree-inline.h (flag_inline_trees): Remove.
518 * tree-optimize.c (execute_early_local_optimizations): Remove
519 unit-at-a-time checks.
520 (tree_rest_of_compilation): Likewise.
521 * combine.c (setup_incoming_promotions): Likewise.
522 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
523 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
524 * passes.c (pass_inline_parameters): Update comments; remove
525 O0_alwaysinline pass.
526 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
527 (execute_one_pass): Likewise.
528 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
529 (ix86_function_sseregparm): Likewise.
530 * arm.c (arm_function_in_section_p): Likewise.
531 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
532 * varpool.c: Update comments.
533 (decide_is_variable_needed): Remove unit-at-a-time checks.
534 (varpool_finalize_decl): Likewise.
536 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
538 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
540 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
543 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
545 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
546 imp symbol extension.
548 2008-07-23 Ian Lance Taylor <iant@google.com>
550 * tree-vrp.c (infer_value_range): Ignore asm statements when
551 looking for memory accesses for -fdelete-null-pointer-checks.
553 2008-07-24 Ben Elliston <bje@au.ibm.com>
555 * config/spu/spu-c.c (__vector_keyword): New variable.
556 (vector_keyword): Likewise.
557 (spu_categorize_keyword): New function.
558 (spu_macro_to_expand): Likewise.
559 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
560 compiling an ISO C dialect.
562 2008-07-24 Ben Elliston <bje@au.ibm.com>
564 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
567 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
569 * configure: Regenerate.
570 * configure.ac: Require texinfo 4.7.
571 * doc/install.texi: Document texinfo 4.7 requirement.
573 2008-07-23 Martin Jambor <mjambor@suse.cz>
575 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
576 rather than for DECL_SAVED_TREE.
577 * ipa-prop.c: Include diagnostic.h.
578 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
580 (ipa_detect_param_modifications): Function rewritten from scratch.
581 (ipa_compute_jump_functions): Changed accesses to modification flags.
582 (ipa_free_node_params_substructures): Update flags destruction.
583 (ipa_node_duplication_hook): Update flags duplication.
584 (ipa_print_all_params_modified): Updated flag access.
585 * ipa-prop.h (struct ipa_param_flags): New structure.
586 (struct ipa_node_params): New field modification_analysis_done,
587 modified_flags changed into param_flags.
588 (ipa_is_ith_param_modified): Changed to use new flags.
589 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
591 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
592 ipa-cp.c and split into two functions.
593 (ipa_print_node_jump_functions): New function.
594 (compute_scalar_jump_functions): New function.
595 (type_like_member_ptr_p): New function.
596 (compute_pass_through_member_ptrs): New function.
597 (fill_member_ptr_cst_jump_function): New function.
598 (determine_cst_member_ptr): New function.
599 (compute_cst_member_ptr_arguments): New function.
600 (ipa_compute_jump_functions): Complete rewrite.
601 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
602 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
603 (struct ipa_member_ptr_cst): New structure.
604 (union jump_func_value): New field member_cst.
605 * ipa-cp.c (ipcp_lat_is_insertable): New function.
606 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
608 (ipcp_print_all_lattices): Slight fprintf rearrangement.
609 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
610 instead of ipcp_print_all_jump_functions.
611 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
612 only for replacable scalars.
614 * doc/invoke.texi (Optimize options): Add description of
616 * common.opt (flag_indirect_inlining): New flag.
617 * opts.c (decode_options): Set flag_indirect_inlining when
620 * ipa-inline.c: Include ipa-prop.h.
621 (inline_indirect_intraprocedural_analysis): New function.
622 (inline_generate_summary): Allocate parameter and argument info
623 structures, call inline_indirect_intraprocedural_analysis on each
624 node when doing indirect inlining and deallocate indirect inlining
625 data structures in the end.
626 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
627 (free_all_ipa_structures_after_iinln): New function.
628 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
630 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
632 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
633 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
634 of computing the frequency separately.
635 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
636 of computing the frequency separately.
637 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
638 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
639 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
640 (ipa_get_stmt_member_ptr_load_param): New function.
641 (ipa_is_ssa_with_stmt_def): New function.
642 (ipa_note_param_call): New function.
643 (ipa_analyze_call_uses): New function.
644 (ipa_analyze_stmt_uses): New function.
645 (ipa_analyze_params_uses): New function.
646 (ipa_free_node_params_substructures): Also free the param_calls linked
648 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
649 (ipa_print_node_param_flags): New function.
650 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
651 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
652 * ipa-prop.h (struct ipa_param_flags): New field called.
653 (struct ipa_param_call_note): New structure.
654 (struct ipa_node_params): New fields param_calls and
656 (ipa_is_ith_param_called): New function.
657 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
658 ipa_analyze_params_uses and dump parameter flags.
660 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
661 ipa_propagate_indirect_call_infos if performing indirect inlining,
662 pass a new parameter new_edges to it.
663 (add_new_edges_to_heap): New fucntion.
664 (cgraph_decide_inlining_of_small_functions): New vector
665 new_indirect_edges for newly found indirect edges , call
666 ipa_propagate_indirect_call_infos after inlining.
667 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
668 inlining if performing indirect inlining. Call
669 free_all_ipa_structures_after_iinln when doing so too.
670 (inline_generate_summary): Do not call
671 free_all_ipa_structures_after_iinln here.
672 * ipa-prop.c (update_jump_functions_after_inlining): New function.
673 (print_edge_addition_message): New function.
674 (update_call_notes_after_inlining): New function.
675 (propagate_info_to_inlined_callees): New function.
676 (ipa_propagate_indirect_call_infos): New function.
677 * ipa-prop.h: Include cgraph.h
678 (struct ipa_param_call_note): Fields reordered, new field processed.
679 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
681 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
682 rediscovered call statements.
683 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
684 (dump_cgraph_node): Dump also the indirect_call flag.
685 (cgraph_clone_edge): Copy also the indirect_call flag.
686 * tree-inline.c (copy_bb): Do not check for fndecls from call
687 expressions, check for edge availability when moving clones.
688 (get_indirect_callee_fndecl): New function.
689 (expand_call_inline): If callee declaration is not apprent from
690 the statement, try calling get_indirect_callee_fndecl. Do not
691 issue warnings or call sorry when not inlinings an indirect edge.
692 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
694 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
695 bit more frandly to matching.
696 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
697 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
698 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
700 2008-07-23 Michael Meissner <gnu@the-meissners.org>
703 * opth-gen.awk: Suppress function specific features when building
705 * optc-gen.awk: Ditto.
707 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
710 * diagnostic.c (pedwarn): Add opt parameter.
712 * c-tree.h (pedwarn_init): Add opt parameter.
713 (pedwarn_c90): Likewise.
714 (pedwarn_c99): Likewise.
715 * c-errors.c (pedwarn_c99): Likewise.
716 (pedwarn_c90): Likewise.
717 * toplev.h (pedwarn): Update declaration.
719 * c-lex.c: All calls to pedwarn changed.
720 * builtins.c: All calls to pedwarn changed.
721 * toplev.c: All calls to pedwarn changed.
722 * c-decl.c: All calls to pedwarn changed.
723 * c-typeck.c: All calls to pedwarn changed.
724 * c-common.c: All calls to pedwarn changed.
725 * c-parser.c: All calls to pedwarn changed.
727 2008-07-23 Michael Meissner <gnu@the-meissners.org>
728 Karthik Kumar <karthikkumar@gmail.com>
730 * attribs.c (file scope): Include c-common.h.
731 (decl_attributes): Add support for #pragma GCC optimize and
734 * targhooks.c (default_can_inline_p): New function that is the
735 default for the TARGET_CAN_INLINE_P target hook.
737 * targhooks.h (default_can_inline_p): Add declaration.
739 * tree.c (cl_optimization_node): New static tree for building
740 OPTIMIZATION_NODE tree.
741 (cl_target_option_node): New static tree for building
742 TARGET_OPTION_NODE tree.
743 (cl_option_hash_table): New hash table for hashing
744 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
745 (cl_option_hash_hash): New function to provide the hash value for
746 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
747 (cl_option_hash_eq): New function to provide an equality test for
748 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
749 (tree_code_size): Add support for OPTIMIZATION_NODE and
750 TARGET_OPTION_NODE trees.
751 (tree_code_structure): Add support for OPTIMIZATION_NODE and
752 TARGET_OPTION_NODE trees.
753 (build_optimization_node): Build a tree that has all of the
754 current optimization options.
755 (build_target_option_node): Build a tree that has the target
756 options that might be changed on a per function basis.
758 * tree.h (file scope): Include options.h.
759 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
760 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
761 (TREE_OPTIMIZATION): Ditto.
762 (TREE_TARGET_SPECIFIC): Ditto.
763 (struct tree_function_decl): Add fields for remembering the
764 current optimization options and target specific options.
765 (struct tree_optimization_option): New tree variant that remembers
766 the optimization options.
767 (struct tree_target_option): New tree variant that remembers the
768 target specific flags that might change for compiling a particular
770 (union tree_node): Include tree_optimization_option and
771 tree_target_option fields.
772 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
773 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
774 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
775 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
776 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
777 optimization and target options.
778 (optimization_default_node): New macro to refer to global_trees
780 (optimization_current_node): Ditto.
781 (optimization_cold_node): Ditto.
782 (optimization_hot_node): Ditto.
783 (target_option_default_node): Ditto.
784 (target_option_current_node): Ditto.
785 (current_option_pragma): Ditto.
786 (current_optimize_pragma): Ditto.
788 * target.h (struct gcc_target): Add valid_option_attribute_p,
789 target_option_save, target_option_restore, target_option_print,
790 target_option_pragma_parse, and can_inline_p hooks.
792 * toplev.h (parse_optimize_options): Add declaration.
793 (fast_math_flags_struct_set_p): Ditto.
795 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
796 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
799 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
800 tree_can_inline_p hook to see if one function can inline another.
801 (cgraph_decide_inlining): Ditto.
802 (cgraph_decide_inlining_incrementally): Ditto.
804 * opts.c (decode_options): Add support for running multiple times
805 to allow functions with different target or optimization options
806 than was specified on the command line.
807 (fast_math_flags_struct_set_p): New function that is similar to
808 fast_math_flags_set_p, except it uses the values in the
809 cl_optimization structure instead of global variables.
811 * optc-gen.awk: Add support for TargetSave to allow a back end to
812 declare new fields that need to be saved when using function
813 specific options. Include flags.h and target.h in the options.c
814 source. Add support for Save to indicate which options can be set
815 for individual functions. Generate cl_optimize_save,
816 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
817 cl_target_option_restore, cl_target_option_print functions to
818 allow functions to use different optimization or target options.
820 * opt-functions.awk (var_type_struct): Return the type used for
821 storing the field in a structure.
823 * opth-gen.awk: Add support for TargetSave to allow a back end to
824 declare new fields that need to be saved when using function
825 specific options. Add support for Save to indicate which options
826 can be set for individual functions. Only generate one extern for
827 Mask fields. Generate cl_optimization and cl_target_option
828 structures to remember optimization and target options.
830 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
831 collecting new tree nodes.
832 (TS_TARGET_OPTION): Ditto.
834 * c-decl.c (merge_decls): Merge function specific target and
835 optimization options.
837 * function.c (invoke_set_current_function_hook): If the function
838 uses different optimization options, change the global variables
841 * coretypes.h (struct cl_optimization): Add forward reference.
842 (struct cl_target_option): Ditto.
844 * c-pragma.c (option_stack): New static vector to remember the
845 current #pragma GCC option stack.
846 (handle_pragma_option): New function to support #pragma GCC option
847 to change target options.
848 (optimize_stack): New static vector to remember the current
849 #pragma GCC optimize stack.
850 (handle_pragma_optimize): New function to support #pragma GCC
851 optimize to change optimization options.
852 (init_pragma): Add support for #pragma GCC optimize and #pragma
855 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
856 optimization options.
857 (TARGET_OPTION_NODE): New tree code for remembering certain target
860 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
861 TARGET_OPTION_NODE trees.
863 * common.opt (-O): Add Optimization flag.
865 (-fmath-errno): Ditto.
866 (-falign-functions): Add UInteger flag to make sure flag gets full
867 int in cl_optimization structure.
868 (-falign-jumps): Ditto.
869 (-falign-labels): Ditto.
870 (-falign-loops): Ditto.
871 (-fsched-stalled-insns): Ditto.
872 (-fsched-stalled-insns-dep): Ditto.
874 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
876 (TARGET_OPTION_SAVE): Ditto.
877 (TARGET_OPTION_RESTORE): Ditto.
878 (TARGET_OPTION_PRINT): Ditto.
879 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
880 (TARGET_CAN_INLINE_P): Ditto.
881 (TARGET_INITIALIZER): Add new hooks.
883 * tree-inline.c (tree_can_inline_p): New function to determine
884 whether one function can inline another. Check if the functions
885 use compatible optimization options, and also call the backend
888 * tree-inline.h (tree_can_inline_p): Add declaration.
890 * c-common.c (c_common_attribute): Add support for option and
892 (handle_option_attribute): Add support for the option attribute to
893 allow the user to specify different target options for compiling a
895 (handle_optimize_attribute): Add support for the optimize
896 attribute to allow the user to specify different optimization
897 options for compiling a specific function.
898 (handle_hot_attribute): Turn on -O3 optimization for this one
899 function if it isn't the default optimization level.
900 (handle_cold_attribute): Turn on -Os optimization for this one
901 function if it insn't the default optimization.
902 (const_char_p): New const char * typedef.
903 (optimize_args): New static vector to remember the optimization
905 (parse_optimize_options): New function to set up the optimization
906 arguments from either the optimize attribute or #pragma GCC
909 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
910 (builtin_define_std): Ditto.
912 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
913 Add t-i386 Makefile fragment to add i386-c.o and i386.o
917 * Makefile.in (TREE_H): Add options.h.
918 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
920 * doc/extend.texi (option attribute): Document new attribute.
921 (optimize attribute): Ditto.
922 (hot attribute): Document hot attribute sets -O3.
923 (cold attribute): Document cold attribute sets -Os.
924 (#pragma GCC option): Document new pragma.
925 (#pragma GCC optimize): Ditto.
927 * doc/options.texi (TargetSave): Document TargetSave syntax.
928 (UInteger): Document UInteger must be used for certain flags.
929 (Save): Document Save option to create target specific options
930 that can be saved/restored on a function specific context.
932 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
934 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
936 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
938 (TARGET_OPTION_SAVE): Ditto.
939 (TARGET_OPTION_RESTORE): Ditto.
940 (TARGET_OPTION_PRINT): Ditto.
941 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
942 (TARGET_CAN_INLINE_P): Ditto.
944 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
946 (-mfpmath=both): Ditto.
948 2008-07-23 Michael Meissner <gnu@the-meissners.org>
949 Karthik Kumar <karthikkumar@gmail.com>
951 * config/i386/i386.h (TARGET_ABM): Move switch into
953 (TARGET_POPCNT): Ditto.
954 (TARGET_SAHF): Ditto.
956 (TARGET_PCLMUL): Ditto.
957 (TARGET_CMPXCHG16B): Ditto.
958 (TARGET_RECIP): Move switch into target_flags.
959 (TARGET_FUSED_MADD): Ditto.
960 (ix86_arch_features): Make an unsigned char type.
961 (ix86_tune_features): Ditto.
962 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
963 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
964 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
966 * config/i386/i386.opt (arch): New TargetSave field to define
967 fields that need to be saved for function specific option
971 (branch_cost): Ditto.
972 (ix86_isa_flags_explicit): Ditto.
973 (tune_defaulted): Ditto.
974 (arch_specified): Ditto.
975 (-m128-long-double): Add Save flag to save option for target
976 specific option support.
978 (-maccumulate-outgoing-args): Ditto.
979 (-malign-double): Ditto.
980 (-malign-stringops): Ditto.
981 (-mfancy-math-387): Ditto.
982 (-mhard-float): Ditto.
984 (-minline-all-stringops): Ditto.
985 (-minline-stringops-dynamically): Ditto.
986 (-mms-bitfields): Ditto.
987 (-mno-align-stringops): Ditto.
988 (-mno-fancy-math-387): Ditto.
989 (-mno-push-args): Ditto.
990 (-mno-red-zone): Ditto.
991 (-mpush-args): Ditto.
994 (-msseregparm): Ditto.
995 (-mstack-arg-probe): Ditto.
1010 (-mrecip): Move flag into target_flags.
1012 (-mno-fused-madd): Ditto.
1013 (-mfused-madd): Ditto.
1014 (-mabm): Move flag into ix86_isa_flags.
1021 * config/i386/i386-c.c: New file for #pragma support.
1022 (ix86_target_macros_internal): New function to #define or #undef
1023 target macros based when the user uses the #pragma GCC option to
1024 change target options.
1025 (ix86_pragma_option_parse): New function to add #pragma GCC option
1027 (ix86_target_macros): Move defining the target macros here from
1028 TARGET_CPU_CPP_BUILTINS in i386.h.
1029 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1030 defined, initialize any subtarget #pragmas.
1032 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1033 REGISTER_TARGET_PRAGMAS.
1035 * config/i386/t-i386: New file for x86 dependencies.
1036 (i386.o): Make dependencies mirror the include files used.
1037 (i386-c.o): New file, add dependencies.
1039 * config/i386/i386-protos.h (override_options): Add bool
1041 (ix86_valid_option_attribute_tree): Add declaration.
1042 (ix86_target_macros): Ditto.
1043 (ix86_register_macros): Ditto.
1045 * config/i386/i386.c (ix86_tune_features): Move initialization of
1046 the target masks to initial_ix86_tune_features to allow functions
1047 to have different target options. Make type unsigned char,
1048 instead of unsigned int.
1049 (initial_ix86_tune_features): New static vector to hold processor
1050 masks for the tune variables.
1051 (ix86_arch_features): Move initialization of the target masks to
1052 initial_ix86_arch_features to allow functions to have different
1053 target options. Make type unsigned char, instead of unsigned
1055 (initial_ix86_arch_features): New static vector to hold processor
1056 masks for the arch variables.
1057 (enum ix86_function_specific_strings): New enum to describe the
1058 string options used for attribute((option(...))).
1059 (ix86_target_string): New function to return a string that
1060 describes the target options.
1061 (ix86_debug_options): New function to print the current options in
1063 (ix86_function_specific_save): New function hook to save the
1064 function specific global variables in the cl_target_option
1066 (ix86_function_specific_restore): New function hook to restore the
1067 function specific variables from the cl_target_option structure to
1068 the global variables.
1069 (ix86_function_specific_print): New function hook to print the
1070 target specific options in the cl_target_option structure.
1071 (ix86_valid_option_attribute_p): New function hook to validate
1072 attribute((option(...))) arguments.
1073 (ix86_valid_option_attribute_tree): New function that is common
1074 code between attribute((option(...))) and #pragma GCC option
1075 support that parses the options and returns a tree holding the
1077 (ix86_valid_option_attribute_inner_p): New helper function for
1078 ix86_valid_option_attribute_tree.
1079 (ix86_can_inline_p): New function hook to decide if one function
1080 can inline another on a target specific basis.
1081 (ix86_set_current_function); New function hook to switch target
1082 options if the user used attribute((option(...))) or #pragma GCC
1084 (ix86_tune_defaulted): Move to static file scope from
1086 (ix86_arch_specified): Ditto.
1087 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1089 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1090 (OPTION_MASK_ISA_ABM_SET): Ditto.
1091 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1092 (OPTION_MASK_ISA_CX16_SET): Ditto.
1093 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1094 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1095 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1096 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1097 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1098 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1099 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1100 (struct ptt): Move to static file scope from override_options.
1101 (processor_target_table): Ditto.
1103 (ix86_handle_option): Add support for options that are now isa
1105 (override_options): Add support for declaring functions that
1106 support different target options than were specified on the
1107 command line. Move struct ptt, processor_target_table, cpu_names,
1108 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1109 Add bool argument. Fix up error messages so the appropriate error
1110 is given for either command line or attribute.
1111 (ix86_previous_fndecl): New static to remember previous function
1112 declaration to see if we need to change target options.
1113 (ix86_builtins_isa): New array to record the ISA of each builtin
1115 (def_builtin): Always create the builtin function, even if the
1116 current ISA doesn't support it.
1117 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1118 tests for those builtins.
1119 (ix86_init_builtins): Remove TARGET_MMX test for calling
1120 ix86_init_mmx_sse_builtins.
1121 (ix86_expand_builtin): If the current ISA doesn't support a given
1122 builtin, signal an error.
1123 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1124 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1125 (TARGET_OPTION_SAVE): Ditto.
1126 (TARGET_OPTION_RESTORE): Ditto.
1127 (TARGET_OPTION_PRINT): Ditto.
1128 (TARGET_CAN_INLINE_P): Ditto.
1130 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1132 * c-typeck.c (build_external_ref): Don't call assemble_external.
1133 * final.c (output_operand): Call assemble_external.
1135 2008-07-21 DJ Delorie <dj@redhat.com>
1137 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1138 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1140 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1142 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1143 original insn and splitter contents into ...
1144 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1145 flag_unsafe_math_optimizations. Add dummy scratch register.
1146 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1147 !flag_unsafe_math_optimizations. Returns number with next
1148 highest magnitude if this is still less or equal to the true
1149 quotient in magnitude.
1151 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
1153 * Makefile.in: Replace toplev.h with TOPLEV_H.
1154 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1155 * c-lex.c (fe_file_change): Don't set in_system_header.
1156 * c-parser.c (c_token): Remove in_system_header.
1157 (c_lex_one_token): Don't set in_system_header.
1158 (c_parser_set_source_position_from_token): Don't set in_system_header.
1159 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1162 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1163 * flags.h (in_system_header): Remove.
1164 * function.c (saved_in_system_header): Remove.
1165 (push_cfun): Don't set in_system_header.
1166 (pop_cfun): Don't set in_system_header.
1167 (push_struct_function): Don't set in_system_header.
1168 * input.h (expanded_location): Add sysp.
1169 (in_system_header_at): New.
1170 (in_system_header): New.
1171 * toplev.c (in_system_header): Remove.
1172 * toplev.h: Include input.h
1174 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1175 * tree-ssa.c (warn_uninit): Call warning_at.
1176 (warn_uninitialized_var): Update calls to warn_uninit.
1177 (warn_uninitialized_phi): Update calls to warn_uninit.
1178 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1179 (expand_location): Initialize xloc.sysp.
1180 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1181 (tree_decl_with_vis): Remove in_system_header_flag.
1183 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1186 * recog.c (asm_operand_ok): Change the order of the extra
1187 memory constraint checks.
1189 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1192 * tree-switch-conversion.c (build_one_array): Call
1193 varpool_mark_needed_node and varpool_finalize_decl
1194 instead of assemble_variable.
1196 2008-07-19 Jan Hubicka <jh@suse.cz>
1198 * cgraph.c (cgraph_add_new_function): Do early local passes.
1199 * tree-nrv.c (gate_pass_return_slot): New gate.
1200 (pass_nrv): Add the gate.
1201 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1203 (coalesce_ssa_name): Coalesce SSA names.
1204 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1205 not optimizing so unused user vars remains visible.
1206 * common.opt (flag_tree_ter): Always enable by default.
1207 * tree-ssa-ter.c: Include flags.h
1208 (is_replaceable_p): Check that locations match; when aliasing is missing
1209 be conservative about loads.
1210 * tree-optimize.c (gate_init_datastructures): Remove.
1211 (pass_init_datastructures): New.
1212 * passes.c: Reorder passes so we always go into SSA.
1214 2008-07-19 Jan Hubicka <jh@suse.cz>
1216 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1217 * doc/invoke.texi (--combine): Likewise.
1218 (-finline-functions-called-once): Update levels when enabled.
1219 (-funit-at-a-time): Document new behaviour.
1220 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1221 -fno-section-anchors when disabled explicitly.
1222 (inline params): They are not ignored now.
1223 (precompiled headers): Remove unit-at-a-time as being incompatible.
1224 * opts.c (decode_options): Handle unit-at-a-time as alias;
1225 imply -fno-section-anchors when toplevel reorder is disabled
1227 * common.opt (ftoplevel-reorder): Set default value to 2.
1228 (funit-at-a-time): Set default value to 1.
1229 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1232 2008-07-19 Jan Hubicka <jh@suse.cz>
1234 * builtins.c (expand_builtin_int_roundingfn,
1235 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1238 2008-07-19 Richard Guenther <rguenther@suse.de>
1241 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1242 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1243 * tree-ssa-pre.c (get_expr_value_id): For newly created
1244 constant value-ids make sure to add the expression to its
1247 2008-07-19 Jakub Jelinek <jakub@redhat.com>
1250 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1251 return value of the builtin is ignored.
1253 2008-07-19 Olivier Hainque <hainque@adacore.com>
1255 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1256 bits, a C conformant malloc implementation has to provide.
1257 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1259 2008-07-19 Joseph Myers <joseph@codesourcery.com>
1263 * reload.c (find_reloads_subreg_address): Only reload address if
1264 reloaded == 0, not for reloaded != 1.
1267 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1268 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1269 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1270 m32c_legitimize_reload_address.
1272 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1273 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1274 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1276 2008-07-19 Olivier Hainque <hainque@adacore.com>
1278 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1279 argument, saying whether nested array are to be collapsed
1280 into a single array type DIE with multiple subscripts.
1281 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1282 issues, centralize the nested array types collapsing control and
1283 disable the transformation for Ada.
1285 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
1288 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1290 (x86_64_shift_adj_2): New expander.
1291 (x86_64_shift_adj_3): Ditto.
1292 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1293 to split TImode operands.
1294 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1295 (ix86_split_lshr): Ditto.
1297 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
1299 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1300 and __CHAR32_TYPE__.
1301 * c-typeck.c (digest_init): Support char16_t and char32_t.
1302 (set_nonincremental_init_from_string): Idem.
1304 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1307 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1308 PREFERRED_STACK_BOUNDARY.
1309 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1311 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1314 * function.c (locate_and_pad_parm): Cap boundary earlier.
1316 2008-07-17 Julian Brown <julian@codesourcery.com>
1318 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1319 no-op for targets which don't use DLLs.
1321 2008-07-17 Martin Jambor <mjambor@suse.cz>
1323 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1324 that nodes are relevant by examining the node->analyzed flag.
1325 (ipcp_init_stage): Check which nodes are relevant, assert that the
1326 relevant ones are also required.
1327 (ipcp_propagate_stage): Check on the side arrays are properly
1329 (ipcp_print_all_jump_functions): Make sure not to touch any node
1330 that is not analyzed or an edge that does not have a corresponding
1331 entry in the on-the-side vectors.
1332 (ipcp_function_scale_print): Likewise.
1333 (ipcp_update_callgraph): Check that the node is relevant.
1334 (ipcp_insert_stage): Check that the node is relevant. Check there is
1335 an info for every node and edge.
1336 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1337 (ipa_print_all_tree_maps): Likewise and a new variable info.
1338 (ipa_print_all_params_modified): Likewise.
1339 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1341 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
1344 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1346 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
1348 PR rtl-optimization/36753
1349 * fwprop.c (use_killed_between): Don't shortcut
1350 single-definition global registers.
1352 2008-07-16 Jan Hubicka <jh@suse.cz>
1354 * cgraph.h (varpool_empty_needed_queue): Declare.
1355 * cgraphunit.c (output_in_order): Mark all variables as needed;
1357 * varpool.c (varpool_assemble_node): Update debug queue.
1358 (varpool_assemble_pending_decls): Don't do it here.
1359 (varpool_empty_needed_queue): New function.
1361 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1363 * recog.c (peephole2_optimize): Fix formatting.
1365 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1367 * c-pch.c (get_ident): Avoid C++ keywords.
1368 * combine-stack-adj.c (single_set_for_csa): Likewise.
1369 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1370 output_asm_insn): Likewise.
1371 * reload.c (push_secondary_reload, find_reusable_reload,
1372 push_reload, combine_reloads, find_reloads,
1373 debug_reload_to_stream): Likewise.
1374 * reload.h (struct reload): Likewise.
1375 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1376 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1377 emit_output_reload_insns): Likewise.
1378 * targhooks.c (default_secondary_reload): Likewise.
1379 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1381 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1383 * recog.c (validate_change_1, validate_change,
1384 validate_unshare_change, validate_replace_rtx_1, struct
1385 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1387 * reload.c (push_secondary_reload, secondary_reload_class,
1388 scratch_reload_class, find_valid_class, find_reusable_reload,
1389 push_reload, find_dummy_reload, find_reloads_address_1,
1390 find_reloads_address_part, find_equiv_reg): Likewise.
1391 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1392 choose_reload_regs): Likewise.
1393 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1395 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1396 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1397 * sched-rgn.c (concat_INSN_LIST): Likewise.
1398 * stor-layout.c (mode_for_size, mode_for_size_tree,
1399 smallest_mode_for_size): Likewise.
1401 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1403 * cfg.c (dump_reg_info): Avoid C++ keywords.
1404 * dwarf2asm.c (dw2_force_const_mem,
1405 dw2_asm_output_encoded_addr_rtx): Likewise.
1406 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1407 * expmed.c (expand_shift): Likewise.
1408 * global.c (find_reg): Likewise.
1409 * graph.c (draw_edge): Likewise.
1410 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1411 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1412 widen_clz, widen_bswap, expand_parity, expand_unop,
1413 emit_cmp_and_jump_insn_1): Likewise.
1414 * postreload.c (reload_cse_simplify_operands): Likewise.
1415 * ra.h (add_neighbor): Likewise.
1416 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1417 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1418 record_reg_classes, copy_cost, record_address_regs,
1419 invalid_mode_change_p): Likewise.
1420 * regrename.c (regrename_optimize, scan_rtx_reg,
1421 dump_def_use_chain, find_oldest_value_reg,
1422 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1424 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1426 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1427 MASK_POWERPC64 for power4 in previous commit.
1429 2008-07-16 Olivier Hainque <hainque@adacore.com>
1431 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1432 instead of bare conversion to cast const-ness away.
1434 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1436 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1437 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1438 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1439 (TARGET_FUNCTION_VALUE): Define.
1441 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1443 * config/rs6000/rs6000.c (processor_target_table): Add
1444 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1446 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1449 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1450 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1451 m32c_legitimize_reload_address.
1453 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1455 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1456 DECL_IN_SYSTEM_HEADER in sync.
1458 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1460 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1461 * tree-ssa-pre.c (pre_expr_eq): Ditto
1462 (get_constant_for_value_id): Take a type as an argument.
1463 (fully_constant_expression): Pass in type.
1464 (find_or_generate_expression): Short circuit constant case.
1465 (create_expression_by_pieces): Remove special casing of
1467 (do_regular_insertion): Short circuit constant case.
1468 (do_partial_partial_insertion): Ditto.
1470 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1473 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1475 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1477 * config/xtensa/libgcc-xtensa.ver: New file.
1478 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1480 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1482 * df-problems.c (df_set_note): Avoid C++ keywords.
1483 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1484 * dse.c (record_store, remove_useless_values): Likewise.
1485 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1486 gen_reg_rtx_offset, operand_subword, change_address_1,
1487 change_address, adjust_address_1, offset_address,
1488 widen_memory_access, emit_copy_of_insn_after): Likewise.
1489 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1490 * fwprop.c (should_replace_address, propagate_rtx_1,
1491 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1493 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1494 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1495 * lcm.c (compute_insert_delete, pre_edge_lcm,
1496 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1497 * lower-subreg.c (resolve_reg_notes): Likewise.
1498 * mode-switching.c (optimize_mode_switching): Likewise.
1500 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1502 * bt-load.c (add_btr_def, migrate_btr_def,
1503 branch_target_load_optimize): Avoid C++ keywords.
1504 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1506 * combine.c (subst, simplify_set, make_extraction,
1507 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1508 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1509 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1511 2008-07-15 Richard Guenther <rguenther@suse.de>
1514 * c-common.c (strict_aliasing_warning): Do not warn for
1515 TYPE_REF_CAN_ALIAS_ALL pointers.
1516 (c_common_get_alias_set): may_alias types are not special.
1517 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1518 attribute and set can_ref_all accordingly.
1519 (build_reference_type_for_mode): Likewise.
1520 * doc/extend.texi (may_alias): Clarify.
1522 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1525 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1526 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1528 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1531 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1532 gcc_assert, instead call output_operand_lossage.
1534 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1536 * builtins.c (std_canonical_va_list): Treat structure based
1539 2008-07-15 Ben Elliston <bje@au.ibm.com>
1541 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1543 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1545 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1548 2008-07-14 Jan Hubicka <jh@suse.cz>
1550 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1551 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1552 fix predicates and constraints.
1553 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1554 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1556 2008-07-14 Doug Kwan <dougkwan@google.com>
1558 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1559 additional option file arm/eabi.opt.
1560 * config/arm/eabi.h (File): New configuration file for EABI targets.
1561 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1562 SUBSUBTARGET_EXTRA_SPECS.
1563 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1564 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1565 from STARTFILE_SPEC so that it can be referenced in an override.
1566 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1567 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1568 can be referenced in an override.
1569 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1570 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1571 so that it can be referenced in an override.
1572 (LINK_SPEC): Use BPABI_LINK_SPEC.
1573 * config/arm/eabi.opt (File): New.
1575 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1577 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1578 (FIXED_VALUE_H): New variable.
1579 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1580 input.h, fixed-value.h.
1581 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1582 (BASIC_BLOCK_H): Use $(BITMAP_H).
1583 (FUNCTION_H): Add varray.h.
1584 (IPA_REFERENCE_H): Use $(BITMAP_H).
1585 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1586 (DF_H): Use $(BITMAP_H).
1587 (GGC_H): Add statistics.h.
1589 (INSN_ATTR_H): Use it.
1590 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1592 (SYMTAB_H): Add $(OBSTACK_H).
1593 (CPP_INTERNAL_H): New.
1594 (TREE_DUMP_H): Add tree-pass.h.
1595 (TREE_FLOW_H): Use $(BITMAP_H)
1596 (PRETTY_PRINT_H): Use $(INPUT_H).
1597 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1600 (many object files): Fix lots of header dependencies throughout.
1602 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1604 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1606 (s-gtyp-input): Use them to write tmp-gi.list.
1607 (echo_to_gi.list): Remove.
1609 2008-07-14 Richard Guenther <rguenther@suse.de>
1611 * tree-ssa-sccvn.c (pre_info): Remove.
1612 (switch_to_PRE_table): Likewise.
1613 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
1614 (set_hashtable_value_ids): Do not create value-ids for the
1616 (run_scc_vn): Remove double test. Remove bogus special-case
1617 in value-number printing.
1618 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1619 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1621 * tree-flow-inline.h (get_value_handle): Remove.
1622 * tree-flow.h (get_value_handle): Remove.
1624 2008-07-14 Martin Jambor <mjambor@suse.cz>
1626 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1627 in which we generate arithmetics is not a subrange.
1629 2008-07-14 Martin Jambor <mjambor@suse.cz>
1631 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1633 2008-07-14 Richard Guenther <rguenther@suse.de>
1635 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1637 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
1640 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1641 reload for symbol refs moved to r0 with -fPIC.
1642 (legitimize_pic_address): Use the target register as temporary
1644 (emit_symbolic_move): Adjust comment.
1645 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1648 2008-07-14 Ben Elliston <bje@au.ibm.com>
1650 * c-common.h (C_CPP_HASHNODE): New macro.
1651 * coretypes.h (struct cpp_token): Forward declare.
1652 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1653 the context-sensitive keyword method.
1654 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1655 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1656 expand_bool_pixel): New.
1657 (altivec_categorize_keyword): New function.
1658 (init_vector_keywords): New function.
1659 (rs6000_macro_to_expand): Likewise.
1660 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1661 compiling an ISO C dialect.
1663 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
1665 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1666 (create_expression_by_pieces): Fix typo.
1667 (do_regular_insertion): Use debug counter here too.
1669 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
1672 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1673 CONST_OK_FOR_LETTER_P. All port-local users changed.
1674 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1675 implement Kp matching power-of-two.
1676 (CONSTRAINT_LEN): Define to match.
1677 * config/cris/cris.md: Replace all use of constraint K with Kc.
1678 ("*btst*): Use Kp for operand 0 of last alternative.
1680 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1683 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1686 2008-07-13 Jan Hubicka <jh@suse.cz>
1688 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1691 2008-07-13 Richard Guenther <rguenther@suse.de>
1694 * langhooks.c (lhd_print_error_function): Deal with recursive
1697 2008-07-12 Jan Hubicka <jh@suse.cz>
1699 * cgraph.c (assembler_name_hash): New static var.
1700 (hash_node_by_assembler_name, eq_assembler_name): New.
1701 (cgraph_node_for_asm): Use hashtable.
1702 (cgraph_remove_node): Maintain hashtable.
1703 (change_decl_assembler_name): Sanity check that names are not changing
1704 after aliasing was processed.
1705 * cgraph.h (varpoon_node): Add next GGC marker.
1706 * tree.c (decl_assembler_name_equal): Constify.
1707 (decl_assembler_name_hash): New.
1708 * tree.h (decl_assembler_name_equal): Constify.
1709 (decl_assembler_name_hash): Update.
1711 2008-07-12 David Daney <ddaney@avtrex.com>
1713 * config/mips/driver-native.c (host_detect_local_cpu): Handle
1716 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1718 * doc/md.texi: Document the MIPS "v" constraint.
1719 * config/mips/mips.h (reg_class): Revert last change.
1720 (REG_CLASS_NAMES): Likewise.
1721 (REG_CLASS_CONTENTS): Likewise.
1722 * config/mips/mips.c (mips_regno_to_class): Likewise.
1723 * config/mips/constraints.md (v): Likewise, but add documentation.
1724 Add a comment to say that this constraint should not be used in
1727 2008-07-11 DJ Delorie <dj@redhat.com>
1729 * config/h8300/h8300.md (length): Fix branch offset limit.
1731 2008-07-11 Anatoly Sokolov <aesok@post.ru>
1733 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1734 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1735 (avr_hard_regno_scratch_ok): New function.
1736 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1737 * config/avr/avr.md (all peepholes that request a scratch register):
1738 Remove avr_peep2_scratch_safe use.
1740 2008-07-11 Tom Tromey <tromey@redhat.com>
1741 Ian Lance Taylor <iant@google.com>
1743 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1744 (struct c_common_resword): Define.
1745 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1746 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1747 (c_common_reswords, num_c_common_reswords): Declare.
1748 * c-common.c (c_common_reswords): New global const array.
1749 (num_c_common_reswords): New const int.
1750 * c-parser.c (struct resword, reswords): Don't define.
1751 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1752 (c_parse_init): Clarify mask code. Use c_common_reswords rather
1753 than reswords. If warning about C++ keywords, give them a special
1755 (c_lex_one_token): Warn about C++ keywords. Call
1756 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1757 (c_parser_external_declaration): Look for RID_xxx rather than
1758 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1759 (c_parser_statement_after_labels): Likewise.
1760 (c_parser_objc_class_instance_variables): Likewise.
1761 (c_parser_objc_class_declaration): Likewise.
1762 (c_parser_objc_try_catch_statement): Likewise.
1763 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1764 (declspecs_add_type): Likewise.
1766 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
1768 * ggc-page.c (alloc_page):
1769 Substituting xmalloc, xcalloc with
1770 XNEWVEC and XCNEWVAR macros which add the
1773 2008-07-11 Richard Guenther <rguenther@suse.de>
1775 PR tree-optimization/36765
1776 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1777 aliases from HEAP vars to SMTs.
1779 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1781 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1782 * configure.ac (loose_warn): Move -Wc++-compat from here...
1783 (strict_warn): ...to here.
1784 * configure: Regenerate.
1786 2008-07-10 Joseph Myers <joseph@codesourcery.com>
1788 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1789 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1790 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1791 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1792 excluding more specific h8300-*-* and sh-*-* targets.
1794 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
1796 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1798 (execute_pre): Call loop_optimizer_finalize in early exit.
1800 2008-07-10 Jakub Jelinek <jakub@redhat.com>
1803 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1804 uids in the bitmap, not just VAR_DECL uids.
1806 PR rtl-optimization/36419
1807 * combine-stack-adj.c (adjust_frame_related_expr): New function.
1808 (combine_stack_adjustments_for_block): Call it if needed. Delete
1810 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1811 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1812 prologue sp adjustment.
1814 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
1817 * opts.c (print_ignored_options): Report postponed diagnostics for
1818 unknown -Wno-* options as warnings, not errors.
1819 (postpone_unknown_option_error): Renamed to...
1820 (postpone_unknown_option_warning): ... this.
1822 2008-07-09 Doug Kwan <dougkwan@google.com>
1825 2008-07-08 Doug Kwan <dougkwan@google.com>
1827 * config/arm/arm.opt (mandroid): New option.
1828 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1829 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1831 (CC1PLUS_SPEC): Same.
1833 (STARTFILE_SPEC): Same.
1834 (ENDFILE_SPEC): Same.
1835 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1838 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
1841 * config/mips/mips.h (reg_class): Remove V1_REG.
1842 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1843 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1845 (mips_get_tp): New function.
1846 (mips_legitimize_tls_address): Use it.
1847 * config/mips/constraints.md (v): Delete.
1848 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1849 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1850 After reload, split into a move and ...
1851 (*tls_get_tp_<mode>_split): ...this new instruction.
1853 2008-07-09 David Daney <ddaney@avtrex.com>
1855 * config/mips/driver-native.c: Include coretypes.h and tm.h.
1857 2008-07-09 Jakub Jelinek <jakub@redhat.com>
1859 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1860 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1862 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1863 htab_delete should be called. Don't free c.
1864 (lookup_tmp_var): Create temp_htab lazily.
1865 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1866 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1868 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1869 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1870 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
1871 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1872 * tree-sra.c (generate_element_init): Likewise.
1873 * tree-mudflap.c (execute_mudflap_function_ops,
1874 execute_mudflap_function_decls): Likewise.
1875 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1876 * tree-gimple.h (struct gimplify_ctx): New type.
1877 (push_gimplify_context): Adjust prototype.
1879 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
1881 * tree-ssa-pre.c (phi_translate_1): Update placement of
1884 2008-07-09 Anatoly Sokolov <aesok@post.ru>
1886 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1887 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1888 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1889 * targhooks.c (default_hard_regno_scratch_ok): New function.
1890 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1891 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1892 * recog.c: Include "target.h".
1893 (peep2_find_free_register): Add check for global regs. Add target
1895 * Makefile.in (recog.o): Depend on target.h.
1897 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
1899 * config/sh/sh.c (sh_canonical_va_list_type): New.
1900 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1902 2008-07-09 Raksit Ashok <raksit@google.com>
1904 * doc/invoke.texi (Option Summary): Mention new option
1905 -Wdisallowed-function-list=...
1906 (Warning Options): Document -Wdisallowed-function-list=...
1907 * common.opt (Wdisallowed-function-list=): New flag.
1908 * flags.h (warn_disallowed_functions): External definition of new
1909 boolean warning flag.
1910 (warn_if_disallowed_function_p): Declare new function.
1911 * opts.c (warning_disallowed_functions): New static variable.
1912 (warn_disallowed_functions): New boolean warning flag.
1913 (warn_if_disallowed_function_p): New function.
1914 (add_comma_separated_to_vector): Rename
1915 add_instrument_functions_exclude_list to this.
1916 (common_handle_option): Handle new option. Rename calls to
1917 add_instrument_functions_exclude_list into calls to
1918 add_comma_separated_to_vector.
1919 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1920 based on flag warn_disallowed_functions.
1922 2008-07-09 Christian Bruel <christian.bruel@st.com>
1924 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1925 instead of get_attr_length.
1927 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1929 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1931 * genemit.c (gen_insn): Likewise.
1932 * gengtype.c (note_def_vec): Likewise.
1933 * gengtype.h (note_def_vec): Likewise.
1934 * genoutput.c (struct data, output_insn_data, process_template,
1935 gen_expand, gen_split, note_constraint): Likewise.
1936 * genrecog.c (new_decision, add_to_sequence, factor_tests,
1937 make_insn_sequence): Likewise.
1938 * gensupport.c (record_insn_name): Likewise.
1940 2008-07-08 Doug Kwan <dougkwan@google.com>
1942 * config/arm/arm.opt (mandroid): New option.
1943 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1944 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1946 (CC1PLUS_SPEC): Same.
1948 (STARTFILE_SPEC): Same.
1949 (ENDFILE_SPEC): Same.
1950 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1953 2008-07-08 Raksit Ashok <raksit@google.com>
1955 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1956 (set_storage_via_setmem): Fix expected_align parameter.
1957 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1958 missing from the list.
1959 * doc/md.texi (movmem): Explicitly state that expected alignment is
1960 to be expressed in bytes.
1961 (setmem): Explicitly state that expected alignment is to be expressed
1964 2008-07-08 Joseph Myers <joseph@codesourcery.com>
1966 * reload.c (find_reloads_subreg_address): Do not require validity
1967 of address in original mode before reloading address.
1969 2008-07-07 Tianwei Sheng <tianweis@google.com>
1971 * df-core.c (df_remove_problem): Adjust the access to avoid out of
1972 bounds array access.
1974 2008-07-08 Jakub Jelinek <jakub@redhat.com>
1976 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1978 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
1980 Fix PR tree-optimization/23455
1981 Fix PR tree-optimization/35286
1982 Fix PR tree-optimization/35287
1983 * Makefile.in (OBJS-common): Remove tree-vn.o.
1984 (tree-vn.o): Remove.
1985 * dbgcnt.def: Add treepre_insert debug counter.
1986 * gcc/tree-flow.h (add_to_value): Updated for other changes.
1987 (debug_value_expressions): Ditto.
1988 (print_value_expressions): Ditto.
1989 * tree-pretty-print.c (dump_generic_node): Updated for
1990 VALUE_HANDLE removal.
1991 * tree-ssa-dom.c (record_equality): Ditto.
1992 (cprop_operand): Ditto.
1993 (lookup_avail_expr): Ditto.
1994 * tree-ssa-threadedge.c
1995 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1996 (simplify_control_stmt_condition): Ditto.
1997 * tree.c (tree_code_size): Ditto.
1998 (tree_node_structure): Ditto.
1999 (iterative_hash_expr): Ditto.
2001 * tree.h (VALUE_HANDLE_ID): Ditto.
2002 (VALUE_HANDLE_EXPR_SET): Ditto.
2003 (struct tree_value_handle): Ditto.
2004 (union tree_node): Ditto.
2005 * treestruct.def: Ditto.
2006 * tree-vn.c: Removed.
2007 * tree-ssa-pre.c: Rewritten entirely.
2008 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2009 (constant_value_ids): Ditto.
2010 (vn_nary_op_t): Moved to header.
2012 (vn_reference_op_t): Ditto
2013 (vn_reference_t): Ditto.
2014 (next_value_id): New variable.
2015 (VN_INFO): Add an assert.
2016 (vn_constant_eq): New function.
2017 (vn_constant_hash): Ditto.
2018 (get_or_alloc_constant_value_id): Ditto.
2019 (value_id_constant_p): Ditto.
2020 (vn_reference_compute_hash): De-staticify.
2021 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2022 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2023 (valueize_refs): Update opcode if it changes from ssa name to constant.
2024 (vn_reference_lookup_1): Add new argument.
2025 (vn_reference_lookup): Ditto.
2026 (vn_reference_lookup_pieces): New function.
2027 (vn_reference_insert): Add return type. Modify to deal with value ids.
2028 (vn_reference_insert_pieces): New function.
2029 (vn_nary_op_compute_hash): De-staticify.
2030 (vn_nary_op_eq): Ditto.
2031 (vn_nary_op_lookup_pieces): New function.
2032 (vn_nary_op_lookup): Add new argument.
2033 (vn_nary_op_insert_pieces): New function.
2034 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2035 (vn_phi_insert): Ditto.
2036 (visit_unary_op): Update for callee changes.
2037 (visit_binary_op): Ditto.
2038 (visit_reference_op_load): Ditto.
2039 (visit_reference_op_store): Ditto.
2040 (init_scc_vn): Init next_value_id, constant_to_value_id and
2042 (free_scc_vn): Free them.
2043 (set_hashtable_value_ids): New function.
2044 (run_scc_vn): Use it.
2045 (get_max_value_id): New function.
2046 (get_next_value_id): Ditto.
2047 (expressions_equal_p): Moved from tree-vn.c
2048 (sort_vuses): Ditto.
2049 (sort_vuses_heap): Ditto.
2050 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2052 * tree.c (iterative_hash_hashval_t): Made non-static
2053 * tree.h (iterative_hash_hashval_t): Declare it.
2055 2008-07-08 Martin Jambor <mjambor@suse.cz>
2057 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2058 instead of ipa_create_node_params.
2059 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2060 ipa_check_create_edge_args, free them with
2061 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2063 * ipa-prop.c: Include flags.h and tree-inline.h.
2064 (ipa_node_params_vector): New variable.
2065 (ipa_edge_args_vector): New variable.
2066 (edge_removal_hook_holder): New variable.
2067 (node_removal_hook_holder): New variable.
2068 (edge_duplication_hook_holder): New variable.
2069 (node_duplication_hook_holder): New variable.
2070 (ipa_detect_param_modifications): Check for presence of modified flags.
2071 (ipa_compute_jump_functions): Check for presence of jump functions.
2072 (ipa_free_edge_args_substructures): New function.
2073 (ipa_create_node_params): Removed.
2074 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2075 (ipa_free_node_params_substructures): New function.
2076 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2078 (ipa_edge_removal_hook): New function.
2079 (ipa_node_removal_hook): New function.
2080 (duplicate_array): New function.
2081 (ipa_edge_duplication_hook): New function.
2082 (ipa_node_duplication_hook): New function.
2083 (ipa_register_cgraph_hooks): New function.
2084 (ipa_unregister_cgraph_hooks): New function.
2085 (free_all_ipa_structures_after_ipa_cp): New function.
2087 * ipa-prop.h: Include vec.h.
2088 (ipa_node_params_t): New typedef with vector types for it.
2089 (ipa_edge_args_t): New typedef with vector types for it.
2090 (IPA_NODE_REF): Changed to access an on-the-side vector.
2091 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2092 (ipa_check_create_node_params): New function.
2093 (ipa_check_create_edge_args): New function.
2095 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2098 2008-07-07 Tom Tromey <tromey@redhat.com>
2100 * configure, config.in: Rebuilt.
2101 * configure.ac: Don't check for scandir or alphasort.
2103 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2105 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2106 types immediately after creating them.
2108 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2110 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2112 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2114 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2115 dump_constraint_graph.
2116 (dump_constraint_edge): New function.
2117 (dump_constraint_graph): New function.
2118 (debug_constraint_graph): New function.
2119 (dump_constraint): Removed useless comparison.
2120 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2121 (dump_constraint_graph): Declare.
2122 (debug_constraint_graph): Declare.
2123 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2125 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
2127 * config/i386/i386.c (is_va_list_char_pointer): New.
2128 (ix86_va_start): Replace compare with ms_va_list_type_node
2129 by is_va_list_char_pointer.
2130 (ix86_gimplify_va_arg): Likewise.
2132 2008-07-07 Martin Jambor <mjambor@suse.cz>
2134 * cgraph.c (cgraph_edge_max_uid): New variable.
2135 (struct cgraph_edge_hook_list): New type.
2136 (struct cgraph_node_hook_list): New type.
2137 (struct cgraph_2edge_hook_list): New type.
2138 (struct cgraph_2node_hook_list): New type.
2139 (first_cgraph_edge_removal_hook): New variable.
2140 (first_cgraph_node_removal_hook): New variable.
2141 (first_cgraph_edge_duplicated_hook): New variable.
2142 (first_cgraph_node_duplicated_hook): New variable.
2143 (cgraph_add_edge_removal_hook): New function.
2144 (cgraph_remove_edge_removal_hook): New function.
2145 (cgraph_call_edge_removal_hooks): New function.
2146 (cgraph_add_node_removal_hook): New function.
2147 (cgraph_remove_node_removal_hook): New function.
2148 (cgraph_call_node_removal_hooks): New function.
2149 (cgraph_add_edge_duplication_hook): New function.
2150 (cgraph_remove_edge_duplication_hook): New function.
2151 (cgraph_call_edge_duplication_hooks): New function.
2152 (cgraph_add_node_duplication_hook): New function.
2153 (cgraph_remove_node_duplication_hook): New function.
2154 (cgraph_call_node_duplication_hooks): New function.
2155 (cgraph_create_edge): Assign to edge uid.
2156 (cgraph_remove_edge): Call edge removal hooks.
2157 (cgraph_node_remove_callees): Call edge removal hooks.
2158 (cgraph_node_remove_callers): Call edge removal hooks.
2159 (cgraph_remove_node): Call node removal hooks.
2160 (cgraph_clone_edge): Call edge duplication hooks.
2161 (cgraph_clone_node): Call node duplication hooks.
2163 * cgraph.h (cgraph_edge): New field uid.
2164 (cgraph_edge_hook): New type.
2165 (cgraph_node_hook): New type.
2166 (cgraph_2edge_hook): New type.
2167 (cgraph_2node_hook): New type.
2169 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2171 * config.in: Regenerate.
2173 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2175 * gcc.c (print_sysroot): New.
2176 (option_map, display_help, process_command): Handle the
2177 -print-sysroot option.
2178 (main): Print the sysroot if requested.
2179 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2181 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2184 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2186 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2188 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2189 (assign_parm_setup_block_p): Also check mode of entry_parm.
2191 2008-07-07 Richard Guenther <rguenther@suse.de>
2193 * tree-ssa-structalias.h (set_used_smts): Remove.
2194 * tree-ssa-structalias.c (used_smts): Likewise.
2195 (set_used_smts): Likewise.
2196 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2197 call to set_used_smts.
2199 2008-07-07 Richard Guenther <rguenther@suse.de>
2201 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2202 (new_var_info): Set it to false.
2203 (solution_set_add): Correctly handle pointers outside a var and
2205 (type_safe): Treat variables with is_full_var properly.
2206 (do_sd_constraint): Likewise.
2207 (do_ds_constraint): Likewise.
2208 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2209 (get_constraint_for_ptr_offset): New function.
2210 (get_constraint_for_component_ref): For addresses at least include
2211 the last field of the variable. Handle is_full_vars properly.
2212 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2213 (handle_ptr_arith): Remove.
2214 (find_func_aliases): Simplify assignment handling.
2215 (create_function_info_for): For parameter and result varinfos set
2217 (create_variable_info_for): Set is_full_var flag whenever we
2218 just created a single varinfo for a decl.
2219 (init_alias_vars): Initialize use_field_sensitive from
2220 max-fields-for-field-sensitive parameter.
2222 2008-07-07 Richard Guenther <rguenther@suse.de>
2224 PR tree-optimization/36713
2225 * tree-flow-inline.h (is_call_used): New function.
2226 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2227 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2228 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2230 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2232 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2234 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2236 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2238 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2239 Nathan Sidwell <nathan@codesourcery.com>
2241 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2242 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2244 * config/m68k/t-linux: New.
2245 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2248 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2250 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2251 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2254 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2256 * gcc.c (execute): Fix -Wc++-compat warning.
2258 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2261 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2262 constant for little endian.
2264 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2266 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2267 mips_base_mips16 instead of TARGET_MIPS16.
2268 (mips_base_mips16): Declare.
2269 * config/mips/mips.c (mips_base_mips16): Make global.
2270 (was_mips16_p): Remove GTY marker.
2271 (was_mips16_pch_p): New variable.
2272 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2273 (mips_override_options): Force to non-MIPS16 mode initially.
2274 Do not complain about MIPS16 PIC incompatibilities here.
2275 Only allow -mgpopt if -mexplicit-relocs is in force for
2278 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2280 * configure.ac: Check for caddr_t, define to char * if not defined.
2281 * configure: Regenerate.
2282 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2283 (mmap_gt_pch_use_address): Likewise.
2284 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2286 2008-07-06 Richard Guenther <rguenther@suse.de>
2288 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2289 (new_var_info): Deal with it.
2290 (solution_set_add): Likewise.
2291 (bitpos_of_field): Make signed, fix.
2292 (struct fieldoff): Remove type and decl fields. Make size field
2293 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
2295 (fieldoff_compare): Deal with it.
2296 (push_fields_onto_fieldstack): Remove has_union argument, glob
2297 adjacent non-pointer fields together.
2298 (create_function_info_for): Do not set has_union.
2299 (create_variable_info_for): Simplify.
2301 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
2303 * config.gcc (extra_headers): Add cross-stdarg.h for target
2304 x86_64-*-* and i?86-*-*.
2305 * config/i386/cross-stdarg.h: New.
2306 * builtins.c (std_fn_abi_va_list): New.
2307 (std_canonical_va_list_type): New.
2308 (stabilize_va_list): Replace va_list_type_node use by
2309 mtarget.canonical_va_list_type.
2310 (gimplify_va_arg_expr): Likewise.
2311 (expand_builtin_va_copy): Replace va_list_type_node use by
2312 mtarget.fn_abi_va_list.
2313 * tree-sra.c (is_va_list_type): New helper.
2314 (decl_can_be_decomposed_p): Replace
2315 va_list_type_node use by is_va_list_type.
2316 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2317 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2318 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2319 * config/i386/i386-protos.h (ix86_get_valist_type): New.
2320 (ix86_enum_va_list): New.
2321 * config/i386/i386.c (sysv_va_list_type_node): New.
2322 (ms_va_list_type_node): New.
2323 (ix86_function_type_abi): Remove sorry.
2324 (ix86_build_builtin_va_list_abi): New.
2325 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2327 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2328 (ix86_init_builtins_va_builtins_abi): New.
2329 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2331 (ix86_handle_abi_attribute): New.
2332 (attribute_spec): Add sysv_abi and ms_abi.
2333 (ix86_fn_abi_va_list): New.
2334 (ix86_canonical_va_list_type): New.
2335 (ix86_enum_va_list): New.
2336 (TARGET_FN_ABI_VA_LIST): New.
2337 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2338 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2339 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2340 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2341 (TARGET_ENUM_VA_LIST): New.
2342 * expr.h (std_fn_abi_va_list): New.
2343 (std_canonical_va_list_type): New.
2344 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2345 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2346 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2347 TARGET_CANONICAL_VA_LIST_TYPE.
2348 * target.h (struct gcc_target): Add fn_abi_va_list hook
2349 and canonical_va_list_type hook.
2351 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2353 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2354 integral and pointer types.
2356 2008-07-04 Roger Sayle <roger@eyesopen.com>
2358 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2359 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2361 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2364 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2366 2008-07-04 Jakub Jelinek <jakub@redhat.com>
2368 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2369 build_gimple_modify_stmt.
2370 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
2371 gimple operand. Use fold_build* instead of build*.
2373 2008-07-04 Richard Guenther <rguenther@suse.de>
2375 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2376 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2377 properly to compute the reachability set if we do field-sensitive PTA.
2378 * invoke.texi (max-fields-for-field-sensitive): Document default.
2379 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2380 100 for optimize >= 2.
2382 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2384 * ggc-zone.c (lookup_page_table_if_allocated,
2385 set_page_table_entry, zone_find_object_size, alloc_small_page,
2386 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2387 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2388 -Wc++-compat and/or -Wcast-qual warnings.
2390 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2393 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2394 pic_offset_table_rtx to be marked as used here.
2395 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2396 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2397 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2398 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2401 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2403 * alloc-pool.c (hash_descriptor, eq_descriptor,
2404 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2405 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2407 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2408 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2409 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2410 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2413 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2415 * tree-flow.h (loop_only_exit_p): Declare.
2416 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2417 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2418 the number of iterations if it is constant. Otherwise, if this is the
2419 only possible exit of the loop, use the conservative estimate on the
2420 number of iterations of the entire loop if available.
2422 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2424 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2425 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2426 Add synchronization functions.
2427 * config/sync.c: New file.
2428 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2429 (LIBGCC_SYNC_CFLAGS): Likewise.
2431 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2434 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2435 (*pushtf_sse): New insn pattern.
2436 (pushtf splitters): New splitters.
2438 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2441 * predict.c (build_predict_expr): Use void_type_node for the tree
2442 type, instead of NULL_TREE.
2444 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2446 * config/i386/i386.c (contains_aligned_value_p): Return true
2448 (ix86_data_alignment): Align TCmode to 128bits.
2449 (ix86_local_alignment): Likewise.
2451 2008-07-03 Andrew Haley <aph@redhat.com>
2454 * vec.h (VEC_TA): New.
2455 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2456 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2457 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2458 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2459 (C_COMMON_FIXED_TYPES): Remove first arg.
2460 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2461 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2462 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2463 not to use empty macro arguments.
2465 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2467 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2468 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2469 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2470 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2471 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2472 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2473 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2474 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2475 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2476 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2477 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2478 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2479 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2480 config/rs6000/e500crtres64gpr.asm,
2481 config/rs6000/e500crtres64gprctr.asm,
2482 config/rs6000/e500crtrest32gpr.asm,
2483 config/rs6000/e500crtrest64gpr.asm,
2484 config/rs6000/e500crtresx32gpr.asm,
2485 config/rs6000/e500crtresx64gpr.asm,
2486 config/rs6000/e500crtsav32gpr.asm,
2487 config/rs6000/e500crtsav64gpr.asm,
2488 config/rs6000/e500crtsav64gprctr.asm,
2489 config/rs6000/e500crtsavg32gpr.asm,
2490 config/rs6000/e500crtsavg64gpr.asm,
2491 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2492 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2493 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2494 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2495 config/sparc/sol2-cn.asm: Remove .file directives.
2497 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2499 * resource.c (mark_referenced_resources): Look inside
2500 UNSPEC_VOLATILEs and ASM_INPUTs.
2502 2008-07-02 Ian Lance Taylor <iant@google.com>
2504 * rtlanal.c (add_reg_note): New function.
2505 * rtl.h (add_reg_note): Declare.
2506 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2507 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2508 * builtins.c (expand_builtin_longjmp): Likewise.
2509 (expand_builtin_nonlocal_goto): Likewise.
2510 * calls.c (emit_call_1, expand_call): Likewise.
2511 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2512 * cfglayout.c (fixup_reorder_chain): Likewise.
2513 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2514 (commit_one_edge_insertion): Likewise.
2515 * combine.c (move_deaths, distribute_notes): Likewise.
2516 * df-problems.c (df_set_note): Likewise.
2517 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2518 (set_unique_reg_note): Likewise.
2519 (emit_copy_of_insn_after): Likewise.
2520 * expr.c (expand_expr_real): Likewise.
2521 * gcse.c (add_label_notes): Likewise.
2522 * haifa-sched.c (create_check_block_twin): Likewise.
2523 * jump.c (mark_jump_label_1): Likewise.
2524 * loop-doloop.c (add_test, doloop_modify): Likewise.
2525 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2526 * lower-subreg.c (move_eh_region_note): Likewise.
2527 * optabs.c (emit_libcall_block): Likewise.
2528 * predict.c (predict_insn): Likewise.
2529 (combine_predictions_for_insn): Likewise.
2530 * recog.c (peephole2_optimize): Likewise.
2531 * regmove.c (try_auto_increment): Likewise.
2532 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2533 * reload.c (find_reloads): Likewise.
2534 * reload1.c (fixup_eh_region_note): Likewise.
2535 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2536 * reorg.c (delete_prior_computation): Likewise.
2537 (delete_computation, dbr_schedule): Likewise.
2538 * config/pa/pa.c (legitimize_pic_address): Likewise.
2539 * config/sh/sh.c (sh_reorg): Likewise.
2541 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2544 * config/libgcc-glibc.ver: Add %exclude.
2545 * config/m32r/libgcc-glibc.ver: Likwise.
2546 * config/s390/libgcc-glibc.ver: Likwise.
2547 * config/sh/libgcc-glibc.ver: Likwise.
2548 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2550 * config/i386/libgcc-glibc.ver: New.
2552 * config/i386/libgcc-x86_64-glibc.ver: Removed.
2554 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2556 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2557 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2558 i[34567]86-*-linux*, x86_64-*-linux*. Add
2559 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2560 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2561 x86_64-*-linux*. Add i386/t-linux to tmake_file for
2562 i[34567]86-*-linux*, x86_64-*-linux*.
2564 * libgcc-std.ver: Add empty GCC_4.4.0.
2566 * mkmap-symver.awk: Support multiple versions per symbol.
2568 * config/i386/i386.c (ix86_init_builtins): Always define
2569 __builtin_fabsq and __builtin_copysignq with fallbacks.
2570 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2571 and __builtin_copysignq if SSE2 isn't available.
2573 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2574 (LIBGCC2_TF_CEXT): Likwise.
2577 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2579 * config/i386/sfp-machine.h: Moved to libgcc.
2581 * config/i386/sfp-machine.h: New.
2582 * config/i386/t-linux: Likwise.
2584 * config/i386/t-darwin: Remove softfp_wrap_start and
2586 * config/i386/t-darwin64: Likewise.
2588 * config/i386/t-fprules-softfp64: Renamed to ...
2589 * config/i386/t-fprules-softfp: This.
2591 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2592 and softfp_wrap_end.
2594 2008-07-02 Jason Merrill <jason@redhat.com>
2596 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2598 * tree.c (ctor_to_list): New fn.
2599 * tree.h: Declare it.
2600 (CONSTRUCTOR_ELT): New macro.
2601 (CONSTRUCTOR_NELTS): New macro.
2603 2008-07-02 Richard Guenther <rguenther@suse.de>
2605 * tree-ssa-structalias.c (struct variable_info): Reorder
2606 to fill padding on 64bit hosts. Make collapsed_to an int.
2607 (get_varinfo_fc): Deal with that.
2608 (new_var_info): Likewise.
2609 (collapse_rest_of_var): Likewise.
2611 2008-07-02 Joshua Sumali <jsumali@redhat.com>
2613 * doc/install.texi (--enable-java-home): Document.
2614 (--enable-aot-compile-rpm): Likewise.
2615 (--with-arch-directory): Likewise.
2616 (--with-os-directory): Likewise.
2617 (--with-origin-name): Likewise.
2618 (--with-arch-suffix): Likewise.
2619 (--with-jvm-root-dir): Likewise.
2620 (--with-jvm-jar-dir): Likewise.
2621 (--with-python-dir): Likewise.
2623 2008-07-02 Richard Guenther <rguenther@suse.de>
2625 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2626 from decls explicitly. Merge operand checking from tuples.
2628 2008-07-02 Martin Jambor <mjambor@suse.cz>
2630 * tree-switch-conversion.c: Included timevar.h which I forgot before.
2632 2008-07-02 Martin Jambor <mjambor@suse.cz>
2634 * tree-switch-conversion.c: Included timevar.h
2635 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2637 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2639 2008-07-02 Martin Jambor <mjambor@suse.cz>
2641 * tree-switch-conversion.c: Corrected various comments and
2643 (build_constructors): Fixed minor formatting mistakes.
2645 * invoke.texi (Optimize Options): Corrected the
2646 switch-conversion-max-branch-ratio parameter.
2648 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
2650 * final.c (asm_insn_count): Return zero for an empty asm body.
2652 2008-07-02 Richard Guenther <rguenther@suse.de>
2654 * bitmap.h (bitmap_set_bit): Return bool.
2655 (bitmap_clear_bit): Likewise.
2656 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
2657 write to the bitmap if it would.
2658 (bitmap_clear_bit): Likewise.
2659 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2660 bitmap_set_bit return value.
2661 (add_pred_graph_edge): Likewise.
2662 (add_graph_edge): Likewise.
2663 (do_sd_constraint): Likewise.
2664 (do_ds_constraint): Likewise.
2666 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2668 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2669 Fix -Wc++-compat and/or -Wcast-qual warnings.
2670 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2671 gen_regparm_prefix): Likewise.
2672 * vmsdbgout.c (write_modbeg, lookup_filename,
2673 vmsdbgout_source_line, vmsdbgout_init): Likewise.
2675 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2677 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2678 defaults.h definition apply.
2680 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2682 * function.c (assign_parm_remove_parallels): New.
2683 (assign_parm_setup_block_p): Do not return true for non-BLKmode
2685 (assign_parm_setup_block): Do not handle them.
2686 (assign_parm_setup_reg, assign_parm_setup_stack): Call
2687 assign_parm_remove_parallels.
2689 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2691 * c-typeck.c (convert_for_assignment): Use
2692 vector_targets_convertible_p.
2693 * c-common.c (vector_targets_convertible_p): New.
2694 * c-common.h (vector_targets_convertible_p): New prototype.
2695 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2696 opaque_p_V2SI_type_node.
2698 2008-07-01 Steve Ellcey <sje@cup.hp.com>
2700 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2703 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
2705 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2706 TFmode constants via two element DImode vector for hosts with
2707 HOST_BITS_PER_WIDE_INT < 64.
2708 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2709 also for HOST_BITS_PER_WIDE_INT < 64.
2711 2008-07-01 Richard Guenther <rguenther@suse.de>
2713 PR tree-optimization/36666
2714 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2715 (get_constraint_exp_from_ssa_var): Split into ...
2716 (get_constraint_exp_for_temp): ... this ...
2717 (get_constraint_for_ssa_var): ... and that.
2718 Return constraint expressions for all touched sub-fields
2719 if the results address is not taken.
2720 (process_constraint): Remove assertion that aggregate
2721 assignments do not happen at this place.
2722 (get_constraint_for_component_ref): Add address_p argument.
2723 Return constraint expressions for all touched sub-fields
2724 if the results address is not taken.
2725 (do_deref): Use get_constraint_exp_for_temp.
2726 (get_constraint_for_1): Rename from ...
2727 (get_constraint_for): ... this. Add the old function as wrapper.
2728 (do_structure_copy): Use get_constraint_for_1.
2730 2008-07-01 Martin Jambor <mjambor@suse.cz>
2732 * Makefile.in (tree-switch-conversion.o): Add.
2733 (OBJS-common): Add tree-swtch-conversion.o.
2734 * passes.c (init_optimization_passes): Add pass_convert_switch.
2735 * tree-pass.h: (pass_convert_switch): Add.
2736 * tree-switch-conversion.c: New file.
2737 * gcc.dg/tree-ssa/cswtch.c: New testcase.
2738 * common.opt (ftree-cswtch): New option.
2739 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2740 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2741 * opts.c (decode_options): Set flag_tree_switch_conversion when
2742 optimization level is >= 2.
2743 * doc/invoke.texi (Optimize Options): Added description of
2744 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2746 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2748 * config/darwin-driver.c (darwin_default_min_version): Fix
2749 -Wc++-compat warnings.
2751 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
2753 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2756 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2758 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2760 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2762 PR rtl-optimization/34744
2763 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2764 (df_scan_free_internal): Free data structures not
2765 allocated in storage pools.
2766 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2767 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2768 df_scan_free_mws_vec.
2769 * dse.c (dse_step6): Free offset_map_p and offset_map_n
2772 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
2774 * config/i386/i386.c (contains_aligned_value_p): Return true
2776 (ix86_function_arg_boundary): Return its natural boundary
2778 (return_in_memory_32): Don't check TDmode.
2779 (ix86_split_to_parts): Support splitting into 4 parts and
2780 support TFmode for 32bit target.
2781 (ix86_split_long_move): Support splitting into 4 parts.
2782 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2784 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2785 (ix86_init_builtins): Here.
2786 (ix86_scalar_mode_supported_p): Always return true for TFmode.
2787 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2788 'q' and 'w', respectively.
2790 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2792 (movtf_internal): Likewise.
2793 (<code>tf2): Likewise.
2794 (*absnegtf2_sse): Likewise.
2795 (copysign<mode>3): Likewise.
2796 (copysign<mode>3_const): Likewise.
2797 (copysign<mode>3_var): Likewise.
2798 (define_split UNSPEC_COPYSIGN): Likewise.
2799 * config/i386/sse.md (*nandtf3): Likewise.
2800 (<code>tf3): Likewise.
2801 (*<code>tf3): Likewise.
2803 2008-06-30 Joey Ye <joey.ye@intel.com>
2804 H.J. Lu <hongjiu.lu@intel.com>
2806 * global.c (compute_regsets): Set frame_pointer_needed here.
2807 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2809 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2811 * doc/install.texi (specific): Expand Windows build notes.
2813 2008-06-30 Ira Rosen <irar@il.ibm.com>
2815 PR tree-optimization/36648
2816 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2817 number of prolog iterations by step. Fix the comment.
2819 2008-06-30 Richard Guenther <rguenther@suse.de>
2822 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2823 handle calls from ECF_MALLOC functions.
2824 (handle_pure_call): ECF_MALLOC functions do not return
2826 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2828 2008-06-29 Andreas Schwab <schwab@suse.de>
2830 * config/m68k/m68k.c (print_operand): Always print a float
2832 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2833 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2836 * config/rs6000/x-linux64: Remove never used file.
2838 2008-06-29 Richard Guenther <rguenther@suse.de>
2840 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2842 (struct alias_info): Move ...
2843 * tree-ssa-alias.c: ... here.
2844 (update_alias_info): Declare.
2845 (compute_may_aliases): Call it.
2846 (update_alias_info): New function.
2847 * tree-ssa-structalias.c (update_alias_info): Move ...
2848 * tree-ssa-alias.c (update_alias_info_1): ... here.
2849 * tree-ssa-structalias.c (process_constraint_1): Remove
2850 unused from_call argument. Rename to ...
2851 (process_constraint): ... this. Delete old wrapper.
2852 (make_constraint_to): Adjust callers.
2853 (handle_const_call): Likewise.
2854 (handle_pure_call): Likewise.
2855 (init_base_vars): Likewise.
2856 (handle_lhs_call): Likewise. Remove unnecessary constraint.
2857 (find_func_aliases): We don't need structure copies for
2859 (make_constraint_from_anything): Remove.
2860 (create_variable_info_for): For globals make constraints
2861 from escaped, not from anything.
2862 (compute_points_to_sets): Do not call update_alias_info.
2863 (ipa_pta_execute): Use make_constraint_from.
2865 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2867 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2868 (bitmap.o-warn, dominance.o-warn): New.
2869 * configure.ac (cxx_compat_warn): Delete.
2870 (loose_warn): Add -Wcast-qual and -Wc++-compat.
2871 * system.h: Remove #pragma diagnostic for -Wcast-qual and
2873 * configure: Regenerate.
2875 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2878 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2880 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2881 * df-scan.c (df_notes_rescan): Likewise.
2882 * ggc-page.c (set_page_table_entry): Likewise.
2883 * intl.c (gcc_gettext_width): Likewise.
2884 * varasm.c (get_unnamed_section, get_noswitch_section,
2885 get_section): Likewise.
2887 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
2889 * regrename.c (build_def_use): Don't copy RTX.
2891 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
2893 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2894 (Type Attributes): Fix nesting of @table and @subsection. Adjust
2895 punctuation. Use @ref instead of @xref.
2896 (Function Names): Remove stray @display/@end display.
2897 (C++ Attributes): Use @ref instead of @xref.
2898 (Deprecated Features): Fix punctuation around @xref.
2899 (Backwards Compatibility): Likewise.
2900 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2902 2008-06-28 Joseph Myers <joseph@codesourcery.com>
2904 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2905 constants for E500 double.
2907 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2909 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2910 element type of const_vector.
2912 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
2914 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2915 Remove FLAGS_REG clobber from expander pattern.
2916 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2917 (anddi3, andsi3, andhi3, andqi3): Ditto.
2918 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2919 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2920 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2921 (ashlsi3, ashlhi3, ashlqi3): Ditto.
2922 (ashrsi3, ashrhi3, ashrqi3): Ditto.
2923 (lshrsi3, lshrhi3, lshrqi3): Ditto.
2924 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2925 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2927 2008-06-28 Richard Guenther <rguenther@suse.de>
2929 * tree-ssa-structalias.c (callused_id, var_callused,
2930 callused_tree): Add.
2931 (handle_pure_call): New function.
2932 (find_func_aliases): Call it.
2933 (find_what_p_points_to): Handle the call-used set.
2934 (clobber_what_escaped): Likewise.
2935 (compute_call_used_vars): New function.
2936 (init_base_vars): Init the call-used variable.
2937 (do_sd_constraint): Do not propagate the solution from CALLUSED
2938 but use CALLUSED as a placeholder.
2939 (solve_graph): Likewise.
2940 * tree-flow-inline.h (gimple_call_used_vars): New function.
2941 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2942 (compute_call_used_vars): Declare.
2943 * tree-ssa-alias.c (set_initial_properties): Call
2944 compute_call_used_vars.
2945 (reset_alias_info): Clear call-used variables.
2946 (add_call_clobber_ops): Assert we are not called for const/pure
2947 functions. Remove handling of them.
2948 (add_call_read_ops): Handle pure functions by adding the
2949 call-used set of variables as VUSEs.
2950 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2951 (delete_tree_ssa): Free it.
2952 * tree-dfa.c (remove_referenced_var): Clear the var from the
2955 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
2957 * tree.c (build_varargs_function_type_list): New.
2958 (build_function_type_list_1): New.
2959 (build_function_type_list): Use build_function_type_list_1.
2960 * tree.h (build_varargs_function_type_list): New.
2962 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2965 * config/spu/spu.c (spu_builtin_splats): Do not generate
2966 invalid CONST_VECTOR expressions.
2967 (spu_expand_vector_init): Likewise.
2969 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
2971 * optabs.c (libfunc_decls): New variable.
2972 (libfunc_decl_hash, libfunc_decl_eq): New functions.
2973 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2974 for the same function twice.
2976 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
2978 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2979 ix86_expand_binary_operator directly.
2980 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
2982 (*ashrti3_1): Ditto.
2983 (*lshrti3_1): Ditto.
2984 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2985 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2986 using only one splitter. Conditionaly execute splitter before or
2987 after peephole2 pass.
2988 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2989 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
2990 Use only one alternative in asm template.
2991 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2993 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2994 "J" operand constraint for operand 2.
2995 (*ashldi3_cconly_rex64): Ditto.
2996 (*ashrdi3_cmp_rex64): Ditto.
2997 (*ashrdi3_cconly_rex64): Ditto.
2998 (*lshrdi3_cmp_rex64): Ditto.
2999 (*lshrdi3_cconly_rex64): Ditto.
3000 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3001 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3002 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3005 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3007 * gimplify.c (omp_is_private): Don't return true if decl is not
3008 already private on #pragma omp for or #pragma omp parallel for.
3011 * tree-cfg.c (struct move_stmt_d): Replace block field with
3012 orig_block and new_block fields.
3013 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3014 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3015 (move_block_to_fn): Replace vars_map and new_label_map arguments
3016 with struct move_stmt_d pointer.
3017 (replace_block_vars_by_duplicates): New function.
3018 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3019 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3020 all subblocks of ORIG_BLOCK to the new function. Call
3021 replace_block_vars_by_duplicates.
3022 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3023 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3024 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3025 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3026 (expand_omp): Temporarily set input_location to the location of
3027 region's controlling stmt.
3028 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3029 BIND_EXPR, push ctx->block_vars and gimplification vars into
3030 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3032 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3033 there are any BLOCK_VARS.
3034 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3035 OMP_PARALLEL or OMP_TASK stmt.
3036 (lower_omp): Save and restore input_location around the lower_omp_1
3039 2008-06-27 Richard Guenther <rguenther@suse.de>
3041 PR tree-optimization/36400
3042 PR tree-optimization/36373
3043 PR tree-optimization/36344
3044 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3045 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3046 (update_alias_info): Remove call clobbering code.
3047 (make_constraint_to): New helper function.
3048 (make_escape_constraint): Likewise.
3049 (handle_rhs_call): Use it on all pointer containing arguments.
3050 Also mark the static chain escaped.
3051 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3052 instead of ANYTHING.
3053 (make_constraint_from): New helper split out from ...
3054 (make_constraint_from_anything): ... here.
3055 (find_func_aliases): Add constraints for escape sites.
3056 (intra_create_variable_infos): Make constraints from NONLOCAL
3058 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3060 (clobber_what_p_points_to): Remove.
3061 (clobber_what_escaped): New function.
3062 (init_base_vars): Init NONLOCAL and ESCAPED.
3063 (do_sd_constraint): Do not propagate the solution from ESCAPED
3064 but use ESCAPED as a placeholder.
3065 (solve_graph): Likewise.
3066 * tree-flow.h (clobber_what_p_points_to): Remove.
3067 (clobber_what_escaped): Declare.
3068 * tree-ssa-alias.c (set_initial_properties): Call it.
3069 Remove code clobbering escaped pointers.
3071 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3073 * function.c (allocate_struct_function): Only allocate a unique
3074 funcdef_no if the decl is nonzero.
3076 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3078 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3079 * config/mips/mips.c (mips_split_const_insns): New function.
3080 * config/mips/mips.md (move_type): New attribute.
3081 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
3082 (dword_mode): New attribute.
3083 (type): Avoid long line. Map "move_type"s to "type"s,
3084 choosing "multi" for doubleword moves if appropriate.
3085 Swap MTC/MFC comments to match their declaration order.
3086 (extended_mips16): Default to "yes" if "move_type" is "sll0",
3087 "type" is "branch" or "jal" is "direct".
3088 (length): Handle "extended_mips16" first. Make the default
3089 "0" for "ghost" instructions. Set the length from "move_type".
3090 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3091 of "type", with "sll0" for the register alternative. Remove the
3092 "extended_mips16" attribute.
3093 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3094 of "type", with "shift_shift" for the register alternative.
3095 Remove the "length" attribute.
3096 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3097 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3098 of "type", with "andi" for the register alternative.
3099 (*zero_extendqihi2): Likewise.
3100 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3101 of "andi" instead of a "type" of "arith".
3102 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3104 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3105 (mov_<store>r, *mov<mode>_ra): Likewise.
3106 (extendsidi2): Use "move_type" instead of "type", with "move"
3107 for the register alternative.
3108 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3109 of "type", with "signext" for the register alternative.
3110 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3111 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3112 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3113 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3114 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3115 (unnamed branch insn): Likewise.
3116 (*movdi_gp32_fp64): Fold into...
3117 (*movdi_32bit): ...here.
3118 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3119 (*movdf_hardfloat): ...this new pattern.
3120 (*movdf_softfloat): Remove redundant FPR alternatives.
3121 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3122 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3123 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
3124 the "move" attribute.
3125 (*movdi_32bit): Use "move_type" instead of "type" and remove the
3126 "length" attribute. Use "fpload" and "fpstore" instead of "load"
3127 and "store" for COP loads and stores.
3128 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3129 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3130 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3131 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3132 (*movtf_mips16, *movv2sf): Likewise.
3133 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3134 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3135 (mfhc1<mode>): Use "move_type" instead of "move".
3136 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3137 (loadgp_blockage): Remove the "length" attribute.
3138 (blockage, set_got_version, update_got_version): Likewise.
3139 (call_internal): Remove the "extended_mips16" attribute.
3140 (call_value_internal, call_value_multiple_internal): Likewise.
3141 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3143 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3144 the "length" attribute.
3146 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3148 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3149 -Wcast-qual warnings.
3150 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3151 handle_pragma_pop_macro): Likewise.
3152 * collect2.c (resolve_lib_name): Likewise.
3153 * config/arc/arc.c (arc_init): Likewise.
3154 * config/arm/arm.c (neon_builtin_compare,
3155 locate_neon_builtin_icode): Likewise.
3156 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3157 * config/bfin/bfin.c (bfin_init_machine_status,
3158 bfin_optimize_loop): Likewise.
3159 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3160 * config/cris/cris.c (cris_init_expanders): Likewise.
3161 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3162 * config/darwin.c (machopic_indirection_eq,
3163 machopic_indirection_name, machopic_output_indirection): Likewise.
3164 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3165 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3166 frv_optimize_membar): Likewise.
3167 * config/i386/cygwin.h (mingw_scan,
3168 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3169 * config/i386/cygwin1.c (mingw_scan): Likewise.
3170 * config/i386/i386.c (machopic_output_stub): Likewise.
3171 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3172 i386_pe_unique_section): Likewise.
3173 * config/ia64/ia64.c (ia64_init_machine_status,
3174 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3176 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3177 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3178 * config/m68k/m68k.c (m68k_handle_option,
3179 m68k_sched_md_init_global): Likewise.
3180 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3181 mcore_unique_section): Likewise.
3182 * config/mips/mips.c (mips_block_move_straight,
3183 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3185 * config/mmix/mmix.c (mmix_init_machine_status,
3186 mmix_encode_section_info): Likewise.
3187 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3188 * config/rs6000/rs6000.c (rs6000_init_machine_status,
3189 print_operand_address, output_toc, redefine_groups,
3190 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3191 * config/s390/s390.c (s390_init_machine_status): Likewise.
3192 * config/score/score.c (score_block_move_straight,
3193 score_block_move_loop_body): Likewise.
3194 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3195 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3196 * emit-rtl.c (find_auto_inc): Likewise.
3197 * gcc.c (translate_options, process_command): Likewise.
3198 * reorg.c (dbr_schedule): Likewise.
3199 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3200 * xcoffout.c (xcoffout_declare_function): Likewise.
3202 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
3204 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3205 ipa-pta working again.
3207 2008-06-27 David Edelsohn <edelsohn@gnu.org>
3209 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3212 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
3214 * config.gcc (powerpc*-*-*): Add new core e500mc.
3215 * config/rs6000/e500mc.md: New file.
3216 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3218 (rs6000_override_options): Add e500mc case to
3219 processor_target_table. Altivec and Spe options not allowed
3220 with e500mc. Add isel instruction to e500mc by
3221 default. Initialize rs6000_cost for e500mc.
3222 (rs6000_issue_rate): Set issue rate for e500mc.
3223 * config/rs6000/rs6000.h (processor_type): Add
3224 PROCESSOR_PPCE500MC.
3225 (ASM_CPU_SPEC): Add e500mc.
3226 Set TARGET_ISEL to rs6000_isel.
3227 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3228 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3229 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3231 * doc/invoke.texi: Add e500mc to list of cpus.
3233 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3236 * c-lex.c (lex_charconst): Initialize unsignedp.
3238 2008-06-27 Olivier Hainque <hainque@adacore.com>
3240 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3241 documented assumptions.
3243 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
3245 * dwarf2out.c: Remove trailing white spaces. Break long line
3248 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
3250 * libfuncs.h (LTI_synchronize): New libfunc_index.
3251 (synchronize_libfunc): Declare.
3252 * builtins.c (expand_builtin_synchronize): Consider using
3253 synchronize_libfunc before falling back on an asm blockage.
3254 * config/mips/mips.c: Include libfuncs.h
3255 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3257 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
3259 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3260 parameter. Copy stack_reg to r11 where appropriate.
3261 (no_global_regs_above): Add gpr parameter.
3262 (rs6000_stack_info): Only add padding for SPE save area if we
3263 are saving SPE GPRs and CR.
3264 (saveres_routine_syms): New variable.
3265 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3267 (rs6000_savres_routine_sym): New function.
3268 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3270 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
3271 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
3272 Tweak FPR out-of-line saving.
3273 (rs6000_make_savres_rtx): New function.
3274 (rs6000_use_multiple_p): New function.
3275 (rs6000_savres_strategy): New function.
3276 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
3277 out-of-line if appropriate.
3278 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3279 if we are optimizing for size.
3280 (GP_SAVE_INLINE): Define.
3281 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3282 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3283 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3284 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3285 (*save_fpregs_<mode>): Add use of r11.
3286 (*restore_gpregs_<mode>): New insn.
3287 (*return_and_restore_gpregs_<mode>): New insn.
3288 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3290 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3291 (*restore_gpregs_spe): New insn.
3292 (*return_and_restore_gpregs_spe): New insn.
3293 * config/rs6000/predicates.md (save_world_operation): Fix check.
3295 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3297 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3298 this point, so assert that.
3300 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3302 * cfganal.c: Include vec.h and vecprim.h.
3303 (compute_idf): Import from...
3304 * tree-into-ssa (compute_idf): ...here.
3305 * basic-block.h (compute_idf): Export.
3307 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3309 * c-decl.c (merge_decls): Use !current_function_decl to check for
3310 extern declaration of C99 inline function being at file scope.
3312 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
3314 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3316 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3318 * alias.c (record_alias_subset, init_alias_analysis): Fix
3319 -Wc++-compat and/or -Wcast-qual warnings.
3320 * attribs.c (lookup_attribute_spec): Likewise.
3321 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3322 copy_bb, connect_traces,
3323 find_rarely_executed_basic_blocks_and_cr): Likewise.
3324 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3325 note_btr_set, migrate_btr_defs): Likewise.
3326 * builtins.c (result_vector, expand_builtin_memcpy,
3327 expand_builtin_mempcpy_args, expand_builtin_strncpy,
3328 builtin_memset_read_str, expand_builtin_printf,
3329 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3331 * caller-save.c (mark_set_regs): Likewise.
3332 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3333 * cgraph.c (cgraph_edge): Likewise.
3334 * combine.c (likely_spilled_retval_1): Likewise.
3335 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3336 htab_counts_entry_del, get_coverage_counts): Likewise.
3337 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3338 new_cselib_val): Likewise.
3339 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3340 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3342 * df-core.c (df_compact_blocks): Likewise.
3343 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3344 * df-scan.c (df_grow_reg_info, df_ref_create,
3345 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3346 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3347 df_record_entry_block_defs, df_record_exit_block_uses,
3348 df_bb_verify): Likewise.
3349 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3350 DF_REF_EXTRACT_MODE_CONST): New.
3351 * dominance.c (get_immediate_dominator, get_dominated_by,
3352 nearest_common_dominator, root_of_dom_tree,
3353 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3354 -Wc++-compat and/or -Wcast-qual warnings.
3355 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3356 record_store, replace_read, check_mem_read_rtx, scan_insn,
3357 dse_step1, dse_record_singleton_alias_set): Likewise.
3358 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3360 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3362 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3363 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3364 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3365 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3366 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3367 add_ranges_num, add_ranges_by_labels, file_info_cmp,
3368 file_name_acquire, output_file_names, add_const_value_attribute,
3369 premark_used_types_helper, file_table_eq, file_table_hash,
3370 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3371 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3372 -Wcast-qual warnings.
3373 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3374 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3375 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3376 gen_reg_rtx, start_sequence, init_emit): Likewise.
3377 * et-forest.c (et_new_occ, et_new_tree): Likewise.
3378 * except.c (init_eh_for_function, gen_eh_region,
3379 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3380 arh_to_landing_pad, arh_to_label, add_action_record,
3381 add_call_site, switch_to_exception_section): Likewise.
3382 * expmed.c (synth_mult): Likewise.
3383 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3384 store_expr): Likewise.
3385 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3387 * function.c (assign_stack_temp_for_type,
3388 allocate_struct_function, match_asm_constraints_1): Likewise.
3389 * gcov-io.c (gcov_allocate): Likewise.
3390 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3391 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3392 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3393 record_one_set, insert_expr_in_table, insert_set_in_table,
3394 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3395 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3396 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3397 -Wcast-qual warnings.
3399 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3401 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3402 -Wcast-qual warnings.
3403 * gcc.c (process_command): Likewise.
3404 * genattrtab.c (oballoc): Use XOBNEW.
3405 (oballocvec): Define.
3406 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3407 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3408 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3409 -Wc++-compat and/or -Wcast-qual warnings.
3410 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3411 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3412 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3413 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3414 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3415 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3416 add_excls, process_presence_absence_names,
3417 process_presence_absence_patterns, add_presence_absence,
3418 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3419 get_free_state, add_arc, get_free_automata_list_el,
3420 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3421 transform_3, cache_presence, create_ainsns, create_automata,
3422 create_state_ainsn_table, dfa_insn_code_enlarge,
3423 output_trans_func, output_min_issue_delay_func,
3424 output_dead_lock_func, output_reset_func,
3425 output_get_cpu_unit_code_func, output_dfa_start_func,
3426 expand_automata): Likewise.
3427 * genextract.c (gen_insn): Likewise.
3428 * gengtype-lex.l: Likewise.
3429 * gengtype.c (read_input_list, adjust_field_type,
3430 process_gc_options): Likewise.
3431 * genoutput.c (note_constraint): Likewise.
3432 * genpreds.c (mangle, add_constraint): Likewise.
3433 * genrecog.c (process_define_predicate, new_decision,
3434 add_to_sequence): Likewise.
3435 * gensupport.c (record_insn_name): Likewise.
3437 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3439 * config/i386/driver-i386.c (detect_caches_amd,
3440 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3441 and/or -Wcast-qual warnings.
3442 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3443 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3444 gt_pch_save): Likewise.
3445 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3446 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3447 * global.c (compute_regsets): Likewise.
3448 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3449 finish_graph_dump_file): Likewise.
3450 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3451 unlink_bb_notes): Likewise.
3452 * integrate.c (get_hard_reg_initial_val): Likewise.
3453 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3454 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3455 * local-alloc.c (update_equiv_regs): Likewise.
3456 * loop-invariant.c (check_invariant_table_size,
3457 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3459 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3460 altered_reg_used, mark_altered): Likewise.
3461 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3462 insert_var_expansion_initialization,
3463 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3464 release_var_copies): Likewise.
3465 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3466 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3467 analyze_accesses_for_phi_node, check_var_notmodified_p,
3468 check_allocation_function, find_sites_in_func,
3469 record_all_accesses_in_func, transform_access_sites,
3470 transform_allocation_sites): Likewise.
3471 * omp-low.c (new_omp_region, create_omp_child_function_name,
3472 check_omp_nesting_restrictions, check_combined_parallel,
3473 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3474 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3475 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3476 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3478 * opts-common.c (prune_options): Likewise.
3479 * opts.c (add_input_filename, print_filtered_help,
3480 get_option_state): Likewise.
3481 * params.c (add_params): Likewise.
3482 * passes.c (set_pass_for_id, next_pass_1,
3483 do_per_function_toporder, pass_fini_dump_file): Likewise.
3484 * postreload.c (reload_cse_simplify_operands): Likewise.
3485 * predict.c (tree_predicted_by_p, tree_predict_edge,
3486 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3488 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3490 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3492 * recog.c (check_asm_operands, validate_change_1): Likewise.
3493 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3494 subst_asm_stack_regs): Likewise.
3495 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3496 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3497 * regmove.c (reg_is_remote_constant_p): Likewise.
3498 * regrename.c (regrename_optimize, scan_rtx_reg,
3499 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3501 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3502 regstat_compute_calls_crossed): Likewise.
3503 * reload1.c (init_reload, new_insn_chain,
3504 has_nonexceptional_receiver, reload, copy_reloads,
3505 calculate_needs_all_insns, init_elim_table): Likewise.
3506 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3507 * rtl.c (shallow_copy_rtx_stat): Likewise.
3508 * rtlanal.c (parms_set): Likewise.
3509 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3510 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3511 * sched-ebb.c (earliest_block_with_similiar_load,
3512 add_deps_for_risky_insns): Likewise.
3513 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3514 schedule_region): Likewise.
3515 * see.c (eq_descriptor_pre_extension,
3516 hash_descriptor_pre_extension, hash_del_pre_extension,
3517 eq_descriptor_properties, hash_descriptor_properties,
3518 hash_del_properties, see_seek_pre_extension_expr,
3519 see_initialize_data_structures, see_print_register_properties,
3520 see_print_pre_extension_expr, see_delete_merged_def_extension,
3521 see_delete_unmerged_def_extension, see_emit_use_extension,
3522 see_pre_delete_extension, see_map_extension, see_commit_changes,
3523 see_analyze_merged_def_local_prop,
3524 see_analyze_merged_def_local_prop,
3525 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3526 see_set_prop_merged_def, see_set_prop_unmerged_def,
3527 see_set_prop_unmerged_use, see_print_one_extension,
3528 see_merge_one_use_extension, see_merge_one_def_extension,
3529 see_store_reference_and_extension, see_update_uses_relevancy,
3530 see_update_defs_relevancy): Likewise.
3531 * statistics.c (hash_statistics_hash, hash_statistics_eq,
3532 hash_statistics_free, curr_statistics_hash): Likewise.
3533 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3534 expand_asm_operands, expand_return, case_bit_test_cmp,
3535 expand_case): Likewise.
3536 * stor-layout.c (start_record_layout): Likewise.
3537 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3538 gt_pch_save_stringpool): Likewise.
3539 * tree-data-ref.c (hash_stmt_vertex_info,
3540 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3541 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3543 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
3546 * config/i386/i386.md : Change constraints of HImode and QImode
3547 immediate operands from "i" to "n". Change SImode "ni" constraint to
3548 "i" and SImode "rmi" constraint to "g". Remove all constraints
3549 from const0_operand and const1_operand predicated operands.
3550 (i): Change QImode and HImode attribute from "i" to "n".
3551 (*subqi_2): Change HImode operands to QImode.
3554 2008-06-25 Olivier Hainque <hainque@adacore.com>
3556 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3559 2008-06-25 Richard Guenther <rguenther@suse.de>
3561 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3562 not overflow the result type.
3564 2008-06-25 Richard Guenther <rguenther@suse.de>
3566 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3567 (vn_lookup): Likewise.
3569 2008-06-25 Richard Guenther <rguenther@suse.de>
3571 PR tree-optimization/35518
3572 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3573 * tree-sra.c (instantiate_element): Use fold_build3 to build
3575 (try_instantiate_multiple_fields): Likewise.
3577 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3579 * config/rs6000/rs6000.md: Change all string instruction's clobber to
3582 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3584 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3585 use_backchain_to_restore_sp to true
3586 if the offset of the link register save area would go over the 32k - 1
3587 offset limit of the load
3590 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
3592 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3593 anchor for the type-punning blurb. Cross-reference "Structures
3594 unions enumerations and bit-fields implementation". Provide a
3595 cast-through-pointer example. Make final sentence self-contained.
3596 * doc/implement-c.texi (Structures unions enumerations and
3597 bit-fields implementation): Cross-reference the type-punning blurb
3598 in the -fstrict-aliasing documentation.
3600 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3603 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3604 the memory instead of the memory itself for the save area.
3606 2008-06-24 Olivier Hainque <hainque@adacore.com>
3607 Nicolas Roche <roche@adacore.com>
3609 * gengtype.c (srcdir_len): size_t instead of int.
3610 (get_file_realbasename): New function. For F a filename, the real
3611 basename of F, with all the path components stripped.
3612 (get_file_srcdir_relative_path): New function. For F a filename, the
3613 relative path to F from $(srcdir).
3614 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3615 get_file_realbasename. Adjust the head comment.
3616 (get_prefix_langdir_index): New function. For F a filename, return the
3617 lang_dir_names[] relative index of the language directory that is
3619 (get_file_langdir): For F a filename, return the name of the language
3620 directory where F is located.
3621 (get_file_gtfilename): New function. The gt- output file name for an
3623 (get_output_file_with_visibility): Replace in-line computations with
3624 uses of get_file_gtfilename and get_prefix_langdir_index.
3625 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3627 2008-06-24 Jakub Jelinek <jakub@redhat.com>
3629 PR tree-optimization/36504
3630 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3631 references without base address.
3633 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3636 * calls.c (expand_call): Increase alignment for recursive functions.
3638 2008-06-23 Anatoly Sokolov <aesok@post.ru>
3640 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3641 (TARGET_FUNCTION_VALUE): New define.
3642 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3643 * config/avr/avr.h (FUNCTION_VALUE): Remove.
3645 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3647 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3648 (fmod<mode>3): Ditto.
3649 (remainderxf3): Ditto.
3650 (remainder<mode>3): Ditto.
3652 2008-06-23 Jakub Jelinek <jakub@redhat.com>
3655 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3656 REG is a hard register.
3658 PR tree-optimization/36508
3659 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3660 499, don't check it at all in release compilers.
3662 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3664 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3665 together with SSE_TARGET_MATH to disable insn pattern.
3666 (*fop_<MODEF:mode>_2_i387): Ditto.
3667 (*fop_<MODEF:mode>_3_i387): Ditto.
3669 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
3671 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3673 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3676 * gimplify.c (gimplify_asm_expr): Check the return code of
3677 parse_output_constraint call, set function return and is_inout
3680 2008-06-22 Ian Lance Taylor <iant@google.com>
3682 * c-lex.c (narrowest_unsigned_type): Change itk to int.
3683 (narrowest_signed_type): Likewise.
3684 * c-typeck.c (c_common_type): Change local variable mclass to enum
3686 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3687 tcc_comparison, not the tree code itself.
3688 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3689 (c_expand_expr): Cast modifier to enum expand_modifier.
3690 * c-common.h (C_RID_CODE): Add casts.
3691 (C_SET_RID_CODE): Define.
3692 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3693 (c_lex_one_token): Add cast to avoid warning.
3694 (c_parser_objc_type_name): Rename local typename to type_name.
3695 (check_no_duplicate_clause): Change code parameter to enum
3697 (c_parser_omp_var_list_parens): Change kind parameter to enum
3699 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3700 c_parser_omp_list_var_parens.
3701 (c_parser_omp_threadprivate): Likewise.
3702 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3703 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3704 * c-format.c (NO_FMT): Define.
3705 (printf_length_specs): Use NO_FMT.
3706 (asm_fprintf_length_specs): Likewise.
3707 (gcc_diag_length_specs): Likewise.
3708 (scanf_length_specs): Likewise.
3709 (strfmon_length_specs): Likewise.
3710 (gcc_gfc_length_specs): Likewise.
3711 (printf_flag_specs): Change 0 to STD_C89.
3712 (asm_fprintf_flag_specs): Likewise.
3713 (gcc_diag_flag_specs): Likewise.
3714 (gcc_cxxdiag_flag_specs): Likewise.
3715 (scanf_flag_specs): Likewise.
3716 (strftime_flag_specs): Likewise.
3717 (strfmon_flag_specs): Likewise.
3718 (print_char_table): Likewise.
3719 (asm_fprintf_char_table): Likewise.
3720 (gcc_diag_char_table): Likewise.
3721 (gcc_tdiag_char_table): Likewise.
3722 (gcc_cdiag_char_table): Likewise.
3723 (gcc_cxxdiag_char_table): Likewise.
3724 (gcc_gfc_char_table): Likewise.
3725 (scan_char_table): Likewise.
3726 (time_char_table): Likewis.
3727 (monetary_char_table): Likewise.
3728 * c-format.h (BADLEN): Likewise.
3730 2008-06-21 Ian Lance Taylor <iant@google.com>
3732 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3733 Define END_OF_BASE_TREE_CODES around inclusion.
3734 * tree.c (tree_code_type): New global array.
3735 (tree_code_length, tree_code_name): Likewise.
3736 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3738 (all-tree.def, s-alltree): New targets.
3739 (gencheck.h, s-gencheck): Remove.
3740 (tree.o): Depend upon all-tree.def.
3741 (build/gencheck.o): Remove gencheck.h dependency.
3742 (mostlyclean): Don't remove gencheck.h.
3743 * c-common.h (enum c_tree_code): Remove.
3744 * c-lang.c (tree_code_type): Remove.
3745 (tree_code_length, tree_code_name): Remove.
3746 * gencheck.c (tree_codes): Include all-tree.def, rather than
3747 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
3749 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3751 * cp/cp-tree.h (enum cplus_tree_code): Remove.
3752 (operator_name_info): Size to MAX_TREE_CODES.
3753 (assignment_operator_name_info): Likewise.
3754 * cp/cp-lang.c (tree_code_type): Remove.
3755 (tree_code_length, tree_code_name): Remove.
3756 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3757 (assignment_operator_name_info): Likewise.
3758 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3760 * cp/mangle.c (write_expression): Likewise.
3761 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3762 * fortran/f95-lang.c (tree_code_type): Remove.
3763 (tree_code_length, tree_code_name): Remove.
3764 * java/java-tree.h (enum java_tree_code): Remove.
3765 * java/lang.c (tree_code_type): Remove.
3766 (tree_code_length, tree_code_name): Remove.
3767 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3768 * objc/objc-act.h (enum objc_tree_code): Remove.
3769 * objc/objc-lang.c (tree_code_type): Remove.
3770 (tree_code_length, tree_code_name): Remove.
3771 * objcp/objcp-lang.c (tree_code_type): Remove.
3772 (tree_code_length, tree_code_name): Remove.
3773 * ada/ada-tree.h (enum gnat_tree_code): Remove.
3774 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3775 * ada/misc.c (tree_code_type): Remove.
3776 (tree_code_length, tree_code_name): Remove.
3778 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
3780 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3781 the grand_bitmap_obstack.
3783 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3785 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3786 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3787 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3788 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3789 move_stmt_r, new_label_mapper): Likewise.
3790 * tree-complex.c (cvc_lookup): Likewise.
3791 * tree-dfa.c (create_function_ann): Likewise.
3792 * tree-dump.c (dump_register): Likewise.
3793 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3794 find_phi_replacement_condition): Likewise.
3795 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3796 tree_function_versioning): Likewise.
3797 * tree-into-ssa.c (cmp_dfsnum): Likewise.
3798 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3799 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3800 get_nonlocal_debug_decl, convert_nonlocal_reference,
3801 convert_nonlocal_omp_clauses, get_local_debug_decl,
3802 convert_local_reference, convert_local_omp_clauses,
3803 convert_nl_goto_reference, convert_nl_goto_receiver,
3804 convert_tramp_reference, convert_call_expr): Likewise.
3805 * tree-outof-ssa.c (contains_tree_r): Likewise.
3806 * tree-parloops.c (reduction_phi, initialize_reductions,
3807 eliminate_local_variables_1, add_field_for_reduction,
3808 add_field_for_name, create_phi_for_local_result,
3809 create_call_for_reduction_1, create_loads_for_reductions,
3810 create_stores_for_reduction, create_loads_and_stores_for_name):
3812 * tree-phinodes.c (allocate_phi_node): Likewise.
3813 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3814 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3815 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3816 * tree-ssa-coalesce.c (compare_pairs): Likewise.
3817 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3818 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3819 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3820 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3821 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3822 vn_nary_op_insert): Likewise.
3823 * tree-ssa.c (redirect_edge_var_map_add,
3824 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3825 * tree-vectorizer.c (vectorize_loops): Likewise.
3826 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3827 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3828 tree_cons_stat, build1_stat, build_variant_type_copy,
3829 decl_init_priority_lookup, decl_fini_priority_lookup,
3830 decl_priority_info, decl_restrict_base_lookup,
3831 decl_restrict_base_insert, decl_debug_expr_lookup,
3832 decl_debug_expr_insert, decl_value_expr_lookup,
3833 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3834 type_hash_add, get_file_function_name, tree_check_failed,
3835 tree_not_check_failed, tree_range_check_failed,
3836 omp_clause_range_check_failed, build_omp_clause,
3837 build_vl_exp_stat): Likewise.
3838 * value-prof.c (gimple_histogram_value,
3839 gimple_duplicate_stmt_histograms): Likewise.
3840 * var-tracking.c (attrs_list_insert, attrs_list_copy,
3841 unshare_variable, variable_union_info_cmp_pos, variable_union,
3842 dataflow_set_different_1, dataflow_set_different_2,
3843 vt_find_locations, variable_was_changed, set_variable_part,
3844 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3845 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3846 section_entry_hash, object_block_entry_eq,
3847 object_block_entry_hash, create_block_symbol,
3848 initialize_cold_section_name, default_function_rodata_section,
3849 strip_reg_name, set_user_assembler_name, const_desc_eq,
3850 build_constant_desc, output_constant_def, lookup_constant_def,
3851 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3852 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3853 default_internal_label): Likewise.
3854 * varray.c (varray_init, varray_grow): Likewise.
3855 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3857 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
3859 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3860 operators for "test" insn. Macroize insn using SWI mode macro.
3861 (*jcc_fused_2): Ditto.
3862 (*jcc_fused_3): Macroize insn using SWI mode macro.
3863 (*jcc_fused_4): Ditto.
3865 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
3867 * tree-ssa-pre.c: Fix typo in comment.
3868 (init_antic, fini_antic): Add explicit funtions for
3869 initializing and deinitializing ANTIC and AVAIL sets.
3870 (create_expression_by_pieces): Fix typo in comment.
3871 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3872 (execute_pre): Eventually dump details about ANTIC_IN.
3874 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3876 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3877 * gcc.c (translate_options, init_spec, store_arg, read_specs,
3878 add_to_obstack, file_at_path, find_a_file, execute,
3879 add_preprocessor_option, add_assembler_option, add_linker_option,
3880 process_command, insert_wrapper, do_option_spec, do_self_spec,
3881 spec_path, do_spec_1, is_directory, main, used_arg,
3882 getenv_spec_function): Likewise.
3883 * tlink.c (symbol_hash_lookup, file_hash_lookup,
3884 demangled_hash_lookup, symbol_push, file_push, frob_extension):
3887 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3889 * doc/rtl.texi: Updated subreg section.
3891 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3894 * cgraphunit.c (cgraph_process_new_functions): Don't clear
3895 node->needed and node->reachable.
3896 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3897 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3898 (expand_task_call): Don't call expand_task_copyfn.
3899 (expand_task_copyfn): Renamed to...
3900 (finalize_task_copyfn): ... this.
3902 2008-06-19 Jan Hubicka <jh@suse.cz>
3904 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3905 clobbering framepointer.
3907 2008-06-19 Jan Hubicka <jh@suse.cz>
3909 * tree-optimize.c (execute_early_local_optimizations): Set
3910 cgraph_state only at first invocation.
3912 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3914 * system.h (-Wc++-compat): Activate as a warning, no an error.
3916 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3918 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3919 instead of "#" in insn asm template.
3920 (*jcc_fused_2): Ditto.
3922 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3924 * config/i386/i386.h (ix86_tune_indices)
3925 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3926 (TARGET_FUSE_CMP_AND_BRANCH): New define.
3927 * config/i386/i386.md (*jcc_fused_1): New insn pattern
3928 (*jcc_fused_2): Ditto.
3929 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3930 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3931 (print operand): Handle 'E' and 'e' code.
3933 2008-06-19 Anatoly Sokolov <aesok@post.ru>
3935 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3936 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3937 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3939 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
3941 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3943 (cgraph_expand_function): Use local copy of decl.
3944 (cgraph_expand_all_functions): Remove redundant initialization of
3946 (cgraph_optimize): Reword internal_error message.
3948 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
3950 * arm-protos.h (arm_return_in_memory): Remove public
3951 arm_return_in_memory() prototype.
3952 * arm.c (arm_return_in_memory): Add static prototype, add target
3953 hook macro, change definition and comments.
3954 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3956 2008-06-19 Ben Elliston <bje@au.ibm.com>
3958 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3959 real.c: Remove references to IEEE 754R.
3960 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3961 * doc/libgcc.texi (Decimal float library routines): Likewise.
3963 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3965 * targhooks.h (struct gcc_target): New member unwind_word_mode.
3966 (default_unwind_word_mode): Add prototype.
3967 * targhooks.c (default_unwind_word_mode): New function.
3968 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3969 instead of word_mode.
3970 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3971 (TARGET_INITIALIZER): Use it.
3973 * c-common.c (handle_mode_attribute): Support "unwind_word"
3975 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3977 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3978 word_mode to access SjLj_Function_Context member "data".
3979 (sjlj_emit_dispatch_table): Likewise. Also, perform type
3980 conversion from targetm.eh_return_filter_mode () to
3981 targetm.unwind_word_mode () if they differ.
3983 * builtin-types.def (BT_UNWINDWORD): New primitive type.
3984 (BT_FN_UNWINDWORD_PTR): New function type.
3985 (BT_FN_WORD_PTR): Remove.
3986 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3987 * except.c (expand_builtin_extend_pointer): Convert pointer to
3988 targetm.unwind_word_mode () instead of word_mode.
3990 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3991 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3992 (spu_unwind_word_mode): New function.
3993 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3994 (TARGET_UNWIND_WORD_MODE): Define.
3995 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3997 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3999 * config/spu/spu.c (reg_align): Remove.
4000 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4001 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4002 (spu_split_store): Likewise.
4004 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
4006 * gcc/tree-vn.c: Fix typo in comment.
4008 2008-06-18 Jan Hubicka <jh@suse.cz>
4010 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4011 toplevel reorder too.
4013 2008-06-18 Jan Hubicka <jh@suse.cz>
4015 * c-opts.c (c_common_post_options): PCH is not compatible with
4017 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4018 -fno-toplevel-reorder by default now.
4020 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4022 PR documentation/30739
4023 * doc/install.texi (Prerequisites): Document dependency on awk.
4025 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
4026 Ian Lance Taylor <iant@google.com>
4028 PR rtl-optimization/35604
4029 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4030 only want to change jump destinations, not eventual label comparisons.
4032 2008-06-16 Jan Hubicka <jh@suse.cz>
4034 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4036 (cgraph_analyze_function): Likewise.
4038 2008-06-16 Jan Hubicka <jh@suse.cz>
4040 * cgraph.h (cgraph_mark_if_needed): New function.
4041 * cgraphunit.c (cgraph_mark_if_needed): New function.
4042 * c-decl.c (duplicate_decl): Use it.
4044 2008-06-16 Jan Hubicka <jh@suse.cz>
4046 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4049 2008-06-16 Jan Hubicka <jh@suse.cz>
4051 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4053 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
4054 Kazu Hirata <kazu@codesourcery.com>
4055 Maxim Kuvyrkov <maxim@codesourcery.com
4057 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4058 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4059 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4060 EXTRA_SPEC_FUNCTIONS.
4061 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4062 (DRIVER_SELF_SPECS): Adjust.
4063 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4064 * config/mips/st.h, config/mips/t-st: New.
4065 * config/mips/driver-native.c, config/mips/x-native: New.
4066 * doc/invoke.texi (MIPS): Document 'native' value for -march and
4069 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4071 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4073 (ISA_HAS_FP_CONDMOVE): New macro.
4074 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4075 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4076 (ISA_HAS_NMADD3_NMSUB3): New macro.
4077 * config/mips/mips.c (mips_rtx_costs): Update.
4078 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4079 compiling for ST Loongson 2E/2F.
4080 (madd<mode>): Rename to madd4<mode>. Update.
4081 (madd3<mode>): New pattern.
4082 (msub<mode>): Rename to msub4<mode>. Update.
4083 (msub3<mode>): New pattern.
4084 (nmadd<mode>): Rename to nmadd4<mode>. Update.
4085 (nmadd3<mode>): New pattern.
4086 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
4087 (nmadd3<mode>_fastmath): New pattern.
4088 (nmsub<mode>): Rename to nmsub4<mode>. Update.
4089 (nmsub3<mode>): New pattern.
4090 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
4091 (nmsub3<mode>_fastmath): New pattern.
4092 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4094 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
4096 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4097 (DF_REF_INSN_INFO): New.
4098 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4099 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4100 with a NULL DF_REF_INSN_INFO.
4101 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4103 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4104 DF_INSN_INFO_EQ_USES): New.
4105 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4106 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4107 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4108 * df-core.c: Update comment for above changes.
4109 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4110 DF_INSN_UID_* macros.
4111 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4112 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4113 insn rtx. Update all callers.
4114 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4115 df_ref_create_structure, df_insn_refs_collect): Likewise.
4116 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4117 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4118 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4119 macros to access the insn refs.
4120 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4121 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4122 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4123 for accessing the refs.
4124 (try_fwprop_subst): Likewise.
4125 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4126 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4127 for accessing the refs.
4128 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4129 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4130 to look at the insn refs.
4131 (record_uses): Likewise.
4132 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4134 (mark_artificial_uses): Don't mark_insn for artificial refs.
4135 (mark_reg_rependencies): Likewise.
4137 * doc/rtl.texi: Remove documentation of ADDRESSOF.
4139 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4141 * configure: Regenerate.
4143 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4145 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4146 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4147 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4149 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4151 * config/avr/avr.c (avr_mcu_t): Add attiny167.
4152 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4153 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4155 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4157 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4158 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4159 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4161 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4163 * tree-ssa-sccvn.c: Fix format of comments.
4165 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4167 * cgraph.c: Remove unneeded forward declarations of eq_node()
4170 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
4172 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4174 (see_update_relevancy): Likewise.
4175 * fwprop.c (try_fwprop_subst): Likewise.
4176 * rtlanal.c (noop_move_p): Likewise.
4177 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4178 notes to non-existing libcall blocks.
4179 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
4181 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4182 (dead_libcall_p): Remove.
4183 (delete_trivially_dead_insns): Don't use it.
4184 * web.c (union_defs): Remove comment about keeping nops.
4185 * gcse.c (hash_scan_insn): Don't take libcall pointers.
4186 (compute_hash_table_work): Don't track libcall notes.
4187 (do_local_cprop): Don't take libcall pointers. Don't update
4189 (adjust_libcall_notes): Deleted.
4190 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4191 ever have existed in the first place).
4192 (replace_store_insn): Don't try to remove libcall notes.
4193 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4194 (resolve_reg_notes): Don't call them.
4195 (resolve_simple_move): Likewise.
4196 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4197 Don't remove REG_RETVAL notes.
4198 * emit-rtl.c (try_split): Don't update libcall notes.
4199 (emit_copy_of_insn_after): Dito.
4200 * cselib.c (cselib_current_insn_in_libcall): Remove.
4201 (cselib_process_insn): Don't set/clear it.
4202 (new_elt_loc_list): Don't record it.
4203 (cselib_init): Don't initialize it.
4204 * cselib.c (struct elt_loc_list): Remove in_libcall field.
4205 * loop-invariant.c (find_invariant_insn): Don't look for libcall
4207 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4208 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4209 (init_deps): Don't initialize it.
4210 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4211 * combine.c (delete_noop_moves): Don't update libcall notes.
4212 (can_combine_p): Remove now pointless #if 0 block.
4213 (try_combine): Remove another obsolete #if 0 block.
4214 (distribute_notes): Don't distribute libcall notes.
4215 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4216 * dce.c (libcall_dead_p): Remove.
4217 (delete_unmarked_insns): Don't handle libcall blocks.
4218 (preserve_libcall_for_dce): Remove.
4219 (prescan_insns_for_dce): Don't special-case libcall block insns.
4220 * reload1 (reload): Don't handle libcall notes.
4221 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4224 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4226 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4227 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4228 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4230 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4232 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4233 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4234 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4236 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4238 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4240 2008-06-16 Ira Rosen <irar@il.ibm.com>
4242 PR tree-optimization/36493
4243 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4244 the arguments list. Use VECTYPE to create vector pointer.
4245 (vectorizable_store): Fail if accesses through a pointer to vectype
4246 do not alias the original memory reference operands.
4247 Call vect_create_data_ref_ptr without the removed argument.
4248 (vectorizable_load): Likewise.
4249 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4252 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
4255 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4258 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4260 * config/mips/loongson2ef.md: New file.
4261 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4262 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4263 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4264 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4265 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4267 (loongson2ef.md): New include.
4268 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4269 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4270 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4271 (loongson_gt_<mode>, loongson_extract_halfword)
4272 (loongson_insert_halfword_0, loongson_insert_halfword_2)
4273 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4274 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4275 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4276 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4277 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4278 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4279 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4280 (vec_interleave_low<mode>): Define type attribute.
4281 * config/mips/mips.c (mips_ls2): New static variable.
4282 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4283 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4284 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4285 Implement target scheduling hooks.
4286 (mips_multipass_dfa_lookahead): Update to handle tuning for
4288 (mips_sched_init): Initialize data for Loongson scheduling.
4289 (mips_ls2_variable_issue): New static function.
4290 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4292 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4293 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4294 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4295 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4296 Handle ST Loongson 2E/2F cores.
4297 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4299 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4301 * omp-low.c (extract_omp_for_data): Fix comment typo.
4304 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4306 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4307 FIXME note about gcc/config.guess.
4308 * doc/options.texi (Option file format): Remove non-ASCII bytes.
4309 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4310 * doc/cppopts.texi: Likewise.
4311 * doc/extend.texi: Likewise.
4312 * doc/gcc.texi: Likewise.
4313 * doc/gccint.texi: Likewise.
4314 * doc/gcov.texi: Likewise.
4315 * doc/gty.texi: Likewise.
4316 * doc/hostconfig.texi: Likewise.
4317 * doc/install.texi: Likewise.
4318 * doc/invoke.texi: Likewise.
4319 * doc/loop.texi: Likewise.
4320 * doc/makefile.texi: Likewise.
4321 * doc/md.texi: Likewise.
4322 * doc/passes.texi: Likewise.
4323 * doc/tm.texi: Likewise.
4324 * doc/tree-ssa.texi: Likewise.
4325 * doc/trouble.texi: Likewise.
4327 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
4328 Nathan Sidwell <nathan@codesourcery.com>
4329 Maxim Kuvyrkov <maxim@codesourcery.com>
4330 Richard Sandiford <rdsandiford@googlemail.com>
4332 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4333 * config/mips/mips-protos.h (mips_expand_vector_init): New.
4334 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4336 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4337 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4338 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4340 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4341 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4342 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4343 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4344 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4345 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4346 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4347 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4348 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4349 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4350 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4351 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4352 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4353 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4354 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4355 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4356 (mips_builtins): Add Loongson builtins.
4357 (mips_loongson_2ef_bdesc): New.
4358 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4359 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4360 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4361 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4363 (mips_expand_vector_init): New.
4364 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4365 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4367 * config/mips/mips.md: Add unspec numbers for Loongson
4368 builtins. Include loongson.md.
4369 (MOVE64): Include Loongson vector modes.
4370 (SPLITF): Include Loongson vector modes.
4371 (HALFMODE): Handle Loongson vector modes.
4372 * config/mips/loongson.md: New.
4373 * config/mips/loongson.h: New.
4374 * config.gcc: Add loongson.h header for mips*-*-* targets.
4375 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4377 2008-06-14 Joseph Myers <joseph@codesourcery.com>
4379 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4380 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4381 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4382 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4383 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4384 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4385 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4386 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4387 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4388 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4389 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4390 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4391 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4392 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4393 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4394 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4395 Remove use_fixproto=yes.
4396 (ia64*-*-hpux*): Remove comment about using fixproto.
4397 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4399 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4401 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4403 * configure: Regenerate.
4405 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4408 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4409 before evaluating it.
4411 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4414 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4415 nested inline functions.
4416 (start_decl, start_function): Don't invert DECL_EXTERNAL
4417 for nested inline functions.
4419 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4421 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4422 splits that must be made for correctness.
4424 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4426 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4427 (AVAIL_NON_MIPS16): Likewise.
4428 (mips_builtin_description): Replace target_flags with a predicate.
4429 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4430 (dspr2_32): New availability predicates.
4431 (MIPS_BUILTIN): New macro.
4432 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4433 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4434 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4435 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4436 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4437 (mips_dsp_32only_bdesc): Merge into...
4438 (mips_builtins): ...this new array.
4439 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4440 (mips_init_builtins): Update after above changes.
4441 (mips_expand_builtin_1): Merge into...
4442 (mips_expand_builtin): ...here and update after above changes.
4444 2008-06-12 Paul Brook <paul@codesourcery.com>
4446 * longlong.h (__arm__): Define count_leading_zeros.
4447 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4448 (clzsi2, clzdi2): New functions.
4449 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4450 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4451 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4452 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4453 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4454 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4455 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4456 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4457 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4458 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4460 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4462 * config/m68k/m68k.c (m68k_tune_flags): New.
4463 (override_options): Compute m68k_tune_flags.
4464 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4465 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4467 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4470 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4472 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4474 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4475 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4477 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4479 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4480 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4482 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4485 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4488 2008-06-12 Richard Guenther <rguenther@suse.de>
4490 PR tree-optimization/36345
4491 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4492 add memory_tag_needed flag.
4493 (may_alias_p): Declare.
4494 * tree-ssa-alias.c (may_alias_p): Export.
4495 (set_initial_properties): Use memory_tag_needed flag.
4496 (update_reference_counts): Likewise.
4497 (reset_alias_info): Reset memory_tag_needed flag.
4498 (create_name_tags): Check memory_tag_needed flag.
4499 (dump_points_to_info_for): Dump it.
4500 * tree-ssa-structalias.c (struct variable_info): Remove
4501 directly_dereferenced flag.
4502 (new_var_info): Do not initialize it.
4503 (process_constraint_1): Do not set it.
4504 (update_alias_info): Set is_dereferenced flag.
4505 (set_uids_in_ptset): Use may_alias_p.
4506 (set_used_smts): Check memory_tag_needed flag.
4507 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4508 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4509 memory_tag_needed flag.
4510 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4513 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4515 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4516 red zone for w64 abi.
4517 (ix86_expand_prologue): Likewise.
4518 (ix86_force_to_memory): Likewise.
4519 (ix86_free_from_memory): Likewise.
4521 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4524 * config/rs6000/rs6000.c (rs6000_override_options): Set
4525 rs6000_isel conditionally to the absence of comand line override.
4526 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4527 Remove duplicate rs6000_isel setting.
4528 * config/rs6000/eabispe.h: Ditto.
4530 2008-06-11 Richard Guenther <rguenther@suse.de>
4532 * alias.c (get_alias_set): Use the element alias-set for arrays.
4533 (record_component_aliases): For arrays and vectors do nothing.
4534 * c-common.c (strict_aliasing_warning): Handle the cases
4535 of alias set zero explicitly.
4536 * Makefile.in (dfp.o-warn): Add -Wno-error.
4538 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4540 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4542 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4543 tune_32 tune_64 to supported_defaults. Allow values not
4544 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4545 x86_64. Do not override cpu_32 or cpu_64 values from target name.
4546 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4547 with_cpu_64 to generic for 64-bit-supporting configurations, not
4548 with_cpu. Remove FIXMEs.
4549 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4550 --with-arch-64, --with-tune-32, --with-tune-64): Document.
4551 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4552 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4553 arch_32 and arch_64.
4555 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
4556 Olivier Hainque <hainque@adacore.com>
4558 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4559 Use DECL_SIZE_UNIT to retrieve the size of the field.
4561 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4563 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4564 with function calls after declarations. Lay out
4565 neon_float_type_node before further use.
4567 2008-06-11 Richard Guenther <rguenther@suse.de>
4569 * tree-flow.h (may_point_to_global_var): Declare.
4570 * tree-ssa-alias.c (may_point_to_global_var): New function.
4571 * tree-ssa-sink.c (is_hidden_global_store): Use it.
4573 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
4575 * configure.ac: Teach that fido supports .debug_line.
4576 * configure: Regenerate.
4578 2008-06-10 Tom Tromey <tromey@redhat.com>
4580 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4583 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4585 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4586 (encode_decimal64, decode_decimal64, encode_decimal128,
4587 decode_decimal128): Reverse order of 32-bit parts of value if host
4588 and target endianness differ.
4590 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
4592 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4593 Avoid division by 0.
4594 (tree_mod_pow2_value_transform): Likewise.
4595 (tree_ic_transform): Likewise.
4596 (tree_stringops_transform): Likewise.
4597 (tree_mod_subtract_transform): Likewise.
4598 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4599 (copy_edges_for_bb): Likewise.
4600 (initialize_cfun): Likewise.
4602 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4604 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4605 nonmemory_operand. Add "N" operand constraint.
4607 (*jcc_btdi_mask_rex64): New instruction and split pattern.
4608 (*jcc_btsi_mask): Ditto.
4609 (*jcc_btsi_mask_1): Ditto.
4611 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4613 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4614 TYPE_CANONICAL for copied element type.
4616 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4619 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4620 Add m_CORE2 and m_GENERIC.
4621 * config/i386/predicates.md (bt_comparison_operator): New predicate.
4622 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4624 (*jcc_btdi_rex64): New instruction and split pattern.
4626 (*jcc_btsi_1): Ditto.
4627 (*btsq): Fix Intel asm dialect operand order.
4631 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
4634 * simplify-rtx.c (simplify_subreg): Add check for shift count
4637 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
4639 * doc/md.texi: Synchronize with later constraints.md change.
4640 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4641 with a C implementation.
4642 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4644 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4645 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4646 when moving to and from MD_REGNUM.
4647 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4648 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4649 Handle byte and halfword moves.
4650 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4652 * config/mips/constraints.md (h): Turn into NO_REGS.
4653 (l, x): Update documentation.
4654 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4655 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4656 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4657 (HILO): New mode iterator.
4659 (any_div): New code iterator.
4660 (u): Extend code attribute to div and udiv.
4661 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4662 d_operand in the splitters. Remove redundant CONST_INT checks.
4663 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4664 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4665 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
4666 accordingly, using normal moves instead of unspecs to move LO into
4667 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
4668 (<u>mulsidi3): Handle expansion in C code.
4669 (<u>mulsidi3_32bit_internal): Rename to...
4670 (<u>mulsidi3_32bit): ...this.
4671 (<u>mulsidi3_32bit_r4000): Fix insn separator.
4672 (*<u>mulsidi3_64bit): Rename to...
4673 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
4674 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
4675 to set LO and HI to the multiplication result. Use a normal move
4676 for MFLO and an unspec for MFHI.
4677 (*<u>mulsidi3_64bit_parts): Replace with...
4678 (<u>mulsidi3_64bit_hilo): ...this new instruction.
4679 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4680 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4681 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
4682 instead of HI. Split the instruction into a separate multiplication
4683 and MFHI if !TARGET_FIX_R4000.
4684 (<su>muldi3_highpart): Likewise.
4685 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4686 and the "=h" clobber.
4687 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4688 (<u>mulditi3): New expander.
4689 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4690 (madsi): Remove "=h" clobber.
4691 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4692 Force the modulus result to be a GPR and split the instruction into
4693 a division followed by an MFHI after reload.
4694 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4695 (*lea_high64): Use d_operand in the define_peephole2. Likewise
4696 the MIPS16 HIGH define_split.
4697 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4698 of acc<->gpr moves to "multi".
4699 (*movdi_64bit): Replace the single "x" alternative with
4700 alternatives for moving into and out of "a".
4701 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
4702 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4703 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4704 Use d_operand in the splitters. Remove redundant CONST_INT checks.
4705 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
4706 (movti): New expander.
4707 (*movti, *movti_mips16): New insns.
4708 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4709 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4710 (mthi<GPR:mode>_<HILO:mode>): Likewise.
4711 * config/mips/predicates.md (fpr_operand): Delete.
4712 (d_operand): New predicate.
4714 2008-06-09 Michael Meissner <michael.meissner@amd.com>
4716 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4717 failure on some Bourne shells.
4718 (x86_64-*-*): Ditto.
4720 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
4722 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4724 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4726 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4727 (sparc-sun-solaris2*): Likewise.
4729 2008-06-09 Arnaud Charlet <charlet@adacore.com
4731 * doc/install.texi: Update requirements to build the Ada compiler.
4733 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
4735 * df-scan.c (struct df_scan_problem_data): Remove the
4736 mw_link_pool alloc pool.
4737 (df_scan_free_internal): Don't free it.
4738 (df_scan_alloc): Don't allocate it.
4739 * df.h (struct df_link): Update comment.
4741 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
4743 * except.h: Correct checks for when SJLJ exceptions must be used.
4745 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4747 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4750 2008-06-08 Joseph Myers <joseph@codesourcery.com>
4752 PR tree-optimization/36218
4753 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4754 configure for the build system.
4755 (BUILD_LDFLAGS): Define.
4756 * configure: Regenerate.
4757 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4759 2008-07-08 Anatoly Sokolov <aesok@post.ru>
4762 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4763 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4764 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4766 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
4768 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4770 2008-06-07 Joseph Myers <joseph@codesourcery.com>
4772 * config.gcc (Obsolete configurations): Remove list of
4774 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4775 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
4776 targets matched by those patterns.
4777 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4778 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4779 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4780 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4781 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4782 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4783 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4784 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4785 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4786 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4787 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4788 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4789 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4790 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4791 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4792 Make code for Solaris 7 and greater unconditional for Solaris.
4793 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4794 Remove --with-* handling.
4795 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4796 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4797 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4798 LINK_OS_WINDISS_SPEC): Remove.
4799 * config/rs6000/sysv4.opt (mwindiss): Remove.
4800 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4801 * configure: Regenerate.
4802 * doc/cpp.texi: Don't mention BeOS.
4803 * doc/extend.texi (interrupt): Don't mention MS1.
4804 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4805 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4806 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4807 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4808 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4810 * doc/invoke.texi (MT Options): Remove.
4811 (-mwindiss): Remove.
4812 (CRIS Options): Remove cris-axis-aout references.
4813 (HPPA Options): Don't mention hppa1.1-*-pro.
4814 * doc/md.texi: (MorphoTech family): Remove.
4815 * libgcc2.c: Don't handle UWIN.
4816 * config/alpha/t-unicosmk: Remove.
4817 * config/alpha/unicosmk.h: Remove.
4818 * config/arm/kaos-arm.h: Remove.
4819 * config/arm/kaos-strongarm.h: Remove.
4820 * config/arm/strongarm-coff.h: Remove.
4821 * config/arm/strongarm-elf.h: Remove.
4822 * config/arm/strongarm-pe.h: Remove.
4823 * config/arm/t-strongarm-pe: Remove.
4824 * config/arm/t-xscale-coff: Remove.
4825 * config/arm/t-xscale-elf: Remove.
4826 * config/arm/xscale-coff.h: Remove.
4827 * config/arm/xscale-elf.h: Remove.
4828 * config/chorus.h: Remove.
4829 * config/cris/aout.h: Remove.
4830 * config/cris/aout.opt: Remove.
4831 * config/cris/t-aout: Remove.
4832 * config/i386/beos-elf.h: Remove.
4833 * config/i386/kaos-i386.h: Remove.
4834 * config/i386/ptx4-i.h: Remove.
4835 * config/i386/sco5.h: Remove.
4836 * config/i386/sco5.opt: Remove.
4837 * config/i386/sysv4-cpp.h: Remove.
4838 * config/i386/sysv5.h: Remove.
4839 * config/i386/t-beos: Remove.
4840 * config/i386/t-sco5: Remove.
4841 * config/i386/t-uwin: Remove.
4842 * config/i386/uwin.asm: Remove.
4843 * config/i386/uwin.h: Remove.
4844 * config/kaos.h: Remove.
4845 * config/mips/windiss.h: Remove.
4846 * config/mt: Remove directory.
4847 * config/pa/pa-osf.h: Remove.
4848 * config/pa/pa-pro-end.h: Remove.
4849 * config/pa/t-pro: Remove.
4850 * config/ptx4.h: Remove.
4851 * config/rs6000/beos.h: Remove.
4852 * config/rs6000/kaos-ppc.h: Remove.
4853 * config/rs6000/t-beos: Remove.
4854 * config/rs6000/windiss.h: Remove.
4855 * config/sh/kaos-sh.h: Remove.
4856 * config/sol2-6.h: Remove.
4857 * config/sparc/sol26-sld.h: Remove.
4858 * config/sparc/sysv4-only.h: Remove.
4859 * config/vax/bsd.h: Remove.
4860 * config/vax/t-memfuncs: Remove.
4861 * config/vax/ultrix.h: Remove.
4862 * config/vax/vaxv.h: Remove.
4863 * config/windiss.h: Remove.
4865 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4867 PR rtl-optimization/36438
4868 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4869 for vector shifts with constant scalar shift operands.
4871 2008-06-06 Sandip Matte <sandip@rmicorp.com>
4873 * doc/invoke.texi: Document -march=xlr.
4874 * config/mips/xlr.md: New file.
4875 * config/mips/mips.md: Include it.
4877 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4878 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4879 (mips_rtx_cost_data): Likewise.
4881 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
4883 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4884 PRE_INC and PRE_DEC cases.
4886 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4888 PR rtl-optimization/36419
4889 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4890 the emitting jump insn.
4893 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4894 is not bool, boolify the whole *expr_p and convert to the desired type.
4896 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4898 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4899 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4900 Add omp_private_outer_ref hook, add another argument to
4901 omp_clause_default_ctor hook.
4902 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4903 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4904 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4905 hook_tree_tree_tree_tree_null.
4906 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4907 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4908 * hooks.c (hook_tree_tree_tree_tree_null): New function.
4909 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4910 * tree.def (OMP_TASK): New tree code.
4911 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4912 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4913 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4914 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4915 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4916 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4917 OMP_CLAUSE_COLLAPSE_EXPR): Define.
4918 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4919 (OMP_DIRECTIVE_P): Add OMP_TASK.
4920 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4921 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4922 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4923 and OMP_CLAUSE_UNTIED entries.
4924 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
4926 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4927 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4928 * tree-pretty-print.c (dump_omp_clause): Handle
4929 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4930 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4931 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4932 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
4933 warning about unsigned iterators. Change decl/init/cond/incr
4934 arguments to TREE_VECs, check arguments for all collapsed loops.
4935 (c_finish_omp_taskwait): New function.
4936 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4938 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
4939 default_function_array_conversion on init. Add par_clauses argument.
4940 If decl is present in parallel's lastprivate clause, change it to
4941 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4942 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
4943 collapse count in clauses.
4944 (c_parser_omp_for, c_parser_omp_parallel): Adjust
4945 c_parser_omp_for_loop callers.
4946 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4947 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4948 (c_parser_omp_clause_name): Handle collapse and untied clauses.
4949 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4951 (c_parser_omp_clause_schedule): Handle schedule(auto).
4952 Include correct location in the error message.
4953 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4954 and PRAGMA_OMP_CLAUSE_UNTIED.
4955 (OMP_TASK_CLAUSE_MASK): Define.
4956 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4957 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4958 * tree-nested.c (convert_nonlocal_omp_clauses,
4959 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4960 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4961 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4962 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4964 (conver_nonlocal_reference, convert_local_reference,
4965 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
4966 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4967 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4968 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4969 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4970 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4971 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4972 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4973 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4975 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4976 * c-common.h (c_finish_omp_taskwait): New prototype.
4977 * gimple-low.c (lower_stmt): Handle OMP_TASK.
4978 * tree-parloops.c (create_parallel_loop): Create 1 entry
4979 vectors for OMP_FOR_{INIT,COND,INCR}.
4980 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4981 (make_edges): Handle OMP_TASK.
4982 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4983 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4984 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4985 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4986 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4987 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4988 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4989 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4990 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4991 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4992 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4993 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4994 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4995 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4996 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4997 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4998 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4999 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5000 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5001 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5002 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5003 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5004 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5005 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5006 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5007 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5008 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5009 original iterator is present in lastprivate clause or if
5010 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5011 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5012 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5013 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5014 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5015 if it is set, lookup var in outer contexts too. Handle
5016 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5017 to be implicitly determined firstprivate for task regions.
5018 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5019 if it is set, lookup var in outer contexts too. Set
5020 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5021 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5022 OMP_CLAUSE_UNTIED. Take region_type as last argument
5023 instead of in_parallel and in_combined_parallel.
5024 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5026 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5027 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
5028 (new_omp_context): Set default_kind to
5029 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5030 (omp_region_type): New enum.
5031 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5032 fields, add region_type.
5033 (new_omp_context): Take region_type as argument instead of is_parallel
5034 and is_combined_parallel.
5035 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5036 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5037 ctx->is_combined_parallel checks.
5038 (gimplify_omp_task): New function.
5039 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5041 * omp-low.c (extract_omp_for_data): Use schedule(static)
5042 for schedule(auto). Handle pointer and unsigned iterators.
5043 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5044 Add loops argument. Extract data for collapsed OMP_FOR loops.
5045 (expand_parallel_call): Assert sched_kind isn't auto,
5046 map runtime schedule to index 3.
5047 (struct omp_for_data_loop): New type.
5048 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5049 Add loop, loops, collapse and iter_type fields.
5050 (workshare_safe_to_combine_p): Disallow combined for if
5051 iter_type is unsigned long long. Don't combine collapse > 1 loops
5052 unless all bounds and steps are constant. Adjust extract_omp_for_data
5054 (expand_omp_for_generic): Handle pointer, unsigned and long long
5055 iterators. Handle collapsed OMP_FOR loops. Adjust
5056 for struct omp_for_data changes. If libgomp function doesn't return
5057 boolean_type_node, add comparison of the return value with 0.
5058 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5059 pointer, unsigned and long long iterators. Adjust for struct
5060 omp_for_data changes.
5061 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5062 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
5063 unsigned long long. Allocate loops array, pass it to
5064 extract_omp_for_data. For collapse > 1 loops use always
5065 expand_omp_for_generic.
5066 (omp_context): Add sfield_map and srecord_type fields.
5067 (is_task_ctx, lookup_sfield): New functions.
5068 (use_pointer_for_field): Use is_task_ctx helper. Change first
5069 argument's type from const_tree to tree. Clarify comment.
5070 In OMP_TASK disallow copy-in/out sharing.
5071 (build_sender_ref): Call lookup_sfield instead of lookup_field.
5072 (install_var_field): Add mask argument. Populate both record_type
5073 and srecord_type if needed.
5074 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5076 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5077 and DECL_FIELD_OFFSET.
5078 (scan_sharing_clauses): Adjust install_var_field callers. For
5079 firstprivate clauses on explicit tasks allocate the var by value in
5080 record_type unconditionally, rather than by reference.
5081 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5082 Use is_taskreg_ctx instead of is_parallel_ctx.
5083 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5084 (create_omp_child_function_name): Add task_copy argument, use
5085 *_omp_cpyfn* names if it is true.
5086 (create_omp_child_function): Add task_copy argument, if true create
5087 *_omp_cpyfn* helper function.
5088 (scan_omp_parallel): Adjust create_omp_child_function callers.
5089 Rename parallel_nesting_level to taskreg_nesting_level.
5090 (scan_omp_task): New function.
5091 (lower_rec_input_clauses): Don't run constructors for firstprivate
5092 explicit task vars which are initialized by *_omp_cpyfn*.
5093 Pass outer var ref to omp_clause_default_ctor hook if
5094 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5095 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5096 OMP_CLAUSE_REDUCTION_INIT.
5097 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5098 avoid duplicate setting of fields. Handle
5099 OMP_CLAUSE_PRIVATE_OUTER_REF.
5100 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
5101 copy-out if TREE_READONLY, only copy-in.
5102 (expand_task_copyfn): New function.
5103 (expand_task_call): New function.
5104 (struct omp_taskcopy_context): New type.
5105 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5107 (lower_omp_parallel): Rename to...
5108 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5109 Call create_task_copyfn if srecord_type is needed. Adjust
5111 (task_shared_vars): New variable.
5112 (check_omp_nesting_restrictions): Warn if work-sharing,
5113 barrier, master or ordered region is closely nested inside OMP_TASK.
5114 Add warnings for barrier if closely nested inside of work-sharing,
5115 ordered, or master region.
5116 (scan_omp_1): Call check_omp_nesting_restrictions even for
5117 GOMP_barrier calls. Rename parallel_nesting_level to
5118 taskreg_nesting_level. Handle OMP_TASK.
5119 (lower_lastprivate_clauses): Even if some lastprivate is found on a
5120 work-sharing construct, continue looking for them on parent parallel
5122 (lower_omp_for_lastprivate): Add lastprivate clauses
5123 to the beginning of dlist rather than end. Adjust for struct
5124 omp_for_data changes.
5125 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5126 not after it. Handle collapsed OMP_FOR loops, adjust for
5127 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5128 (get_ws_args_for): Adjust extract_omp_for_data caller.
5129 (scan_omp_for): Handle collapsed OMP_FOR
5130 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5131 (lower_omp_single_simple): If libgomp function doesn't return
5132 boolean_type_node, add comparison of the return value with 0.
5133 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5134 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
5135 (parallel_nesting_level): Rename to...
5136 (taskreg_nesting_level): ... this.
5137 (is_taskreg_ctx): New function.
5138 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5140 (execute_lower_omp): Rename parallel_nesting_level to
5141 taskreg_nesting_level.
5142 (expand_omp_parallel): Rename to...
5143 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5144 Call omp_task_call for OMP_TASK regions.
5145 (expand_omp): Adjust caller, handle OMP_TASK.
5146 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5148 * bitmap.c (bitmap_default_obstack_depth): New variable.
5149 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5150 if argument is NULL and bitmap_default_obstack is already initialized.
5151 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5153 * matrix-reorg.c (matrix_reorg): Likewise.
5155 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5157 * config/i386/i386.md (*indirect_jump): Macroize using P
5158 mode iterator. Remove !TARGET_64BIT from insn constraints.
5159 (*tablejump_1): Ditto.
5160 (*indirect_jump_rex64): Remove insn pattern.
5161 (*tablejump_1_rex64): Ditto.
5162 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5163 and eh_return_si insn patterns.
5165 2008-06-06 Richard Guenther <rguenther@suse.de>
5167 * tree-ssa-structalias.c (merge_smts_into): Remove.
5168 (find_what_p_points_to): Do not bother to compute the
5169 points-to set for pt_anything pointers.
5170 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5171 for pt_anything pointers is ok.
5173 2008-06-06 Jan Hubicka <jh@suse.cz>
5175 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5177 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5179 * cgraph.c: Fix typos in comments.
5180 (cgraph_availability_names): Fix string typo.
5181 * fold-const.c: Fix typos in comments.
5182 (fold_binary): Fix typo in warning.
5183 * genautomata.c: Fix typos in comments.
5184 (check_presence_pattern_sets): Fix typo in local variable.
5185 (output_description): Fix typo in output.
5186 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5187 * hwint.h: Likewise.
5188 * matrix-reorg.c (check_allocation_function): Likewise.
5189 * omega.c (smooth_weird_equations): Likewise.
5190 * auto-inc-dec.c: Fix typos in comments.
5191 * bb-reorder.c: Likewise.
5192 * builtins.c: Likewise.
5193 * c-common.c: Likewise.
5194 * c-cppbuiltin.c: Likewise.
5195 * c-parser.c: Likewise.
5196 * c-pretty-print.c: Likewise.
5197 * cfgcleanup.c: Likewise.
5198 * cfgexpand.c: Likewise.
5199 * cfghooks.c: Likewise.
5200 * cfglayout.c: Likewise.
5201 * cfgloopmanip.c: Likewise.
5202 * cgraphunit.c: Likewise.
5203 * coverage.c: Likewise.
5204 * dbxout.c: Likewise.
5205 * df-byte-scan.c: Likewise.
5206 * df-core.c: Likewise.
5207 * df-problems.c: Likewise.
5208 * df-scan.c: Likewise.
5210 * dominance.c: Likewise.
5211 * domwalk.c: Likewise.
5213 * dwarf2out.c: Likewise.
5214 * emit-rtl.c: Likewise.
5215 * et-forest.c: Likewise.
5216 * function.c: Likewise.
5217 * function.h: Likewise.
5219 * gcov-io.c: Likewise.
5222 * genattrtab.c: Likewise.
5223 * ggc-page.c: Likewise.
5224 * gimplify.c: Likewise.
5225 * gthr-lynx.h: Likewise.
5226 * haifa-sched.c: Likewise.
5227 * ipa-cp.c: Likewise.
5228 * ipa-inline.c: Likewise.
5229 * ipa-prop.h: Likewise.
5230 * ipa-pure-const.c: Likewise.
5231 * ipa-struct-reorg.c: Likewise.
5232 * ipa-struct-reorg.h: Likewise.
5233 * ipa-type-escape.c: Likewise.
5235 * loop-doloop.c: Likewise.
5236 * mips-tfile.c: Likewise.
5237 * mkmap-flat.awk: Likewise.
5238 * mkmap-symver.awk: Likewise.
5239 * modulo-sched.c: Likewise.
5240 * omp-low.c: Likewise.
5241 * optabs.c: Likewise.
5242 * optabs.h: Likewise.
5244 * passes.c: Likewise.
5245 * postreload-gcse.c: Likewise.
5246 * postreload.c: Likewise.
5247 * predict.c: Likewise.
5248 * pretty-print.h: Likewise.
5249 * profile.c: Likewise.
5250 * protoize.c: Likewise.
5251 * ra-conflict.c: Likewise.
5253 * recog.c: Likewise.
5254 * regclass.c: Likewise.
5256 * reload.c: Likewise.
5257 * rtl-error.c: Likewise.
5258 * rtlanal.c: Likewise.
5260 * sched-rgn.c: Likewise.
5263 * target.h: Likewise.
5264 * tree-dfa.c: Likewise.
5265 * tree-eh.c: Likewise.
5266 * tree-flow-inline.h: Likewise.
5267 * tree-inline.c: Likewise.
5268 * tree-into-ssa.c: Likewise.
5269 * tree-loop-distribution.c: Likewise.
5270 * tree-nested.c: Likewise.
5271 * tree-parloops.c: Likewise.
5272 * tree-pass.h: Likewise.
5273 * tree-pretty-print.c: Likewise.
5274 * tree-profile.c: Likewise.
5275 * tree-scalar-evolution.c: Likewise.
5276 * tree-sra.c: Likewise.
5277 * tree-ssa-alias-warnings.c: Likewise.
5278 * tree-ssa-ccp.c: Likewise.
5279 * tree-ssa-coalesce.c: Likewise.
5280 * tree-ssa-dom.c: Likewise.
5281 * tree-ssa-dse.c: Likewise.
5282 * tree-ssa-forwprop.c: Likewise.
5283 * tree-ssa-live.c: Likewise.
5284 * tree-ssa-live.h: Likewise.
5285 * tree-ssa-loop-im.c: Likewise.
5286 * tree-ssa-loop-ivopts.c: Likewise.
5287 * tree-ssa-loop-niter.c: Likewise.
5288 * tree-ssa-loop-prefetch.c: Likewise.
5289 * tree-ssa-phiopt.c: Likewise.
5290 * tree-ssa-phiprop.c: Likewise.
5291 * tree-ssa-sccvn.c: Likewise.
5292 * tree-ssa-ter.c: Likewise.
5293 * tree-ssa-threadupdate.c: Likewise.
5294 * tree-ssa.c: Likewise.
5295 * tree-vect-analyze.c: Likewise.
5296 * tree-vect-transform.c: Likewise.
5297 * tree-vectorizer.c: Likewise.
5298 * tree-vn.c: Likewise.
5299 * tree-vrp.c: Likewise.
5301 * tree.def: Likewise.
5303 * unwind-dw2-fde.c: Likewise.
5304 * unwind.inc: Likewise.
5305 * value-prof.c: Likewise.
5306 * vmsdbgout.c: Likewise.
5308 2008-06-05 David Edelsohn <edelsohn@gnu.org>
5310 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5311 always place FP constants in the TOC for TARGET_POWERPC64.
5312 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5314 2008-06-05 Joseph Myers <joseph@codesourcery.com>
5316 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5317 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5318 enable for TARGET_E500_DOUBLE.
5319 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5320 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5321 floating-point modes like integer modes for E500 double.
5322 (rs6000_legitimate_offset_address_p): Likewise.
5323 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
5324 addressing for DDmode for E500 double.
5325 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5326 modes as using 64-bits of registers for E500 double.
5327 (spe_build_register_parallel): Do not handle DDmode or TDmode.
5328 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5329 specially for E500 double.
5330 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5331 TDmode for E500 double.
5332 (rs6000_gimplify_va_arg): Only handle SDmode in registers
5333 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5334 (rs6000_split_multireg_move): Do not handle TDmode specially for
5336 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5337 using 64-bit registers for E500 double.
5338 (emit_frame_save): Do not handle DDmode specially for E500 double.
5339 (gen_frame_mem_offset): Likewise.
5340 (rs6000_function_value): Do not call spe_build_register_parallel
5341 for DDmode or TDmode.
5342 (rs6000_libcall_value): Likewise.
5343 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5344 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5347 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
5349 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5352 2008-06-04 Junjie Gu <jgu@tensilica.com>
5354 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5355 comparison for frame pointers.
5357 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5360 * config/avr/avr.h (PUSH_ROUNDING): Remove.
5362 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5365 * builtins.c (expand_builtin_signbit): Don't take lowpart when
5366 register is already smaller or equal to required mode.
5368 2008-06-04 Xinliang David Li <davidxl@google.com>
5370 * tree-call-cdce.c: New file.
5371 (cond_dead_built_in_calls): New static variable.
5372 (input_domain): New struct.
5373 (check_pow): New function.
5374 (check_builtin_call): Ditto.
5375 (check_target_format): Ditto.
5376 (is_call_dce_candidate): Ditto.
5377 (gen_one_condition): Ditto.
5378 (gen_conditions_for_domain): Ditto.
5379 (get_domain): Ditto.
5380 (gen_conditions_for_pow_cst_base): Ditto.
5381 (gen_conditions_for_pow_int_base): Ditto.
5382 (gen_conditions_for_pow): Ditto.
5383 (get_no_error_domain): Ditto.
5384 (gen_shrink_wrap_conditions): Ditto.
5385 (shrink_wrap_one_built_in_call): Ditto.
5386 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5387 (tree_call_cdce): Ditto.
5388 (gate_call_cdce): Ditto.
5389 (pass_call_cdce): New gimple pass.
5390 * passes.c: (init_optimization_passes): New pass.
5391 * tree-pass.h: New pass declaration.
5392 * opts.c (decode_options): New flag setting.
5393 * common.opt: Add -ftree-builtin-call-dce flag.
5394 * Makefile.in: Add new source file.
5395 * tempvar.def: New tv_id.
5396 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5398 2008-06-04 Richard Guenther <rguenther@suse.de>
5400 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5401 (is_call_clobbered): Always check var_ann->call_clobbered.
5402 (mark_call_clobbered): Always set var_ann->call_clobbered.
5403 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5404 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5405 (reset_alias_info): Clear call clobbering info on MTAGs and
5407 (set_pt_anything): Set pt_global_mem.
5408 (create_tag_raw): Adjust comment.
5409 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5411 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5412 Maxim Kuvyrkov <maxim@codesourcery.com>
5414 * config/m68k/m68k.opt (mxgot): New option.
5415 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5416 (m68k_output_addr_const_extra): New.
5417 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5418 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5419 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5420 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5422 2008-06-04 Richard Guenther <rguenther@suse.de>
5424 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5425 negative or non-representable offsets.
5427 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5429 * config/i386/i386.c (ix86_gen_leave): New.
5430 (ix86_gen_pop1): Likewise.
5431 (ix86_gen_add3): Likewise.
5432 (ix86_gen_sub3): Likewise.
5433 (ix86_gen_sub3_carry): Likewise.
5434 (ix86_gen_one_cmpl2): Likewise.
5435 (ix86_gen_monitor): Likewise.
5436 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5437 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5438 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5439 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5440 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5441 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5442 (ix86_expand_epilogue): Updated.
5443 (print_operand): Handle integer register operand for 'z'.
5444 (ix86_expand_strlensi_unroll_1): Likewise.
5445 (ix86_expand_strlen): Likewise.
5446 (ix86_expand_builtin): Likewise.
5447 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5448 mov{q}/mov{l} and add{q}/add{l}.
5450 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5452 * config/i386/i386.md (P): New mode iterator.
5453 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5454 using P mode iterator.
5455 (DFmode push_operand splitter): Ditto.
5456 (XFmode push_operand splitter): Ditto.
5457 (DFmode float_extend SFmode push_operand splitter): Ditto.
5458 (XFmode float_extend SFmode push_operand splitter): Do not generate
5459 SImode pushes for 64bit target. Macroize Dimode and SImode
5460 pushes using P mode iterator.
5461 (XFmode float_extend DFmode push_operand splitter): Ditto.
5463 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5465 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5466 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5467 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5469 (ix86_call_abi_override): Remove check for call_used_regs.
5471 2008-06-03 Richard Guenther <rguenther@suse.de>
5473 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5474 for the lhs of calls if the return type contains pointers.
5476 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5478 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5479 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5480 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5481 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5482 of cfun and DEFAULT_ABI to deceide abi mode.
5484 (REG_PARM_STACK_SPACE): Removed.
5485 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5486 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5487 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5488 (ix86_function_abi): Likewise.
5489 (ix86_function_type_abi): Likewise.
5490 (ix86_call_abi_override): Likewise.
5491 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5492 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5493 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5494 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5496 (X86_64_REGPARM_MAX): New.
5497 (X86_64_SSE_REGPARM_MAX): New.
5498 (X64_REGPARM_MAX): New.
5499 (X64_SSE_REGPARM_MAX): New.
5500 (X86_32_REGPARM_MAX): New.
5501 (X86_32_SSE_REGPARM_MAX): New.
5502 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5503 (ix86_function_regparm): Handle user calling abi.
5504 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5505 by DEFAULT_ABI versus SYSV_ABI check.
5506 (ix86_reg_parm_stack_space): New.
5507 (ix86_function_type_abi): New.
5508 (ix86_call_abi_override): New.
5509 (ix86_function_abi): New.
5510 (ix86_cfun_abi): New.
5511 (init_cumulative_args): Call abi specific initialization.
5512 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5513 (function_arg_64): Extend SSE_REGPARM_MAX check.
5514 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5515 (ix86_pass_by_reference): Likewise.
5516 (ix86_function_value_regno_p): Likewise.
5517 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5518 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5519 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5520 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5521 (setup_incoming_varargs_64): Adjust regparm for call abi.
5522 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5523 (ix86_va_start): Likewise.
5524 (ix86_gimplify_va_arg): Likewise.
5525 (ix86_expand_prologue): Likewise.
5526 (output_pic_addr_const): Likewise.
5527 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5528 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5529 (x86_output_mi_thunk): Likewise.
5530 (x86_function_profiler): Likewise.
5531 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5532 (SYSV_ABI, MS_ABI): New constants.
5534 (init_regs): Add prototype of function in regclass.c file.
5535 (OVERRIDE_ABI_FORMAT): New.
5536 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5537 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5538 (OUTGOING_REG_PARM_STACK_SPACE): New.
5539 (ix86_reg_parm_stack_space): New prototype.
5540 (CUMULATIVE_ARGS): Add call_abi member.
5541 (machine_function): Add call_abi member.
5542 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5543 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5545 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
5548 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5549 (avr_builtin_setjmp_frame_value): New function.
5550 * config/avr/avr.md (nonlocal_goto_receiver): Define.
5551 (nonlocal_goto): Define.
5553 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
5555 * config/mips/mips.c (mips_emit_loadgp): Return early if
5556 there is nothing do to, otherwise emit a blockage if
5557 !TARGET_EXPLICIT_RELOCS || crtl->profile.
5558 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5560 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5562 * configure.ac: Drop unneeded backslash ending up in config.in.
5563 * acinclude.m4: Likewise.
5564 * config.in: Regenerate.
5566 2008-05-26 Jan Hubicka <jh@suse.cz>
5568 * predict.c (maybe_hot_frequency_p): Break out of...
5569 (maybe_hot_bb_p): ... here.
5570 (maybe_hot_edge_p): New.
5571 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5572 * basic-block.h (maybe_hot_edge_p): Declare.
5574 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5576 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5577 (*cmpfp_<mode>_cc): Ditto.
5578 (*fp_jcc_8<mode>_387): Ditto.
5579 (*fop_<MODEF:mode>_2_i387): Ditto.
5580 (*fop_<MODEF:mode>_3_i387): Ditto.
5581 (*fop_xf_2_i387): Ditto.
5582 (*fop_xf_3_i387): Ditto.
5584 2008-06-02 Tomas Bily <tbily@suse.cz>
5586 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5588 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5590 * config/mips/mips.c (mips_valid_offset_p): New function.
5591 (mips_valid_lo_sum_p): Likewise.
5592 (mips_classify_address): Use them.
5593 (mips_force_address): New function.
5594 (mips_legitimize_address): Use it.
5595 * config/mips/mips.md (MOVE128): New mode iterator.
5596 (movtf): Require TARGET_64BIT. Remove empty strings.
5597 (*movtf_internal): Rename to...
5598 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
5599 of "R" and use {,fp}{load,store} attributes instead of "multi".
5600 Use a separate define_split.
5601 (*movtf_mips16): New pattern.
5603 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5605 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5606 * config/mips/mips.c (mips_expand_before_return): New function.
5607 (mips_expand_epilogue): Call it.
5608 * config/mips/mips.md (return): Turn into a define_expand.
5609 (*return): New insn.
5611 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5613 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5614 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5615 functions. Do not emit uses and clobbers of CONCATs; individually
5616 use and clobber their operands.
5617 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5618 gen_clobber, emit_use and gen_use.
5619 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5620 (expand_builtin_return): Likewise.
5621 * cfgbuild.c (count_basic_blocks): Likewise.
5622 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5623 * explow.c (emit_stack_restore): Likewise.
5624 * expmed.c (extract_bit_field_1): Likewise.
5625 * expr.c (convert_move, emit_move_complex_parts): Likewise.
5626 (emit_move_multi_word, store_constructor): Likewise.
5627 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5628 (thread_prologue_and_epilogue_insns): Likewise.
5629 * lower-subreg.c (resolve_simple_move): Likewise.
5630 * optabs.c (widen_operand, expand_binop): Likewise.
5631 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5632 * reload.c (find_reloads): Likewise.
5633 * reload1.c (eliminate_regs_in_insn): Likewise.
5634 * stmt.c (expand_nl_goto_receiver): Likewise.
5635 * config/alpha/alpha.md (builtin_longjmp): Likewise.
5636 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5637 * config/arm/arm.c (arm_load_pic_register): Likewise.
5638 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5639 * config/arm/arm.md (untyped_return): Likewise.
5640 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5641 * config/avr/avr.c (expand_prologue): Likewise.
5642 * config/bfin/bfin.c (do_unlink): Likewise.
5643 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5644 * config/cris/cris.c (cris_expand_prologue): Likewise.
5645 * config/darwin.c (machopic_indirect_data_reference): Likewise.
5646 (machopic_legitimize_pic_address): Likewise.
5647 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5648 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5649 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5650 (ix86_expand_convert_uns_didf_sse): Likewise.
5651 (ix86_expand_vector_init_general): Likewise.
5652 * config/ia64/ia64.md (eh_epilogue): Likewise.
5653 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5654 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5655 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5656 (config/iq2000/iq2000.c): Likewise.
5657 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5658 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5659 (builtin_longjmp): Likewise.
5660 * config/mn10300/mn10300.md (call, call_value): Likewise.
5661 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5662 * config/pdp11/pdp11.md (abshi2): Likewise.
5663 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5664 * config/s390/s390.c (s390_emit_prologue): Likewise.
5665 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5666 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5667 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5668 * config/sh/sh.c (prepare_move_operands): Likewise.
5669 (output_stack_adjust, sh_expand_epilogue): Likewise.
5670 (sh_set_return_address, sh_expand_t_scc): Likewise.
5671 * config/sparc/sparc.c (load_pic_register): Likewise.
5672 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5673 * config/spu/spu.c (spu_expand_epilogue): Likewise.
5674 * config/v850/v850.c (expand_epilogue): Likewise.
5676 2008-05-31 Anatoly Sokolov <aesok@post.ru>
5678 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5679 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5680 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5681 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5682 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5683 stack pointer register.
5684 (output_movhi): Remove code for interrupt specific writing to the
5685 stack pointer register.
5687 2008-05-31 Richard Guenther <rguenther@suse.de>
5689 PR tree-optimization/34244
5690 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5691 (tree_expr_nonzero_warnv_p): Likewise.
5692 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5693 ssa_name_nonnegative_p.
5694 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5695 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5696 not tree_expr_nonzero_warnv_p.
5698 PR tree-optimization/36262
5700 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
5702 PR tree-optimization/34244
5703 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5704 (record_numbers_of_iterations): New function.
5705 (execute_vrp): Cache the numbers of iterations of loops.
5706 * tree-scalar-evolution.c (scev_reset_except_niters):
5708 (scev_reset): Use scev_reset_except_niters.
5709 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5711 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
5713 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5714 __WORKAROUND_RETS when appropriate.
5716 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5718 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5719 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5721 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5722 *fop_df_comm_sse insn patterns using MODEF mode iterator.
5723 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5724 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5725 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5726 *fop_df_1_mixed insn patterns using MODEF mode iterator.
5727 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5728 *fop_df_1_sse insn patterns using MODEF mode iterator.
5729 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5730 *fop_df_1_i387 insn patterns using MODEF mode iterator.
5731 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5732 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5733 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5734 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5735 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5736 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5737 (*fop_xf_4_i387): Use <MODE> for mode attribute.
5738 (*fop_xf_5_i387): Ditto.
5739 (*fop_xf_6_i387): Ditto.
5741 2008-05-30 Richard Guenther <rguenther@suse.de>
5743 * builtins.c (build_string_literal): Avoid generating
5744 a non-gimple_val result.
5746 2008-05-30 DJ Delorie <dj@redhat.com>
5748 * exec-tool.in: Use an environment variable (private) instead of a
5749 file (shared) as a semaphore, so as to not break parallel builds.
5751 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5753 * optabs.c (maybe_encapsulate_block): Remove.
5754 (emit_libcall_block): Adjust accordingly.
5755 * optabs.h (maybe_encapsulate_block): Remove prototype.
5757 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5758 Don't use maybe_encapsulate_block.
5760 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5762 * config/rs6000/rs6000.c (rs6000_legitimize_address,
5763 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5764 rtx is a SYMBOL_REF before calling get_pool_constant.
5766 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5768 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5770 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5772 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5773 rather than OS names to choose INO_T_EQ definition.
5774 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5775 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5777 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5780 * config/darwin-f.c: New.
5781 * config/t-darwin: Added rule to build darwin-f.o.
5782 * config.gcc: Defined new variable, fortran_target_objs.
5783 (*-*-darwin*): Set fortran_target_objs.
5784 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5785 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5786 * configure: Regenerated.
5788 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5791 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5792 canonical type if needed.
5794 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5796 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5798 2008-05-29 Richard Guenther <rguenther@suse.de>
5800 PR tree-optimization/36343
5801 PR tree-optimization/36346
5802 PR tree-optimization/36347
5803 * tree-flow.h (clobber_what_p_points_to): Declare.
5804 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5805 pointed-to variable is dereferenced is irrelevant to whether
5806 the pointer can access the pointed-to variable.
5807 (clobber_what_p_points_to): New function.
5808 * tree-ssa-alias.c (set_initial_properties): Use it.
5809 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5810 call clobber check for NMTs.
5812 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5814 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5815 for printing gcov_type.
5817 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5819 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5820 and the eh region information.
5821 * value-prof.c (gimple_move_stmt_histograms): New function.
5822 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5824 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5826 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5828 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5830 * value-prof.c (tree_ic_transform): Print counts.
5831 * tree-profile.c (tree_gen_ic_func_profiler):
5832 Clear __gcov_indreict_call_callee variable to avoid misattribution
5835 2008-05-28 Rafael Espindola <espindola@google.com>
5837 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5840 2008-05-28 Richard Guenther <rguenther@suse.de>
5842 PR tree-optimization/36339
5843 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5844 and clobbering code out of the loop.
5846 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5848 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5851 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5852 s390_contiguous_bitmask_p, s390_symref_operand_p,
5853 s390_check_symref_alignment, s390_reload_larl_operand,
5854 s390_reload_symref_address): New functions.
5855 (s390_branch_condition_mnemonic): Support compare and branch
5857 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5858 and 'W' constraints.
5859 (s390_secondary_reload): Add secondary reloads for unaligned
5860 symbol refs or symbol refs to floating point or QI/TI mode
5862 (legitimate_address_p): Accept symbol references as addresses.
5863 (s390_expand_insv): Use rotate and insert selected bits
5864 instruction for insv when building for z10.
5865 (print_operand_address): Handle symbol ref addresses.
5866 (print_operand): Output modifier 'c' added for signed byte values.
5867 (s390_encode_section_info): Mark symbol refs with
5868 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5870 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5871 (length attribute): RRF, RRR have 4 byte length.
5872 (FPALL, INTALL): New mode iterators added.
5873 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5874 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5875 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5876 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5877 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5878 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5879 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5880 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5882 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5883 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5884 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5885 reload<INTALL:mode><P:mode>_toreg_z10,
5886 reload<FPALL:mode><P:mode>_tomem_z10,
5887 reload<FPALL:mode><P:mode>_toreg_z10,
5888 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5889 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5890 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5891 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5893 (movmem, clrmem, cmpmem): New splitters added.
5895 * config/s390/predicates.md (larl_operand): Use
5896 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5897 SYMBOL_REF_ALIGN1_P.
5898 (s390_signed_integer_comparison,
5899 s390_unsigned_integer_comparison): New predicates.
5901 * config/s390/s390-protos.h (s390_check_symref_alignment,
5902 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5903 s390_reload_symref_address,
5904 s390_compare_and_branch_condition_mask): Prototypes added.
5906 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5907 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5908 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5910 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5912 * config/s390/s390.c (z10_cost): New cost function for z10.
5913 (s390_handle_arch_option, override_options): Support -march=z10 switch.
5914 (s390_issue_rate): Adjust issue rate for z10.
5915 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5916 (processor_flags): Add PF_Z10.
5917 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5918 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5919 * gcc/config.gcc: Add z10.
5921 2008-05-28 Richard Guenther <rguenther@suse.de>
5923 PR tree-optimization/36291
5924 * tree-flow. h (struct gimple_df): Remove var_anns member.
5925 * tree-flow-inline.h (gimple_var_anns): Remove.
5926 (var_ann): Simplify.
5927 * tree-dfa.c (create_var_ann): Simplify.
5928 (remove_referenced_var): Clear alias info from var_anns of globals.
5929 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5930 (delete_tree_ssa): Clear alias info from var_anns of globals.
5931 Do not free var_anns.
5932 (var_ann_eq): Remove.
5933 (var_ann_hash): Likewise.
5935 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5937 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5938 and loongson2f entries.
5939 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5940 * config/mips/mips.h (processor_type): Add Loongson-2E
5941 and Loongson-2F entries.
5942 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5943 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5944 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5945 * doc/invoke.texi (MIPS Options): Document loongson2e
5946 and loongson2f processor names.
5948 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5952 * config/i386/i386.c (ix86_function_arg_boundary): Use
5953 alignment of canonical type.
5954 (ix86_expand_vector_move): Check unaligned memory access for
5957 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5959 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5960 Moved to the front of file.
5962 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5963 H.J. Lu <hongjiu.lu@intel.com>
5965 * dwarf2out.c (current_fde): New.
5967 (lookup_cfa:): Likewise.
5968 (dwarf2out_end_epilogue): Likewise.
5969 (dwarf2out_note_section_used): Likewise.
5971 2008-05-27 Michael Matz <matz@suse.de>
5974 * c.opt (Wenum-compare): New warning option.
5975 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5977 2008-05-27 Michael Matz <matz@suse.de>
5980 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5982 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5983 into memory as tail calls.
5985 2008-05-27 Richard Guenther <rguenther@suse.de>
5987 PR tree-optimization/36339
5988 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5989 pointers cause all addressable variables to be call clobbered.
5991 2008-05-27 Richard Guenther <rguenther@suse.de>
5993 PR tree-optimization/36245
5994 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5996 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5998 * config/s390/s390.md: Replace all occurences of the 'm'
5999 constraint with 'RT'.
6001 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6003 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6005 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6007 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6008 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6009 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6011 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6013 * reload.c: (find_reloads): Skip alternatives according to the
6014 "enabled" attribute. Constify the constraint variable.
6015 * recog.c (get_attr_enabled): Add default implementation.
6016 (extract_insn): Set the alternative_enabled_p array
6017 in the recog_data struct.
6018 (preprocess_constraints, constrain_operands): Skip
6019 alternatives according to the "enabled" attribute
6020 * recog.h (struct recog_data): New field alternative_enabled_p.
6021 (skip_alternative): New inline function.
6022 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6023 (record_reg_classes): Skip alternative according to the
6024 "enabled" attribute.
6026 * doc/md.texi: Add documention for the "enabled" attribute.
6028 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6030 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6031 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6032 constraint with TARGET_MEM_CONSTRAINT.
6033 * recog.c (asm_operand_ok, preprocess_constraints,
6034 constrain_operands): Likewise.
6035 * regclass.c (record_reg_classes): Likewise.
6036 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6037 * reload1.c (maybe_fix_stack_asms): Likewise.
6038 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6039 * recog.h: Adjust comment.
6040 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6041 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6042 * doc/md.texi: Add a note to description of 'm' constraint.
6043 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6045 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6047 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6048 that the bitfield is of integral type before testing its precision.
6050 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6051 Sa Liu <saliu@de.ibm.com>
6053 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6054 __modti3, __udivti3, __umodti3 and __udivmodti4.
6055 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6056 that implement TImode mul and div functions.
6057 * config/spu/multi3.c: New. Implement __multi3.
6058 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6059 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6062 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
6064 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6065 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6066 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6067 tls_sysv_suffix): New mode and mode attribute iterators.
6068 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6069 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6070 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6071 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6072 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6075 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6077 PR tree-optimization/36329
6078 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6079 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6080 * cgraphbuild.c (initialize_inline_failed): Use the latter
6081 macro in lieu of the former.
6082 * ipa-inline.c (cgraph_mark_inline): Likewise.
6083 (cgraph_decide_inlining_of_small_function): Likewise.
6084 (cgraph_decide_inlining): Likewise.
6085 (cgraph_decide_inlining_incrementally): Likewise.
6087 2008-05-26 Tristan Gingold <gingold@adacore.com>
6088 Anatoly Sokolov <aesok@post.ru>
6090 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6091 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6092 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6093 optimization for 'avr6' architecture.
6095 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
6098 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6100 2008-05-26 Richard Guenther <rguenther@suse.de>
6102 * tree-ssa-sccvn.c (expr_has_constants): Declare.
6103 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6105 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
6108 * caller-save.c (insert_restore): Verify alignment of spill space.
6109 (insert_save): Likewise.
6110 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6111 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6112 (STACK_SLOT_ALIGNMENT): Likewise.
6113 * function.c (LOCAL_ALIGNMENT): Removed.
6114 (get_stack_local_alignment): New.
6115 (assign_stack_local): Use it. Set alignment on stack slot.
6116 (assign_stack_temp_for_type): Use get_stack_local_alignment.
6117 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6118 (STACK_SLOT_ALIGNMENT): New.
6119 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6120 stack slot in XFmode.
6122 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6124 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6127 * config/i386/i386.md (allocate_stack_worker_64): Make sure
6128 argument operand in rax isn't removed.
6130 2008-05-26 Richard Guenther <rguenther@suse.de>
6133 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6134 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
6136 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6139 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6141 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
6143 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6144 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6146 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6148 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6149 build a trampoline if we don't want one.
6150 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6151 return zero for nested functions if we don't want a trampoline.
6153 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6155 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6157 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6160 * c.opt: Removed undocumented option '-lang-fortran'.
6161 * c-common.h: Removed global variable 'lang_fortran'.
6162 * c-opts.c (c_common_handle_option): Removed code to handle
6163 option '-lang-fortran'. Updated includes.
6164 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6165 definition of '__GFORTRAN__'.
6166 (define__GNUC__): Reimplemented to use BASEVER and
6167 cpp_define_formatted.
6168 (builtin_define_with_value_n): Removed.
6169 * c-incpath.h: Renamed to ...
6170 * incpath.h: ... this.
6171 * c-incpath.c: Renamed to ...
6172 * incpath.c: ... this. Updated includes.
6173 * fix-header.c: Updated includes.
6174 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6175 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6176 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6178 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6180 * tree.h: Update the table of flags used on tree nodes.
6181 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6182 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6183 (FORCED_LABEL): Add access check.
6184 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6185 (ASM_INPUT_P): Likewise.
6186 (ASM_VOLATILE_P): Likewise.
6187 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6188 (OMP_SECTION_LAST): Access private_flag directly.
6189 (OMP_RETURN_NOWAIT): Likewise.
6190 (OMP_PARALLEL_COMBINED): Likewise.
6191 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6192 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6193 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6194 deprecated_flag directly.
6196 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6198 * final.c (frame_pointer_needed): Removed.
6199 * flags.h (frame_pointer_needed): Likewise.
6201 * function.h (rtl_data): Add frame_pointer_needed.
6202 (frame_pointer_needed): New.
6204 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6206 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6208 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6210 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6213 2008-05-25 Alan Modra <amodra@bigpond.net.au>
6215 * c-common.c (strip_array_types): Move function to..
6217 (get_inner_array_type): Delete.
6218 * c-common.h (strip_array_types): Move declaration to..
6220 (get_inner_array_type): Delete.
6221 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6222 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6223 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6224 * config/pa/pa.c (emit_move_sequence): Likewise.
6226 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6228 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6231 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6233 * function.c: Include target hook for nonlocal_goto frame value.
6235 2008-05-24 Richard Guenther <rguenther@suse.de>
6237 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6238 variable can be only accessed through a pointer or a union.
6240 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6242 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6243 * doc/extend.texi: Likewise.
6245 2008-05-23 DJ Delorie <dj@redhat.com>
6247 * config/m32c/jump.md (untyped_call): Add.
6249 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6251 (m32c_address_cost): Detail costs for indirect offsets.
6253 2008-05-23 Rafael Espindola <espindola@google.com>
6255 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6256 if a node is a SUBREG.
6257 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6260 2008-05-23 Paul Brook <paul@codesourcery.com>
6261 Carlos O'Donell <carlos@codesourcery.com>
6263 * doc/extend.texi: Clarify use of __attribute__((naked)).
6264 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6265 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6266 * function.c (use_register_for_decl): Use
6267 targetm.calls.allocate_stack_slots_for_args.
6268 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6269 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6270 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6272 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6274 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6276 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6278 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6279 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6280 is only rounded once.
6282 2008-05-23 Richard Guenther <rguenther@suse.de>
6284 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6286 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
6287 Jakub Jelinek <jakub@redhat.com>
6290 * configure.ac: Handle --enable-cld.
6291 * configure: Regenerated.
6292 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6293 * config/i386/i386.h (struct machine_function): Add needs_cld field.
6294 (ix86_current_function_needs_cld): New define.
6295 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6296 (cld): New isns pattern.
6297 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6298 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6299 * config/i386/i386.opt (mcld): New option.
6300 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6301 TARGET_CLD and ix86_current_function_needs_cld.
6302 (override_options): Use -mcld by default for 32-bit code if
6305 * doc/install.texi (Options specification): Document --enable-cld.
6306 * doc/invoke.texi (Machine Dependent Options)
6307 [i386 and x86-64 Options]: Add -mcld option.
6308 (Intel 386 and AMD x86-64 Options): Document -mcld option.
6310 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
6311 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6312 (return_in_memory_64): Likewise.
6313 (return_in_memory_ms_64): Likewise.
6315 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6317 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6318 * builtins.c (fold_builtin_fpclassify): New.
6319 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6320 * builtins.def (BUILT_IN_FPCLASSIFY): New.
6321 * c-common.c (handle_type_generic_attribute): Adjust to accept
6322 fixed arguments before an elipsis.
6323 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6324 * doc/extend.texi: Document __builtin_fpclassify.
6326 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
6328 * omp-low.c (gate_expand_omp_ssa): Remove.
6329 (pass_expand_omp_ssa): Remove.
6330 (gate_expand_omp): Do not check for flag_openmp_ssa.
6331 * common.opt (-fopenmp-ssa): Remove.
6332 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6334 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
6336 * config/sh/sh.opt (mfixed-range): New option.
6337 * config/sh/sh-protos.h (sh_fix_range): Declare.
6338 * config/sh/sh.c (sh_fix_range): New function.
6339 * config/sh/sh.h (sh_fixed_range_str): Declare.
6340 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6342 * doc/invoke.texi (SH Options): Document -mfixed-range.
6344 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
6346 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6347 it before the redeclaration.
6349 2008-05-22 Anatoly Sokolov <aesok@post.ru>
6351 * config/avr/avr.c (get_sequence_length): Add new function.
6352 (expand_prologue, expand_epilogue): Remove duplicate code.
6354 2008-05-22 Rafael Espindola <espindola@google.com>
6356 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6359 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
6361 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6362 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6364 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6365 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6366 (vect_update_misalignment_for_peel): Likewise.
6367 (vector_alignment_reachable_p): Likewise.
6368 * tree-vect-transform.c (vectorizable_load): Likewise.
6369 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6370 (get_vectype_for_scalar_type): Pass mode of scalar_type
6371 to UNITS_PER_SIMD_WORD.
6373 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6374 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6375 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6376 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6377 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6379 2008-05-22 Ira Rosen <irar@il.ibm.com>
6381 PR tree-optimization/36293
6382 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6383 if the first load must be skipped because of a gap.
6385 2008-05-22 Richard Guenther <rguenther@suse.de>
6387 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6388 more cases of offset disambiguation that is possible if
6389 strict-aliasing rules apply.
6390 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6391 for basic offset and type-based disambiguation.
6393 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6395 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6396 ix86_expand_vector_set on V16QImode for SSE4.1.
6398 2008-05-21 Tom Tromey <tromey@redhat.com>
6400 * c.opt (Wimport): Mark as undocumented.
6401 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6403 (Warning Options): Likewise.
6404 * doc/cppopts.texi: Don't mention -Wimport.
6406 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6408 PR tree-optimization/36287
6409 PR tree-optimization/36286
6410 * lambda-code.c (build_access_matrix): Do not use the loop->num
6411 for computing the number of induction variables: use the loop depth
6414 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6417 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6418 option -f(no-)leading-underscore.
6420 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6422 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6423 GET_MODE_NUNITS (mode).
6425 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6427 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6428 (-mmulhw): Add 464 to description.
6429 (-mdlmzb): Likewise.
6430 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6431 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6433 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6434 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6435 * config/rs6000/rs6000.md: Update comments for 464.
6437 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6439 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6441 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6443 * config/i386/sse.md (vec_extractv4sf): Removed.
6444 (vec_extractv2df): Likewise.
6445 (vec_extractv2di): Likewise.
6446 (vec_extractv4si): Likewise.
6447 (vec_extractv8hi): Likewise.
6448 (vec_extractv16qi): Likewise.
6449 (vec_extract<mode>): New.
6451 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6453 * config/i386/sse.md (vec_setv4sf): Removed.
6454 (vec_setv2df): Likewise.
6455 (vec_setv2di): Likewise.
6456 (vec_setv4si): Likewise.
6457 (vec_setv8hi): Likewise.
6458 (vec_setv16qi): Likewise.
6459 (vec_set<mode>): New.
6461 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6463 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6464 goto for vec_concat and vec_interleave.
6466 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6468 * config/i386/sse.md (vec_initv4sf): Removed.
6469 (vec_initv2df): Likewise.
6470 (vec_initv2di): Likewise.
6471 (vec_initv4si): Likewise.
6472 (vec_initv8hi): Likewise.
6473 (vec_initv16qi): Likewise.
6474 (vec_init<mode>): New.
6476 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6478 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6480 2008-05-21 Tom Tromey <tromey@redhat.com>
6482 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6483 (zone_find_object_offset): Likewise.
6484 (gt_ggc_m_S): Likewise.
6485 (highest_bit): Likewise.
6486 * ggc-page.c (gt_ggc_m_S): New function.
6487 * stringpool.c (string_stack): Remove.
6488 (init_stringpool): Update.
6489 (ggc_alloc_string): Use ggc_alloc.
6490 (maybe_delete_ident): New function.
6491 (ggc_purge_stringpool): Likewise.
6492 (gt_ggc_m_S): Remove.
6493 * ggc-common.c (ggc_protect_identifiers): New global.
6494 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6495 ggc_protect_identifiers.
6496 * ggc.h (ggc_protect_identifiers): Declare.
6497 (gt_ggc_m_S): Update.
6498 (ggc_purge_stringpool): Declare.
6499 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6500 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6502 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6504 2008-05-21 David S. Miller <davem@davemloft.net>
6506 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6509 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6511 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6514 2008-05-20 David Daney <ddaney@avtrex.com>
6516 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6517 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6518 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6519 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6520 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6521 (atomic_hiqi_op): New define_code_iterator.
6522 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6523 mips_expand_compare_and_swap_12.
6524 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6525 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6526 (sync_<optab><mode>, sync_old_<optab><mode>,
6527 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6528 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6529 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6530 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6531 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6532 (test_and_set_12): New insn.
6533 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6534 sync_new_<optab><mode>, sync_old_nand<mode>,
6535 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6536 clobber to operand 0 for SI and DI mode insns.
6537 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6538 mips_gen_fn_4): New typedefs.
6539 (mips_gen_fn_ptrs): Define new union type.
6540 (mips_expand_compare_and_swap_12): Remove declaration.
6541 (mips_expand_atomic_qihi): Declare function.
6542 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6543 (mips_expand_atomic_qihi): ... this. Use new generator function
6545 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6546 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6547 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6548 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6549 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6550 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6551 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6552 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6553 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6554 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6557 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6559 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6562 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6564 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6565 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6566 (avr_attribute_table): Add 'OS_main' function attribute.
6567 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6568 functions with 'OS_main' attribute.
6570 2008-05-20 Richard Guenther <rguenther@suse.de>
6572 PR tree-optimization/35204
6573 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6574 helper, split out from ...
6575 (DFS): ... here. Make the DFS walk non-recursive.
6577 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6578 Jan Sjodin <jan.sjodin@amd.com>
6580 PR tree-optimization/36181
6581 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6582 (parallelize_loops): Don't parallelize when the loop has vector
6585 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6586 Sebastian Pop <sebastian.pop@amd.com>
6588 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6589 matrix, and never look at the tree representation of the memory
6591 (linear_transform_loops): Computes parameters and access matrices.
6592 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6594 (access_matrix_get_index_for_parameter): New.
6595 * tree-data-ref.h (struct access_matrix): New.
6596 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6597 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6598 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6599 am_vector_index_for_loop): New.
6600 (struct data_reference): Add field access_matrix.
6601 (DR_ACCESS_MATRIX): New.
6602 (compute_data_dependences_for_loop): Update declaration.
6603 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6604 * lambda.h (lambda_vector_vec_p): Declared.
6605 * lambda-code.c: Depend on pointer-set.h.
6606 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6607 av_for_af_base, av_for_af, build_access_matrix,
6608 lambda_compute_access_matrices): New.
6609 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6611 2008-05-20 Joseph Myers <joseph@codesourcery.com>
6613 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6616 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6617 Sebastian Pop <sebastian.pop@amd.com>
6619 PR tree-optimization/36206
6620 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6622 (instantiate_scev_1): Rename flags to fold_conversions.
6623 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6624 outeside instantiation_loop.
6625 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6626 (evolution_function_is_affine_or_constant_p): Removed.
6627 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6629 (analyze_siv_subscript): Pass in the loop nest number.
6630 Call evolution_function_is_affine_in_loop instead of
6631 evolution_function_is_affine_p.
6632 (analyze_overlapping_iterations): Pass in the loop nest number.
6634 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6635 Sebastian Pop <sebastian.pop@amd.com>
6637 PR tree-optimization/36206
6638 * tree-chrec.h (chrec_fold_op): New.
6639 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6642 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
6644 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6646 (remove_duplicates): Do not set inode on non-inode systems.
6649 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
6651 * config.gcc (tm_file): Update comments about relative pathnames.
6653 2008-05-20 Richard Guenther <rguenther@suse.de>
6655 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6656 * tree-ssa-sccvn.c (process_scc): Likewise.
6657 * tree-ssa-sink.c (execute_sink_code): Likewise.
6658 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6659 * tree-vrp.c (process_assert_insertions): Likewise.
6660 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6661 (perform_tree_ssa_dce): Likewise.
6662 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6663 (dump_dominator_optimization_stats): Likewise.
6664 * tree-vectorizer.c (vectorize_loops): Likewise.
6666 2008-05-20 Richard Guenther <rguenther@suse.de>
6668 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6670 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
6672 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6673 (ix86_i386elf_return_in_memory): Likewise.
6674 (ix86_i386interix_return_in_memory): Likewise.
6675 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6676 (SUBTARGET_RETURN_IN_MEMORY): New.
6677 * config/i386/i386elf.h: Likewise.
6678 * config/i386/ptx4-i.h: Likewise.
6679 * config/i386/sol2-10.h: Likewise.
6680 * config/i386/sysv4.h: Likewise.
6681 * config/i386/vx-common.h: Likewise.
6682 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6683 * config/i386/i386.c (ix86_return_in_memory): Made static and
6684 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6685 (ix86_i386elf_return_in_memory): Removed.
6686 (ix86_i386interix_return_in_memory): Removed.
6687 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6688 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6690 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
6692 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6694 2008-05-19 Xinliang David Li <davidxl@google.com>
6696 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6698 * common.opt: Ditto.
6699 * doc/invoke.texi: Ditto.
6701 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
6703 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6704 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6706 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6708 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6709 sizes of operand array from 8/4 to 4/2.
6710 (ix86_expand_vector_init_general): Change size of operand array
6711 from 32 to 16. Remove op0, op1 and half_mode.
6713 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6715 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6716 (ix86_expand_vector_init_interleave): Likewise.
6717 (ix86_expand_vector_init_general): Use them. Assert
6718 word_mode == SImode when n_words == 4.
6720 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
6722 * config/i386/i386.c (ix86_secondary_reload): New static function.
6723 (TARGET_SECONDARY_RELOAD): New define.
6724 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6725 * config/i386/i386.md (reload_outqi): Remove.
6727 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6730 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6731 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6732 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6733 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6734 (fold_builtin_1): Likewise.
6735 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6736 c-common.c (check_builtin_function_arguments): Handle
6737 BUILT_IN_ISINF_SIGN.
6738 * doc/extend.texi: Document __builtin_isinf_sign.
6739 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6741 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6743 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6744 EH cleanup at the end of the pass, search for those that have been
6745 turned into forwarder blocks and do the cleanup on their successor.
6747 2008-05-18 Richard Guenther <rguenther@suse.de>
6749 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6750 pointers to sizetype and vice versa.
6752 2008-05-18 Xinliang David Li <davidxl@google.com>
6754 * gcc/tree-ssa-dce.c: Coding style fix.
6755 (check_pow): Documentation comment.
6756 (check_log): Documenation comment. Coding style fix.
6757 (is_unnecessary_except_errno_call): Ditto.
6758 (gen_conditions_for_pow): Ditto.
6759 (gen_conditions_for_log): Ditto.
6760 (gen_shrink_wrap_conditions): Ditto.
6761 (shrink_wrap_one_built_in_calls): Ditto.
6762 * gcc/doc/invoke.texi: Better documentation string.
6763 * ChangeLog: Fix wrong change log entries from
6764 May 17 checkin on function call DCE.
6766 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6768 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6770 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6772 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6773 * df-problems.c (simulation routines): Fixed block comment to
6774 properly say how to add forwards scanning functions.
6776 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6778 * tree-inline.c (setup_one_parameter): Remove dead code.
6780 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6782 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6783 a BIT_AND_EXPR only for an INTEGER_TYPE.
6785 2008-05-17 Xinliang David Li <davidxl@google.com>
6787 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6788 (check_pow, check_log, is_unnecessary_except_errno_call): New
6789 functions to check for eliminating math functions that are pure
6790 except for setting errno.
6791 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6792 general condition expressions for shrink-wrapping pow/log calls.
6793 (gen_shrink_wrap_conditions): Ditto.
6794 (shrink_wrap_one_built_in_call): Ditto.
6795 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6796 (mark_operand_necessary): If debugging, output if OP is necessary.
6797 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6799 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6801 * gcc/common.opt: New user flag -ftree-builtin-dce.
6802 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6804 2008-05-16 David S. Miller <davem@davemloft.net>
6806 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6807 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6809 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6812 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6814 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6816 * ifcvt.c (dead_or_predicable): Rename
6817 df_simulate_one_insn_backwards to df_simulate_one_insn.
6818 * recog.c (peephole2_optimize): Ditto.
6819 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6821 * df.h: Rename df_simulate_one_insn_backwards to
6822 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6823 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6824 scanning of defs and uses.
6825 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6826 (df_simulate_one_insn_forwards): Removed.
6828 2008-05-16 Doug Kwan <dougkwan@google.com>
6830 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6832 (real_from_string): Handle NaNs and Inf as approriate.
6834 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6836 * doc/gty.texi (Source Files Containing Type Information): Note
6837 that headers should appear first in the gtfiles list.
6839 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6841 * tree.def (COND_EXEC): Properly documented this code.
6843 2008-05-16 Diego Novillo <dnovillo@google.com>
6845 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6846 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6849 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6851 * tree-ssa-dse (max_stmt_uid): Removed.
6852 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6853 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6854 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6855 * function.h (cfun.last_stmt_uid): New field.
6856 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6857 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6859 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6860 (create_stmt_ann): Initialize the ann->uid field.
6861 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6863 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6865 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6867 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6868 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6869 (init_empty_tree_cfg): Call it.
6871 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6873 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6876 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6878 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6879 * tree-dump.c (dump_options): New verbose option.
6880 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6882 * tree-pass.h (TDF_VERBOSE): New dump flag.
6883 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6884 (tree-flow.h): Added include.
6885 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6887 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6889 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6891 From Jie Zhang <jie.zhang@analog.com>
6892 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6893 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6894 mcpu=bf561-none and mcpu=bf561-0.2.
6895 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6896 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6897 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6898 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6899 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6900 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6901 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6903 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6904 (cputype_selected): Remove.
6905 (bfin_handle_option): Don't use cputype_selected.
6906 (override_options): When no mcpu option, enable all workarounds.
6907 Don't use bfin_workarounds.
6908 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6910 (DEFAULT_CPU_TYPE): Don't define.
6912 2008-05-16 Richard Guenther <rguenther@suse.de>
6914 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6915 on deletion of the last stmt.
6917 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6919 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6920 V8HImode for SSE2 and V16QImode for SSE4.1.
6922 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6924 * cgraph.h (compute_inline_parameters): Made public.
6925 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6926 variable_generate_summary, function_write_summary,
6927 variable_write_summary, variable_read_summary. Added generate_summary,
6928 write_summary, read_summary.
6929 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6930 pass_ipa_inline.function_generate_summary, to
6931 compute_inline_parameters.
6932 * ipa-inline.c (compute_inline_parameters): Made public and added
6934 (compute_inline_parameters_for_current): New function.
6935 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6936 (inline_generate_summary): Removed parameter and made to loop over
6938 (pass_ipa_inline): Updated for new IPA_PASS structure.
6939 * passes.c (execute_ipa_summary_passes): Now is called once per
6940 pass rather than once per node*pass.
6942 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6944 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6945 avr_have_mul_p, avr_asm_only_p): Remove variables.
6946 (avr_override_options): Remove initialization of removed variables.
6947 (avr_file_start): Convert removed variables to fields of
6948 'struct base_arch_s *avr_current_arch'.
6949 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6950 (AVR_HAVE_MUL): (Ditto.).
6951 (AVR_HAVE_MOVW): (Ditto.).
6952 (AVR_HAVE_LPMX): (Ditto.).
6953 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6954 avr_asm_only_p): Remove declaration.
6956 2008-05-15 Diego Novillo <dnovillo@google.com>
6958 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6959 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6961 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6964 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6965 Don't call record_truncated_value from here.
6966 (record_truncated_value): Turn it into a for_each_rtx callback.
6967 (record_truncated_values): New function.
6968 (combine_instructions): Call note_uses with record_truncated_values.
6969 Change name of check_conversion to check_promoted_subreg.
6971 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6973 * doc/sourcebuild.texi: Document support for torture tests.
6975 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6977 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6978 to alternative 4 of operand 2.
6980 2008-05-15 Richard Guenther <rguenther@suse.de>
6982 * tree-pass.h (current_pass): Declare.
6983 (get_pass_for_id): Likewise.
6984 * passes.c (passes_by_id, passes_by_id_size): New globals.
6985 (set_pass_for_id): New function.
6986 (get_pass_for_id): Likewise.
6987 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6988 (execute_function_todo): Flush per function statistics.
6989 * toplev.c (compile_file): Init statistics.
6990 (general_init): Do early statistics initialization.
6991 (finalize): Finish statistics.
6992 * statistics.h (statistics_early_init): Declare.
6993 (statistics_init): Likewise.
6994 (statistics_fini): Likewise.
6995 (statistics_fini_pass): Likewise.
6996 (statistics_counter_event): Likewise.
6997 (statistics_histogram_event): Likewise.
6998 * statistics.c: New file.
6999 * Makefile.in (OBJS-common): Add statistics.o.
7000 (statistics.o): Add dependencies.
7001 * doc/invoke.texi (-fdump-statistics): Document.
7003 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7005 (execute_pre): Use statistics_counter_event.
7006 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7007 (substitute_and_fold): Increment it. Use statistics_counter_event.
7009 2008-05-15 Diego Novillo <dnovillo@google.com>
7011 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7013 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7014 * tree-ssa-alias.c (new_type_alias): Remove references to
7015 sub-variables from comment.
7016 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7018 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7020 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7021 attribute to 1 only for insertps alternative.
7023 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7025 * config/bfin/bfin.md (loadbytes): New pattern.
7026 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7027 (bfin_init_builtins): Initialize it.
7028 (bdesc_1arg): Add it.
7030 2008-05-15 Sa Liu <saliu@de.ibm.com>
7032 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7033 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7034 * testsuite/lib/target-supports.exp: Add
7035 check_effective_target_fortran_integer_16.
7037 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7039 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7040 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7041 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7042 (TARGET_RETURN_IN_MEMORY): Define.
7044 2008-05-15 Richard Guenther <rguenther@suse.de>
7047 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7048 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7049 represent unmodifiable vars.
7051 2008-05-15 Richard Guenther <rguenther@suse.de>
7053 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7054 INDIRECT_REF and TARGET_MEM_REF.
7055 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7058 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7059 H.J. Lu <hongjiu.lu@intel.com>
7061 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7062 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7063 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
7064 insn alternatives. Add missing alternatives.
7065 (*vec_concatv2di_rex64_sse4_1): Likewise.
7066 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7067 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7070 2008-05-15 Richard Guenther <rguenther@suse.de>
7072 PR tree-optimization/36009
7073 PR tree-optimization/36204
7074 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7075 (determine_invariantness_stmt): Record the loop a store is
7077 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7080 2008-05-15 Richard Guenther <rguenther@suse.de>
7082 PR tree-optimization/34330
7083 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7084 through the pointer will alias the SMT.
7086 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
7088 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7090 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
7092 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7094 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7095 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7097 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7098 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7099 (vashl_optab): New optab for vector/vector shifts.
7100 (vashr_optab): Ditto.
7101 (vlshr_optab): Ditto.
7102 (vrotl_optab): Ditto.
7103 (vrotr_optab): Ditto.
7104 (optab_subtype): New enum for optab_for_tree_code call.
7105 (optab_for_tree_code): Add enum optab_subtype argument.
7107 * optabs.c (optab_for_tree_code): Take an additional argument to
7108 distinguish between a vector shift by a scalar and vector shift by
7109 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
7110 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
7111 vector shift by a vector.
7112 (expand_widen_pattern_expr): Pass additional argument to
7113 optab_for_tree_code.
7115 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7116 vrotl_optab, vrotr_optab.
7118 * expr.c (expand_expr_real_1): Update calls to
7119 optab_for_tree_code to distinguish between vector shifted by a
7120 scalar and vector shifted by a vector.
7121 * tree-vectorizer.c (supportable_widening_operation): Ditto.
7122 (supportable_narrowing_operation): Ditto.
7123 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7124 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7125 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7126 (vect_create_epilog_for_reduction): Ditto.
7127 (vectorizable_reduction): Ditto.
7128 (vectorizable_operation): Ditto.
7129 (vect_strided_store_supported): Ditto.
7130 (vect_strided_load_supported): Ditto.
7131 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7132 * expmed.c (expand_shift): Ditto.
7134 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7136 (ashr@var{m}3): Ditto.
7137 (vashl@var{m}3): Document new vector/vector shift standard name.
7138 (vashr@var{m}3): Ditto.
7139 (vlshr@var{m}3): Ditto.
7140 (vrotl@var{m}3): Ditto.
7141 (vrotr@var{m}3): Ditto.
7143 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7144 (PPERM_INVERT): Ditto.
7145 (PPERM_REVERSE): Ditto.
7146 (PPERM_REV_INV): Ditto.
7147 (PPERM_ZERO): Ditto.
7148 (PPERM_ONES): Ditto.
7149 (PPERM_SIGN): Ditto.
7150 (PPERM_INV_SIGN): Ditto.
7151 (PPERM_SRC1): Ditto.
7152 (PPERM_SRC2): Ditto.
7154 * config/i386/sse.md (mulv2di3): Add SSE5 support.
7155 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7156 allows a memory operand to be the value being added, and split it
7157 to improve vectorization.
7158 (sse5_pmacsdqh_mem): Ditto.
7159 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7160 (sse5_mulv2div2di3_high): Ditto.
7161 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7162 (vec_pack_trunc_v4si): Ditto.
7163 (vec_pack_trunc_v2di): Ditto.
7164 (sse5_pcmov_<mode>): Remove code that tried to use use
7165 andps/andnps instead of pcmov.
7166 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7167 pmacsdqh instructions.
7168 (vec_widen_smult_lo_v4si): Ditto.
7170 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7171 (PPERM_INVERT): Ditto.
7172 (PPERM_REVERSE): Ditto.
7173 (PPERM_REV_INV): Ditto.
7174 (PPERM_ZERO): Ditto.
7175 (PPERM_ONES): Ditto.
7176 (PPERM_SIGN): Ditto.
7177 (PPERM_INV_SIGN): Ditto.
7178 (PPERM_SRC1): Ditto.
7179 (PPERM_SRC2): Ditto.
7180 (ix86_expand_sse_movcc): Move the SSE5 test after the if
7182 (ix86_expand_int_vcond): If SSE5 generate all possible integer
7184 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7185 says ignore whether the last reference is a memory operand.
7187 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7188 Paolo Bonzini <bonzini at gnu dot org>
7190 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7193 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7194 (vlshr<mode>3): Rename from vlshr<mode>3.
7195 (vashr<mode>3): Rename from vashr<mode>3.
7196 (mulv4sf3): Change the names of vector shift patterns.
7200 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7203 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7228 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7229 (floatunssidf2_internal): Change vector/vector shift names.
7230 (floatunsdidf2_internal): Ditto.
7237 (vashl<mode>3): Rename from ashl<mode>3.
7238 (vashr<mode>3): Rename from ashr<mode>3.
7239 (vlshr<mode>3): Rename from lshr<mode>3.
7240 (vrotl<mode>3): Rename from rotl<mode>3.
7242 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7245 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7246 multiply gives the wrong value when doing widening multiplies.
7247 (vec_widen_smult_lo_v4si): Ditto.
7249 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7251 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7252 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7253 emit_library_call_value.
7254 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7255 * tree.h (ECF_LIBCALL_BLOCK): Removed.
7256 * calls.c (initialize_argument_information, precompute_arguments,
7257 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7258 (precompute_arguments): Removed flags parameter.
7259 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7261 2008-05-14 Richard Guenther <rguenther@suse.de>
7263 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7264 Make sure to register the store if the use is a PHI_NODE.
7266 2008-05-14 Olivier Hainque <hainque@adacore.com>
7268 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7269 memory if the component is to be referenced in BLKmode according
7270 to get_inner_reference.
7272 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7274 * calls.c (emit_library_call_value_1): Restore code clearing
7275 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7277 2008-05-14 Olivier Hainque <hainque@adacore.com>
7278 Nicolas Roche <roche@adacore.com>
7280 * configure.ac: Add support for a "gcc_subdir" variable in
7281 config-lang.in, to denote a subdirectory where the language/GCC
7282 integration files are to be found.
7283 * configure: Regenerate.
7285 2008-05-14 Ira Rosen <irar@il.ibm.com>
7287 PR tree-optimization/36098
7288 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7289 value for the first load in the group in case of a gap.
7290 (vect_build_slp_tree): Check that there are no gaps in loads.
7292 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7294 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7295 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7296 expand_copysign_bit, ): Change call to emit_no_conflict_block to
7297 emit_insn and remove unneeded code to construct extra args.
7298 (emit_no_conflict_block): Removed.
7299 * optabls.h: (emit_no_conflict_block): Removed.
7300 * cse.c (cse_extended_basic_block): Remove search for
7301 REG_NO_CONFLICT note.
7302 * global.c: Removed incorrect comment added in revision 117.
7303 * expr.c (convert_move): Change call to emit_no_conflict_block to
7305 * recog.c: Change comments so that they do not mention
7307 * local_alloc.c (combine_regs): Removed last parameter.
7308 (no_conflict_p): Removed.
7309 (block_alloc): Removed note, no_conflict_combined_regno and set
7310 local vars. Removed all code to process REG_NO_CONFLICT blocks.
7311 (combine_regs): Removed already_dead and code to look for
7312 REG_NO_CONFLICT notes.
7313 * lower_subreg (remove_retval_note): Removed code to look for
7314 REG_NO_CONFLICT block.
7315 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7316 (resolve_clobber): Remove code to process libcalls that have
7317 REG_NO_CONFLICT notes.
7318 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7320 * combine.c (can_combine_p, distribute_notes): Removed
7321 REG_NO_CONFLICT case.
7322 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7324 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7325 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7327 * reg-notes.def (NO_CONFLICT): Removed.
7329 2008-05-14 David S. Miller <davem@davemloft.net>
7331 * config/sparc/sparc.c (sparc_profile_hook): If
7332 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7333 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7334 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7336 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
7338 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7340 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
7343 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7344 and op1 expansion before vector concat to have less live pseudos.
7346 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
7348 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7349 ix86_expand_vector_set if supported.
7351 2008-05-13 Diego Novillo <dnovillo@google.com>
7352 Kenneth Zadeck <zadeck@naturalbridge.com>
7354 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7356 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7357 phinodes_print_statistics, init_ssanames, fini_ssanames,
7358 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7359 release_ssa_name, release_defs, replace_ssa_name_symbol,
7360 ssanames_print_statistics): Move ...
7361 * tree-flow.h: ... here.
7362 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7363 Use FN instead of cfun.
7364 (make_ssa_name_fn): Rename from make_ssa_name.
7365 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7366 * tree-flow-inline.h (make_ssa_name): Move from
7367 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
7368 * omp-low.c (expand_omp_parallel):
7369 * tree-flow-inline.h (redirect_edge_var_map_result):
7370 * tree-ssa.c (init_tree_ssa): Add argument FN.
7371 Use it instead of cfun. Update all users.
7373 2008-05-13 Tom Tromey <tromey@redhat.com>
7375 PR preprocessor/22168:
7376 * doc/cpp.texi (Top): Update menu.
7377 (Alternatives to Wrapper #ifndef): New node.
7378 (Other Directives): Document deprecation.
7379 (Obsolete Features): Remove menu.
7380 (Assertions): Merge node into Obsolete Features.
7381 (Obsolete once-only headers): Move earlier; rename to Alternatives
7383 * doc/cppopts.texi: Update.
7384 * c.opt (Wdeprecated): Enable for C and ObjC.
7385 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7386 (C++ Dialect Options): Move -Wno-deprecated from here to...
7387 (Warning Options): ... here.
7389 2008-05-13 Richard Guenther <rguenther@suse.de>
7392 * fold-const.c (fold_sign_changed_comparison): Do not allow
7393 changes in pointer-ness.
7395 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7398 * config/sh/sh.c (sh_expand_prologue): Don't clear
7399 RTX_FRAME_RELATED_P for push insns.
7401 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7403 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7405 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7407 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7408 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7409 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7411 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7413 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7414 (*vec_concatv4sf_sse): This.
7415 (*sse2_concatv2si): Renamed to ...
7416 (*vec_concatv2si_sse2): This.
7417 (*sse1_concatv2si): Renamed to ...
7418 (*vec_concatv2si_sse): This.
7419 (*vec_concatv2di_rex): Renamed to ...
7420 (*vec_concatv2di_rex64): This.
7421 (*vec_concatv2si_sse4_1): New.
7422 (*vec_concatv2di_rex64_sse4_1): Likewise.
7424 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7426 PR rtl-optimization/36111
7427 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7428 that was created for swappable operands.
7430 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7433 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7434 * configure.ac: Add call to ACX_PROG_GNAT.
7436 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7438 * optc-gen.awk: Fix comment typo.
7440 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7442 * pretty-print.c (pp_integer_with_precision): Use
7443 HOST_LONG_LONG_FORMAT.
7445 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7447 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7449 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7451 * config/i386/i386.c (bdesc_ptest): Removed.
7452 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7453 (bdesc_args): Add __builtin_ia32_ptestz128,
7454 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7455 (ix86_init_mmx_sse_builtins): Updated.
7456 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7457 (ix86_expand_builtin): Updated.
7459 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7461 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7462 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7464 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7466 * value-prof.c (interesting_stringop_to_profile): Do not
7467 return early for BUILT_IN_MEMPCPY.
7469 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7471 * calls.c (expand_call): Don't use callgraph to increase
7472 preferred_stack_boundary.
7474 * cgraph.h (cgraph_rtl_info): Use unsigned on
7475 preferred_incoming_stack_boundary.
7477 * final.c (rest_of_clean_state): Use unsigned on
7478 preferred_stack_boundary.
7480 2008-05-09 Tom Tromey <tromey@redhat.com>
7482 PR preprocessor/22231:
7483 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7486 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7488 PR tree-optimization/36129
7489 * tree-ssa-ccp.c: Include value-prof.h.
7490 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7491 built-in function was folded to a constant.
7492 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7494 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7495 Sebastian Pop <sebastian.pop@amd.com>
7497 * tree-scalar-evolution.c: Document instantiate_scev.
7498 (instantiate_parameters_1): Renamed instantiate_scev_1.
7499 Don't use the same loop for instantiation_loop and evolution_loop.
7500 (instantiate_scev): New.
7501 (instantiate_parameters): Moved...
7502 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7503 same loop twice. Maintains the semantics for this function.
7504 * tree-scalar-evolution.h (instantiate_scev): Declare.
7505 (instantiate_parameters): ...here. Now static inline.
7506 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7507 instead of resolve_mixers.
7509 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7511 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7513 2008-05-09 Tomas Bily <tbily@suse.cz>
7515 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7516 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7517 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7518 * c-common.c (c_common_truthvalue_conversion): Likewise.
7519 * tree-object-size.c (compute_object_offset): Likewise.
7520 * tree-inline.c (estimate_num_insns_1): Likewise.
7521 * varasm.c (const_hash_1, compare_constant, copy_constant)
7522 (compute_reloc_for_constant, output_addressed_constants)
7523 (initializer_constant_valid_p): Likewise.
7524 * c-omp.c (check_omp_for_incr_expr): Likewise.
7525 * gimplify.c (gimplify_expr): Likewise.
7526 * c-typeck.c (c_finish_return): Likewise.
7527 * tree-vectorizer.c (supportable_widening_operation)
7528 (supportable_narrowing_operation): Likewise.
7529 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7530 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7531 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7532 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7533 (descr_info_loc): Likewise.
7534 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7535 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7536 (fold_unary): Likewise.
7537 * builtins.c (get_pointer_alignment): Likewise.
7538 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7539 (instantiate_parameters_1): Likewise.
7540 * tree.c (expr_align, stabilize_reference): Likewise.
7541 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7542 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7543 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7544 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7545 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7546 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7548 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7549 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7550 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7551 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7552 (forward_propagate_comparison)
7553 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7554 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7555 * emit-rtl.c (component_ref_for_mem_expr)
7556 (set_mem_attributes_minus_bitpos): Likewise.
7557 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7558 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7560 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7561 (build_function_call, pointer_diff, build_compound_expr)
7562 (c_finish_return): Likewise.
7563 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7564 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7566 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7567 * expr.c (is_aligning_offset): Likewise.
7568 * tree-ssa-alias.c (is_escape_site): Likewise.
7569 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7570 (check_all_va_list_escapes): Likewise.
7571 * tree-ssa-loop-ivopts.c (determine_base_object)
7572 (determine_common_wider_type): Likewise.
7573 * dojump.c (do_jump): Likewise.
7574 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7575 * tree-gimple.c (is_gimple_cast): Likewise.
7576 * fold-const.c (decode_field_reference, )
7577 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7578 (fold_binary): Likewise.
7579 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7580 (already_warned_in_frontend_p): Likewise.
7581 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7582 * tree.c (really_constant_p, get_unwidened): Likewise.
7583 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7584 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7585 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7587 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7589 (CONVERT_EXPR_P): Define.
7590 (CASE_CONVERT): Define.
7592 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7595 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7596 (delete_unmarked_insns): When deleting a call, call
7597 delete_unreachable_blocks.
7598 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7599 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7601 2008-05-08 Richard Guenther <rguenther@suse.de>
7603 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7604 (-ftree-salias): Likewise.
7605 (salias-max-implicit-fields): Remove param documentation.
7606 (salias-max-array-elements): Likewise.
7607 * tree-pass.h (pass_create_structure_vars): Remove.
7608 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7609 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7610 * tree-ssa-alias.c (create_structure_vars): Remove.
7611 (gate_structure_vars): Likewise.
7612 (pass_create_structure_vars): Likewise.
7613 (gate_build_alias): Likewise.
7614 (pass_build_alias): Adjust to run always and dump the function.
7615 * common.opt (ftree-salias): Hide.
7616 * passes.c (init_optimization_passes): Remove
7617 pass_create_structure_vars, adjust comment.
7618 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7619 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7620 * opts.c (decode_options): Do not set flag_tree_salias.
7621 (common_handle_option): Add OPT_ftree_salias to the backward
7622 compatibility section.
7624 2008-05-08 Richard Guenther <rguenther@suse.de>
7626 * tree-flow-inline.h (var_can_have_subvars): Move ...
7627 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7628 * tree-flow.h (var_can_have_subvars): Remove.
7629 (push_fields_onto_fieldstack): Remove.
7630 (sort_fieldstack): Likewise.
7631 (struct fieldoff): Move ...
7632 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
7633 alias_set and base_for_components fields.
7634 (sort_fieldstack): Make static.
7635 (push_fields_onto_fieldstack): Likewise. Remove code that
7636 handles anything but RECORD_TYPEs. Remove alias_set and
7637 base_for_components handling.
7638 (create_variable_info_for): Adjust.
7640 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
7642 * common.opt (Wframe-larger-than=): Shorten the help message
7644 * doc/invoke.texi (Wframe-larger-than=): Add more description.
7646 2008-05-08 Rafael Espindola <espindola@google.com>
7648 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7650 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7651 trap and that both operands are gimple values.
7652 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7653 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7656 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7658 * read-rtl.c (join_c_conditions): Return the first string if the
7659 two strings are equal.
7661 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7663 * gensupport.h (pred_data): Add a "num_codes" field.
7664 (add_predicate_code): Declare.
7665 * gensupport.c (add_predicate_code): New function.
7666 (std_pred_table): Add an "allows_const_p" field.
7667 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7668 Remove the (incomplete) list of such codes from the codes field.
7669 (init_predicate_table): Use add_predicate_code. Add all
7670 RTX_CONST_OBJs if allows_const_p is true.
7671 * genrecog.c (process_define_predicate): Use add_predicate_code.
7673 2008-05-08 David Daney <ddaney@avtrex.com>
7674 Richard Sandiford <rsandifo@nildram.co.uk>
7676 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7677 special case of constant zero operands.
7678 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7679 old and new values. Special case constant zero values.
7680 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7682 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7683 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7685 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
7688 * simplify-rtx.c (simplify_plus_minus): Create CONST of
7689 similar RTX_CONST_OBJ before CONST_INT.
7691 2008-05-08 Steve Ellcey <sje@cup.hp.com>
7693 * stmt.c (expand_stack_restore): Change sa mode if needed.
7695 2008-05-08 Richard Guenther <rguenther@suse.de>
7697 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7698 return type to bool.
7699 (ix86_sol10_return_in_memory): Likewise.
7700 (ix86_i386elf_return_in_memory): Likewise.
7701 (ix86_i386interix_return_in_memory): Likewise.
7702 * config/i386/i386.c (ix86_return_in_memory): Likewise.
7703 (ix86_sol10_return_in_memory): Likewise.
7704 (ix86_i386elf_return_in_memory): Likewise.
7705 (ix86_i386interix_return_in_memory): Likewise.
7707 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7710 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7712 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7713 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7716 2008-05-08 Richard Guenther <rguenther@suse.de>
7718 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7719 * tree-data-ref.h (struct dr_alias): Remove subvars field.
7720 (DR_SUBVARS): Remove.
7721 * tree-dfa.c (dump_subvars_for): Remove.
7722 (debug_subvars_for): Likewise.
7723 (dump_variable): Do not dump subvars.
7724 (remove_referenced_var): Do not remove subvars.
7725 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7726 (lookup_subvars_for_var): Remove.
7727 (get_subvars_for_var): Likewise.
7728 (get_subvars_at): Likewise.
7729 (get_first_overlapping_subvar): Likewise.
7730 (overlap_subvar): Likewise.
7731 * tree-flow.h (subvar_t): Remove.
7732 (struct var_ann_d): Remove subvars field.
7733 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7734 argument. Remove special handling of SFTs.
7735 (compute_tag_properties): Likewise.
7736 (set_initial_properties): Likewise.
7737 (compute_call_clobbered): Likewise.
7738 (count_mem_refs): Likewise.
7739 (compute_memory_partitions): Likewise.
7740 (compute_flow_insensitive_aliasing): Likewise.
7741 (setup_pointers_and_addressables): Likewise.
7742 (new_type_alias): Likewise.
7743 (struct used_part): Remove.
7744 (used_portions): Likewise.
7745 (struct used_part_map): Likewise.
7746 (used_part_map_eq): Likewise.
7747 (used_part_map_hash): Likewise.
7748 (free_used_part_map): Likewise.
7749 (up_lookup): Likewise.
7750 (up_insert): Likewise.
7751 (get_or_create_used_part_for): Likewise.
7752 (create_sft): Likewise.
7753 (create_overlap_variables_for): Likewise.
7754 (find_used_portions): Likewise.
7755 (create_structure_vars): Likewise.
7756 * tree.def (STRUCT_FIELD_TAG): Remove.
7757 * tree.h (MTAG_P): Adjust.
7758 (struct tree_memory_tag): Remove base_for_components and
7759 unpartitionable flags.
7760 (struct tree_struct_field_tag): Remove.
7761 (SFT_PARENT_VAR): Likewise.
7762 (SFT_OFFSET): Likewise.
7763 (SFT_SIZE): Likewise.
7764 (SFT_NONADDRESSABLE_P): Likewise.
7765 (SFT_ALIAS_SET): Likewise.
7766 (SFT_UNPARTITIONABLE_P): Likewise.
7767 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7768 (union tree_node): Remove sft field.
7769 * alias.c (get_alias_set): Remove special handling of SFTs.
7770 * print-tree.c (print_node): Remove handling of SFTs.
7771 * tree-dump.c (dequeue_and_dump): Likewise.
7772 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7773 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7774 * tree-predcom.c (set_alias_info): Do not set subvars.
7775 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7776 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7777 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7778 (add_vars_for_offset): Remove.
7779 (add_virtual_operand): Remove special handling of SFTs.
7780 (add_call_clobber_ops): Likewise.
7781 (add_call_read_ops): Likewise.
7782 (get_asm_expr_operands): Likewise.
7783 (get_modify_stmt_operands): Likewise.
7784 (get_expr_operands): Likewise.
7785 (add_to_addressable_set): Likewise.
7786 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7787 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7788 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7789 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7790 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7791 (tree_node_structure): Likewise.
7792 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7794 (find_what_p_points_to): Likewise.
7796 2008-05-08 Sa Liu <saliu@de.ibm.com>
7798 * config/spu/spu.md: Fixed subti3 pattern.
7800 2008-05-08 Richard Guenther <rguenther@suse.de>
7803 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7804 sure to create a representative for trailing arrays for PTA.
7806 2008-05-08 Richard Guenther <rguenther@suse.de>
7809 * fold-const.c (operand_equal_p): Two objects which types
7810 differ in pointerness are not equal.
7812 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7814 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7815 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7816 (emit_library_call_value_1): Add new variable fndecl initialized by
7817 NULL_TREE. It should be the decl type of orgfun, but this information
7818 seems not to be available here, so it uses the default calling abi.
7819 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7820 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7821 by TARGET_RETURN_IN_MEMORY.
7822 * config/i386/i386-interix.h: Likewise.
7823 * config/i386/i386.h: Likewise.
7824 * config/i386/i386elf.h: Likewise.
7825 * config/i386/ptx4-i.h: Likewise.
7826 * config/i386/sol2-10.h: Likewise.
7827 * config/i386/sysv4.h: Likewise.
7828 * config/i386/vx-common.h: Likewise.
7829 * config/cris/cris.h: Removed #if 0 clause.
7830 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7831 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7833 (ix86_sol10_return_in_memory): Likewise.
7834 (ix86_i386elf_return_in_memory): New.
7835 (ix86_i386interix_return_in_memory): New.
7836 * config/mt/mt-protos.h (mt_return_in_memory): New.
7837 * config/mt/mt.c: Likewise.
7838 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7839 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7840 * config/bfin/bfin.h: Likewise.
7841 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7843 * config/bfin/bfin.c: Likewise.
7844 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7845 * config/alpha/unicosmk.h: Likewise.
7846 * config/i386/cygming.h: Likewise.
7847 * config/iq2000/iq2000.h: Likewise.
7848 * config/mips/mips.h: Likewise.
7849 * config/mn10300/mn10300.h: Likewise.
7850 * config/rs6000/rs6000.h: Likewise.
7851 * config/score/score.h: Likewise.
7852 * config/spu/spu.h: Likewise.
7853 * config/v850/v850.h: Likewise.
7854 * defaults.h: Likewise.
7855 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7856 * expr.c (emit_block_move): Adjust use of
7857 OUTGOING_REG_PARM_STACK_SPACE.
7858 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7859 OUTGOING_REG_PARM_STACK_SPACE.
7860 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7862 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7864 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7865 on OMP_RETURN for OMP_FOR.
7868 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7869 (fortran_common): New function.
7870 (gen_variable_die): Call fortran_common instead of common_check,
7871 adjust for it returning tree instead of rtx. Formatting.
7873 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7877 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7878 * c-decl.c (merge_decls): Ditto.
7879 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7880 to RTL_CONST_OR_PURE_CALL_P.
7881 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7882 Initialized DECL_LOOPING_CONST_PURE.
7883 (process_call_operands): Set tree_side_effects properly.
7884 * tree.h (TREE_READONLY_DECL_P): Removed.
7885 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7886 (DECL_LOOPING_OR_CONST_P): New macro.
7887 (struct tree_function_decl): Added looping_const_or_pure_p.
7889 (ECF_LOOPING_OR_CONST_P): New macro.
7890 * rtlanal.c (pure_const_p): Removed.
7891 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7892 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7893 to RTL_CONST_CALL_P.
7894 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7895 (check_decl, check_tree, check_call, scan_function): Initialize
7897 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7898 (static_execute): Set looping true for recursive functions.
7899 Undo setting state to IPA_NEITHER for recursive functions.
7901 * ifcvt.c (noce_can_store_speculate_p): Changed
7902 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7903 RTL_CONST_OR_PURE_CALL_P.
7904 * dse.c (scan_insn): Ditto.
7905 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7906 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7907 RTL_CONST_OR_PURE_CALL_P.
7908 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7909 pure_call_p to RTL_CONST_CALL_P.
7910 * gimplify.c (gimplify_call_expr): Clear side effects for
7911 non-looping pure and constant calls.
7912 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7913 (flags_from_decl_or_type): Set ecf flags from decl flags.
7914 (initialize_argument_information): Turn off
7915 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7916 Change const to pure if callee_copies is true rather than just
7918 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7919 way of marking pure calls.
7920 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7921 Remove hack that was supposed to fix pr7335 and remove old
7922 way of marking pure calls.
7923 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7924 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7925 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7926 RTL_CONST_OR_PURE_CALL_P.
7927 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7928 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7929 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7930 * sched-deps.c (schedule_analyze): Ditto.
7931 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7932 return_val field of calls to represent pure and const function info.
7933 (CONST_OR_PURE_CALL_P): Deleted macro.
7934 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7935 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7936 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7938 * tree-optimize.c (execute_fixup_cfg): Added test for
7939 ECF_LOOPING_CONST_OR_PURE.
7940 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7942 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7943 effects for looping pure or const calls.
7944 (verify_gimple_expr): Added verification code.
7945 * config/alpha/alpha.c (alpha_legitimize_address,
7946 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7948 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7949 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7950 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7951 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7952 RTL_CONST_OR_PURE_CALL_P.
7953 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7954 and const calls to be deleted.
7956 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7959 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7960 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7961 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7962 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7963 to handle nonimmediate operands.
7964 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7965 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7966 to handle nonimmediate operands.
7967 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7968 (mmx_pmulhrwv4hi3): New expander. Use
7969 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7970 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7971 (sse2_umulv1siv1di3): New expander. Use
7972 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7973 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7974 (mmx_eq<mode>3): New expander. Use
7975 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7976 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7977 (mmx_uavgv8qi3): New expander. Use
7978 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7979 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7980 (mmx_uavgv4hi3): New expander. Use
7981 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7983 * config/i386/sse.md
7984 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7985 to handle nonimmediate operands.
7986 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7987 to handle nonimmediate operands.
7988 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7989 to handle nonimmediate operands.
7990 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7991 to handle nonimmediate operands.
7992 (sse2_unpckhpd_exp): New expander. Use
7993 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7994 (sse2_unpcklpd_exp): New expander. Use
7995 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7996 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7997 to handle nonimmediate operands.
7998 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7999 to handle nonimmediate operands.
8000 (*sse2_<plusminus_insn><mode>3): Rename from
8001 sse2_<plusminus_insn><mode>3 insn pattern.
8002 (sse2_<plusminus_insn><mode>3): New expander. Use
8003 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8004 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8005 (sse2_umulv2siv2di3): New expander. Use
8006 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8007 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8008 (sse4_1_mulv2siv2di3): New expander. Use
8009 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8010 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8011 (sse2_pmaddwd): New expander. Use
8012 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8013 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8014 (sse2_eq<mode>3): New expander. Use
8015 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8016 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8017 (sse4_1_eqv2di3): New expander. Use
8018 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8019 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8020 (sse2_uavgv16qi3): New expander. Use
8021 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8022 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8023 (sse2_uavgv16qi3): New expander. Use
8024 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8025 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8026 (sse2_uavgv8hi3): New expander. Use
8027 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8028 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8029 (ssse3_pmulhrswv8hi3): New expander. Use
8030 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8031 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8032 (ssse3_pmulhrswv4hi3): New expander. Use
8033 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8035 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8036 (<sse>_vmmul<mode>3): Ditto.
8037 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8039 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8040 (ssse3_pmaddubsw): Ditto.
8042 * config/i386/i386.c (struct_builtin_description)
8043 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8044 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8045 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8046 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8047 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8048 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8049 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8050 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8051 (ix86_fixup_binary_operands): Assert that src1
8052 and src2 must have the same mode when swapped.
8053 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8054 and ix86_binary_operator_ok. Do not force operands in registers
8057 2008-05-07 Jan Hubicka <jh@suse.cz>
8059 * cgraph.c (dump_cgraph_node): Update.
8060 * cgraph.h (cgraph_local_info): Break out inline summary.
8061 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8063 * ipa-inline (inline_summary): New accestor function.
8064 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8065 cgraph_decide_inlining, compute_inline_parameters): Update.
8066 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8068 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8070 Cleanup ColdFire scheduling support and add V4 pipeline model.
8072 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8073 (define_attr cpu): Add cfv4 value.
8074 (define_attr type, define_attr type1): Merge into a single 'type'
8075 attribute. Update all uses.
8076 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8077 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
8079 (define_attr opx_mem, define_attr opy_mem): Remove.
8080 (define_attr op_mem): Clean up, update comment.
8081 (define_attr size): Use specific values instead of general int.
8082 (define_attr guess, define_attr split): Remove. Update all uses.
8083 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8084 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8085 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8086 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8087 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8088 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8089 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8090 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8091 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8092 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8093 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8094 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8095 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8096 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8097 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8098 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8099 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8100 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8101 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8102 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8103 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8104 Update or set attributes.
8105 (stack_tie): New fake instruction.
8107 * config/m68k/m68k.h (TUNE_CFV4): New macro.
8108 (m68k_sched_attr_size): Update declaration.
8109 (m68k_sched_attr_type2): Remove.
8110 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8111 Declare new bypass predicates.
8113 * config/m68k/m68k.c (m68k_sched_issue_rate,
8114 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8116 (TARGET_SCHED_ISSUE_RATE,
8117 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8118 (override_options): Handle scheduling for ColdFire V4 core.
8119 (m68k_expand_prologue): Emit stack_tie.
8120 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8121 'OP_TYPE_FPN'. Update all uses.
8122 (sched_guess_p): Remove.
8123 (sched_address_type): Handle symbolic addresses.
8124 (sched_get_operand): New static function.
8125 (sched_operand_type): Merge into sched_attr_op_type.
8126 (sched_attr_op_type): Handle FP registers, handle quick constants,
8128 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8129 (m68k_sched_attr_size): Update. Move logic to ...
8130 (sched_get_attr_size_int): New static function.
8131 (sched_get_opxy_mem_type): New static function.
8132 (m68k_sched_attr_op_mem): Update.
8133 (m68k_sched_attr_type2): Remove.
8134 (sched_cfv4_bypass_data): New static variable.
8135 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8136 (m68k_sched_issue_rate): Implement scheduler hook.
8137 (struct _sched_ib: enabled_p): New field.
8138 (m68k_sched_variable_issue): Update. Handle V4.
8139 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8140 sched_dump_class_func_t, sched_dump_split_class,
8141 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8142 sched_dump_dfa_class, m68k_sched_dump): Remove.
8143 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8145 (m68k_sched_init_global): Remove statisctics dumping, introduce
8146 sanity check that all instructions have pipeline reservations. Handle
8148 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8149 Handle ColdFire V4 core.
8150 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8151 New static functions.
8152 (m68k_sched_address_bypass_p): New bypass predicate.
8153 (sched_get_indexed_address_scale): New static function.
8154 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8156 * cf.md: Update comments.
8157 (define_attr type2): Remove. Use 'type' attribute instead.
8159 (cf_ib): Rename to cfv123_ib. Update all uses.
8160 (cf_oep): Rename to cfv123_oep. Update all uses.
8161 (cf_chr): Rename to cfv123_chr. Update all uses.
8162 (cf_mem): Rename to cfv123_mem. Update all uses.
8163 (cf_mac): Move to more appropriate place.
8164 (cfv123_guess): New automaton and cpu_unit.
8165 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8166 Update uses of 'size' attribute. Handle before reload scheduling.
8167 (cfv123_guess): New dummy reservation for unhandled instructions.
8168 (cfv4_*): Pipeline description of ColdFire V4 core.
8169 (ignore): New reservation to handle 'ignore' type.
8171 2008-05-07 Ian Lance Taylor <iant@google.com>
8174 * gimplify.c (find_single_pointer_decl_1): Don't look through
8176 (find_single_pointer_decl): Adjust comments.
8178 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8181 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8182 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8185 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8186 integral type rather than floating point, then VIEW_CONVERT_EXPR
8187 to the floating point type.
8189 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8191 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8192 TFmode op0 to register.
8194 2008-05-07 Alan Modra <amodra@bigpond.net.au>
8196 * c-decl.c (grokdeclarator): Comment typo.
8198 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
8200 * tree-flow.h: Remove prototype for computed_goto_p.
8201 * tree-cfg.c (computed_goto_p): Make static.
8203 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8206 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8207 (contains_aligned_value_p): This. Handle _Decimal128.
8208 (ix86_function_arg_boundary): Only align _Decimal128 to its
8209 natural boundary and handle it properly.
8211 2008-05-06 Martin Jambor <mjambor@suse.cz>
8213 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8214 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8215 (ipcp_method_set_orig_node): Removed.
8216 (ipcp_cval_get_cvalue_type): Removed.
8217 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8218 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8219 (ipcp_cval_set_cvalue_type): Removed.
8220 (ipcp_cval_get_cvalue): Removed.
8221 (ipcp_cval_set_cvalue): Removed.
8222 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8223 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8224 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8225 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8226 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8227 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8228 (ipcp_get_ith_lattice): Changed parameters.
8229 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8230 (ipcp_lattice_from_jfunc): Changed parameters.
8231 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8232 (ipcp_method_cval_print): Added temporary variable info.
8233 (ipcp_redirect): Removed already unused local variable caller.
8234 (ipcp_redirect): New temporary variable orig_callee_info
8235 (ipcp_redirect): Removed newly unused local variable callee.
8236 (ipcp_redirect): Removed (a bit confusing) local variable type.
8237 (ipcp_insert_stage): Added local variable info.
8238 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8240 (ipcp_formal_create): Removed.
8241 (ipcp_method_cval_set): Removed.
8242 (ipcp_propagate_stage): Renamed lattice variables.
8243 (ipcp_method_cval_set_cvalue_type): Removed.
8244 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8245 (ipcp_print_all_lattices): Changed printed strings to refer to
8246 lattices rather than cvals.
8247 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8248 (ipcp_propagate_const): Changed formal parameters.
8249 (build_const_val): Changed formal parameters.
8250 (ipcp_insert_stage): Removed useless variable cvalue
8251 (build_const_val): Changed formal parameters.
8252 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8253 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8254 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8255 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8256 (ipcp_print_func_profile_counts): Changed string from "method" to
8258 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8259 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8260 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8261 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8262 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8263 (ipcp_lat_is_const): Changed parameters and made inline.
8264 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8265 (ipcp_redirect): Renamed to ipcp_need_redirect_p
8266 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8267 the predicate condition directly
8268 (ipcp_propagate_stage): Added local variable args. Removed local
8269 variable callee. (Both are mere code simplifications.)
8270 (ipcp_method_dont_insert_const): Renamed to
8271 ipcp_node_not_modifiable_p.
8272 (ipcp_node_not_modifiable_p): Made inline.
8273 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8274 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8275 (ipcp_print_all_lattices): Removed variable cvalue
8276 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8279 2008-05-06 Olivier Hainque <hainque@adacore.com>
8281 * tree-sra.c (try_instantiate_multiple_fields): Early return
8282 if field has POINTER_TYPE.
8284 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
8286 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8287 by using 'q' specifier for instruction.
8288 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8290 2008-05-06 Anatoly Sokolov <aesok@post.ru>
8292 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8293 Change mode of zero_extract from QImode to HImode.
8294 (sign bit tests peepholes): (Ditto.).
8296 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
8298 * config/i386/mmx.md: Remove double backslashes from asm templates.
8299 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8300 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8301 to handle nonimmediate operands.
8302 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8303 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8304 to handle nonimmediate operands.
8305 (*mmx_<code>v2sf3_finite): New insn pattern.
8306 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8307 (mmx_<code>v2sf3): New expander. Use
8308 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8309 (mmx_<plusminus_insn><mode>3): New expander. Use
8310 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8311 (*mmx_<plusminus_insn><mode>3): New insn pattern.
8312 (mmx_add<mode>3): Removed.
8313 (mmx_ssadd<mode>3): Ditto.
8314 (mmx_usadd<mode>3): Ditto.
8315 (mmx_sub<mode>3): Ditto.
8316 (mmx_sssub<mode>3): Ditto.
8317 (mmx_ussub<mode>3): Ditto.
8318 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8319 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
8320 to handle nonimmediate operands.
8321 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8323 (mmx_smulv4hi3_highpart): New expander. Use
8324 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8325 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8327 (mmx_umulv4hi3_highpart): New expander. Use
8328 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8329 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8330 (mmx_<code>v4hi3): New expander. Use
8331 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8332 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8333 (mmx_<code>v8qi3): New expander. Use
8334 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8335 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8336 (mmx_<code><mode>3): New expander. Use
8337 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8339 2008-05-05 Jan Hubicka <jh@suse.cz>
8341 PR tree-optimization/36118
8342 * passes.c (pass_init_dump_file): Fix dump header.
8344 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8347 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8348 VCE for function decls.
8350 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8352 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8354 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8356 * config/i386/i386.md (sat_plusminus): New.
8357 (plusminus_insn): Likewise.
8358 (plusminus_mnemonic): Likewise.
8360 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8361 (*<addsub><mode>3_cc_overflow): Renamed to ...
8362 (*<plusminus_insn><mode>3_cc_overflow): This.
8363 (*<addsub>si3_zext_cc_overflow): Renamed to ...
8364 (*<plusminus_insn>si3_zext_cc_overflow): This.
8366 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8367 (<plusminus_insn><mode>3): This.
8368 (*<addsub><mode>3): Renamed to ...
8369 (*<plusminus_insn><mode>3): This.
8370 (<sse>_vm<addsub><mode>3): Renamed to ...
8371 (<sse>_vm<plusminus_insn><mode>3): This.
8372 (sse3_h<addsub>v4sf3): Renamed to ...
8373 (sse3_h<plusminus_insn>v4sf3): This.
8374 (sse3_h<addsub>v2df3): Renamed to ...
8375 (sse3_h<plusminus_insn>v2df3): This.
8376 (<plusminus_insn><mode>3): New.
8377 (*<plusminus_insn><mode>3): Likewise.
8378 (sse2_<plusminus_insn><mode>3): Likewise.
8379 (add<mode>): Removed.
8380 (*add<mode>3): Likewise.
8381 (sse2_ssadd<mode>3): Likewise.
8382 (sse2_usadd<mode>3): Likewise.
8383 (sub<mode>3): Likewise.
8384 (*sub<mode>3): Likewise.
8385 (sse2_sssub<mode>3): Likewise.
8386 (sse2_ussub<mode>3): Likewise.
8388 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8390 * gthr-single.h: Add in required interface elements as per gthr.h.
8391 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8392 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8393 Generalize UNUSED macro.
8394 (__gthread_once): Add.
8395 (__gthread_key_create): Add.
8396 (__gthread_key_delete): Add.
8397 (__gthread_getspecific): Add.
8398 (__gthread_setspecific): Add.
8400 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8402 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8403 the same size types for the indirect reference on the rhs, then
8406 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8408 * config/i386/i386.md
8409 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8410 one insn template instead of template series.
8411 (*xordi_1_rex64): Ditto.
8412 (*xordi_2_rex64): Ditto.
8414 2008-05-05 Ira Rosen <irar@il.ibm.com>
8416 PR tree-optimization/36119
8417 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8420 2008-06-04 Jan Hubicka <jh@suse.cz>
8422 tree-optimization/36100
8423 * tree-pass.h (pass_O0_always_inline): Declare.
8424 * ipa-inline.c (inline_transform): Remove dead code.
8425 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8426 pass_O0_always_inline): New.
8427 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8429 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8431 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8432 mnemonic in this_param move for TARGET_64BIT.
8434 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8436 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8437 (*strmovsi_rex_1): Ditto.
8438 (*strsetsi_1): Ditto.
8439 (*strsetsi_rex_1): Ditto.
8441 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8442 adddicc expanders using SWI mode iterator.
8444 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8447 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8450 2008-05-04 David S. Miller <davem@davemloft.net>
8452 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8453 (sparc*-*-linux*): Use linux.h in tm_file.
8454 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8455 compiler defaulting to 32-bit.
8456 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8458 * config/sparc/linux.h: Remove definitions now obtained
8459 properly from linux.h
8460 * config/sparc/linux64.h: Likewise.
8461 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8462 don't want this setting for 32-bit builds in a biarch compiler.
8463 * doc/install.texi: Add sparc-linux to list of targets
8464 supporting --enable-targets=all.
8466 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8468 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8470 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8472 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8473 after V4SI_FTYPE_V8HI.
8474 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8475 case V4SI_FTYPE_V2DF.
8477 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8479 * doc/invoke.texi (max-flow-memory-locations): Removed.
8480 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8482 2008-05-03 Richard Guenther <rguenther@suse.de>
8485 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8487 2008-05-02 David S. Miller <davem@davemloft.net>
8489 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8491 2008-05-02 Simon Baldwin <simonb@google.com>
8494 * c-common.h (warn_array_subscript_range): Removed.
8495 * c-common.c (warn_array_subscript_range): Ditto.
8496 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8497 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8499 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8501 * config/i386/i386.c (ix86_special_builtin_type): New.
8502 (bdesc_special_args): Likewise.
8503 (ix86_expand_special_args_builtin): Likewise.
8504 (ix86_init_mmx_sse_builtins): Updated.
8505 (ix86_expand_builtin): Updated.
8506 (ix86_expand_store_builtin): Removed.
8507 (ix86_expand_unop_builtin): Likewise.
8509 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8510 * config/i386/mmintrin.h (__v2sf): Here.
8512 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8514 (_mm_loadl_pi): Likewise.
8515 (_mm_storeh_pi): Replace __v2si with __v2sf.
8516 (_mm_storel_pi): Likewise.
8518 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8519 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8520 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8521 __builtin_ia32_loadlpd.
8523 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8525 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8526 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8527 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8528 (ix86_init_mmx_sse_builtins): Updated.
8529 (ix86_expand_args_builtin): Likewise.
8530 (ix86_expand_builtin): Likewise.
8531 (ix86_expand_unop1_builtin): Renamed to ...
8532 (ix86_expand_unop_vec_merge_builtin): This.
8534 2008-05-01 Jan Hubicka <jh@suse.cz>
8537 * ipa-inline.c (inline_generate_summary): Make static.
8538 (inline_transform): Do not call inlining at -O0; make static.
8539 * passes.c (execute_todo): Add sanity check.
8540 (execute_one_ipa_transform_pass): Execute proper flags.
8542 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8544 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8545 (DECL_NONADDRESSABLE_P): Likewise.
8546 * alias.c (record_component_aliases): Fix comment.
8548 2008-05-01 Simon Baldwin <simonb@google.com>
8550 * c-common.h (warn_array_subscript_range): New function.
8551 * c-common.c (warn_array_subscript_range): Ditto.
8552 * tree-vrp.c (check_array_ref): Corrected code to agree with
8553 comment, ignoring only arrays of size 0 or size 1.
8554 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8556 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8558 * config/i386/i386.c (ix86_builtin_type): Replace
8559 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8560 (bdesc_args): Updated.
8561 (ix86_init_mmx_sse_builtins): Likewise.
8562 (ix86_expand_args_builtin): Likewise.
8564 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8567 * doc/extend.texi: Correct __builtin_ia32_palignr.
8569 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8572 * config/i386/i386.c (bdesc_crc32): Removed.
8573 (ix86_expand_crc32): Likewise.
8574 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8575 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8576 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8577 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8578 UINT_FTYPE_UINT_UCHAR.
8579 (bdesc_args): Updated. Add crc32 builtins.
8580 (ix86_init_mmx_sse_builtins): Updated.
8581 (ix86_expand_args_builtin): Updated to support subreg.
8583 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8585 2008-05-01 Jan Hubicka <jh@suse.cz>
8587 * tree-pass.h (opt_pass): Add IPA_PASS.
8588 (varpool_node, cgraph_node): Forward declare.
8589 (ipa_opt_pass): Define.
8590 (pass_ipa_inline): Turn into ipa_opt_pass.
8591 (pass_apply_inline): Remove.
8592 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8593 (apply_inline): Turn into ....
8594 (inline_transform): ... this one.
8595 (inline_generate_summary): New function.
8596 (pass_apply_inline): Remove.
8597 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8599 (struct function): Add ipa_transforms_to_apply.
8600 * passes.c (register_one_dump_file): Work on IPA_PASS.
8601 (init_optimization_passes): Remove pass_inline_parameters and
8603 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8604 (execute_one_pass) ... here; apply transforms when possible.
8605 (add_ipa_transform_pass, execute_ipa_summary_asses,
8606 execute_one_ipa_transform_pass): New.
8607 (execute_ipa_pass_list): Update for IPA_PASS type.
8609 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8611 * config/i386/i386.c (ix86_builtin_type): Add
8612 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8613 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8614 (bdesc_args): Add SSE4a builtins.
8615 (ix86_init_mmx_sse_builtins): Updated.
8616 (ix86_expand_args_builtin): Likewise.
8617 (ix86_expand_builtin): Likewise.
8619 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8621 * config/i386/i386.c (ix86_builtin_type): Add
8622 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8623 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8624 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8625 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8626 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8627 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8628 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8629 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8630 and DI_FTYPE_DI_DI_INT.
8631 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8632 (ix86_init_mmx_sse_builtins): Updated.
8633 (ix86_expand_args_builtin): Likewise.
8634 (ix86_expand_builtin): Likewise.
8635 (ix86_expand_binop_imm_builtin): Removed.
8637 * doc/extend.texi: Correct __builtin_ia32_palignr128.
8639 2008-04-30 Richard Guenther <rguenther@suse.de>
8641 PR tree-optimization/32921
8642 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8644 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
8646 * config/arm/arm.c (arm_unwind_emit): Use
8647 crtl->all_throwers_are_sibcalls instead of
8648 cfun->all_throwers_are_sibcalls.
8649 (arm_output_fn_unwind): Likewise.
8650 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8651 instead of cfun->uses_pic_offset_table.
8652 (frv_expand_prologue): Likewise.
8653 (frv_frame_pointer_required): Likewise.
8654 (frv_expand_fdpic_call): Likewise.
8655 (frv_emit_movsi): Likewise.
8656 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8657 cfun->returns_pcc_struct instead of
8658 current_function_returns_pcc_struct.
8659 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8660 instead of cfun->calls_eh_return.
8661 (m32c_pushm_popm): Likewise.
8662 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8663 "extern" declaration.
8665 2008-04-30 Richard Guenther <rguenther@suse.de>
8667 PR tree-optimization/21636
8668 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8670 (evaluate_stmt): Print the likely value.
8671 (ccp_visit_stmt): Avoid excessive vertical spacing.
8673 2008-04-30 Rafael Espindola <espindola@google.com>
8675 * builtins.c (fold_call_expr): Return realret.
8676 * tree-ssa-threadedge.c
8677 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8678 __builtin_object_size.
8680 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
8682 * gcc.c (wrapper_string): New variable.
8683 (insert_wrapper): New function.
8684 (execute): New option -wrapper.
8685 * doc/invoke.texi (Overall Options): New driver option -wrapper.
8687 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
8689 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8690 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8691 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8693 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
8694 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8695 config/rs6000/e500crtres64gprctr.asm,
8696 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8697 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8698 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8699 config/rs6000/e500crtsav64gprctr.asm,
8700 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8701 config/rs6000/e500crtsavg64gprctr.asm: New files.
8702 * config/rs6000/t-ppccomm: Add build rules for new files.
8703 (LIB2FUNCS_STATIC_EXTRA): Add new files.
8704 * config/rs6000/t-netbsd: Add build rules for new files.
8705 (LIB2FUNCS_STATIC_EXTRA): New variable.
8706 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8707 (CRTSAVRES_DEFAULT_SPEC): Likewise.
8708 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8710 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
8712 * config/i386/i386.c (ix86_builtin_type): Add
8713 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8714 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8715 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8716 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8717 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8718 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8719 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8720 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8721 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8722 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8723 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8724 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8725 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8726 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8727 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8728 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8729 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8730 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8731 V1DI_FTYPE_V2SI_V2SI.
8732 (bdesc_2arg): Moved to ...
8734 (ix86_init_mmx_sse_builtins): Updated.
8735 (ix86_expand_args_builtin): Updated. Take a pointer
8736 to const struct builtin_description. Handle comparison
8738 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8739 (ix86_expand_builtin): Updated.
8741 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8742 (ssse3_pmaddubsw128): This.
8743 (ssse3_pmaddubswv4hi3): Renamed to ...
8744 (ssse3_pmaddubsw): This.
8746 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8747 (__builtin_ia32_packssdw128): Likewise.
8748 (__builtin_ia32_packuswb128): Likewise.
8749 (__builtin_ia32_pmaddubsw): Likewise.
8750 (__builtin_ia32_pmaddubsw128): Likewise.
8752 2008-04-30 Richard Guenther <rguenther@suse.de>
8754 PR tree-optimization/14847
8755 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8756 (recognize_bits_test): Use it.
8757 (recognize_single_bit_test): Likewise.
8759 2008-04-30 Martin Jambor <mjambor@suse.cz>
8761 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8762 instead of setting number of formal parameters to zero.
8763 (ipcp_init_stage): Do not set the number of actual parameters to zero
8765 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8766 which are called with variable number of arguments.
8767 (ipcp_insert_stage): Explicitely skipping all nodes which are
8768 called with variable number of arguments.
8769 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8770 number of parameters.
8772 * ipa-prop.h (struct ipa_node_params): Added flag
8773 called_with_var_arguments
8774 (ipa_set_param_count): Added. Changed sole setter to use it.
8775 (ipa_get_param_count): Added. All readers of param_count
8776 converted to use it instead.
8777 (ipa_set_called_with_variable_arg): Added.
8778 (ipa_is_called_with_var_arguments): Added.
8779 (ipa_get_ith_param): Added. All readers of param_decls converted
8781 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8783 (ipa_get_cs_argument_count): Added, all readers of argument_count
8785 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8788 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8789 (struct ipcp_lattice): Renamed cval_type to type
8790 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8792 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8793 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8794 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8795 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8796 (build_const_val): Changed the type of parameter cvalue to tree
8797 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8798 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8800 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8803 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8804 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8805 (ipa_add_method): Renamed to ipa_push_func_to_list
8806 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8807 (ipa_callsite_param_count): Removed.
8808 (ipa_callsite_param_count_set): Removed.
8809 (ipa_callsite_param): Removed.
8810 (ipa_callsite_callee): Removed.
8811 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8812 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8813 (ipa_method_formal_count): Removed.
8814 (ipa_method_formal_count_set): Removed.
8815 (ipa_method_get_tree): Removed.
8816 (ipa_method_tree_map_create): Removed.
8817 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8818 (ipa_create_param_decls_array): Creates the array itself
8819 (ipa_create_param_decls_array): Temporary variable info instead of
8821 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8822 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8823 (get_type): Removed.
8824 (ipa_jf_get_info_type): Removed.
8825 (ipa_node_create): Renamed to ipa_create_node_params
8826 (ipa_free): Renamed to ipa_free_all_node_params
8827 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8828 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8829 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8830 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8831 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8832 ipa_free_all_edge_args
8833 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8834 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8835 (ipa_create_methodlist_node): Removed.
8836 (ipa_methodlist_method): Removed.
8837 (ipa_methodlist_method_set): Removed.
8838 (ipa_methodlist_next_method): Removed.
8839 (ipa_methodlist_next_method_set): Removed.
8840 (ipa_method_is_modified): Removed.
8841 (ipa_method_modify_create): Removed.
8842 (ipa_method_modify_init): Temporary variable info instead of a few
8844 (ipa_detect_param_modifications): Temporary variable info instead of
8846 (ipa_compute_jump_functions): Temporary variable info instead of
8848 (ipa_method_modify_set): Removed.
8849 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8850 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8851 than craph_node as the first parameter.
8852 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8853 (ipa_method_modify_init): Removed.
8854 (ipa_compute_jump_functions): Added a temp variable instead of
8855 repeatadly dereferencing the cgraph_edge.aux pointer
8856 (ipa_callsite_param_set_type): Removed.
8857 (ipa_compute_jump_functions): i renamed to index and moved to
8859 (ipa_callsite_param_set_info_type_formal): Removed.
8860 (ipa_callsite_param_set_info_type): Removed.
8861 (ipa_callsite_param_map_create): Removed.
8862 (ipa_callsite_tree): Removed.
8863 (ipa_callsite_caller): Removed.
8864 (ipa_pop_func_from_list): return_method removed to return_func
8866 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8867 prefixed all values with IPA_. Changed all users.
8868 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8869 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8870 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8871 (union parameter_info): Renamed to jump_func_value.
8872 (union jump_func_value): Renamed value to constant
8873 (struct ipa_jump_func): Renamed info_type to value
8874 (struct ipa_node): Renamed to ipa_node_params
8875 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8876 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8877 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8878 (struct ipa_edge): Renamed to ipa_edge_args
8879 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8880 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8881 (struct ipa_methodlist): Renamed to ipa_func_list
8882 (struct ipa_func_list): method_p renamed to node, next_method
8884 (ipa_methodlist_p): Removed, switched all users to struct pointer
8885 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8887 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8889 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8890 (rs6000_emit_epilogue): Use backchain to restore only when we
8891 have a large frame. Make use of frame pointer to restore if we
8892 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8894 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8896 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8897 Add mode to zero_extract.
8898 (sign bit tests peepholes): (Ditto.).
8900 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8902 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8903 Instructions in comments with SSE3.
8904 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8905 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8906 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8907 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8908 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8909 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8910 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8911 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8912 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8913 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8914 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8915 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8916 (bdesc_sse_args): Renamed to ...
8917 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8918 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8919 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8921 (bdesc_1arg): Moved to ...
8923 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8924 Instructions in comments with SSE3.
8925 (ix86_expand_sse_operands_builtin): Renamed to ...
8926 (ix86_expand_args_builtin): This. Updated.
8927 (ix86_expand_unop1_builtin): Update comments.
8928 (ix86_expand_builtin): Updated.
8930 2008-04-29 Richard Guenther <rguenther@suse.de>
8932 PR tree-optimization/36078
8933 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8934 Update virtual SSA form after cleaning up the CFG.
8936 2008-04-29 Richard Guenther <rguenther@suse.de>
8939 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8941 2008-04-29 Richard Guenther <rguenther@suse.de>
8943 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8944 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8945 (compute_flow_insensitive_aliasing): Do not treat
8946 PTR_IS_REF_ALL pointers special.
8947 (get_smt_for): Likewise.
8948 (may_alias_p): Re-structure.
8949 (is_escape_site): A ref-all pointer conversion is not an escape site.
8950 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8951 PTR_IS_REF_ALL pointers special.
8952 * tree-ssa-structalias.h (struct alias_info): Remove
8953 ref_all_symbol_mem_tag field.
8954 (PTR_IS_REF_ALL): Remove.
8956 2008-04-29 Richard Guenther <rguenther@suse.de>
8959 * fold-const.c (extract_muldiv_1): In combining division constants
8960 make sure to never overflow.
8962 2008-04-29 Nick Clifton <nickc@redhat.com>
8964 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8966 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8969 * optc-gen.awk: Work around HP-UX/IA awk bug.
8971 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8973 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8976 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8979 * config/i386/i386.md
8980 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8981 Change operand 1 predicate to nonimmediate_operand.
8983 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8986 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8988 * gengtype.c (walk_type, write_func_for_structure): Handle
8990 * doc/gty.texi: Document chain_circular.
8992 2008-04-28 Richard Guenther <rguenther@suse.de>
8994 PR tree-optimization/36066
8995 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8998 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9001 * config/i386/i386.md
9002 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9003 Use match_scratch instead of match_operand for operands 3 and 4.
9005 2008-04-27 Richard Guenther <rguenther@suse.de>
9007 PR tree-optimization/18754
9008 PR tree-optimization/34223
9009 * tree-pass.h (pass_complete_unrolli): Declare.
9010 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9011 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9012 Rewrite loop into loop closed SSA form if it is not already.
9013 (tree_unroll_loops_completely): Re-structure to iterate over
9014 innermost loops with intermediate CFG cleanups.
9015 Unroll outermost loops only if requested or the code does not grow
9017 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9018 loops are available.
9019 (tree_vectorize): Instead do so here.
9020 (tree_complete_unroll): Also unroll outermost loops.
9021 (tree_complete_unroll_inner): New function.
9022 (gate_tree_complete_unroll_inner): Likewise.
9023 (pass_complete_unrolli): New pass.
9024 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9025 uses outside of the loop.
9026 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9027 form if it is available.
9028 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9029 * passes.c (init_optimization_passes): Schedule complete inner
9030 loop unrolling pass before the first CCP pass after final inlining.
9032 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9034 * targhooks.h (default_emutls_var_fields,
9035 default_emutls_var_init): Declare.
9036 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9037 * target.h (struct gcc_target): Add struct emutls member.
9038 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9039 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9040 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9041 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9042 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9043 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9044 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9045 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9046 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9047 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9048 emit debug information.
9049 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9050 * varasm.c: Include targhooks.h.
9051 (emutls_object_section, emutls_tmpl_section): New.
9052 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9053 (EMUTLS_SEPARATOR): New.
9055 (get_emutls_object_name): New.
9056 (default_emutls_var_fields): New, broken out of ...
9057 (get_emutls_object_type): ... here. Adjust to use target hooks.
9058 (get_emutls_init_templ_addr): Adjust to use target hooks.
9059 (emutls_decl): Adjust to use target hooks.
9060 (emutls_finish): Likewise.
9061 (default_emutls_var_init): New, broken out of ...
9062 (assemble_variable): ... here. Adjust to use target hooks.
9063 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9065 * c-common.c (handle_section_attribute): Prevent overriding
9066 sections for emulated tls with special sections.
9067 * config/i386/i386.c (x86_64_elf_select_section): Add
9068 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9069 (x86_64_elf_unique_section): Likewise.
9070 * config/vxworks.c: Include tree.h.
9071 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9072 (vxworks_override_options): Set TLS scheme.
9073 * doc/tm.texi (Emulated TLS): New node.
9075 2008-04-26 Simon Baldwin <simonb@google.com>
9078 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9079 with propagated string constants.
9081 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
9083 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9084 constraint for operand 2 when operand 0 is memory operand.
9085 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9086 operand 0 is memory operand.
9087 (fix_trunc<mode>_i387_with_temp): Ditto.
9088 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9089 operand 2 when operand 1 is memory operand.
9090 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9091 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9092 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9093 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9094 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9095 operands 2,3 and 4 when operand 1 is memory operand.
9096 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9098 (fistdi2_floor_with_temp): Ditto.
9099 (fist<mode>2_floor_with_temp): Ditto.
9100 (fistdi2_ceil_with_temp): Ditto.
9101 (fist<mode>2_ceil_with_temp): Ditto.
9102 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9104 2008-04-26 David Daney <ddaney@avtrex.com>
9106 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9108 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9109 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9110 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9111 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9112 (compare_and_swap_12): New insn.
9113 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9114 * config/mips/mips.c (mips_force_binary): New function.
9115 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9116 (mips_expand_compare_and_swap_12): New function.
9117 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9119 2008-04-25 Jan Hubicka <jh@suse.cz>
9122 * cfgexpand.c (pass_expand): Turn into RTL pass.
9123 * passes.c (execute_one_pass): Do pass typechecking after execution.
9124 * tree-pass.h (pass_expand): Turn into RTL pass.
9126 * function.h (struct rtl_data): Move here fields
9127 accesses_prior_frames, calls_eh_return, saves_all_registers,
9128 has_nonlocal_goto, has_asm_statement, is_thunk,
9129 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9130 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9131 arg_pointer_save_area_init from struct function; turn into bool.
9132 (struct function): Move
9133 calls_eh_return, saves_all_registers, has_nonlocal_goto,
9134 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9135 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9136 tail_call_emit, arg_pointer_save_area_init
9137 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
9138 (current_function_returns_struct, current_function_returns_pcc_struct,
9139 current_function_calls_setjmp, current_function_calls_alloca,
9140 current_function_accesses_prior_frames,
9141 current_function_calls_eh_return, current_function_is_thunk,
9142 current_function_stdarg, current_function_profile,
9143 current_function_limit_stack, current_function_uses_pic_offset_table,
9144 current_function_uses_const_pool, current_function_has_nonlocal_label,
9145 current_function_saves_all_registers,
9146 current_function_has_nonlocal_goto,
9147 current_function_has_asm_statement): Remove accesor macros.
9148 * ra-conflict.c (global_conflicts): Update.
9149 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9150 (suitable_for_tail_call_opt_p): Update.
9151 * builtins.c (expand_builtin_return_addr): Update.
9152 (expand_builtin_setjmp_setup): Update.
9153 (expand_builtin_nonlocal_goto): Update.
9154 * final.c (final_start_function): Update.
9155 (profile_function): Update.
9156 (leaf_function_p): Update.
9157 (only_leaf_regs_used): Update.
9158 * df-scan.c (df_get_exit_block_use_set): Update.
9159 * dojump.c (clear_pending_stack_adjust): Update.
9160 * tree-stdarg.c (gate_optimize_stdarg): Update.
9161 * gimple-low.c (lower_function_body): Update.
9162 * global.c (compute_regsets): Update.
9163 (global_alloc): Update.
9164 * dwarf2out.c (dwarf2out_begin_prologue): Update.
9165 * expr.c (expand_assignment): Update.
9166 * dse.c (dse_step0): Update.
9167 (dse_step1): Update.
9168 * c-decl.c (store_parm_decls): Update.
9169 * local-alloc.c (combine_regs): Update.
9170 (find_free_reg): Update.
9171 * function.c (assign_parms_augmented_arg_list): Update.
9172 (assign_parm_find_data_types): Update.
9173 (assign_parms): Update.
9174 (allocate_struct_function): Update.
9175 (expand_function_start): Update.
9176 (expand_function_end): Update.
9177 (get_arg_pointer_save_area): Update.
9178 (thread_prologue_and_epilogue_insns): Update.
9179 (rest_of_match_asm_constraints): Update.
9180 * stor-layout.c (variable_size): Update.
9181 * gcse.c (gcse_main): Update.
9182 (bypass_jumps): Update.
9183 * gimplify.c (gimplify_function_tree): Update.
9184 * calls.c (emit_call_1): Update.
9185 (expand_call): Update.
9186 * bt-load.c (compute_defs_uses_and_gen): Update.
9187 * except.c (sjlj_assign_call_site_values): Update.
9188 (sjlj_emit_function_enter): Update.
9189 (can_throw_external): Update.
9190 (set_nothrow_function_flags): Update.
9191 (expand_builtin_unwind_init): Update.
9192 (expand_eh_return): Update.
9193 (convert_to_eh_region_ranges): Update.
9194 (output_function_exception_table): Update.
9195 * emit-rtl.c (gen_tmp_stack_mem): Update.
9196 * cfgexpand.c (expand_used_vars): Update.
9197 (tree_expand_cfg): Update.
9198 * cfgcleanup.c (rest_of_handle_jump): Update.
9199 * explow.c (allocate_dynamic_stack_space): Update.
9200 * varasm.c (assemble_start_function): Update.
9201 (force_const_mem): Update.
9202 (mark_constant_pool): Update.
9203 * tree-optimize.c (tree_rest_of_compilation): Update.
9204 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9205 * tree-cfg.c (notice_special_calls): Update.
9206 (is_ctrl_altering_stmt): Update.
9207 (tree_can_make_abnormal_goto): Update.
9208 (tree_purge_dead_abnormal_call_edges): Update.
9209 * config/alpha/predicates.md: Update.
9210 * config/alpha/alpha.c (alpha_sa_mask): Update.
9211 (alpha_sa_size): Update.
9212 (alpha_does_function_need_gp): Update.
9213 (alpha_expand_prologue): Update.
9214 (alpha_start_function): Update.
9215 (alpha_output_function_end_prologue): Update.
9216 (alpha_expand_epilogue): Update.
9217 * config/frv/frv.c (frv_stack_info): Update.
9218 (frv_expand_epilogue): Update.
9219 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9220 (s390_register_info): Update.
9221 (s390_frame_info): Update.
9222 (s390_init_frame_layout): Update.
9223 (s390_can_eliminate): Update.
9224 (save_gprs): Update.
9225 * config/spu/spu.c (spu_split_immediate): Update.
9226 (need_to_save_reg): Update.
9227 (spu_expand_prologue): Update.
9228 (spu_expand_epilogue): Update.
9229 * config/sparc/sparc.md: Update.
9230 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9231 (sparc_tls_got): Update.
9232 (legitimize_pic_address): Update.
9233 (sparc_emit_call_insn): Update.
9234 (sparc_expand_prologue): Update.
9235 (output_return): Update.
9236 (print_operand): Update.
9237 (sparc_function_ok_for_sibcall): Update.
9238 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9239 * config/m32r/m32r.md: Update.
9240 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9241 (m32r_compute_frame_size): Update.
9242 (m32r_expand_prologue): Update.
9243 (m32r_expand_epilogue): Update.
9244 (m32r_legitimize_pic_address): Update.
9245 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9246 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9247 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9249 (ix86_save_reg): Update.
9250 (ix86_compute_frame_layout): Update.
9251 (ix86_expand_prologue): Update.
9252 (ix86_expand_epilogue): Update.
9253 * config/sh/sh.c (output_stack_adjust): Update.
9254 (calc_live_regs): Update.
9255 (sh5_schedule_saves): Update.
9256 (sh_expand_prologue): Update.
9257 (sh_expand_epilogue): Update.
9258 (sh_setup_incoming_varargs): Update.
9259 (sh_allocate_initial_value): Update.
9260 (sh_get_pr_initial_val): Update.
9261 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9262 * config/sh/sh.md (label:): Update.
9263 * config/avr/avr.c (out_movhi_mr_r): Update.
9264 * config/crx/crx.h (enum): Update.
9265 * config/xtensa/xtensa.h (along): Update.
9266 * config/stormy16/stormy16.c Update.
9267 (xstormy16_compute_stack_layout): Update.
9268 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9269 (fr30_expand_prologue): Update.
9270 * config/cris/cris.c (cris_conditional_register_usage): Update.
9271 (cris_reg_saved_in_regsave_area): Update.
9272 (cris_initial_frame_pointer_offset): Update.
9273 (cris_simple_epilogue): Update.
9274 (cris_expand_prologue): Update.
9275 (cris_expand_epilogue): Update.
9276 (cris_expand_pic_call_address): Update.
9277 (cris_asm_output_symbol_ref): Update.
9278 (cris_asm_output_label_ref): Update.
9279 * config/cris/cris.md Update.
9280 * config/iq2000/iq2000.c (compute_frame_size): Update.
9281 (iq2000_expand_epilogue): Update.
9282 * config/mt/mt.h (save_direction): Update.
9283 * config/mn10300/mn10300.c (mn10300_function_value): Update.
9284 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9285 (ia64_secondary_reload_class): Update.
9286 * config/m68k/m68k.c (m68k_save_reg): Update.
9287 (m68k_expand_prologue): Update.
9288 (m68k_expand_epilogue): Update.
9289 (legitimize_pic_address): Update.
9290 * config/rs6000/rs6000.c (rs6000_got_register): Update.
9291 (first_reg_to_save): Update.
9292 (first_altivec_reg_to_save): Update.
9293 (compute_vrsave_mask): Update.
9294 (compute_save_world_info): Update.
9295 (rs6000_stack_info): Update.
9296 (spe_func_has_64bit_regs_p): Update.
9297 (rs6000_ra_ever_killed): Update.
9298 (rs6000_emit_eh_reg_restore): Update.
9299 (rs6000_emit_allocate_stack): Update.
9300 (rs6000_emit_prologue): Update.
9301 (rs6000_emit_epilogue): Update.
9302 (rs6000_output_function_epilogue): Update.
9303 (output_profile_hook): Update.
9304 (rs6000_elf_declare_function_name): Update.
9305 * config/rs6000/rs6000.h (rs6000_args): Update.
9306 * config/rs6000/rs6000.md: Update.
9307 * config/mcore/mcore.c (mcore_expand_prolog): Update.
9308 * config/arc/arc.c (arc_output_function_epilogue): Update.
9309 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9310 * config/darwin.c (machopic_function_base_name): Update.
9311 * config/score/score3.c (score3_compute_frame_size): Update.
9314 (score3_epilogue): Update.
9315 * config/score/score7.c (score7_compute_frame_size): Update.
9316 (score7_prologue): Update.
9317 (score7_epilogue): Update.
9318 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9319 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9320 * config/arm/arm.c (use_return_insn): Update.
9321 (require_pic_register): Update.
9322 (arm_load_pic_register): Update.
9323 (arm_compute_save_reg0_reg12_mask): Update.
9324 (arm_compute_save_reg_mask): Update.
9325 (thumb1_compute_save_reg_mask): Update.
9326 (output_return_instruction): Update.
9327 (arm_output_function_prologue): Update.
9328 (arm_output_epilogue): Update.
9329 (arm_get_frame_offsets): Update.
9330 (arm_expand_prologue): Update.
9331 (thumb_pushpop): Update.
9332 (thumb_exit): Update.
9333 (thumb1_expand_prologue): Update.
9334 (thumb1_expand_epilogue): Update.
9335 (arm_unwind_emit): Update.
9336 (arm_output_fn_unwind): Update.
9337 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9338 * config/arm/arm.md: Update.
9339 * config/pa/pa.md: Update.
9340 * config/pa/pa.c (legitimize_pic_address): Update.
9341 (compute_frame_size): Update.
9342 (hppa_expand_prologue): Update.
9343 (hppa_expand_epilogue): Update.
9344 (borx_reg_operand): Update.
9345 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9346 (HARD_REGNO_RENAME_OK): Update.
9347 * config/mips/mips.c (mips_global_pointer): Update.
9348 (mips_save_reg_p): Update.
9349 (mips_compute_frame_info): Update.
9350 (mips_frame_pointer_required): Update.
9351 (mips_expand_prologue): Update.
9352 (mips_expand_epilogue): Update.
9353 (mips_can_use_return_insn): Update.
9354 (mips_reorg_process_insns): Update.
9355 * config/v850/v850.c (compute_register_save_size): Update.
9356 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9357 * config/mmix/mmix.c (along): Update.
9358 (mmix_expand_epilogue): Update.
9359 * config/bfin/bfin.c (legitimize_pic_address): Update.
9360 (must_save_p): Update.
9361 (stack_frame_needed_p): Update.
9362 (add_to_reg): Update.
9363 (bfin_expand_prologue): Update.
9364 * stmt.c (expand_asm_operands): Update.
9365 * reload1.c (reload): Update.
9366 (init_elim_table): Update.
9368 2008-04-25 Bob Wilson <bob.wilson@acm.org>
9370 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9372 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
9374 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9375 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
9376 (mov<mode>): Removed.
9377 (*movv4sf_internal): Likewise.
9378 (*movv2df_internal): Likewise.
9380 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9382 * config.gcc (crx-*-elf): Remove deprecation.
9384 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9386 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9387 __gcc_deregister_frame with atexit.
9388 (deregister_frame_dtor): Remove.
9390 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9391 Nathan Sidwell <nathan@codesourcery.com>
9393 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9395 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9396 (rs6000_isel): Likewise.
9397 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9398 (rs6000_isel): New variable.
9399 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9401 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9404 * c-common.c (handle_vector_size_attribute): Call
9405 lang_hooks.types.reconstruct_complex_type instead of
9406 reconstruct_complex_type.
9407 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9408 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9409 * langhooks.h (struct lang_hooks_for_types): Add
9410 reconstruct_complex_type hook.
9411 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9412 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9414 2008-04-24 Richard Guenther <rguenther@suse.de>
9416 * c-common.h (check_builtin_function_arguments): Declare.
9417 * c-common.c (validate_nargs): New function.
9418 (check_builtin_function_arguments): Likewise.
9419 * c-typeck.c (build_function_call): Call
9420 check_builtin_function_arguments.
9421 * builtins.c (fold_builtin_classify): Remove error reporting code.
9422 (fold_builtin_unordered_cmp): Likewise.
9423 (fold_builtin_1): Likewise.
9424 (fold_builtin_n): Likewise.
9426 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9428 PR tree-optimization/36008
9429 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9430 the original op1, rather than delta by step.
9432 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9433 Sebastian Pop <sebastian.pop@amd.com>
9435 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9436 eliminate_local_variables_stmt, eliminate_local_variables,
9437 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9438 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9439 of code delimited by two edges in the CFG.
9440 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9441 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9442 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9443 the case of parallelisation of reductions.
9444 (expr_invariant_in_region_p): New.
9446 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9447 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9449 2008-04-24 Ira Rosen <irar@il.ibm.com>
9450 Richard Guenther <rguenther@suse.de>
9452 PR tree-optimization/36034
9453 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9454 incapable of dealing with loads with gaps.
9456 2008-04-24 Rafael Espindola <espindola@google.com>
9458 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9459 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9460 vrp_evaluate_conditional.
9461 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9462 (vrp_evaluate_conditional): Split the cond argument.
9463 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9464 (simplify_stmt_for_jump_threading): Update call to
9465 vrp_evaluate_conditional.
9467 2008-04-24 Ira Rosen <irar@il.ibm.com>
9469 PR tree-optimization/35982
9470 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9471 interleaved data-refs are of the same type.
9473 2008-04-24 Danny Smith <dannysmith@users.net>
9475 * c-format.c (check_format_info_main): Use strncmp rather than a
9476 magic prefix to handle multichar length specs.
9477 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9478 Don't prefix "I64" and "I32" with '\0'.
9480 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9483 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9484 in registers for -m32 only if stdarg_p (fntype).
9486 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9488 PR rtl-optimization/36006
9489 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9490 temp to op0 in order to avoid invalid rtx sharing.
9492 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9494 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9495 check TREE_INVARIANT.
9496 * tree-gimple.c (is_gimple_address): New.
9497 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9498 * tree-gimple.h (is_gimple_address): New.
9499 * tree.h (decl_address_invariant_p): New.
9500 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9501 (build_string): Likewise.
9502 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9503 (tree_invariant_p_1): Likewise.
9504 (save_expr): Use it.
9505 (tree_invariant_p): New.
9506 (skip_simple_arithmetic): Use it.
9507 (stabilize_reference_1): Use it.
9508 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9510 (build1_stat): Drop code to compute TREE_INVARIANT.
9511 (build2_stat): Drop code to compute TREE_INVARIANT.
9512 (build3_stat): Drop code to compute TREE_INVARIANT.
9513 (build4_stat): Drop code to compute TREE_INVARIANT.
9514 (build5_stat): Drop code to compute TREE_INVARIANT.
9515 (build7_stat): Drop code to compute TREE_INVARIANT.
9516 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9517 * tree.h (struct tree_base): Remove invariant_flag.
9518 (TREE_INVARIANT): Remove.
9519 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9520 (fold_builtin_expect): Check TREE_CONSTANT.
9521 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9522 * c-tree.h (c_expr_to_decl): Drop third parameter.
9523 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9524 (build_c_cast): Don't set TREE_INVARIANT.
9525 (pop_init_level): Don't set TREE_INVARIANT.
9526 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9527 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9529 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9530 (gimplify_addr_expr): Adjust comment.
9531 * tree-mudflap.c (mf_build_string):
9532 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9533 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9534 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9535 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9536 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9537 * langhooks.h (struct lang_hooks): Drop third parameter from
9540 2008-04-23 Richard Guenther <rguenther@suse.de>
9542 PR tree-optimization/27799
9543 PR tree-optimization/32921
9544 PR tree-optimization/32624
9545 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9546 SMTs aliases and the tag itself into the solution.
9547 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9548 merge the points-to solution back into the SMT aliases.
9549 (may_alias_p): Use alias_set_subset_of instead of
9550 aliases_conflict_p. A pointer which points to
9551 memory with alias set zero may access any variable.
9553 2008-04-23 Richard Guenther <rguenther@suse.de>
9555 * alias.c (alias_set_subset_of): Correctly handle asking
9556 if zero is a subset of an alias set with zero child.
9557 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9558 (compute_flow_insensitive_aliasing): Correctly walk all
9559 pointers. Do not unnecessarily union sets.
9561 2008-04-23 Richard Guenther <rguenther@suse.de>
9564 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9566 2008-04-22 Tomas Bily <tbily@suse.cz>
9568 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9570 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9572 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9573 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9574 * tree-inline.c (estimate_num_insns_1): Likewise.
9575 * varasm.c (const_hash_1, compare_constant, copy_constant)
9576 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9577 * emit-rtl.c (component_ref_for_mem_expr)
9578 (set_mem_attributes_minus_bitpos): Likewise.
9579 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9580 (is_aligning_offset): Likewise.
9581 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9582 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9583 * dojump.c (do_jump): Likewise.
9584 * builtins.c (get_pointer_alignment, get_memory_rtx)
9585 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9586 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9588 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9590 PR rtl-optimization/36017
9591 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9592 expanding the library call.
9594 2008-04-22 Ian Lance Taylor <iant@google.com>
9596 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9599 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9601 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9602 of LR/CTR moves for Power6.
9604 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9607 * passes.c (init_optimization_passes): Remove
9608 pass_fast_rtl_byte_dce.
9610 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
9613 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9614 builtin functions to generate faster code.
9615 (_mm_cvtpu16_ps): Ditto.
9616 (_mm_cvtpi32x2_ps): Ditto.
9618 2008-04-22 Nick Clifton <nickc@redhat.com>
9620 * common.opt (ftree-loop-distribution): Add Optimization
9623 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9624 (frv_expand_builtin_va_start): Likewise.
9626 * config/arm/arm.c (thumb_find_work_register): Fix location of
9627 argument register count.
9629 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9631 Support scheduling for ColdFire V1 and V3 microarchitecture.
9632 Improve scheduling of multiplication instructions.
9634 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
9635 (mac): New instruction attribute.
9636 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9637 (m68k_sched_mac): New variable.
9638 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9639 Handle cfv1 and cfv3.
9640 (max_insn_size): New static variable.
9641 (struct _sched_ib): New type.
9642 (sched_ib): New static variable.
9643 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9644 to fields of 'struct _sched_ib sched_ib'. Update all uses.
9645 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9647 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9648 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
9649 new variables. Update.
9650 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9651 Add modeling of cfv3 instruction buffer. Update.
9652 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9653 * config/m68k/m68k.h (TUNE_CFV3): New macro.
9654 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9655 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9656 a particular reservation applies to.
9657 (type2): Reorganize attribute values. Rename alu to alu_reg,
9658 alu_l to alu, move_l to omove. Join move to alu. Split mul
9660 (cf_ib_*): Simplify description of instruction buffer.
9661 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9662 (cf_mem): Split into cf_mem1 and cf_mem2.
9663 (cf_v2_move_??): Rename to cfv12_alu_??.
9664 (cf_v2_move_l_??): Rename to cfv12_omove_??.
9665 (cf_v2_mul_??): Remove reservations.
9666 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9667 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9668 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9670 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9671 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9672 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9673 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9674 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9675 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9676 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9677 expansions of the above reservations for instructions of sizes
9680 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9682 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9684 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
9686 * coverage.c: Include tree-pass.h.
9687 (coverage_counter_alloc): Print da_file_name to the dump file.
9689 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9691 * sbitmap.c (sbitmap_range_empty_p): New function.
9692 * sbitmap.h (sbitmap_range_empty_p): New function.
9693 * bitmap.h: Now includes obstack.h.
9695 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
9696 Kenneth Zadeck <zadeck@naturalbridge.com>
9698 * dbgcnt.def (ra_byte_scan): Added.
9699 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9700 when the last hit happens for a counter.
9701 * timevar.def (TV_DF_BYTE_LR): New variable.
9702 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9703 * passes.c (pass_fast_rtl_byte_dce): New pass.
9704 * fwprop.c (update_df): Added mode to call df_ref_create.
9705 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9706 DF_REF_EXTRACT_OFFSET.
9707 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9708 DF_BYTE_LR_OUT, df_byte_lr): New macro.
9710 (df_ref_extract): Added mode field.
9711 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9712 DF_REF_EXTRACT_OFFSET.
9713 (DF_REF_EXTRACT_MODE): New macro.
9714 (df_byte_lr_bb_info): New structure.
9715 (df_print_byte_regset, df_compute_accessed_bytes,
9716 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9717 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9718 df_byte_lr_simulate_uses,
9719 df_byte_lr_simulate_artificial_refs_at_top,
9720 df_byte_lr_simulate_artificial_refs_at_end,
9721 df_compute_accessed_bytes): New function.
9722 (df_ref_create): Add parameter.
9723 (df_byte_lr_get_bb_info): New inline function.
9724 * df-scan.c (df_ref_record, df_uses_record,
9725 df_ref_create_structure): Added mode parameter.
9726 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9727 df_defs_record, df_uses_record, df_get_conditional_uses,
9728 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9729 df_entry_block_defs_collect, df_exit_block_uses_collect):
9730 Added mode parameter to calls to df_ref_record, df_uses_record,
9731 df_ref_create_structure.
9732 (df_ref_equal_p, df_ref_compare): Added test for modes.
9733 (df_ref_create_structure): Added code to set mode. Renamed
9734 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9735 DF_REF_EXTRACT_OFFSET.
9736 * df-core.c (df_print_byte_regset): New function.
9737 * df-byte-scan.c: New file.
9738 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9739 calls to BITMAP_FREE.
9740 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9741 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9742 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9743 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9744 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9745 df_byte_lr_local_compute, df_byte_lr_init,
9746 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9747 df_byte_lr_transfer_function, df_byte_lr_free,
9748 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9749 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9750 df_byte_lr_simulate_uses,
9751 df_byte_lr_simulate_artificial_refs_at_top,
9752 df_byte_lr_simulate_artificial_refs_at_end): New function.
9753 * dce.c (byte_dce_process_block): New function.
9754 (dce_process_block): au is now passed in rather than computed
9755 locally. Changed loops that look at artificial defs to not look
9756 for conditional or partial ones, because there never are any.
9757 (fast_dce): Now is able to drive byte_dce_process_block or
9758 dce_process_block depending on the kind of dce being done.
9759 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9760 (rest_of_handle_fast_byte_dce): New function.
9761 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9762 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9764 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9767 * gcc.h: Added fortran options that take arguments to
9768 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9771 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9773 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9774 scalarization if on the LHS and not a full access.
9776 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9778 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9780 2008-04-18 Rafael Espindola <espindola@google.com>
9782 * tree-vrp.c (find_case_label_index): Fix the binary search.
9783 (find_case_label_range): New.
9784 (vrp_visit_switch_stmt): Use find_case_label_range.
9785 (simplify_switch_using_ranges): Use find_case_label_range.
9787 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9789 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9790 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9792 2008-04-18 Tom Tromey <tromey@redhat.com>
9795 * doc/cpp.texi (Implementation-defined behavior): Mention
9798 2008-04-18 Ian Lance Taylor <iant@google.com>
9800 * fold-const.c (pointer_may_wrap_p): New static function.
9801 (fold_comparison): Add another test for pointer overflow. Use
9802 pointer_may_wrap_p to disable some false positives.
9804 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9806 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9807 (fname_as_string): Match updated cpp_interpret_string prototype.
9808 (fix_string_type): Support char16_t* and char32_t*.
9809 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9810 derivative) nodes. Register as builtin if C++0x.
9811 (c_parse_error): Support CPP_CHAR{16,32}.
9812 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9813 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9814 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9815 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9816 CTI_CHAR32_ARRAY_TYPE>: New elements.
9817 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9818 char32_type_node, signed_char32_type_node, char16_array_type_node,
9819 char32_array_type_node): New defines.
9820 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9821 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9822 (lex_string): Support CPP_STRING{16,32}, match updated
9823 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9824 (lex_charconst): Support CPP_CHAR{16,32}.
9825 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9826 and CPP_STRING{16,32}.
9828 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9831 * aclocal.m4: Regenerate.
9832 * configure: Regenerate.
9834 2008-04-18 Jan Hubicka <jh@suse.cz>
9836 * except.c (dw2_size_of_call_site_table,
9837 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9839 * cgraphbuild.c (build_cgraph_edges): Update.
9840 * tree-pass.h: Update comment.
9841 * final.c (leaf_function_p): Update.
9842 (leaf_renumber_regs): Update.
9843 (rest_of_clean_state): Update.
9844 * omp-low.c (expand_omp_parallel): Update.
9845 * ipa-reference.c (analyze_function): Update.
9846 * reorg.c (find_end_label): Update.
9847 (optimize_skip): Update.
9848 (fill_simple_delay_slots): Update.
9849 (fill_simple_delay_slots): Update.
9850 (make_return_insns): Update.
9851 (dbr_schedule): Update.
9852 * gimple-low.c (record_vars_into): Update.
9853 * cfgbuild.c (make_edges): Update.
9854 * function.c (assign_stack_local): Update.
9855 (assign_parm_adjust_stack_rtl): Update.
9856 (locate_and_pad_parm): Update.
9857 (allocate_struct_function): Do not initialize stack_alignment_needed
9858 and preferred_stack_boundary here.
9859 (stack_protect_prologue): Update.
9860 (stack_protect_epilogue): Update.
9861 (expand_function_start): Initialize stack_alignment_needed,
9862 preferred_stack_boundary and max_jumptable_ents.
9863 (expand_function_end): Update.
9864 (free_after_compilation): Do not NULLify epilogue_delay_list.
9865 * function.h (struct rtl_data): Add stack_protect_guard,
9866 stack_alignment_needed,
9867 preferred_stack_boundary, epilogue_delay_list.
9868 (struct function): Remove value_histograms, stack_alignment_needed,
9869 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9871 unexpanded_var_list, stack_protect_guard.
9872 (current_function_epilogue_delay_list): Remove.
9873 * ipa-type-escape.c (analyze_function): Update.
9874 * gimplify.c (pop_gimplify_context): Update comment.
9875 * calls.c (expand_call): Update.
9876 (emit_library_call_value_1): Update.
9877 * except.c (set_nothrow_function_flags): Update.
9878 * cfgexpand.c (get_decl_align_unit): Update.
9879 (create_stack_guard): Update.
9880 (estimated_stack_frame_size): Update.
9881 (expand_used_vars): Update.
9882 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9883 * explow.c (allocate_dynamic_stack_space): Update.
9884 * tree-ssa-live.c (remove_unused_locals): Update.
9885 * varasm.c (mark_constant_pool): Update.
9886 * tree-inline.c (remap_decls): Update.
9887 (initialize_cfun): Update.
9888 (declare_return_variable): Update.
9889 (inline_forbidden_p): Update.
9890 (expand_call_inline): Update.
9891 (declare_inline_vars): Update.
9892 (tree_function_versioning): Update.
9893 * tree-flow.h (value_histograms): New.
9894 (VALUE_HISTOGRAMS): New macro.
9895 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9897 * tree-cfg.c (set_bb_for_stmt): Update.
9898 (replace_by_duplicate_decl): Update.
9899 (move_block_to_fn): Update.
9900 (new_label_mapper): Update.
9901 (dump_function_to_file): Update.
9902 * ipa-struct-reorg.c (build_data_structure): Update.
9903 * cfgrtl.c (print_rtl_with_bb): Update.
9904 * reload1.c (reload): Update.
9906 * config/i386/i386.c (setup_incoming_varargs_64,
9907 ix86_compute_frame_layout): Update.
9908 * config/arc/arc.c (arc_output_function_epilogue): Update.
9910 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9912 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9913 for FreeBSD as well.
9914 * gthr-posix95.h: Likewise.
9916 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9918 PR rtl-optimization/35838
9919 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9920 out the byte offset of the first subreg.
9922 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9924 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9925 to split_ti instead of three separate calls with single member arrays.
9926 (subti3 splitter): Ditto.
9927 (adddi3 splitter): Ditto with split_di.
9928 (subdi3 splitter): Ditto.
9929 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9930 two separate calls with single member arrays. Swap match_dup
9931 operands 1 and 2 to better fit into the array.
9932 (negdi2 splitter): Ditto with split_di.
9933 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9934 two separate calls with single member arrays. Swap match_dup operands
9935 6 and 7 to better fit into the array.
9937 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9939 * config/i386/i386.c (sse_builtin_type): New.
9940 (bdesc_sse_args): Likewise.
9941 (bdesc_sse_3arg): Removed.
9942 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9943 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9944 IX86_BUILTIN_ROUNDPS.
9945 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9946 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9947 IX86_BUILTIN_ROUNDPS.
9948 (ix86_expand_sse_4_operands_builtin): Removed.
9949 (ix86_expand_sse_operands_builtin): New.
9950 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9951 and CODE_FOR_sse4_1_roundps.
9952 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9953 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9955 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9958 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9959 regs before frame pop when needed. If use_backchain_to_restore_sp
9960 then load backchain into a temp reg to restore vr and vrsave. Add
9961 code to restore vr after frame pop if possible.
9963 2008-04-17 Richard Guenther <rguenther@suse.de>
9965 * tree-vn.c (expressions_equal_p): Do not check type
9966 equality or compatibility before calling operand_equal_p.
9967 * fold-const.c (operand_equal_p): Check equivalence of
9968 integer constants before bailing out due to signedness or
9969 precision differences.
9970 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9971 spurious differences in type qualification. Ignore types
9972 for COMPONENT_REFs at all.
9974 2008-04-17 Christian Bruel <christian.bruel@st.com>
9976 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9977 msw_skip comparison.
9979 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9982 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9985 PR tree-optimization/35899
9986 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9987 rather than TREE_OPERAND.
9989 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9992 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9993 temporary registers. Change operand predicate to general_operand.
9994 (remainderxf3): Ditto.
9996 2008-04-16 Richard Guenther <rguenther@suse.de>
9998 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9999 * tree-affine.c (aff_combination_expand): Look through some
10002 2008-04-15 Doug Kwan <dougkwan@google.com>
10004 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10006 * tree-pretty-print.c (dump_generic_node): Ditto.
10007 * final.c (output_addr_const): Ditto.
10008 * dwarf2out.c (output_cfi): Ditto.
10009 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10010 * print-rtl.c (print_rtx): Ditto.
10011 * print-tree.c (print_node_brief, print_node): Ditto.
10012 * c-common.c (match_case_to_enum_1): Ditto.
10013 * sched-vis.c (print_value): Ditto.
10014 * config/i386/i386.c (print_operand): Cast to long unsigned int
10017 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10018 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10019 MS Windows VirtualProtect function.
10021 2008-04-15 Jan Hubicka <jh@suse.cz>
10023 * gengtype.c (write_root): Param_is argument is OK.
10024 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10025 * function.h: Include varray.h
10026 (rtl_eh): New stucture based on except.c one.
10027 (call_site_record): New forward declaration and vector type.
10028 * calls.c (emit_call_1): Do not call
10029 note_current_region_may_contain_throw.
10030 * except.c (eh_status): Remove cur_region, try_region since they are
10032 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10033 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10034 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10035 Remove call_site_data_used, call_site_data_size.
10036 Turn call_site_record into vector in function.h.
10037 (note_current_region_may_contain_throw): Remove.
10038 (get_exception_pointer, get_exception_filter): Do not take struct
10039 function argument; update.
10040 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10041 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10042 build_post_landing_pads, dw2_build_landing_pads,
10043 sjlj_assign_call_site_values, sjlj_mark_call_sites,
10044 sjlj_emit_function_enter, sjlj_emit_function_enter,
10045 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10046 sjlj_build_landing_pads, finish_eh_generation,
10047 remove_exception_handler_label, remove_eh_handler,
10048 maybe_remove_eh_handler, add_reachable_handler,
10049 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10050 add_action_record, collect_one_action_chain, add_call_site,
10051 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10052 sjlj_output_call_site_table, output_function_exception_table,
10053 * except.h (note_current_region_may_contain_throw): Remove
10054 (get_exception_pointer, get_exception_filter): Do not take struct
10056 * Makefile.in (GTFILES): Put varargs before struct function.
10058 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10060 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10061 punt for STRING_CST.
10062 (get_constraint_for): Deal with STRING_CST here instead.
10064 2008-04-15 Richard Guenther <rguenther@suse.de>
10066 * tree-ssa-propagate.c (substitute_and_fold): Substitute
10067 statements in a basic-block with a backward walk. Do not
10068 substitute into dead statements but instead remove those.
10070 2008-04-15 Richard Guenther <rguenther@suse.de>
10072 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10073 to zero, thus disable creation of SFTs.
10075 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10077 * tree-predcom.c (suitable_reference_p): Return false if the
10078 reference can throw.
10080 2008-04-15 Jakub Jelinek <jakub@redhat.com>
10083 * c-decl.c (finish_decl): If extern or static var has variable
10084 size, set TREE_TYPE (decl) to error_mark_node.
10086 2008-04-15 Rafael Espindola <espindola@google.com>
10088 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10091 2008-04-15 Richard Guenther <rguenther@suse.de>
10093 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10094 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10095 (visit_reference_op_load): Do walk vuse-vdef chains on
10096 vn_reference_lookup.
10097 (visit_reference_op_store): But do not here.
10098 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10099 vn_reference_lookup.
10100 (vn_lookup_with_vuses): But do so here.
10102 2008-04-14 Ian Lance Taylor <iant@google.com>
10104 * fold-const.c (fold_overflow_warning): Remove assertion.
10106 2008-04-15 Ben Elliston <bje@au.ibm.com>
10108 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10109 temp1 local variables.
10111 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
10114 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10115 ".text.unlikely" section as executable.
10117 2008-04-14 James E. Wilson <wilson@tuliptree.org>
10119 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10120 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10121 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10122 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10123 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10124 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10125 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10127 2008-04-14 Ian Lance Taylor <iant@google.com>
10129 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10130 * fold-const.c (fold_comparison): If appropriate, test
10131 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10132 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10133 reassociating a pointer type.
10134 * doc/invoke.texi (Optimize Options): Document that
10135 -fstrict-overflow applies to pointer wraparound.
10137 2008-04-13 Jan Hubicka <jh@suse.cz>
10139 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10141 2008-04-12 Andrew Pinski <pinskia@gmail.com>
10143 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10144 we are going to "save the world".
10146 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
10148 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10149 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10150 operand 0 constraint, not "=".
10152 2008-04-11 James E. Wilson <wilson@tuliptree.org>
10154 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10156 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10158 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10159 of size of positions_needed * CHAR_BIT.
10161 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10163 PR middle-end/35897
10164 * dse.c (store_info): Change positions_needed to unsigned
10166 (lowpart_bitmask): New.
10167 (record_store): Cast to unsigned HOST_WIDE_INT for
10168 positions_needed. Assert width <= size of positions_needed *
10169 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
10170 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
10171 lowpart_bitmask to set mask.
10173 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
10175 * config/bfin/constraints.md: New file.
10176 * config/bfin/bfin.md: Include it.
10177 (adddi3): Use satisfies_constraint functions instead of the old macros.
10178 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10179 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10180 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10181 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10182 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10183 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10184 EXTRA_CONSTRAINT): Delete.
10185 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10186 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10188 * config/bfin/bfin.c: Include "tm-constrs.h".
10189 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10190 Use satisfies_constraint functions instead of the old macros.
10191 * doc/md.texi (Blackfin Constraints): Update file name reference.
10193 2008-04-11 Richard Guenther <rguenther@suse.de>
10195 PR tree-optimization/35869
10196 * tree-vrp.c (execute_vrp): Move switch statement update after
10197 jump threading. Schedule another cfg cleanup run.
10199 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10202 * attribs.c (decl_attributes): Return early on errorneous node.
10204 2008-04-10 Oleg Ryjkov <olegr@google.com>
10206 * tree.h (struct tree_base): Added a new flag default_def_flag.
10207 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10209 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10211 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10213 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10216 * pa.md: Define mode iterator P. Define mode attribute dwc.
10217 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10218 (icacheflush): Likewise.
10219 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10220 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10222 2008-04-11 Ben Elliston <bje@au.ibm.com>
10224 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10226 2008-04-10 Rafael Espindola <espindola@google.com>
10228 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10229 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10230 (extract_range_from_expr): The same.
10232 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10234 * config/mips/mips.md (GPR2): New mode iterator.
10235 (seq): Add comment.
10236 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10237 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10238 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10239 Rewrite these to take two modes, the mode of comparison and the
10240 mode of the destination.
10241 * config/mips/mips.c (mips_expand_scc): Instead of having
10242 paradoxical subreg as destination, expand "narrowing" scc if mode
10243 of comparison is SI and target is requested in DI mode.
10244 (mips_emit_int_order_test): Update comment. Make mode of
10245 comparison match CMP0 rather than TARGET. When creating inverse
10246 target use mode of TARGET.
10248 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10250 * gcov-dump.c (tag_summary): Only print summaries for the first
10251 GCOV_COUNTERS_SUMMABLE counters.
10253 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
10255 * config/i386/i386.md (absneg): New code iterator.
10256 (absnegprefix): New code attribute.
10257 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10258 patterns using absneg code iterator.
10259 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10260 using absneg code iterator.
10261 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10262 *neg<mode>2 patterns using absneg code iterator.
10263 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10264 *negextendsfdf2 patterns using absneg code iterator.
10265 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10266 *negextendsfxf2 patterns using absneg code iterator.
10267 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10268 *negextendsfdf2 patterns using absneg code iterator.
10269 * config/i386/sse.md (<code><mode>2): Macroize expander from
10270 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10272 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10274 * config/s390/s390.h: Remove the remains of the recent search
10275 & replace action of current_function_outgoing_args_size.
10277 2008-04-10 Ira Rosen <irar@il.ibm.com>
10279 PR tree-optimization/35821
10280 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10281 NEW_STMT_LIST is not NULL.
10283 2008-04-09 David Edelsohn <edelsohn@gnu.org>
10286 * toplev.c (process_options): Remove -ffunction-sections debugging
10289 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
10291 PR middle-end/PR28690
10292 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10293 than gen_rtx_fmt_ee to perform more canonicalizations.
10295 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10298 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10300 2008-04-09 Richard Guenther <rguenther@suse.de>
10302 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10303 (dump_function_to_file): Dump function arguments with types.
10305 2008-04-08 Richard Guenther <rguenther@suse.de>
10307 * fold-const.c (fold_widened_comparison): Do not allow
10308 sign-changes that change the result.
10310 2008-04-08 Janis Johnson <janis187@us.ibm.com>
10313 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10314 kinds of indirect references.
10316 2008-04-08 David Edelsohn <edelsohn@gnu.org>
10318 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10319 GNU Fortran language string.
10321 2008-04-08 Rafael Espindola <espindola@google.com>
10323 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10324 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10325 * tree.h (tree_call_nonnegative_warnv_p): New.
10327 2008-04-08 Jan Hubicka <jh@suse.cz>
10329 * function.c (free_after_compilation): Clear out regno_reg_rtx
10332 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
10335 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10337 PR middle-end/PR28690
10338 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10339 same precedence as REG_POINTER and MEM_POINTER operands.
10341 2008-04-08 Richard Guenther <rguenther@suse.de>
10343 PR middle-end/35834
10344 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10345 for adding index to base.
10347 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
10349 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10350 (MINGW_ENABLE_EXECUTE_STACK): New.
10351 (IN_LIBGCC2): For libgcc include windows.h file for
10352 function declarations.
10354 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
10356 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10357 and tem2 if tem1 is not a REG or MULT.
10359 2008-04-08 Jan Hubicka <jh@suse.cz>
10361 * function.h (incomming_args): Break out of struct function.
10362 (function_subsections): Break out of struct function.
10363 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10364 return_rtx and hard_reg_initial_vals from struct function.
10365 Kill inl_max_label_num.
10366 (current_function_pops_args, current_function_args_info,
10367 current_function_args_size, current_function_args_size,
10368 current_function_pretend_args_size,
10369 current_function_outgoing_args_size,
10370 current_function_internal_arg_pointer, current_function_return_rtx):
10371 Kill compatibility accestor macros.
10372 * builtins.c (expand_builtin_apply_args_1): Update.
10373 (expand_builtin_next_arg): Update.
10374 * df-scan.c (df_get_call_refs): Update.
10375 * dbxout.c (dbxout_function_end): Update.
10376 * dwarf2out.c (dwarf2out_switch_text_section): Update.
10377 (output_line_info): Update.
10378 (secname_for_decl): Update.
10379 (dwarf2out_var_location): Update.
10380 * function.c (free_after_compilation): Update.
10381 (assign_parm_find_stack_rtl): Update.
10382 (assign_parms): Update.
10383 (expand_dummy_function_end): Update.
10384 (expand_function_end): Update.
10385 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10386 (expand_call): Update.
10387 (emit_library_call_value_1): Update.
10388 (store_one_arg): Update.
10389 * varasm.c (initialize_cold_section_name): Update.
10390 (unlikely_text_section): Update.
10391 (unlikely_text_section_p): Update.
10392 (assemble_start_function): Update.
10393 (assemble_end_function): Update.
10394 (default_section_type_flags): Update.
10395 (switch_to_section): Update.
10396 * integrate.c (set_decl_abstract_flags): Update.
10397 (get_hard_reg_initial_val): Update.
10398 (has_hard_reg_initial_val): Update.
10399 (allocate_initial_values): Update.
10400 * resource.c (init_resource_info): Update.
10401 * config/alpha/alpha.c (NUM_ARGS): Update.
10402 (direct_return): Update.
10403 (alpha_va_start): Update.
10404 (alpha_sa_size): Update.
10405 (alpha_initial_elimination_offset): Update.
10406 (alpha_expand_prologue): Update.
10407 (alpha_start_function): Update.
10408 (alpha_expand_epilogue): Update.
10409 (unicosmk_initial_elimination_offset):
10410 * config/alpha/alpha.md (call expander): Update.
10411 * config/s390/s390.c (s390_register_info): Update.
10412 (s390_register_info): Update.
10413 (s390_frame_info): Update.
10414 (s390_initial_elimination_offset): Update.
10415 (s390_build_builtin_va_list): Update.
10416 (s390_va_start): Update.
10417 * config/spu/spu.c (direct_return): Update.
10418 (spu_expand_prologue): Update.
10419 (spu_initial_elimination_offset): Update.
10420 (spu_build_builtin_va_list): Update.
10421 (spu_va_start): Update.
10422 * config/sparc/sparc.c (sparc_init_modes): Update.
10423 (sparc_compute_frame_size): Update.
10424 (function_value): Update.
10425 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10426 * config/i386/i386.md (return expander): Update.
10427 * config/i386/i386.c (ix86_va_start): Update.
10428 (ix86_can_use_return_insn_p): Update.
10429 (ix86_compute_frame_layout): Update.
10430 (ix86_expand_epilogue): Update.
10431 * config/sh/sh.c (output_stack_adjust): Update.
10432 (calc_live_regs): Update.
10433 (sh_expand_prologue): Update.
10434 (sh_builtin_saveregs): Update.
10435 (sh_va_start): Update.
10436 (initial_elimination_offset): Update.
10437 (sh_allocate_initial_value): Update.
10438 (sh_function_ok_for_sibcall): Update.
10439 (sh_get_pr_initial_val): Update.
10440 * config/sh/sh.md (return expander): Update.
10441 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10442 * config/crx/crx.c (crx_compute_frame): UPdate.
10443 (crx_initial_elimination_offset): UPdate.
10444 * config/xtensa/xtensa.c (compute_frame_size): Update
10445 (xtensa_builtin_saveregs): Update.
10446 (xtensa_va_start): Update.
10447 (order_regs_for_local_alloc): Update.
10448 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10449 (xstormy16_expand_builtin_va_start): Update.
10450 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10451 * config/m68hc11/m68hc11.md (return expanders): Update.
10452 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10453 (expand_epilogue): Update.
10454 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10455 (cris_simple_epilogue): Update.
10456 (cris_expand_prologue): Update.
10457 (cris_expand_epilogue): Update.
10458 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10459 (compute_frame_size): Update.
10460 * config/mt/mt.c (mt_compute_frame_size): Update.
10461 * config/mn10300/mn10300.c (expand_prologue): Update.
10462 (expand_epilogue): Update.
10463 (initial_offset): Update.
10464 (mn10300_builtin_saveregs):
10465 * config/mn10300/mn10300.md (return expander): Update.
10466 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10467 (ia64_initial_elimination_offset): Update.
10468 (ia64_initial_elimination_offset): Update.
10469 (ia64_expand_prologue): Update.
10470 * config/m68k/m68k.md (return expander): Update.
10471 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10472 (rs6000_stack_info): Update.
10473 * config/mcore/mcore.c (layout_mcore_frame): Update.
10474 (mcore_expand_prolog): Update.
10475 * config/arc/arc.c (arc_compute_frame_size): Update.
10476 * config/score/score3.c (score3_compute_frame_size): Update.
10477 * config/score/score7.c (score7_compute_frame_size): Update.
10478 * config/arm/arm.c (use_return_insn): Update.
10479 (thumb_find_work_register): Update.
10480 (arm_compute_save_reg_mask): Update.
10481 (arm_output_function_prologue): Update.
10482 (arm_output_epilogue): Update.
10483 (arm_size_return_regs): Update.
10484 (arm_get_frame_offsets): Update.
10485 (arm_expand_prologue): Update.
10486 (thumb_exit): Update.
10487 (thumb_unexpanded_epilogue): Update.
10488 (thumb1_output_function_prologue): Update.
10489 * config/pa/pa.md (return expander): Update.
10490 * config/pa/pa.c (compute_frame_size): Update.
10491 (hppa_builtin_saveregs): Update.
10492 * config/mips/mips.c (mips_va_start): Update.
10493 (mips16_build_function_stub): Update.
10494 (mips_compute_frame_info): Update.
10495 (mips_restore_gp): Update.
10496 (mips_output_function_prologue): Update.
10497 (mips_expand_prologue): Update.
10498 * config/v850/v850.c (compute_frame_size): Update.
10499 (expand_prologue): * config/mmix/mmix.c (along): update.
10500 (mmix_initial_elimination_offset): update.
10501 (mmix_reorg): update.
10502 (mmix_use_simple_return): update.
10503 (mmix_expand_prologue): update.
10504 (mmix_expand_epilogue): Update.
10505 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10506 (emit_link_insn): Update.
10508 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10510 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10511 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10513 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10516 2008-04-07 Jan Hubicka <jh@suse.cz>
10518 * function.h (rtl): Rename to x_rtl.
10519 (crtl): New define.
10520 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10521 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10522 used_temp_slots avail_temp_slots, temp_slot_level,
10523 nonlocal_goto_handler_labels): Update accesstors.
10524 (rtl): New global variable.
10525 (struct function): Move some fileds to rtl_data.
10526 (get_arg_pointer_save_area): Update prototype.
10527 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10528 get_arg_pointer_save_area.
10529 * expr.c (init_expr): Update
10530 * function.c (get_frame_size): Update
10531 (assign_stack_local): Update
10532 (expand_function_end): Update.
10533 (get_art_pointer_save_area): Update
10535 * emit-rtl.c (rtl): Declare.
10536 (regno_reg_rtx): Declare.
10537 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10539 (gen_reg_rtx): Update.
10540 * varasm.c (n_deferred_constatns): Update accestor.
10541 (init_varasm_status): Do not allocate varasm_status.
10542 (force_const_mem, get_pool_size, output_constant_pool): Update.
10543 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10544 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10545 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10546 * sparc/sparc.h (INIT_EXPANDERS): Update.
10547 * ia64/ia64.h (INIT_EXPANDERS): Update.
10549 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10551 * reload.c (push_secondary_reload): Add missing break to for loop.
10553 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10555 PR middle-end/PR28690
10556 * rtlanal.c: Update copyright years.
10557 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10558 as REG_POINTER and MEM_POINTER operands.
10559 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10560 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10561 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10562 * gcse.c: Update copyright years.
10563 (pre_delete): Call gen_reg_rtx_and_attrs.
10564 (hoist_code): Likewise.
10565 (build_store_vectors): Likewise.
10566 (delete_store): Likewise.
10567 * loop-invariant.c (move_invariant_reg): Likewise.
10568 Update copyright years.
10570 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10572 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10573 control string instead of quoted.
10575 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10577 * doc/rtl.texi: Rewrite of subreg section.
10579 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10582 * config/i386/i386.c (legitimize_pic_address): Add treating
10583 of dllimport SYM_REF's.
10584 (legitimize_dllimport_symbol): Add prototype.
10586 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10588 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10589 reference in constructor with non self-referential type.
10591 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10593 Removal of Return with Depressed Stack Pointer support
10594 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10595 (ECF_SP_DEPRESSED): Likewise.
10596 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10597 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10598 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10599 (expand_call): Do not test ECF_SP_DEPRESSED.
10600 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10601 * function.c (keep_stack_depressed): Delete.
10602 (handle_epilogue_set): Likewise.
10603 (update_epilogue_consts): Likewise.
10604 (emit_equiv_load): Likewise.
10605 (thread_prologue_and_epilogue_insns): Remove support for Return with
10606 Depressed Stack Pointer.
10607 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10609 2008-04-06 Richard Guenther <rguenther@suse.de>
10611 PR tree-optimization/35400
10612 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10613 information from SSA_NAMEs.
10615 2008-04-06 Anatoly Sokolov <aesok@post.ru>
10617 * config/avr/avr.h (avr_mega_p): Remove declaration.
10618 (AVR_MEGA): Remove macro.
10619 * config/avr/avr.c (avr_mega_p): Remove variable.
10620 (avr_override_options): Remove inicializion of avr_mega_p.
10621 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10622 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10623 (avr_jump_mode): (Ditto.).
10624 (avr_output_progmem_section_asm_op): (Ditto.).
10625 (avr_asm_init_sections): (Ditto.).
10626 (avr_asm_init_sections): (Ditto.).
10627 (avr_rtx_costs): (Ditto.).
10628 * config/avr/avr.md: (Ditto.).
10629 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10632 2008-04-06 Richard Guenther <rguenther@suse.de>
10634 PR tree-optimization/35842
10635 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10636 is_gimple_invariant_address.
10638 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10640 * gcc.c (default_compilers): Sync Fortran extensions list with
10641 that in fortran/lang-specs.h.
10642 * doc/invoke.texi: Likewise.
10643 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10644 * dwarf2out.c (gen_compile_unit_die): Likewise.
10646 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
10648 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10650 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
10653 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10654 attribute is used for nested functions.
10656 2008-04-05 Jan Hubicka <jh@suse.cz>
10658 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10660 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10662 (dump_files): Update.
10663 (enable_rtl_dump_file): Do not accept letter argument.
10664 * tree-pass.h (dump_file_info): Remove letter argument.
10665 * toplev.c (decode_d_option): Update -da handling.
10666 * toplev.h (enable_rtl_dump_file): Update prototype.
10667 * passes.c (register_one_dump_file): Do not accept IPA argument; work
10668 it out based on pass type.
10669 (register_dump_files_1): Likewise.
10670 (init_optimization_passes): Update register_one_dump_file calls.
10671 (execute_one_pass): Sanity check that IPA passes are called at IPA
10672 level and RTL passes at RTL level.
10673 (execute_pass_list): IPA pass can not be after or subpass of
10675 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10676 disallov RTL subpasses of IPA subpasses.
10678 2008-04-05 Ben Elliston <bje@au.ibm.com>
10680 * tree-cfg.c (need_fake_edge_p): Return false for calls to
10681 builtins that return exactly once and do not throw. Cache call to
10684 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10686 PR rtl-optimization/34916
10687 PR middle-end/35519
10688 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10689 between instruction pairs.
10691 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
10693 * doc/invoke.texi: Document -mbitops for SH.
10694 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10695 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10696 * config/sh/sh.c (print_operand): Add %t operand code.
10697 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10698 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10699 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10700 (extendqihi2): Likewise.
10701 (movqi_i): Likewise.
10702 (insv): Use bset, bclr and bst instructions for SH2A if possible.
10703 (extv): Use bld instruction for SH2A if possible.
10705 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10706 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10707 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10708 (bset.b, bclr.b): Define peepholes.
10709 * config/sh/sh.opt (mbitops): New option.
10711 2008-04-04 Janis Johnson <janis187@us.ibm.com>
10714 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10715 and view convert expression.
10717 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10720 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10722 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
10724 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10726 * config/i386/cpuid.h (bit_AES): New.
10727 (bit_PCLMUL): Likewise.
10729 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10730 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10731 SSE2 if AES or PCLMUL is enabled.
10732 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10733 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10734 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10735 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10736 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10737 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10738 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10739 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10740 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10741 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10742 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10743 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10744 __builtin_ia32_aeskeygenassist128 and
10745 __builtin_ia32_pclmulqdq128.
10746 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10747 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10748 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10750 * config/i386/i386.h (TARGET_AES): New.
10751 (TARGET_PCLMUL): Likewise.
10752 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10754 * config/i386/i386.md (UNSPEC_AESENC): New.
10755 (UNSPEC_AESENCLAST): Likewise.
10756 (UNSPEC_AESDEC): Likewise.
10757 (UNSPEC_AESDECLAST): Likewise.
10758 (UNSPEC_AESIMC): Likewise.
10759 (UNSPEC_AESKEYGENASSIST): Likewise.
10760 (UNSPEC_PCLMUL): Likewise.
10762 * config/i386/i386.opt (maes): New.
10763 (mpclmul): Likewise.
10765 * config/i386/sse.md (aesenc): New pattern.
10766 (aesenclast): Likewise.
10767 (aesdec): Likewise.
10768 (aesdeclast): Likewise.
10769 (aesimc): Likewise.
10770 (aeskeygenassist): Likewise.
10771 (pclmulqdq): Likewise.
10773 * config/i386/wmmintrin.h: New.
10775 * doc/extend.texi: Document AES and PCLMUL built-in function.
10777 * doc/invoke.texi: Document -maes and -mpclmul.
10779 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10781 * function.c (free_after_parsing): Replace with
10782 cxx_push_function_context from C++ front-end.
10783 (allocate_struct_function): Don't call langhook.
10784 * langhooks.h (struct lang_hooks_for_functions): Delete.
10785 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10787 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10788 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10789 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10790 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10791 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10792 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10793 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10795 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10796 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10798 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10801 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10804 2008-04-04 Richard Guenther <rguenther@suse.de>
10806 PR middle-end/35823
10807 * fold-const.c (optimize_minmax_comparison): Use the correct
10808 type for the constant in the simplified comparison.
10810 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10812 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10813 Pass L2 size as "--param l2-cache-size" to the compiler.
10814 (decode_l2_cache): New function to decode L2 cache parameters using
10815 0x8000006 extended cpuid function.
10816 (detect_caches_amd): Determine parameters of L2 cache using
10817 decode_l2_caches function.
10818 (decode_caches_intel): Decode L2 cache parameters.
10819 (detect_caches_intel): Determine L2 cache parameters using
10820 decode_caches_intel and decode_l2_caches functions.
10822 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10824 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10825 secondary input reload for subword loads from the constant pool.
10827 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10830 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10831 constants of the appropriate size for runtime calculations.
10834 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10835 decimal-float literal constant zero.
10837 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10840 * c-parser.c (c_parser_omp_atomic): Call
10841 default_function_array_conversion on the RHS.
10843 PR middle-end/35818
10844 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10845 call is_variable_sized if decl has incomplete type.
10847 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10849 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10851 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10853 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10855 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10856 (sgt<u>): Merge sgt and sgtu into new expander.
10857 (sgt, sgtu): Remove expanders.
10858 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10859 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10860 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10861 *sgtu_<mode>_mips16 into new pattern.
10862 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10863 (sge<u>): Merge sge and sgeu into new expander.
10864 (sge, sgeu): Remove expanders.
10865 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10867 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10868 (slt<u>): Merge slt and sltu into new expander.
10869 (slt, sltu): Remove expanders.
10870 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10871 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10872 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10873 *sltu_<mode>_mips16 into new pattern.
10874 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10875 (sle<u>): Merge sle and sleu into new expander.
10876 (sle, sleu): Remove expanders.
10877 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10878 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10879 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10880 *sleu_<mode>_mips16 into new pattern.
10881 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10883 2008-04-03 Jan Hubicka <jh@suse.cz>
10885 PR tree-optimization/35795
10886 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10887 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10888 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10889 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10890 * score/score3.c (score3_output_mi_thunk): Likewise.
10891 * score/score7.c (score7_output_mi_thunk): Likewise.
10892 * mips/mips.c (mips_output_mi_thunk): Likewise.
10894 2008-04-03 Richard Guenther <rguenther@suse.de>
10896 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10897 conversions. Simplify code.
10899 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10901 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10903 2008-04-03 Tom Tromey <tromey@redhat.com>
10904 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10906 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10907 * config/bfin/t-bfin-linux (generated_files): Add
10908 linux-sysroot-suffix.h.
10909 * doc/install.texi (Prerequisites): Require make 3.80.
10910 * doc/sourcebuild.texi (Front End Directory): Document new
10912 * Makefile.in (generated_files): New variable.
10913 (ALL_HOST_OBJS): New variable.
10914 ($(ALL_HOST_OBJS)): New target.
10916 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10918 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10919 (remap_block): Call id->transform_lang_insert_block instead
10921 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10922 Set id.transform_lang_insert_block to NULL.
10923 (clone_body): Move to cp/optimize.c
10924 * tree-inline.h (struct copy_body_data): Change
10925 transform_lang_insert_block to function pointer.
10926 (copy_generic_body, copy_decl_no_change): Export.
10927 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10928 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10929 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10931 * c-tree.h (insert_block): Kill.
10932 * c-decl.c (insert_block): Kill.
10934 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10936 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10937 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10938 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10940 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10941 argument, call {push,pop}_function_context from here.
10942 * c-parser.c: Use c_{push,pop}_function_context.
10944 * function.c (push_function_context_to): Move meat ...
10945 (push_function_context): ... here. Simplify.
10946 * function.c (pop_function_context_from): Move meat ...
10947 (pop_function_context): ... here. Simplify.
10948 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10950 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10951 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10952 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10953 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10955 2008-04-03 Ben Elliston <bje@au.ibm.com>
10957 * expmed.c (extract_force_align_mem_bit_field): Remove.
10959 2008-04-03 Richard Guenther <rguenther@suse.de>
10961 PR middle-end/35800
10962 * expr.h (try_casesi): Adjust prototype.
10963 * expr.c (try_casesi): Take fallback label as extra parameter.
10964 Use that for gen_casesi if default_label is NULL.
10965 * stmt.c (expand_case): Pass fallback label to try_casesi,
10966 make sure to fill gaps with a fallback label if default_label
10969 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10972 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10974 2008-04-03 Ben Elliston <bje@au.ibm.com>
10976 * expmed.c (extract_split_bit_field): Remove if (0) code.
10977 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10978 (do_ds_constraint): Likewise.
10980 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10982 * doc/cppopts.texi (-dU): Document.
10983 * c-common.h (flag_dump_macros): Update comment.
10984 * c-opts.c (handle_OPT_d): Handle -dU.
10985 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10986 dump_queued_macros, cb_used_define, cb_used_undef): New.
10987 (init_pp_output): Handle -dU.
10988 (cb_line_change): Call dump_queued_macros.
10989 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10991 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10993 * config/avr/predicates.md (io_address_operand): New predicate.
10994 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10995 * config/avr/avr.c (avr_io_address_p): Remove function.
10996 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10997 'avr_io_address_p' function.
10998 (out_movhi_r_mr): (Ditto.).
10999 (out_movqi_mr_r): (Ditto.).
11000 (out_movhi_mr_r): (Ditto.).
11001 (avr_address_cost): (Ditto.).
11003 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
11005 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11006 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11007 in 32bit mode when XMM registers are available to avoid store
11009 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11010 corresponding post-reload splitters.
11012 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11014 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11015 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11016 __builtin_ia32_roundss.
11017 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11018 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11019 __builtin_ia32_roundss.
11020 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11021 IX86_BUILTIN_SHUFPD here.
11023 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11025 * config/i386/i386.md (plogic): New.
11026 (plogicprefix): Likewise.
11028 * config/i386/mmx.md (mmx_<code><mode>3): New.
11029 (mmx_and<mode>3): Removed.
11030 (mmx_ior<mode>3): Likewise.
11031 (mmx_xor<mode>3): Likewise.
11033 * config/i386/sse.md (<code><mode>3): New.
11034 (*<code><mode>3): Likewise.
11035 (*<code><mode>3): Likewise.
11036 (<code><mode>3): Likewise.
11037 (*sse_<code><mode>3): Likewise.
11038 (*sse2_<code><mode>3): Likewise.
11039 (<code>tf3): Likewise.
11040 (*<code>tf3): Likewise.
11041 (and<mode>3): Likewise.
11042 (*and<mode>3): Likewise.
11043 (ior<mode>3): Removed.
11044 (*ior<mode>3): Likewise.
11045 (xor<mode>3): Likewise.
11046 (*xor<mode>3): Likewise.
11047 (*and<mode>3): Likewise.
11048 (*ior<mode>3): Likewise.
11049 (*xor<mode>3): Likewise.
11050 (and<mode>3): Likewise.
11051 (*sse_and<mode>3): Likewise.
11052 (*sse2_and<mode>3): Likewise.
11053 (andtf3): Likewise.
11054 (*andtf3): Likewise.
11055 (ior<mode>3): Likewise.
11056 (*sse_ior<mode>3): Likewise.
11057 (*sse2_ior<mode>3): Likewise.
11058 (iortf3): Likewise.
11059 (*iortf3): Likewise.
11060 (xor<mode>3): Likewise.
11061 (*sse_xor<mode>3): Likewise.
11062 (*sse2_xor<mode>3): Likewise.
11063 (xortf3): Likewise.
11064 (*xortf3): Likewise.
11066 2008-04-02 Richard Guenther <rguenther@suse.de>
11068 PR tree-optimization/14495
11069 PR tree-optimization/34793
11070 * tree-vrp.c (struct switch_update): New structure.
11071 (to_remove_edges, to_update_switch_stmts): New VECs.
11072 (simplify_switch_using_ranges): New function. Remove not taken
11073 case labels and edges.
11074 (simplify_stmt_using_ranges): Call it.
11075 (identify_jump_threads): Mark edges we have queued for removal
11076 so we don't thread them.
11077 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11079 * tree-cfg.c (group_case_labels): Deal with missing default label.
11080 (tree_verify_flow_info): Allow missing default label.
11081 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11082 (emit_case_nodes): Likewise.
11083 (expand_case): Do not rely on the default label to be present.
11084 * expr.c (try_casesi): Deal with NULL default_label.
11085 (do_tablejump): Likewise.
11087 2008-04-02 Richard Guenther <rguenther@suse.de>
11089 PR tree-optimization/14495
11090 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11091 SWITCH_EXPR here ...
11092 (vrp_visit_switch_stmt): ... but here (new function).
11093 (find_case_label_index): New helper function.
11094 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11096 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11098 * fwprop.c: Fix ISO-C99ism.
11100 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11103 * Makefile.in (objdir): Set it here.
11104 * configure.ac: Not here. Find dynamic linker characteristics.
11105 * exec-tool.in: Use them.
11106 * aclocal.m4: Regenerate.
11107 * configure: Regenerate.
11109 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11111 * expr.c (expand_var): Delete it.
11112 * expr.h (expand_var): Delete prototype.
11113 * function.c (expand_function_start): Use expand_decl instead.
11114 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11117 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
11119 PR rtl-optimization/35542
11120 * fwprop.c (forward_propagate_and_simplify): Replace
11121 loc_reg_mentioned_in_p with reg_mentioned_p.
11123 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11125 PR rtl-optimization/35281
11126 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11127 (propagate_rtx_1): Handle PR_HANDLE_MEM.
11128 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11129 (varying_mem_p): Move above propagate_rtx.
11130 (all_uses_available_at): Do not check MEMs.
11132 2008-04-02 Rafael Espindola <espindola@google.com>
11134 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11135 (register_edge_assert_for_2): Split the cond argument.
11136 (register_edge_assert_for_1): Adjust for the change in
11137 register_edge_assert_for_2.
11138 (register_edge_assert_for): Split the cond argument.
11139 (find_switch_asserts): Adjust for the change in
11140 register_edge_assert_for.
11142 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
11144 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11145 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11146 offsets for 64-bit mingw.
11147 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11148 abi for x86_64-pc-mingw.
11150 2008-04-02 Richard Guenther <rguenther@suse.de>
11152 * tree-vrp.c (extract_range_from_assert): Make sure to not
11153 produce range min/max with TREE_OVERFOW set.
11154 If merging a anti-range and a range keep the anti-range if
11155 the range covers all values of the type.
11156 (register_edge_assert_for_2): Only allow sign-changing
11157 conversions in detecting canonical range checks. Also
11158 register an assert for the unsigned name if useful.
11160 PR tree-optimization/35787
11161 * tree-vrp.c (vrp_val_max): New function.
11162 (vrp_val_min): Likewise.
11163 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11164 (vrp_val_is_min): Likewise.
11165 (supports_overflow_infinity): Use vrp_val_{min,max}.
11166 (negative_overflow_infinity): Likewise.
11167 (positive_overflow_infinity): Likewise.
11168 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11169 (is_positive_overflow_infinity): Likewise.
11170 (is_overflow_infinity): Likewise.
11171 (avoid_overflow_infinity): Use vrp_val_{min,max} and
11172 vrp_val_is_{min,max}.
11173 (set_and_canonicalize_value_range): Canonicalize anti-ranges
11174 to ranges if possible. Avoid empty ranges.
11176 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11178 PR middle-end/35705
11179 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11180 the expression is a function address.
11182 2008-04-01 George Helffrich <george@gcc.gnu.org>
11184 PR fortran/35154, fortran/23057
11185 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11186 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11187 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11188 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11190 (dbxout_syms): Check for COMMON-based symbol and wrap in
11191 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11192 in bracket for efficiency.
11194 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11195 using DW_TAG_common_block + member offset.
11196 (add_pubname_string): New function.
11197 (dw_expand_expr): New function to find block name and offset for
11199 (common_check): New function to check whether symbol in Fortran COMMON.
11200 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11202 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11205 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11207 2008-04-02 Ben Elliston <bje@au.ibm.com>
11209 * config/v850/v850.md (casesi): Remove if (0) code.
11210 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11211 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11213 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
11215 * config/i386/i386.md (rex64suffix): New mode attribute.
11216 (floathi<mode>2): Disable expander for SSE math.
11217 (*floathi<mode>2_1): New insn insn_and_split pattern.
11218 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11219 corresponding post-reload splitters.
11220 (*floathi<mode>2_i387): New macroized insn pattern.
11221 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11222 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11223 insn_and_split pattern.
11224 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11225 New macroized instruction patterns and corresponding post-reload
11227 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11228 and corresponding post-reload splitters.
11229 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11230 New macroized instruction patterns.
11231 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11232 macroized instruction patterns and corresponding post-reload splitters.
11233 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11234 corresponding post-reload splitters.
11235 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11236 New macroized instruction patterns.
11237 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11238 corresponding post-reload splitters.
11239 (*floatsi<mode>2_i387): New macroized instruction patterns.
11241 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11243 * config/i386/i386.md (smaxmin): New.
11244 (umaxmin): Likewise.
11245 (maxminiprefix): Likewise.
11246 (maxminfprefix): Likewise.
11247 (<code><mode>3): Likewise.
11248 (smin<mode>3): Removed.
11249 (smax<mode>3): Likewise.
11251 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11252 (mmx_<code>v4hi3): Likewise.
11253 (mmx_<code>v8qi3): Likewise.
11254 (mmx_smaxv2sf3): Removed.
11255 (mmx_sminv2sf3): Likewise.
11256 (mmx_umaxv8qi3): Likewise.
11257 (mmx_smaxv4hi3): Likewise.
11258 (mmx_uminv8qi3): Likewise.
11259 (mmx_sminv4hi3): Likewise.
11261 * config/i386/sse.md (<addsub><mode>3): New.
11262 (*<addsub><mode>3): Likewise.
11263 (<sse>_vm<addsub><mode>3): Likewise.
11264 (<maxmin><mode>3): Likewise.
11265 (*<maxmin><mode>3_finite): Likewise.
11266 (*<maxmin><mode>3): Likewise.
11267 (<sse>_vm<maxmin><mode>3): Likewise.
11268 (sse3_h<addsub>v4sf3): Likewise.
11269 (sse3_h<addsub>v2df3): Likewise.
11270 (<maxmin>v16qi3): Likewise.
11271 (*<maxmin>v16qi3): Likewise.
11272 (<maxmin>v8hi3): Likewise.
11273 (*<maxmin>v8hi3): Likewise.
11274 (*sse4_1_<maxmin><mode>3): Likewise.
11275 (*sse4_1_<maxmin><mode>3): Likewise.
11276 (add<mode>3): Removed.
11277 (*add<mode>3): Likewise.
11278 (<sse>_vmadd<mode>3): Likewise.
11279 (sub<mode>3): Likewise.
11280 (*sub<mode>3): Likewise.
11281 (<sse>_vmsub<mode>3): Likewise.
11282 (smin<mode>3): Likewise.
11283 (*smin<mode>3_finite): Likewise.
11284 (*smin<mode>3): Likewise.
11285 (<sse>_vmsmin<mode>3): Likewise.
11286 (smax<mode>3): Likewise.
11287 (*smax<mode>3_finite): Likewise.
11288 (*smax<mode>3): Likewise.
11289 (<sse>_vmsmax<mode>3): Likewise.
11290 (sse3_haddv4sf3): Likewise.
11291 (sse3_haddv2df3): Likewise.
11292 (sse3_hsubv4sf3): Likewise.
11293 (sse3_hsubv2df3): Likewise.
11294 (umaxv16qi3): Likewise.
11295 (*umaxv16qi3): Likewise.
11296 (smaxv8hi3): Likewise.
11297 (*smaxv8hi3): Likewise.
11298 (*sse4_1_smax<mode>3): Likewise.
11299 (*sse4_1_umax<mode>3): Likewise.
11300 (uminv16qi3): Likewise.
11301 (*uminv16qi3): Likewise.
11302 (sminv8hi3): Likewise.
11303 (*sminv8hi3): Likewise.
11304 (*sse4_1_smin<mode>3): Likewise.
11305 (*sse4_1_umin<mode>3): Likewise.
11307 2008-04-01 Rafael Espindola <espindola@google.com>
11309 * tree-cfg.c (verify_expr): remove in_phi.
11310 (verify_stmt): Don't call walk_tree with verify_expr. Use
11311 is_gimple_min_invariant instead of is_gimple_val.
11313 2008-04-01 Joseph Myers <joseph@codesourcery.com>
11315 * doc/include/gpl_v3.texi: Update for manpage generation.
11316 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11318 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11319 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11320 gpl_v3.texi instead of gpl.texi.
11323 2008-04-01 Jakub Jelinek <jakub@redhat.com>
11326 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11328 2008-04-01 Rafael Espindola <espindola@google.com>
11330 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11331 (extract_code_and_val_from_cond): Use
11332 extract_code_and_val_from_cond_with_ops.
11334 2008-04-01 Jan Hubicka <jh@suse.cz>
11336 * function.c (free_after_compilation): Free epilogue_delay_list.
11337 (prepare_function_start): Assert that previous compilation was freed.
11339 2008-04-01 Jan Hubicka <jh@suse.cz>
11340 Jim Wilson <wilson@tuliptree.org>
11341 Andreas Tobler <andreast@gcc.gnu.org>
11343 PR middle-end/35781
11344 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11345 rtl.emit instead cfun->emit.
11346 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11347 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11349 2008-04-01 Ben Elliston <bje@au.ibm.com>
11351 * doc/c-tree.texi (Function Basics): Fix grammatical error.
11353 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
11355 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11357 (fprofile-use): Add var flag_profile_use
11358 * coverage.c (coverage_begin_output): Do not open a gcno file for
11359 output only if -ftest-coverage is set.
11360 Do not add getpwd() to gcda file path.
11361 (build_gcov_info): Check the new flag
11362 flag_profile_datafile_relative_path.
11363 (coverage_init): Use profile_data_prefix.
11364 Read profile counter only if flag_profile_use is set.
11365 * opts.c (common_handle_option): New option fprofile-use=,
11366 fprofile-dir=, fprofile-generate=.
11367 * toplev.c (profile_data_prefix): New variable definition.
11368 * toplev.h (profile_data_prefix): New declaration.
11369 * doc/invoke.tex (Option Summary, Optimization Options):
11372 2008-03-31 James E. Wilson <wilson@tuliptree.org>
11374 * varasm.c (output_constant_pool_1): In LABEL_REF check,
11375 use tmp consistently.
11378 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11379 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11380 UNSPEC_FR_RECIP_APPROX_RES.
11381 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11383 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11386 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11388 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11390 PR middle-end/30186
11391 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11392 element of the vector via a pointer.
11394 2008-03-31 Ian Lance Taylor <iant@google.com>
11396 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11398 2008-03-31 Jan Hubicka <jh@suse.cz>
11400 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11401 get_arg_pointer_save_area.
11402 * expr.c (init_expr): Just clear out rtl.expr.
11403 * function.c (free_after_compilation): Clear out whole RTL structure.
11404 (get_func_frame_size): Merge into ...
11405 (get_frame_size): ... this one.
11406 (assign_stack_local_1): Merge into ...
11407 (assign_stack_local): ... this one.
11408 (expand_function_end): Update call of get_arg_pointer_save_area.
11409 (get_art_pointer_save_area): Remove cfun argument.
11410 * function.h (emit_status): regno_pointer_align does not need length
11411 attribute. Move x_regno_reg_rtx to ...
11412 (regno_reg_rtx): ... new global array.
11413 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11414 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11415 apply_args_value, forced_labels, stack_pointer_delta):
11417 (struct varasm_status): Move here from varasm.c
11418 (struct rtl_data): New. Move here some fields from struct function.
11419 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11420 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11421 used_temp_slots avail_temp_slots, temp_slot_level,
11422 nonlocal_goto_handler_labels): Update accesstors.
11423 (rtl): New global variable.
11424 (struct function): Move some fileds to rtl_data.
11425 (get_arg_pointer_save_area): Update prototype.
11426 * emit-rtl.c (rtl): Declare.
11427 (regno_reg_rtx): Declare.
11428 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11430 (gen_reg_rtx): Update.
11431 (init_virtual_regs): Do not tate emit_status argument.
11432 (init_emit): Do not allocate emit.
11433 * varasm.c (varasm_statuc): Move to function.h.
11434 (n_deferred_constatns): Update accestor.
11435 (init_varasm_status): Do not allocate varasm_status.
11436 (force_const_mem, get_pool_size, output_constant_pool): Update.
11437 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11438 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11440 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11442 PR rtl-optimization/35729
11443 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11446 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11449 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11450 load/store if memory is unaligned.
11451 (*movti_rex64): Likewise.
11453 * config/i386/predicates.md (misaligned_operand): New.
11455 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11458 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11461 2008-03-31 Jan Beulich <jbeulich@novell.com>
11463 * config/ia64/constraints.md: Add 'j' constraint.
11464 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11465 (movdi_internal): Likewise.
11467 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11470 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11472 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11475 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11476 proper error message for the third argument on blendpd and
11479 * config/i386/sse.md (blendbits): New.
11480 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11482 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11484 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11486 2008-03-30 Richard Guenther <rguenther@suse.de>
11488 PR middle-end/31023
11489 * fold-const.c (fold_sign_changed_comparison): Do leave
11490 conversions to base-types alone.
11492 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11494 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11495 the link register if one altivec register is be saved.
11497 2008-03-30 Ben Elliston <bje@au.ibm.com>
11499 * final.c (final_scan_insn): Remove if (0) code.
11501 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11503 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11505 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11507 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11508 of V4SFmode to ix86_binary_operator_ok.
11510 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11512 * config/i386/i386.c (override_options): Initialize
11513 ix86_veclib_handler to ix86_veclibabi_svml when
11514 -mveclibabi=svml is used.
11515 (ix86_veclibabi_svml): New function for SVML ABI style
11516 vectorization support.
11517 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11519 2008-03-28 Rafael Espindola <espindola@google.com>
11521 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11522 (tree_binary_nonnegative_warnv_p): Make it public.
11523 (tree_single_nonnegative_warnv_p): Make it public.
11524 (tree_invalid_nonnegative_warnv_p): Make it public.
11525 (tree_unary_nonzero_warnv_p): Make it public.
11526 (tree_binary_nonzero_warnv_p): Make it public
11527 (tree_single_nonzero_warnv_p): Make it public.
11528 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11529 (extract_range_from_binary_expr): Split the expr argument.
11530 (extract_range_from_unary_expr): Split the expr argument.
11531 (extract_range_from_comparison): Split the expr argument.
11532 (extract_range_from_expr): Use the new aux functions.
11533 (vrp_evaluate_conditional_warnv): Use
11534 vrp_evaluate_conditional_warnv_with_ops.
11535 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11536 (tree_binary_nonzero_warnv_p): Declare.
11537 (tree_single_nonzero_warnv_p): Declare.
11538 (tree_expr_nonzero_warnv_p): Declare.
11539 (tree_unary_nonnegative_warnv_p): Declare.
11540 (tree_binary_nonnegative_warnv_p): Declare.
11541 (tree_single_nonnegative_warnv_p): Declare.
11542 (tree_invalid_nonnegative_warnv_p): Declare.
11544 2008-03-28 Richard Guenther <rguenther@suse.de>
11546 PR tree-optimization/30317
11547 PR tree-optimization/30911
11548 PR tree-optimization/34793
11549 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11550 (struct assert_locus_d): New member EXPR.
11551 (register_new_assert_for): Add EXPR parameter to support
11552 ASSERT_EXPR <name, expr OP limit>.
11553 (register_edge_assert_for_1): Adjust callers.
11554 (find_assert_locations): Likewise.
11555 (process_assert_insertions_for): Build condition from expression.
11556 (extract_range_from_assert): Handle ASSERT_EXPRs
11557 of the form ASSERT_EXPR <name, expr OP limit>.
11558 (register_edge_assert_for_2): New helper registering
11559 asserts for comparisons. Recognize range tests of the form
11560 (unsigned)i - CST1 OP CST2.
11561 (register_edge_assert_for_1): Use it.
11562 (register_edge_assert_for): Likewise.
11563 (needs_overflow_infinity): Integer sub-types
11564 do not need overflow infinities.
11565 (vrp_val_is_max): The extreme values of integer sub-types
11566 are those of the base type.
11567 (vrp_val_is_min): Likewise.
11568 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11571 2008-03-28 Nick Clifton <nickc@redhat.com>
11574 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11575 Return GENERAL_REGS for stack adjustment reloads.
11577 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11580 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11581 const_vector when all the vectors are constant.
11583 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11585 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11587 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11588 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11590 (s<code>_sf): Use new scc_sf attribute for opcode names.
11592 2008-03-27 Tom Tromey <tromey@redhat.com>
11594 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11595 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11596 config/spu/t-spu-elf, config/i386/t-interix,
11597 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11598 config/i386/x-darwin, config/i386/x-mingw32,
11599 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11600 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11601 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11602 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11603 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11604 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11605 config/score/t-score-elf, config/arm/t-strongarm-pe,
11606 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11607 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11608 Revert automatic dependency patch.
11610 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
11613 * config/i386/i386.c (ix86_function_arg_boundary): Align
11614 decimal floating point to its natural boundary.
11616 2008-03-27 Richard Guenther <rguenther@suse.de>
11618 PR middle-end/35716
11619 * fold-const.c (fold_comparison): Restrict distinct decl
11620 comparison folding to VAR_DECLs and PARM_DECLs. Do not
11621 solely rely on operand_equal_p.
11623 2008-03-27 Richard Guenther <rguenther@suse.de>
11626 * c-common.c (handle_weak_attribute): Reject combination of
11629 2008-03-27 Richard Guenther <rguenther@suse.de>
11631 PR tree-optimization/32810
11632 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11633 conversions from DECL_INITIAL.
11634 (fold_const_aggregate_ref): Likewise from constructor elements.
11636 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
11638 * tree-affine.h (aff_combination_expand): Declare.
11639 (get_inner_reference_aff): Likewise.
11640 * tree-affine.c (aff_combination_expand): Split out from
11641 tree_to_aff_combination_expand.
11642 (get_inner_reference_aff): New function.
11643 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11644 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11645 (struct lim_aux_data): sm_done field removed.
11646 (mem_ref_loc_p, mem_ref_locs_p): New types.
11647 (struct mem_ref): Added id, stored, accesses_in_loop,
11648 indep_loop, dep_loop, indep_ref, dep_ref fields.
11649 Removed is_stored, locs and next fields.
11650 (memory_accesses): New variable.
11651 (movement_possibility): Do not allow moving statements
11652 that store to memory.
11653 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11655 (determine_max_movement): For statements with memory references,
11656 find the outermost loop in that the reference is independent.
11657 (move_computations_stmt): Mark the virtual operands for renaming.
11658 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11659 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11660 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11661 add_vop_ref_mapping, create_vop_ref_mapping_loop,
11662 create_vop_ref_mapping, analyze_memory_references,
11663 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11664 get_all_locs_in_loop, ref_always_accessed_p,
11665 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11666 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11667 store_motion_loop, store_motion): New functions.
11668 (struct vop_to_refs_elt): New type.
11669 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11670 memref_hash, memref_eq, hoist_memory_references): Rewritten.
11671 (schedule_sm): Replaced by...
11672 (execute_sm): ... this.
11673 (determine_lsm_ref, hoist_memory_references,
11674 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11675 find_more_ref_vops, free_mem_ref, free_mem_refs,
11676 determine_lsm_loop, determine_lsm): Removed.
11677 (tree_ssa_lim_finalize): Free data structures used by store motion.
11678 (tree_ssa_lim): Call analyze_memory_references. Use
11679 store_motion instead of determine_lsm.
11681 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11683 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11684 rename tmake_file to m68hc11/t-m68hc11.
11685 (mcore): Set inhibit_libc to true.
11686 * config.host (alpha*-dec-*vms*): Set extra_programs.
11687 (interix3*): Don't use host_xmake_file.
11688 * configure.ac: Let config.gcc override inhibit_libc.
11689 * configure: Regenerate.
11691 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11692 * config/t-openbsd-thread: Remove commented out lines.
11694 * config/x-interix: Remove.
11696 * config/m68hc11/t-m68hc11-gas: Rename to...
11697 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
11699 * config/mcore/t-mcore: Remove T_CFLAGS.
11700 * config/mcore/t-mcore-pe: Likewise.
11702 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11704 * configure.ac: Replace custom __GNU_SOURCE test with
11705 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
11706 * aclocal.m4: Regenerate.
11707 * configure: Regenerate.
11708 * config.in: Regenerate.
11710 2008-03-27 Richard Guenther <rguenther@suse.de>
11712 * fold-const.c (target.h): Include.
11713 (fold_comparison): Fold comparison of addresses of decls
11714 that bind locally or of constants. Consolidate address folding code.
11715 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11716 results from fold_binary_to_constant.
11717 (compare_values_warnv): Likewise.
11719 2008-03-27 Andrew Pinski <pinskia@gmail.com>
11721 PR middle-end/35429
11722 * fold-const.c (fold_truthop): Check for integeral types when folding
11723 a == 0 && b == 0 and a != 0 || b != 0 .
11725 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11727 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11729 2008-03-26 Andreas Schwab <schwab@suse.de>
11731 * doc/invoke.texi: Fix use of @item vs. @itemx.
11733 2008-03-26 Tom Tromey <tromey@redhat.com>
11735 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11736 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11737 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11738 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11739 build/genconstants.o, build/genemit.o, build/genextract.o,
11740 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11741 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11744 2008-03-26 Richard Guenther <rguenther@suse.de>
11747 2008-03-26 Richard Guenther <rguenther@suse.de>
11749 * fold-const.c (target.h): Include.
11750 (fold_comparison): Fold comparison of addresses of two decls
11751 that bind locally. Consolidate address folding code.
11753 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11755 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11756 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11757 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11758 dconstsqrt2, dconstthird, dconste and/or dconst10.
11759 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11760 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11761 dconstsqrt2, dconste): Delete.
11762 (init_emit_once): Likewise. Simplify initializing dconstm1.
11764 * real.c (get_real_const): New.
11765 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11766 dconstsqrt2, dconste): Delete.
11767 (real_value_const, get_real_const): New.
11769 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11771 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11773 * config/i386/i386.c (ix86_function_arg_boundary): Check
11774 BIGGEST_ALIGNMENT instead of 128.
11775 (setup_incoming_varargs_64): Likewise.
11777 2008-03-26 Tom Tromey <tromey@redhat.com>
11779 * Makefile.in (DEPFILES): Add missing '/'.
11781 2008-03-26 Richard Guenther <rguenther@suse.de>
11783 * fold-const.c (target.h): Include.
11784 (fold_comparison): Fold comparison of addresses of two decls
11785 that bind locally. Consolidate address folding code.
11787 2008-03-26 Nick Clifton <nickc@redhat.com>
11790 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11791 not allow INT+INT as a legitimate addressing mode.
11793 2008-03-26 Richard Guenther <rguenther@suse.de>
11795 * tree-flow.h (widen_bitfield): Remove declaration.
11796 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11797 (widen_bitfield): Remove function.
11798 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11801 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11804 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11807 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11809 PR rtl-optimization/35232
11810 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11811 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11812 reg_reloaded_call_part_clobbered here.
11813 (reload_regs_reach_end_p): New function.
11814 (reload_reg_rtx_for_input): New variable.
11815 (reload_reg_rtx_for_output): Likewise.
11816 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11817 when reassigning a pseudo register. Load reloadreg from
11818 reload_reg_rtx_for_input, moving the mode and register
11820 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11821 instead of the original when deciding whether an input reload
11822 would be a no-op or whether an output reload can be deleted.
11823 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11824 when setting up new_spill_reg_store. Load it from
11825 reload_reg_rtx_for_output, moving the mode and register
11827 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11828 instead of the original when deciding whether an output reload
11829 would be a no-op. Do the same when modifying insn notes.
11830 Use rtx_equal_p instead of == to compare the registers.
11831 (inherit_piecemeal_p): Take a mode and two register numbers
11833 (emit_reload_insns): Clear new_spill_reg_store for every hard
11834 register in the reload register. Remove spill registers
11835 from reg_reloaded_valid before considering whether to record
11836 inheritance information for them. Use reload_reg_rtx_for_output
11837 instead of reg_rtx when recording output reloads. Use
11838 reload_reg_rtx_for_input instead of reg_rtx when recording
11839 input reloads. Set or clear reg_reloaded_call_part_clobbered
11840 at the same time as setting reg_reloaded_valid.
11841 (delete_output_reload): Add a new_reload_reg parameter and use it
11842 instead of rld[j].reg_rtx.
11843 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11846 2008-03-25 Tom Tromey <tromey@redhat.com>
11848 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11849 (build/genattr.o): Likewise.
11850 (build/genattrtab.o): Likewise.
11851 (build/gencodes.o): Likewise.
11852 (build/genconfig.o): Likewise.
11853 (build/genconstants.o): Likewise.
11854 (build/genemit.o): Likewise.
11855 (build/genextract.o): Likewise.
11856 (build/genflags.o): Likewise.
11858 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11860 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11861 instead of size_int for integer types.
11862 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11863 to match type of MINUS_EXPR.
11865 2008-03-25 Tom Tromey <tromey@redhat.com>
11867 * configure: Rebuilt.
11868 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11871 2008-03-25 Tom Tromey <tromey@redhat.com>
11873 * config/x-solaris (host-solaris.o): Update.
11874 * config/x-linux (host-linux.o): Update.
11875 * config/x-hpux (host-hpux.o): Update.
11876 * config/x-darwin (host-darwin.o): Update.
11877 * config/v850/t-v850e (v850-c.o): Update.
11878 * config/v850/t-v850 (v850-c.o): Update.
11879 * config/t-vxworks (vxworks.o): Update.
11880 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11881 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11882 * config/spu/t-spu-elf (spu-c.o): Update.
11884 * config/sh/t-symbian (sh-c.o): Update.
11885 (symbian.o): Update.
11886 * config/sh/t-sh (sh-c.o): Update.
11887 * config/score/t-score-elf (score7.o, score3.o): Update.
11888 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11889 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11890 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11891 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11892 (rs6000.o): Remove.
11893 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11894 * config/m32c/t-m32c (m32c-pragma.o): Update.
11895 * config/ia64/t-ia64 (ia64-c.o): Update.
11896 * config/i386/x-mingw32 (host-mingw32.o): Update.
11897 * config/i386/x-i386 (driver-i386.o): Update.
11898 * config/i386/x-darwin (host-i386-darwin.o): Update.
11899 * config/i386/x-cygwin (host-cygwin.o): Update.
11900 * config/i386/t-nwld (nwld.o): Update.
11901 * config/i386/t-netware (netware.o): Update.
11902 * config/i386/t-interix (winnt.o): Update.
11903 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11904 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11905 msformat-c.o): Update.
11906 * config/bfin/t-bfin-linux (generated_files): Add
11907 linux-sysroot-suffix.h.
11908 * config/arm/t-wince-pe (pe.o): Update.
11909 * config/arm/t-strongarm-pe (pe.o): Update.
11910 * config/arm/t-pe (pe.o): Update.
11911 * config/arm/t-arm (arm-c.o): Update.
11912 * doc/install.texi (Prerequisites): Require make 3.80.
11913 * Makefile.in: Remove .o targets.
11914 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11915 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11916 (simple_generated_h, simple_generated_c): Move earlier.
11917 (generated_files): New variable.
11918 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11919 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11920 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11921 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11922 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11923 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11924 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11925 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11926 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11927 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11928 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11929 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11931 (COMPILE.base, COMPILE): New variables.
11932 (%.o): New pattern rule.
11933 (ALL_HOST_OBJS): New variable.
11934 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11935 (dummy-checksum.o, cc1-checksum.o): Remove.
11936 (DRIVER_SHLIB): New variable.
11937 (DRIVER_DEFINES): Use it.
11938 (gencondmd.c): Move out of build/.
11939 (s-conditions): Update.
11940 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11941 (ALL_BUILD_OBJS): Likewise.
11942 (build/%.o): Use BUILDCOMPILE.
11943 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11944 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11945 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11946 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11947 build/genconfig.o, build/genconstants.o, build/genemit.o,
11948 build/genextract.o, build/genflags.o, build/genmddeps.o,
11949 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11950 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11951 build/gen-protos.o, build/scan.o, build/fix-header.o,
11952 build/scan-decls.o): Simplify.
11953 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11954 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11955 prefix.o, toplev.o): Reduce to variable setting.
11956 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11957 ($(out_object_file), gcc-options.o): New targets.
11958 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11959 * configure: Rebuilt.
11960 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11961 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11963 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11965 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11966 complain when we hit an error, return ERROR_MARK_NODE.
11968 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11970 * config/sh/constraints.md (Pso, Psz): New constraints.
11971 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11972 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11974 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11976 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11977 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11979 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11981 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11982 (prefetch_sh2a): New.
11984 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11985 Naveen.H.S <naveen.hs@kpitcummins.com>
11987 * config/sh/constraints.md (I28): New constraint.
11988 * config/sh/sh.c (broken_move): Add support for movi20s.
11989 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11991 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11992 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11993 Naveen.H.S <naveen.hs@kpitcummins.com>
11995 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11996 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11997 (print_operand): Handle resbank in %@ operand code.
11998 (sh_encode_section_info): New.
11999 (push_regs): Add conditions for resbank.
12000 (sh_expand_epilogue): Likewise.
12001 (sh_insert_attributes): Likewise.
12002 (sh_attribute_table): Likewise.
12003 (sh_handle_resbank_handler_attribute): New.
12004 (sh2a_handle_function_vector_handler_attribute): New.
12005 (sh2a_is_function_vector_call): New.
12006 (sh2a_get_function_vector_number): New.
12007 (sh2a_function_vector_p): New.
12008 (sh_cfun_resbank_handler_p): New.
12009 * config/sh/sh.md (calli): Emit jsr/n if possible.
12010 (calli_tbr_rel): New.
12011 (calli_pcrel): Emit jsr/n if possible.
12012 (return_i): Emit rts/n if possible.
12013 (call_valuei_tbr_rel): New.
12014 (call_valuei_pcrel): Add condition for SH2A target.
12015 (call_value): Likewise.
12016 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12017 (sh2a_get_function_vector_number): Likewise.
12018 (sh2a_is_function_vector_call): Likewise.
12019 * doc/extend.texi: Document TBR relative addressing of SH2A.
12020 (resbank): Add description for SH2A.
12022 2008-03-24 Richard Guenther <rguenther@suse.de>
12025 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12026 pointer assignments change conversions according to middle-end rules.
12027 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12028 * configure.ac: Include type checking in yes.
12029 * configure: Regenerate.
12031 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12033 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12034 (diagnostic_report_diagnostic): Update. Handle ICEs here.
12036 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12038 * gthr-vxworks.h (UNUSED): Define.
12040 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12042 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12044 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12046 * doc/extend.texi (Function Attributes): Add missing comma in the
12047 example of the "alloc_size" attribute.
12049 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
12052 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12054 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12057 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12060 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12061 of the underlying type of a MS bitfield layout to the natural
12062 alignment of the type.
12064 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12066 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12067 to their natural alignment to avoid store forwarding stalls.
12069 2008-03-22 Richard Guenther <rguenther@suse.de>
12071 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12072 For PHI nodes verify the address is invariant.
12073 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12074 (get_symbol_constant_value): Use is_gimple_min_invariant.
12075 (maybe_fold_stmt_indirect): Likewise.
12077 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
12079 PR rtl-optimization/33927
12080 * Makefile.in (dse.o): Depend on $(TM_P_H).
12081 * expr.h (extract_low_bits): Declare.
12082 * expmed.c (extract_low_bits): New function.
12083 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12084 * dse.c: Include tm_p.h.
12085 (find_shift_sequence): Remove the read_reg argument and return the
12086 read value. Emit the instructions instead of returning them.
12087 Iterate on new_mode rather than calculating it each time.
12088 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
12089 source to NEW_MODE and extract_low_bits to convert the shifted
12090 value to READ_MODE.
12091 (replace_read): Allow the load and store to have different mode
12092 classes. Use extract_low_bits when SHIFT == 0. Create the shift
12093 or extraction instructions before trying the replacement. Update
12094 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12096 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12098 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12099 to their natural alignment to avoid store forwarding stalls.
12101 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12104 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12105 encouraging but not allowing gprs for input;
12106 change the input constraint to !f#r.
12107 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12109 change the output constraint to !f#r.
12111 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
12114 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12115 corresponding post-reload splitters.
12116 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12117 when x87 FP math is selected.
12118 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12119 New function prototype.
12120 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12121 unreachable function to ease macroization of insn patterns.
12123 2008-03-21 Martin Jambor <mjambor@suse.cz>
12125 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12126 reference dumps if ddr is NULL or dependence is unknown.
12128 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12130 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12131 unsigned extension into account.
12132 (ATOMIC_COMPARE_AND_SWAP): Likewise.
12133 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12134 Do computations on a scratch register.
12136 2008-03-21 Richard Guenther <rguenther@suse.de>
12138 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12139 Use is_gimple_min_invariant instead of TREE_INVARIANT.
12140 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12141 * tree-ssa-dom.c (record_equality): Likewise.
12142 * tree-inline.c (copy_body_r): Likewise.
12143 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12146 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12148 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12149 as 'delete_unused' argument.
12151 2008-03-20 Richard Guenther <rguenther@suse.de>
12153 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12154 special casing of constant qualifiers.
12155 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12156 care about them in general.
12157 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12158 regardless of their type.
12159 (fold_stmt_r): Forcefully fold *& if we end up with that.
12161 2008-03-20 Paul Brook <paul@codesourcery.com>
12163 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12164 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12166 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12168 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12169 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12171 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
12173 * common.opt (Wmudflap): New option.
12174 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12175 (mx_register_decls): Likewise.
12176 (mudflap_finish_file): Likewise.
12177 * doc/invoke.texi: Document -Wno-mudflap.
12179 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
12181 * c-format.c (replace_format_name_to_system_name): New.
12182 (cmp_attribs): New.
12183 (convert_format_name_to_system_name): New.
12184 (decode_format_attr): Add use of convert_format_name_to_system_name.
12185 (format_types_orig): Add gnu_ prefix to names.
12186 (check_format_info_main): Special treating of \0 escaped names for
12187 supporting multi-character format specifiers as I32, I64.
12188 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12189 (gnu_target_overrides_format_attributes): New.
12190 * c-format.h: Add structure target_ovr_attr to hold
12191 system specific formatter names.
12192 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12193 msformat-c.o file to c_target_objs and cxx_target_objs.
12194 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12195 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12196 (TARGET_N_FORMAT_TYPES): New.
12197 * config/i386/msformat-c.c: New.
12198 * config/i386/t-cygming: Add build rule for msformat-c.o.
12199 * doc/extend.texi: Add new format names gnu_* and ms_* and
12201 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12203 2008-03-20 Ira Rosen <irar@il.ibm.com>
12205 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12206 optimizations turned on under -O3.
12207 (ftree-vectorize): Add that the flag is turned on with -O3.
12209 2008-03-20 Ben Elliston <bje@au.ibm.com>
12211 * regmove.c (try_auto_increment): Fix spelling error in comment.
12212 * final.c (final_scan_insn): Likewise.
12214 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
12217 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12218 allocator preferences for "y" and "r" class registers.
12219 ("*mov<mode>_internal"): Ditto.
12220 ("*movv2sf_internal_rex64"): Ditto.
12221 ("*movv2sf_internal"): Ditto.
12223 2008-03-19 Michael Matz <matz@suse.de>
12225 PR middle-end/35616
12226 * calls.c (expand_call): Check overlap of arguments with call
12227 address for sibcalls.
12229 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12232 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12233 of the underlying type of a MS bitfield layout to the natural
12234 alignment of the type.
12236 2008-03-19 Jan Hubicka <jh@suse.cz>
12239 * toplev.c (decode_d_option): Handle all CPP flags.
12240 * tree-vrp.c: Update tree_pass descriptors.
12241 * regrename.c: Update tree_pass descriptors.
12242 * fwprop.c: Update tree_pass descriptors.
12243 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12244 * tree-into-ssa.c: Update tree_pass descriptors.
12245 * tree-dump.c: Update tree_pass descriptors.
12246 * tree-complex.c: Update tree_pass descriptors.
12247 * tree-dump.h: Update tree_pass descriptors.
12248 * see.c: Update tree_pass descriptors.
12249 * cgraphbuild.c: Update tree_pass descriptors.
12250 * tracer.c: Update tree_pass descriptors.
12251 * tree-loop-distribution.c: Update tree_pass descriptors.
12252 * cgraph.c: Update tree_pass descriptors.
12253 * postreload-gcse.c: Update tree_pass descriptors.
12254 * postreload.c: Update tree_pass descriptors.
12255 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12256 * tree-tailcall.c: Update tree_pass descriptors.
12257 * tree-pass.h (tree_opt_pass): Rename to ...
12258 (opt_pass) ... this one; add "type" field and remove letter field.
12259 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12260 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12261 all_lowering_passes): Update declaration.
12262 * ipa-cp.c: Update tree_pass descriptors.
12263 * final.c: Update tree_pass descriptors.
12264 * omp-low.c: Update tree_pass descriptors.
12265 * tree-ssa-dse.c: Update tree_pass descriptors.
12266 * ipa-reference.c: Update tree_pass descriptors.
12267 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12268 * auto-inc-dec.c: Update tree_pass descriptors.
12269 * reorg.c: Update tree_pass descriptors.
12270 * cgraphunit.c: Update tree_pass descriptors.
12271 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12272 * tree-ssa-ccp.c: Update tree_pass descriptors.
12273 * df-core.c: Update tree_pass descriptors.
12274 * mode-switching.c: Update tree_pass descriptors.
12275 * tree-nomudflap.c: Update tree_pass descriptors.
12276 * modulo-sched.c: Update tree_pass descriptors.
12277 * ipa-pure-const.c: Update tree_pass descriptors.
12278 * cse.c: Update tree_pass descriptors.
12279 * web.c: Update tree_pass descriptors.
12280 * tree-stdarg.c: Update tree_pass descriptors.
12281 * tree-ssa-math-opts.c: Update tree_pass descriptors.
12282 * tree-ssa-dom.c: Update tree_pass descriptors.
12283 * tree-nrv.c: Update tree_pass descriptors.
12284 * tree-ssa-alias.c: Update tree_pass descriptors.
12285 * loop-init.c: Update tree_pass descriptors.
12286 * gimple-low.c: Update tree_pass descriptors.
12287 * ipa-inline.c: Update tree_pass descriptors.
12288 * tree-ssa-sink.c: Update tree_pass descriptors.
12289 * global.c: Update tree_pass descriptors.
12290 * ifcvt.c: Update tree_pass descriptors.
12291 * jump.c: Update tree_pass descriptors.
12292 * predict.c: Update tree_pass descriptors.
12293 * tree-ssa-loop.c: Update tree_pass descriptors.
12294 * recog.c: Update tree_pass descriptors.
12295 * dse.c: Update tree_pass descriptors.
12296 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12297 * tree-eh.c: Update tree_pass descriptors.
12298 * regmove.c: Update tree_pass descriptors.
12300 * function.c: Update tree_pass descriptors.
12301 * tree-vectorizer.c: Update tree_pass descriptors.
12302 * gcse.c: Update tree_pass descriptors.
12303 * ipa-type-escape.c: Update tree_pass descriptors.
12304 * tree-if-conv.c: Update tree_pass descriptors.
12305 * init-regs.c: Update tree_pass descriptors.
12306 * ipa.c: Update tree_pass descriptors.
12307 * tree-ssa-phiopt.c: Update tree_pass descriptors.
12308 * rtl-factoring.c: Update tree_pass descriptors.
12309 * lower-subreg.c: Update tree_pass descriptors.
12310 * bt-load.c: Update tree_pass descriptors.
12311 * tree-dfa.c: Update tree_pass descriptors.
12312 * except.c: Update tree_pass descriptors.
12313 * emit-rtl.c: Update tree_pass descriptors.
12314 * cfgexpand.c: Update tree_pass descriptors.
12315 * tree-cfgcleanup.c: Update tree_pass descriptors.
12316 * cfgcleanup.c: Update tree_pass descriptors.
12317 * tree-ssa-pre.c: Update tree_pass descriptors.
12318 * tree-sra.c: Update tree_pass descriptors.
12319 * tree-mudflap.c: Update tree_pass descriptors.
12320 * tree-ssa-copy.c: Update tree_pass descriptors.
12321 * cfglayout.c: Update tree_pass descriptors.
12322 * tree-ssa-forwprop.c: Update tree_pass descriptors.
12323 * tree-ssa-dce.c: Update tree_pass descriptors.
12324 * tree-ssa.c: Update tree_pass descriptors.
12325 * regclass.c: Update tree_pass descriptors.
12326 * integrate.c: Update tree_pass descriptors.
12327 * tree-optimize.c: Update tree_pass descriptors.
12328 * tree-ssa-phiprop.c: Update tree_pass descriptors.
12329 * tree-object-size.c: Update tree_pass descriptors.
12330 * combine.c: Update tree_pass descriptors.
12331 * tree-outof-ssa.c: Update tree_pass descriptors.
12332 * bb-reorder.c: Update tree_pass descriptors.
12333 * stack-ptr-mod.c: Update tree_pass descriptors.
12334 * var-tracking.c: Update tree_pass descriptors.
12335 * tree-profile.c: Update tree_pass descriptors.
12336 * tree-vect-generic.c: Update tree_pass descriptors.
12337 * reg-stack.c: Update tree_pass descriptors.
12338 * sched-rgn.c: Update tree_pass descriptors.
12339 * tree-ssa-structalias.c: Update tree_pass descriptors.
12340 * tree-cfg.c: Update tree_pass descriptors.
12341 * passes.c (current_pass): Update declaration.
12342 (finish_optimization_passes): Update.
12343 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12344 (register_one_dump_file, register_dump_files_1, next_pass_1):
12346 (init_optimization_passes): Update handling of new types.
12347 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12348 * ipa-struct-reorg.c: Update tree_pass descriptors.
12349 * tree-ssa-reassoc.c: Update tree_pass descriptors.
12350 * combine-stack-adj.c: Update tree_pass descriptors.
12351 * cfgrtl.c: Update tree_pass descriptors.
12352 * dce.c: Update tree_pass descriptors.
12353 * tree-ssanames.c: Update tree_pass descriptors.
12355 2008-03-19 Richard Guenther <rguenther@suse.de>
12357 PR middle-end/35609
12358 * tree-ssa.c (walk_data): New structure.
12359 (warn_uninitialized_var): If not always_executed warn with "maybe"
12361 (execute_early_warn_uninitialized): Compute post-dominators.
12362 Initialize always_executed before processing each basic block.
12364 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12367 * config/i386/i386.c (x86_this_parameter): Calculate correct location
12368 of "this" pointer when "regparm = N" or "fastcall" is in effect.
12370 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12372 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12374 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
12376 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12378 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12379 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12380 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12381 target after ignore has been set, and move there also the commputation
12382 of subtarget and original_target.
12383 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12384 (LANG_HOOKS_INITIALIZER): Remove it.
12385 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12387 2008-03-18 Richard Guenther <rguenther@suse.de>
12389 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12390 found an expression with constants, note that in the VN for the lhs.
12391 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12392 fold them to constants if possible. Run cleanup_cfg if done so.
12393 (execute_pre): Return todo.
12394 (do_pre): Likewise.
12395 (execute_fre): Likewise.
12396 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12398 (get_prop_source_stmt): Look through pointer conversions.
12400 2008-03-18 Jan Hubicka <jh@suse.cz>
12402 * tree-pretty-print.c: Include predict.h.
12403 (dump_generic_node): Dump predictor.
12404 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12405 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12406 * gimple-low.c (lower_stmt): Likewise.
12407 * expr.c (expand_expr_real): Likewise.
12408 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12410 (build_predict_expr, build_predict_expr): New.
12411 * predict.h (predictor_name, build_predict_expr): Update.
12412 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12413 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12414 * predict.def (PRED_CONTINUE): Update hitrate.
12415 * tree.def (PREDICT_EXPR): Define.
12416 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12417 do not handle BIND_EXPR.
12418 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12419 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12420 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12423 2008-03-18 Michael Matz <matz@suse.de>
12425 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12427 2008-03-18 Richard Guenther <rguenther@suse.de>
12429 * tree-gimple.h (is_gimple_invariant_address): Declare.
12430 (is_gimple_constant): Likewise.
12431 * tree-gimple.c (is_gimple_constant): New function.
12432 (is_gimple_invariant_address): Likewise.
12433 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12434 and is_gimple_invariant_address.
12435 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12437 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12438 an addressable base.
12440 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12442 PR middle-end/35611
12443 * gimplify.c (gimplify_expr): Gimplify second operand of
12446 2008-03-17 Richard Guenther <rguenther@suse.de>
12448 PR tree-optimization/19637
12449 * fold-const.c (fold_unary): Remove restrictions of removing
12450 intermediate pointer-conversions (P2)(P1)P0.
12451 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12452 conversion to void pointer.
12453 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12455 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12458 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12459 emulated thread local variables.
12461 2008-03-16 Richard Guenther <rguenther@suse.de>
12463 PR middle-end/35607
12464 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12465 expand TREE_INVARIANT operations that are not gimple invariant.
12467 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12469 * doc/extend.texi (Alignment): Say that the ABI controls
12470 the __alignof__ for non-strict-alignment targets rather
12471 than being a recommendation.
12473 2008-03-15 Paul Brook <paul@codesourcery.com>
12475 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12477 (arm_output_fn_unwind): Mark functions that can not be unwound.
12479 2008-03-15 Paul Brook <paul@codesourcery.com>
12481 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12482 extension instructions.
12484 2008-03-15 Richard Guenther <rguenther@suse.de>
12486 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12487 and fold constant aggregate refs.
12488 (fold_const_aggregate_ref): Handle string constants
12489 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12490 (evaluate_stmt): Simplify now that ccp_fold folds constant
12493 2008-03-15 Paul Brook <paul@codesourcery.com>
12495 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12496 (extzv): Use gen_extzv_t2.
12497 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12499 2008-03-15 Richard Guenther <rguenther@suse.de>
12501 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12502 (fold_const_aggregate_ref): Likewise.
12503 (get_value): Return NULL if we don't have any values.
12504 (ccp_finalize): Set const_val to NULL after freeing it.
12505 * tree-flow.h (get_symbol_constant_value): Declare.
12506 (fold_const_aggregate_ref): Likewise.
12507 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12509 2008-03-15 Richard Guenther <rguenther@suse.de>
12511 PR middle-end/35593
12512 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12513 to not produce negative array indices if not allowed. Add
12514 parameter to indicate that.
12515 (maybe_fold_offset_to_component_ref): Allow negative array
12516 indices only for the first member of a structure.
12517 (maybe_fold_offset_to_reference): Allow negative array indices.
12518 (maybe_fold_stmt_addition): Likewise.
12520 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12521 Anatoly Sokolov <aesok@post.ru>
12523 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12524 (avr_arch): Add ARCH_AVR6.
12525 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12526 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12527 instead of fixed value 2.
12528 (print_operand_address): Use gs() asm specifier instead of pm().
12529 (avr_assemble_integer): (Ditto.).
12530 (avr_output_addr_vec_elt): (Ditto.).
12531 (print_operand): Handle "!" code.
12532 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12533 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12534 (AVR_HAVE_EIJMP_EICALL): Define.
12535 (AVR_3_BYTE_PC): Redefine.
12536 (AVR_2_BYTE_PC): (Ditto.).
12537 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12538 (LINK_SPEC): Add atmega2560 and atmega2561.
12539 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12541 * config/avr/avr.md (call_insn): Use eicall instead of icall
12542 for 3 byte PC devices.
12543 (call_value_insn): (Ditto.).
12544 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12545 (indirect_jump): Use only for for 2 byte PC devices.
12546 (*tablejump): (Ditto.).
12547 (*indirect_jump_avr6): Add insn.
12548 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12549 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12550 instead of ijmp for 3 byte PC devices.
12551 (__tablejump2__): (Ditto.).
12552 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12553 (MULITLIB_DIRNAMES): (Ditto.).
12554 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12556 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12558 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12559 "sse2_umulsidi3". Use V1DI mode for operand 0.
12560 ("mmx_psadbw"): Use V1DI mode for operand 0.
12561 * config/i386/i386-modes.def (V1SI): New vector mode.
12562 * config/i386/i386.c (struct builtin_description)
12563 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12564 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12565 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12566 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12567 v1di_ftype_v8qi_v8qi type.
12568 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12570 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12571 __builtin_ia32_pmuludq]: Fix the mode of return value.
12573 2008-03-15 Richard Guenther <rguenther@suse.de>
12575 PR middle-end/35595
12576 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12579 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12581 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12582 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12583 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12584 unless TARGET_SERIALIZE_VOLATILE is enabled.
12585 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12586 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12587 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12589 2008-03-14 Richard Guenther <rguenther@suse.de>
12591 PR tree-optimization/34172
12592 * tree-flow.h (refs_may_alias_p): Declare.
12593 (get_single_def_stmt): Likewise.
12594 (get_single_def_stmt_from_phi): Likewise.
12595 (get_single_def_stmt_with_phi): Likewise.
12596 * tree-dfa.c (refs_may_alias_p): New function.
12597 (get_single_def_stmt): Likewise.
12598 (get_single_def_stmt_from_phi): Likewise.
12599 (get_single_def_stmt_with_phi): Likewise.
12600 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12601 (vn_reference_lookup_1): New helper function.
12602 (vn_reference_lookup): Walk the virtual use-def chain to
12603 continue searching for a match if the def does not alias the
12604 reference we are looking for.
12606 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12608 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12609 archive and Perzl. Update The Written Word listing.
12611 2008-03-14 Richard Guenther <rguenther@suse.de>
12613 PR tree-optimization/34043
12614 PR tree-optimization/33989
12615 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12617 (bitmap_find_leader): Use extra argument to verify dominance
12618 relationship inside a basic-block.
12619 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12620 (find_leader_in_sets): Adjust.
12621 (create_component_ref_by_pieces): Take extra argument for
12622 dominance check, handle lookup failures.
12623 (find_or_generate_expression): Likewise.
12624 (create_expression_by_pieces): Likewise.
12625 (insert_into_preds_of_block): Adjust.
12626 (create_value_expr_from): If asked for, verify all operands
12627 are in the blocks AVAIL_OUT set.
12628 (make_values_for_stmt): Check for SSA_NAMEs that are life
12629 over an abnormal edge.
12630 (compute_avail): Remove such check.
12631 (do_SCCVN_insertion): New function.
12632 (eliminate): If we do not find a leader suitable for replacement
12633 insert a replacement expression from SCCVN if available.
12634 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12635 (struct vn_ssa_aux): Add needs_insertion flag.
12636 * tree-ssa-sccvn.c (may_insert): New global flag.
12637 (copy_reference_ops_from_ref): Value-number union member access
12638 based on its size, not type and member if insertion is allowed.
12639 (visit_reference_op_load): For a weak match from union type
12640 punning lookup a view-converted value and insert a SSA_NAME
12641 for that value if that is not found.
12642 (visit_use): Make dumps shorter. Do not disallow value numbering
12643 SSA_NAMEs that are life over an abnormal edge to constants.
12644 (free_scc_vn): Release inserted SSA_NAMEs.
12645 (run_scc_vn): New flag to specify whether insertion is allowed.
12646 Process SSA_NAMEs in forward order.
12647 * tree-ssa-loop-im.c (for_each_index): Handle invariant
12648 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12649 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12650 pointer type to/from integral types that do not change the
12651 precision to regular conversions.
12653 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12655 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12656 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12657 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12658 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12659 input arguments and the mode of return value. Built-in functions
12660 that operate on whole 64-bit MMX register now use V1DI mode.
12662 2008-03-13 Alon Dayan <alond@il.ibm.com>
12663 Olga Golovanevsky <olga@il.ibm.com>
12665 PR tree-optimization/35041
12666 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12667 to locate the right position in a statement.
12669 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12673 * config/i386/xmmintrin.h: Change all static inline functions to
12674 extern inline and add __gnu_inline__ attribute.
12675 * config/i386/bmintrin.h: Ditto.
12676 * config/i386/smmintrin.h: Ditto.
12677 * config/i386/tmmintrin.h: Ditto.
12678 * config/i386/mmintrin-common.h: Ditto.
12679 * config/i386/ammintrin.h: Ditto.
12680 * config/i386/emmintrin.h: Ditto.
12681 * config/i386/pmmintrin.h: Ditto.
12682 * config/i386/mmintrin.h: Ditto.
12683 * config/i386/mm3dnow.h: Ditto.
12685 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12687 PR middle-end/35185
12688 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12689 (lower_omp_2): New function.
12690 (lower_omp_1, lower_omp): Rewritten.
12692 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
12695 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12696 with the phrase "Microsoft Windows compilers".
12697 (Push/Pop Macro Pragmas): New subsection. Document
12698 #pragma push_macro and pragma pop_macro.
12700 2008-03-12 Paul Brook <paul@codesourcery.com>
12702 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12704 2008-03-12 Paul Brook <paul@codesourcery.com>
12706 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12707 (thumb2_alusi3_short): Exclude PLUS and MINUS.
12708 (thumb2_addsi_shortim): Rename ...
12709 (thumb2_addsi_short): ... to this. Allow register operands.
12710 (thumb2_subsi_short): New pattern.
12711 (thumb2_one_cmplsi2_short,
12712 thumb2_negsi2_short): New patterns and peepholes.
12714 2008-03-12 Paul Brook <paul@codesourcery.com>
12716 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12718 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
12720 * config/i386/i386.md (int_cond): New code iterator.
12722 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12723 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12724 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12725 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12726 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12727 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12728 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12729 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12731 2008-03-12 Paul Brook <paul@codesourcery.com>
12733 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12734 instead of {arm,thumb}_compute_save_reg_mask.
12735 (output_return_instruction): Ditto.
12736 (thumb_unexpanded_epilogue): Ditto.
12737 (thumb1_expand_prologue): Ditto.
12738 (thumb1_output_function_prologue): Ditto.
12739 (arm_set_return_address): Ditto.
12740 (thumb_set_return_address): Ditto.
12741 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12742 regs to achieve stack alignment.
12743 (thumb1_compute_save_reg_mask): Fix compiler warning.
12744 (arm_output_epilogue): Use offsets->saved_regs_mask.
12745 Adjust stack pointer by poping call clobered registers.
12746 (arm_expand_prologue): Use offsets->saved_regs_mask.
12747 Adjust stack pointer by pushing extra registers.
12748 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12750 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12753 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12754 conversion to the operands of a multiplication.
12756 2008-03-12 Richard Guenther <rguenther@suse.de>
12758 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12759 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12760 * timevar.def (TV_TREE_PHIPROP): Add.
12761 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12762 pass description. Use TV_TREE_PHIPROP.
12763 * tree-ssa-forwprop.c: Remove phiprop code.
12765 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12767 PR middle-end/35549
12768 * omp-low.c (maybe_lookup_decl): Constify first argument.
12769 (use_pointer_for_field): Change last argument from bool to
12770 omp_context *. Disallow shared copy-in/out in nested
12771 parallel if decl is shared in outer parallel too.
12772 (build_outer_var_ref, scan_sharing_clauses,
12773 lower_rec_input_clauses, lower_copyprivate_clauses,
12774 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12776 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12777 Ira Rosen <irar@il.ibm.com>
12779 * tree-vectorizer.c (free_stmt_vec_info): New function.
12780 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12781 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12782 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12783 * tree-vect-transform.c (vectorizable_conversion): Free
12784 vec_oprnds0 if it was allocated.
12785 (vect_permute_store_chain): Remove unused VECs.
12786 (vectorizable_store): Free VECs that are allocated in the..
12788 (vect_transform_strided_load, vectorizable_load): Likewise.
12789 (vect_remove_stores): Simplify the code.
12790 (vect_transform_loop): Move code to vect_remove_stores().
12791 Call vect_remove_stores() and free_stmt_vec_info().
12793 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12795 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12796 TARGET_HPUX. Revise comment.
12797 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12798 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12799 Use sr4 variant of `be' instruction when not generating PIC code.
12800 (attr_length_call): Adjust for above change.
12802 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12804 * ipa-reference.c (static_execute): Remove module_statics_const and
12805 associated setting code.
12807 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12810 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12811 predicate for operand 1.
12812 (paritysi2_cmp): Use register_operand predicate for operand 2.
12813 Use earlyclobber modifier for operand 1. Remove support for
12815 (paritydi2_cmp): Use register_operand predicate for operand 3.
12816 Use earlyclobber modifier for operand 1. Remove support for
12819 2008-03-11 Paul Brook <paul@codesourcery.com>
12820 Vladimir Prus <vladimir@codesourcery.com>
12822 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12823 (arm_compute_save_reg0_reg12_mask): Always
12824 check if register 11 must be saved. Always safe hard frame pointer
12825 when frame_pointer_needeed.
12826 (arm_compute_save_reg_mask): Save IP and PC
12827 only with apcs frames.
12828 (arm_output_epilogue): Adjust Thumb2 codepath to
12829 be also invoked and work for ARM non-apcs frames.
12830 (arm_expand_prologue): Don't bother saving IP
12831 for non-apcs frame, since it's not clobbered by
12832 prologue code. Implement non-apcs frame
12835 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12837 PR rtl-optimization/35281
12838 * expr.c (convert_move): Use a new pseudo for the intermediate
12839 from_mode->word_mode result.
12841 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12843 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12844 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12845 * toplev.c (compile_file): Don't call it.
12847 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12849 PR middle-end/35526
12850 * expr.c (store_expr): Call emit_block_move if the mode
12851 of "temp" RTX is BLKmode.
12853 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12854 Richard Guenther <rguenther@suse.de>
12856 PR tree-optimization/31358
12857 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12858 the step with a NULL_TREE.
12859 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12860 to sizetype if type is a pointer type.
12861 (add_candidate_1): Don't convert the base and step to
12862 the generic type if the orginal type is a pointer type.
12863 (add_iv_value_candidates): Use sizetype for the step
12864 if type is a pointer type.
12865 (cand_value_at): Likewise.
12866 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12868 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12869 Don't convert the tem affine to the type.
12870 (add_elt_to_tree): Use sizetype for the step if a pointer.
12871 Use POINTER_PLUS_EXPR for pointers.
12872 (aff_combination_to_tree): Use sizetype for the step if a
12875 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12877 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12878 Remove commutativity hint.
12880 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12884 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12885 errorneous type. Check that v is a VAR_DECL.
12887 PR middle-end/35099
12888 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12890 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12892 PR tree-optimization/35494
12893 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12894 may be overriden at link and run time.
12896 2008-03-10 Richard Guenther <rguenther@suse.de>
12898 PR tree-optimization/34677
12899 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12900 (poolify_tree): Likewise.
12901 (modify_expr_template): Likewise.
12902 (poolify_modify_stmt): Likewise.
12903 (insert_fake_stores): Handle all component-ref style stores
12904 in addition to INDIRECT_REF. Also handle complex types.
12905 Do not poolify the inserted load.
12906 (realify_fake_stores): Do not rebuild the tree but only
12907 make it a SSA_NAME copy.
12908 (init_pre): Remove initialzation of modify_expr_template.
12909 Do not allocate modify_expr_node_pool.
12910 (fini_pre): Do not free modify_expr_node_pool.
12912 2008-03-10 Paul Brook <paul@codesourcery.com>
12914 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12915 to avoid conflicts.
12917 2008-03-10 Paul Brook <paul@codesourcery.com>
12918 Mark Shinwell <shinwell@codesourcery.com>
12920 * config/arm/cortex-r4.md: New.
12921 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12923 * config/arm/arm.md: Include cortex-r4.md.
12924 (insn): Add smmls, sdiv and udiv values.
12925 (generic_sched): Don't use generic scheduling for Cortex-R4.
12926 (arm_issue_rate): New function.
12927 (TARGET_SCHED_ISSUE_RATE): Define.
12929 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12931 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12933 2008-03-10 Richard Guenther <rguenther@suse.de>
12935 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12936 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12938 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12940 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12941 Set default to true.
12943 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12945 * c.opt (Wsynth): Deprecate.
12946 * doc/invoke.texi (Option Summary, Warning Options): Document
12947 -Wno-format-contains-nul.
12949 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12952 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12953 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12955 2008-03-09 Ira Rosen <irar@il.ibm.com>
12957 * config/rs6000/rs6000.c (builtin_description): Rename vector
12958 left shift operations.
12959 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12960 (altivec_vsl<VI_char>): Rename to ...
12961 (ashl<mode>3): ... new name.
12962 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12964 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12966 2008-03-08 Richard Guenther <rguenther@suse.de>
12968 * coverage.h (tree_coverage_counter_addr): Declare.
12969 * coverage.c (tree_coverage_counter_addr): New function.
12970 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12971 before using again.
12972 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12973 (tree_gen_one_value_profiler): Likewise.
12974 (tree_gen_ic_profiler): Likewise.
12975 (tree_gen_average_profiler): Likewise.
12976 (tree_gen_ior_profiler): Likewise.
12978 2008-03-08 Richard Guenther <rguenther@suse.de>
12980 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12981 (vn_binary_op_insert): Likewise.
12982 (vn_unary_op_lookup): Likewise.
12983 (vn_unary_op_insert): Likewise.
12984 (vn_nary_op_lookup): Declare.
12985 (vn_nary_op_insert): Likewise.
12986 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12987 and binary hashes, use a single obstack for unary_op_pool
12988 and binary_op_pool.
12989 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12990 a single struct vn_nary_op_s. Store tree code length and
12991 a variable number of operands.
12992 (struct vn_reference_op_struct): Remove unused op2.
12993 (vn_reference_op_eq): Do not compare op2.
12994 (vn_reference_op_compute_hash): Do not compute hash of op2.
12995 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12996 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12997 with vn_nary_op_compute_hash.
12998 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12999 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13001 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13003 (visit_unary_op): Call nary functions.
13004 (visit_binary_op): Likewise.
13005 (process_scc): Adjust for struct vn_tables_s changes.
13006 (allocate_vn_table): Likewise.
13007 (free_vn_table): Likewise.
13008 * tree-vn.c (vn_add): Call nary functions.
13009 (vn_lookup): Likewise.
13011 2008-03-08 Jakub Jelinek <jakub@redhat.com>
13014 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13015 wdst back after sync_compare_and_swapqhi_internal.
13017 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
13020 * config/i386/i386-modes.def (V1DI): New vector mode.
13021 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13022 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13023 (MMXMODE248): Ditto.
13024 (MMXMODE): Add V1DI mode.
13025 (mmxvecsize): Change DI mode to V1DI mode.
13026 ("mov<mode>): Use MMXMODEI8 mode iterator.
13027 ("*mov<mode>_internal_rex64"): Ditto.
13028 ("*mov<mode>_internal"): Ditto.
13029 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13030 ("mmx_sub<mode>3"): Ditto.
13031 ("mmx_adddi3"): Remove insn pattern.
13032 ("mmx_subdi3"): Ditto.
13033 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13034 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13035 ("mmx_ashl<mode>3"): Ditto.
13036 ("mmx_lshrdi3"): Remove insn pattern.
13037 ("mmx_ashldi3"): Ditto.
13038 * config/i386/i386.c (classify_argument): Handle V1DImode.
13039 (function_arg_advance_32): Ditto.
13040 (function_arg_32): Ditto.
13041 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13042 mmx_addv1di3 insn pattern.
13043 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13044 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13045 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13046 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13047 Remove definitions of built-in functions.
13048 (V1DI_type_node): New node.
13049 (v1di_ftype_v1di_int): Ditto.
13050 (v1di_ftype_v1di_v1di): Ditto.
13051 (v2si_ftype_v2si_si): Ditto.
13052 (v4hi_ftype_v4hi_di): Remove node.
13053 (v2si_ftype_v2si_di): Ditto.
13054 (ix86_init_mmx_sse_builtins): Handle V1DImode.
13055 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13056 Redefine builtins using def_builtin_const with *_ftype_*_int node.
13057 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13058 Add new builtins using def_builtin_const.
13059 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13060 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13061 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13062 * config/i386/mmintrin.h (__v1di): New typedef.
13063 (_mm_add_si64): Cast arguments to __v1di type.
13064 (_mm_sub_si64): Ditto.
13065 (_mm_sll_pi16): Cast __count to __v4hi type.
13066 (_mm_sll_pi32): Cast __count to __v2si type.
13067 (_mm_sll_si64): Cast arguments to __v1di type.
13068 (_mm_srl_pi16): Cast __count to __v4hi type.
13069 (_mm_srl_pi32): Cast __count to __v2si type.
13070 (_mm_srl_si64): Cast arguments to __v1di type.
13071 (_mm_sra_pi16): Cast __count to __v4hi type.
13072 (_mm_sra_pi32): Cast __count to __v2si type.
13073 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13074 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13075 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13076 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13077 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13078 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13079 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13080 (_mm_srai_pi32): Use __builtin_ia32_psradi.
13081 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13082 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13083 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13084 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13086 2008-03-07 Joseph Myers <joseph@codesourcery.com>
13088 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13090 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
13093 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13094 reg+const addressing for Altivec modes. Don't generate reg+reg
13095 addressing for TFmode or TDmode quantities.
13097 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
13099 * c-common.c (vector_types_convertible_p): Call langhook
13100 instead of comptypes.
13102 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13105 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13106 integral and scalar float variables which have a
13109 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
13111 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13112 dwarf_register_span hook when emitting unwind information for
13113 register-to-memory saves.
13114 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13115 (rs6000_frame_related): Remove call to spe_synthesize_frame.
13117 2008-03-06 Jakub Jelinek <jakub@redhat.com>
13119 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13120 for the same VAR_DECL.
13122 2008-03-06 Tom Tromey <tromey@redhat.com>
13124 * treelang: Delete.
13125 * doc/standards.texi (Standards): Don't mention treelang.
13126 * doc/invoke.texi (Overall Options): Don't mention treelang.
13127 * doc/install.texi (Prerequisites): Don't mention bison or
13129 (Configuration): Don't mention treelang.
13130 (Building): Likewise.
13131 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13133 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
13135 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13136 word-extractions out of a multi-word object.
13138 2008-03-06 Richard Guenther <rguenther@suse.de>
13140 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13141 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13142 result type and precision.
13143 * expr.c (get_inner_reference): Set unsignedp based on the result
13144 type of BIT_FIELD_REF.
13145 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13146 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13147 (try_instantiate_multiple_fields): Likewise. Use the correct type
13149 (sra_build_assignment): Likewise.
13150 (sra_build_elt_assignment): Likewise.
13151 (sra_explode_bitfield_assignment): Likewise.
13152 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13153 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13154 set BIT_FIELD_REF_UNSIGNED.
13155 (vectorizable_load): Likewise.
13157 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
13159 * cse.c (cse_extended_basic_block): Invalidate artificial defs
13162 2008-03-06 Richard Guenther <rguenther@suse.de>
13164 * alias.c (struct alias_set_entry): Move has_zero_child field
13165 to pack with alias_set.
13167 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13169 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13172 2008-03-05 Ian Lance Taylor <iant@google.com>
13174 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13176 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
13178 * fwprop.c (update_df): Support width and offset parameters of
13180 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13181 global_conflicts): Change DF_REF_EXTRACT to either
13182 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13183 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13184 * df-scan.c (df_ref_record, df_defs_record,
13185 df_ref_create_structure, df_def_record_1, df_uses_record,
13186 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13187 df_bb_refs_collect, df_entry_block_defs_collect,
13188 df_exit_block_uses_collect): Support new width and offset fields.
13189 (ref_extract_pool): New storage pool.
13190 (df_free_ref): New function.
13191 (df_reg_chain_unlink, df_free_collection_rec,
13192 df_sort_and_compress_refs): Call df_free_ref.
13193 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13195 (df_ref_create_structure): Allocate df_ref_extract if offset and
13196 width fields are used.
13197 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13198 (df_uses_record): Get offset and width from ZERO_EXTRACT
13200 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13201 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13202 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13203 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13204 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13205 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13206 (df_ref_extract): New structure.
13207 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13208 (df_ref_create): Add width and offset parameters.
13210 2008-03-05 Richard Guenther <rguenther@suse.de>
13212 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13213 Use ranges_overlap_p.
13214 (offset_overlaps_with_access): Rename
13215 to ranges_overlap_p and move ...
13216 * tree-flow-inline.h (ranges_overlap_p): ... here.
13218 * tree.h (get_inner_reference, handled_component_p): Update
13221 * tree.h (record_component_aliases, get_alias_set,
13222 alias_sets_conflict_p, alias_sets_must_conflict_p,
13223 objects_must_conflict_p): Move declarations ...
13224 * alias.h (record_component_aliases, get_alias_set,
13225 alias_sets_conflict_p, alias_sets_must_conflict_p,
13226 objects_must_conflict_p): ... here.
13227 Include coretypes.h.
13228 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13230 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
13232 * cfg.c: Include tree-flow.h.
13233 (remove_edge_raw): Call redirect_edge_var_map_clear.
13234 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13235 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13236 (redirect_edge_var_map_result): New.
13237 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13238 PENDING_STMT use with redirect_edge_var_map_*.
13239 * tree-ssa.c (edge_var_maps): New definition.
13240 (redirect_edge_var_map_add): New.
13241 (redirect_edge_var_map_clear): New.
13242 (redirect_edge_var_map_dup): New.
13243 (redirect_edge_var_map_vector): New.
13244 (redirect_edge_var_map_destroy): New.
13245 (ssa_redirect_edge): Replace PENDING_STMT use with
13246 redirect_edge_var_map_*.
13247 (flush_pending_stmts): Same.
13248 (delete_tree_ssa): Destroy edge var map.
13249 * tree-flow.h (struct _edge_var_map): New.
13250 Define edge_var_map vector type.
13251 Declare redirect_edge_var_map_* prototypes.
13252 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13253 * tree-cfg.c (reinstall_phi_args): Replace
13254 PENDING_STMT use with redirect_edge_var_map_*.
13256 2008-03-05 Richard Guenther <rguenther@suse.de>
13258 PR tree-optimization/35472
13259 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13260 whose single use_stmt has a overlapping set of loaded and
13261 stored symbols as that use_stmt might be a noop assignment then.
13263 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13265 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13267 2008-03-05 Richard Guenther <rguenther@suse.de>
13270 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13271 should be constants.
13272 * tree-cfg.c (verify_expr): Verify it.
13273 * fold-const.c (fold_truthop): Remove code generating
13274 BIT_FIELD_REFs of structure bases.
13275 (fold_binary): Likewise.
13276 (fold_ternary): Position and size of BIT_FIELD_REFs are
13277 always host integers.
13278 (make_bit_field_ref): Remove.
13279 (optimize_bit_field_compare): Remove.
13280 (all_ones_mask_p): Remove.
13282 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
13285 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13286 (split_block_and_df_analyze): New. Split basic block and rebuild
13288 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13290 (split_pattern_seq): Likewise.
13291 (erase_matching_seqs): Likewise.
13292 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13294 2008-03-04 Geoff Keating <geoffk@apple.com>
13296 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13297 declaration and code.
13298 (tree_invalid_nonnegative_warnv_p): Likewise.
13300 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
13302 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13303 examples. Truncate option-names then causing overfull hbox.
13305 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13308 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13310 * configure: Rebuilt.
13312 2008-03-04 Rafael Espindola <espindola@google.com>
13314 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13315 (tree_unary_nonnegative_warnv_p): New.
13316 (tree_binary_nonnegative_warnv_p): New.
13317 (tree_single_nonnegative_warnv_p): New.
13318 (tree_invalid_nonnegative_warnv_p): New.
13319 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13321 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13324 * opts.c (handle_option): Postpone 'unknown option' errors only for
13327 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
13330 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13333 2008-03-04 Rafael Espindola <espindola@google.com>
13335 * fold-const.c (tree_unary_nonzero_warnv_p): New.
13336 (tree_binary_nonzero_warnv_p): New.
13337 (tree_single_nonzero_warnv_p): New.
13338 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13340 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
13342 PR middle-end/35456
13343 * fold-const.c (fold_cond_expr_with_comparison): Prevent
13344 transformations for modes that have signed zeros.
13345 * ifcvt.c (noce_try_abs): Ditto.
13347 2008-03-04 Joseph Myers <joseph@codesourcery.com>
13349 * config/i386/i386.c (override_options): Force
13350 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13352 2008-03-04 Jan Hubicka <jh@suse.cz>
13355 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13358 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13360 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
13361 label to probe the stack.
13363 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13365 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13366 (__gthr_win32_mutex_destroy): Declare.
13367 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13368 __gthr_win32_mutex_destroy.
13369 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
13371 2008-03-03 Jan Hubicka <jh@suse.cz>
13374 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13375 aggressive on inlining cold calls.
13377 2008-03-03 Richard Guenther <rguenther@suse.de>
13379 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13380 struct copies into the expression table.
13381 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13382 (try_to_simplify): Likewise.
13383 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13384 integral and pointer arguments which do not change the
13385 precision to NOP_EXPRs.
13386 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13387 VIEW_CONVERT_EXPR case.
13389 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13391 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13392 defined in a loop at depth 0 is invariant.
13393 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13394 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13395 be called at loop depth 0.
13397 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13400 * gcc.c (process_command): Update copyright notice dates.
13401 * gcov.c (print_version): Likewise.
13402 * gcov-dump.c (print_version): Likewise.
13403 * mips-tfile.c (main): Likewise.
13404 * mips-tdump.c (main): Likewise.
13406 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13409 * c-common.c (flag_permissive): Delete.
13410 (constant_expression_warnings): Check flags first.
13411 (constant_expression_error): New.
13412 * c-common.h (flag_permissive): Delete.
13413 (constant_expression_error): Declare.
13414 * flags.h (flag_permissive): Declare. Update description.
13415 * diagnostic.c (pedwarn): Update.
13417 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13418 (permissive_error_kind): New.
13419 * toplev.c (flag_permissive): Define. Update description.
13420 * toplev.h (permissive_error_kind): Declare.
13421 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13422 (pedwarn_c90): Use pedantic_warning_kind.
13423 * c-opts.c (c_common_post_options): flag_permissive does not affect
13424 flag_pedantic_errors.
13426 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13428 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13429 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13430 __absvsi2, __absvDI2): Use unsigned arithmetic.
13432 2008-03-02 Andi Kleen <ak@suse.de>
13433 Richard Guenther <rguenther@suse.de>
13435 * struct-equiv.c: Remove file.
13436 * cfg_cleanup.c (condjump_equiv_p): Remove.
13437 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13438 (struct-equiv.o): Remove rule.
13439 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13440 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13441 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13443 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13445 * ifcvt.c (noce_process_if_block): Try to handle only the then
13446 block if the else block exists but isn't suitable.
13448 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13451 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13452 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13453 regression from previous patch.
13455 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13458 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13460 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13461 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13462 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13463 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13464 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13465 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13466 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13467 (__gthread_mutex_destroy_function): Rename to
13468 __gthread_mutex_destroy.
13469 * gthr-dce.h (__gthread_mutex_destroy): Call
13470 pthread_mutex_destroy.
13471 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13472 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13473 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13475 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13477 * df-scan.c (df_ref_chain_change_bb): Simplify.
13478 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13479 set_block_for_insn if there's any change.
13480 * df.h ((df_insn_change_bb): Fix prototype.
13481 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13482 df_insn_change_bb, don't call set_block_for_insn.
13483 * emit-rtl.c (reorder_insns): Likewise.
13484 * haifa-sched.c (move_insn): Likewise.
13486 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13488 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13490 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13492 * tree-flow-inline.h (next_readonly_imm_use): Return
13493 NULL_USE_OPERAND_P after the end.
13495 2008-03-01 Richard Guenther <rguenther@suse.de>
13497 PR tree-optimization/35411
13498 * tree-sra.c (sra_build_assignment): Split conversion to
13499 final type to a separate statement if we are not assigning
13502 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13504 * fold-const.c (fold_convertible_p): Correct the logic to follow
13505 that in fold_convert().
13507 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13510 * tree-inline.c (build_duplicate_type): When we make a
13511 duplicate type, make it unique in the canonical types system.
13513 2008-02-29 Tom Tromey <tromey@redhat.com>
13515 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13516 input_file_stack_history, input_file_stack_restored): Remove.
13517 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13518 * input.h (struct file_stack): Remove.
13519 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13520 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13522 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13524 (diagnostic_last_module_changed): Add 'map' argument.
13525 (diagnostic_set_last_function): Likewise.
13526 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13527 line map, not input_file_stack.
13528 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13530 2008-02-29 Paul Brook <paul@codesourcery.com>
13532 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13534 2008-02-29 Paul Brook <paul@codesourcery.com>
13536 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13538 2008-02-29 Richard Guenther <rguenther@suse.de>
13540 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13542 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13543 value for comparing for a store match.
13544 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13545 (try_to_simplify): Do not do a full-blown reference lookup.
13547 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13549 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13550 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13552 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13554 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13556 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13557 strides against cache sizes.
13559 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13561 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13564 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13566 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13567 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13568 is smaller than the original promoted value.
13569 (simplify_subreg): If OP is a SUBREG, try to preserve its
13570 SUBREG_PROMOTED_VAR_P information.
13572 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13574 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13575 (VN_INFO_GET): Allocate new objects on the obstack.
13576 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13577 for rpo_numbers_temp, for consistency.
13578 (free_scc_vn): Free the obstack.
13580 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13582 * doc/invoke.texi: Document -ftree-loop-distribution.
13583 * tree-loop-distribution.c: New.
13584 * tree-pass.h (pass_loop_distribution): New.
13585 * graphds.h (struct graph): Add htab_t indices.
13586 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13587 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13588 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13589 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13590 * tree-data-ref.c (debug_data_dependence_relations): New.
13591 (dump_data_dependence_relation): Also print data references.
13592 (free_data_ref): Extern.
13593 (same_access_functions): Moved...
13594 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13595 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13596 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13597 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13598 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13599 (stmts_from_loop): Skip LABEL_EXPR.
13600 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13602 (build_rdg): Initialize rdg->indices htab.
13603 (free_rdg, stores_from_loop, ref_base_address,
13604 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13605 have_similar_memory_accesses_1, ref_base_address_1,
13606 remove_similar_memory_refs): New.
13607 * tree-data-ref.h: Depend on tree-chrec.h.
13608 (debug_data_dependence_relations, free_data_ref): Declared.
13609 (same_access_functions): ... here.
13610 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13612 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13613 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13614 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13615 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13616 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13617 rdg_vertex_for_stmt): Declared.
13618 (struct rdg_edge): Add level.
13620 (free_rdg, stores_from_loop, remove_similar_memory_refs,
13621 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13623 (rdg_has_similar_memory_accesses): New.
13624 * tree-vect-analyze.c: Remove unused static decls.
13625 * lambda.h (dependence_level): New.
13626 * common.opt (ftree-loop-distribution): New.
13627 * tree-flow.h (mark_virtual_ops_in_bb,
13628 slpeel_tree_duplicate_loop_to_edge_cfg,
13629 rename_variables_in_loop): Declared.
13630 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13631 (OBJS-common): Add tree-loop-distribution.o.
13632 (tree-loop-distribution.o): New rule.
13633 * tree-cfg.c (mark_virtual_ops_in_bb): New.
13634 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13635 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13637 2008-02-28 Joseph Myers <joseph@codesourcery.com>
13640 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13641 other than structures and unions.
13643 2008-02-28 Richard Guenther <rguenther@suse.de>
13646 2008-02-26 Richard Guenther <rguenther@suse.de>
13648 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13649 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13650 (lookup_decl_from_uid): Declare.
13651 (remove_decl_from_map): Likewise.
13652 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13653 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13654 (decl_for_uid_map): New global hashtable mapping DECL_UID
13656 (init_ttree): Allocate it.
13657 (insert_decl_to_uid_decl_map): New helper function.
13658 (make_node_stat): Insert new decls into the map.
13659 (copy_node_stat): Likewise.
13660 (lookup_decl_from_uid): New function.
13661 (remove_decl_from_map): Likewise.
13662 (print_decl_for_uid_map_statistics): New helper.
13663 (dump_tree_statistics): Call it.
13665 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13666 (referenced_var_iterator): Adjust.
13667 (FOR_EACH_REFERENCED_VAR): Adjust.
13668 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13669 (num_referenced_vars): Adjust.
13670 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13671 (first_referenced_var): Remove.
13672 (end_referenced_vars_p): Likewise.
13673 (next_referenced_var): Likewise.
13674 (referenced_var_iterator_set): New helper function.
13675 * tree-dfa.c (referenced_var_lookup): Adjust.
13676 (referenced_var_check_and_insert): Likewise.
13677 (remove_referenced_var): Likewise.
13678 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13679 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13680 (verify_call_clobbering): Likewise.
13681 (verify_memory_partitions): Likewise.
13682 (init_tree_ssa): Allocate bitmap instead of hashtable for
13684 (delete_tree_ssa): Adjust.
13685 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13686 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13687 (compute_tag_properties): Likewise.
13688 (set_initial_properties): Likewise.
13689 (find_partition_for): Likewise.
13690 (update_reference_counts): Likewise.
13691 (dump_may_aliases_for): Likewise.
13692 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13693 (add_call_clobber_ops): Likewise.
13694 (add_call_read_ops): Likewise.
13695 (get_asm_expr_operands): Likewise.
13696 * tree-into-ssa.c (dump_decl_set): Likewise.
13697 (update_ssa): Likewise.
13698 * tree-sra.c (scan_function): Likewise.
13699 (decide_instantiations): Likewise.
13700 (scalarize_parms): Likewise.
13701 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13702 (dsa_named_for): Likewise.
13703 * tree-ssa-structalias.c (update_alias_info): Likewise.
13704 (merge_smts_into): Likewise.
13706 2008-02-27 David Daney <ddaney@avtrex.com>
13709 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13710 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13711 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13712 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13713 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13715 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
13718 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13719 (BUILT_IN_NEXTTOWARD): Remove.
13720 (BUILT_IN_NEXTTOWARDF): Ditto.
13721 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13722 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
13724 2008-02-27 Tom Tromey <tromey@redhat.com>
13726 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13727 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13729 2008-02-27 Jan Beulich <jbeulich@novell.com>
13731 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13732 update the respective field on newdecl.
13734 2008-02-27 Revital Eres <eres@il.ibm.com>
13736 PR rtl-optimization/34999
13737 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13738 crossing edges that ends with a call insn.
13739 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13740 call insn and clear the EDGE_CROSSING flag of the crossing edge
13741 when fixing fallthru edges.
13743 2008-02-27 Richard Guenther <rguenther@suse.de>
13745 PR middle-end/35390
13746 * fold-const.c (fold_unary): Return the correct argument,
13747 converted to the result type.
13749 2008-02-27 Richard Guenther <rguenther@suse.de>
13751 PR middle-end/34971
13752 * expr.c (expand_expr_real_1): Assert on rotates that operate
13754 * fold-const.c (fold_binary): Use the types precision, not the
13755 bitsize of the mode if folding rotate expressions. Build rotates
13756 only for full modes.
13758 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13760 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13761 and CPP_PRAGMA_EOL.
13762 * c-pragma.c (pragma_ns_name): New typedef.
13763 (registered_pp_pragmas): New variable.
13764 (c_pp_lookup_pragma): New function.
13765 (c_register_pragma_1): If flag_preprocess_only, do nothing
13766 for non-expanded pragmas, for expanded ones push pragma's
13767 namespace and name into registered_pp_pragmas vector.
13768 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13769 flag_preprocess_only, don't register GCC pch_preprocess
13770 pragma if flag_preprocess_only.
13771 * c-opts.c (c_common_init): Call init_pragma even if
13772 flag_preprocess_only.
13773 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13774 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13775 cpp_register_pragma if flag_preprocess_only.
13777 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13780 * c-parser.c (c_parser_translation_unit): Warn for empty
13781 translation unit, not empty source file.
13783 2008-02-26 Paul Brook <paul@codesourcery.com>
13785 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13786 operand for Thumb-2.
13787 * config/arm/arm.h (reg_class): Add CORE_REGS.
13788 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13789 (BASE_REG_CLASS): Use CORE_REGS.
13790 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13791 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13792 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13793 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13794 ARM_REGNO_OK_FOR_INDEX_P.
13795 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13796 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13797 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13798 (ldm/stm peepholes): Ditto.
13799 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13800 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13801 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13802 * config/arm/constraints.md: Enable "k" constraint on ARM.
13804 2008-02-27 Ben Elliston <bje@au.ibm.com>
13806 * config/rs6000/rs6000.c: Annotate cache line size field in all
13807 instances of struct processor_costs.
13809 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13811 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13812 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13813 jump_bypass): New counters.
13814 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13815 * dce.c (gate_ud_dce): Same.
13816 (gate_fast_dce): Same.
13817 * dse.c (gate_dse1): New function.
13818 (gate_dse2): New function.
13819 (gate_dse): Merge results of new gate functions.
13820 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13821 (gate_handle_jump_bypass): Add dbg_cnt.
13822 (gate_handle_gcse): Add dbg_cnt.
13823 * ifcvt.c (gate_handle_if_conversion): Same.
13824 (gate_handle_if_after_combine): Same.
13825 (gate_handle_if_after_reload): Same.
13826 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13828 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13830 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13832 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13834 2008-02-26 Jason Merrill <jason@redhat.com>
13837 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13838 alone if it's the naming decl for the type's main variant.
13840 2008-02-26 Tom Tromey <tromey@redhat.com>
13842 * system.h (USE_MAPPED_LOCATION): Poison.
13843 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13844 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13845 (make_goto_expr_edges): Likewise.
13846 (remove_bb): Likewise.
13847 (execute_warn_function_return): Likewise.
13848 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13850 * c-common.c (fname_decl): Remove old location code.
13851 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13853 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13855 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13856 (gen_rtx_ASM_INPUT): Likewise.
13857 (gen_rtx_ASM_INPUT_loc): Likewise.
13858 (get_rtx_asm_OPERANDS): Remove.
13859 * cfglayout.c (insn_locators_alloc): Remove old location code.
13860 (set_curr_insn_source_location): Likewise.
13861 (curr_insn_locator): Likewise.
13862 * print-tree.c (print_node): Remove old location code.
13863 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13864 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13865 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13866 location_from_locus.
13867 (construct_exit_block): Remove old location code.
13868 * emit-rtl.c (force_next_line_note): Remove old location code.
13869 * profile.c (branch_prob): Remove old location code.
13870 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13871 LOC_LINE): Remove old-location variants.
13872 * langhooks.c (lhd_print_error_function): Remove old location
13874 * configure, config.in: Rebuilt.
13875 * configure.ac (--enable-mapped-location): Remove.
13876 * c-decl.c (c_init_decl_processing): Remove old location code.
13877 (finish_function): Likewise.
13878 * recog.c (decode_asm_operands): Remove old location code.
13879 * c-pch.c (c_common_read_pch): Remove old location code.
13880 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13882 * gimple-low.c (lower_function_body): Remove old location code.
13883 * toplev.c (unknown_location): Remove.
13884 (push_srcloc): Remove old-location variant.
13885 (process_options): Remove old location code.
13886 (lang_dependent_init): Likewise.
13887 * input.h (UNKNOWN_LOCATION): Move definition.
13888 (location_t): Undeprecate.
13889 (source_locus): Remove.
13890 (location_from_locus): Remove.
13891 (struct location_s): Remove.
13892 Remove all old-location code.
13893 (input_line, input_filename): Remove.
13894 * final.c (final_scan_insn): Remove old location code.
13895 * diagnostic.c (diagnostic_build_prefix): Remove
13896 USE_MAPPED_LOCATION test.
13897 * tree.h (gimple_stmt) <locus>: Now a location_t.
13898 (tree_exp) <locus>: Likewise.
13899 (DECL_IS_BUILTIN): Remove old-location variant.
13900 (annotate_with_file_line, annotate_with_locus): Likewise.
13901 (expr_locus, set_expr_locus): Update.
13902 * tree.c (build1_stat): Remove old location code.
13903 (last_annotated_node): Remove.
13904 (annotate_with_file_line): Remove old-location variant.
13905 (annotate_with_locus): Likewise.
13906 (expr_location): Remove old location code.
13907 (set_expr_location): Likewise.
13908 (expr_has_location): Likewise.
13909 (expr_locus): Likewise.
13910 (set_expr_locus): Likewise.
13911 (expr_filename): Don't use location_from_locus.
13912 (expr_lineno): Likewise.
13913 * rtl-error.c (location_for_asm): Remove old location code.
13914 * c-lex.c (cb_line_change): Remove old location code.
13915 (fe_file_change): Likewise.
13916 (cb_def_pragma): Likewise.
13917 (c_lex_with_flags): Likewise.
13918 * gengtype.c (do_typedef): Don't special-case location types.
13919 (define_location_structures): Remove.
13920 (main): Don't call define_location_structures.
13921 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13924 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13927 * builtins.def (BUILT_IN_STDARG_START): Remove.
13928 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13929 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13930 * tree-inline.c (inline_forbidden_p_1): Likewise.
13932 2008-02-26 Richard Guenther <rguenther@suse.de>
13934 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13935 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13936 (lookup_decl_from_uid): Declare.
13937 (remove_decl_from_map): Likewise.
13938 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13939 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13940 (decl_for_uid_map): New global hashtable mapping DECL_UID
13942 (init_ttree): Allocate it.
13943 (insert_decl_to_uid_decl_map): New helper function.
13944 (make_node_stat): Insert new decls into the map.
13945 (copy_node_stat): Likewise.
13946 (lookup_decl_from_uid): New function.
13947 (remove_decl_from_map): Likewise.
13948 (print_decl_for_uid_map_statistics): New helper.
13949 (dump_tree_statistics): Call it.
13951 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13952 (referenced_var_iterator): Adjust.
13953 (FOR_EACH_REFERENCED_VAR): Adjust.
13954 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13955 (num_referenced_vars): Adjust.
13956 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13957 (first_referenced_var): Remove.
13958 (end_referenced_vars_p): Likewise.
13959 (next_referenced_var): Likewise.
13960 (referenced_var_iterator_set): New helper function.
13961 * tree-dfa.c (referenced_var_lookup): Adjust.
13962 (referenced_var_check_and_insert): Likewise.
13963 (remove_referenced_var): Likewise.
13964 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13965 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13966 (verify_call_clobbering): Likewise.
13967 (verify_memory_partitions): Likewise.
13968 (init_tree_ssa): Allocate bitmap instead of hashtable for
13970 (delete_tree_ssa): Adjust.
13971 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13972 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13973 (compute_tag_properties): Likewise.
13974 (set_initial_properties): Likewise.
13975 (find_partition_for): Likewise.
13976 (update_reference_counts): Likewise.
13977 (dump_may_aliases_for): Likewise.
13978 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13979 (add_call_clobber_ops): Likewise.
13980 (add_call_read_ops): Likewise.
13981 (get_asm_expr_operands): Likewise.
13982 * tree-into-ssa.c (dump_decl_set): Likewise.
13983 (update_ssa): Likewise.
13984 * tree-sra.c (scan_function): Likewise.
13985 (decide_instantiations): Likewise.
13986 (scalarize_parms): Likewise.
13987 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13988 (dsa_named_for): Likewise.
13989 * tree-ssa-structalias.c (update_alias_info): Likewise.
13990 (merge_smts_into): Likewise.
13992 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13995 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13996 * c-opts.c (c_common_handle_option): Wall enables
13997 Wvolatile-register-var.
13998 * common.opt: Move Wvolatile-register-var to...
14001 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14003 * common.opt (Wlarger-than=): New.
14004 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14006 * opts.c (common_handle_option): Handle -Wlarger-than=.
14007 * optc-gen.awk: Likewise.
14008 * opth-gen.awk: Likewise.
14009 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14010 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14012 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14014 * c-common.c (match_case_to_enum_1): Add appropriate
14015 OPT_W* parameter to warning.
14016 (c_do_switch_warnings): Likewise.
14017 * c-typeck.c (warning_init): Add one more parameter following
14018 'warning' function.
14019 (push_init_level): Update call to warning_init.
14020 (pop_init_level): Likewise.
14021 (add_pending_init): Likewise.
14022 (output_init_element: Likewise.
14024 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14027 * toplev.c (toplev_main): If there are warnings or error, print
14028 errors for ignored options.
14029 * opts.c (ignored_options): New static variable.
14030 (postpone_unknown_option_error): New.
14031 (print_ignored_options): New.
14032 (handle_option): Postpone errors for unknown -Wno-* options.
14033 * opts.h (print_ignored_options): Declare.
14035 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14037 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14040 2008-02-25 Richard Guenther <rguenther@suse.de>
14043 2008-02-25 Richard Guenther <rguenther@suse.de>
14045 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14046 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14047 (lookup_decl_from_uid): Declare.
14048 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14049 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14050 (decl_for_uid_map): New global hashtable mapping DECL_UID
14052 (init_ttree): Allocate it.
14053 (insert_decl_to_uid_decl_map): New helper function.
14054 (make_node_stat): Insert new decls into the map.
14055 (copy_node_stat): Likewise.
14056 (lookup_decl_from_uid): New function.
14057 (print_decl_for_uid_map_statistics): New helper.
14058 (dump_tree_statistics): Call it.
14060 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14061 (referenced_var_iterator): Adjust.
14062 (FOR_EACH_REFERENCED_VAR): Adjust.
14063 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14064 (num_referenced_vars): Adjust.
14065 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14066 (first_referenced_var): Remove.
14067 (end_referenced_vars_p): Likewise.
14068 (next_referenced_var): Likewise.
14069 (referenced_var_iterator_set): New helper function.
14070 * tree-dfa.c (referenced_var_lookup): Adjust.
14071 (referenced_var_check_and_insert): Likewise.
14072 (remove_referenced_var): Likewise.
14073 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14074 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14075 (verify_call_clobbering): Likewise.
14076 (verify_memory_partitions): Likewise.
14077 (init_tree_ssa): Allocate bitmap instead of hashtable for
14079 (delete_tree_ssa): Adjust.
14080 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14081 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14082 (compute_tag_properties): Likewise.
14083 (set_initial_properties): Likewise.
14084 (find_partition_for): Likewise.
14085 (update_reference_counts): Likewise.
14086 (dump_may_aliases_for): Likewise.
14087 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14088 (add_call_clobber_ops): Likewise.
14089 (add_call_read_ops): Likewise.
14090 (get_asm_expr_operands): Likewise.
14091 * tree-into-ssa.c (dump_decl_set): Likewise.
14092 (update_ssa): Likewise.
14093 * tree-sra.c (scan_function): Likewise.
14094 (decide_instantiations): Likewise.
14095 (scalarize_parms): Likewise.
14096 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14097 (dsa_named_for): Likewise.
14098 * tree-ssa-structalias.c (update_alias_info): Likewise.
14099 (merge_smts_into): Likewise.
14101 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14104 * doc/invoke.texi (-fcx-limited-range): Document new option.
14105 * toplev.c (process_options): Handle -fcx-fortran-rules.
14106 * common.opt: Add documentation for -fcx-fortran-rules.
14108 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14111 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14112 actual behaviour and C99.
14114 2008-02-26 Ben Elliston <bje@au.ibm.com>
14116 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14117 (ASM_CPU_POWER6_SPEC): Likewise.
14118 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14119 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14120 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14122 2008-02-25 Richard Guenther <rguenther@suse.de>
14124 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14125 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14126 (lookup_decl_from_uid): Declare.
14127 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14128 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14129 (decl_for_uid_map): New global hashtable mapping DECL_UID
14131 (init_ttree): Allocate it.
14132 (insert_decl_to_uid_decl_map): New helper function.
14133 (make_node_stat): Insert new decls into the map.
14134 (copy_node_stat): Likewise.
14135 (lookup_decl_from_uid): New function.
14136 (print_decl_for_uid_map_statistics): New helper.
14137 (dump_tree_statistics): Call it.
14139 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14140 (referenced_var_iterator): Adjust.
14141 (FOR_EACH_REFERENCED_VAR): Adjust.
14142 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14143 (num_referenced_vars): Adjust.
14144 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14145 (first_referenced_var): Remove.
14146 (end_referenced_vars_p): Likewise.
14147 (next_referenced_var): Likewise.
14148 (referenced_var_iterator_set): New helper function.
14149 * tree-dfa.c (referenced_var_lookup): Adjust.
14150 (referenced_var_check_and_insert): Likewise.
14151 (remove_referenced_var): Likewise.
14152 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14153 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14154 (verify_call_clobbering): Likewise.
14155 (verify_memory_partitions): Likewise.
14156 (init_tree_ssa): Allocate bitmap instead of hashtable for
14158 (delete_tree_ssa): Adjust.
14159 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14160 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14161 (compute_tag_properties): Likewise.
14162 (set_initial_properties): Likewise.
14163 (find_partition_for): Likewise.
14164 (update_reference_counts): Likewise.
14165 (dump_may_aliases_for): Likewise.
14166 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14167 (add_call_clobber_ops): Likewise.
14168 (add_call_read_ops): Likewise.
14169 (get_asm_expr_operands): Likewise.
14170 * tree-into-ssa.c (dump_decl_set): Likewise.
14171 (update_ssa): Likewise.
14172 * tree-sra.c (scan_function): Likewise.
14173 (decide_instantiations): Likewise.
14174 (scalarize_parms): Likewise.
14175 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14176 (dsa_named_for): Likewise.
14177 * tree-ssa-structalias.c (update_alias_info): Likewise.
14178 (merge_smts_into): Likewise.
14180 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
14183 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14184 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14185 * alias.h (nonoverlapping_memrefs_p): Likewise.
14187 2008-02-25 Jan Beulich <jbeulich@novell.com>
14189 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14190 * config/i386/netware-libgcc.exp: Add __bswap?i2,
14191 __emultls_get_address, __emultls_register_common,
14192 __floatundi?f, and _Unwind_GetIPInfo.
14193 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14194 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14195 (gen_regparm_prefix): Likewise.
14196 (i386_nlm_encode_section_info): Sync with
14197 config/i386/winnt.c:i386_pe_encode_section_info().
14198 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14199 i386_nlm_mangle_decl_assembler_name): New.
14200 (netware_override_options): New.
14201 * config/i386/netware.h (netware_override_options): Declare.
14202 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14203 (i386_nlm_mangle_decl_assembler_name): Declare.
14204 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14206 2008-02-25 Ben Elliston <bje@au.ibm.com>
14209 * c-decl.c (grokdeclarator): Remove unused local variables
14210 `typedef_type' and `type_as_written'.
14212 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14213 unused local variable `has_hot_blocks'.
14214 (fix_crossing_conditional_branches): Remove unused local variable
14217 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
14219 PR middle-end/19984
14220 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14221 using DEF_C99_BUILTIN.
14222 (BUILT_IN_NANF): Ditto.
14223 (BUILT_IN_NANL): Ditto.
14225 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
14226 Revital Eres <eres@il.ibm.com>
14228 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14229 regarding the order of two dependent insns in the same row.
14231 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14233 * stor-layout.c (layout_decl): Do not bump the alignment of a
14234 bit-field to more than byte alignment if it is packed.
14236 2008-02-24 David Edelsohn <edelsohn@gnu.org>
14238 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14241 2008-02-24 Diego Novillo <dnovillo@google.com>
14243 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14246 * tree-vrp.c (vrp_evaluate_conditional): With
14247 -Wtype-limits, emit a warning when comparing against a
14248 constant outside the natural range of OP0's type.
14249 * c.opt (Wtype-limits): Move ...
14250 * common.opt (Wtype-limits): ... here.
14252 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
14254 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14255 * config/rs6000/e300c2c3.md: New file.
14256 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14258 (rs6000_override_options): Add e300c2 and e300c3 cases to
14259 processor_target_table. Do not allow usage of Altivec or Spe
14260 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14261 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14262 * config/rs6000/rs6000.h (processor_type): Add
14263 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14264 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14265 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14266 and ppce300c3. Include e300c2c3.md.
14268 2008-02-23 David Edelsohn <edelsohn@gnu.org>
14270 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14271 instead of TARGET_STRICT_ALIGN.
14273 2008-02-23 Joseph Myers <joseph@codesourcery.com>
14275 * explow.c (memory_address): Assert that the generated address is
14278 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14281 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14282 * config/darwin-ppc-ldouble-patch.def: New file.
14283 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14284 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14285 SUBTARGET_INIT_BUILTINS if defined.
14286 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14289 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14292 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14293 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14295 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14298 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14299 file" warning condtional on -Winvalid-PCH.
14301 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
14303 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14305 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
14309 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14310 prevent reload from using MMX registers.
14311 (*mov<mode>_internal): Ditto.
14312 (*movv2sf_internal_rex64): Ditto.
14313 (*movv2sf_internal): Ditto.
14315 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14317 PR documentation/31569
14318 * doc/install.texi2html: Use makeinfo --no-number-sections.
14320 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14322 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14323 ensure that we can address an entire entity > 8 bytes. Don't
14324 generate reg+reg addressing for such data.
14326 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14328 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14329 strings when optimizing for size, unless the target cares about
14332 2008-02-22 Tom Tromey <tromey@redhat.com>
14334 * regclass.c (current_pass): Remove declaration.
14336 2008-02-22 Anatoly Sokolov <aesok@post.ru>
14338 * config/avr/libgcc.S (__RAMPZ__): Define.
14339 (__do_copy_data): Add for devices with 128KB code memory.
14341 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14343 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14345 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14347 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
14349 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14352 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14355 * c-typeck.c (build_binary_op): Warn about floating point
14356 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14358 2008-02-21 Janis Johnson <janis187@us.ibm.com>
14361 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14362 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14364 (rs6000_override_options): Set altivec_abi as default, not override,
14365 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14366 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14367 is used; use new member spe_abi.
14368 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14369 spe_abi and altivec_abi.
14371 2008-02-22 Tomas Bily <tbily@suse.cz>
14373 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14375 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14378 * config.build (build_file_translate): Set to `CMD //c' only if
14380 * Makefile.in (build_file_translate): Improve comment.
14382 2008-02-21 Jan Hubicka <jh@suse.cz>
14384 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14385 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14386 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14388 2008-02-21 Michael Matz <matz@suse.de>
14391 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14393 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14395 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14396 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14397 as insn constraint.
14398 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14399 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14400 SSE_VEC_FLOAT_MODE_P as insn constraint.
14401 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14402 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14403 sse4a_movntdf using MODEF mode iterator.
14404 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14405 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14406 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14407 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14408 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14409 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14410 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14412 2008-02-21 Richard Guenther <rguenther@suse.de>
14414 * tree.def (PAREN_EXPR): New tree code.
14415 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14417 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14418 * expr.c (expand_expr_real_1): Likewise.
14419 * tree-inline.c (estimate_num_insns_1): Likewise.
14420 * tree-complex.c (expand_complex_move): Likewise.
14421 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14424 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14427 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14429 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14432 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14434 * config/sh/sh.c (find_barrier): Don't go past
14435 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14437 2008-02-20 DJ Delorie <dj@redhat.com>
14439 * config/h8300/h8300.md (insv): Force source operand to be a register.
14441 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14442 as a jump, not as a plain insn.
14444 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14446 * doc/invoke.texi (Warning Options): Add new option
14447 -Wframe-larger-than=.
14448 (-Wframe-larger-than): Document.
14450 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14451 Add declarations for new option variables.
14453 * final.c (final_start_function): Check the frame size
14454 before emission and issue a Wframe-larger-than warning.
14456 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14457 Add definitions for new option variables.
14458 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14460 * common.opt (Wframe-larger-than=): New option.
14462 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14464 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14465 (<sse>_div<mode>3): Ditto.
14466 (<sse>_vmdiv<mode>3): Ditto.
14467 (<sse>_vmsqrt<mode>2): Ditto.
14468 (*smax<mode>3): Ditto.
14469 (sse5_frcz<mode>2): Ditto.
14470 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14471 as insn constraint.
14473 2008-02-20 Richard Guenther <rguenther@suse.de>
14475 PR middle-end/35265
14476 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14477 be happy with INTEGRAL_TYPE_P.
14479 2008-02-20 Richard Guenther <rguenther@suse.de>
14481 * fold-const.c (split_tree): Associate floatig-point expressions
14482 if flag_associative_math is set.
14484 2008-02-20 Richard Guenther <rguenther@suse.de>
14486 * tree.h (fold_real_zero_addition_p): Declare.
14487 * fold-const.c (fold_real_zero_addition_p): Export.
14488 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14489 floating-point operations with zero and one.
14491 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14493 * doc/install.texi: Correct references to CFLAGS, replacing them
14494 with BOOT_CFLAGS. Document flags used during bootstrap for
14497 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14499 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14500 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14501 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14503 (smin<mode>3): Ditto from similar patterns.
14504 (smax<mode>3): Ditto.
14505 (*ieee_smin<mode>3): Ditto.
14506 (*ieee_smax<mode>3): Ditto.
14507 * config/i386/sse.md (sse): New mode attribute.
14508 (mov<mode>): Macroize expander from movv4sf and movv2df using
14509 SSEMODEF2P mode iterator.
14510 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14511 SSE_VEC_FLOAT_MODE_P as insn constraint.
14512 (storent<mode>): Ditto.
14513 (storent<mode>): Macroize expander from storentsf and storentdf using
14514 MODEF mode iterator.
14515 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14516 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14517 (abs<mode>2): Ditto from similar patterns.
14518 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14519 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14520 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14521 (<sse>_vmsqrt<mode>2): Ditto.
14522 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14523 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14524 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14525 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14526 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14527 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14528 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14530 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14531 iterator and SSE_FLOAT_MODE_P as insn constraint.
14532 (<sse>_ucomi): Ditto from similar patterns.
14533 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14534 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14535 SSE_VEC_FLOAT_MODE_P as insn constraint.
14536 (vcond<mode>): Ditto from similar patterns.
14537 (and<mode>3, *and<mode>3): Ditto.
14538 (<sse>_nand<mode>3): Ditto.
14539 (ior<mode>3, *ior<mode>3): Ditto.
14540 (xor<mode>3, *xor<mode>3): Ditto.
14541 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14542 iterator and SSE_FLOAT_MODE_P as insn constraint.
14543 (*nand<mode>3): Ditto from similar patterns.
14544 (*ior<mode>3): Ditto.
14545 (*xor<mode>3): Ditto.
14547 2008-02-20 Ira Rosen <irar@il.ibm.com>
14549 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14550 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14551 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14553 2008-02-19 Jan Hubicka <jh@suse.cz>
14555 * predict.c (tree_bb_level_predictions): Remove variable next
14556 mistakely introduced by previous commit.
14558 2008-02-19 Jan Hubicka <jh@suse.cz>
14560 * predict.c (predict_paths_leading_to): Rewrite.
14561 (predict_paths_for_bb): New.
14562 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14564 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14567 * Makefile.in (build_file_translate): New.
14568 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14569 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14570 * configure.ac (build_file_translate): Substitute it.
14571 * configure: Regenerate.
14573 2008-02-19 Jan Hubicka <jh@suse.cz>
14575 PR rtl-optimization/34408
14576 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14579 2008-02-19 Jan Hubicka <jh@suse.cz>
14581 PR middle-end/28779
14582 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14585 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14588 * config/i386/i386-modes.def: Revert the last DI alignment
14589 change until Ada people can look into it.
14591 2008-02-19 Nick Clifton <nickc@redhat.com>
14593 * opts.c (print_specific_help): Fix typo in --help text.
14595 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14598 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14599 32-bit inline asm without asm alternatives for host GCC < 3.0.
14601 2008-02-19 Richard Guenther <rguenther@suse.de>
14603 PR tree-optimization/34989
14604 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14605 Allow propagation to INDIRECT_REF if we can simplify only.
14607 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14609 * c-common.c (warn_for_collisions_1): Use appropriate option when
14612 2008-02-19 Nick Clifton <nickc@redhat.com>
14615 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14616 (handle_options): Fix indentation.
14617 (print_filtered_help): If no language-specific options were
14618 displayed tell the user how to list all the options supported by
14619 the language's front-end.
14620 (print_specific_help): Fix indentation and remove duplicate line.
14621 (common_handle_option): Handle the -v option.
14622 For --help enable the display of undocumented options if the -v
14623 switch has been included on the command line.
14624 For --help= check for overlaps in the arguments between the option
14625 classes and the language names and issue a warning when they
14626 cannot be disambiguated.
14627 * c.opt (v): Pass on to the common option handler.
14629 2008-02-19 Revital Eres <eres@il.ibm.com>
14631 * modulo-sched.c (sms_schedule): Change dump message when
14632 create_ddg function fails.
14633 (try_scheduling_node_in_cycle): Rename row to cycle.
14634 (print_partial_schedule): Rename CYCLE to ROW.
14636 2008-02-19 Christian Bruel <christian.bruel@st.com>
14637 Zdenek Dvorak <ook@ucw.cz>
14639 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14641 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14644 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14645 (*x86_movdicc_0_m1_se): Ditto.
14647 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14649 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14650 (CMPtype): Define as __gcc_CMPtype.
14651 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14652 (CMPtype): Define as __gcc_CMPtype.
14654 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
14656 Support valgrind 3.3 for --enable-checking=valgrind.
14657 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14659 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14660 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14661 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14662 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14663 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14664 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14665 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14667 * ggc-zone.c: Similar.
14668 * ggc-page.c: Similar.
14670 2008-02-19 Paul Brook <paul@codesourcery.com>
14673 * config/arm/ieee754-df.S: Fix do_it typo.
14674 * config/arm/ieee754-sf.S: Fix do_it typo.
14676 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14679 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14680 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14681 (OPTION_MASK_ISA_SSE_SET): Likewise.
14682 (OPTION_MASK_ISA_SSE2_SET): Likewise.
14683 (OPTION_MASK_ISA_SSE3_SET): Likewise.
14684 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14685 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14686 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14687 (OPTION_MASK_ISA_SSE4_SET): Likewise.
14688 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14689 (OPTION_MASK_ISA_SSE5_SET): Likewise.
14690 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14691 (OPTION_MASK_ISA_MMX_UNSET): Updated.
14692 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14693 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14694 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14695 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14696 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14697 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14698 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14699 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14700 (OPTION_MASK_ISA_SSE4): Removed.
14701 (ix86_handle_option): Turn on bits in ix86_isa_flags and
14702 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14703 (override_options): Don't turn on implied SSE/MMX bits in
14706 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14708 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14711 2008-02-18 Joey Ye <joey.ye@intel.com>
14713 PR middle-end/34921
14714 * tree-nested.c (insert_field_into_struct): Set type alignment
14715 to field alignment if the former is less than the latter.
14717 2008-02-18 Jakub Jelinek <jakub@redhat.com>
14719 * BASE-VER: Set to 4.4.0.
14721 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14723 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14724 * doc/cfg.texi: Likewise.
14725 * doc/extend.texi: Likewise.
14726 * doc/gty.texi: Likewise.
14727 * doc/invoke.texi: Likewise.
14728 * doc/loop.texi: Likewise.
14729 * doc/md.texi: Likewise.
14730 * doc/passes.texi: Likewise.
14731 * doc/rtl.texi: Likewise.
14732 * doc/sourcebuild.texi: Likewise.
14733 * doc/tm.texi: Likewise.
14734 * doc/tree-ssa.texi: Likewise.
14736 2008-02-17 Richard Guenther <rguenther@suse.de>
14738 PR middle-end/35227
14739 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14740 without default definition.
14742 2008-02-17 Richard Guenther <rguenther@suse.de>
14744 PR tree-optimization/35231
14745 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14748 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14751 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14752 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14753 libgcc_cmp_return mode.
14755 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14758 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14760 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14762 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14765 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14767 * doc/c-tree.texi: Use `@.' where appropriate.
14768 * doc/extend.texi: Likewise.
14769 * doc/install.texi: Likewise.
14770 * doc/invoke.texi: Likewise.
14771 * doc/loop.texi: Likewise.
14772 * doc/makefile.texi: Likewise.
14773 * doc/md.texi: Likewise.
14774 * doc/passes.texi: Likewise.
14775 * doc/standards.texi: Likewise.
14776 * doc/tm.texi: Likewise.
14778 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14780 PR middle-end/35196
14781 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14783 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14784 rather than in entry_bb.
14786 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14788 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14789 libgcc_cmp_return mode.
14791 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14793 PR middle-end/35130
14794 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14795 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14797 2008-02-15 Richard Guenther <rguenther@suse.de>
14798 Zdenek Dvorak <ook@ucw.cz>
14800 PR tree-optimization/35164
14801 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14802 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14803 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14804 Only propagate addresses which do not have abnormal SSA_NAMEs
14807 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14810 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14812 2008-02-15 Jan Hubicka <jh@suse.cz>
14814 PR middle-end/35149
14815 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14817 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14819 PR middle-end/34621
14820 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14821 when calculating alignment_pad.
14823 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14825 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14826 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14827 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14828 and STACK_BOUNDARY define.
14830 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14832 PR preprocessor/35061
14833 * c-pragma.c (handle_pragma_pop_macro): Check that
14834 pushed_macro_table has been allocated.
14836 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14838 PR middle-end/35136
14839 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14840 (force_gimple_operand): Likewise.
14841 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14842 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14843 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14844 (find_interesting_uses_address): Check addressability and alignment
14845 of the base expression only after substituting bases of IVs into it.
14847 2008-02-14 Michael Matz <matz@suse.de>
14850 * function.c (instantiate_virtual_regs_in_insn): Reload address
14851 before falling back to reloading the whole operand.
14853 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14855 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14856 before the first section switch note.
14858 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14860 * doc/bugreport.texi: Update copyright years.
14861 * doc/c-tree.texi: Likewise.
14862 * doc/cfg.texi: Likewise.
14863 * doc/cpp.texi: Likewise.
14864 * doc/cppinternals.texi: Likewise.
14865 * doc/fragments.texi: Likewise.
14866 * doc/frontends.texi: Likewise.
14867 * doc/gcc.texi: Likewise.
14868 * doc/gty.texi: Likewise.
14869 * doc/hostconfig.texi: Likewise.
14870 * doc/implement-c.texi: Likewise.
14871 * doc/libgcc.texi: Likewise.
14872 * doc/loop.texi: Likewise.
14873 * doc/makefile.texi: Likewise.
14874 * doc/options.texi: Likewise.
14875 * doc/passes.texi: Likewise.
14876 * doc/rtl.texi: Likewise.
14877 * doc/sourcebuild.texi: Likewise.
14878 * doc/standards.texi: Likewise.
14879 * doc/tree-ssa.texi: Likewise.
14880 * doc/trouble.texi: Likewise.
14882 * doc/extend.texi: Use @: or add comma where appropriate.
14883 * doc/invoke.texi: Likewise.
14884 * doc/tm.texi: Likewise.
14886 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14889 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14892 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14894 * doc/md.texi (clz, ctz): Add reference.
14895 * doc/rtl.texi (clz, ctz): Likewise.
14897 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14900 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14903 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14905 * config/s390/s390.c (struct constant_pool): New field
14906 emit_pool_after added.
14907 (s390_mainpool_start): Set the emit_pool_after flag according
14908 to the section switch notes.
14909 (s390_mainpool_finish): Consider emit_pool_after when emitting
14910 the literal pool at the end of the function.
14911 (s390_chunkify_start): Force literal pool splits at section
14914 2008-02-13 Michael Matz <matz@suse.de>
14917 * var-tracking.c (clobber_variable_part): Correctly traverse the
14920 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14923 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14924 Add -fdump-ipa-inline.
14925 * tree-dump.c (dump_files): Remove tree-inlined dump.
14926 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14928 2008-02-12 Richard Guenther <rguenther@suse.de>
14930 PR tree-optimization/35171
14931 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14934 2008-02-12 Richard Guenther <rguenther@suse.de>
14936 PR middle-end/35163
14937 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14938 value-preserving mode. Disallow final truncation.
14940 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14942 PR middle-end/35136
14943 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14944 code from here to...
14945 (force_gimple_operand): ...here.
14947 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14950 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14951 non-compatible pointers.
14952 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14953 different FIELD_DECLs, try harder by comparing field offsets, sizes
14956 PR inline-asm/35160
14957 * function.c (match_asm_constraints_1): Don't replace the same input
14960 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14962 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14963 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14964 (expand_epilogue): Restore RAMPZ register.
14965 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14967 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14969 * config/i386/cygwin.asm: (__alloca): Correct calling
14970 convention and alignment.
14971 (__chkstk): Force 8 byte stack alignment.
14973 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14974 Richard Guenther <rguenther@suse.de>
14976 PR tree-optimization/33992
14977 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14978 the zero we compare against.
14980 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14982 PR libfortran/35063
14983 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14984 to CloseHandle after unlocking to prevent accumulation of handle
14987 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14989 PR middle_end/34150
14990 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14991 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14992 and update LABEL_NUSES during and after reload.
14994 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14996 PR middle-end/34627
14997 * combine.c (simplify_if_then_else): Make sure the comparison is
14998 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15000 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15003 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15004 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15005 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15006 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15007 * tree.h (get_type_static_bounds): Likewise.
15009 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15011 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15012 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15013 Make -Wfoo language annotations match what the compiler outputs.
15015 2008-02-08 Sa Liu <saliu@de.ibm.com>
15017 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15018 intrinsics spu_convts, spu_convtu, spu_convtf.
15020 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
15022 * doc/extend.texi (Function Attributes) <noinline>: Mention
15023 asm ("") as method to keep calls.
15025 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15028 * doc/options.texi (Options): Replace references to opts.sh with
15030 * opts-common.c: Likewise.
15031 * optc-gen.awk: Likewise.
15033 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15035 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15037 2008-02-07 Richard Henderson <rth@redhat.com>
15040 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15041 EXPR_LIST for the REG_EQUAL instead of a comparison with a
15044 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
15046 PR tree-optimization/35085
15047 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15048 for operand entry oe2 in addition to operand entry oe3 in order to
15049 expose more opportunities for vectorizer sum reduction.
15051 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15054 * Makefile.in (LIBS): Remove $(GMPLIBS).
15055 (cc1-dummy, cc1): Add $(GMPLIBS).
15057 2008-02-06 Jan Hubicka <jh@suse.cz>
15060 * i386.md (moddf_integer): Do not produce partial memory stalls for
15061 targets where it hurts.
15063 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
15066 * optabs.c (expand_float): Do not check for decimal modes when
15067 expanding unsigned integer through signed conversion.
15069 2008-02-06 Nick Clifton <nickc@redhat.com>
15071 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15072 inside the clobber with a match_operand and duplicated operand
15073 number in the constraint.
15074 (ineqbranchsi): Delete redundant comment.
15076 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
15078 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15079 builtin_define ("__USE_INIT_FINI__").
15080 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15082 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15084 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15086 PR documentation/30330
15087 * doc/invoke.texi (C++ Dialect Options)
15088 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15089 For each warning option -Wfoo that allows -Wno-foo, ensure both
15090 -Wfoo and -Wno-foo are listed in the option index. Fix index
15091 entry of -Wswitch-default, index -Wnormalized= including the
15092 `=', and -Wlarger-than-@var{len} including @var{len}.
15094 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15096 * config/i386/i386.md (floatunssisf2): Use
15097 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15098 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15099 Macroize expander using MODEF mode iterator.
15101 2008-02-05 Diego Novillo <dnovillo@google.com>
15103 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15106 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15108 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15111 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15113 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
15116 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15117 to indicate if a message should be generated.
15118 (init_cumulative_args): Updated.
15119 (function_value_32): Likewise.
15121 2008-02-05 Joseph Myers <joseph@codesourcery.com>
15123 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15125 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15128 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15129 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15131 2008-02-04 Diego Novillo <dnovillo@google.com>
15133 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15136 * tree-vrp.c (vrp_evaluate_conditional): With
15137 -Wtype-limits, emit a warning when comparing against a
15138 constant outside the natural range of OP0's type.
15140 2008-02-04 Richard Guenther <rguenther@suse.de>
15142 PR middle-end/33631
15143 * expr.c (count_type_elements): Give for unions instead of
15146 2008-02-04 Richard Guenther <rguenther@suse.de>
15148 PR middle-end/35043
15149 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15150 to TYPE_DOMAINs base type instead of using bitsizetype here.
15152 2008-02-03 Jason Merrill <jason@redhat.com>
15154 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15156 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15159 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15160 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15161 (RS/6000 and PowerPC Options): Fix typos and markup.
15162 * doc/passes.texi (Tree-SSA passes): Likewise.
15164 2008-02-02 Michael Matz <matz@suse.de>
15167 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15168 from record_last_reg_set_info.
15169 (record_last_reg_set_info): Take an RTX argument, iterate over all
15170 constituent hardregs.
15171 (record_last_set_info, record_opr_changes): Change calls to
15172 new signature or to record_last_reg_set_info_regno.
15174 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15176 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15178 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
15180 PR rtl-optimization/34773
15181 * reg-notes.def (EQUAL): Mention significance of combination of
15182 REG_EQUAL and REG_RETVAL.
15183 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15184 insn that has a REG_RETVAL.
15186 2008-02-01 Roger Sayle <roger@eyesopen.com>
15189 * configure.ac (--enable-fixed-point): Disable unless explicitly
15191 * configure: Regenerate.
15193 2008-02-01 Richard Guenther <rguenther@suse.de>
15196 * invoke.texi (-finline-limit): Remove no longer true parts
15197 of the documentation. Note that there is no default value.
15199 2008-02-01 Andrew Pinski <pinskia@gmail.com>
15200 Mark Mitchell <mark@codesourcery.com>
15201 Ben Elliston <bje@au.ibm.com>
15204 * doc/extend.texi (Other Builtins): Document.
15206 2008-01-31 Tom Browder <tom.browder@gmail.com>
15208 * doc/c-tree.texi (Types): Fix grammar.
15209 (Expression trees): Ditto.
15210 * doc/passes.texi (Tree-SSA passes): Ditto.
15212 * doc/configterms.texi (Configure Terms): Fix typo.
15213 * doc/cpp.texi (Common Predefined Macros): Ditto.
15214 * doc/md.texi (Machine Constraints): Ditto.
15216 * doc/makefile.texi (Makefile): Add comma.
15218 2008-01-31 Tom Browder <tom.browder@gmail.com>
15219 Gerald Pfeifer <gerald@pfeifer.com>
15221 * doc/sourcebuild.texi (Front End): Remove references to CVS
15222 and CVSROOT/modules.
15223 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15224 (Back End): Remove reference to CVS.
15226 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15229 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15231 (mips16_gp_pseudo_reg): ...here.
15232 * config/mips/mips.md (load_const_gp): Replace with...
15233 (load_const_gp_<mode>): ...this :P-based insn.
15235 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15237 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15238 options. Minor fixes.
15239 (-std): Move reference to standards closer to where language
15240 standards are first mentioned.
15242 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15244 PR rtl-optimization/34995
15245 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15246 parameter and return a bool. If the rtx parameter is nonnull,
15247 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15248 (find_reloads): Update call accordingly. Pass the new operand
15249 if it needed no address reloads, otherwise pass null.
15251 2008-01-30 Richard Henderson <rth@redhat.com>
15254 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15255 for unbounded arrays.
15257 2008-01-30 Silvius Rus <rus@google.com>
15259 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15261 2008-01-30 Jan Hubicka <jh@suse.cz>
15264 * i386.c (init_cumulative_args): Use real function declaration when
15267 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15269 PR rtl-optimization/34998
15270 * global.c (build_insn_chain): Treat non-subreg_lowpart
15271 SUBREGs of pseudos as clobbering all the words covered by the
15272 SUBREG, not just all the bytes.
15273 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15274 original df_ref rather than an extract parameter.
15275 (global_conflicts): Update call accordingly.
15277 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15279 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15280 the overflow check to make it easier to read.
15281 (__fixtfdi): Change the type of the ll member in union
15282 long_double to UDItype_x.
15284 2008-01-30 Jakub Jelinek <jakub@redhat.com>
15286 PR middle-end/34969
15287 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15288 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15289 * tree-inline.c (fold_marked_statements): Call
15290 cgraph_update_edges_for_call_stmt if folding a call statement.
15291 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15292 debug_generic_stmt calls, reset it back afterwards.
15295 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15297 * c-typeck.c (build_external_ref): Don't pedwarn about
15298 static vars in current function's scope.
15300 2008-01-29 Joseph Myers <joseph@codesourcery.com>
15302 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15304 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
15307 * ipa-struct-reorg.c: Fix spelling.
15308 * params.def: Ditto.
15310 2008-01-29 Richard Guenther <rguenther@suse.de>
15312 PR middle-end/35006
15313 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15315 * tree-inline.c (remap_type): Increment remapping_type_depth
15316 around remapping types.
15317 (copy_body_r): Only add referenced variables if they are referenced
15318 from code, not types.
15320 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
15331 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15332 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15334 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
15337 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15338 pointer for tiny stack.
15340 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15342 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15344 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15346 * config/vx-common.h: Fix typo in comment.
15348 2008-01-28 Ian Lance Taylor <iant@google.com>
15352 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15353 coalesce pointers if they have different DECL_NO_TBAA_P values.
15354 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15355 between variables with different DECL_NO_TBAA_P values.
15357 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
15360 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15361 are not legitimate small data references on SPE targets.
15363 2008-01-28 David Daney <ddaney@avtrex.com>
15365 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15367 2008-01-28 David Daney <ddaney@avtrex.com>
15369 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
15371 2008-01-27 Joseph Myers <joseph@codesourcery.com>
15373 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15374 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15375 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15376 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15377 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15378 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15379 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15380 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15382 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15384 * basic-block.h (condjump_equiv_p): Fix comment.
15386 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15388 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15389 print_generic_stmt_indented): Fix comment.
15391 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15393 * configure.ac (__stack_chk_fail): Add detecion for availability
15394 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15395 * configure: Regenerate.
15397 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15399 PR middle-end/34688
15400 * final.c (output_addr_const): Handle TRUNCATE.
15402 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15405 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15406 (zero_cost, infinite_cost): New constants.
15407 (struct cost_pair): Change type of cost to comp_cost.
15408 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15409 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15411 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15412 split_address_cost, ptr_difference_cost, difference_cost,
15413 get_computation_cost_at, get_computation_cost,
15414 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15415 determine_use_iv_cost_condition, determine_use_iv_costs,
15416 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15417 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15418 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15419 Change type of cost to comp_cost.
15420 (determine_iv_cost): Increase cost of non-original ivs, instead
15421 of decreasing the cost of original ones.
15422 (get_address_cost): Indicate the complexity of the addressing mode
15424 (try_add_cand_for): Prefer using ivs not specific to some object.
15425 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15427 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15428 Janis Johnson <janis187@us.ibm.com>
15431 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15432 (TARGET_INSTANTIATE_DECLS): Likewise.
15433 * target.h (expand_to_rtl_hook): New target hook.
15434 (instantiate_decls): Likewise.
15435 * function.c (instantiate_decl): Make non-static. Rename to...
15436 (instantiate_decl_rtl): ... this.
15437 (instantiate_expr): Use instantiate_decl_rtl.
15438 (instantiate_decls_1): Likewise.
15439 (instantiate_decls): Likewise.
15440 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15441 * function.h (instantiate_decl_rtl): Add prototype.
15442 * cfgexpand.c (target.h): New include.
15443 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15444 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15445 (TARGET_INSTANTIATE_DECLS): Likewise.
15446 (TARGET_INITIALIZER): New target hooks added.
15447 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15449 * config/rs6000/rs6000.c (tree-flow.h): New include.
15450 (machine_function): Add sdmode_stack_slot field.
15451 (rs6000_alloc_sdmode_stack_slot): New function.
15452 (rs6000_instantiate_decls): Likewise.
15453 (rs6000_secondary_memory_needed_rtx): Likewise.
15454 (rs6000_check_sdmode): Likewise.
15455 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15456 (TARGET_INSTANTIATE_DECLS): Likewise.
15457 (rs6000_hard_regno_mode_ok): Allow SDmode.
15458 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15459 (rs6000_emit_move): Handle SDmode.
15460 (function_arg_advance): Likewise.
15461 (function_arg): Likewise.
15462 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15463 SDmode var args for 32-bit compiles.
15464 (rs6000_secondary_reload_class): Handle SDmode.
15465 (rs6000_output_function_epilogue): Likewise.
15466 (rs6000_function_value): Simplify if statement.
15467 (rs6000_libcall_value): Likewise.
15468 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15469 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15470 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15471 (movsd_hardfloat): New define_insn.
15472 (movsd_softfloat): Likewise.
15473 (movsd_store): Likewise.
15474 (movsd_load): Likewise.
15475 (extendsddd2): Likewise.
15476 (extendsdtd2): Likewise.
15477 (truncddsd2): Likewise.
15478 (movdd_hardfloat64): Fixup comment.
15479 (UNSPEC_MOVSD_LOAD): New constant.
15480 (UNSPEC_MOVSD_STORE): Likewise.
15482 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15485 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15487 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15488 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15489 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15490 and TRUTH_XOR_EXPR.
15492 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15495 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15496 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15497 __LONGDOUBLE128 too.
15498 * config/rs6000/aix61.h: New file.
15500 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15502 PR rtl-optimization/34959
15503 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15504 popcount and parity rtxes the same mode as their operand.
15505 Truncate or extend the result to the return value's mode
15508 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15511 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15512 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15513 to GOT_VERSION_REGNUM.
15514 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15515 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15516 * config/mips/mips.c (mips_emit_call_insn): New function.
15517 (mips_call_tls_get_addr): Call mips_expand_call directly.
15518 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15520 (mips16_build_call_stub): Likewise. Return the call insn or null.
15521 (mips_expand_call): Update the call to mips16_build_call_stub
15522 accordingly and a remove redundant condition. Assert that MIPS16
15523 stubs do not use lazy binding. Use mips_emit_call_insn and return
15525 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15527 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15528 (mips_avoid_hazard): Remove hazard_set handling.
15529 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15530 (UNSPEC_RESTORE_GP): ...this.
15531 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15532 (FAKE_CALL_REGNO): Rename to...
15533 (GOT_VERSION_REGNUM): ...this.
15534 (type): Add "ghost" value. Add an associated insn reservation.
15535 (hazard_set): Remove.
15536 (exception_receiver): Rename to...
15537 (restore_gp): ...this and update the unspec identifier accordingly.
15538 (exception_receiver, nonlocal_got_receiver): New expanders.
15539 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15540 FAKE_CALL_REGNO. Remove hazard_set attribute.
15541 (set_got_version, update_got_version): New patterns.
15543 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15546 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15548 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15551 * doc/install.texi2html: Generate gcc-vers.texi.
15553 2008-01-25 DJ Delorie <dj@redhat.com>
15555 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15557 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15559 * config/c4x: Remove directory.
15560 * config.gcc (crx-*, mt-*): Mark obsolete.
15561 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15562 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15563 sh-*-rtemscoff*): Remove cases.
15564 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15565 * real.c (encode_c4x_single, decode_c4x_single,
15566 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15567 c4x_extended_format): Remove.
15568 * real.h (c4x_single_format, c4x_extended_format): Remove.
15569 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15571 (Pragmas): Remove comment about c4x pragmas.
15572 * doc/install.texi (c4x): Remove target-specific instructions.
15573 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15574 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15575 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15576 refer to C4x source files as examples.
15577 (C4X_FLOAT_FORMAT): Remove documentation.
15579 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15581 * config/bfin/bfin.c (override_options): Reorder tests so that
15582 flag_pic gets enabled for -msep-data.
15584 2008-01-25 Richard Guenther <rguenther@suse.de>
15586 PR middle-end/32244
15587 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15588 to its bitfield precision if required.
15590 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15592 PR middle-end/33880
15593 * tree-nested.c (walk_omp_for): New function.
15594 (convert_nonlocal_reference, convert_local_reference): Call
15595 walk_omp_for on OMP_FOR.
15596 (convert_call_expr): Call walk_body on OMP_FOR's
15597 OMP_FOR_PRE_INIT_BODY.
15599 2008-01-25 Richard Guenther <rguenther@suse.de>
15601 PR tree-optimization/34966
15602 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15603 default defs and PHI_NODEs we have to insert after the
15604 defining statement.
15606 2008-01-24 Nick Clifton <nickc@redhat.com>
15608 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15609 Provide a default definition.
15610 (LIBGCC2_UNITS_PER_WORD): Likewise.
15612 * config/stormy16/stormy16.c: Include df.h for the prototype
15613 for df_regs_ever_live_p.
15614 (xstormy16_expand_builtin_va_start): Convert the stack offset
15615 into a component_ref and then use POINTER_PLUS_EXPR to add it
15616 to the incoming_virtual_args_rtx.
15617 (xstormy16_gimplify_va_arg_expr): Rename to
15618 xstormy16_gimplify_va_arg_expr.
15619 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15620 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15621 xstormy16_gimplify_va_arg_expr.
15622 Fix up some formatting issues.
15624 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15625 Move to predicates.md.
15626 (xs_hi_general_operand): Likewise.
15627 (xs_hi_nonmemory_operand): Likewise.
15628 * config/stormy16/predicates.md:
15629 (xstormy16_carry_plus_operand): New predicate.
15630 (xs_hi_general_operand): New predicate.
15631 (xs_hi_nonmemory_operand): New predicate.
15632 * config/stormy16/stormy16-protos.h:
15633 (xstormy16_carry_plus_operand): Delete prototype.
15634 (xs_hi_general_operand): Likewise.
15635 (xs_hi_nonmemory_operand): Likewise.
15637 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15638 modifiers as they are no longer needed and they can trigger
15639 reload spill failures.
15641 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15642 with a match_operand in order to help reload.
15644 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15645 constraint with 'e' for the 8th alternative as this version of
15646 the mov.w instruction only accepts the lower 8 registers.
15648 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
15651 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15652 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15655 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15657 PR middle-end/33333
15658 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15660 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15662 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15664 (remove_structure): Update allocations list before removing structure.
15666 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15668 * ipa-struct-reorg.c (is_safe_cond_expr,
15669 create_new_stmts_for_cond_expr): Use integer_zerop function,
15670 that recognize not only zero-pointer, but zero-integer too.
15672 2008-01-25 Ben Elliston <bje@au.ibm.com>
15675 * fixproto: Escape "." in sed expression that strips leading "./".
15677 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
15680 * gcc.c (SWITCH_OK): Removed.
15681 (SWITCH_LIVE): Changed to bit.
15682 (SWITCH_FALSE): Likewise.
15683 (SWITCH_IGNORE): Likewise.
15684 (switchstr): Change live_cond to unsigned int.
15685 (process_command): Replace SWITCH_OK with 0.
15686 (do_self_spec): Likewise.
15687 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15688 (give_switch): Likewise.
15689 (used_arg): Likewise.
15690 (do_spec_1): Set the SWITCH_IGNORE bit.
15691 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15692 bits. Set the SWITCH_LIVE bit.
15694 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
15696 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15698 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
15700 PR tree-optimization/34472
15701 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15702 parameter to a "bool *" and set *DATA to false if there is
15703 an unsafe access. Do not delete the structure here.
15704 (check_cond_exprs): Delete it here instead.
15705 (check_cond_exprs, exclude_cold_structs): Do not increase
15706 I when removing a structure.
15708 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
15711 * config/i386/i386.c (ix86_expand_vector_init): Consider only
15712 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15714 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
15716 PR middle-end/34934
15717 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15718 a fixed vector for stack.
15720 2008-01-24 Ben Elliston <bje@au.ibm.com>
15723 * doc/gcc.texi (Software development): Add a direntry for g++.
15725 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15727 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15728 stale and straggling -fforce-addr comments above.
15730 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15732 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15733 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15735 2008-01-23 Michael Matz <matz@suse.de>
15738 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15741 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15743 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15744 malloc result type.
15746 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15748 * config/avr/avr.c (avr_current_arch): New variable.
15749 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15750 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15751 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15752 (avr_override_options): Init 'avr_current_arch'.
15753 (base_arch_s): Move from here...
15754 * config/avr/avr.h (base_arch_s): ... here. Add new members
15755 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15756 'mega' to 'have_jmp_call'.
15757 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15758 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15760 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15762 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15763 MULTILIB_MATCHES): (Ditto.).
15765 2008-01-23 Richard Guenther <rguenther@suse.de>
15767 PR middle-end/31529
15768 * cgraphunit.c (cgraph_reset_node): Always mark the node
15769 not reachable if it is not queued already.
15771 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15773 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15774 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15775 (cputype_selected): New static variable.
15776 (bfin_handle_option): Set it if -mcpu is used.
15777 (override_option): Select default set of workarounds if no cpu type
15778 selected on the command line.
15779 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15781 From Michael Frysinger <michael.frysinger@analog.com>
15782 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15783 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15785 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15786 for bf547, bf523, bf524, and bf526.
15787 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15789 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15790 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15791 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15792 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15793 * doc/invoke.texi (Blackfin Options): Document that
15794 -mcpu now accept bf547, bf523, bf524, and bf526.
15796 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15798 PR rtl-optimization/34628
15799 * combine.c (try_combine): Stop and undo after the first combination
15800 if an autoincrement side-effect on the first insn has effectively
15803 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15806 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15807 Offset addresses are not valid for Altivec or paired float modes.
15809 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15812 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15813 if DECL_INITIAL (decl) is error_mark_node.
15816 * c-common.c (handle_vector_size_attribute): Only allow
15817 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15818 the same way as pointer, array etc. types.
15819 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15822 * tree.c (build_type_attribute_qual_variant): Call
15823 build_qualified_type if attributes are equal, but quals are not.
15825 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15828 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15829 * flags.h (warn_strict_aliasing): Remove.
15830 (warn_strict_overflow): Remove.
15831 * opts.c (warn_strict_aliasing): Remove.
15832 (warn_strict_overflow): Remove.
15833 * c-opts.c (c_common_handle_option): -Wall only sets
15834 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15835 (c_common_post_options): Give default values to -Wstrict-aliasing
15836 and -Wstrict-overflow if they are uninitialized.
15837 * common.opt (Wstrict-aliasing): Specify Var and Init.
15838 (Wstrict-overflow): Likewise.
15840 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15842 PR rtl-optimization/26854
15843 PR rtl-optimization/34400
15844 PR rtl-optimization/34884
15845 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15847 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15848 (df_rd_bb_info.expanded_lr_out): Deleted
15849 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15850 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15851 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15852 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15853 Removed code to allocate, initialize or free expanded_lr_out.
15854 (df_rd_bb_local_compute_process_def): Restructured to make more
15856 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15857 sets if the sets are being trimmed.
15859 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15862 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15863 (as_vers): Likewise.
15864 * configure: Regenerated.
15866 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15868 PR middle-end/33092
15869 * tree-pass.h (pass_build_alias): New pass.
15870 * tree-ssa-alias.c (gate_build_alias): New.
15871 (pass_build_alias): New.
15872 * passes.c (init_optimization_passes): Add pass_build_alias after
15873 pass_create_structure_vars.
15875 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15877 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15878 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15879 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15880 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15881 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15882 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15883 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15884 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15885 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15886 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15887 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15888 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15889 * config/s390/s390.md (FP_ALL): New mode iterator.
15890 (_d): New mode attribute.
15891 ("*signbit<mode>2>"): Changed mode of first operand.
15892 ("isinf<mode>2"): Changed mode of first operand.
15893 ("*TDC_insn"): Adaptation for DFP modes.
15895 2008-01-22 Ben Elliston <bje@au.ibm.com>
15897 * tree.c (check_qualified_type): Improve function description.
15899 2008-01-21 Jason Merrill <jason@redhat.com>
15902 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15903 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15906 2008-01-21 DJ Delorie <dj@redhat.com>
15908 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15911 2008-01-21 Richard Guenther <rguenther@suse.de>
15913 PR middle-end/34856
15914 * tree-cfg.c (verify_expr): Allow all invariant expressions
15915 instead of just constant class ones as reference argument.
15916 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15917 like any other constant.
15918 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15920 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15922 * regmove.c (fixup_match_1): Update call crossed frequencies.
15924 2008-01-21 Richard Guenther <rguenther@suse.de>
15927 * tree-inline.c (setup_one_parameter): Deal with mismatched
15928 types using a VIEW_CONVERT_EXPR.
15930 2008-01-21 Alon Dayan <alond@il.ibm.com>
15931 Olga Golovanevsky <olga@il.ibm.com>
15933 PR tree-optimization/34701
15934 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15935 when the structure size is not a power of 2.
15937 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15939 * doc/install.texi: Add doc for --enable-checking=df.
15941 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15943 PR rtl-optimization/34808
15944 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15946 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15948 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15951 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15953 PR rtl-optimization/26854
15954 PR rtl-optimization/34400
15955 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15957 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15958 (df_rd_bb_info.expanded_lr_out): New.
15959 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15960 * loop_iv.c (iv_analysis_loop_init): Ditto.
15961 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15962 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15963 Added code to allocate, initialize or free expanded_lr_out.
15964 (df_rd_bb_local_compute_process_def): Restructured to make
15965 more understandable.
15966 (df_rd_confluence_n): Add code to do nothing with fake edges and
15967 code to no apply invalidate_by_call sets if the sets are being trimmed.
15968 (df_lr_local_finalize): Renamed to df_lr_finalize.
15969 (df_live_local_finalize): Renamed to df_live_finalize.
15971 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15974 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15975 deciding whether to use reciprocal instructions.
15977 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15979 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15980 dwarf2out_note_section_used if cold_text_section is NULL.
15982 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15984 PR gcov-profile/34610
15985 * tree-cfg.c (make_edges): Mark both outgoing edges from
15986 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15987 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15988 from OMP_FOR and OMP_CONTINUE outgoing edges.
15990 * tree-profile.c (tree_profiling): Return early if
15991 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15993 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15994 from cfun to child_cfun.
15995 * function.h (struct function): Add after_tree_profile bit.
15997 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15999 * config/avr/avr.S (_exit): Disable interrupt.
16001 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16002 Steven Bosscher <stevenb.gcc@gmail.com>
16004 PR rtl-optimization/26854
16005 PR rtl-optimization/34400
16006 * df-problems.c (df_live_scratch): New scratch bitmap.
16007 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16008 (df_live_reset): Clear the proper bitmaps.
16009 (df_live_bb_local_compute): Only process the artificial defs once
16010 since the order is not important.
16011 (df_live_init): Init the df_live sets only with the variables
16012 found live by df_lr.
16013 (df_live_transfer_function): Use the df_lr sets to prune the
16014 df_live sets as they are being computed.
16015 (df_live_free): Free df_live_scratch.
16017 2008-01-18 Ian Lance Taylor <iant@google.com>
16019 * common.opt: Add fmerge-debug-strings.
16020 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16021 flag_merge_debug_strings rather than flag_merge_constants.
16022 * doc/invoke.texi (Option Summary): Mention
16023 -fmerge-debug-strings.
16024 (Debugging Options): Document -fmerge-debug-strings.
16026 2008-01-18 Ian Lance Taylor <iant@google.com>
16029 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16030 (struct tree_function_decl): Add new field operator_new_flag.
16031 * tree-inline.c (expand_call_inline): When inlining a call to
16032 operator new, force the return value to go into a variable, and
16033 set DECL_NO_TBAA_P on that variable.
16034 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16036 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
16039 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16040 DWARF2_DEBUGGING_INFO.
16041 (dwarf2out_note_section_used): Ditto. Add prototype.
16042 (have_multiple_function_sections, text_section_used,
16043 cold_text_section_used, *cold_text_sections): Move declarations
16046 2008-01-17 Bob Wilson <bob.wilson@acm.org>
16048 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16049 field and add signal_ra.
16050 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16051 assignments to frame state pc. Move end of stack check after
16052 MD_FALLBACK_FRAME_STATE_FOR.
16053 (uw_update_context_1): Use frame state signal_regs if set, instead
16054 of checking signal_frame flag.
16055 (uw_update_context): Use frame state signal_ra if set.
16056 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16057 * config/xtensa/linux-unwind.h: New file.
16059 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
16061 * modulo-sched.c (get_sched_window): Fix comment typo.
16063 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
16065 PR tree-optimization/34648
16066 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16068 2008-01-17 Anatoly Sokolov <aesok@post.ru>
16070 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16071 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16073 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
16075 PR rtl-optimization/34400
16076 * df-core.c (df_worklist_dataflow_overeager,
16077 df_worklist_dataflow_doublequeue): New functions.
16078 (df_worklist_dataflow): Two different worklist solvers.
16079 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16082 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16085 * doc/invoke.texi: Document the dependence on pthread for fopenmp
16086 and ftree-parallelize-loops.
16088 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
16090 PR rtl-optimization/34826
16091 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16093 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
16095 * global.c (find_reg): Mark the eh regs as used if necessary.
16096 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16097 * ra.h (struct allocno): no_eh_reg field added. Changed
16098 no_stack_reg type to bitfield.
16100 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
16102 * tree.c (substitute_in_expr): Add missing 'break'.
16104 2008-01-17 Richard Guenther <rguenther@suse.de>
16106 PR tree-optimization/34825
16107 * tree-ssa-math-opts.c (is_division_by): Do not recognize
16108 x / x as division to handle.
16110 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16112 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16113 "-pthread" is specified.
16114 * pa-hpux11.h (LIB_SPEC): Likewise.
16116 2008-01-16 Janis Johnson <janis187@us.ibm.com>
16117 Peter Bergner <bergner@vnet.ibm.com>
16119 PR rtl-optimization/33796
16120 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16122 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16124 PR libgfortran/34699
16125 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16127 * pa-hpux10.h (LINK_SPEC): Likewise.
16128 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16130 2008-01-16 Richard Guenther <rguenther@suse.de>
16132 PR middle-end/32628
16133 * fold-const.c (fold_convert_const_int_from_int): Do not
16134 set overflow if that occured only because of a sign extension
16135 change when converting from/to a sizetype with the same
16136 precision and signedness.
16138 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16141 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16142 location address to the correct place. Update copyright year.
16144 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16146 * lambda-code.c (lambda_transform_legal_p): Handle the case of
16147 no dependences in the dependence_relations vector.
16149 2008-01-16 Jan Hubicka <jh@suse.cz>
16151 PR rtl-optimization/31396
16152 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16153 * cfg.c (dump_reg_info): Print it.
16154 * regs.h (struct reg_info_t): add freq_calls_crossed.
16155 (REG_FREQ_CALLS_CROSSED): New macro.
16156 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16157 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16158 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16159 regmove_optimize): Update call crossed frequencies.
16160 * local-alloc.c (struct qty): Add freq_calls_crossed.
16161 (alloc_qty): Copute freq_calls_crossed.
16162 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16163 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16164 * ra.h (struct allocno): Add freq_calls_crossed.
16166 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16168 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16169 libgomp when compiling with ftree-parallelize-loops.
16170 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16172 2008-01-16 Richard Guenther <rguenther@suse.de>
16174 PR tree-optimization/34769
16175 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16176 * tree.c (int_cst_value): Instead make this function more
16177 permissive in what it accepts as valid input. Document this
16178 function always sign-extends the value.
16180 2008-01-16 Jakub Jelinek <jakub@redhat.com>
16181 Richard Guenther <rguenther@suse.de>
16184 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16185 (gimple_fold_indirect_ref_rhs): ... this.
16186 (gimple_fold_indirect_ref): New function with foldings
16187 that preserve lvalueness.
16188 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16189 * tree-flow.h (gimple_fold_indirect_ref): Declare.
16190 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16191 to fold an INDIRECT_REF, fall back to the old use of
16192 fold_indirect_ref_1.
16194 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16196 * tree-data-ref.c (subscript_dependence_tester_1): Call
16197 free_conflict_function.
16198 (compute_self_dependence): Same.
16200 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16203 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16204 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16206 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16207 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16208 for DWARF2_UNWIND_INFO targets.
16210 2008-01-16 Richard Guenther <rguenther@suse.de>
16213 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16214 type qualifiers for function types.
16216 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16218 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16219 loop_iterator li from previous commit.
16221 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
16223 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16225 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16227 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16228 (parallelize_loops): Don't parallelize irreducible components.
16230 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16233 * c-opts (c_common_post_options): Do not enable CPP
16234 flag_pedantic_errors by default.
16236 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16238 PR rtl-optimization/31944
16239 * cse.c (remove_pseudo_from_table): New function.
16240 (merge_equiv_classes): Use above function to remove pseudo-registers.
16241 (invalidate): Likewise.
16243 2008-01-13 Richard Guenther <rguenther@suse.de>
16245 PR middle-end/34601
16246 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16247 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16249 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
16251 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16252 validate_change to unshare the source of the PC set.
16254 2008-01-12 Jan Hubicka <jh@suse.cz>
16256 PR middle-end/32135
16257 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16258 references above array bounds. This might trigger bounds checks for
16259 pointers to arrays.
16261 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16263 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16264 new_replaceable_dependencies.
16266 2008-01-12 Doug Kwan <dougkwan@google.com>
16268 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16269 instead of OPT_Wreturn_type in warning due to ignored return type
16271 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16272 options included in -Wextra.
16273 * c.opt: New option -Wignored_qualifiers.
16274 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16275 -Wignore_qualifiers.
16276 (-Wignored-qualifiers): Document.
16277 (-Wreturn-type): Remove description of functionality now handled
16278 by -Wignored-qualifiers.
16280 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16283 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16284 NOP_EXPR if it is between integral types with the same precision.
16286 2008-01-12 Jan Hubicka <jh@suse.cz>
16289 * invoke.texi (max-inline-recursive-depth): Fix default value.
16291 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
16293 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16296 2008-01-11 Bob Wilson <bob.wilson@acm.org>
16298 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16300 2008-01-11 James E. Wilson <wilson@specifix.com>
16303 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16305 2008-01-11 Anatoly Sokolov <aesok@post.ru>
16307 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16308 save/restore frame pointer register and don't use 'call-prologues'
16309 optimization in function with "OS_task" attribute.
16311 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
16313 PR middle-end/31309
16314 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16315 when copying to memory.
16317 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
16319 PR rtl-optimization/30905
16320 * cfgcleanup.c: Include dce.h
16321 (crossjumps_occured): New global variable.
16322 (try_crossjump_bb): Exit loop after finding a fallthru edge.
16323 If something changed, set crossjumps_occured to true.
16324 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16325 Don't add/remove fake edges to exit here...
16326 (cleanup_cfg): ...but do it here, when crossjumping.
16327 Run a fast DCE when successful crossjumps occured in the latest
16328 iteration of try_optimize_cfg.
16330 2008-01-11 Richard Guenther <rguenther@suse.de>
16332 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16333 (struct vn_unary_op_s): Likewise.
16334 (vn_reference_insert): Free old reference on hash collision.
16336 2008-01-10 Raksit Ashok <raksit@google.com>
16338 PR rtl-optimization/27971
16339 * combine.c (find_split_point): Split PLUS expressions which are
16340 inside a MEM rtx, and whose first operand is complex.
16342 2008-01-10 DJ Delorie <dj@redhat.com>
16344 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16345 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16346 (m32c_hard_regno_ok): Call the underlying function.
16348 2008-01-10 Richard Guenther <rguenther@suse.de>
16350 PR middle-end/34683
16351 * tree-cfg.c (tree_merge_blocks): Do not go through the
16352 full-blown folding and stmt updating path if we just deal
16353 with virtual operands.
16354 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16355 test for abnormal SSA_NAMEs.
16357 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
16359 PR middle-end/34641
16360 * reload.c (push_reload): Add assertions. All constants from
16361 reg_equiv_constant should have been used for replacing the respective
16363 (find_reloads_address): Invoke find_reloads_address_part for
16364 constant taken from the reg_equiv_constant array.
16366 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
16368 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16369 field (valnum) the first in the struct. Replace bools with
16372 2008-01-10 Richard Guenther <rguenther@suse.de>
16374 PR tree-optimization/34651
16375 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
16376 types and ordering for masking and converting.
16378 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16380 PR tree-optimization/34017
16381 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16382 also for PHI_NODE expressions.
16384 2008-01-09 Jan Hubicka <jh@suse.cz>
16386 PR tree-optimization/34708
16387 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16388 based on number of case labels.
16389 (init_inline_once): Remove switch_cost.
16390 * tree-inline.h (eni_weights_d): Remove switch_cost.
16392 2008-01-09 Richard Guenther <rguenther@suse.de>
16393 Andrew Pinski <andrew_pinski@playstation.sony.com>
16395 PR middle-end/30132
16396 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16397 temporary if an rvalue is ok or an lvalue is not required.
16399 2008-01-09 Richard Guenther <rguenther@suse.de>
16401 PR middle-end/34458
16402 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16403 adjust return type.
16405 2008-01-09 Richard Guenther <rguenther@suse.de>
16407 PR middle-end/34679
16408 * tree.c (host_integerp): Check for sizetype only if the
16409 type is an integer type.
16411 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16414 * opts.c (decode_options): Disable inlining of functions called
16415 once if not in unit-at-a-time mode.
16417 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16419 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16421 2008-01-08 Richard Guenther <rguenther@suse.de>
16423 PR middle-end/31863
16424 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16425 out early if the result will be unused.
16427 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16432 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16433 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16436 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16438 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16439 for vectorization tuned.
16441 2008-01-08 Richard Guenther <rguenther@suse.de>
16443 PR tree-optimization/34683
16444 * tree-ssa-operands.c (operand_build_cmp): Export.
16445 * tree-ssa-operands.h (operand_build_cmp): Declare.
16446 * tree-vn.c (vuses_compare): Remove.
16447 (sort_vuses): Use operand_build_cmp.
16448 (sort_vuses_heap): Likewise.
16449 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16450 to re-use old VEC if available. Do not sort already sorted VUSEs.
16451 (vdefs_to_vec): Do not sort already sorted VDEFs.
16453 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16455 PR middle-end/34694
16456 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16458 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16461 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16462 limitations of reciprocal sequences on x86 targets.
16464 2008-01-08 Richard Guenther <rguenther@suse.de>
16466 PR tree-optimization/34683
16467 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16469 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16472 * config/darwin.c (darwin_mergeable_string_section): Don't use
16473 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16475 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16478 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16479 negxf2. Macroize expander using X87MODEF mode iterator. Change
16480 predicates of op0 and op1 to register_operand.
16481 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16482 expander using X87MODEF mode iterator. Change predicates of
16483 op0 and op1 to register_operand.
16484 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16485 corresponding patterns and macroize using MODEF macro. Change
16486 predicates of op0 and op1 to register_operand and remove
16487 "m" constraint. Disparage "r" alternative with "!".
16488 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16489 macroize using X87MODEF macro. Change predicates of op0 and op1
16490 to register_operand and remove "m" constraint. Disparage "r"
16491 alternative with "!".
16492 (absneg splitter with memory operands): Remove.
16493 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16494 patterns and macroize using X87MODEF mode iterator.
16495 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16496 Change predicate of op1 to register_operand.
16497 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16498 for memory operands.
16500 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16502 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16504 2008-01-07 Richard Guenther <rguenther@suse.de>
16506 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16509 2008-01-07 Richard Guenther <rguenther@suse.de>
16511 PR tree-optimization/34683
16512 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16513 VOPs of the needed size to save memory. Use VEC_quick_push
16514 to save compile-time.
16515 (vdefs_to_vec): Likewise.
16517 2008-01-07 Sa Liu <saliu@de.ibm.com>
16519 * config/spu/spu.md (divdf3): Genetate inline code for double
16520 division. The implementation doesn't handle INF or NAN, therefore it
16521 only applies when -ffinite-math-only is given.
16523 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16526 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16527 * doc/cpp.texi ([Common Predefined Macros]): Document.
16529 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16531 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16532 order to use commutative addition instead of subtraction.
16534 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16535 Mircea Namolaru <namolaru@il.ibm.com>
16536 Vladimir Yanovsky <yanov@il.ibm.com>
16537 Revital Eres <eres@il.ibm.com>
16539 PR tree-optimization/34263
16540 * tree-outof-ssa.c (process_single_block_loop_latch,
16541 contains_tree_r): New functions.
16542 (analyze_edges_for_bb): Call process_single_block_loop_latch
16543 function to empty single-basic-block latch block if possible.
16545 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16547 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16549 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16551 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16553 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16555 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16557 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16559 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16561 PR tree-optimization/34618
16562 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16565 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16568 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16569 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16570 Update copyright year.
16572 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16573 Update copyright year.
16574 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16577 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16579 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16580 edge does not point to current bb before changing need_assert.
16582 2008-01-04 Richard Guenther <rguenther@suse.de>
16584 PR middle-end/34029
16585 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16586 for verifying purposes if they are is_gimple_min_invariant.
16588 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16590 PR tree-optimization/34448
16591 PR tree-optimization/34465
16592 * gimplify.c (gimplify_init_constructor): Add new parameter
16593 notify_temp_creation. Use it.
16594 (gimplify_modify_expr_rhs): Take volatiles into account when
16595 optimizing constructors.
16596 Do not optimize constructors if gimplify_init_constructor will dump to
16598 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16599 * gcc.c-torture/compile/pr34448.c: New.
16601 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16603 PR gcov-profile/34609
16604 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16605 return_slot if result is TREE_ADDRESSABLE.
16607 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16609 * config/mips/mips.md (sqrt_condition): Tweak comment.
16610 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
16612 2008-01-03 Tom Tromey <tromey@redhat.com>
16615 * c-common.c (c_type_hash): Handle VLAs.
16617 2008-01-03 Jan Hubicka <jh@suse.cz>
16619 PR tree-optimization/31081
16620 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16621 0 when inlining and not inlining to first basic block.
16622 (remap_decl): When var is initialized to 0, don't set default_def.
16623 (expand_call_inline): Set entry_bb.
16624 * tree-inline.h (copy_body_data): Add entry_bb.
16626 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16629 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16632 PR tree-optimization/29484
16633 * tree-inline.c (inline_forbidden_p_2): New function.
16634 (inline_forbidden_p): Disallow inlining if some static var
16635 has an address of a local LABEL_DECL in its initializer.
16636 * doc/extend.texi (Labels as Values): Document &&foo behaviour
16639 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
16641 PR tree-optimization/34635
16642 * tree-data-ref.c (add_other_self_distances): Make sure that the
16643 evolution step is constant.
16645 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16647 PR middle-end/34608
16648 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16650 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
16652 * tree-sra.c (scalarize_init): Insert the generate_element_init
16653 statements after the generate_element_zero statements.
16655 2008-01-02 Richard Guenther <rguenther@suse.de>
16657 PR middle-end/34093
16658 PR middle-end/31976
16659 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16660 for very large number of operands instead of ICEing.
16662 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
16665 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16666 while stack probing.
16668 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
16670 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16673 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
16675 PR libmudflap/26442
16676 * tree-mudflap.c (mx_register_decls): Guard warning by
16677 !DECL_ARTIFICIAL check.
16679 2008-01-01 Jakub Jelinek <jakub@redhat.com>
16681 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16682 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16683 sse5_perm<mode>): Fix constraints.