1 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4 computation of precision by 1.
6 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
9 (openscop_read_polyhedron_matrix): New.
10 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
11 (openscop_read_N_int): Same.
12 * graphite-poly.c (openscop_read_N_int): New.
13 (openscop_read_one_int): New.
14 (openscop_read_N_string): New.
15 (openscop_read_one_string): New.
16 (openscop_read_powerset_matrix): New.
17 (graphite_read_transforms): Remove.
18 (graphite_read_scatt): New.
19 (graphite_read_scop_file): New.
20 (apply_poly_transforms): Updated to call graphite_read_scop_file.
22 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24 * graphite-poly.c: Change include order.
26 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
29 (cloog_matrix_nrows): New.
31 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
33 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
35 * graphite-poly.c (openscop_print_scattering_function_1): Same.
36 (print_scattering_function_1): Same.
37 (openscop_print_pbb_domain): Same.
38 (openscop_print_scop_context): Same.
39 (print_scop_context): Same.
41 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
43 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
44 (openscop_print_pdr_polyhedron): Print pph.
46 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
48 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
49 priority signed types.
51 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
53 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
54 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
56 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
58 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
59 (openscop_print_polyhedron_matrix): New.
60 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
61 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
62 (openscop_print_pdr_powerset): New.
63 (openscop_print_powerset_matrix): New.
64 (openscop_print_scattering_function_1): New.
65 (print_scattering_function): Add support for scattering names and
67 (graphite_write_transforms): Remove.
68 (print_pdr_access_layout): Updated to support OpenScop format.
70 (openscop_print_pbb_domain): New.
71 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
73 (print_pbb): Updated to call the new print_pbb_body.
74 (openscop_print_scop_context): New.
75 (print_scop_header): New.
76 (print_scop): Updated to call print_scop_header.
77 * graphite-poly.h: Document OpenScop format.
79 2010-09-30 Anatoly Sokolov <aesok@post.ru>
81 * config/cris/m32c.c (cris_memory_move_cost): New.
82 (cris_register_move_cost): Make static. Change arguments type from
83 enum reg_class to reg_class_t.
84 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
85 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
86 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
88 2010-09-30 Jakub Jelinek <jakub@redhat.com>
91 * config/i386/i386.c (ix86_gimplify_va_arg): Use
92 INTVAL (XEXP (slot, 1)) as prev_size.
94 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
97 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
98 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
100 * config/rs6000/option-defaults.h (toplevel): Change #if
101 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
102 global option changes.
104 2010-09-30 Jakub Jelinek <jakub@redhat.com>
106 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
108 PR tree-optimization/31261
109 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
110 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
112 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
116 special-casing for generators and turn into ...
117 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
118 rule, for better error messages in case of toplevel dependency
120 (genprog): Add hooks, rename to ...
121 (genprogerr): ... this, and let genprog also contain check,
123 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
124 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
125 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
127 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
128 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
130 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
131 for GMP, MPFR and MPC.
133 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135 * config/sparc/sparc.opt (mimpure-text): Move ...
136 * config/sol2.opt: ... here.
138 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
139 * doc/invoke.texi (Option Summary, SPARC Options): Move
140 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
141 (Option Summary, Solaris 2 Options): ... here.
142 (Submodel Options, Solaris 2 Options): New menu entry.
143 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
144 (Solaris 2 Options): ... here.
146 2010-09-30 Michael Eager <eager@eagercon.com>
148 * extend.texi (interrupt_handler): Add MicroBlaze to list.
149 (save_volatiles): Describe option for MicroBlaze.
150 * invoke.texi: Add MicroBlaze Options.
151 * contrib.texi: Add acknowledgment.
152 * md.texi: Add MicroBlaze d and z constraints.
153 * install.texi: Add microblaze-*-elf.
154 * configure.ac: Add microblaze-*-* to target list.
155 * configure: Regenerate.
156 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
157 * config/microblaze/microblaze-protos.h: New.
158 * config/microblaze/crti.s: New.
159 * config/microblaze/predicates.md: New.
160 * config/microblaze/linux.h: New.
161 * config/microblaze/microblaze.md: New.
162 * config/microblaze/constraints.md: New.
163 * config/microblaze/crtn.s: New.
164 * config/microblaze/microblaze.opt: New.
165 * config/microblaze/microblaze-c.c: New.
166 * config/microblaze/t-microblaze: New.
167 * config/microblaze/microblaze.c: New.
168 * config/microblaze/microblaze.h: New.
170 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
172 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
173 parse @optional/@required and set the flags as appropriate.
175 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
177 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
179 2010-09-30 Joseph Myers <joseph@codesourcery.com>
181 * opt-functions.awk (static_var): Update comment.
182 (var_ref): Return offsetof expression or -1, not variable address.
183 * optc-gen.awk: Generate structure field initializers instead of
184 static variables. Expect -1 for missing variables instead of null
185 pointer. Add gcc_options parameters to generated functions.
186 * opth-gen.awk: Generate structure fields for static variables.
187 Add gcc_options parameters to generated functions.
188 * common.opt (optimize, optimize_size): Add variables.
189 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
190 &global_options to cl_target_option_restore.
191 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
192 &global_options to cl_optimization_restore, cl_target_option_save
193 and cl_target_option_restore.
194 (ix86_set_current_function): Pass &global_options to
195 cl_target_option_restore.
196 * config/pdp11/pdp11.h (optimize): Remove.
197 * config/rs6000/rs6000.h (optimize): Remove.
198 * config/sh/sh.h (optimize): Remove.
199 * config/xtensa/xtensa.h (optimize): Remove.
200 * coretypes.h (struct gcc_options): Declare.
201 * diagnostic.c (diagnostic_initialize): Initialize
202 context->option_state.
203 (diagnostic_report_diagnostic): Pass option_state to
205 * diagnostic.h (diagnostic_context.option_enabled): Add void *
207 (diagnostic_context.option_state): New field.
208 * final.c (final_start_function, final, final_scan_insn): Rename
209 optimize parameter to optimize_p.
210 * flags.h (optimize, optimize_size): Remove.
211 * function.c (invoke_set_current_function_hook): Pass
212 &global_options to cl_optimization_restore.
213 * gcc.c (driver_handle_option): Take gcc_options parameter.
214 Assert that it is &global_options.
215 (process_command): Pass &global_options to read_cmdline_option.
216 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
218 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
219 &global_options to set_option.
220 * opts-common.c (handle_option, handle_generated_option,
221 read_cmdline_option, set_option): Take explicit gcc_options
222 parameters. Use option_flag_var.
223 (option_flag_var): New.
224 * opts.c (common_handle_option, lang_handle_option,
225 target_handle_option): Take gcc_options parameter. Assert that it
227 (read_cmdline_options): Pass &global_options to
229 (print_filtered_help): Use option_flag_var. Pass &global_options
231 (common_handle_option): Use option_flag_var.
232 (option_enabled): Take opts parameter. Use option_flag_var.
233 (get_option_state): Take gcc_options parameter. Use
234 option_flag_var. Pass gcc_options parameter to option_enabled.
235 (enable_warning_as_error): Pass &global_options to
236 handle_generated_option.
237 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
238 (cl_option_handler_func.handler): Take gcc_options parameter.
239 (option_enabled, get_option_state, set_option, handle_option,
240 handle_generated_option, read_cmdline_option): Take gcc_options
242 * toplev.c (optimize, optimize_size): Remove.
243 (print_switch_values): Pass &global_options to option_enabled.
244 (option_affects_pch_p): Use option_flag_var. Pass &global_options
246 (general_init): Initialize global_dc->option_state.
247 * tree.c (build_optimization_node): Pass &global_options to
248 cl_optimization_save.
249 (build_target_option_node): Pass &global_options to
250 cl_target_option_save.
252 2010-09-30 Martin Jambor <mjambor@suse.cz>
254 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
255 zero sized bit-fields.
257 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
259 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
260 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
261 (c_parser_external_declaration): Use RID_AT_CLASS
262 instead of RID_CLASS.
263 (c_parser_objc_class_declaration): Same change.
264 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
265 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
266 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
267 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
268 and RID_AT_PUBLIC instead of RID_PUBLIC.
269 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
270 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
272 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
274 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
275 Add links to current providers of packages for Solaris and IRIX.
277 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
279 Merge from 'apple/trunk' branch on FSF servers.
280 * c-parser.c: Applied change originally in c-parse.in.
282 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
285 * c-decl.c (start_decl): Check for redeclaration of class name.
286 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
288 2010-09-29 Steve Ellcey <sje@cup.hp.com>
290 * config/ia64/ia64.c (ia64_builtin_decl): New.
291 (TARGET_BUILTIN_DECL): Define.
292 (ia64_builtins): New.
293 (ia64_init_builtins): Save decls in ia64_builtins.
295 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
298 * postreload.c (move2add_use_add2_insn): Use full_costs for
300 (move2add_use_add3_insn): Likewise.
301 (reload_cse_move2add): Likewise.
302 * rtlanal.c (get_full_rtx_cost): New function.
303 * rtl.h (struct full_rtx_costs): New.
304 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
305 costs_add_n_insns): New inline functions.
306 (get_full_rtx_cost): Declare.
309 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
310 invariants. Check for reg_equiv_invariant.
311 (reload): Assert that spilled_pseudos is empty when returning.
313 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
315 * config/i386/mingw32.h (TARGET_64BIT): replaced by
316 TARGET_64BIT_DEFAULT in #if check.
318 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
320 * varasm.c (assemble_alias): Add error message for
323 2010-09-29 Mike Stump <mikestump@comcast.net>
325 * config/darwin.h (flag_mkernel): Remove.
326 (flag_apple_kext): Likewise.
328 2010-09-29 Joseph Myers <joseph@codesourcery.com>
329 Jack Howarth <howarth@bromo.med.uc.edu>
331 * config/darwin.opt (undefined): Add.
333 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
335 * configure.ac: Add --enable-indirect-function option.
336 * config.gcc: Add default_gnu_indirect_function.
337 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
338 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
339 * varasm.c (do_assemble_alias): Adjust for macto name change.
340 * configure: Rebuilt.
341 * doc/install.texi: Document --enable-indirect-function.
343 2010-09-29 Joseph Myers <joseph@codesourcery.com>
345 * doc/options.texi (Variable, Var, Init): Update documentation
346 without reference to VarExists.
348 * common.opt, config/i386/i386.opt, config/linux.opt,
349 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
352 2010-09-29 Joseph Myers <joseph@codesourcery.com>
354 * optc-gen.awk: Generate global_options initializer instead of
355 individual variables. Add x_ prefix to names of structure
357 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
358 names of structure members.
359 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
360 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
361 * doc/tm.texi: Regenerate.
362 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
363 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
364 * c-parser.c (disable_extension_diagnostics,
365 restore_extension_diagnostics): Update names of cpp_options
367 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
368 * common.opt (fcompare-debug-second): Don't use Var.
369 * config/alpha/alpha.h (target_flags): Remove.
370 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
371 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
372 * config/bfin/bfin.h (target_flags): Remove.
373 * config/cris/cris.h (target_flags): Remove.
374 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
375 cl_target_option members.
376 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
377 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
378 ix86_can_inline_p): Update names of cl_target_option members.
379 * config/i386/i386.h (ix86_isa_flags): Remove.
380 * config/lm32/lm32.h (target_flags): Remove.
381 * config/mcore/mcore.h (mcore_stack_increment): Remove.
382 * config/mcore/mcore.md (addsi3): Remove extern declaration of
383 flag_omit_frame_pointer.
384 * config/mep/mep.h (target_flags): Remove.
385 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
386 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
387 * config/mmix/mmix.h (target_flags): Remove.
388 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
389 flag_expensive_optimizations): Remove.
390 * config/s390/s390.h (flag_pic): Remove.
391 * config/score/score-conv.h (target_flags): Remove.
392 * config/sh/sh.h (sh_fixed_range_str): Remove.
393 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
394 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
395 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
396 * diagnostic.c (diagnostic_initialize): Update names of
397 diagnostic_context members.
398 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
400 (diagnostic_report_warnings_p): Update for new names.
401 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
402 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
403 HARD_FRAME_POINTER_IS_ARG_POINTER.
404 * flags.h (flag_compare_debug): Declare.
405 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
406 * opts.c (flag_compare_debug): Define.
407 (common_handle_option): Update names of diagnostic_context
408 members. Handle -fcompare-debug-second.
409 (fast_math_flags_struct_set_p): Update names of cl_optimization
411 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
412 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
413 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
414 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
415 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
416 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
417 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
418 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
419 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
421 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
423 * config/picochip/picochip.c (picochip_output_internal_label):
424 This function can now be called for debug CFI labels, which can come in
425 the middle of a vliw instruction. Postpone until end of vliw.
427 2010-09-29 Richard Guenther <rguenther@suse.de>
429 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
430 (DECL_FILE_SCOPE_P): Use it.
431 (TYPE_FILE_SCOPE_P): New macro.
433 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
435 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
436 a CPP_NAME which is a reserved word, clearly separate cases for
437 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
439 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
441 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
442 token->value with the canonical spelling. Do exactly like C and
443 C++ and leave it as it is.
445 2010-09-28 Richard Henderson <rth@redhat.com>
447 * config/alpha/alpha.c (alpha_builtins): New.
448 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
449 (alpha_builtin_function): New.
450 (alpha_add_builtins, alpha_init_builtins): Use it.
452 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
454 * doc/standards.texi (Standards): Expanded the section on
455 Objective-C and Objective-C++.
457 2010-09-28 DJ Delorie <dj@redhat.com>
460 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
463 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
465 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
466 attributes on methods.
467 (c_parser_objc_method_definition): Handle attributes.
468 (c_parser_objc_methodproto): Likewise.
469 (c_parser_objc_maybe_method_attributes): New.
470 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
471 missing definition, similar to that in ObjC++.
473 2010-09-28 Richard Henderson <rth@redhat.com>
475 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
476 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
477 (CONFIG_SJLJ_EXCEPTIONS): Remove.
478 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
479 (STACK_CHECK_PROTECT): Likewise.
480 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
481 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
482 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
483 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
484 (dwarf2out_assembly_start): Likewise.
485 * except.c (init_eh): Use targetm.except_unwind_info.
486 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
487 (output_one_function_exception_table): Likewise.
488 * final.c: Unconditionally include dwarf2out.h.
489 (final_start_function): Unconditionally call dwarf2out routines.
490 (final_end_function, final_scan_insn): Likewise.
491 * function.c (expand_function_end): Use targetm.except_unwind_info.
492 * opts.c (decode_options): Use targetm.except_unwind_info.
493 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
494 * target.def (debug_unwind_info, except_unwind_info): New.
495 * target.h (enum unwind_info_type): New.
496 * targhooks.c (default_debug_unwind_info): New.
497 (default_except_unwind_info): New.
498 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
499 * targhooks.h: Declare them.
500 * tree-tailcall.c: Include "target.h"
501 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
502 * Makefile.in (tree-tailcall.o): Update.
503 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
504 (lhd_gcc_personality): Likewise.
506 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
507 (TARGET_EXCEPT_UNWIND_INFO): New.
508 (DWARF2_UNWIND_INFO): Update.
509 (TARGET_DEBUG_UNWIND_INFO): New.
510 * doc/tm.texi: Rebuild.
512 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
513 targetm.except_unwind_info.
515 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
516 (arm_except_unwind_info): New.
517 (arm_compute_func_type): Use it.
518 (arm_expand_prologue, thumb_pushpop): Likewise.
519 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
520 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
521 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
522 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
523 (DWARF2_UNWIND_INFO): Remove.
524 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
525 (ARM_EABI_UNWIND_TABLES): Remove.
527 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
528 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
529 (ia64_except_unwind_info): New.
530 (ia64_output_function_prologue): Use it.
531 (ia64_add_bundle_selector_before): Likewise.
532 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
533 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
534 (TARGET_UNWIND_INFO): Remove.
536 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
538 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
540 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
541 (c_parser_objc_protocol_definition): Likewise.
542 (c_parser_external_declaration): Provide dummy attribute arguments.
543 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
544 (c_parser_objc_class_definition): Handle attributes.
545 (c_parser_objc_protocol_definition): Likewise.
547 2010-09-28 Tobias Burnus <burnus@net-b.de>
551 * toplev.h (save_decoded_options, save_decoded_options_count):
552 New global variables.
553 * toplev.c (save_decoded_options, save_decoded_options_count):
556 2010-09-28 Ian Lance Taylor <iant@google.com>
558 * config/i386/i386.c (ix86_supports_split_stack): Test
559 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than
560 dwarf2out_do_cfi_asm.
562 2010-09-28 Ian Lance Taylor <iant@google.com>
565 * opts.c (decode_options): Don't test whether the target supports
566 split stack if flag_split_stack == 0.
568 2010-09-28 Jan Hubicka <jh@suse.cz>
570 * builtin-attrs.def (ATTR_LEAF): New attribute.
571 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
572 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
573 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
574 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
575 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
576 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
577 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
578 * sync-builtins.def: Annotate all builtins by leaf.
579 * omp-builtins.def: Annotate all builtins by leaf.
580 * builtins.def: Annotate relevant builtins with leaf attribute.
581 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
582 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
585 2010-09-28 Jan Hubicka <jh@suse.cz>
587 * tree-ssa-ccp.c (fold_ctor_reference): New function.
588 (fold_const_aggregate_ref): Use it.
589 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
590 into external static.
592 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
596 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
597 (ix86_solaris_return_in_memory): Remove.
598 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
599 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
600 (TARGET_SUBTARGET_DEFAULT): Redefine.
601 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
602 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
603 (TARGET_SUBTARGET_DEFAULT): Redefine.
604 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
606 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
608 2010-09-29 Alan Modra <amodra@gmail.com>
611 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
612 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
613 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
615 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
616 (rs6000_emit_prologue): Don't just create frame save info for r2,
619 2010-09-28 Richard Henderson <rth@redhat.com>
621 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
622 when 8 bytes are requested.
624 2010-09-28 Tristan Gingold <gingold@adacore.com>
626 * config/avr/avr.c (expand_prologue): Set
627 current_function_static_stack_size.
629 2010-09-28 Tristan Gingold <gingold@adacore.com>
631 * config/alpha/alpha.md: Change the initial condition of the
634 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
636 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
637 Split from *avx_<maxmin:code><mode>3.
638 (*avx_<smaxmin:code><mode>3): Ditto.
639 * config/i386/i386.md (maxmin): Remove code iterator.
641 2010-09-27 Ian Lance Taylor <iant@google.com>
643 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
644 requires assembler support for CFI directives.
646 2010-09-27 Richard Henderson <rth@redhat.com>
648 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
650 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
652 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
653 that AFTER is not in the range FROM..TO, inclusive.
655 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
656 Bernd Schmidt <bernds@codesourcery.com>
658 PR rtl-optimization/45792
659 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
660 If not all insns are to be merged, for each edge, stash the
661 next candidate after the to-be-merged insns before doing the
662 merge, and use them for the retry at the new insertion point.
663 Handle CC0 targets when retrying.
665 2010-09-27 Ian Lance Taylor <iant@google.com>
667 * common.opt (fsplit-stack): New option.
668 * opts.c (decode_options): Set flag_split_stack to final value.
669 * target.def (supports_split_stack): New hook.
670 * gcc.c (STACK_SPLIT_SPEC): Define.
671 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
672 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
673 (Code Gen Options): Document -fsplit-stack.
674 * doc/extend.texi (Function Attributes): Mention no_split_stack.
675 (Function Attributes): Document no_split_stack.
676 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
677 TARGET_SUPPORTS_SPLIT_STACK.
678 * doc/tm.texi: Rebuild.
679 * function.c (thread_prologue_and_epilogue_insns): If
680 flag_split_stack, add split stack prologue.
681 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
682 * varasm.c (saw_no_split_stack): New static variable.
683 (assemble_start_function): Set saw_no_split_stack if the function
684 has the no_split_stack attribute.
685 (file_end_indicate_split_stack): New function.
686 * output.h (file_end_indicate_split_stack): Declare.
687 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
689 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
691 * config/i386/i386.c (ix86_option_override_internal): Don't set
692 expand_builtin_va_start to NULL if -fsplit-stack.
693 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
695 (ix86_va_start): If -fsplit-stack, get overflow pointer from
696 scratch register set by prologue.
697 (ix86_code_end): If -fsplit-stack, call
698 file_end_indicate_split_stack.
699 (ix86_supports_split_stack): New static function.
700 (SPLIT_STACK_AVAILABLE): Define.
701 (split_stack_prologue_scratch_regno): New static function.
702 (split_stack_fn): New static variable.
703 (ix86_expand_split_stack_prologue): New function.
704 (ix86_live_on_entry): New static function.
705 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
706 (output_pic_addr_const): Likewise.
707 (i386_asm_output_addr_const_extra): Likewise.
708 (ix86_expand_call): Change return type to rtx. Return the new
710 (TARGET_SUPPORTS_SPLIT_STACK): Define.
711 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
712 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
713 (split_stack_prologue, split_stack_return): New insns.
714 (split_stack_space_check): New insn.
715 * config/i386/i386.h (struct machine_function): Add
716 split_stack_varargs_pointer field.
717 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
718 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
719 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
720 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
721 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
723 (ix86_expand_call): Update declaration.
725 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
727 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
728 code. Added byref, which was missing in the list of codes.
729 Explain that enumeration values are encoded as the integer type
730 that the compiler uses to store them. Explain and make examples
731 of how 'const' interacts with pointers, and the complication of
732 the encoding of 'const char *'.
733 (Legacy type encoding): New subsection, explaining that GCC emits
734 incorrect type encodings for the NeXT runtime for compatibility
736 (@@encode): New subsection, explaining @encode and particularly
737 that protocol qualifiers are not recognized inside an @encode()
739 (Method signatures): New subsection, explaining how method
740 signatures are encoded.
742 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
744 Merge from 'apple/trunk' branch on FSF servers. Removed small
745 change in build_conditional_expr that had been added when fixing
746 PR objc/27377 and which did the same check in a less complete way.
748 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
751 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
752 looking for objective-c common pointer types.
754 2005-06-22 Ziemowit Laski <zlaski@apple.com>
757 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
758 use their ObjC common type.
760 2010-09-27 Richard Guenther <rguenther@suse.de>
762 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
764 2010-09-27 Jie Zhang <jie@codesourcery.com>
766 * print-tree.c (print_node): Print in-constant-pool.
768 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
770 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
771 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
772 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
773 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
775 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
777 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
778 from pro_epilogue_adjust_stack_<mode>_{1,2}.
779 (pro_epilogue_adjust_stack_<mode>_add): Rename from
780 pro_epilogue_adjust_stack_<mode>_3.
781 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
782 renamed pro_epilogue_adjust_stack_{si,di}_add.
783 (ix86_expand_prologue): Use indirect functions. Update for renamed
784 pro_epilogue_adjust_stack_{si,di}_sub.
786 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
788 * config/i386/i386.md (movmsk_df): New insn.
789 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
790 sequence for TARGET_SSE_MATH.
792 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
794 * config/mips/mips.c (mips_builtin_decls): Declare.
795 (mips_init_builtins): Store function declarations in
797 (mips_builtin_decl): New function.
798 (TARGET_BUILTIN_DECL): Define.
800 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
801 Richard Henderson <rth@redhat.com>
803 * config/i386/cygwin.asm: Include auto-host.h.
804 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
805 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
806 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
807 alignment code from the 64-bit path. Use gas local labels.
808 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
809 from _di_2. Remove the useless constant integer argument.
810 (pro_epilogue_adjust_stack_<mode>_3): New.
811 (allocate_stack_worker_probe_<mode>): Macroize from
812 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
813 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
814 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
815 (__chkstk_ms): New function.
816 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
817 * gcc/config/i386/t-interix: Likewise.
818 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
819 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
820 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
821 * configure, config.in: Rebuild.
823 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
825 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
826 statements because of the return slot optimization.
828 2010-09-25 Anatoly Sokolov <aesok@post.ru>
830 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
831 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
832 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
833 (class_likely_spilled_p): Rename to...
834 (avr_class_likely_spilled_p): ...this. Make static. Change argument
837 2010-09-24 Jan Hubicka <jh@suse.cz>
839 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
840 (lto_symtab_resolve_symbols): Set it.
841 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
842 store resolution field in cgraph/varpool.
843 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
844 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
845 (cgraph_dump_node): Drop used_from_object_file.
846 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
847 (cgraph_function_body_availability): Use decl_replaceable_p.
848 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
849 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
850 cgraph_used_from_object_file_p.
851 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
852 cgraph_used_from_object_file_p.
853 (resolution_used_from_other_file_p): New functoin.
854 (cgraph_used_from_object_file_p): New predicate.
855 * cgraph.h: Include plugin-api.h
856 (struct cgraph_local_info): Remove used_from_object_file.
857 (struct cgraph_node): Add resolution field.
858 (struct varpool_node): Likewise; remove used_from_object_file;
859 reove const_value_known.
860 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
861 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
862 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
863 varpool_used_from_object_file_p): Declare.
864 (varpool_get_node, varpool_extra_name_alias): Update prototype.
865 * tree.h (DECL_REPLACEABLE_P): Remove.
866 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
867 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
868 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
869 input_overwrite_node, input_node, input_varpool_node): Stream
871 * expr.c (expand_expr_real_1): Use const_value_known_p
872 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
874 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
875 (function_and_variable_visibility): Set resolution for local vars
876 and functions; use varpool_used_from_object_file_p.
877 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
879 (default_binds_local_p_1): Use resolutoin info.
880 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
881 * varpool.c (varpool_get_node): Constify.
882 (const_value_known_p): Do not use vnode->const_value_known;
883 use decl_replaceable_p.
884 (varpool_finalize_decl): Do not set const_value_known.
885 (cgraph_variable_initializer_availability): Use decl_replaceable_p
886 (varpool_extra_name_alias): Return new node.
887 (varpool_used_from_object_file_p): New function.
889 2010-09-24 Richard Henderson <rth@redhat.com>
891 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
892 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
893 (do_spill): Use REG_CFA_OFFSET.
894 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
896 (ia64_expand_epilogue): Likewise.
897 (process_set): Split into ...
898 (process_cfa_adjust_cfa): this,
899 (process_cfa_register): this,
900 (process_cfa_offset): and this new function.
901 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
902 instead of REG_FRAME_RELATED_EXPR.
904 2010-09-24 Olivier Hainque <hainque@adacore.com>
906 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
908 2010-09-24 Jan Hubicka <jh@suse.cz>
910 * doc/extend.texi: (attribute leaf): Document.
911 * tree.c (local_define_builtin): Handle ECF_LEAF.
912 (build_common_builtin_nodes): Set ECF_LEAF where needed.
913 * tree.h (ECF_LEAF): New.
914 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
915 overwrittable and unavailable functions.
916 (ipa_init): Put all_module_statics into optimization_summary_obstack.
917 (copy_global_bitmap): Do not copy all_module_statics.
918 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
919 (propagate): Handle overwritable and unavailable leaf functions;
920 initialize global info for overwritable and unavailable leaf functions;
921 do not free all module statics.
922 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
924 * calls.c (flags_from_decl_or_type): Handle leaf.
925 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
928 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
930 * gengtype.c: Reindented.
931 * gengtype.h: Reindented.
932 * gengtype-parse.c: Reindented.
934 2010-09-24 Jan Hubicka <jh@suse.cz>
936 PR tree-optimization/45738
937 PR tree-optimization/45741
938 * expr.c (string_constant): Allow CONST_DECL too;
939 check that DECL_INITIAL is set.
940 * varpool.c (const_value_known_p): Only look into VAR_DECL
943 2010-09-24 Joseph Myers <joseph@codesourcery.com>
945 * common.opt (undef): New.
947 2010-09-24 Jakub Jelinek <jakub@redhat.com>
950 * rtl.h (enum global_rtl_index): Add
951 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
952 (LAST_VIRTUAL_POINTER_REGISTER): Define.
953 (virtual_preferred_stack_boundary_rtx,
954 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
955 (LAST_VIRTUAL_REGISTER): Increase by one.
956 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
957 instead of LAST_VIRTUAL_REGISTER.
958 * function.c (instantiate_new_reg): Handle
959 virtual_preferred_stack_boundary_rtx.
960 * emit-rtl.c (init_virtual_regs): Handle
961 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
962 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
963 * explow.c (round_push): If crtl->preferred_stack_boundary
964 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
965 virtual_preferred_stack_boundary_rtx alignment instead of
966 crtl->preferred_stack_boundary alignment.
967 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
968 macros. Never decrease crtl->preferred_stack_boundary,
969 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
970 instead of PREFERRED_STACK_BOUNDARY. Don't modify
971 stack_pointer_delta in dynamic allocation, even when size
973 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
975 * print-rtl.c (print_rtx): Handle
976 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
977 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
978 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
979 * config/frv/frv.c (frv_emit_movsi): Likewise.
980 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
981 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
985 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
988 * calls.c (expand_call): Make sure that all variable sized
989 adjustments are multiple of preferred stack boundary after
992 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
993 Dominique Dhumieres <dominiq@lps.ens.fr>
996 * gcc/config/darwin-driver.c (darwin_default_min_version):
997 Adjust size passed to memcpy in two places.
999 2010-09-24 Richard Guenther <rguenther@suse.de>
1001 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1002 Make sure to not call set_type_context with error_mark_node.
1003 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1005 2010-09-24 Richard Guenther <rguenther@suse.de>
1007 * Makefile.in (OBJS-onestep): Remove.
1008 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1009 (libbackend.a): Remove onestep support.
1010 (libbackend.o): Remove.
1011 * configure.ac (--enable-intermodule): Remove.
1012 * configure: Regenerate.
1014 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
1016 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1017 reaching the end of a block if it occurs at a DEBUG_INSN.
1019 2010-09-09 Tristan Gingold <gingold@adacore.com>
1022 * config/vms/vms-crt0-64.c: Removed.
1023 * config/vms/vms-crt0.c: Removed.
1024 * config/vms/vms-psxcrt0-64.c: Removed.
1025 * config/vms/vms-psxcrt0.c: Removed.
1026 * config/vms/vms-ucrt0.c: New file.
1027 * config/vms/t-vms64: Removed.
1028 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
1029 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1030 * config.gcc (alpha-dec-vms): Use t-vms.
1032 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1034 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1035 underfull hbox in DVI output.
1036 (-fobjc-class-cxx-cdtors): Same change.
1037 (-fobjc-exceptions): Tidied up documentation. Explain what the
1038 option does, but moved the (lenghty) description of the exception
1039 syntax into objc.texi.
1040 (-fobjc-gc): Explain that the option is not useful with the GNU
1042 (-fzero-link): Explain that the GNU runtime always works in
1044 * doc/objc.texi: All sections: simplified @node declarations
1045 removing specification of next, previous, up node.
1046 (Objective-C): Updated introduction.
1047 (Garbage Collection): Updated. The bohem-gc library is now
1048 included in gcc itself. Mention that this section only applies to
1049 the GNU Objective-C runtime.
1050 (compatibility_alias): Small tidy up.
1051 (Exceptions): New section mostly containing text previously in the
1052 description of the -fobjc-exception command-line option.
1053 (Synchronization): Same.
1055 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
1057 * config/i386/i386.md (ix86_code_end): Move the initialization of
1058 xops array near the consumer. Use AX_REG and SP_REG instead of
1059 numerical constants.
1061 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1063 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1064 method [methodname]' for an Objective-C method instead of the less
1065 satisfactory 'too many arguments to function' (with no method name).
1067 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
1069 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1070 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1071 (execute_update_addresses_taken): Remove parameter. Execute the
1072 optimization unconditionally.
1073 * passes.c (execute_function_todo): Call execute_update_addresses_taken
1074 unconditionally if TODO_rebuild_alias is set, else only when optimizing
1075 if TODO_update_address_taken is set.
1078 2010-09-23 Anatoly Sokolov <aesok@post.ru>
1080 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1081 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1082 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1083 (arm_output_addr_const_extra): Make static.
1085 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
1087 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1088 define as unspec_volatile.
1089 ("nops"): Define as unspec_volatile. Use fputs to write to
1090 asm_out_file directly. Output NOPs on separate lines using while loop.
1091 * config/i386/i386.c (ix86_code_end): Use fputs to write to
1092 asm_out_file directly. Output NOPs on separate lines using while loop.
1094 2010-09-23 Richard Guenther <rguenther@suse.de>
1096 PR tree-optimization/45565
1097 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1098 Make sure to adjust the fndecl before replacing the stmt.
1100 2010-09-23 Richard Guenther <rguenther@suse.de>
1103 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1104 gimplifying MEM_REF.
1106 2010-09-23 Alan Modra <amodra@gmail.com>
1108 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1109 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1111 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
1113 PR rtl-optimization/44374
1114 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1115 * df-core.c (df_set_bb_dirty): Set it.
1116 * ifcvt.c (find_memory): Remove function.
1117 (dead_or_predicable): Use can_move_insns_across.
1118 * df.h (can_move_insns_across): Declare function.
1119 * cfgcleanup.c (block_was_dirty): New static variable.
1120 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1121 than df_get_bb_dirty.
1122 (try_head_merge_bb): New static function.
1123 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
1125 * df-problems.c: Include "target.h"
1126 (df_simulate_find_uses): New static function.
1127 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1128 (find_memory, find_memory_store): New static functions.
1129 (can_move_insns_across): New function.
1130 * Makefile.in (df-problems.o): Update dependencies.
1132 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1135 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1136 is specified and the suffix of the file isn't ".c".
1137 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1139 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1141 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1142 * doc/cppopts.texi: Fix markup of index entry.
1143 * doc/extend.texi (Constructing Calls): Fix markup of
1144 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1145 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1146 (Vague Linkage, C++ Attributes): Fix markup of index entries and
1148 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
1150 (C Dialect Options, C++ Dialect Options, Warning Options)
1151 (Debugging Options, Spec Files, Darwin Options)
1152 (i386 and x86-64 Options, MIPS Options)
1153 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1154 index entries, avoid abbreviations, allow URLs to wrap, avoid
1155 long lines, avoid overlong pages from long @itemx lists.
1156 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1157 * doc/standards.texi (Standards): Likewise.
1158 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1160 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1162 * opts-common.c (prune_options): Make static. Work with decoded
1164 (decode_cmdline_options_to_array): Call prune_options. Don't
1165 resize option array here.
1166 * opts.h (prune_options): Remove prototype.
1167 * gcc.c (process_command): Take decoded options; don't call
1168 decode_cmdline_options_to_array here. Use decoded options for argv[0].
1169 (main): Call decode_cmdline_options_to_array here instead of
1170 prune_options. Update call to process_command.
1171 * config/darwin-driver.c: Include opts.h.
1172 (darwin_default_min_version): Work with decoded options. Don't
1173 handle -b or -V here.
1174 * config/darwin.h (darwin_default_min_version): Update prototype.
1175 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1176 darwin_default_min_version.
1177 * config/i386/cygwin.h (mingw_scan): Update prototype.
1178 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1179 * config/i386/cygwin1.c: Include opts.h.
1180 (mingw_scan): Work with decoded options.
1181 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1182 * config/t-darwin (darwin-driver.o): Update dependencies.
1184 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1186 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1187 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1188 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1189 -force-link, -force-link=, -language, -language=,
1190 -library-directory, -library-directory=, -no-canonical-prefixes,
1191 -no-standard-libraries, -no-warnings, -optimize, -output,
1192 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1193 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1194 -print-file-name=, -print-libgcc-file-name,
1195 -print-multi-directory, -print-multi-lib,
1196 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1197 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1198 -profile, -save-temps, -shared, -specs, -specs=, -static,
1199 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1201 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1202 * gcc.c (A Short Introduction to Adding a Command-Line Option):
1204 (cc1_options): Correct specs for passing down --help,
1205 --target-help and --help=*. Add spec for passing down --version.
1206 (struct option_map, option_map, target_option_translations,
1207 translate_options): Remove.
1208 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1209 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1210 OPT_fhelp_ and OPT_ftarget_help.
1211 (process_command): Don't call translate_options. Call
1212 decode_cmdline_options_to_array before checking for
1213 -no-canonical-prefixes using decoded options.
1214 * opts-common.c (tm.h): Update comment on #include.
1215 (find_opt): Allow abbreviations of long options.
1216 (struct option_map, option_map): New.
1217 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1219 (target_option_translations): New.
1220 (decode_cmdline_options_to_array): Handle
1221 TARGET_OPTION_TRANSLATE_TABLE in driver.
1222 * opts.c (common_handle_option): Don't handle OPT_fhelp,
1223 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1225 2010-09-22 Richard Guenther <rguenther@suse.de>
1227 * tree-inline.c (optimize_inline_calls): Schedule cleanups
1228 only if we inlined something. Block compaction and conditional
1229 folding are done by cfg cleanup. Schedule update-address-taken.
1230 (tree_function_versioning): Remove redundant call to number_blocks.
1231 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1232 folding is done by cfg cleanup.
1233 * passes.c (init_optimization_passes): Remove update-address-taken
1234 pass after IPA inlining.
1236 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1238 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1239 to update conditions. Fix reg_mode[] check.
1241 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
1243 * config/picochip/picochip.md (movhicc): Use expand to check whether
1244 movhicc is available and split it after reload.
1246 2010-09-22 Richard Guenther <rguenther@suse.de>
1248 * tree-ssanames.c (release_dead_ssa_names): Do not remove
1250 * passes.c (init_optimization_passes): Remove early CFG cleanup.
1251 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1252 (pass_cleanup_cfg): Likewise.
1253 (execute_fixup_cfg): Cleanup.
1254 * tree-pass.h (pass_cleanup_cfg): Remove.
1256 2010-09-22 Martin Jambor <mjambor@suse.cz>
1258 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1259 builtins if it is true.
1260 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1263 2010-09-22 Martin Jambor <mjambor@suse.cz>
1265 * tree-sra.c (struct access): New field grp_no_warning.
1266 (create_access_replacement): Set TREE_NO_WARNING according to
1268 (create_artificial_child_access): Use build_ref_for_model and set
1269 grp_no_warning if build_user_friendly_ref_for_offset fails.
1270 (propagate_subaccesses_across_link): Likewise.
1272 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1275 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1278 2010-09-22 Tristan Gingold <gingold@adacore.com>
1280 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1282 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
1284 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1285 * config/i386/i386.c (decide_alg): Update for rename.
1287 2010-09-22 Jakub Jelinek <jakub@redhat.com>
1289 PR rtl-optimization/45739
1290 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1291 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1293 2010-09-21 Anatoly Sokolov <aesok@post.ru>
1295 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1296 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1298 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1299 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1301 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1304 * c-parser.c (c_parser_objc_method_definition): Check the return
1305 value of objc_start_method_definition and if false is returned,
1306 parse the method definition but emit no code.
1308 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1311 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1312 call objc_get_interface_ivars ().
1314 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
1317 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1318 static chain-register is used for 64-bit.
1320 2010-09-21 Richard Guenther <rguenther@suse.de>
1322 * dwarf2out.c (is_cu_die): New function.
1323 (add_pubtype): Use it.
1324 (gen_subprogram_die): Likewise.
1325 (gen_struct_or_union_type_die): Likewise.
1326 (dwarf2out_finish): Likewise.
1327 (comp_unit_die): Rename to ...
1328 (single_comp_unit_die): ... this.
1329 (comp_unit_die): New function lazily constructing and
1330 returning single_comp_unit_die.
1331 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1332 base_type_die, subrange_type_die, modified_type_die,
1333 lower_bound_default, add_bound_info, add_prototyped_attribute,
1334 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1335 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1336 force_decl_die, gen_namespace_die, dwarf2out_decl,
1337 dwarf2out_start_source_file, dwarf2out_end_source_file,
1338 prune_unused_types, dwarf2out_finish): Use it.
1339 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1340 the global list of translation-unit decls.
1341 (dwarf2out_init): Do not create single_comp_unit_die here.
1342 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1344 2010-09-21 Richard Guenther <rguenther@suse.de>
1346 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1349 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
1351 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1352 (qhs_extenddi_cstr): Likewise.
1353 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1354 them for the source operand.
1356 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
1358 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1359 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
1360 (ix86_split_ashr): Ditto.
1361 (ix86_split_lshr): Ditto.
1363 2010-09-21 Richard Guenther <rguenther@suse.de>
1365 PR tree-optimization/45580
1366 * tree-ssa-propagate.c (substitute_and_fold): Always replace
1368 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1369 virtuals fold the call into a regular indirect one.
1371 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1373 PR rtl-optimization/42775
1374 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1375 scheduling is enabled.
1377 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1379 PR rtl-optimization/45728
1380 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1381 gen_lowpart_common first and if that fails, force_reg first
1382 before calling gen_lowpart.
1385 * cfgexpand.c (expand_one_stack_var_at): Use
1386 crtl->max_used_stack_slot_alignment as max_align, instead
1387 of maximum of that and PREFERRED_STACK_BOUNDARY.
1388 Don't call update_stack_alignment.
1390 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1392 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1393 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1394 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1395 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1396 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1397 (build_nonstandard_integer_type): Likewise.
1398 (build_range_type_1): New function, built from...
1399 (build_range_type): ...this. Call build_range_type_1.
1400 (build_nonshared_range_type): New function.
1401 (build_array_type_1): New function, built from...
1402 (build_array_type: ...this. Call build_array_type_1.
1403 (build_nonshared_array_type): New function.
1404 * tree.h (build_nonshared_range_type): Declare.
1405 (build_nonshared_array_type): Likewise.
1407 2010-09-20 Anatoly Sokolov <aesok@post.ru>
1409 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1410 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1411 (arm_class_likely_spilled_p): New function.
1413 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
1415 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1417 (ix86_split_ashl): Ditto.
1418 (ix86_split_ashr): Ditto.
1419 (ix86_split_lshr): Ditto.
1420 (ix86_adjust_counter): Ditto.
1422 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
1424 * c-family/c-common.h (constant_string_class): Documented with
1425 comment identical to the one already in c-common.c.
1427 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1429 * dwarf2out.c (any_cfis_emitted): New static variable.
1430 (add_fde_cfi): Set it.
1431 (dwarf2out_frame_debug): Clear it before processing,
1432 if it is set afterwards, flush any queued reg saves.
1435 * dwarf2out.c (add_accessibility_attribute): Assume
1436 DW_ACCESS_private as the default for dwarf_version > 2
1437 and DW_TAG_class_type parent.
1438 (gen_inheritance_die): Assume DW_ACCESS_public as the default
1439 for dwarf_version > 2 and parent other than DW_TAG_class_type.
1441 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
1444 * arm.md (arm_movt): Only enable on machines with MOVT.
1446 2010-09-20 Jie Zhang <jie@codesourcery.com>
1448 * config/arm/arm.c (arm_address_offset_is_imm): New.
1449 (arm_early_store_addr_dep): New.
1450 (arm_early_load_addr_dep): New.
1451 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1452 (arm_early_load_addr_dep): Declare.
1453 (arm_address_offset_is_imm): Declare.
1454 * config/arm/cortex-m4.md: New file.
1455 * config/arm/cortex-m4-fpu.md: New file.
1456 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1457 (attr generic_sched): Exclude cortexm4.
1458 (attr generic_vfp): Exclude cortexm4.
1460 2010-09-20 Richard Guenther <rguenther@suse.de>
1463 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1465 2010-09-20 Jan Hubicka <jh@suse.cz>
1467 PR tree-optimize/45605
1468 * cgraph.h (const_value_known_p): Declare.
1469 (varpool_decide_const_value_known): Remove.
1470 * tree-ssa-ccp.c (get_base_constructor): Use it.
1471 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
1472 * expr.c (string_constant): Likewise.
1473 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1474 * ipa.c (ipa_discover_readonly_nonaddressable_var,
1475 function_and_variable_visibility): Likewise.
1476 * gimplify.c (gimplify_call_expr): Likewise.
1477 * gimple-fold.c (get_symbol_constant_value): Likewise.
1478 * varpool.c (varpool_decide_const_value_known): Replace by...
1479 (const_value_known_p): ... this one; handle other kinds of DECLs
1480 too and work for automatic vars.
1481 (varpool_finalize_decl): Use const_value_known_p.
1483 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
1486 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
1488 2010-09-20 Richard Guenther <rguenther@suse.de>
1490 PR tree-optimization/45705
1491 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
1493 2010-09-20 Jakub Jelinek <jakub@redhat.com>
1495 PR rtl-optimization/45695
1496 * combine.c (try_combine): When splitting a two set pattern,
1497 make sure the pattern which will be put into i2 doesn't use REGs
1498 or MEMs set by insns in between i2 and i3.
1500 2010-09-19 Jan Hubicka <jh@suse.cz>
1503 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
1504 processing same node twice.
1506 2010-09-19 Anatoly Sokolov <aesok@post.ru>
1508 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
1509 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1510 (bfin_class_likely_spilled_p): New function
1512 2010-09-19 Ira Rosen <irar@il.ibm.com>
1514 PR tree-optimization/45714
1515 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
1516 created in vectorizable_call instead of the original statement in
1519 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
1521 * config/i386/i386-protos.h (split_double_mode): New prototype.
1522 (split_di, split_ti): Remove prototypes.
1523 * config/i386/i386.c (split_double_mode): New function.
1524 (split_di, split_ti): Remove.
1525 (ix86_expand_branch): Use split_double_mode.
1526 (ix86_split_to_parts): Ditto.
1527 (ix86_split_ashl): Ditto.
1528 (ix86_split_ashr): Ditto.
1529 (ix86_split_lshr): Ditto.
1530 (ix86_force_to_memory): Ditto.
1531 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
1533 2010-09-18 Jan Hubicka <jh@suse.cz>
1535 PR tree-optimization/45453
1536 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
1537 virtual functions are reachable.
1538 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
1539 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1540 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
1541 when modifying function.
1543 2010-09-18 Jan Hubicka <jh@suse.cz>
1545 PR tree-optimization/45605
1546 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
1547 * gimple-fold.c (static_object_in_other_unit_p): New function.
1548 (canonicalize_constructor_val): Use it.
1549 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
1551 (gimple_fold_obj_type_ref_known_binfo): Use
1552 static_object_in_other_unit_p.
1554 2010-09-18 Richard Guenther <rguenther@suse.de>
1556 PR tree-optimization/45709
1557 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
1558 insertions until after all PHI nodes of the block are processed.
1560 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
1562 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
1564 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
1566 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
1568 2010-09-18 Richard Guenther <rguenther@suse.de>
1570 PR tree-optimization/45709
1571 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
1573 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
1575 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
1576 (dot_deps_stmt): Same.
1577 * graphite-poly.c (dot_lst): Same.
1578 * graphite-scop-detection.c (dot_all_scops): Same.
1581 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
1584 2009-12-16 Ben Elliston <bje@au.ibm.com>
1586 * tree-data-ref.c (dot_rdg_1): Added back.
1587 (dot_rdg): Same. Added "#if 0" around system call.
1589 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1590 Richard Henderson <rth@redhat.com>
1592 * config/i386/i386.c (initial_ix86_tune_features): Add
1593 X86_TUNE_PAD_SHORT_FUNCTION.
1594 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
1595 (ix86_count_insn): New.
1596 (ix86_pad_short_function): Likewise.
1597 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
1599 * config/i386/i386.h (ix86_tune_indices): Add
1600 X86_TUNE_PAD_SHORT_FUNCTION.
1601 (TARGET_PAD_SHORT_FUNCTION): New.
1603 * config/i386/i386.md (UNSPEC_NOPS): New.
1606 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1609 * calls.c (expand_call): Make sure that all variable sized
1610 adjustments are multiple of preferred stack boundary after
1613 2010-09-17 DJ Delorie <dj@redhat.com>
1615 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
1616 passed an invalid value, print an error instead of ICEing.
1617 (valid_psw_flag): New.
1618 (rx_expand_builtin): Call it for setpsw/clrpsw.
1619 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
1621 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
1622 (bitclr_in_memory): Likewise.
1623 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
1625 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1628 * cfgexpand.c (update_stack_alignment): New.
1629 (get_decl_align_unit): Use it.
1630 (expand_one_stack_var_at): Call update_stack_alignment.
1632 2010-09-17 Richard Guenther <rguenther@suse.de>
1634 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
1635 Properly copy the read string.
1637 2010-09-17 Joseph Myers <joseph@codesourcery.com>
1639 * doc/options.texi (Variable): Document.
1640 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
1641 generate target_flags declarations explicitly. Don't define
1642 VarExists variables for the driver.
1643 * common.opt (target_flags): New Variable record.
1644 (flag_dump_unnumbered, flag_dump_unnumbered_links,
1645 flag_var_tracking, flag_var_tracking_assignments,
1646 flag_var_tracking_assignments_toggle): Don't mark variables with
1648 * config/i386/i386.c (ix86_isa_flags): Don't define here.
1649 * config/i386/i386.opt (ix86_isa_flags): Define here.
1650 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
1651 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
1653 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
1654 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
1655 Only define for generator programs.
1656 * rtlanal.c (target_flags): Remove.
1657 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
1658 flag_var_tracking_assignments_toggle): Remove.
1660 2010-09-17 Michael Matz <matz@suse.de>
1662 PR tree-optimization/43432
1663 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1664 Accept backwards consecutive accesses.
1665 (vect_create_data_ref_ptr): If step is negative generate
1667 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
1668 (perm_mask_for_reverse, reverse_vec_elements): New functions.
1669 (vectorizable_load): Handle loads with negative steps when easily
1672 2010-09-03 Jan Hubicka <jh@suse.cz>
1674 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
1676 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
1678 * config/v850/v850.c (v850_function_value_regno_p): Make static.
1679 Adjust comments. Declare.
1680 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1681 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
1683 2010-09-17 Richard Guenther <rguenther@suse.de>
1685 * common.opt (combine): Remove.
1686 * gcc.c (default_compilers): Remove specs testing combine.
1687 The C compilers no longer can combine.
1688 (option_map): Remove -combine.
1689 (display_help): Remove -combine.
1690 (driver_handle_option): Remove OPT_combine handling.
1691 (compile_input_file_p): Remove.
1692 (do_spec): Remove code concerning combine.
1694 * doc/invoke.texi: Remove traces of -combine.
1695 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
1697 2010-09-17 Richard Guenther <rguenther@suse.de>
1700 * builtins.c (fold_builtin_memory_op): Always properly adjust
1701 alignment of memory accesses.
1703 2010-09-16 Jan Hubicka <jh@suse.cz>
1705 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
1708 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
1710 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
1712 * config/i386/i386.c (predict_jump): Add prototype.
1713 (flag_opts): Add -m8bit-idiv.
1714 (ix86_split_idivmod): New.
1716 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
1717 Add 2 splitters for SI/DI mode divide.
1718 (divmod<mode>4_1): New pattern.
1719 (udivmod<mode>4_1): Likewise.
1720 (testdi_ccno_1): Likewise.
1722 * config/i386/i386.opt (m8bit-idiv): New.
1724 * doc/invoke.texi: Document -m8bit-idiv.
1726 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
1729 * config/i386/i386.c (min_insn_size): Moved out of the
1730 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
1732 2010-09-16 Jan Hubicka <jh@suse.cz>
1734 * lto-cgraph.c (lto_output_node): Fix handling of clones.
1735 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
1736 unreachable clones with reachable clones.
1737 * tree-inline.c (copy_bb): Fix sanity checking when producing
1740 2010-09-16 Anatoly Sokolov <aesok@post.ru>
1742 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
1743 (TARGET_MEMORY_MOVE_COST): Define.
1744 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
1746 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
1748 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
1749 maybe_tidy_empty_bb.
1752 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
1753 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1755 2010-09-16 Joseph Myers <joseph@codesourcery.com>
1757 * target.def (target_option.optimization): New hook.
1758 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
1759 TARGET_OPTION_OPTIMIZATION hook.
1760 * doc/tm.texi: Regenerate.
1761 * hooks.c (hook_void_int_int): New.
1762 * hooks.h (hook_void_int_int): Declare.
1763 * opts.c: Don't include tm_p.h.
1764 (decode_options): Use targetm.target_option.optimization instead
1765 of OPTIMIZATION_OPTIONS.
1766 * system.h (OPTIMIZATION_OPTIONS): Poison.
1767 * config/arm/arm-protos.h (arm_optimization_options): Remove.
1768 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
1769 (arm_optimization_options): Rename to arm_option_optimization.
1771 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
1772 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
1773 (cris_option_optimization): New.
1774 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
1775 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
1776 (crx_option_optimization): New.
1777 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
1778 * config/frv/frv-protos.h (frv_optimization_options): Remove.
1779 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
1780 (frv_optimization_options): Rename to frv_option_optimization.
1782 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
1783 * config/h8300/h8300.c (h8300_option_optimization): New.
1784 (TARGET_OPTION_OPTIMIZATION): Define.
1785 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
1786 * config/i386/i386-protos.h (optimization_options): Remove.
1787 * config/i386/i386.c (optimization_options): Rename to
1788 ix86_option_optimization. Make static.
1789 (TARGET_OPTION_OPTIMIZATION): Define.
1790 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
1791 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
1792 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
1793 (ia64_optimization_options): Rename to ia64_option_optimization.
1794 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
1795 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
1796 commented-out definition.
1797 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1798 instead of OPTIMIZATION_OPTIONS.
1799 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
1800 (m32r_option_optimization): New.
1801 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
1802 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1804 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
1805 (mcore_option_optimization): New.
1806 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
1807 * config/mep/mep-protos.h (mep_optimization_options): Remove.
1808 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
1809 (mep_optimization_options): Rename to mep_option_optimization.
1810 Make static. Take unused level and size parameters.
1811 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
1812 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
1813 (mmix_option_optimization): New.
1814 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
1815 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
1816 (pdp11_option_optimization): New.
1817 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
1818 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
1819 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
1820 (optimization_options): Rename to rs6000_option_optimization.
1822 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
1823 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
1824 * config/rx/rx.c (rx_set_optimization_options): Rename to
1825 rx_option_optimization. Make static. Take unused level and size
1827 (TARGET_OPTION_OPTIMIZATION): Define.
1828 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
1829 * config/s390/s390-protos.h (optimization_options): Remove.
1830 * config/s390/s390.c (optimization_options): Rename to
1831 s390_option_optimization. Make static. Don't mark size parameter
1833 (TARGET_OPTION_OPTIMIZATION): Define.
1834 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
1835 * config/sh/sh-protos.h (sh_optimization_options): Remove.
1836 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
1837 (sh_optimization_options): Rename to sh_option_optimization. Make
1838 static. Don't mark parameters unused.
1839 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
1840 * config/spu/spu-protos.h (spu_optimization_options): Remove.
1841 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
1842 (spu_optimization_options): Rename to spu_option_optimization.
1844 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
1845 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
1846 (v850_option_optimization): New.
1847 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
1848 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
1849 (xtensa_option_optimization): New.
1850 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
1852 2010-09-16 Joseph Myers <joseph@codesourcery.com>
1854 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
1855 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
1856 * doc/tm.texi: Regenerate.
1857 * system.h (OVERRIDE_OPTIONS): Poison.
1858 * target.def (override): Default to hook_void_void.
1859 * targhooks.c (default_target_option_override): Remove.
1860 * genmodes.c, machmode.def: Update comments mentioning
1862 * config/alpha/alpha-modes.def: Update comment mentioning
1863 alpha_override_options.
1864 * config/alpha/alpha-protos.h (override_options): Remove.
1865 * config/alpha/alpha.c (override_options): Rename to
1866 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
1867 (TARGET_OPTION_OVERRIDE): Define.
1868 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
1869 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
1870 of OVERRIDE_OPTIONS.
1871 * config/arc/arc-protos.h (arc_init): Remove.
1872 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
1873 (arc_init): Rename to arc_option_override. Make static.
1874 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
1875 (OVERRIDE_OPTIONS): Remove.
1876 * config/arm/arm-protos.h (arm_override_options): Remove.
1877 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
1878 (arm_override_options): Rename to arm_option_override. Make
1879 static. Call SUBTARGET_OVERRIDE_OPTIONS.
1880 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
1881 * config/arm/arm.md: Update comment referring to arm_override_options.
1882 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
1883 instead of OVERRIDE_OPTIONS.
1884 * config/avr/avr-protos.h (avr_override_options): Remove.
1885 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
1886 (avr_override_options): Rename to avr_option_override. Make static.
1887 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
1888 * config/bfin/bfin-protos.h (override_options): Remove (twice).
1889 * config/bfin/bfin.c (override_options): Rename to
1890 bfin_option_override. Make static.
1891 (TARGET_OPTION_OVERRIDE): Define.
1892 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
1893 * config/cris/cris-protos.h (cris_override_options): Remove.
1894 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
1895 (cris_override_options): Rename to cris_option_override. Make static.
1896 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
1897 * config/frv/frv-protos.h (frv_override_options): Remove.
1898 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
1899 (frv_override_options): Rename to frv_option_override. Make static.
1900 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
1901 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
1902 * config/h8300/h8300.c (h8300_init_once): Rename to
1903 h8300_option_override. Make static.
1904 (TARGET_OPTION_OVERRIDE): Define.
1905 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
1906 * config/i386/i386-protos.h (override_options): Remove.
1907 * config/i386/i386.c (override_options): Rename to
1908 ix86_option_override_internal. Make static. Comments referring
1909 to this function and callers changed.
1910 (ix86_option_override): New.
1911 (TARGET_OPTION_OVERRIDE): Define.
1912 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
1913 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
1914 * config/ia64/ia64.c (ia64_file_start): Update comment referring
1915 to ia64_override_options.
1916 * config/iq2000/iq2000-protos.h (override_options): Remove.
1917 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
1918 (override_options): Rename to iq2000_option_override. Make static.
1919 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
1920 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
1921 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
1922 (lm32_override_options): Rename to lm32_option_override. Make static.
1923 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
1924 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
1925 (m32r_option_override): New.
1926 (m32r_init): Update comment.
1927 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
1928 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
1929 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
1930 (m68hc11_override_options): Rename to m68hc11_option_override.
1931 Make static. Return void.
1932 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
1933 * config/m68k/m68k-protos.h (override_options): Remove.
1934 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
1935 (override_options): Rename to m68k_option_override. Make static.
1936 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
1937 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
1938 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
1939 (mcore_override_options): Rename to mcore_option_override. Make
1941 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
1942 * config/mep/mep-protos.h (mep_override_options): Remove.
1943 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
1944 (mep_override_options): Rename to mep_option_override. Make static.
1945 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
1946 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
1947 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
1948 (mmix_override_options): Rename to mmix_option_override. Make static.
1949 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
1950 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
1951 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
1952 (mn10300_override_options): Rename to mn10300_option_override.
1954 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
1955 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
1956 * config/moxie/moxie.c (moxie_override_options): Rename to
1957 moxie_option_override. Make static.
1958 (TARGET_OPTION_OVERRIDE): Define.
1959 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
1960 * config/picochip/picochip-protos.h (picochip_override_options):
1961 Remove. Update comment referring to picochip_override_options.
1962 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
1963 (picochip_override_options): Rename to picochip_option_override.
1964 Make static. Update comment and definition of
1965 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
1966 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
1967 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1968 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1969 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1970 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1971 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1972 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
1973 instead of OVERRIDE_OPTIONS.
1974 * config/rs6000/rs6000-modes.def: Update comment referring to
1975 rs6000_override_options.
1976 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
1977 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
1978 (rs6000_override_options): Rename to
1979 rs6000_option_override_internal. Make static. Commented
1980 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
1981 (rs6000_option_override): New.
1982 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
1983 instead of OVERRIDE_OPTIONS.
1984 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1985 * config/s390/s390-protos.h (override_options): Remove.
1986 * config/s390/s390.c (override_options): Rename to
1987 s390_option_override. Make static.
1988 (TARGET_OPTION_OVERRIDE): Define.
1989 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
1990 * config/score/score-protos.h (score_override_options): Remove.
1991 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
1992 (score_override_options): Rename to score_option_override. Make
1994 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
1995 Update comment referring to override_options.
1996 * config/score/score3.c (score3_override_options): Rename to
1997 score3_option_override.
1998 * config/score/score3.h (score3_override_options): Rename to
1999 score3_option_override.
2000 * config/score/score7.c (score7_override_options): Rename to
2001 score7_option_override.
2002 * config/score/score7.h (score7_override_options): Rename to
2003 score7_option_override.
2004 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2005 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2006 (sparc_override_options): Rename to sparc_option_override. Make
2007 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2008 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2009 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2010 instead of OVERRIDE_OPTIONS.
2011 * config/spu/spu-protos.h (spu_override_options): Remove.
2012 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2013 (spu_override_options): Rename to spu_option_override. Make
2015 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2016 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2018 * config/vax/vax-protos.h (override_options): Remove.
2019 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2020 (override_options): Rename to vax_option_override. Make static.
2021 Call SUBTARGET_OVERRIDE_OPTIONS.
2022 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2023 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2024 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2025 * config/xtensa/xtensa-protos.h (override_options): Remove.
2026 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2027 (override_options): Rename to xtensa_option_override. Make static.
2028 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2030 2010-09-16 Richard Guenther <rguenther@suse.de>
2032 PR tree-optimization/45623
2033 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2034 (get_constraint_for_component_ref): If computing a constraint
2035 for the rhs handle type punning through unions.
2036 (get_constraint_for_address_of): Adjust.
2037 (get_constraint_for_1): Likewise.
2038 (get_constraint_for): Likewise.
2039 (get_constraint_for_rhs): New function.
2040 (do_structure_copy): Adjust.
2041 (make_constraint_to): Likewise.
2042 (handle_const_call): Likewise.
2043 (find_func_aliases): Likewise.
2044 (process_ipa_clobber): Likewise.
2045 (create_variable_info_for): Likewise.
2047 2010-09-16 Ira Rosen <irar@il.ibm.com>
2049 * tree-vectorizer.c: Fix documentation.
2050 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2051 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2052 is_pattern_stmt_p, is_loop_header_bb_p,
2053 stmt_vinfo_set_inside_of_loop_cost,
2054 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2055 known_alignment_for_access_p): Likewise.
2056 * tree-vect-loop.c: Fix documentation.
2057 (vect_get_cost): Start function name from new line.
2058 * tree-vect-data-refs.c: Fix documentation.
2059 * tree-vect_stmts.c: Likewise.
2060 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2061 (vectorizable_store): Free vec_oprnds if allocated.
2062 (vectorizable_condition): Initialize several variables to avoid
2064 * tree-vect-slp.c: Fix documentation.
2066 2010-09-16 Richard Guenther <rguenther@suse.de>
2068 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2069 is TS_TRANSLATION_UNIT_DECL.
2070 (initialize_tree_contains_struct): Adjust.
2071 (all_translation_units): New global vector.
2072 (build_translation_unit_decl): New function.
2073 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2074 (struct tree_translation_unit_decl): New.
2075 (all_translation_units): Declare.
2076 (union tree_node): Add translation_unit_decl member.
2077 (build_translation_unit_decl): Declare.
2078 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2079 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2081 (pack_value_fields): Call it.
2082 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2083 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2084 (lto_output_tree_pointers): Call it.
2085 * lto-streamer-in.c (lto_input_tree_ref): Handle references
2086 to TRANSLATION_UNIT_DECL.
2087 (unpack_ts_translation_unit_decl_value_fields): New function.
2088 (unpack_value_fields): Call it.
2089 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2090 (lto_input_tree_pointers): Call it.
2091 * lto-streamer.c (check_handled_ts_structures): Adjust.
2092 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2093 * c-decl.c (all_translation_units): Remove.
2094 (pop_scope): Use build_translation_unit_decl.
2095 (collect_all_refs): Adjust.
2096 (for_each_global_decl): Likewise.
2097 (c_write_global_declarations): Likewise.
2099 2010-09-16 Jakub Jelinek <jakub@redhat.com>
2102 * fold-const.c (fold_checksum_tree): Change slot from const void **
2103 to void **, use CONST_CAST_TREE to store into *slot.
2105 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2107 * config/i386/i386.md: Remove unneeded empty conditions and
2108 preparation statements from expanders.
2109 * config/i386/mmx.md: Ditto.
2110 * config/i386/sse.md: Ditto.
2112 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2114 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2116 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2118 PR rtl-optimization/45593
2119 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2120 insns that were in delay slots as stand-alone insns.
2122 2010-09-15 Ian Lance Taylor <iant@google.com>
2124 * incpath.c (remove_duplicates): If name is not a directory, issue
2125 a warning rather than an error.
2127 2010-09-15 Martin Jambor <mjambor@suse.cz>
2130 * tree-sra.c (create_access): Check for bit-fields directly.
2132 2010-09-15 Jakub Jelinek <jakub@redhat.com>
2134 PR tree-optimization/45633
2135 * tree-cfg.c (verify_gimple_assign_binary): Allow
2136 MINUS_EXPR with lhs and rhs1 pointer vector and
2137 rhs2 sizetype vector.
2138 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2139 or vector pointer use TER to optimize pointer subtraction.
2141 2010-09-15 Jie Zhang <jie@codesourcery.com>
2143 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2146 2010-09-15 Ian Lance Taylor <iant@google.com>
2148 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2150 2010-09-15 Ian Lance Taylor <iant@google.com>
2152 * function.c (get_arg_pointer_save_area): Set
2153 arg_pointer_save_area_init to true.
2155 2010-09-15 Martin Jambor <mjambor@suse.cz>
2157 * tree-sra.c (generate_subtree_copies): Updated comment.
2158 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2159 obtained from the statement iterator instead.
2160 (load_assign_lhs_subreplacements): Removed parameters lhs and
2161 right_offset, which is obtained from top_racc instead. Parameter lacc
2162 is now expected to be the root of the processed tree rather than root's
2163 first child. Updated all callers.
2165 2010-09-15 Joseph Myers <joseph@codesourcery.com>
2167 * config/pdp11/pdp11.c (register_move_cost): Rename to
2168 pdp11_register_move_cost.
2169 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2170 pdp11_register_move_cost.
2171 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2172 pdp11_register_move_cost instead of register_move_cost.
2174 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
2176 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2177 pattern for vmovn. Expansion in case of non
2178 -mvectorize-with-neon-quad.
2179 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2180 non- -mvectorize-with-neon-quad case.
2181 (move_lo_quad_<mode>): New expansion to vmov into low part.
2182 (move_hi_quad_<mode>): New expansion to vmov into high part.
2183 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2184 (move_lo_quad_v4sf): Likewise.
2185 (move_lo_quad_v8hi): Likewise.
2186 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2188 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2190 * config/arm/iterators.md (ANY128): New mode iterator.
2191 (V_narrow_pack): New mode attribute.
2192 (V_HALF): Add attribute.
2193 (V_DOUBLE): Add attribute.
2194 (V_mode_nunits): Add attribute.
2196 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2198 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2199 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2201 2010-09-15 Olivier Hainque <hainque@adacore.com>
2202 Jose Ruiz <ruiz@adacore.com>
2204 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2205 * config/alpha/osf5-unwind.h: New file.
2207 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2210 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2211 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2212 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2214 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2216 * c-lang.h (struct lang_type): Add variable_size GTY option.
2218 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2221 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2223 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2225 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2226 result isn't used in memory address.
2228 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2230 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2231 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2232 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2233 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2234 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2235 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2237 * target.def: Add units_per_simd_word to vectorize.
2239 * targhooks.c (default_units_per_simd_word): New.
2240 * targhooks.h (default_units_per_simd_word): Likewise.
2241 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2242 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2243 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2244 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2245 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2246 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2247 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2248 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2250 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2251 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2253 * tree-vect-stmts.c: Don't include "tm_p.h".
2254 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2255 with targetm.vectorize.units_per_simd_word.
2257 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2259 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2261 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2262 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2264 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
2265 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2267 * doc/tm.texi: Regenerated.
2269 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2271 * tree-vect-stmts.c: Include "tm_p.h".
2273 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2276 2010-09-14 Martin Jambor <mjambor@suse.cz>
2278 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
2279 location of generated statement. Changed all callers.
2280 (build_ref_for_model): New parameter loc which used to set location of
2281 all generated expressions. Changed all callers.
2282 (generate_subtree_copies): Likewise.
2283 (init_subtree_with_zero): Likewise.
2284 (sra_modify_expr): Set locations of all generated statements and
2285 expressions to the location the original statement.
2286 (handle_unscalarized_data_in_subtree): Likewise.
2287 (load_assign_lhs_subreplacements): Likewise.
2288 (sra_modify_constructor_assign): Likewise.
2289 (sra_modify_assign): Likewise.
2291 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
2296 * doc/install.texi (sparc*-*-*): New section.
2297 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2299 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2302 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2303 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2304 (expand_builtin): Adjust caller.
2305 (expand_builtin_unop): Only use subtarget if it has the right mode.
2307 2010-09-14 Tristan Gingold <gingold@adacore.com>
2309 * configure.ac (plugins): Fix typos.
2310 * configure: Regenerate.
2312 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2315 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2316 gen_type_die for function/method return type.
2318 2010-09-14 Ira Rosen <irar@il.ibm.com>
2320 PR tree-optimization/45470
2321 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2322 can throw an exception.
2323 * tree-vect-stmts.c (vectorizable_call): Likewise.
2325 2010-09-14 DJ Delorie <dj@redhat.com>
2328 * config/mep/mep-protos.h (mep_save_register_info,
2329 mep_reinit_regs, mep_init_regs): Declare.
2331 * config/mep/mep.c: Move all target definitions to the end of the
2332 file to avoid the need for duplicate declarations.
2333 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2334 (mep_reorg_erepeat): Remove unused variables.
2335 (mep_expand_builtin): Likewise.
2337 * config/mep/mep-pragma.c: Don't include rtl.h.
2338 (INVALID_REGNUM): New.
2339 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2341 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2342 Avoid enum/integer math.
2344 2010-09-13 Joseph Myers <joseph@codesourcery.com>
2347 * config/mep/t-mep (GTM_H): Add insn-constants.h.
2348 * config/mep/mep.c (mep_conditional_register_usage): Take no
2350 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2352 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2353 call to mep_conditional_register_usage.
2355 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
2358 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2361 2010-09-13 Jakub Jelinek <jakub@redhat.com>
2363 PR rtl-optimization/45617
2364 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2365 even if low N bits of X aren't known to be zero.
2367 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
2369 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2371 * config/i386/i386.c (initial_ix86_tune_features): Add
2372 X86_TUNE_VECTORIZE_DOUBLE.
2373 (ix86_units_per_simd_word): New.
2375 * config/i386/i386.h (ix86_tune_indices): Add
2376 X86_TUNE_VECTORIZE_DOUBLE.
2377 (TARGET_VECTORIZE_DOUBLE): New.
2378 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2380 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
2382 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2383 (new_temp_expr_table): Allocate call_cnt vector.
2384 (free_temp_expr_table): Free it.
2385 (process_replaceable): Add call_cnt parm and set in vector.
2386 (find_replaceable_in_bb): Skip replacement if def/use span a call.
2387 (debug_ter): Dump call_cnt value, remove stderr uses.
2389 2010-09-13 Jan Hubicka <jh@suse.cz>
2391 * tree.c (build_zero_cst): New.
2392 * tree.h (build_zero_cst): Declare.
2393 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2394 (get_base_constructor): Break out from ...
2395 (fold_const_aggregate_ref): Here; handle empty constructors.
2397 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2399 * config/arm/arm.md: (define_attr "conds"): Update comment.
2400 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2401 conds attribute to clob.
2402 (arm_sync_compare_and_swapsi): Likewise.
2403 (arm_sync_compare_and_swap<mode>): Likewise.
2404 (arm_sync_lock_test_and_setsi): Likewise.
2405 (arm_sync_lock_test_and_set<mode>): Likewise.
2406 (arm_sync_new_<sync_optab>si): Likewise.
2407 (arm_sync_new_nandsi): Likewise.
2408 (arm_sync_new_<sync_optab><mode>): Likewise.
2409 (arm_sync_new_nand<mode>): Likewise.
2410 (arm_sync_old_<sync_optab>si): Likewise.
2411 (arm_sync_old_nandsi): Likewise.
2412 (arm_sync_old_<sync_optab><mode>): Likewise.
2413 (arm_sync_old_nand<mode>): Likewise.
2415 2010-09-13 Olivier Hainque <hainque@adacore.com>
2417 * fwprop.c (forward_propagate_and_simplify): Only attach a
2418 REG_EQUAL note to an insn if the destination is a register.
2419 * gcse.c (try_replace_reg): Likewise.
2421 2010-09-13 Richard Guenther <rguenther@suse.de>
2423 PR tree-optimization/45611
2424 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2425 (copy_ref_info): Likewise.
2427 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
2432 * tree-pretty-print.c (dump_generic_node): Disregard top-level
2433 types of MEM_REF pointer types to the same type.
2435 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
2437 PR rtl-optimization/41087
2438 * ifcvt.c (noce_get_condition): Don't allow conditions with
2441 2010-09-12 Anatoly Sokolov <aesok@post.ru>
2443 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2444 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2445 * config/frv/frv.c (frv_register_move_cost): Make static. Change
2446 arguments type to reg_class_t. Add mode argument.
2447 (frv_memory_move_cost): New.
2448 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2450 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
2452 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2453 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2455 2010-09-10 Jan Hubicka <jh@suse.cz>
2457 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2459 2010-09-10 Richard Guenther <rguenther@suse.de>
2461 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2462 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2463 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2464 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2465 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2467 2010-09-10 Richard Guenther <rguenther@suse.de>
2469 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
2470 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
2471 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
2472 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
2474 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
2477 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
2478 of string folding is of integral type.
2480 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
2482 * doc/invoke.texi (-x): Fix typo.
2484 2010-09-10 Richard Guenther <rguenther@suse.de>
2487 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
2488 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2489 Output DECL_DEBUG_EXPR.
2490 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2491 Input DECL_DEBUG_EXPR.
2493 2010-09-10 Richard Guenther <rguenther@suse.de>
2495 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
2496 (build_index_type): Implement in terms of build_range_type.
2497 (build_range_type): Do not allow NULL_TREE type, improve
2498 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
2500 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
2501 create a distinct copy of the type.
2503 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
2505 * configure: Regenerated.
2506 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
2508 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2510 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
2511 * config/arm/cortex-a9-neon.md: New and partially generated.
2512 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
2514 2010-09-10 Richard Guenther <rguenther@suse.de>
2516 * tree.h (build_index_2_type): Remove.
2517 * tree.c (build_index_2_type): Remove.
2519 2010-09-10 Jakub Jelinek <jakub@redhat.com>
2522 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
2523 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
2524 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
2526 2010-09-10 Martin Jambor <mjambor@suse.cz>
2528 PR tree-optimization/44972
2529 * tree-sra.c: Include toplev.h.
2530 (build_ref_for_offset): Entirely reimplemented.
2531 (build_ref_for_model): New function.
2532 (build_user_friendly_ref_for_offset): New function.
2533 (analyze_access_subtree): Removed build_ref_for_offset check.
2534 (propagate_subaccesses_across_link): Likewise.
2535 (create_artificial_child_access): Use
2536 build_user_friendly_ref_for_offset.
2537 (propagate_subaccesses_across_link): Likewise.
2538 (ref_expr_for_all_replacements_p): Removed.
2539 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
2540 (sra_modify_expr): Use build_ref_for_model.
2541 (load_assign_lhs_subreplacements): Likewise.
2542 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
2543 checks for return values of build_ref_for_offset.
2544 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
2545 build_ref_for_offset.
2546 * ipa-prop.h: Include gimple.h
2547 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
2548 (ipa_analyze_indirect_call_uses): Update comment.
2549 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
2550 (IPA_PROP_H): Likewise.
2552 2010-09-10 Martin Jambor <mjambor@suse.cz>
2554 PR tree-optimization/44972
2555 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
2556 calling build_ref_for_offset.
2558 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2560 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
2561 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
2562 * config/arm/arm-tune.md: Regenerate.
2563 * doc/invoke.texi (ARM Options): Document it.
2565 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
2567 * config/i386/i386.c: Include sched-int.h.
2568 (TARGET_SCHED_DISPATCH): Defined.
2569 (TARGET_SCHED_DISPATCH_DO): Defined.
2570 (DISPATCH_WINDOW_SIZE): Defined.
2571 (MAX_DISPATCH_WINDOWS): Defined.
2572 (MAX_INSN): Defined.
2574 (MAX_IMM_SIZE): Defined.
2575 (MAX_IMM_32): Defined.
2576 (MAX_IMM_64): Defined.
2577 (MAX_LOAD): Defined.
2578 (MAX_STORE): Defined.
2580 (dispatch_group): New.
2581 (num_allowable_groups): New.
2583 (sched_insn_info_s): New.
2584 (dispatch_windows_s): New.
2586 (dispatch_window_list): New.
2587 (dispatch_window_list1): New.
2588 (get_mem_group): New.
2590 (dispatch_violation): New.
2594 (allocate_window): New.
2595 (init_dispatch_sched): New.
2596 (is_end_basic_block): New.
2597 (process_end_window): New.
2598 (allocate_next_window): New.
2599 (find_constant_1): New.
2600 (find_constant): New.
2601 (get_num_immediates): New.
2602 (has_immediate): New.
2603 (get_insn_path): New.
2604 (get_insn_group): New.
2605 (count_num_restricted): New.
2606 (fits_dispatch_window): New.
2607 (add_insn_window): New.
2608 (add_to_dispatch_window): New.
2609 (debug_dispatch_window_file): New.
2610 (debug_dispatch_window): New.
2611 (debug_insn_dispatch_info_file): New.
2612 (debug_ready_dispatch): New.
2614 (has_dispatch): New.
2615 * config/i386/i386.h (debug_ready_dispatch): Declared.
2616 (debug_dispatch_window): Declared.
2617 * config/i386/i386.opt (mdispatch-scheduler): New flag.
2618 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
2619 (TARGET_SCHED_DISPATCH_DO): New.
2620 * doc/tm.texi: Regererated.
2621 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
2622 ready_remove_first_dispatch
2623 (schedule_block): Call targetm.sched.dispatch and
2624 targetm.sched.dispatch_do.
2625 (sched_init): Call targetm.sched.dispatch and
2626 targetm.sched.dispatch_do.
2627 (ready_remove_first_dispatch): New.
2628 (number_in_ready): New.
2629 (get_ready_element): New.
2630 * hooks.c (hook_bool_rtx_int_false): New.
2631 (hook_void_rtx_int): New.
2632 * hooks.h (hook_bool_rtx_int_false): Declared.
2633 (hook_void_rtx_int): Declared.
2634 * sched-int.h (IS_DISPATCH_ON): Defined.
2636 (DISPATCH_VIOLATION): Defined.
2637 (FITS_DISPATCH_WINDOW): Defined.
2638 (DISPATCH_INIT): Defined.
2639 (ADD_TO_DISPATCH_WINDOW): Defined.
2640 (get_ready_element): Declared.
2641 (number_in_ready): Declared.
2642 * target.def (dispatch): Defined.
2643 (dispatch_do): Defined.
2645 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2648 * reload1.c (merge_assigned_reloads): Remove.
2649 (reload_as_needed): Don't call it.
2651 2010-09-09 Anatoly Sokolov <aesok@post.ru>
2653 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
2654 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2655 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2657 2010-09-09 Matthias Klose <doko@ubuntu.com>
2660 * configure.ac (--enable-plugin): Enhance for cross builds.
2661 * configure: Regenerate.
2663 2010-09-09 Jan Hubicka <jh@suse.cz>
2665 PR tree-optimization/45598
2666 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
2667 string folding is of integral type.
2669 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2671 * configure.ac (gnu_indirect_function): New test.
2672 * configure: Rebuilt.
2673 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
2674 * defaults.h (IFUNC_ASM_TYPE): Provide default.
2676 * doc/extend.texi (Function Attributes): Document ifunc.
2677 * varasm.c (do_assemble_alias): Deal with ifuncs too.
2679 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
2681 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
2682 epilogue instruction move.
2684 2010-09-09 Jan Hubicka <jh@suse.cz>
2686 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
2687 command line to allow more partitions than input files.
2689 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2692 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
2694 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
2697 * ira.c (pseudo_for_reload_consideration_p): Don't use
2698 flag_ira_share_spill_slots.
2700 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2702 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
2703 point zero operands that fit into a single GPR.
2704 (s390_preferred_reload_class): Ensure we only return general-purpose
2706 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
2707 floating-point zero operands into GPRs.
2708 ("*mov<mode>_64"): Likewise.
2709 ("mov<mode>"): Likewise using lhi.
2711 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2713 * config/s390/s390.c (s390_symref_operand_p): Return false for
2714 literal pool references.
2715 (s390_check_qrst_address): Update caller.
2717 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
2719 * config/i386/predicates.md (ext_register_operand): Check that
2720 SUBREG_REG is really a register before looking for REGNO.
2721 (reg_not_xmm0_operand): Handle SUBREGs correctly.
2722 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
2724 2010-09-09 Jakub Jelinek <jakub@redhat.com>
2726 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
2727 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
2728 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
2729 * print-rtl.c (print_rtx): Likewise.
2730 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
2731 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
2732 for ADDR_EXPR with non-addressable object.
2733 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
2734 (struct dw_val_struct): Add v.val_decl_ref.
2735 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
2736 Handle DW_OP_GNU_implicit_pointer.
2737 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
2738 (get_ref_die_offset_label): New function.
2739 (implicit_ptr_descriptor): New function.
2740 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
2741 (loc_descriptor): Likewise.
2742 (gen_variable_die): Put even definitions into decl_die_table.
2743 (resolve_addr_in_expr): Resolve still unresolved
2744 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
2746 (dwarf2out_finish): Call output_location_lists after outputting
2747 .debug_info and .debug_abbrev instead of before.
2749 2010-09-09 Roland McGrath <roland@redhat.com>
2751 * dwarf2out.c (DWARF_REF_SIZE): Define.
2752 (size_of_loc_descr): Use it for DW_OP_call_ref.
2754 2010-09-09 Alan Modra <amodra@gmail.com>
2756 * doc/invoke.text: Reinstate mcmodel=medium.
2757 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2758 CMODEL_MEDIUM as default.
2759 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
2760 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
2761 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
2762 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
2764 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2767 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
2768 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
2769 (builtin_longjmp): Likewise.
2770 (allocate_stack): Use hard_frame_pointer_rtx instead of
2772 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
2773 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
2774 (pa_can_eliminate): Likewise.
2775 (TARGET_INTERNAL_ARG_POINTER): Define.
2776 (TARGET_CAN_ELIMINATE): Define.
2777 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
2779 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
2780 (pa_internal_arg_pointer, pa_can_eliminate,
2781 pa_initial_elimination_offset): New.
2782 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
2783 (HARD_FRAME_POINTER_REGNUM): Set to register three.
2784 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2785 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
2787 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
2788 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
2789 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
2790 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2791 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
2792 new soft frame pointer.
2793 * config/pa/pa64-regs.h: Likewise.
2795 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
2797 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
2799 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
2801 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
2804 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
2806 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
2810 * tree-pretty-print.c (dump_generic_node): Disregard top-level
2811 qualifiers in otherwise equal MEM_REF pointer types.
2812 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
2813 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
2815 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2818 * config/arm/arm.md (bswapsi2): Handle condition correctly
2819 for armv6 and optimize_size.
2821 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2824 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
2826 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
2828 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
2829 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
2830 ix86_expand_strlen, legitimate_pic_address_disp_p,
2831 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
2832 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
2833 ix86_check_movabs, ix86_secondary_memory_needed): Change function
2835 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
2836 return_in_memory_ms_64, ix86_check_movabs,
2837 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
2838 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
2839 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
2840 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
2841 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
2842 ix86_secondary_memory_needed): Change to bool. Return
2843 "true" and "false" values.
2844 * config/i386/i386.md: Return "true" and "false" values.
2846 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2848 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2849 run_expensive_tests.
2851 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2853 * toplev.c (output_stack_usage): Use lbasename instead of basename.
2855 2010-09-08 Martin Jambor <mjambor@suse.cz>
2858 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
2861 2010-09-08 Richard Guenther <rguenther@suse.de>
2863 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
2865 (iterative_hash_gimple_type): Likewise.
2866 (gimple_type_hash): Likewise.
2867 (gimple_register_type): Likewise.
2868 (print_gimple_types_stats): Likewise.
2869 (free_gimple_type_tables): Likewise.
2871 2010-09-08 Michael Matz <matz@suse.de>
2873 PR tree-optimization/43430
2874 * tree-vect-stmts.c (vectorizable_condition): Support multiple
2875 copies for conditional statements if it's not part of a reduction.
2877 2010-09-08 Michael Matz <matz@suse.de>
2879 PR tree-optimization/33244
2880 * tree-ssa-sink.c (statement_sink_location): Don't sink into
2883 2010-09-08 Richard Guenther <rguenther@suse.de>
2885 PR tree-optimization/45578
2886 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
2887 Be more careful when transfering alignment information to
2888 the new induction variable.
2889 (copy_ref_info): Likewise.
2891 2010-09-08 Richard Guenther <rguenther@suse.de>
2893 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
2894 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
2896 2010-09-08 Arnaud Charlet <charlet@adacore.com>
2898 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
2899 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
2901 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
2904 * doc/md.texi: Fixed modes on several standard pattern names.
2906 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
2908 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
2909 (ashl<mode>3): ...this.
2910 (loongson_psra<V_suffix>): Rename to...
2911 (ashr<mode>3): ...this.
2912 (loongson_psrl<V_suffix>): Rename to...
2913 (lshr<mode>3): ...this.
2914 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
2915 (CODE_FOR_loongson_psllw): Define.
2916 (CODE_FOR_loongson_psrlh): Define.
2917 (CODE_FOR_loongson_psrlw): Define.
2918 (CODE_FOR_loongson_psrah): Define.
2919 (CODE_FOR_loongson_psraw): Define.
2921 2010-09-07 Richard Henderson <rth@redhat.com>
2923 * tree-vect-data-refs.c: Include tm_p.h.
2924 * Makefile.in (tree-vect-data-refs.o): Update deps.
2925 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
2926 Move delarations outside #ifdef RTX_CODE.
2928 2010-09-07 Richard Henderson <rth@redhat.com>
2930 * final.c (rest_of_handle_final): Unconditionally do
2931 output_function_exception_table before assemble_end_function.
2933 2010-09-07 Jan Hubicka <jh@suse.cz>
2935 * tree-inline.c (tree_inlinable_function_p): Do not test
2937 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
2938 update_callee_keys, cgraph_decide_inlining): Test function availability.
2939 * cif-code.def (OVERWRITABLE): New code.
2941 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
2942 Jack Howarth <howarth@bromo.med.uc.edu>
2947 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
2948 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
2949 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
2952 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
2954 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
2955 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
2957 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
2959 * config.gcc: Don't append t-android for Android targets.
2961 * config/t-android: Removed.
2963 2010-09-07 Richard Henderson <rth@redhat.com>
2965 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
2966 * doc/tm.texi.in: Add doc marker.
2967 * doc/tm.texi: Rebuild.
2968 * except.c (switch_to_exception_section): Always build.
2969 (output_one_function_exception_table): Move section switch,
2970 personality output, and label output ...
2971 (output_function_exception_table): ... here. Use the new
2974 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
2975 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
2976 TARGET_ASM_INIT_SECTIONS): New.
2977 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
2979 (TARGET_ASM_UNWIND_EMIT): Update to match.
2980 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
2982 * config/arm/arm.c (arm_asm_emit_except_personality): New.
2983 (arm_asm_init_sections): New.
2984 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
2986 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2988 * config/arm/arm.md: Remove unused variable.
2990 2010-09-07 Anatoly Sokolov <aesok@post.ru>
2992 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2993 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
2994 (m32r_memory_move_cost): New function.
2996 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
2998 * config.gcc: Append t-android for Android targets.
3000 * config/t-android: New.
3002 2010-09-07 Richard Henderson <rth@redhat.com>
3004 * target.def (unwind_emit_before_insn): New hook.
3005 * doc/tm.texi.in: Add @hook marker for it.
3006 * doc/tm.texi: Rebuild.
3007 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3009 2010-09-07 Martin Jambor <mjambor@suse.cz>
3012 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3013 are any type attributes.
3015 2010-09-07 Jan Hubicka <jh@suse.cz>
3017 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3018 array_ref_low_bound in string access folding.
3020 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
3023 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3024 eh_return fixup sequence.
3026 2010-09-07 Jan Hubicka <jh@suse.cz>
3028 * gimple-fold.c (maybe_fold_reference): Verify that operand is
3029 gimple_min_invariant.
3031 2010-09-07 Richard Guenther <rguenther@suse.de>
3034 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3035 nor CONSTRUCTOR can trap.
3036 * tree-complex.c (update_complex_assignment): Update EH info.
3038 2010-09-07 Richard Guenther <rguenther@suse.de>
3041 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3042 * passes.c (execute_function_todo): Do not verify anything if
3045 2010-09-07 Richard Guenther <rguenther@suse.de>
3047 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3049 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
3052 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3053 New define_mode_attrs.
3054 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3055 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3056 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3057 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3058 Remove pool_range attribute.
3059 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3060 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3061 pool_range and neg_pool_range attributes.
3062 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3063 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3064 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3066 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3068 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3071 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3074 * config/i386/mmx.md (*mov<mode>_internal_rex64,
3075 *mov<mode>_internal_avx, *mov<mode>_internal,
3076 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3077 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3079 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3081 * c-typeck.c (do_warn_double_promotion): Remove.
3082 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3085 2010-09-06 Anatoly Sokolov <aesok@post.ru>
3087 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3088 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3089 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3090 argument type to reg_class_t. Change result type to bool.
3091 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3093 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
3096 * gthr-posix.h (__gthread_objc_thread_detach): Use
3097 _objc_thread_attribs when detaching a thread.
3098 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3100 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3103 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3104 * configure: Regenerated.
3106 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3108 * combine.c (try_combine): Set subst_low_luid to i0.
3110 2010-09-06 Richard Guenther <rguenther@suse.de>
3112 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3113 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3114 (build_aligned_type): Declare.
3115 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3116 (check_aligned_type): New function.
3117 (build_aligned_type): Likewise.
3118 * expr.c (expand_assignment): Handle misaligned stores via
3119 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3120 (expand_expr_real_1): Likewise.
3121 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3122 * tree-vect-stmts.c (vectorizable_store): Do not build
3123 MISALIGNED_INDIRECT_REF but initialize alignment information.
3124 (vectorizable_load): Likewise.
3125 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3127 * cfgexpand.c (expand_debug_expr): Likewise.
3128 * dwarf2out.c (loc_list_from_tree): Likewise.
3129 * fold-const.c (maybe_lvalue_p): Likewise.
3130 (operand_equal_p): Likewise.
3131 (build_fold_addr_expr_with_type_loc): Likewise.
3132 * gimplify.c (gimplify_addr_expr): Likewise.
3133 (gimplify_expr): Likewise.
3134 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3135 (verify_gimple_assign_single): Likewise.
3136 * tree-dump.c (dequeue_and_dump): Likewise.
3137 (tree_could_trap_p): Likewise.
3138 * tree-predcom.c (ref_at_iteration): Likewise.
3139 * tree-pretty-print.c (dump_generic_node): Likewise.
3140 (op_code_prio): Likewise.
3141 (op_symbol_code): Likewise.
3142 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3143 * tree-ssa-loop-im.c (for_each_index): Likewise.
3144 (gen_lsm_tmp_name): Likewise.
3145 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3146 (find_interesting_uses_address): Likewise.
3147 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3148 * tree-ssa-operands.c (get_expr_operands): Likewise.
3149 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3150 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3151 (ao_ref_init_from_vn_reference): Likewise.
3152 * tree.c (staticp): Likewise.
3153 (build1_stat): Likewise.
3154 (reference_alias_ptr_type): Likewise.
3155 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3156 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3157 MISALIGNED_INDIRECT_REF handling.
3159 2010-09-06 Richard Guenther <rguenther@suse.de>
3161 PR tree-optimization/45534
3162 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3163 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3165 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3166 valid on the target.
3168 2010-09-06 Andreas Schwab <schwab@redhat.com>
3170 * configure.ac: Quote argument of AC_MSG_WARN.
3171 * configure: Regenerate.
3173 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
3175 * sel-sched.c (move_cond_jump): Correct arguments to
3176 maybe_tidy_empty_bb.
3177 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3179 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
3181 PR rtl-optimization/44919
3182 * sel-sched.c (move_cond_jump): Remove assert, check that
3183 the several blocks case can only happen with mutually exclusive
3184 insns instead. Rewrite the movement code to support moving through
3185 several basic blocks.
3187 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3189 * config/i386/i386.md (iptrsize): New mode attribute.
3191 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3193 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3194 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3195 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3196 (stack_tls_protect_set_<mode>): Ditto from
3197 stack_tls_protect_set_{si,di}. Use %@ to output segment register
3198 of thread base pointer load.
3199 (stack_tls_protect_test_<mode>): Ditto from
3200 stack_tls_protect_test_{si,di}. Use %@ to output segment register
3201 of thread base pointer load.
3202 (stack_protect_set): Rewrite using indirect functions.
3203 (stack_protect_test): Ditto.
3204 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3205 (ix86_print_operand): Handle '@'.
3207 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
3209 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3212 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3214 * doc/invoke.texi: Document -Wdouble-promotion.
3215 * c-typeck.c (convert_arguments): Check for implicit conversions
3216 from float to double.
3217 (do_warn_double_promotion): New function.
3218 (build_conditional_expr): Use it.
3219 (build_binary_op): Likewise.
3221 2010-09-05 Richard Guenther <rguenther@suse.de>
3223 PR tree-optimization/45535
3224 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3225 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
3227 (indirect_refs_may_alias_p): Likewise.
3229 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
3231 * config/sh/sh.c (sh_option_override): Make static.
3232 Adjust comments. Declare.
3233 (sh_function_value_regno_p): Likewise.
3234 (sh_register_move_cost): Modify the arguments, make static.
3235 Adjust comments. Declare.
3236 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3237 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3238 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3239 REGISTER_MOVE_COST): Delete.
3240 * config/sh/sh-protos.h (sh_override_options): Delete.
3241 (sh_register_move_cost): Delete.
3242 (sh_function_value_regno_p): Delete.
3244 2010-09-04 Anatoly Sokolov <aesok@post.ru>
3246 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3247 m32r_function_value_regno_p): New functions.
3248 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3249 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3250 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3251 FUNCTION_VALUE_REGNO_P): Remove.
3253 2010-09-04 Jan Hubicka <jh@suse.cz>
3255 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3256 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3257 fold_read_from_constant_string.
3259 * gimple.h (canonicalize_constructor_val): Declare.
3260 * gimple-fold.c (canonicalize_constructor_val): New function.
3261 (get_symbol_constant_value):Use it.
3262 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3264 2010-09-04 Jan Hubicka <jh@suse.cz>
3266 * tree-switch-conversion.c (build_one_array): Set constructor to be
3268 * varpool.c (varpool_finalize_decl): Compute const_value_known.
3270 2010-09-04 Richard Guenther <rguenther@suse.de>
3273 * tree-flow.h (force_gimple_operand_1): Declare.
3274 (force_gimple_operand_gsi_1): Likewise.
3275 * gimplify.c (force_gimple_operand_1): New worker taking a
3276 gimple predicate for ...
3277 (force_gimple_operand): ... which now wraps it.
3278 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3279 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3281 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3282 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3283 (create_mem_ref): Likewise.
3285 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
3287 * config/i386/predicates.md (sse_reg_operand): New predicate.
3288 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3289 predicate for operand 1.
3290 (XFmode push splitter): Use fp_register_operand predicate
3292 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3293 (SF-DF float_extend push splitter): Add reload_completed insn
3295 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3296 MODEF mode macro. Add reload_completed insn predicate.
3298 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
3300 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3301 (struct df_extract_ref): Remove.
3302 (union df_ref_d): Remove extract_ref member.
3303 (df_ref_create): Remove last three arguments.
3304 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3305 * df-scan.c (df_ref_record): Remove last three arguments, do not
3306 pass them to df_ref_create_structure.
3307 (df_uses_record): Remove first and last three arguments. Replace
3308 first argument with DF_REF_REGULAR, adjust calls to remove the
3309 width, offset and mode. Always call recursively on the second
3310 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3311 (df_ref_create_structure): Remove first argument.
3312 (struct df_scan_problem_data): Remove ref_extract_pool.
3313 (df_scan_free_internal): Do not free it.
3314 (df_scan_alloc): Do not allocate it.
3315 (df_ref_create): Remove last three arguments, do not pass them to
3316 df_ref_create_structure.
3317 (df_free_ref): Remove DF_REF_EXTRACT case.
3318 (df_notes_rescan): Adjust call to df_uses_record.
3319 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3320 Remove DF_REF_EXTRACT case.
3321 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3322 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3323 and SUBREG definitions.
3324 (df_get_conditional_uses): Remove references to width/offset/mode,
3325 adjust call to df_ref_create_structure.
3326 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3327 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3328 calls to df_uses_record and df_ref_record.
3329 * fwprop.c (update_df): Remove references to width/offset/mode,
3330 adjust call to df_ref_create.
3332 2010-09-03 Jan Hubicka <jh@suse.cz>
3334 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3335 (build_cdtor_fns): Update use of build_cdtor.
3337 2010-09-03 Joseph Myers <joseph@codesourcery.com>
3339 * doc/options.texi (SeparateAlias): Document.
3340 * opt-functions.awk (switch_flags): Handle SeparateAlias.
3341 * opth-gen.awk: Generate enumeration names for options marked
3342 SeparateAlias, but not for those marked Ignore.
3343 * opts-common.c (generate_canonical_option): Don't output separate
3344 argument for options marked CL_SEPARATE_ALIAS.
3345 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3346 * opts.h (CL_SEPARATE_ALIAS): New.
3347 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3348 CL_COMMON): Adjust definitions.
3349 * config/i386/darwin.opt, config/mips/sde.opt: New.
3350 * common.opt (fdump-final-insns): New.
3351 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3353 (mips*-sde-elf*): Add mips/sde.opt.
3354 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3355 -mno-data-in-code and -mcode-xonly here.
3356 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3357 * gcc.c (option_map): Add "j" to --dump entry.
3358 (translate_options): Don't translate -d to -foutput-class-dir= here.
3360 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
3362 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3364 (compute_all_dependences): Same.
3365 (create_rdg_edge_for_ddr): Same.
3366 * tree-data-ref.h (DR_IS_WRITE): New.
3367 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3368 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3369 (write_memrefs_written_at_least_once): Same.
3370 * tree-predcom.c (suitable_component_p): Same.
3371 (determine_roots_comp): Same.
3372 (execute_load_motion): Same.
3373 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3374 (vect_enhance_data_refs_alignment): Same.
3375 (vect_analyze_group_access): Same.
3377 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
3380 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3381 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3383 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
3385 * dwarf2out.c (file scope): Remove #if0'd code.
3386 (gen_subprogram_die): Same.
3388 2010-09-03 Jakub Jelinek <jakub@redhat.com>
3391 * dwarf2out.c (flush_queued_reg_saves): Rename to...
3392 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
3393 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3394 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3395 * config/i386/i386.c (output_set_got): Call it.
3397 2010-09-03 Michael Matz <matz@suse.de>
3400 * tree-sra.c (sra_modify_assign): If we modify the statement,
3403 * tree-ssa.c (verify_ssa): Check number of operands and links
3404 per statement to agree.
3406 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
3407 Iain Sandoe <iains@gcc.gnu.org>
3410 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3411 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3412 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3414 2010-09-03 Richard Guenther <rguenther@suse.de>
3416 * lto-streamer-out.c (output_function): Output function
3418 * lto-streamer-in.c (input_function): Input function start
3421 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3423 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3424 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3425 * configure: Regenerate.
3426 * aclocal.m4: Regenerate.
3428 2010-09-03 Jan Hubicka <jh@suse.cz>
3431 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3432 on functions/variables in other partition.
3434 2010-09-03 Jan Hubicka <jh@suse.cz>
3436 * cgraph.h (struct varpool_node): Add const_value_known.
3437 (varpool_decide_const_value_known): Declare.
3438 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3439 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3440 (input_varpool_node): Restore const_value_known.
3441 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3442 initializer folding.
3443 * ipa.c (ipa_discover_readonly_nonaddressable_var,
3444 function_and_variable_visibility): Compute const_value_known.
3445 * gimple-fold.c (get_symbol_constant_value): Use varpool for
3446 initializer folding.
3447 * varpool.c (varpool_decide_const_value_known): New function.
3449 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
3451 * config/i386/i386.md: Remove empty preparation statements
3454 2010-09-03 Jan Hubicka <jh@suse.cz>
3456 * passes.c (rest_of_decl_compilation): Do not add local vars into
3458 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3459 static or extern vars are in varpool.
3460 (varpool_finalize_decl): Sanity check that only static vars are
3463 2010-09-03 Jakub Jelinek <jakub@redhat.com>
3466 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
3467 not just generic vectors with BLKmode.
3469 2010-09-03 Richard Guenther <rguenther@suse.de>
3471 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
3472 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
3473 * tree.h (TMR_SYMBOL): Remove.
3474 (TMR_BASE, TMR_OFFSET): Adjust.
3476 * alias.c (ao_ref_from_mem): Use TMR_BASE.
3477 * builtins.c (get_object_alignment): Merge TMR_BASE and
3478 TMR_SYMBOL handling.
3479 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
3480 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
3481 handling. Also allow TARGET_MEM_REF as base address.
3482 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
3483 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
3484 base. Gimplify TMR_INDEX2.
3485 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
3486 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3487 (get_addr_base_and_unit_offset): Likewise.
3488 * tree-eh.c (tree_could_trap_p): Likewise.
3489 * tree-pretty-print.c (dump_generic_node): Likewise.
3490 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
3491 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
3493 (get_address_description): Reconstruct addres description
3494 from merged TMR_BASE and TMR_INDEX2.
3495 (maybe_fold_tmr): Fold propagated addresses.
3496 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
3497 MEM_REF and TARGET_MEM_REF paths.
3498 (indirect_refs_may_alias_p): Likewise.
3499 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
3500 instead of TMR_SYMBOL.
3501 * tree-ssa-operands.c (get_tmr_operands): Simplify.
3502 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
3503 according to changes ...
3504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
3505 Split TARGET_MEM_REF into two fields plus the base.
3506 * tree.c (mem_ref_offset): Simplify.
3507 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
3508 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3509 Strip NOPs when folding MEM_REF addresses.
3510 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
3511 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
3512 (fold_gimple_assign): ... not here.
3514 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
3516 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
3517 * config/mips/mips.c (mips_shift_truncation_mask): New function.
3518 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3520 2010-09-02 Richard Henderson <rth@redhat.com>
3522 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
3523 instead of readelf in the test.
3524 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
3525 in the .debug_frame section for coff targets.
3526 * configure: Rebuild.
3528 2010-09-02 Anatoly Sokolov <aesok@post.ru>
3530 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
3531 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
3532 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3533 (m32c_class_likely_spilled_p): Make static. Change argument type to
3534 reg_class_t. Change result type to bool.
3536 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3538 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
3539 to convert (double)(long) into a single FRIZ instruction or not
3540 when -ffast-math is used.
3542 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
3543 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
3544 or FRIZ instruction if -ffast-math.
3545 * config/rs6000/rs6000.md (friz): Ditto.
3547 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
3549 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3551 * opth-gen.awk (quote, comma): Remove unused variables.
3553 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
3555 * arm.c (arm_override_options): Correct fall-back code to use
3556 SUBTARGET_CPU_DEFAULT.
3558 2010-09-02 Julian Brown <julian@codesourcery.com>
3560 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
3562 (vcond<mode>, vcondu<mode>): New expanders.
3563 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
3564 comparisons with zero.
3565 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
3566 * config/arm/constraints.md (Dz): New constraint.
3568 2010-09-02 Anatoly Sokolov <aesok@post.ru>
3570 * target.def (class_likely_spilled_p): New hook.
3571 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
3572 * doc/tm.texi: Regenerate.
3573 * targhooks.c (default_class_likely_spilled_p): New function.
3574 * targhooks.h (default_class_likely_spilled_p): Declare.
3575 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
3576 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
3577 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
3578 Use fixed_reg_set instead of fixed_regs.
3579 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3580 * calls.c (avoid_likely_spilled_reg): Ditto.
3581 * ira-conflicts.c (ira_build_conflicts): Ditto.
3582 * ira.c (update_equiv_regs): Ditto.
3583 * mode-switching.c (create_pre_exit): Ditto.
3584 * regmove.c (find_matches): Ditto.
3585 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3586 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
3587 (small_register_class_p): New inline function.
3588 (push_secondary_reload, find_reusable_reload, find_reloads): Use
3589 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
3591 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
3592 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
3593 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3595 2010-09-02 Richard Guenther <rguenther@suse.de>
3597 PR tree-optimization/44937
3598 PR tree-optimization/45412
3599 * ipa-split.c (split_function): Properly remove PHI nodes.
3601 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3603 * opts.h (struct cl_option): Add warn_message field.
3604 (struct cl_decoded_option): Add warn_message field.
3605 * doc/options.texi (Ignore, Warn): Document.
3606 * opt-functions.awk (needs_state_p): Don't consider aliases or
3607 ignored options to need state saved.
3608 * optc-gen.awk: Handle Warn and Ignore.
3609 * opth-gen.awk: Output OPT_SPECIAL_ignore.
3610 * opts-common.c (decode_cmdline_option): Set warn_message field.
3611 Handle ignored options.
3612 (decode_cmdline_options_to_array, generate_option,
3613 generate_option_input_file): Set warn_message field.
3614 (read_cmdline_option): Generate warnings from warn_message field.
3615 Handle ignored options.
3616 * common.opt (Wunreachable-code, fargument-alias,
3617 fargument-noalias, fargument-noalias-global,
3618 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
3619 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
3620 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
3621 ftree-salias): Mark Ignore.
3622 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
3623 -mintel-syntax and -mno-intel-syntax here.
3624 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
3626 * opts.c (common_handle_option): Don't handle options marked as
3628 (enable_warning_as_error): Handle ignored options.
3630 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3633 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
3634 alias_target fields.
3635 * opt-functions.awk (opt_sanitized_name): Don't handle
3636 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
3637 * optc-gen.awk: Generate alias fields.
3638 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
3639 Don't generate such constants for aliases.
3640 * opts-common.c (generate_canonical_option): New.
3641 (decode_cmdline_option): Handle aliases. Use
3642 generate_canonical_option for known options instead of copying the
3644 * doc/options.texi (Alias): Document.
3645 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
3646 fstack-check, specs): Mark as aliases.
3647 * gcc.c (driver_handle_option): Canonicalize -L options to joined
3649 (driver_handle_option): Don't handle OPT_specs.
3650 * opts.c (common_handle_option): Don't handle options marked as
3652 (enable_warning_as_error): Handle aliases.
3653 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
3654 OPT_Wlarger_than_eq.
3655 * tree-optimize.c (tree_rest_of_compilation): Use
3656 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
3658 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
3660 * config/i386/i386.md (nonmemory_operand): New mode attribute.
3661 (push memory peephole2): Macroize peepholes using SWI mode iterator.
3662 (move immediate to memory peephole2): Macroize peepholes using
3663 SWI124 mode iterator.
3664 (non-pairable NOT peephole2): Macroize peepholes using SWI124
3666 (simple lea add peephole2): Macroize peepholes using SWI48
3668 (simple lea mult peephole2): Ditto.
3669 (imul by 3,5,9 to lea peephole2): Ditto.
3670 (mov $-1, reg peephole2): Macroize peepholes using SWI248
3672 (imul $32bit_imm,mem,reg peephole2): Ditto.
3673 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
3675 2010-09-02 Ian Bolton <ian.bolton@arm.com>
3677 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
3679 2010-09-02 Olivier Hainque <hainque@adacore.com>
3682 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
3683 (allocno_priority_compare_func): Use it instead of a straight
3684 difference computation over priorities.
3686 2010-09-02 Andi Kleen <ak@linux.intel.com>
3688 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
3690 2010-09-02 Ira Rosen <irar@il.ibm.com>
3692 * tree-vectorizer.h (get_later_stmt): New function.
3693 (vect_analyze_data_ref_dependences): Add argument.
3694 * tree-vect-loop.c (vect_analyze_loop): Update call to
3695 vect_analyze_data_ref_dependences.
3696 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
3698 (vect_analyze_data_ref_dependence): Add argument for basic block
3699 dependencies. Check dependencies in basic block vectorization.
3700 (vect_analyze_data_ref_dependences): Add argument and update call to
3701 vect_analyze_data_ref_dependences.
3702 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
3703 (vect_bb_vectorizable_with_dependencies): New.
3704 (vect_slp_analyze_bb): Check dependencies in basic block.
3705 (vect_schedule_slp_instance): Insert stores before the last store in
3708 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
3711 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
3712 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3714 2010-09-01 Jakub Jelinek <jakub@redhat.com>
3717 * bb-reorder.c (add_labels_and_missing_jumps): Treat
3718 bbs ending with throwing insns like blocks ending with a call.
3719 (fix_up_fall_thru_edges): Likewise.
3721 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
3723 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
3724 (m32c_function_arg_advance): Delete.
3725 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3726 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
3727 comments. Take a const_tree and a bool. Declare.
3728 (m32c_function_arg_advance): Likewise.
3729 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3731 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
3734 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
3735 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
3736 * config/i386/mingw32.h: ... here.
3738 2010-09-01 Andi Kleen <ak@linux.intel.com>
3741 * lto-streamer-in.c (lto_input_ts_target_option): Add.
3742 (lto_input_tree_pointers): Call lto_input_ts_target_option.
3743 * lto-streamer-out (lto_output_ts_target_option): Add.
3744 (lto_output_tree_pointers): Call lto_output_ts_target_option.
3746 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
3749 * config/i386/cygwin.h: Change order of specified import libraries.
3750 * config/i386/mingw32.h: Likewise.
3751 * config/i386/t-cygwin: Likewise.
3752 * config/i386/t-mingw32: Likewise.
3753 * config/i386/t-mingw-w32: Likewise.
3754 * config/i386/t-mingw-w64: Likewise.
3756 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3758 * config/arm/neon-schedgen.ml (core): New type.
3759 (allCores): List of supported cores.
3760 (availability_table): Add supported cores.
3761 (collate_bypasses): Accept core as a parameter.
3762 (worst_case_latencies_and_bypasses): Accept core as a parameter.
3763 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
3764 and coreStr to get tune attribute and prefix for functional units.
3765 (emit_bypasses): Accept core name and use it.
3766 (calculate_per_core_availability_table): New.
3768 (calculate_core_availability_table): New.
3769 (main): Use calculate_core_availablity_table.
3770 * config/arm/cortex-a8-neon.md: Update copyright year.
3771 Regenerated from ml file and merged in.
3772 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
3775 2010-09-01 Ian Bolton <ian.bolton@arm.com>
3777 * Makefile.in (tree-switch-conversion.o): Update dependencies.
3779 2010-09-01 Richard Guenther <rguenther@suse.de>
3781 * alias.c (ao_ref_from_mem): Adjust.
3782 * builtins.c (get_object_alignment): Likewise.
3783 * cfgexpand.c (expand_debug_expr): Likewise.
3784 * gimple.c (get_base_address): Likewise.
3785 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3786 (get_addr_base_and_unit_offset): Likewise. Fix for
3787 both TMR_SYMBOL and TMR_BASE being set.
3788 * tree-eh.c (tree_could_trap_p): Likewise.
3789 * gimplify.c (gimplify_expr): Do not attempt to gimplify
3790 TMR_SYMBOL. Always gimplify TMR_BASE.
3791 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3792 TMR_BASE if there is a TMR_SYMBOL.
3793 * tree-pretty-print.c (dump_generic_node): Adjust.
3794 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
3795 (tree_mem_ref_addr): Likewise.
3796 (create_mem_ref_raw): Likewise.
3797 (move_fixed_address_to_symbol): Likewise.
3798 (create_mem_ref): Likewise.
3799 (dump_mem_address): Likewise.
3800 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
3801 Fix for both TMR_SYMBOL and TMR_BASE being set.
3802 (indirect_refs_may_alias_p): Likewise.
3803 * tree-ssa-operands.c (get_tmr_operands): Adjust.
3804 * tree.def (TARGET_MEM_REF): Adjust documentation.
3806 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
3808 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
3809 Rename from X86_TUNE_ADD_ESP_4.
3810 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
3811 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
3812 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
3813 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
3814 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
3815 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
3816 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
3817 * config/i386/i386.c (initial_ix86_tune_features)
3818 <X86_TUNE_SINGLE_POP>: Invert members.
3819 <X86_TUNE_DOUBLE_POP>: Ditto.
3820 <X86_TUNE_SINGLE_PUSH>: Ditto.
3821 <X86_TUNE_DOUBLE_PUSH>: Ditto.
3822 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
3824 (push peephole2 patterns): Macroize peepholes using P mode iterator.
3825 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
3826 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
3827 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
3829 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
3831 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
3832 a volatile LHS if the constructor has only one element.
3834 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
3837 * tree.c (stdarg_p): Make fntype parameter const.
3838 * tree.h (stdarg_p): Likewise.
3839 (function_args_iterator): Remove unused fntype field.
3840 (function_args_iter_init): Do not initialize fntype
3841 field. Make fntype parameter const.
3843 2010-09-01 Richard Guenther <rguenther@suse.de>
3845 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
3847 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
3848 (execute_vrp): Compute number of iteration estimates.
3849 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
3850 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
3851 * tree-data-ref.c (estimated_loop_iterations): Adjust.
3852 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
3853 Infer loop bounds from undefined behavior based on a new parameter.
3854 (estimate_numbers_of_iterations): Likewise.
3855 (scev_probably_wraps_p): Adjust.
3856 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
3858 2010-09-01 Nick Clifton <nickc@redhat.com>
3860 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
3862 (xstormy16_legitimate_address_p): Use true and false instead of 1
3864 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
3865 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
3867 (xstormy16_expand_call): Fix comment at start of function.
3869 2010-09-01 Nick Clifton <nickc@redhat.com>
3871 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
3872 when pushing accumulator register.
3873 (rx_get_stack_layout): Always save call clobbered registers inside
3875 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
3877 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
3879 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
3880 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
3882 * libgcc-std.ver (GCC_4.6.0): Define version.
3884 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
3886 * tree-nested.c (convert_all_function_calls): Iterate until after the
3887 sum of static chains in the nest doesn't change.
3889 2010-08-31 Anatoly Sokolov <aesok@post.ru>
3891 * config/m32c/m32c.c (classes_intersect): Remove.
3892 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
3893 reg_classes_intersect_p instead of classes_intersect.
3894 (class_can_hold_mode): Change arguments type from enum reg_class to
3895 reg_class_t. Use reg_class_contents instead of class_contents.
3896 (m32c_register_move_cost): Make static. Change arguments type from
3897 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
3898 classes_intersect. Use reg_class_contents instead of class_contents.
3899 (m32c_memory_move_cost): Make static. Change arguments type from
3900 enum reg_class to reg_class_t.
3901 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3902 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3903 * config/m32c/m32c-protos.h (m32c_register_move_cost,
3904 m32c_memory_move_cost): Remove.
3906 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
3908 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
3909 (arm_function_arg): Delete.
3910 (arm_needs_doubleword_align): Take a const_tree.
3911 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3912 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
3913 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
3914 (arm_function_arg): Make static. Take a const_tree and a bool.
3915 (arm_function_arg_advance): Likewise.
3916 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3918 2010-08-31 Andi Kleen <ak@linux.intel.com>
3920 * common.opt (fwhopr=): Update for -fwhopr=jobserver
3921 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
3922 * lto-wrapper.c (run_gcc): Add jobserver mode.
3923 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
3926 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
3928 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
3930 (*popdi1_epilogue): Ditto.
3931 (*popsi1_epilogue): Ditto.
3932 (popsi, popdi peephole2 patterns): Update peepholes for changed
3933 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
3935 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
3936 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
3938 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
3939 (override_options): Do not initialize removed ix86_gen_pop1.
3940 (gen_pop): New static function.
3941 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
3942 (release_scratch_register_on_entry): Ditto.
3943 (ix86_restore_reg_using_pop): Ditto.
3944 (ix86_expand_epilogue): Ditto.
3946 2010-08-31 Jakub Jelinek <jakub@redhat.com>
3949 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
3951 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
3953 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
3956 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3958 * doc/extend.texi: Fix documentation of the return value of
3959 __builtin_choose_expr.
3961 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
3963 * config/v850/v850-protos.h (function_arg): Delete.
3964 * config/v850/v850.h (FUNCTION_ARG): Delete.
3965 (FUNCTION_ARG_ADVANCE): Move code to...
3966 * config/v850/v850.c (v850_function_arg_advance): ...here.
3967 (v850_function_arg): Make static. Take a const_tree and a bool.
3968 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3970 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
3972 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
3974 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
3976 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
3978 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
3980 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3982 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
3984 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
3986 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3987 * config/rx/rx.c (rx_function_arg_size): Make static.
3988 (rx_function_arg): Likewise.
3989 (rx_function_arg_advance): New function.
3990 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3992 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
3994 * config/arm/arm.c (arm_override_options): Remove superfluous test.
3997 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
3999 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4000 (dwarf2out_decl) <CONST_DECL>: Likewise.
4002 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4005 * common.opt (-fstack-usage): New option.
4006 * doc/invoke.texi (Debugging options): Document it.
4007 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4008 allocate_dynamic_stack_space.
4009 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4010 and propagate it to allocate_dynamic_stack_space.
4011 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4012 * calls.c (initialize_argument_information): Pass TRUE as 4th
4013 argument to allocate_dynamic_stack_space.
4014 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4015 to 1 when pushing a variable-sized argument onto the stack. Pass
4016 TRUE as 4th argument to allocate_dynamic_stack_space.
4017 Update current_function_pushed_stack_size.
4018 (emit_library_call_value_1): Likewise.
4019 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4020 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
4021 attempt to find an upper bound. Remove redundant code for the
4022 SETJMP_VIA_SAVE_AREA case.
4023 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4024 * function.h (struct stack_usage): New structure.
4025 (current_function_static_stack_size): New macro.
4026 (current_function_dynamic_stack_size): Likewise.
4027 (current_function_pushed_stack_size): Likewise.
4028 (current_function_dynamic_alloc_count): Likewise.
4029 (current_function_has_unbounded_dynamic_stack_size): Likewise.
4030 (current_function_allocates_dynamic_stack_space): Likewise.
4031 (struct function): Add new field 'su'.
4032 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4033 add the value of the dynamic offset to the dynamic stack usage.
4034 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4035 for variable-sized objects.
4036 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4037 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4038 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4039 BUILT_IN_ALLOCA for variable-sized objects.
4040 * output.h (output_stack_usage): Declare.
4041 * toplev.c (stack_usage_file): New file pointer.
4042 (output_stack_usage): New function.
4043 (open_auxiliary_file): Likewise.
4044 (lang_dependent_init): Open file if flag_stack_usage is set.
4045 (finalize): Close file if stack_usage_file is not null.
4046 * tree.h (ALLOCA_FOR_VAR_P): New macro.
4047 * config/alpha/alpha.c (compute_frame_size): New function.
4048 (alpha_expand_prologue): Use it.
4049 (alpha_start_function): Likewise.
4050 (alpha_expand_epilogue): Likewise. Set stack usage info.
4051 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4052 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4053 * config/mips/mips.c (mips_expand_prologue): Likewise.
4054 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4055 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4056 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4058 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
4060 PR tree-optimization/45427
4061 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4062 Handle the case that the exit is never taken correctly.
4063 (number_of_iterations_ne): Pass exit_must_be_taken to
4064 number_of_iterations_ne_max.
4066 2010-08-30 Catherine Moore <clm@codesourcery.com>
4068 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4069 Infer -mdspr2 for the the 74K.
4071 2010-08-30 Jakub Jelinek <jakub@redhat.com>
4074 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4077 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4078 and TRUTH_{AND,OR,XOR}_EXPR.
4079 * c-parser.c (c_parser_omp_atomic): Handle boolean
4080 {PRE,POST}_{INC,DEC}REMENT.
4082 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
4084 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4085 (function_arg): Delete.
4086 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4087 (FUNCTION_INCOMING_ARG): Delete.
4088 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4089 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
4091 (function_arg): Rename to...
4092 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
4094 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4095 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4096 (TARGET_FUNCTION_INCOMING_ARG): Define.
4098 2010-08-30 Richard Guenther <rguenther@suse.de>
4100 PR tree-optimization/21602
4101 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4102 using points-to information.
4104 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
4106 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4108 2010-08-30 Richard Guenther <rguenther@suse.de>
4110 PR tree-optimization/45449
4111 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4114 2010-08-30 Joseph Myers <joseph@codesourcery.com>
4116 * opts.h (CL_ERR_NEGATIVE): Define.
4117 * opts.c (unknown_option_callback): Don't postpone warnings for
4118 options marked with CL_ERR_NEGATIVE.
4119 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4120 for negative versions of CL_REJECT_NEGATIVE options.
4122 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
4124 * config/i386/i386.md (zero_extendsidi2_1): Rename from
4125 zero_extendsidi2_32.
4126 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4127 using SWI12 mode iterator.
4128 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4129 to define_insn_and_split pattern.
4130 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4131 using SWI24 mode iterator.
4132 (*zero_extendqi<mode>2_and): Macroize insn from
4133 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4134 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4135 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4136 SWI24 mode iterator.
4137 (*zero_extendqi<mode>2_movzbl): Ditto from
4138 *zero_extendqi{hi,si}2_movzbl.
4139 (extendsidi2_1): Rename from extendsidi2_32.
4140 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4141 SWI12 mode iterator.
4143 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
4145 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4146 general purpose registers.
4147 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4148 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
4149 with general purpose registers and memory operands. Add associated
4150 CCImode post-reload splitter.
4151 * config/ia64/div.md: Change BImode to CCImode throughout.
4153 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
4155 * config/ia64/ia64.md (cstorebi4): Fix thinko.
4157 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
4159 * config/picochip/picochip.c (reorder_var_tracking_notes): This
4160 function was dropping debug insns which caused PR45299.
4162 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
4164 * config/i386/sse.md (extsuffix): New code attribute.
4165 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4166 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4167 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4168 and sse4_1_zero_extendv4qiv4si2.
4169 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4170 and sse4_1_zero_extendv2qiv2di2.
4171 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4172 and sse4_1_zero_extendv4hiv4si2.
4173 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4174 and sse4_1_zero_extendv2hiv2di2.
4175 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4176 and sse4_1_zero_extendv2siv2di2
4178 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4179 using any_extend code iterator.
4180 (*avx_<s>mulv8hi3_highpart): Macroize insn from
4181 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4182 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4184 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4185 gen_sse4_1_sign_extend* functions.
4186 (struct builtin_description bdesc_args): Ditto.
4188 2010-08-27 Xinliang David Li <davidxl@google.com>
4191 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4192 (iv_ca_set_no_cp): Update used inv expr count.
4193 (iv_ca_set_cp): Ditto.
4194 (iv_ca_new): Initialize new member.
4195 (iv_ca_free): Free memory.
4197 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4199 * config/sh/sh-protos.h (sh_function_arg): Delete.
4200 (sh_function_arg_advance): Delete.
4201 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4202 (PASS_IN_REG_P): Eliminate cast.
4203 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
4204 const_tree and a bool.
4205 (sh_function_arg): Likewise.
4206 (sh_output_mi_thunk): Call sh_function_arg_advance) and
4208 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4210 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
4211 Kaz Kojima <kkojima@gcc.gnu.org>
4213 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4215 (sh_expand_epilogue): Likewise.
4216 * config/sh/sh.md (movml_push_banked): New insn.
4217 (movml_pop_banked): Likewise.
4219 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
4221 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4222 gen_regexp_oneof, gen_regexp_sequence): Use the string found
4223 in vector element 0 rather than the original string when there's
4225 (gen_regexp): Remove extra semicolon.
4227 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4228 thumb2_movsf_vfp): Set attribute "insn".
4229 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4230 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4231 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4232 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4233 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4234 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4235 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4236 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4237 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4238 if_not_arith, if_arith_not, cond_move_not): Likewise.
4240 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4242 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4244 (rs6000_allocate_stack_temp): Ditto.
4245 (rs6000_expand_convert_si_to_sfdf): Ditto.
4247 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4248 line. Update the options set if power6 or power7 server/embedded
4249 type options are used. If we give a warning for no vsx under
4250 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4251 (rs6000_allocate_stack_temp): New function to allocate a stack
4252 tempoary and adjust the address so it meets either REG+OFFSET or
4253 REG+REG addressing requirements.
4254 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4255 that they can be used with the LFIWAX/LFIWZX instrucitons.
4256 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4257 converting signed/unsigned SImode to either SFmode/DFmode.
4259 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4260 whether certain instructions can be generated.
4261 (TARGET_FCTIDZ): Ditto.
4262 (TARGET_STFIWX): Ditto.
4263 (TARGET_LFIWAX): Ditto.
4264 (TARGET_LFIWZX): Ditto.
4265 (TARGET_FCFIDS): Ditto.
4266 (TARGET_FCFIDU): Ditto.
4267 (TARGET_FCFIDUS): Ditto.
4268 (TARGET_FCTIDUZ): Ditto.
4269 (TARGET_FCTIWUZ): Ditto.
4271 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4272 (UNSPEC_FCTID): Ditto.
4273 (UNSPEC_LFIWAX): Ditto.
4274 (UNSPEC_LFIWZX): Ditto.
4275 (UNSPEC_FCTIWUZ): Ditto.
4276 (rreg): Use correct constraints.
4277 (SI_CONVERT_FP): New mode attribute for floating point conversion
4279 (E500_CONVERT): Ditto.
4280 (lfiwax): New insns for converting from integer to floating point
4281 utilizing newer instructions. Attempt to optimize conversions
4282 that come from memory so that we don't load the value into a GPR,
4283 spill it to the stack and reload it into a FPR.
4284 (floatsi<mode>2_lfiwax): Ditto.
4285 (floatsi<mode>2_lfiwax_mem): Ditto.
4286 (floatsi<mode>2_lfiwax_mem2): Ditto.
4288 (floatunssi<mode>2_lfiwzx): Ditto.
4289 (floatunssi<mode>2_lfiwzx_mem): Ditto.
4290 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4291 (floatdidf2_mem): Ditto.
4292 (floatunsdidf2_fcfidu): Ditto.
4293 (floatunsdidf2_mem): Ditto.
4294 (floatunsdisf2): Ditto.
4295 (floatunsdisf2_fcfidus): Ditto.
4296 (floatunsdisf2_mem): Ditto.
4297 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4298 Use FCFID on 32-bit hosts that support it.
4299 (floatsidf2_internal): Ditto.
4300 (floatunssisf2): Ditto.
4301 (floatunssidf2): Ditto.
4302 (floatunssidf2_internal): Ditto.
4303 (floatsisf2): Ditto.
4304 (floatdidf2): Ditto.
4305 (floatdidf2_fpr): Ditto.
4306 (floatunsdidf2): Ditto.
4307 (floatdisf2): Ditto.
4308 (floatdisf2_fcfids): Ditto.
4309 (floatdisf2_internal1): Ditto.
4310 (fixuns_truncsfsi2): Delete, merge into common pattern for both
4311 SF/DF. Add power7 support.
4312 (fix_truncsfsi2): Ditto.
4313 (fixuns_truncdfsi2): Ditto.
4314 (fixuns_truncdfdi2): Ditto.
4315 (fix_truncdfsi2): Ditto.
4316 (fix_truncdfsi2_internal): Ditto.
4317 (fix_truncdfsi2_internal_gfxopt): Ditto.
4318 (fix_truncdfsi2_mfpgpr): Ditto.
4321 (btruncdf2_fpr): Ditto.
4324 (ceildf2_fpr): Ditto.
4327 (floordf2_fpr): Ditto.
4330 (rounddf2_fpr): Ditto.
4332 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4333 (fix_trunc<mode>di2): Ditto.
4334 (fixuns_trunc<mode>si2): Ditto.
4335 (fixuns_trunc<mode>di2): Ditto.
4336 (fctiwz_<mode>): Ditto.
4337 (btrunc<mode>2): Ditto.
4338 (btrunc<mode>2_fpr): Ditto.
4339 (ceil<mode>2): Ditto.
4340 (ceil<mode>2_fpr): Ditto.
4341 (floor<mode>2): Ditto.
4342 (float<mode>2_fpr): Ditto.
4343 (round<mode>2): Ditto.
4344 (round<mode>2_fpr): Ditto.
4345 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4346 (fixuns_trunc<mode>si2_stfiwx): Ditto.
4347 (fix_truncdfsi2_internal): Ditto.
4348 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4349 converted value on stack, loaded into GPR, and then stored into
4350 the final destination.
4351 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4353 (lrint<mode>di2): New insn, provide the lrint builtin functions.
4354 (ftruncdf2): Delete, unused.
4355 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4357 * config/rs6000/vsx.md (toplevel): Update copyright year.
4358 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4361 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
4362 Jeremie Salvucci <jeremie.salvucci@free.fr>
4364 * gengtype.c (output_type_enum): Test the right union member.
4366 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
4369 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4370 operands for operand 1.
4371 (sse4_1_extendv4qiv4si2): Ditto.
4372 (sse4_1_extendv2qiv2di2): Ditto.
4373 (sse4_1_extendv4hiv4si2): Ditto.
4374 (sse4_1_extendv2hiv2di2): Ditto.
4375 (sse4_1_extendv2siv2di2): Ditto.
4376 (sse4_1_zero_extendv8qiv8hi2): Ditto.
4377 (sse4_1_zero_extendv4qiv4si2): Ditto.
4378 (sse4_1_zero_extendv2qiv2di2): Ditto.
4379 (sse4_1_zero_extendv4hiv4si2): Ditto.
4380 (sse4_1_zero_extendv2hiv2di2): Ditto.
4381 (sse4_1_zero_extendv2siv2di2): Ditto.
4382 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4383 (*sse4_1_extendv4qiv4si2): Ditto.
4384 (*sse4_1_extendv2qiv2di2): Ditto.
4385 (*sse4_1_extendv4hiv4si2): Ditto.
4386 (*sse4_1_extendv2hiv2di2): Ditto.
4387 (*sse4_1_extendv2siv2di2): Ditto.
4388 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4389 (*sse4_1_zero_extendv4qiv4si2): Ditto.
4390 (*sse4_1_zero_extendv2qiv2di2): Ditto.
4391 (*sse4_1_zero_extendv4hiv4si2): Ditto.
4392 (*sse4_1_zero_extendv2hiv2di2): Ditto.
4393 (*sse4_1_zero_extendv2siv2di2): Ditto.
4395 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4397 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4398 (mips_function_arg): Delete.
4399 (mips_function_arg_boundary): Take a const_tree.
4400 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4401 (mips_arg_info): Likewise.
4402 (mips_setup_incoming_varargs): Call mips_function_arg_advance
4403 instead of FUNCTION_ARG_ADVANCE.
4404 (mips_function_arg_advance): Adjust prototype. Make static.
4405 (mips_function_arg): Likewise.
4406 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4407 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4409 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4411 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4412 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4413 (function_arg): Delete.
4414 (function_arg_boundary): Take a const_tree.
4415 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4416 (rs6000_spe_function_arg): Likewise.
4417 (rs6000_parm_start): Likewise.
4418 (rs6000_arg_size): Likewise.
4419 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4420 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
4421 (rs6000_mixed_function_arg): Likewise.
4422 (function_arg): Rename to...
4423 (rs6000_function_arg): ...this.
4424 (function_arg_advance): Rename to...
4425 (rs6000_function_arg_advance_1): ...this
4426 (rs6000_function_arg_advance): New function. Call it.
4427 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4428 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4429 (rs6000_function_value): Likewise.
4430 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4432 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4434 * config/arm/arm.md (enabled): Test the value of arch_enabled
4435 rather than just using it.
4437 2010-08-27 Olivier Hainque <hainque@adacore.com>
4438 Eric Botcazou <ebotcazou@adacore.com>
4440 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4441 cover all the possible offsets from this base.
4442 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4444 2010-08-26 Jakub Jelinek <jakub@redhat.com>
4446 PR tree-optimization/44485
4447 * calls.c (flags_from_decl_or_type): For const or pure
4448 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4449 together with ECF_CONST resp. ECF_PURE.
4450 * builtins.c (expand_builtin): Use flags_from_decl_or_type
4451 instead of querying flags directly.
4452 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4453 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4455 2010-08-26 Richard Guenther <rguenther@suse.de>
4457 PR tree-optimization/45255
4458 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4459 and externals are also invariant.
4461 2010-08-25 Jakub Jelinek <jakub@redhat.com>
4463 PR rtl-optimization/44858
4464 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4465 newi2pat, make sure they don't affect newpat.
4467 PR rtl-optimization/45400
4468 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
4469 SUBREG_REG if both modes are of MODE_INT class.
4471 2010-08-25 Julian Brown <julian@codesourcery.com>
4473 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
4474 * config/arm/arm.md (generic_sched): No for Cortex-A5.
4475 (generic_vfp): Likewise.
4476 (cortex-a5.md): Include.
4477 * config/arm/cortex-a5.md: New.
4479 2010-08-25 Richard Guenther <rguenther@suse.de>
4481 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
4482 * gimple.c (gimple_get_alias_set): Remove special handling
4485 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
4488 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
4489 dead_or_set_p when computing i0_feeds_i2_n.
4491 * combine.c (find_split_point): Undo canonicalization of multiply-add
4492 to (minus x (mult)) when it seems likely that this will increase the
4495 2010-08-25 Richard Guenther <rguenther@suse.de>
4498 * lto-streamer.c (lto_record_common_node): Do not mess with
4499 TYPE_CANONICAL when not in lto.
4500 * gimple.c (gimple_register_type): Likewise.
4502 2010-08-25 Richard Guenther <rguenther@suse.de>
4504 PR tree-optimization/45316
4505 * tree-ssa-pre.c (eliminate): Properly clean EH info.
4507 2010-08-25 Richard Guenther <rguenther@suse.de>
4509 PR tree-optimization/45393
4510 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
4511 and clean EH info. Avoid SSA update.
4512 (execute_cse_sincos): Cleanup the CFG if it has changed.
4514 2010-08-25 Richard Guenther <rguenther@suse.de>
4517 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
4518 TARGET_MEM_REF in alignment computation.
4520 2010-08-25 Jakub Jelinek <jakub@redhat.com>
4522 PR tree-optimization/45059
4523 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
4524 type conversions from newop{1,2}. Assert t is a comparison and
4525 newop{1,2} after the stripping are gimple vals.
4527 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
4529 * config/arm/iterators.md (VU, SE, V_widen_l): New.
4530 (V_unpack, US): New.
4531 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
4532 (vec_unpack<US>_lo_<mode>): Likewise.
4533 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
4534 (neon_vec_unpack<US>_lo_<mode>): Likewise.
4535 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
4536 (vec_widen_<US>mult_hi_<mode>): Likewise.
4537 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
4538 (neon_vec_<US>mult_hi_<mode>"): Likewise.
4539 (neon_unpack<US>_<mode>): Widening move intermediate step for
4540 vectorizing without -mvectorize-with-neon-quad.
4541 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
4542 for vectorizing without -mvectorize-with-neon-quad.
4543 * config/arm/predicates.md (vect_par_constant_high): Check for
4544 high-half lanes of a vector.
4545 (vect_par_constant_low): Check for low-half lanes of a vector.
4547 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4549 * tree-if-conv.c (struct ifc_dr): New.
4551 (DR_WRITTEN_AT_LEAST_ONCE): New.
4552 (DR_RW_UNCONDITIONALLY): New.
4553 (memref_read_or_written_unconditionally): Use the cached values
4555 (write_memref_written_at_least_once): Same.
4556 (if_convertible_loop_p): Initialize and free DR->aux fields.
4558 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4560 * gimple.c (gimple_could_trap_p_1): Not static anymore.
4561 Pass an extra bool parameter include_mem.
4562 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
4563 (gimple_assign_rhs_could_trap_p): Same.
4564 * gimple.h (gimple_could_trap_p_1): Declared.
4565 * tree-data-ref.h (same_data_refs_base_objects): New.
4566 (same_data_refs): New.
4567 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
4568 (write_memrefs_written_at_least_once): New.
4569 (ifcvt_memrefs_wont_trap): New.
4570 (operations_could_trap): New.
4571 (ifcvt_could_trap_p): New.
4572 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
4573 Gets a vector of data refs.
4574 (if_convertible_stmt_p): Same.
4575 (if_convertible_loop_p_1): New.
4576 (if_convertible_loop_p): Call if_convertible_loop_p_1.
4578 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
4580 * common.opt (ftree-loop-if-convert-stores): New flag.
4581 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
4582 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
4583 the created statement before GSI.
4584 (if_convertible_phi_p): Allow virtual phi nodes when
4585 flag_loop_if_convert_stores is set.
4586 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
4587 Do not handle types that do not match is_gimple_reg_type.
4588 Remove loop and bb parameters. Call gimple_could_trap_p instead of
4589 when flag_loop_if_convert_stores is set, as LHS can contain
4591 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
4592 to if_convertible_gimple_assign_stmt_p.
4593 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
4594 (replace_phi_with_cond_gimple_assign_stmt): Renamed
4595 predicate_scalar_phi. Do not handle virtual phi nodes.
4596 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
4597 Call predicate_scalar_phi.
4598 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
4599 just after the labels for flag_loop_if_convert_stores, otherwise
4600 insert the predicate in the end of the BB.
4601 (predicate_mem_writes): New.
4602 (combine_blocks): Call predicate_all_scalar_phis. When
4603 flag_loop_if_convert_stores is set, call predicate_mem_writes.
4604 (tree_if_conversion): Call mark_sym_for_renaming when
4605 flag_loop_if_convert_stores is set.
4606 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
4607 flag_loop_if_convert_stores is set.
4609 2010-08-24 Anatoly Sokolov <aesok@post.ru>
4611 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
4612 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
4613 (pa_function_value): Make static.
4614 (override_options): Rename to...
4615 (pa_option_override): ...this. Make static.
4616 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
4617 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
4618 TARGET_OPTION_OVERRIDE): Define.
4619 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
4620 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
4622 * config/pa/pa-protos.h (override_options): Remove.
4624 2010-08-24 Richard Guenther <rguenther@suse.de>
4627 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
4628 if addr->index is NULL or zero.
4629 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
4630 TARGET_MEM_REF more properly.
4631 (indirect_ref_may_alias_decl_p): Likewise.
4632 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
4633 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
4635 2010-08-23 Anatoly Sokolov <aesok@post.ru>
4637 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
4638 (m32c_override_options): Rename to...
4639 (m32c_option_override): ...this. Make static.
4640 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
4641 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
4643 * config/m32c/m32c-protos.h (m32c_override_options,
4644 m32c_function_value_regno_p): Remove.
4646 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
4648 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
4649 Fix a typo in a previous commit.
4651 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
4653 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
4654 Pre-initialize innerloop_iters to one.
4656 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
4658 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
4659 existing static function global.
4661 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
4662 is changed to global.
4664 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
4665 may_be_nonaddressable_p on base, and don't collect this reference
4666 if the address of the base could not be taken.
4668 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4670 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
4671 enable the compiler to autovectorize mathmetical functions for
4672 power7 using the Mathematical Acceleration Subsystem library.
4674 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
4675 handle which vector math library we have.
4676 (rs6000_override_options): Add -mveclibabi=mass support.
4677 (rs6000_builtin_vectorized_libmass): New function to handle auto
4678 vectorizing math functions that are in the MASS library.
4679 (rs6000_builtin_vectorized_function): Call it.
4681 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4684 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4687 * gthr-posix.h (__gthread_active_init): Delete.
4688 (__gthread_active_p): Do activity check here.
4689 Don't include errno.h on hppa-hpux. Update comment.
4690 * gthr-posix95.h (__gthread_active_init): Delete.
4691 (__gthread_active_p): Do activity check here.
4692 Don't include errno.h on hppa-hpux. Update comment.
4693 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
4694 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
4695 add -lpthread when -mt or -pthread is specified.
4696 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
4697 (LINK_GCC_C_SEQUENCE_SPEC): Define.
4698 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
4699 (stublib.c, pthread_default_stacksize_np-stub.o,
4700 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
4701 $(T)libgcc_stub.a): Add methods.
4702 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
4703 (stublib.c, pthread_default_stacksize_np-stub.o,
4704 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
4705 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4706 pthread_mutex_unlock): New stubs.
4708 2010-08-22 Joseph Myers <joseph@codesourcery.com>
4710 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
4711 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
4713 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
4714 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
4715 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
4716 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
4717 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
4719 * cppspec.c: Include opts.h.
4720 (lang_specific_driver): Use cl_decoded_option structures.
4721 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
4722 * doc/tm.texi: Regenerate.
4723 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
4724 (driver_handle_option): Allow driver options needing no special
4726 (process_command): Decode options before call to
4727 lang_specific_driver. Pass decoded options to
4728 lang_specific_driver.
4729 * gcc.h (lang_specific_driver): Update prototype.
4730 * gccspec.c: Include opts.h.
4731 (lang_specific_driver): Use cl_decoded_option structures.
4732 * opts-common.c (option_ok_for_language, generate_option,
4733 generate_option_input_file): New.
4734 (decode_cmdline_option): Use option_ok_for_language.
4735 (decode_cmdline_options_to_array): Use generate_option_input_file.
4736 (handle_generated_option): Use generate_option.
4737 * opts.h (generate_option, generate_option_input_file): Declare.
4739 2010-08-22 Anatoly Sokolov <aesok@post.ru>
4741 * config/mips/mips.c (mips_override_options): Rename to...
4742 (mips_option_override): ...this. Make static.
4743 (TARGET_OPTION_OVERRIDE): Define.
4744 (mips_in_small_data_p): Update comment.
4745 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
4746 (FIXED_REGISTERS): Update comment.
4747 * config/mips/mips-protos.h (mips_override_options): Remove.
4749 2010-08-21 Olivier Hainque <hainque@adacore.com>
4751 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
4753 2010-08-21 Olivier Hainque <hainque@adacore.com>
4755 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
4756 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
4758 2010-08-20 Jan Hubicka <jh@suse.cz>
4760 * tree-pass.h (pass_ipa_cdtor_merge): New function.
4761 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
4763 (record_cdtor_fn): Move to ipa.c; do not test for
4765 (build_cdtor): Move to ipa.c; add code avoiding construction
4766 when target have ctors/dtors and there is only one ctor/dtor at given
4768 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
4769 sort; reverse order of constructors.
4770 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
4771 (cgraph_finalize_function): Do not call record_cdtor_fn.
4772 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
4773 (cgraph_build_static_cdtor): Move to ipa.c.
4774 * ipa.c: Include target.h and tree-iterator.h.
4775 (cgraph_build_static_cdtor, static_ctors, static_dtors,
4776 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
4777 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
4778 pass_ipa_cdtor_merge): New.
4779 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
4780 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
4783 2010-08-20 Jan Hubicka <jh@suse.cz>
4787 * cgraph.h (cgraph_only_called_directly_p,
4788 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
4790 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
4792 (cgraph_finalize_function): Static cdtors are reachable.
4793 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
4795 2010-08-20 Jan Hubicka <jh@suse.cz>
4797 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
4799 * lto-streamer-out.c (lto_output): Likewise.
4800 * passes.c (ipa_write_optimization_summaries): Initialize statement
4803 2010-08-20 Olivier Hainque <hainque@adacore.com>
4805 * tree.h (alias_diag_flags): New enum.
4806 (alias_pair): Add an 'emitted_diags' field.
4807 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
4808 (assemble_alias): Initialize emitted_diags of new pairs.
4810 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
4812 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4813 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4814 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4815 (STACK_CHECK_PROTECT): Define.
4816 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
4817 (output_probe_stack_range): Likewise.
4818 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
4819 builtin stack checking is enabled.
4820 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
4821 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4822 (probe_stack_range): New insn.
4824 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
4827 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
4830 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
4833 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4836 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
4837 to cover zero extension into 64-bit register.
4838 (*sse2_pextrw): Likewise.
4839 (*sse4_1_pextrd_zext): New insn.
4841 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
4843 revert r163410, partially revert r163267.
4844 * config/rs6000/darwin.h (LIB_SPEC): Remove.
4845 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
4848 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4851 * builtins.c (expand_builtin): Don't optimize away
4852 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
4854 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
4856 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
4857 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
4858 alternative 1 of operand 2.
4860 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4861 Paolo Bonzini <bonzini@gnu.org>
4863 * simplify-rtx.c (simplify_unary_operation_1): Optimize
4864 (sign_extend (zero_extend (...)) and
4865 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
4867 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4869 PR rtl-optimization/45353
4870 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
4871 after bb_note is a BARRIER.
4873 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
4875 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
4878 2010-08-20 Jakub Jelinek <jakub@redhat.com>
4879 Michael Matz <matz@suse.de>
4881 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
4883 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4885 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
4886 (ggc_mark_roots): ...here.
4888 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4890 * vec.h (FOR_EACH_VEC_ELT): Define.
4892 * cfgloop.c: Likewise.
4893 * cfgloopmanip.c: Likewise.
4894 * cgraph.c: Likewise.
4895 * cgraphunit.c: Likewise.
4896 * combine.c: Likewise.
4897 * config/bfin/bfin.c: Likewise.
4898 * config/mips/mips.c: Likewise.
4899 * config/rs6000/rs6000.c: Likewise.
4900 * dbxout.c: Likewise.
4901 * df-scan.c: Likewise.
4902 * dominance.c: Likewise.
4904 * dwarf2out.c: Likewise.
4905 * except.c: Likewise.
4907 * function.c: Likewise.
4909 * genattr.c: Likewise.
4910 * ggc-common.c: Likewise.
4911 * gimplify.c: Likewise.
4912 * graphite-blocking.c: Likewise.
4913 * graphite-clast-to-gimple.c: Likewise.
4914 * graphite-dependences.c: Likewise.
4915 * graphite-interchange.c: Likewise.
4916 * graphite-poly.c: Likewise.
4917 * graphite-scop-detection.c: Likewise.
4918 * graphite-sese-to-poly.c: Likewise.
4919 * graphite.c: Likewise.
4920 * haifa-sched.c: Likewise.
4921 * ifcvt.c: Likewise.
4922 * implicit-zee.c: Likewise.
4923 * ipa-prop.c: Likewise.
4924 * ipa-struct-reorg.c: Likewise.
4926 * ira-build.c: Likewise.
4927 * ira-color.c: Likewise.
4928 * ira-emit.c: Likewise.
4929 * lambda-code.c: Likewise.
4930 * loop-invariant.c: Likewise.
4931 * loop-unroll.c: Likewise.
4932 * lower-subreg.c: Likewise.
4933 * lto-cgraph.c: Likewise.
4934 * lto-opts.c: Likewise.
4935 * lto-streamer-in.c: Likewise.
4936 * lto-streamer-out.c: Likewise.
4937 * lto-streamer.c: Likewise.
4938 * lto-symtab.c: Likewise.
4939 * matrix-reorg.c: Likewise.
4941 * predict.c: Likewise.
4942 * print-tree.c: Likewise.
4943 * sdbout.c: Likewise.
4944 * sel-sched-dump.c: Likewise.
4945 * sel-sched-ir.c: Likewise.
4946 * sel-sched.c: Likewise.
4948 * stor-layout.c: Likewise.
4949 * tree-cfg.c: Likewise.
4950 * tree-cfgcleanup.c: Likewise.
4951 * tree-chrec.c: Likewise.
4952 * tree-data-ref.c: Likewise.
4953 * tree-emutls.c: Likewise.
4954 * tree-inline.c: Likewise.
4955 * tree-into-ssa.c: Likewise.
4956 * tree-loop-distribution.c: Likewise.
4957 * tree-loop-linear.c: Likewise.
4958 * tree-mudflap.c: Likewise.
4959 * tree-outof-ssa.c: Likewise.
4960 * tree-parloops.c: Likewise.
4961 * tree-predcom.c: Likewise.
4962 * tree-pretty-print.c: Likewise.
4963 * tree-scalar-evolution.c: Likewise.
4964 * tree-ssa-live.c: Likewise.
4965 * tree-ssa-loop-im.c: Likewise.
4966 * tree-ssa-loop-ivcanon.c: Likewise.
4967 * tree-ssa-loop-ivopts.c: Likewise.
4968 * tree-ssa-loop-manip.c: Likewise.
4969 * tree-ssa-loop-niter.c: Likewise.
4970 * tree-ssa-loop-prefetch.c: Likewise.
4971 * tree-ssa-phiprop.c: Likewise.
4972 * tree-ssa-pre.c: Likewise.
4973 * tree-ssa-reassoc.c: Likewise.
4974 * tree-ssa-sccvn.c: Likewise.
4975 * tree-ssa-structalias.c: Likewise.
4976 * tree-ssa.c: Likewise.
4977 * tree-vect-data-refs.c: Likewise.
4978 * tree-vect-loop-manip.c: Likewise.
4979 * tree-vect-loop.c: Likewise.
4980 * tree-vect-patterns.c: Likewise.
4981 * tree-vect-slp.c: Likewise.
4982 * tree-vect-stmts.c: Likewise.
4983 * tree-vrp.c: Likewise.
4985 * value-prof.c: Likewise.
4986 * var-tracking.c: Likewise.
4987 * varasm.c: Likewise.
4988 * vmsdbgout.c: Likewise.
4990 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
4991 Richard Guenther <richard.guenther@gmail.com>
4993 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
4994 copy the src value and return a copy.
4995 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
4996 (C++ Volatiles): Adjust to describe C++ semantics only.
4998 2010-08-20 Joseph Myers <joseph@codesourcery.com>
5000 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5002 * doc/tm.texi: Regenerate.
5003 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5004 * df-scan.c (df_get_exit_block_use_set), reginfo.c
5005 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5006 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5007 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5010 2010-08-20 Olivier Hainque <hainque@adacore.com>
5012 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5013 an extra nop past a sibling call at the very end.
5015 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5018 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
5021 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5023 * target.def (function_arg, function_incoming_arg): Remove const
5024 qualifier on CUMULATIVE_ARGS parameter.
5025 * targhooks.h (default_function_arg, default_function_incoming_arg):
5027 * targhooks.c (default_function_arg, default_function_incoming_arg):
5029 * config/i386/i386.c (ix86_function_arg): Likewise.
5031 2010-08-19 Jakub Jelinek <jakub@redhat.com>
5034 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5035 SIGN_EXTENDs or ZERO_EXTENDs.
5037 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5040 * combine.c (combine_validate_cost): New arg I0. All callers changed.
5041 Take its cost into account if nonnull.
5042 (insn_a_feeds_b): New static function.
5043 (combine_instructions): Look for four-insn combinations.
5044 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
5045 them into account when computing all_adjacent and looking for other
5047 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
5048 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
5049 (try_combine): New arg I0. Handle four-insn combinations.
5050 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
5053 2010-08-19 Jason Merrill <jason@redhat.com>
5056 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5058 (gimplify_modify_expr_rhs): Adjust.
5060 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5062 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5064 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5065 * dominance.c (iterate_fix_dominators): Likewise.
5066 * dse.c (set_usage_bits): Likewise.
5067 (set_position_unneeded, record_store): Likewise.
5068 * gimple-fold.c (get_maxval_strlen): Likewise.
5069 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5070 * ipa-inline.c (update_caller_keys): Likewise.
5071 * ipa-split.c (verify_non_ssa_vars): Likewise.
5072 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5073 (close_type_exposed_parameter, close_type_full_escape): Likewise.
5074 (close_addressof_down): Likewise.
5075 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5076 (setup_allocno_left_conflicts_size): Likewise.
5077 (ira_reassign_conflict_allocnos): Likewise.
5078 (ira_reassign_pseudos): Likewise.
5079 * ira-emit.c (change_loop): Likewise.
5080 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5081 * lto-streamer-out.c (write_symbol): Likewise.
5082 * predict.c (expr_expected_value_1): Likewise.
5083 * regstat.c (regstat_bb_compute_ri): Likewise.
5084 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5085 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5086 * stmt.c (expand_case): Likewise.
5087 * tree-eh.c (emit_eh_dispatch): Likewise.
5088 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5089 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5091 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5092 (rdg_build_components): Likewise.
5093 * tree-object-size.c (collect_object_sizes_for): Likewise.
5094 * tree-sra.c (convert_callers): Likewise.
5095 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5096 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5097 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5099 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5101 * config/i386/i386.md (*lea_1): Use P mode iterator.
5102 (lea add splitter): Also handle DImode operands.
5103 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5104 predicate. Do not use ix86_lea_for_add_ok.
5105 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5106 (lea ashift splitter): Also handle DImode operands.
5107 (DImode lea ashift splitter): Remove splitter.
5109 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5111 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5112 ix86_binary_operator_ok.
5114 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
5116 PR rtl-optimization/44691
5117 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5120 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5123 * config/arm/arm.c (arm_output_epilogue): Ensure that return
5124 value of size 1-3 is handled correctly.
5126 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5128 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5129 type for the conditional has wide enough range.
5131 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5134 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5135 ix86_binary_operator_ok.
5137 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5139 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5140 <default>: Swap operands 1 and 2 for alternative 2 to use existing
5141 code to output insn mnemonic. Fix comment.
5142 (*addsi_1_zext): Add r-r-0 alternative 1.
5143 <TYPE_LEA>: Split insn to lea.
5144 <default>: Handle alternative 1.
5145 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
5146 multi-level if_then_else RTX to set "type" attribute.
5147 <default>: Handle alternative 2.
5148 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5149 Use cond RTX instead of multi-level if_then_else RTX to set
5151 <default>: Handle alternatives 2 and 4.
5152 (lea splitters): Update calls to ix86_lea_for_add_ok.
5154 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5156 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5158 2010-08-18 Richard Guenther <rguenther@suse.de>
5160 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5161 use operand helpers.
5163 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
5166 * optabs.c (expand_bool_compare_and_swap): Expand pending
5167 pops before trying the optab.
5169 2010-08-18 Yao Qi <yao@codesourcery.com>
5172 * config/arm/arm.c (output_move_double): Fix typo generating
5173 instructions ('ldr'->'str').
5175 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5177 PR rtl-optimization/42575
5178 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5181 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
5183 * config/arm/arm-protos.h (arm_expand_sync): New.
5184 (arm_output_memory_barrier, arm_output_sync_insn): New.
5185 (arm_sync_loop_insns): New.
5186 * config/arm/arm.c (FL_ARCH7): New.
5187 (FL_FOR_ARCH7): Include FL_ARCH7.
5189 (arm_print_operand): Support %C markup.
5190 (arm_legitimize_sync_memory): New.
5191 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5192 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5193 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5194 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5195 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5196 (arm_process_output_sync_insn, arm_output_sync_insn): New.
5197 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5198 * config/arm/arm.h (struct arm_sync_generator): New.
5199 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5200 (TARGET_HAVE_MEMORY_BARRIER): New.
5201 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5202 * config/arm/arm.md: Include sync.md.
5203 (UNSPEC_MEMORY_BARRIER): New.
5204 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5205 (VUNSPEC_SYNC_OP):New.
5206 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5207 (sync_result, sync_memory, sync_required_value): New attributes.
5208 (sync_new_value, sync_t1, sync_t2): Likewise.
5209 (sync_release_barrier, sync_op): Likewise.
5210 (length): Add logic to length attribute defintion to call
5211 arm_sync_loop_insns when appropriate.
5212 * config/arm/sync.md: New file.
5214 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5216 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5217 ENABLE_TREE_CHECKING.
5218 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5221 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
5223 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5224 or optimizing for size, always avoid lea if possible.
5226 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5228 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
5230 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5231 Dunmmy function with NULL return unless the target is
5232 OSX >= 10.6 (Darwin10).
5234 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
5236 * gcc.c (spec_function): Add remove-outfile.
5237 (remove_outfile_spec_function): New function.
5238 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5239 * invoke.texi (replace-outfile): Document.
5241 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
5244 * reginfo.c (globalize_reg): Reject stack registers.
5246 2010-08-17 Richard Guenther <rguenther@suse.de>
5248 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5249 list of conditional equivalences.
5250 (free_all_edge_infos): Adjust.
5251 (record_equivalences_from_incoming_edge): Likewise.
5252 (record_cond): Likewise.
5253 (build_and_record_new_cond): Likewise.
5254 (record_conditions): Likewise.
5255 (dom_opt_leave_block): Likewise.
5257 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
5259 * doc/invoke.texi (ms-extension): Add documentation.
5261 2010-08-17 Richard Guenther <rguenther@suse.de>
5263 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5265 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
5268 * c-decl.c (diagnose_uninitialized_cst_member): New function.
5269 (finish_decl): Use it to issue a -Wc++-compat warning about
5270 uninitialized const field in struct or union.
5272 (finish_struct): Use strip_array_types.
5274 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5276 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5278 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5279 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
5280 call block_nreverse here.
5281 (blocks_nreverse): Rename decl temporary to block.
5283 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
5285 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5286 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5287 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5288 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5289 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5290 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5291 thumb2_iorsi3): Delete.
5292 (orsi_notsi_si): No longer a named pattern.
5293 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5294 * config/arm/predicates.md (shift_amount_operand): New.
5295 (mult_operator): New.
5296 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5298 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
5300 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
5301 (not_shiftsi_compare0): Likewise, renamed from
5302 arm_notsi_shiftsi_compare0.
5303 (not_shiftsi_compare0_scratch): Likweise, renamed from
5304 arm_notsi_shiftsi_compare0_scratch.
5305 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5306 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5307 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
5308 so that the register alternative is disabled when the shift_operator
5309 is MULT. Use "M" as the constraint for constants.
5310 (arith_shiftsi splitter): Enable for TARGET_32BIT.
5311 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
5312 constraint for constants.
5313 (arith_shiftsi_compare0_scratch): Likewise.
5314 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5315 Handle Thumb2 alternative.
5317 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5319 * doc/options.texi (NoDriverArg): Document.
5320 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5322 * opt-functions.awk (switch_flags): Handle NoDriverArg.
5323 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5324 marking for CL_NO_DRIVER_ARG options when in the driver.
5325 * opts.h (CL_NO_DRIVER_ARG): Define.
5326 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5327 CL_COMMON): Update values.
5329 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5331 * common.opt: Add driver options.
5332 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5333 * doc/options.texi (Driver, RejectDriver): Document.
5334 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5335 print_prog_name, print_multi_directory, print_sysroot,
5336 print_multi_os_directory, print_multi_lib,
5337 print_sysroot_headers_suffix, report_times, combine_flag,
5338 use_pipes, wrapper_string): Remove.
5339 (save_switch, driver_unknown_option_callback,
5340 driver_wrong_lang_callback, driver_post_handling_callback,
5341 driver_handle_option): New.
5342 (spec_lang, last_language_n_infiles): Make file-scope static
5343 instead of local to process_command.
5344 (process_command): Use decode_cmdline_options_to_array and
5345 read_cmdline_option for option processing. Compute have_c in
5346 prescan of decoded options.
5347 * opt-functions.awk (switch_flags): Handle Driver and
5349 (var_type, var_type_struct): Handle Separate options as generating
5350 const char * variables.
5351 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5352 CL_TARGET to be passed by caller if required.
5353 (decode_cmdline_options_to_array): Update comment.
5354 * opts.c (complain_wrong_lang): Handle options only valid for the
5356 (decode_options): Update call to decode_cmdline_options_to_array.
5357 (print_filtered_help): Ignore driver-only options.
5358 (print_specific_help): Ignore CL_DRIVER.
5359 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5360 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5361 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5364 2010-08-16 Richard Guenther <rguenther@suse.de>
5366 * tree-cfg.c (verify_types_in_gimple_reference): Verify
5367 TARGET_MEM_REF a bit.
5368 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5369 (create_mem_ref_raw): Always create TMR_OFFSET, store the
5370 alias pointer type via it.
5371 (copy_mem_ref_info): Adjust.
5372 (maybe_fold_tmr): Likewise.
5373 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5374 (reference_alias_ptr_type): Likewise.
5375 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5376 adjust documentation of TMR_OFFSET operand.
5377 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5378 use the alias pointer type.
5379 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5380 initialize mem attrs but the TMR itself.
5381 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5383 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5384 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5385 (unshare_and_remove_ssa_names): Likewise.
5386 (copy_ref_info): Adjust.
5387 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5388 TARGET_MEM_REF case.
5389 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5391 * tree.h (TMR_ORIGINAL): Remove.
5392 * gimple.c (get_base_address): For TARGET_MEM_REF with a
5394 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5396 (get_addr_base_and_unit_offset): Likewise.
5397 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5399 (indirect_ref_may_alias_decl_p): Likewise.
5400 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5402 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
5404 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5405 with GCC version 4.6, the default setting (when not optimizing
5406 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5407 been changed to -fomit-frame-pointer.
5409 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
5411 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5412 Darwin10. Do not link libgcc.a for Darwin >= 9.
5414 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
5416 * doc/invoke.texi (Warning Options): Fix terminology and markup
5417 in the description of how unknown warning options are handled.
5419 2010-08-15 Ira Rosen <irar@il.ibm.com>
5421 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5423 (vect_supportable_dr_alignment): Check alignment for basic blocks.
5424 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5426 (vect_bb_vectorization_profitable_p): New function.
5427 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5428 check if it's worthwhile to vectorize the basic block.
5430 2010-08-14 Anatoly Sokolov <aesok@post.ru>
5432 * reload.h (register_move_cost, memory_move_secondary_cost,
5433 secondary_reload_class): Adjust prototype.
5434 * rtl.h (reg_class_subset_p): Adjust prototype.
5435 * reload.c (secondary_reload_class): Change arguments type from
5436 enum reg_class to reg_class_t. Change result type to reg_class_t.
5437 * reginfo.c (register_move_cost, reg_class_subset_p): Change
5438 arguments type from enum reg_class to reg_class_t.
5439 (memory_move_secondary_cost): Change arguments type from
5440 enum reg_class to reg_class_t. Change type of saved_flags to
5443 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5445 (mips_cost): Remove.
5446 (struct mips_rtx_cost_data): Moved to mips.c.
5447 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5448 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5449 (mips_cost): Make static.
5450 (mips_canonicalize_move_class): Change argument type to reg_class_t.
5451 Change result type to reg_class_t.
5452 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5453 type from enum reg_class to reg_class_t.
5454 (mips_register_move_cost): Make static. Change arguments
5455 type from enum reg_class to reg_class_t.
5456 (mips_memory_move_cost): New function.
5457 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5459 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
5461 PR rtl-optimization/43358
5462 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5463 of a single hard register, using simplify_subreg_regno to decide
5464 what that register should be.
5466 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
5468 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
5469 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
5470 (loongson_pmull<V_suffix>): Rename to...
5471 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
5473 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
5475 * configure.ac: Enable -fomit-frame-pointer on darwin
5476 which support dwarf2.
5477 * config/i386/i386.c (override_options): Same.
5479 2010-08-13 Jie Zhang <jie@codesourcery.com>
5481 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
5483 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5485 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
5488 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
5490 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
5491 up dot_prod pattern searching if a stmt is outside the loop.
5493 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
5494 Uros Bizjak <ubizjak@gmail.com>
5496 * config.gcc: Handle --enable-frame-pointer.
5498 * configure.ac: Add --enable-frame-pointer.
5499 * configure: Regenerated.
5501 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
5502 (override_options): If not configured with --enable-frame-pointer,
5503 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
5504 optimizing for size), -fasynchronous-unwind-tables and
5505 -maccumulate-outgoing-args by default.
5507 2010-08-12 Jakub Jelinek <jakub@redhat.com>
5509 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
5512 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
5513 -a overflows. Normalize the range.
5515 2010-08-12 Richard Guenther <rguenther@suse.de>
5517 PR tree-optimization/45232
5518 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
5519 for types with undefined overflow.
5520 (reassociate_bb): Allow re-associating of bit and min/max
5521 operations for types with undefined overflow.
5522 * tree-ssa-forwprop.c (associate_plusminus): New function.
5523 (tree_ssa_forward_propagate_single_use_vars): Call it.
5525 2010-08-12 Richard Guenther <rguenther@suse.de>
5527 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
5528 * tree-ssa-alias.c (get_ptr_info): Move ...
5529 * tree-ssanames.c (get_ptr_info): ... here. Initialize
5530 align and misalign fields conservatively.
5531 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
5532 derive alignment information.
5533 (evaluate_stmt): Derive alignment information from memory
5534 allocation functions.
5535 * tree.h (get_pointer_alignment): Make unsigned.
5536 * builtins.c (get_object_alignment): Use alignment information we
5537 have computed for pointers.
5538 (get_pointer_alignment): Likewise. Make conservative, return
5540 (expand_builtin_strlen): Adjust.
5541 (expand_builtin_memcmp): Likewise.
5542 (expand_builtin_strcmp): Likewise.
5543 (expand_builtin_strncmp): Likewise.
5544 (get_builtin_sync_mem): Use at least mode alignment.
5545 (fold_builtin_memset): Adjust.
5546 (fold_builtin_memory_op): Likewise.
5547 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
5548 information also dump pointer alignment knowledge.
5549 (dump_gimple_stmt): Likewise.
5551 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
5553 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
5554 (EMPTY_FIELD_BOUNDARY): Remove.
5555 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
5557 2010-08-12 Jakub Jelinek <jakub@redhat.com>
5560 * caller-save.c (save_call_clobbered_regs): Only swap notes with
5561 DEBUG_INSNs if n_regs_saved.
5563 2010-08-12 Wei Guozhi <carrot@google.com>
5566 * config/arm/arm.md (andsi3): Change to zero extension if possible.
5567 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
5569 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
5571 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
5573 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
5575 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5577 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
5578 the case removed in the previous patch, when the only phi argument
5579 is defined in the same loop as the phi node itself. Handle it
5580 separately from the invariant case by both propagating it outside
5581 the region and replacing the phi node with an assign.
5583 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5585 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
5586 constant phi nodes with one argument are is_gimple_min_invariant
5587 and SSA_NAME_IS_DEFAULT_DEF.
5589 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5591 * graphite-cloog-util.c (oppose_constraint):
5592 Extend loop counter's value range (CLOOG_ORG).
5593 (cloog_matrix_to_ppl_constraint): Same.
5594 (new_Constraint_System_from_Cloog_matrix): Same.
5595 * graphite-cloog-compat.h (matrix_num_type): New.
5597 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5599 * graphite.c (graphite_initialize): Do not initialize
5600 CLooG and initialize the Parma Polyhedra Library
5601 manually when using CLOOG_ORG.
5602 (graphite_finalize): Do not finalize CLooG and finalize
5603 the Parma Polyhedra Library manually when using CLOOG_ORG.
5604 * graphite-cloog-compat.h (cloog_initialize): Hide function
5605 when using CLOOG_ORG.
5606 (cloog_finalize): Same.
5608 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5610 * graphite-clast-to-gimple.c (free_scattering): Change
5611 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
5613 (build_cloog_prog): Same.
5614 * graphite-cloog-compat.h (cloog_domain): Removed.
5615 (cloog_scattering): New.
5616 (cloog_set_domain): Removed.
5617 (cloog_set_scattering): New.
5618 (cloog_next_domain): Removed.
5619 (cloog_next_scattering): New.
5620 (cloog_set_next_domain): Removed.
5621 (cloog_set_next_scattering): New.
5622 (CloogScatteringList): New.
5623 (CloogScattering): New.
5624 (cloog_scattering_free): New.
5625 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
5626 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
5629 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5631 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
5633 (set_cloog_options): Same.
5634 (print_clast_stmt): Same.
5635 (scop_to_clast): Same.
5636 (print_generated_program): Same.
5638 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
5639 (scop_to_clast): Extend with CloogState.
5640 * graphite-cloog-util.c: Include graphite-cloog-compat.h
5641 (new_Cloog_Domain_from_ppl_Polyhedron):
5642 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
5643 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
5644 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5645 * graphite-cloog-util.h (build_cloog_prog): Same.
5646 * graphite-cloog-copat.h (build_cloog_prog): New.
5648 (cloog_state_malloc): New.
5649 (cloog_state_free): New.
5650 (cloog_loop_malloc): New.
5651 (cloog_options_malloc): New.
5652 (cloog_statement_alloc): New.
5653 (cloog_domain_from_cloog_matrix): New.
5654 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5655 (new_Cloog_Domain_from_ppl_Polyhedron): New.
5657 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5659 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
5660 type of NAME now depends on used CLooG version.
5661 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
5662 (gcc_type_for_clast_expr): Same.
5663 (print_clast_stmt): Replace pprint with clast_pprint.
5664 * graphite-cloog-compat.h: Provide compatibility macros for
5666 (clast_name_p): New.
5667 (clast_expr_term): New.
5668 (clast_expr_red): New.
5669 (clast_expr_bin): New.
5670 (clast_pprint): New.
5672 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5674 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
5675 compatible to newer CLooG releases (CLOOG_ORG).
5676 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
5677 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
5678 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
5679 (build_cloog_prog) : New.
5680 (cloog_program_extract_scalars): New.
5681 (cloog_program_scatter): New.
5683 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5685 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
5686 conditionally (CLOOG_ORG).
5687 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
5688 (cloog_statement_usr): New.
5689 (cloog_domain): Same.
5690 (cloog_set_domain): Same.
5691 (cloog_next_domain): Same.
5692 (cloog_set_next_domain): Same.
5693 (cloog_program_nb_scattdims): Same.
5694 (cloog_program_set_nb_scattdims): Same.
5695 (cloog_program_names): Same.
5696 (cloog_program_set_names): Same.
5697 (cloog_program_set_context): Same.
5698 (cloog_program_set_loop): Same.
5699 (cloog_program_blocklist): Same.
5700 (cloog_program_set_blocklist): Same.
5701 (cloog_program_scaldims): Same.
5702 (cloog_program_set_scaldims): Same.
5703 (cloog_names_nb_parameters): Same.
5704 (cloog_names_set_nb_parameters): Same.
5705 (cloog_names_parameters): Same.
5706 (cloog_names_set_parameters): Same.
5707 (cloog_names_set_nb_iterators): Same.
5708 (cloog_names_set_iterators): Same.
5709 (cloog_names_set_nb_scattering): Same.
5710 (cloog_names_set_scattering): Same.
5711 (cloog_statement_set_usr): Same.
5712 (cloog_loop_set_next): Same.
5713 (cloog_loop_set_domain): Same.
5714 (cloog_loop_set_block): Same.
5715 (cloog_block_list_next): Same.
5716 (cloog_block_list_set_next):
5717 (cloog_block_list_set_block): Same.
5719 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5721 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
5723 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
5724 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
5725 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
5726 when something has been changed.
5727 (rewrite_commutative_reductions_out_of_ssa): Same.
5729 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5731 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
5732 handle the case when def is in the sese region.
5733 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
5734 for invariant expressions.
5735 (rewrite_cross_bb_phi_deps): Removed.
5736 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
5737 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
5738 rewrite_cross_bb_phi_deps.
5740 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5742 * graphite-sese-to-poly.c
5743 (rewrite_commutative_reductions_out_of_ssa_loop): Call
5744 scev_analyzable_p only on is_gimple_reg
5746 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5748 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
5749 (rewrite_close_phi_out_of_ssa): Propagate constant values or
5750 parametric expressions outside the scop region.
5751 (rewrite_cross_bb_scalar_deps): Same.
5752 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
5754 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5756 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
5757 SSA_NAME_DEF_STMT only on SSA_NAMEs.
5759 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5761 * tree-scalar-evolution.c (instantiate_scev_name): Do not
5762 instantiate default definitions.
5764 2010-08-11 Vladimir Kargov <kargov@gmail.com>
5765 Sebastian Pop <sebastian.pop@amd.com>
5767 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
5768 (loop_exits_from_bb_p): New.
5769 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
5770 (loop_exits_from_bb_p): Declared.
5771 * graphite-scop-detection.c (scopdet_basic_block_info): Call
5774 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5776 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
5777 extra parameter for the region. Call scev_analyzable_p.
5778 (rewrite_reductions_out_of_ssa): Update call to
5779 rewrite_close_phi_out_of_ssa.
5780 (rewrite_cross_bb_phi_deps): Same.
5781 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
5782 parameter for the region. Call scev_analyzable_p.
5783 (rewrite_commutative_reductions_out_of_ssa): Update call to
5784 rewrite_commutative_reductions_out_of_ssa_loop.
5786 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5788 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
5790 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5792 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
5793 SSA scalar phi nodes that can be scev_analyzable_p.
5795 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5797 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
5798 handle SSA_NAME_IS_DEFAULT_DEF.
5800 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5802 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
5804 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5806 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
5807 case non close-phi nodes with one argument.
5809 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5811 * sese.h (scev_analyzable_p): Scevs could be expressions without
5812 chrecs and still be scev_analyzable_p.
5814 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5816 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5818 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5820 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
5821 * cfgloop.h (struct loop): Remove single_iv field.
5822 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
5823 (scop_canonicalize_loops): Removed.
5824 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
5825 over all the loop phi nodes in loop->header.
5826 (build_poly_scop): Remove use of scop_canonicalize_loops.
5828 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5830 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
5833 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5835 * tree-chrec.c (chrec_apply): Should only apply to the specified
5836 variable. Also handle multivariate chains of recurrences that
5837 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
5839 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5841 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
5842 (debug_clast_name_indexes_1): Removed.
5843 (debug_clast_name_indexes): Removed.
5844 (pbb_to_depth_to_oldiv): Removed.
5845 (build_iv_mapping): Replace the use of rename_map with iv_map.
5846 (translate_clast_user): Remove uses of rename_map. Allocate and
5848 (translate_clast_for_loop): Remove uses of rename_map.
5849 (translate_clast_for): Same.
5850 (translate_clast_guard): Same.
5851 (translate_clast): Same.
5853 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
5854 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
5855 * sese.c (set_rename): Now static.
5856 (rename_variables_in_stmt): Removed.
5858 (is_parameter): Removed.
5860 (expand_scalar_variables_call): Removed.
5861 (expand_scalar_variables_ssa_name): Removed.
5862 (expand_scalar_variables_expr): Removed.
5863 (expand_scalar_variables_stmt): Removed.
5864 (expand_scalar_variables): Removed.
5865 (rename_variables): Removed.
5866 (remove_condition): Removed.
5867 (get_true_edge_from_guard_bb): Removed.
5868 (get_false_edge_from_guard_bb): Removed.
5869 (struct igp): Removed.
5870 (default_before_guard): Removed.
5871 (convert_for_phi_arg): Removed.
5872 (add_guard_exit_phis): Removed.
5873 (insert_guard_phis): Removed.
5874 (graphite_copy_stmts_from_block): Now also uses iv_map and a
5875 region. Do not copy conditions. Do not copy induction variables.
5877 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
5878 the translated statement. Use the iv_map for the induction
5880 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5881 (set_rename): Removed declaration.
5882 (scev_analyzable_p): ...here.
5883 * tree-chrec.c (chrec_apply_map): New.
5884 * tree-chrec.h (chrec_apply_map): Declared.
5886 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5888 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
5889 insert_loop_close_phis.
5890 * sese.c (name_defined_in_loop_p): Removed.
5891 (expr_defined_in_loop_p): Removed.
5892 (alive_after_loop): Removed.
5893 (close_phi_not_yet_inserted_p): Removed.
5894 (struct alep): Removed.
5895 (add_loop_exit_phis): Removed.
5896 (insert_loop_close_phis): Removed.
5898 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5900 * graphite-cloog-util.c
5901 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
5903 (psct_scattering_dim_for_loop_depth): Same.
5905 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5907 * graphite-cloog-util.h: Added cloog.h.
5908 * graphite-blocking.c: Removed cloog.h.
5909 * graphite-dependences.c: Same.
5910 * graphite-interchange.c: Same.
5911 * graphite-poly.c: Same.
5912 * graphite-ppl.c: Same.
5913 * graphite-scop-detection.c: Same.
5914 * graphite-sese-to-poly.c:
5916 Removed graphite-clast-to-gimple.h.
5917 (check_poly_representation): Removed (unused).
5918 * graphite-sese-to-poly.h
5919 (check_poly_representation): Removed (unused).
5921 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5923 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
5924 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
5925 (graphite-cloog-util.o): New.
5926 (graphite-ppl.o): Added graphite-cloog-util.h.
5927 * graphite-clast-to-gimple.c:
5928 Added graphite-cloog-util.h to include statements.
5929 * graphite-cloog-util.c: New.
5930 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
5931 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5932 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5933 (new_C_Polyhedron_from_Cloog_Matrix): Same.
5934 (insert_constraint_into_matrix): Same.
5935 (ppl_Constrain_System_number_of_constraints): Same.
5936 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
5937 (oppose_constraint): Same.
5938 (cloog_matrix_to_ppl_constraint): Same.
5939 (new_Constraint_System_from_Cloog_Matrix): Same.
5940 * graphite-cloog-util.h: New.
5941 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
5942 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5943 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5944 (new_C_Polyhedron_from_Cloog_Matrix): Same.
5945 (insert_constraint_into_matrix): Same.
5947 Added graphite-cloog-util.h to include statements.
5948 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
5949 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5950 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5951 (new_C_Polyhedron_from_Cloog_Matrix): Same.
5952 (insert_constraint_into_matrix): Same.
5953 (ppl_Constrain_System_number_of_constraints): Same.
5954 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
5955 (oppose_constraint): Same.
5956 (cloog_matrix_to_ppl_constraint): Same.
5957 (new_Constraint_System_from_Cloog_Matrix): Same.
5959 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
5960 graphite-cloog-util.h.
5961 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5962 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5963 (new_C_Polyhedron_from_Cloog_Matrix): Same.
5964 (insert_constraint_into_matrix): Same.
5966 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5968 * graphite-clast-to-gimple.c
5969 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
5970 (precision_for_interval): Same.
5971 (gcc_type_for_interval): Same.
5972 (compute_type_for_level): Same.
5973 * graphite-interchange.c
5974 (lst_interchange_profitable_p): Same.
5976 (psct_scattering_dim_for_loop_depth): Same.
5978 (ppl_max_for_le_pointset): Same.
5979 (ppl_min_for_le_pointset): Same.
5981 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5983 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
5984 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
5986 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5988 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
5989 rewrite_close_phi_out_of_ssa.
5991 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5993 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
5995 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
5997 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
5999 * sese.c (debug_rename_map): Same.
6002 (rename_variables_in_stmt): Same.
6003 (expand_scalar_variables_call): Same.
6004 (expand_scalar_variables_ssa_name): Same.
6005 (expand_scalar_variables_expr): Same.
6006 (expand_scalar_variables_stmt): Same.
6007 (expand_scalar_variables): Same.
6008 (rename_variables): Same.
6009 (graphite_copy_stmts_from_block): Same.
6010 (copy_bb_and_scalar_dependences): Same.
6012 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6014 * graphite-clast-to-gimple.c (copy_renames): Removed.
6015 (translate_clast_for): Do not call copy_renames.
6016 (translate_clast_guard): Same.
6018 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6020 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6021 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6022 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6023 before rewrite_cross_bb_scalar_deps.
6025 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6027 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6028 Early return in when flag_associative_math is not set.
6030 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6032 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6033 of SSA copies on edges except for loop->latch.
6035 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6037 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6038 Split out of rewrite_reductions_out_of_ssa.
6039 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6041 * graphite.c (graphite_transform_loops): Call it.
6043 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6045 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6047 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
6049 * dbgcnt.def (graphite_scop): New counter.
6050 * graphite.c: Include dbgcnt.h.
6051 (graphite_transform_loops): Use new counter to limit transformations.
6052 * Makefile.in (graphite.o): Depend on DBGCNT_H.
6054 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6056 * passes.c (init_optimization_passes): Add pass_graphite.
6057 Schedule a pass_copy_prop before pass_graphite_transforms.
6058 * timevar.def (TV_GRAPHITE): Declared.
6059 * tree-pass.h (pass_graphite): Declared.
6060 * tree-ssa-loop.c (pass_graphite): New.
6062 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6064 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6065 Remove calls to rename_nb_iterations and rename_sese_parameters.
6066 * graphite-clast-to-gimple.h (gloog): Update declaration.
6067 * graphite.c (graphite_transform_loops): Update call to gloog.
6068 * sese.c (rename_variables_in_expr): Removed.
6069 (rename_nb_iterations): Removed.
6070 (rename_sese_parameters): Removed.
6071 * sese.h (rename_nb_iterations): Removed.
6072 (rename_sese_parameters): Removed.
6074 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6076 * graphite-clast-to-gimple.c (gloog): Remove call to
6077 sese_adjust_liveout_phis.
6078 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6079 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6080 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6081 rewrite_phi_out_of_ssa.
6082 * sese.c (get_vdef_before_sese): Removed.
6083 (sese_adjust_vphi): Removed.
6084 (sese_adjust_liveout_phis): Removed.
6085 * sese.h (sese_adjust_liveout_phis): Removed.
6087 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6089 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6090 argument for the place after which to insert the out of SSA copy.
6091 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6092 (rewrite_phi_out_of_ssa): Same.
6093 (rewrite_cross_bb_scalar_deps): Same.
6094 (insert_copyout): Removed.
6095 (insert_copyin): Removed.
6096 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6097 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6100 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6102 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6103 (rewrite_reductions_out_of_ssa): Same.
6104 (rewrite_commutative_reductions_out_of_ssa): Same.
6105 (build_poly_scop): Do not call these functions.
6106 * graphite-sese-to-poly.h (build_poly_scop): Declared.
6107 (rewrite_reductions_out_of_ssa): Declared.
6108 (rewrite_commutative_reductions_out_of_ssa): Declared.
6109 * graphite.c (graphite_transform_loops): Call on every scop
6110 rewrite_commutative_reductions_out_of_ssa before calling
6111 rewrite_reductions_out_of_ssa and build_scop_bbs.
6113 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6115 * graphite-dependences.c (dot_deps): Make system call to dotty run
6117 (dot_deps_stmt): Same.
6118 * graphite-poly.c (dot_lst): Same.
6120 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6122 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6123 phi_arg_in_outermost_loop.
6124 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6125 (remove_invariant_phi): Same.
6127 2010-08-11 Anatoly Sokolov <aesok@post.ru>
6129 * target.def (output_addr_const_extra): New hook.
6130 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6131 * doc/tm.texi: Regenerate.
6132 * targhooks.c (default_asm_output_addr_const_extra): New function.
6133 * targhooks.h (default_asm_output_addr_const_extra): Declare.
6134 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6137 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6138 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6139 * config/i386/i386.h (output_addr_const_extra): Rename to...
6140 (i386_asm_output_addr_const_extra): ...this. Make static.
6141 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6143 2010-08-11 Richard Henderson <rth@redhat.com>
6145 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6147 2010-08-11 Nick Clifton <nickc@redhat.com>
6149 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6150 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6151 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6152 stormy16-lib2-cmpsi.c.
6154 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6157 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6159 * opts.h (struct cl_option_handler_func): Make handler take
6160 cl_decoded_option structure as parameter, not individual elements.
6161 (struct cl_option_handlers): Make callbacks take cl_decoded_option
6162 structure as parameter, not individual elements.
6163 (handle_option): Take cl_decoded_option structure as parameter,
6164 not individual elements.
6165 (handle_generated_option): Declare.
6166 * opts-common.c (handle_option): Take cl_decoded_option structure
6167 as parameter, not individual elements. Update calls to callback
6168 and handler functions.
6169 (handle_generated_option): New.
6170 (read_cmdline_option): Update calls to callback functions and
6172 * opts.c (common_handle_option, complain_wrong_lang,
6173 unknown_option_callback, post_handling_callback,
6174 lang_handle_option, target_handle_option): Take cl_decoded_option
6175 structure as parameter, not individual elements.
6176 (lang_handle_option, target_handle_option, common_handle_option):
6177 Assert option has at most one argument.
6178 (enable_warning_as_error): Call handle_generated_option instead of
6179 handle_option. Do not pass -Werror argument as argument of
6182 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6184 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6185 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6186 (SUBWORD_BOOL_CAS): Likewise.
6187 (SUBWORD_SYNC_OP): Likewise.
6188 (SUBWORD_TEST_AND_SET): Likewise.
6189 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6190 (SUBWORD_SYNC_OP): Likewise.
6191 (OP_AND_FETCH_WORD): Likewise.
6193 2010-08-10 Xinliang David Li <davidxl@google.com>
6195 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6196 compute max/min offset in address.
6198 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
6200 * ira-live.c: Include sbitmap.h.
6201 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6202 Compress live ranges even more.
6204 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6206 * coverage.c (ctr_labels): Delete.
6208 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6211 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6212 test here from arm_gen_load_multiple_1.
6213 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6214 multiple_operation_profitable_p.
6216 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6218 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6219 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
6221 2010-08-10 Richard Henderson <rth@redhat.com>
6223 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6224 after saving registers. Assert that SSE registers are only saved
6225 with a sufficiently aligned frame.
6226 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6227 remove stack_realign_fp handling.
6228 (ix86_expand_prologue): Save int registers before stack_realign_fp,
6229 and do not mark the stack alignment as frame related.
6230 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6232 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6233 saves when re-aligning the stack.
6235 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6237 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6238 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6239 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6241 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6243 * dwarf2out.c (struct die_struct): Move die_tag to the end.
6245 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
6247 * config/arm/iterators.md: New file.
6248 * config/arm/arm.md: Include iterators.md.
6249 (QHSI): Move to new file.
6250 (LTUGEU, cnb, optab, ior_xor): Likewise.
6251 * config/arm/iwmmxt.md (VMMX): Move to new file.
6252 (VSHFT, MMX_char): Likewise.
6253 * config/arm/neon.md (VD): Move to new file.
6254 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6255 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6256 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6257 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6258 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6259 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6260 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6261 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6262 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6263 (Is_d_reg, V_mode_nunits): Likewise.
6264 * config/arm/vec-common.md (VALL): Move to new file.
6265 (VALLW, VINT, VINTW): Likewise.
6267 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6270 * combine.c (make_compound_operation): Don't try to convert
6271 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6273 2010-08-10 Richard Guenther <rguenther@suse.de>
6275 * tree.h (get_object_alignment): Adjust prototype.
6276 * builtins.c (get_object_alignment): Return unsigned int,
6277 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
6278 and TARGET_MEM_REF properly.
6279 (get_pointer_alignment): Adjust.
6280 * emit-rtl.c (get_mem_align_offset): Adjust comment.
6281 (set_mem_attributes_minus_bitpos): Adjust.
6282 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6284 2010-08-10 Richard Guenther <rguenther@suse.de>
6286 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6287 (copy_prop_visit_assignment): Simplify.
6288 (copy_prop_visit_stmt): Also visit assignments from
6290 (copy_prop_visit_phi_node): Use operand_equal_p.
6292 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6294 * ipa-split.c (find_split_points): Free stack.
6296 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6298 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6299 * tree.c (tree_node_kind): Delete corresponding entries.
6301 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
6303 * alias.c (may_alias_p): Remove unused ret.
6305 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
6307 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6308 alias_sets_conflict_p.
6309 (walk_mems_1): Moved from alias.c.
6310 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6312 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6313 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6314 * alias.c (walk_mems_2): Moved to ddg.c.
6315 (walk_mems_1): Ditto.
6316 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6318 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6320 *(may_alias_p): New function to check whether two memory expression
6321 may alias or not. Currently used in buidling inter-iteration memory
6323 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6324 (insn_alias_sets_conflict_p): Removed
6325 *rtl.h (may_alias_p): New function prototype.
6327 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6329 * tree.c (nreverse): Assert that we don't have a BLOCK.
6331 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6333 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6334 * config/arm/arm.c (arm_get_pcs_model): Likewise.
6335 * config/avr/avr.c (init_cumulative_args): Likewise.
6336 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6337 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6338 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6339 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6340 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6341 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6342 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6343 * dwarf2out.c (gen_subprogram_die): Likewise.
6344 * function.c (allocate_struct_function): Likewise.
6345 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6346 (deserves_ellipsis): Delete.
6348 2010-08-09 Richard Guenther <rguenther@suse.de>
6350 * tree-ssa-copy.c (cached_last_copy_of): Remove.
6351 (valueize_val): New function.
6352 (get_last_copy_of): Remove.
6353 (set_copy_of_val): Simplify.
6354 (dump_copy_of): Likewise.
6355 (copy_prop_visit_cond_stmt): Use valueize_val.
6356 (copy_prop_visit_phi_node): Properly handle unvisited names.
6357 Drop code managing copy-of chains.
6358 (init_copy_prop): Adjust.
6359 (fini_copy_prop): Likewise.
6360 (execute_copy_prop): Remove obsolete comment.
6362 2010-08-09 Richard Guenther <rguenther@suse.de>
6365 * function.c (gimplify_parameters): Do not clear addressable
6366 bit of the original parameter.
6368 2010-08-09 Richard Guenther <rguenther@suse.de>
6371 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6372 alignment from MEM_REF offset only if we took it from the
6375 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
6377 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6379 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6381 * c-tree.h (build_arg_info): Declare.
6382 * c-decl.c (build_arg_info): Define.
6383 (get_parm_info): Call it. Delete initialization code.
6384 * c-parser.c (c_parser_parms_declarator): Likewise.
6385 (c_parser_parms_list_declaractor): Likewise.
6387 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6389 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
6390 (struct c_arg_info): Change type of tags field.
6391 * c-decl.c (grokdeclarator): Update for changed type of tags field.
6392 (get_parm_info): Likewise.
6393 (store_parm_decls_newstyle): Likewise.
6395 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6397 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
6398 (branch_island_list): Delete.
6399 (branch_islands): Declare.
6400 (add_compiler_branch_island): Adjust for branch_islands instead of
6402 (macho_branch_islands): Likewise.
6403 (no_previous_def): Likewise.
6404 (get_prev_label): Likewise.
6406 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6409 * gthr-posix.h (__gthread_start): Delete.
6410 (__gthread_active_init): Use pthread_default_stacksize_np instead of
6411 pthread_create to determine if hpux pthreads are active.
6412 * gthr-posix95.h (__gthread_start): Delete.
6413 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6415 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
6417 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6418 _WIN64 not expanded.
6420 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
6421 H.J. Lu <hongjiu.lu@intel.com>
6424 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6425 to output 32bit SFmode immediate as 8 byte sign extended value.
6427 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
6429 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6430 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6431 (SUBWORD_BOOL_CAS): Likewise.
6432 (SUBWORD_SYNC_OP): Likewise.
6433 (SUBWORD_TEST_AND_SET): Likewise.
6434 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6435 (SUBWORD_SYNC_OP): Likewise.
6436 (OP_AND_FETCH_WORD): Likewise.
6438 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6440 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6441 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6442 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6443 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6445 (cortex_a9_sched_adjust_cost): New function.
6446 (xscale_sched_adjust_cost): New function.
6447 * config/arm/arm-protos.h (struct tune_params): New field
6449 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6451 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
6454 * config/sparc/sparc.c (function_arg_advance): Always take into account
6455 the padding, if any.
6457 2010-08-06 Richard Guenther <rguenther@suse.de>
6459 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6460 (dump_lattice_value): Dump it.
6461 (get_default_value): Adjust.
6462 (get_constant_value): Likewise.
6463 (set_value_varying): Likewise.
6464 (set_lattice_value): Make sure to not go up the lattice
6465 with bitwise constant values.
6466 (get_value_for_expr): Handle ADDR_EXPRs.
6467 (value_to_double_int): New function.
6468 (get_value_from_alignment): Likewise.
6469 (do_dbg_cnt): Adjust.
6470 (ccp_lattice_meet): Handle partially constant values.
6471 (bit_value_unop_1): New function.
6472 (bit_value_binop_1): Likewise.
6473 (bit_value_unop): Likewise.
6474 (bit_value_binop): Likewise.
6475 (evaluate_stmt): Track partially constant values if
6476 flag_tree_bit_ccp is set.
6477 (ccp_fold_stmt): Dump if we folded a predicate.
6478 (ccp_visit_stmt): Adjust.
6479 * common.opt (ftree-bit-ccp): New flag.
6480 * doc/invoke.texi (ftree-bit-ccp): Document.
6481 * opts.c (decode_options): Enable bit-CCP at -O1.
6483 2010-08-06 Alan Modra <amodra@gmail.com>
6485 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
6486 and -mrelocatable-lib description.
6488 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
6490 From Martin Thuresson <martint@google.com>
6491 * postreload.c (reload_cse_simplify_operands): Use
6492 SET_REGNO_RAW instead of SET_REGNO.
6493 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
6495 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
6496 instead of SET_REGNO.
6497 * rtl.h (SET_REGNO_RAW): New macro.
6499 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
6501 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
6502 computations. Fix formatting issues.
6503 (num_sign_bit_copies1): Likewise.
6504 (canonicalize_condition): Likewise.
6506 2010-08-05 Richard Henderson <rth@redhat.com>
6508 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
6509 (floor_log2): Use clz_hwi.
6510 (exact_log2): Use ctz_hwi.
6511 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
6512 * builtins.c (fold_builtin_bitop): Use them.
6513 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6514 * combine.c (get_pos_from_mask): Use ctz_hwi.
6515 * double-int.c (double_int_ctz): Likewise.
6516 * explow.c (force_reg): Likewise.
6517 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
6519 2010-08-05 Richard Henderson <rth@redhat.com>
6522 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
6523 the alignment constant is properly sign-extended.
6525 2010-08-05 Richard Guenther <rguenther@suse.de>
6527 * expr.c (store_expr): Use emit_block_move only if both
6528 source and target are MEMs. Use store_bit_field if only
6529 the target is a MEM.
6531 2010-08-05 Richard Henderson <rth@redhat.com>
6534 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
6535 (INCOMING_RETURN_ADDR_RTX): Likewise.
6536 (dwarf2out_do_frame): Remove conditional compilation.
6537 (dwarf2out_frame_init): Likewise.
6539 2010-08-05 Nicolas Setton <setton@adacore.com>
6541 * gcov.c (flag_display_progress): New static variable.
6542 (main): Display progress info on standard output if requested.
6543 (options): Add -d/--display-progress.
6544 (print_usage): Print them.
6545 (process_args): Handle them.
6546 * doc/gcov.texi: Document them.
6548 2010-08-05 Martin Jambor <mjambor@suse.cz>
6550 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
6551 (ipcp_insert_stage): Redirect only edges not flagged with
6552 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
6553 discovered constants.
6555 2010-08-05 Martin Jambor <mjambor@suse.cz>
6557 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
6558 (struct ipa_param_descriptor): New fields types and
6559 cannot_devirtualize.
6560 (ipa_param_cannot_devirtualize_p): New function.
6561 (ipa_param_types_vec_empty): Likewise.
6562 (ipa_make_edge_direct_to_target): Declare.
6563 * ipa-cp.c: Fixed first stage driver name in initial comment,
6564 described devirtualization there too.
6565 (ipcp_analyze_node): Call ipa_analyze_params_uses.
6566 (ipcp_print_all_lattices): Print devirtualization info.
6567 (ipa_set_param_cannot_devirtualize): New function.
6568 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
6570 (ipcp_init_stage): Merged into...
6571 (ipcp_generate_summary): ...its caller.
6572 (ipcp_change_tops_to_bottom): Also process type lists.
6573 (ipcp_add_param_type): New function.
6574 (ipcp_copy_types): Likewise.
6575 (ipcp_propagate_types): Likewise.
6576 (ipcp_propagate_stage): Also propagate types.
6577 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
6578 Also return true if propagated types require it.
6579 (ipcp_update_callgraph): Dump redirection info.
6580 (ipcp_process_devirtualization_opportunities): New function.
6581 (ipcp_const_param_count): Include known type information.
6582 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
6583 on new node. Fixed formatting.
6584 * ipa-prop.c (make_edge_direct_to_target): Renamed to
6585 ipa_make_edge_direct_to_target and changed all callers. Made
6587 (ipa_node_duplication_hook): Duplicate types vector.
6588 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
6589 redirect outgoing calls for which we can't get a decl from the
6590 statement. Check that we can get a decl from the call statement.
6591 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6592 ipa_analyze_params_uses only when ipa-cp is disabled.
6593 * tree-inline.c (get_indirect_callee_fndecl): Removed.
6594 (expand_call_inline): Do not call get_indirect_callee_fndecl.
6595 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
6596 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
6598 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
6600 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
6601 temporary. Emit move from temporary to accum, so REG_EQUAL note will
6602 be attached to this insn in correct mode.
6604 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
6606 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
6607 using REGNO of base_reg directly.
6609 2010-08-05 Jie Zhang <jie@codesourcery.com>
6611 PR tree-optimization/45144
6612 * tree-sra.c (type_consists_of_records_p): Return false
6613 if the record contains bit-field.
6615 2010-08-04 Richard Henderson <rth@redhat.com>
6617 * config/i386/i386.c (struct ix86_frame): Remove padding and
6618 to_allocate members.
6619 (ix86_compute_frame_layout): Don't store them.
6620 (ix86_can_use_return_insn_p): Use a more direct and more obviously
6621 correct condition for the position of the stack pointer.
6622 (ix86_expand_prologue): Compute remaining stack allocation based
6623 on the ultimate stack pointer offset.
6624 (ix86_expand_epilogue): Use more obvious expressions testing for
6625 the stack pointer already pointing to the saved registers.
6627 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
6628 duplication deconstructing the frame pointer. Simplify
6629 deallocation of the local stack frame.
6631 * reg-notes.def (CFA_EXPRESSION): New.
6632 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6633 (dwarf2out_frame_debug_cfa_expression): New.
6634 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
6636 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
6637 * config/i386/i386.c (ix86_expand_prologue): Set it.
6638 (ix86_expand_epilogue): Clear it.
6639 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
6640 context, add REG_CFA_EXPRESSION notes.
6642 * config/i386/i386.h (struct machine_frame_state): Rename from
6643 machine_cfa_state. Add members tracking SP and FP regardless
6644 of the current CFA register.
6645 (ix86_cfa_state): Remove.
6646 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
6647 and sse_reg_save_offset members.
6648 (ix86_compute_frame_layout): Set them.
6649 (gen_push): Increment sp_offset too.
6650 (choose_baseaddr_len, choose_baseaddr): New.
6651 (ix86_emit_save_reg_using_mov): New.
6652 (ix86_emit_save_regs_using_mov): Use it.
6653 (ix86_emit_save_sse_regs_using_mov): Likewise.
6654 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
6655 compare vs the saved red_zone_offset.
6656 (pro_epilogue_adjust_stack): Adjust sp_offset.
6657 (ix86_adjust_stack_and_probe): Likewise.
6658 (ix86_expand_prologue): Set up, use, and validate the new
6659 frame_state_info members. Use gen_frame_mem.
6660 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
6661 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
6662 new frame_state_info members.
6663 (ix86_emit_leave): Likewise.
6664 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
6665 out-of-range stack pointer offsets here.
6666 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6667 (ix86_expand_epilogue): Use and validate the new frame_state_info
6668 members. Break up and simplify the logic selecting the
6669 restore_regs_via_mov code path. Ensure that there will be no
6670 out-of-range stack pointer offsets.
6672 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
6674 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
6675 argument name to reflect the expected tree; fix indentation.
6676 (ix86_asm_output_function_label): Output the entire 32-bit
6677 ms_hook here as bytes ...
6678 (ix86_expand_prologue): ... not here as insns. Attach the
6679 unwind info for the ms_hook to a blockage insn.
6680 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
6681 (ix86_ms_bitfield_layout_p): Fix indentation.
6682 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
6684 * config/i386/i386.c (ix86_using_red_zone): New.
6685 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
6686 ix86_expand_prologue, ix86_force_to_memory): Use it.
6688 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
6689 saving the int registers.
6691 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
6692 and DWARF2_UNWIND_INFO conditional compilation.
6694 2010-08-04 Richard Henderson <rth@redhat.com>
6697 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
6698 an is_naming_typedef_decl.
6700 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
6702 PR rtl-optimization/45162
6703 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
6704 * dce.c (word_dce_process_block): Likewise.
6706 2010-08-04 Steve Ellcey <sje@cup.hp.com>
6709 * config/ia64/constraints.md (Z): New.
6710 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
6711 (xfreg_or_signed_fp01_operand): New.
6712 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
6713 with fr_reg_or_signed_fp01_operand and constraint G with Z.
6718 (adddf3_trunc): Ditto.
6720 (*subdf3_trunc): Ditto.
6722 (*madddf4_trunc): Ditto.
6724 (*msubdf4_trunc): Ditto.
6725 (addxf3): Replace xfreg_or_fp01_operand with
6726 xfreg_or_signed_fp01_operand and constraint G with Z.
6727 (*addxf3_truncsf): Ditto.
6728 (*addxf3_truncdf): Ditto.
6730 (*subxf3_truncsf): Ditto.
6731 (*subxf3_truncdf): Ditto.
6733 (*maddxf4_truncsf): Ditto.
6734 (*maddxf4_truncdf): Ditto.
6736 (*msubxf4_truncsf): Ditto.
6737 (*msubxf4_truncdf): Ditto.
6739 2010-08-04 Richard Guenther <rguenther@suse.de>
6741 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
6742 if either alias-set is zero.
6744 2010-08-04 Richard Guenther <rguenther@suse.de>
6746 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
6747 * tree-ssa-ccp.c: ... here.
6748 * tree-ssa-copy.c: ... and here.
6749 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
6750 value_range_t): Move ...
6751 * tree-vrp.c: ... here.
6752 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
6753 (substitute_and_fold): Adjust prototype.
6754 * tree-ssa-propagate.c (replace_uses_in): Adjust.
6755 (replace_phi_args_in): Likewise.
6756 (substitute_and_fold): Take callback to query lattice instead
6757 of pointer to lattice. Replace SSA name defs with lattice
6759 * tree-ssa-ccp.c (ccp_finalize): Adjust.
6760 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
6761 (get_value): New function.
6762 (fini_copy_prop): Adjust.
6763 * tree-vrp.c (vrp_finalize): Adjust.
6765 2010-08-04 Richard Guenther <rguenther@suse.de>
6768 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
6769 points-to set for original MEM_REF.
6771 2010-08-04 Richard Guenther <rguenther@suse.de>
6773 * tree-ssa-ccp.c (get_constant_value): New function.
6774 (get_rhs_assign_op_for_ccp): Remove.
6775 (valueize_op): New function.
6776 (ccp_fold): Use get_constant_value and valueize_op.
6777 (fold_const_aggregate_ref): Likewise.
6778 (ccp_fold_stmt): Likewise.
6779 (visit_assignment): Simplify.
6781 2010-08-04 Richard Guenther <rguenther@suse.de>
6783 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
6784 * double-int.h (double_int_ctz): Declare.
6785 * double-int.c (double_int_ctz): New function.
6787 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
6789 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
6791 picochip_expand_movmemhi : Expand movmem pattern.
6792 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
6794 * config/picochip/picochip.md (movmemhi) : New pattern.
6796 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
6798 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
6800 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
6802 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
6803 NEG as operand of a MULT by merging it with the other operand.
6804 * combine.c (make_compound_operation): Use trunc_int_for_mode when
6805 generating a MULT with constant. Canonicalize PLUS and MINUS involving
6807 * config/arm/constraints.md (M): Examine only 32 bits of a
6809 * config/arm/predicates.md (power_of_two_operand): Likewise.
6811 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6813 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
6816 2010-08-03 Jan Hubicka <jh@suse.cz>
6818 * ipa-split.c (struct split_point): Add split_part_set_retval.
6819 (find_retval): Forward declare.
6820 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
6821 (consider_split): Compute current->split_part_set_retval.
6822 (visit_bb): Do not look into return value.
6823 (split_function): Handle !split_part_set_retval
6825 2010-08-03 Martin Jambor <mjambor@suse.cz>
6827 * tree-sra.c (completely_scalarize_record): New parameter REF, create
6828 its own access->expr intead of using build_ref_for_offset.
6830 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6832 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
6833 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
6834 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
6835 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
6836 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
6837 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
6838 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
6839 DEFAULT_SWITCH_TAKES_ARG.
6840 * config/rx/rx.opt (-patch=): Remove option.
6841 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
6842 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
6843 * doc/invoke.texi (RX Options): Remove -patch=.
6844 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
6845 (option_map): Remove --profile-blocks, --quiet and --silent.
6847 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
6849 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
6850 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
6851 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
6852 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
6853 Update calls to ix86_expand_compare and ix86_expand_branch.
6854 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
6855 ix86_expand_compare.
6856 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
6857 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
6859 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
6860 and ix86_compare_op1. Update calls to ix86_expand_compare.
6861 (ix86_expand_int_movcc): Ditto.
6862 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
6863 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
6864 (ix86_expand_setcc): Ditto.
6865 (ix86_expand_compare): Remove prototype.
6866 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
6867 ix86_compare_op0 and ix86_compare_op1. Update calls
6868 to ix86_expand_branch to directly pass operands[1] and operands[2].
6869 (cbranchxf4): Ditto.
6870 (cbranch<MODEF:mode>4): Ditto.
6871 (cbranchcc4): Ditto.
6872 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
6873 Update calls to ix86_expand_setcc to directly pass operands[2] and
6876 (cstore<MODEF:mode>4): Ditto.
6879 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
6882 * caller-save.c (save_call_clobbered_regs): Remove regs from
6883 hard_regs_saved when they are set.
6885 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
6888 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
6891 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
6893 * common.opt (ftree-loop-distribute-patterns): New.
6894 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
6895 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
6897 * tree-data-ref.c (stores_zero_from_loop): New.
6898 * tree-data-ref.h (stores_zero_from_loop): Declared.
6899 * tree-loop-distribution.c (tree_loop_distribution): Call
6900 stores_zero_from_loop.
6901 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
6903 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
6905 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
6908 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
6909 * config/arm/arm.c (thumb1_code): New variable.
6910 (arm_override_options): Set it.
6911 (thumb1_final_prescan_insn): Keep track of condition code status.
6912 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
6913 jumps that depend on them.
6914 * config/arm/arm.h (thumb1_code): Declare variable.
6915 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
6916 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
6918 (CC_STATUS_INIT): New macro.
6919 * config/arm/constraints.md (Pd): New constraint.
6920 * config/arm/predicates.md (noov_comparison_operator): New predicate.
6921 * config/arm/arm.md (is_thumb1): New define_attr.
6922 (conds): Set default to "clob" when generating Thumb1 code.
6923 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
6924 code are set. Use two-operand assembly syntax.
6925 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
6927 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
6928 codes are set. Use two-operand assembly syntax.
6929 (zero_extendhisi splitter): Remove constraints.
6930 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
6931 thumb1_movsf_insn): Set conds attribute as appropriate.
6932 (cbranchsi4_insn): Use condition code status from struct
6933 machine_function to determine whether the comparison can be eliminated.
6934 Discourage the alternative using high registers.
6935 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
6936 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
6937 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
6938 subsi3_cbranch): Delete.
6939 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
6940 one subtract and one cbranch insn.
6942 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
6943 thumb2_movdf_soft_insn): Delete patterns.
6944 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
6945 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
6946 (pool_range, neg_pool_range): Use them to define defaults.
6947 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
6948 and allow for TARGET_32BIT.
6951 * config/arm/arm.h (arm_regs_in_sequence): Declare.
6952 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
6953 load_multiple_sequence, store_multiple_sequence): Delete
6955 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
6957 * config/arm/ldmstm.md: New file.
6958 * config/arm/arm.c (arm_regs_in_sequence): New array.
6959 (load_multiple_sequence): Now static. New args SAVED_ORDER,
6960 CHECK_REGS. All callers changed.
6961 If SAVED_ORDER is nonnull, copy the computed order into it.
6962 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
6963 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
6964 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
6965 If SAVED_ORDER is nonnull, copy the computed order into it.
6966 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
6967 like REGS. Handle Thumb mode.
6968 (arm_gen_load_multiple_1): New function, broken out of
6969 arm_gen_load_multiple.
6970 (arm_gen_store_multiple_1): New function, broken out of
6971 arm_gen_store_multiple.
6972 (arm_gen_multiple_op): New function, with code from
6973 arm_gen_load_multiple and arm_gen_store_multiple moved here.
6974 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
6975 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
6977 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
6978 * config/arm/predicates.md (commutative_binary_operator): New.
6979 (load_multiple_operation, store_multiple_operation): Handle more
6980 variants of these patterns with different starting offsets. Handle
6982 * config/arm/arm.md: Include "ldmstm.md".
6983 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
6984 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
6985 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
6987 * config/arm/ldmstm.md: New file.
6988 * config/arm/arm-ldmstm.ml: New file.
6990 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
6991 if statement which adds extra costs to frame-related expressions.
6993 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6995 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
6997 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
7000 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7002 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7003 split V4SI operands.
7005 2010-08-01 Anatoly Sokolov <aesok@post.ru>
7007 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7008 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7009 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7010 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7012 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
7014 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7017 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7019 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7020 used in the call to optab_for_tree_code. Fix the second
7021 is_widening_mult_p call. Check that both unwidened operands
7024 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
7026 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7028 2010-07-31 Anatoly Sokolov <aesok@post.ru>
7030 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7032 2010-07-30 DJ Delorie <dj@redhat.com>
7034 * config/rx/predicates.md (rx_constshift_operand): New.
7035 * config/rx/rx.md (zs_cond): New.
7036 (cbranchsi4): Remove mode.
7037 (*cbranchsi4_<code>): Likewise.
7038 (*tstbranchsi4_<code>): New.
7039 (*tstbranchsi4r_<code>): New.
7040 (*tstbranchsi4m_eq): New.
7041 (*tstbranchsi4m_ne): New.
7042 (cbranchsf4): Remove mode.
7043 (*cbranchsf4_<code>): Likewise.
7045 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
7047 * rtlanal.c (simplify_subreg_regno): Don't treat
7048 HARD_FRAME_POINTER_REGNUM specially.
7050 2010-07-30 Joseph Myers <joseph@codesourcery.com>
7052 * common.opt (-G): Don't define option here.
7053 * config/g.opt: New.
7054 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7055 rs6000/powerpc and score targets.
7056 * opts.c (common_handle_option): Don't handle -G here.
7057 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7058 * config/frv/frv.c (frv_handle_option): Handle -G.
7059 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7060 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7061 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7062 * config/mips/mips.c (mips_handle_option): Handle -G.
7063 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7064 * config/score/score.c (score_handle_option): Handle -G.
7066 2010-07-30 Anatoly Sokolov <aesok@post.ru>
7068 * config/mmix/mmix.c: Include basic-block.h.
7070 2010-07-30 Jakub Jelinek <jakub@redhat.com>
7073 PR rtl-optimization/45137
7074 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7076 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7078 * combine.c (next_nonnote_nondebug_insn): Removed.
7079 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7080 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7081 * sched-deps.c (sched_analyze_insn): Likewise.
7082 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7083 * rtlanal.c (canonicalize_condition): Likewise.
7084 * postreload.c (reload_combine_recognize_pattern): Likewise.
7085 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7087 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
7089 * config/i386/i386.md (int_cond): Remove code iterator.
7091 (cbranch<mode>4): Use ordered_comparison_operator predicate
7093 (cstore<mode>4): Ditto for operator1.
7094 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7095 (add<mode>cc): ditto.
7097 2010-07-30 Richard Guenther <rguenther@suse.de>
7100 * expr.c (expand_expr_real_1): Check for not handled base address.
7102 2010-07-30 Richard Guenther <rguenther@suse.de>
7104 * ipa-prop.c (ipa_modify_formal_parameters): Use
7105 build_distinct_type_copy.
7107 2010-07-30 Anthony Green <green@moxielogic.com>
7109 * config/moxie/rtems.h: New file.
7110 * config.gcc: Add moxie-rtems support.
7112 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7114 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
7115 df flags as in run_fast_df_dce.
7117 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7120 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7122 * rtl.def (NOTE): Swap operands 4 and 5.
7123 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7124 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7126 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7128 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7131 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7132 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7133 (gen_subprogram_die): Likewise. Remove it when removing declaration's
7135 (gen_decl_die): Change return type to dw_die_ref, return what
7136 gen_formal_parameter_die returned.
7138 2010-07-29 Martin Jambor <mjambor@suse.cz>
7140 * dbgcnt.def (eipa_sra): New counter.
7141 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7143 2010-07-29 Xinliang David Li <davidxl@google.com>
7146 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7149 2010-07-29 Richard Guenther <rguenther@suse.de>
7151 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7152 (TV_TREE_STORE_CCP): Likewise.
7153 (TV_TREE_REDPHI): Likewise.
7155 2010-07-29 Richard Guenther <rguenther@suse.de>
7157 * double-int.h (double_int_and_not): New function.
7158 * combine.c (try_combine): Use it.
7159 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7161 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7163 PR rtl-optimization/42575
7164 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7165 Argument AU removed. All callers changed. Ignore artificial refs.
7166 Use return value of df_word_lr_simulate_defs to decide whether an insn
7168 (fast_dce): Rename arg to WORD_LEVEL.
7169 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
7171 (pass_fast_rtl_byte_dce): Delete.
7172 * dce.h (run_word_dce): Declare.
7173 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7174 All callers changed. Simplify code to only deal with two-word regs.
7175 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7176 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7177 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7178 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7179 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7180 (df_word_lr_mark_ref): Declare.
7181 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7182 df_word_lr_simulate_uses): Declare or rename from byte variants.
7183 (df_byte_lr_simulate_artificial_refs_at_top,
7184 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7185 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7187 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7188 (enum df_mm): Delete.
7189 * df-byte-scan.c: Delete file.
7190 * df-problems.c (df_word_lr_problem_data): Renamed from
7191 df_byte_lr_problem_data, all members deleted except for
7192 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
7193 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7194 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7195 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7196 df_byte_lr_confluence_0): Delete functions.
7197 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7199 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7200 Don't initialize members that were deleted, don't try to discover data
7201 about registers. Ignore hard regs.
7202 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7203 (df_word_lr_mark_ref): New function.
7204 (df_word_lr_bb_local_compute): Renamed from
7205 df_byte_bb_lr_local_compute; all callers changed. Use
7206 df_word_lr_mark_ref. Assert that artificial refs don't include
7207 pseudos. Ignore hard registers.
7208 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7209 Assert that exit block uses don't contain pseudos.
7210 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7211 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7212 callers changed. Ignore hard regs.
7213 (df_word_lr_transfer_function): Renamed from
7214 df_byte_lr_transfer_function; all callers changed.
7215 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7216 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7218 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7220 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7221 confluence operator 0 set to NULL.
7222 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7224 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7225 Return bool, true if bitmap changed or insn otherwise necessary.
7226 All callers changed. Simplify using df_word_lr_mark_ref.
7227 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7228 all callers changed. Simplify using df_word_lr_mark_ref.
7229 * lower-subreg.c: Include "dce.h"
7230 (decompose_multiword_subregs): Call run_word_dce if df available.
7231 * Makefile.in (lower-subreg.o): Adjust dependencies.
7232 (df-byte-scan.o): Delete.
7233 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7235 2010-07-29 Richard Guenther <rguenther@suse.de>
7237 * tree.c (build_vector): Assert that the vector constant
7238 has enough elements.
7239 (build_vector_from_ctor): Pad with trailing zeros.
7241 2010-07-29 Richard Guenther <rguenther@suse.de>
7243 PR tree-optimization/45120
7244 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7245 Handle offset in DEREFs properly.
7246 (get_constraint_for_1): Handle MEM_REF offset properly.
7248 2010-07-29 Richard Guenther <rguenther@suse.de>
7251 * convert.c (convert_to_integer): Always use an unsigned
7252 type for narrowed negate and bitwise not.
7254 2010-07-29 Ira Rosen <irar@il.ibm.com>
7256 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7257 to outer loop when creating reduction epilogue for double reduction,
7258 and switch back to the inner loop when updating the phi nodes.
7259 Update uses of outer loop exit phi nodes in double reduction (instead
7260 of uses of reduction).
7262 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7264 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7265 popcount on power7 and parity on power6 systems.
7266 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7267 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7270 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7271 (UNSPEC_PARITY): Ditto.
7272 (SFDF): New iterator for SF/DF.
7273 (rreg2): New mode attribute for floating register constraint.
7274 (TARGET_FLOAT): New mode attribute for whether single/double float
7276 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7278 (parity<mode>2_cmpb): New insn for parity on power6 and newer
7280 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7281 pattern. Add support for fcpsgn instruction added in power6.
7282 (copysignsf3): Delete.
7283 (copysigndf3): Delete.
7284 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
7285 instead of if_then_else in RTL to avoid problems with -0.
7287 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7288 of if_then_else to mirror scalar code.
7289 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7292 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7293 instead of if_then_else.
7295 2010-07-28 Xinliang David Li <davidxl@google.com>
7297 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7298 (dump_cand): Dump var_before/after.
7299 (htab_inv_expr_eq): New function.
7300 (htab_inv_expr_hash): New function.
7301 (tree_ssa_iv_optimize_init): Support pseudo invariants.
7302 (add_candidate_1): consider base type precision.
7303 (set_use_iv_cost): New parameter.
7304 (adjust_setup_cost): Use profile information.
7305 (get_address_cost): Do not hard code width in computing address
7307 (compare_aff_trees): New function.
7308 (get_loop_invariant_expr_id): New function.
7309 (get_computation_cost_at): New parameter and use profile information.
7310 (get_computation_cost): New parameter.
7311 (determine_use_iv_cost_generic): Pass new parameter.
7312 (determine_use_iv_cost_address): Ditto.
7313 (determine_use_iv_cost_condition): Ditto.
7314 (autoinc_possible_for_pair): Ditto.
7315 (determine_use_iv_costs): More dumps.
7316 (iv_ca_get_num_inv_exprs): New function.
7317 (iv_ca_recount_cost): Consider loop invariants in register pressure
7319 (iv_ca_add_use): New parameter.
7320 (iv_ca_dump): Better dumping.
7321 (iv_ca_extend): New parameter.
7322 (try_add_cand_for): Attempt to get better partial solution.
7323 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7324 (create_new-ivs): More dumps.
7325 (rewrite_use_compare): Ditto.
7326 (free_loop_data): More cleanup.
7327 (treee_ssa_iv_optimize_finalize): Ditto.
7329 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
7331 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7332 * config/i386/i386.c (ix86_profile_before_prologue): New.
7333 (override_options): Add special handling for -mfentry.
7334 (ix86_function_regparm): Likewise.
7335 (ix86_function_sseregparm): Likewise.
7336 (ix86_frame_pointer_required): Likewise.
7337 (ix86_expand_prologue): Check for ms_hook_prologue.
7338 (x86_function_profiler): Adjust mcount output.
7339 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7340 * config/i386/i386.opt (mfentry): New.
7341 * doc/invoke.texi (mfentry): Add documentation.
7342 * doc/tm.texi: Regenerated..
7343 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7344 * final.c (final_start_function): Replace macro
7345 PROFILE_BEFORE_PROLOGUE by target hook.
7346 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7347 * target.def (profile_before_prologue): New hook.
7348 * targhooks.c (default_profile_before_prologue): New.
7349 * targhooks.h (default_profile_before_prologue): New.
7351 2010-07-28 Jakub Jelinek <jakub@redhat.com>
7354 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7357 * dwarf2out.c (dwarf2out_var_location): Always consider
7358 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7360 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7362 PR rtl-optimization/45107
7363 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7365 2010-07-28 Richard Guenther <rguenther@suse.de>
7367 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7368 (set_lattice_value): Do not query an old default value.
7369 (get_value_for_expr): New function. Properly canonicalize
7371 (ccp_visit_phi_node): Use it.
7373 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
7375 * config/arm/arm.c (arm_pcs_default): Remove static.
7376 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7377 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7378 (arm_pcs_default): Declare.
7380 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
7382 * config/rs6000/rs6000.c (rs6000_override_options):
7383 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7384 ... to darwin_rs6000_override_options.
7385 (rs6000_return_in_memory): Update preceding comment for darwin
7386 64 bit ABI. Use TARGET_MACHO inline.
7387 (rs6000_darwin64_struct_check_p): New.
7388 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7389 (function_arg): Likewise.
7390 (rs6000_arg_partial_bytes): Likewise.
7391 (rs6000_function_value): Likewise.
7393 2010-07-28 Andi Kleen <ak@linux.intel.com>
7395 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7397 2010-07-28 Richard Guenther <rguenther@suse.de>
7400 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7401 targets try harder to not generate unaligned accesses.
7403 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7405 PR rtl-optimization/45101
7406 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7409 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
7411 PR tree-optimization/44885
7412 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7413 with non-aliased component.
7415 2010-07-28 Joseph Myers <joseph@codesourcery.com>
7417 * config/darwin-driver.c (SWITCH_TAKES_ARG,
7418 WORD_SWITCH_TAKES_ARG): Remove.
7419 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7420 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7421 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7422 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7423 definitions from gcc.c.
7424 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7426 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7428 * opts-common.c: Include tm.h.
7429 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7430 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7431 Handle more than one argument. Set canonical_option_num_elements.
7432 (decode_cmdline_options_to_array): Set
7433 canonical_option_num_elements and trailing elements of
7435 * opts.h (struct cl_decoded_option): Allow four elements in
7436 canonical_option. Add field canonical_option_num_elements.
7437 * Makefile.in (opts-common.o): Update dependencies.
7439 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
7443 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
7444 sure the base has address_mode before adding the offset.
7446 2010-07-27 Xinliang David Li <davidxl@google.com>
7448 * tree-flow.h (create_mem_ref): Add one new parameter.
7449 * tree-ssa-address.c (create_mem_ref): New parameter.
7450 (addr_to_parts): Ditto.
7451 (move_variant_to_index): New function.
7452 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7454 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7456 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7458 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7459 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7460 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7461 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7462 CODE_LABELs and NOTEs.
7463 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7464 * combine.c (try_combine): Likewise.
7465 * ira.c (setup_prohibited_mode_move_regs): Likewise.
7466 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
7468 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7470 * coretypes.h (struct cl_option_handlers): Declare.
7471 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
7472 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
7473 * langhooks-def.h (lhd_handle_option): Declare.
7474 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
7475 * langhooks.c (lhd_handle_option): New.
7476 * langhooks.h (struct lang_hooks): Update prototype and return
7477 value type of handle_option hook.
7478 * optc-gen.awk: Generate target_flags_explicit definition for the
7480 * opts-common.c: Include diagnostic.h.
7481 (handle_option): Move from opts.c. Update prototype and return
7482 value type. Use handlers structure.
7483 (read_cmdline_option): Move from opts.c. Update prototype. Use
7485 (set_option): Move from opts.c.
7486 * opts.c (common_handle_option): Update prototype and return value
7487 type. Update calls to handle_option and enable_warning_as_error.
7488 (unknown_option_callback, post_handling_callback,
7489 lang_handle_option, target_handle_option): New.
7490 (handle_option, read_cmdline_option): Move to opts-common.c.
7491 (read_cmdline_options): Update prototype. Update call to
7492 read_cmdline_option.
7493 (decode_options): Initialize and use handlers structure.
7494 (set_option): Move to opts-common.c.
7495 (enable_warning_as_error): Update prototype. Update call to
7497 * opts.h (struct cl_option_handler_func, struct
7498 cl_option_handlers): New.
7499 (handle_option, enable_warning_as_error): Update prototypes.
7500 (read_cmdline_option): Declare.
7501 * Makefile.in (opts-common.o): Update dependencies.
7503 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7505 * config/arm/arm.c (params.h): Include.
7506 (arm_override_options): Tune gcse-unrestricted-cost.
7507 * config/arm/t-arm (arm.o): Define dependencies.
7509 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7513 * basic-block.h (get_dominated_to_depth): Declare.
7514 * dominance.c (get_dominated_to_depth): New function, use
7515 get_all_dominated_blocks as a base.
7516 (get_all_dominated_blocks): Use get_dominated_to_depth.
7518 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
7519 (hoist_exprs): Remove.
7520 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
7521 (compute_code_hoist_vbeinout): Add debug print outs.
7522 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
7524 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
7526 * params.h (MAX_HOIST_DEPTH): New macro.
7527 * doc/invoke.texi (max-hoist-depth): Document.
7529 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7531 PR rtl-optimization/40956
7532 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
7535 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7539 * config/arm/arm.c (legitimize_pic_address): Use
7540 gen_calculate_pic_address pattern to emit calculation of PIC address.
7541 (will_be_in_index_register): New function.
7542 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
7543 (thumb1_legitimate_address_p): Use it provided !strict_p.
7544 * config/arm/arm.md (calculate_pic_address): New expand and split.
7546 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7550 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
7551 * config/arm/arm.md (define_split "J", define_split "K"): Make
7552 IRA/reload friendly.
7554 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7556 * gcse.c (insert_insn_end_basic_block): Update signature, remove
7558 (pre_edge_insert, hoist_code): Update.
7560 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7564 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
7566 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7568 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
7570 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7572 PR rtl-optimization/40956
7575 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
7577 (hoist_code): Count occurences in current block too.
7579 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7581 * gcse.c (struct expr:max_distance): New field.
7582 (doing_code_hoisting_p): New static variable.
7583 (want_to_gcse_p): Change signature. Allow constrained hoisting of
7584 simple expressions, don't change behavior for PRE. Set max_distance.
7585 (insert_expr_in_table): Set new max_distance field.
7586 (hash_scan_set): Update.
7587 (hoist_expr_reaches_here_p): Stop search after max_distance
7589 (find_occr_in_bb): New static function. Use it in ...
7590 (hoist_code): Calculate sizes of basic block before any changes are
7591 done. Pass max_distance to hoist_expr_reaches_here_p.
7592 (one_code_hoisting_pass): Set doing_code_hoisting_p.
7594 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
7595 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
7596 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
7598 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
7601 2010-07-27 Jeff Law <law@redhat.com>
7602 Maxim Kuvyrkov <maxim@codesourcery.com>
7604 * gcse.c (compute_transpout, transpout): Remove, move logic
7605 to prune_expressions.
7606 (compute_pre_data): Move pruning of trapping expressions ...
7607 (prune_expressions): ... here. New static function.
7608 (compute_code_hoist_data): Use it.
7609 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
7611 2010-07-27 Xinliang David Li <davidxl@google.com>
7613 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
7614 (rewrite_use_address): Adjust iv update position when needed.
7616 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7618 * dbgcnt.def (hoist_insn): New debug counter.
7619 * gcse.c (hoist_code): Use it.
7621 2010-07-27 Xinliang David Li <davidxl@google.com>
7623 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
7624 (niter_for_single_dom_exit): Passes additional parameter.
7625 (iv_period): Fix comments.
7626 (may_eliminate_iv): Handles multiple exit loops properly.
7627 (free_tree_niter_desc): New function.
7628 (free_loop_data): Frees up loop iteration descriptors.
7630 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7633 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
7634 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
7635 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
7636 (expand_one_var): Don't consider DECL_ALIGN for variables for
7637 which expand_one_stack_var_at has been already called.
7640 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
7641 constraints on IA-64.
7643 2010-07-27 Jie Zhang <jie@codesourcery.com>
7647 2010-07-23 Jie Zhang <jie@codesourcery.com>
7649 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
7650 false if ! tree_versionable_function_p.
7652 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7654 * dwarf2out.c (add_data_member_location_attribute): Use
7655 add_AT_unsigned instead of add_AT_int if offset is non-negative.
7657 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7659 * postreload.c (try_replace_in_use): New static function.
7660 (reload_combine_recognize_const_pattern): Use it here. Allow
7661 substituting into a final add insn, and substituting into a memory
7662 reference in an insn that sets the reg.
7664 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7666 * common.opt (o): Add MissingArgError.
7667 * doc/options.texi (MissingArgError): Document.
7668 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
7669 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
7670 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7671 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
7672 * langhooks.h (struct lang_hooks): Remove missing_argument.
7673 * optc-gen.awk: Handle MissingArgError and output new structure
7675 * opts.c (read_cmdline_option): Use missing_argument_error field
7676 instead of missing_argument langhook.
7677 * opts.h (struct cl_option): Add missing_argument_error field.
7678 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
7680 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
7683 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
7684 Darwin64 ABI, for zero-sized objects.
7686 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
7691 Merge from Apple local 4.2.1.
7692 2005-05-11 Stan Shebs <shebs@apple.com>
7693 Fix 64-bit varargs for Darwin (Radar 4028089).
7694 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
7695 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7696 Add argument, add case for 8-byte register half-filled with a float.
7697 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
7698 single-precision floats specially.
7700 2010-07-27 Ira Rosen <irar@il.ibm.com>
7702 PR tree-optimization/44152
7703 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
7704 complex numbers for further check.
7705 (vect_supported_load_permutation_p): Check nodes with
7708 2010-07-27 Joseph Myers <joseph@codesourcery.com>
7710 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
7711 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
7712 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
7713 (LANG_HOOKS_INITIALIZER): Add new hooks.
7714 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
7715 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
7716 and complain_wrong_lang_p. Update init_options prototype.
7717 * c-objc-common.c (c_initialize_diagnostics): First call
7718 c_common_initialize_diagnostics.
7719 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
7720 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
7721 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
7722 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
7723 (hook_uint_void_0): New.
7724 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
7725 (hook_uint_void_0): New.
7726 * opts-common.c (decode_cmdline_option,
7727 decode_cmdline_options_to_array): Also fill in canonical_option field.
7728 * opts.c (complain_wrong_lang): Use langhook to determine whether
7729 to complain instead of special-casing LTO.
7730 (decode_options): Separate lang_mask determination with
7731 option_lang_mask hook from call of init_options hook.
7732 * opts.h (struct cl_decoded_option): Add canonical_option.
7734 2010-07-27 Jakub Jelinek <jakub@redhat.com>
7736 PR tree-optimization/45083
7737 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
7739 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7741 * postreload.c (reload_combine_recognize_const_pattern): Move test
7742 for limiting the insn movement to the right scope.
7744 PR rtl-optimization/45051
7745 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
7746 than reg_mentioned_p.
7748 2010-07-26 Richard Henderson <rth@redhat.com>
7751 * tree-emutls.c: New file.
7752 * Makefile.in (OBJS-common): Add it.
7753 * tree-pass.h (pass_ipa_lower_emutls): Declare.
7754 * passes.c (init_optimization_passes): Add it.
7756 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
7757 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
7758 * expr.c (emutls_var_address): Delete.
7759 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
7760 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
7761 (emutls_finish): Delete.
7762 * toplev.c (compile_file): Don't call it.
7763 * tree.h (emutls_decl): Delete.
7764 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
7765 (emutls_finish, emutls_finalize_control_var): Delete.
7766 (emutls_object_type): Move to tree-emutls.c.
7767 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
7768 default_emutls_var_fields, get_emutls_object_type,
7769 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
7770 default_emutls_var_init): Likewise.
7771 (get_variable_section): Don't special case emutls.
7772 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
7773 default_elf_select_section, default_unique_section,
7774 default_encode_section_info): Likewise.
7775 * varpool.c (decide_is_variable_needed): Likewise.
7776 * gimple-iterator.c (update_call_edge_frequencies): New
7777 (gsi_insert_on_edge_immediate): Use it.
7778 (gsi_insert_seq_on_edge_immediate): Likewise.
7779 (gsi_commit_one_edge_insert): Likewise.
7781 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
7782 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
7783 (x86_64_elf_unique_section): Likewise.
7785 2010-07-26 Jan Hubicka <jh@suse.cz>
7787 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
7790 2010-07-26 Anatoly Sokolov <aesok@post.ru>
7792 * target.def (output_source_filename): New hook.
7793 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
7794 * doc/tm.texi: Regenerate.
7795 * toplev.c (output_file_directive) Remove function.
7796 * toplev.h (output_file_directive) Remove.
7797 * output.h (default_asm_output_source_filename,
7798 output_file_directive): Declare.
7799 * varasm.h (default_asm_output_source_filename,
7800 output_file_directive): New functions.
7802 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7803 * config/mips/mips-protos.h (mips_output_filename): Remove.
7804 * config/mips/mips.c (mips_output_filename): Make Static.
7805 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7807 2010-07-26 Richard Guenther <rguenther@suse.de>
7809 PR tree-optimization/43784
7810 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
7811 if the destination is used by the call.
7813 2010-07-26 Richard Guenther <rguenther@suse.de>
7816 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
7817 SSA updating on being in SSA form.
7819 2010-07-26 Richard Guenther <rguenther@suse.de>
7822 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
7824 2010-07-26 Richard Guenther <rguenther@suse.de>
7826 PR tree-optimization/45071
7827 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
7830 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
7832 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
7833 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
7834 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
7835 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
7836 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
7837 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
7838 save_r31, return_r31, save_interrupt, return_interrupt,
7839 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
7840 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
7841 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
7842 new ABI requirements.
7843 (save_r6_r9, L_callt_save_r6_r9): Remove.
7844 * config/v850/predicates.md (even_reg_operand, disp23_operand,
7845 const_float_1_operand const_float_0_operand): New Predicates.
7846 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
7847 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
7848 * config/v850/t-v850: Update multilibs for new target variants.
7849 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
7850 * config/v850/t-v850e: Likewise.
7851 * config/v850/v850.c (v850_issue_rate): New.
7852 (v850_strict_argument_naming): New.
7853 (function_arg): Modify to generate a different ABI.
7854 (print_operand): Update case 'z' to support float modes.
7855 (output_move_single): Modify to generate appropriate and better
7857 (v850_float_z_comparison_operator, v850_select_cc_mode,
7858 v850_float_nz_comparison_operator, v850_gen_float_compare,
7859 v850_gen_compare): New functions to support comparison of float values.
7860 (ep_memory_offset): Add support for V850E2 targets.
7861 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
7862 (INTERRUPT_REGPARM_NUM): Remove.
7863 (compute_register_save_size): Add extra case to save/restore long call.
7864 (use_prolog_function): New function to support prologue.
7865 (expand_prologue): Add support for V850E2 targets and modified
7866 as per the current ABI requirements.
7867 (expand_epilogue): Likewise.
7868 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
7869 (construct_save_jarl): Likewise.
7870 (construct_dispose_instruction): Update as per the current ABI
7872 (construct_prepare_instruction): Likewise.
7873 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
7874 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
7875 (CPP_SPEC): Updated to support v850e2 targets.
7876 (STRICT_ALIGNMENT): Modified.
7877 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
7878 (FIXED_REGISTERS): Likewise.
7879 (CALL_USED_REGISTERS): Likewise.
7880 (CONDITIONAL_REGISTER_USAGE): Updated.
7881 (HARD_REGNO_MODE_OK): Updated.
7882 (reg_class): Updated to add even registers.
7883 (REG_CLASS_NAMES): Likewise.
7884 (REG_CLASS_CONTENTS): Likewise.
7885 (REGNO_REG_CLASS): Updated for CC registers.
7886 (REG_CLASS_FROM_LETTER): Added support for even registers.
7887 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
7888 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
7889 ARG_POINTER_REGNUM): Updated.
7890 (FUNCTION_ARG_ADVANCE): Define.
7891 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
7892 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
7893 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
7894 (GO_IF_LEGITIMATE_ADDRESS): Updated.
7895 (SELECT_CC_MODE): Define.
7896 (REGISTER_NAMES): Updated to add psw and fcc registers.
7897 (ADDITIONAL_REGISTER_NAMES): Updated.
7898 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
7899 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
7900 * config/v850/v850.md (define_constants): Define new constants.
7901 (type): Update store,bit1,macc,div,fpu and single attributes.
7902 (cpu): New attribute.
7903 (cc): Add set_z attribute.
7904 (unsign23byte_load, sign23byte_load, unsign23hword_load,
7905 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
7906 23word_store): New instructions for 23-bit displacement load and store.
7907 (movqi_internal, movhi_internal): Update the attributes.
7908 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
7909 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
7911 (v850_tst1): Modified using CC_REGNUM.
7913 (cmpsi): Modified as define_expand from define_insn.
7914 (cmpsi_insn, cmpsf, cmpdf): New instructions.
7915 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
7916 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
7917 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
7918 one_cmplsi2): Clobber the CC_REGNUM register.
7919 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
7920 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
7921 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
7922 (setf_insn, set_z_insn, set_nz_insn): New instructions for
7924 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
7925 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
7927 (sasf_1, sasf_2): Remove.
7928 (sasf): New instruction.
7929 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
7930 targets. CC_REGNUM register is clobbered and attributes are
7932 (branch_z_normal, branch_z_invert, branch_nz_normal,
7933 branch_nz_invert): New branch related instructions.
7934 (jump): Updated the attributes.
7935 (switch): Update to support new targets. CC_REGNUM register is
7936 clobbered and attributes are updated.
7937 (call_internal_short, call_internal_long, call_value_internal_short,
7938 call_value_internal_long): Updated the attributes.
7939 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
7940 clobbered and attributes are updated.
7941 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
7942 Update to support new targets. CC_REGNUM register is clobbered.
7943 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
7945 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
7947 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
7948 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
7949 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
7950 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
7951 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
7952 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
7953 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
7954 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
7955 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
7956 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
7957 point instructions defined for V850e2v3 target.
7958 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
7959 Add support for V850E2 targets and CC_REGNUM register is clobbered.
7960 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
7961 support for new targets.
7962 * config/v850/v850-modes.def: New file.
7963 * config/v850/v850.opt(mstrict-align): Remove.
7964 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
7965 mv850e2v3): New command line options for V850.
7966 * config.gcc: Update the newly added files.
7967 * doc/invoke.texi: Update the newly added command line options for
7970 2010-07-26 Richard Guenther <rguenther@suse.de>
7972 PR tree-optimization/45052
7973 * ipa-pure-const.c (check_stmt): Check volatileness.
7975 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
7978 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
7979 * config/sparc/sparc.c: Include reload.h.
7980 (legitimize_tls_address): Rename into...
7981 (sparc_legitimize_tls_address): ...this.
7982 (legitimize_pic_address): Rename into...
7983 (sparc_legitimize_pic_address): ...this.
7984 (sparc_expand_move): Adjust to above renaming.
7985 (sparc_tls_referenced_p): Likewise.
7986 (sparc_legitimize_tls_address): Likewise.
7987 (sparc_legitimize_pic_address): Likewise.
7988 (sparc_legitimize_address): Likewise.
7989 (sparc_output_mi_thunk): Likewise.
7990 (sparc_legitimize_reload_address): New global function. Recognize
7991 (lo_sum (high ...) ...) patterns generated by earlier passes.
7992 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
7994 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
7997 * config/sparc/predicates.md (memory_reg_operand): Delete.
7998 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
7999 (*sync_compare_and_swap): Encode the address form in the pattern.
8000 (*sync_compare_and_swapdi_v8plus): Likewise.
8002 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
8004 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8005 Streamline paragraph on compatibility with the system compiler.
8007 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
8010 * alias.c (true_dependence_1): Fix thinko in merge of old
8011 true_dependence and canon_true_dependence.
8013 2010-07-23 Jan Hubicka <jh@suse.cz>
8015 * lto-streamer-out.c (write_symbol): Fix visibilities of external
8018 2010-07-23 Le-Chun Wu <lcwu@google.com>
8020 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8021 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8022 and an unnecessary assignment.
8023 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8024 self-assign warning.
8025 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8026 unnecessary self-init.
8028 2010-07-23 Richard Guenther <rguenther@suse.de>
8031 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8032 for -flto and -fwhopr.
8034 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
8037 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8038 (stmp-int-hdrs): Prefix/postfix headers by include_next.
8039 * config.gcc (user_headers_inc_next_pre): New.
8040 (user_headers_inc_next_post): Likewise.
8041 (*-w64-mingw*): Use for float.h post-fixing, and for
8042 stddef.h/stdarg.h pre-fixing by include_next.
8043 * configure.ac (user_headers_inc_next_post): New.
8044 (user_headers_inc_next_pre): New.
8045 * configure: Regenerated.
8047 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8049 * configure.ac: Don't disable TLS on Solaris 8/9 by default
8050 Set tga_func for Solaris 2/x86 resp. SPARC.
8051 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8052 (LIB_THREAD_LDFLAGS_SPEC): Define.
8053 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
8054 * configure: Regenerate.
8055 * config.in: Regenerate.
8056 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8057 -pthread, -threads, LIB_TLS_SPEC with -pthread.
8058 * doc/install.texi (Specific, *-*-solaris2*): Document use of
8059 alternate thread libraries on Solaris 8.
8060 Document TLS patch requirements.
8061 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8065 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8068 2010-07-23 Jakub Jelinek <jakub@redhat.com>
8070 * tree.h (struct tree_base): Add nameless_flag bitfield.
8071 (TYPE_NAMELESS, DECL_NAMELESS): Define.
8072 * omp-low.c (create_omp_child_function, scan_omp_parallel,
8073 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8074 DECL_ARTIFICIAL where needed.
8075 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8076 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8077 has DECL_NAMELESS set.
8079 2010-07-23 Martin Jambor <mjambor@suse.cz>
8081 PR tree-optimization/44915
8082 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8083 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8084 (analyze_function): Likewise.
8086 2010-07-23 Martin Jambor <mjambor@suse.cz>
8088 PR tree-optimization/44914
8089 * tree-sra.c (sra_modify_function_body): Return true if CFG was
8090 changed, add purging dead eh edges.
8091 (ipa_sra_modify_function_body): Return true if CFG was changed,
8092 simplify purging dead eh edges.
8093 (modify_function): Return true if CFG was changed.
8094 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8096 (ipa_early_sra): Likewise.
8098 2010-07-23 Jie Zhang <jie@codesourcery.com>
8101 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8103 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8104 false if ! tree_versionable_function_p.
8106 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
8108 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8109 * ipa-pure-const.c (special_builtlin_state): Remove
8110 BUILT_IN_ARGS_INFO case.
8111 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8112 * builtins.c (expand_builtin): Likewise.
8113 (expand_builtin_args_info): Remove.
8114 * doc/tm.texi (__builtin_args_info): Remove.
8115 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8116 * doc/tm.text.in: Likewise.
8118 2010-07-23 Richard Guenther <rguenther@suse.de>
8120 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8121 (lto_symtab_merge_decls_2): Likewise.
8122 * tree-ssa.c (useless_type_conversion_p): Likewise.
8123 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8124 * gimple.c (gtc_visited2, gtc_ob2): Remove.
8125 (struct type_pair_d): Make same_p an array indexed by mode.
8127 (lookup_type_pair): Update initialization.
8128 (struct sccs): Adjust same_p type.
8129 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8131 (print_gimple_types_stats): Likewise.
8132 * gimple.h (enum gtc_mode): New.
8133 (gimple_types_compatible_p): Adjust prototype.
8135 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
8137 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8138 again after processing insn.
8140 2010-07-23 Jie Zhang <jie@codesourcery.com>
8142 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8143 proper words when !tree_versionable_function_p.
8145 2010-07-23 Richard Guenther <rguenther@suse.de>
8147 PR tree-optimization/45037
8148 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8150 2010-07-23 Jie Zhang <jie@codesourcery.com>
8152 * doc/extend.texi: Remove IP2K from the description of naked attribute.
8155 2010-07-10 Andi Kleen <ak@linux.intel.com>
8158 * lto-opts.c (lto_write_options): Add NULL file_data argument to
8159 lto_get_section_name.
8160 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8161 * lto-streamer-out.c (produce_asm): Likewise.
8162 (copy_function): Likewise.
8163 (produce_symtab): Likewise.
8164 (produce_asm_for_decls): Likewise.
8165 * lto-streamer.c (lto_get_section_name): Add file_data argument.
8166 Rewrite to add random postfix to LTO sections.
8167 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8168 (lto_get_section_name): Add file_data argument to prototype.
8170 2010-07-10 Andi Kleen <ak@linux.intel.com>
8172 * lto-section-in.c (lto_section_name): Synchronize names
8173 with lto_get_section_name.
8175 2010-07-10 Andi Kleen <ak@linux.intel.com>
8177 * lto-opts.c (lto_read_file_options): Check for missing section.
8179 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8181 * ira.c (check_allocation): Correctly handle the case where an allocno
8182 with two objects was allocated to a single reg.
8184 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
8186 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8187 (is_widening_mult_p): Likewise.
8188 (convert_to_widen): Use them.
8189 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
8190 well as integer ones.
8192 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
8194 * alias.c (true_dependence_1): New function, merged version of
8195 true_dependence and canon_true_dependence.
8196 (true_dependence): Simplify.
8197 (canon_true_dependence): Simplify.
8199 2010-07-22 Richard Henderson <rth@redhat.com>
8202 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8203 of V4SFmode for the SSE saves; increase stack alignment if needed.
8204 (ix86_gimplify_va_arg): Don't increase stack alignment here.
8206 2010-07-22 Jakub Jelinek <jakub@redhat.com>
8209 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8210 call cprop_find_used_regs again via note_uses.
8212 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
8214 * alias.c (get_alias_set): Fix formatting issues.
8216 2010-07-22 Steve Ellcey <sje@cup.hp.com>
8219 * stmt.c (expand_value_return): Call promote_function_mode with
8220 a for_return argument of 2 when returning by reference.
8222 2010-07-22 Dodji Seketeli <dodji@redhat.com>
8225 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8226 unit DIE if we can find the scope DIE.
8228 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8230 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8231 changed. Initialize OBJECT_SUBWORD.
8232 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8233 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8234 all callers changed.
8235 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8236 (finish_allocno): Likewise.
8237 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8238 (remove_low_level_allocnos): Likewise.
8239 (update_bad_spill_attribute): Likewise.
8240 (setup_min_max_allocno_live_range_point): Likewise.
8241 (sort_conflict_id_map): Likewise.
8242 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
8243 (ior_hard_reg_conflicts): New function.
8244 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8245 (compress_conflict_vecs): Iterate over objects, not allocnos.
8246 (ira_add_live_range_to_object): New function.
8247 (object_range_compare_func): Renamed from allocno_range_compare_func.
8248 All callers changed.
8249 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8250 subobjects, widen the min/max range of the lowest-order object to
8251 potentially include all other such low-order objects.
8252 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8253 (check_allocation): Likewise. Use more fine-grained tests for register
8255 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8257 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
8258 choices about which bits to set in each set. Don't use
8259 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8260 using the multiple sets we computed.
8261 (push_allocno_to_stack): Iterate over allocno subobjects.
8262 (all_conflicting_hard_regs_coalesced): New static function.
8263 (setup_allocno_available_regs_num): Use it.
8264 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
8266 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8267 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8268 by ALLOCNO_NUM_OBJECTS.
8269 (calculate_spill_cost): Likewise.
8270 (color_pass): Express if statement in a more normal way.
8271 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8272 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8273 (setup_slot_coalesced_allocno_live_ranges): Likewise.
8274 (allocno_reload_assign): Likewise.
8275 (ira_reassign_pseudos): Likewise.
8276 (fast_allocation): Likewise.
8277 * ira-conflicts.c (build_conflict_bit_table): Likewise.
8278 (print_allocno_conflicts): Likewise.
8279 (ira_build_conflicts): Likewise.
8280 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
8281 callers changed. Test subword 0 of each allocno for conflicts.
8282 (build_object_conflicts): Renamed from build_allocno_conflicts. All
8283 callers changed. Iterate over allocno subobjects.
8284 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8285 * ira-int.h (struct ira_allocno): New member: num_objects.
8286 Rename object to objects and change it into an array.
8287 (ALLOCNO_OBJECT): Add new argument N.
8288 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8289 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8290 (ior_hard_reg_conflicts): Declare.
8291 (ira_add_live_range_to_object): Declare.
8292 (ira_allocno_object_iterator): New.
8293 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8294 (FOR_EACH_ALLOCNO_OBJECT): New macro.
8295 * ira-lives.c (objects_live): Renamed from allocnos_live; all
8297 (allocnos_processed): New sparseset.
8298 (make_object_born): Renamed from make_allocno_born; take an
8299 ira_object_t argument. All callers changed.
8300 (make_object_dead): Renamed from make_allocno_dead; take an
8301 ira_object_t argument. All callers changed.
8302 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8303 All callers changed.
8304 (mark_pseudo_regno_live): Iterate over allocno subobjects.
8305 (mark_pseudo_regno_dead): Likewise.
8306 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8308 (mark_ref_live): Detect subword accesses and call
8309 mark_pseudo_regno_subword_live as appropriate.
8310 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8311 (process_bb_nodes_live): Deal with object-related updates first; set
8312 and test bits in allocnos_processed to avoid computing allocno
8313 statistics more than once.
8314 (create_start_finish_chains): Iterate over objects, not allocnos.
8315 (print_object_live_ranges): New function.
8316 (print_allocno_live_ranges): Use it.
8317 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8320 2010-07-22 Richard Guenther <rguenther@suse.de>
8323 * gimple.c (gtc_next_dfs_num): New global.
8324 (struct sccs): Make value a union, add integer same_p member.
8325 (gtc_visit): New function.
8326 (gimple_types_compatible_p_1): New function, split out from ...
8327 (gimple_types_compatible_p): ... here. Start a DFS walk here.
8328 (iterative_hash_gimple_type): Adjust for sccs change.
8330 2010-07-22 Martin Jambor <mjambor@suse.cz>
8332 PR tree-optimization/44891
8333 * tree-sra.c: Include gimple-pretty-print.h.
8334 (replace_uses_with_default_def_ssa_name): Renamed to
8335 get_repl_default_def_ssa_name, return the new SSA name instead of
8336 replacing the old one.
8337 (sra_modify_assign): Dump a message when removing a load, if the LHS
8338 is an SSA_NAME, do not do any propagation, just set the RHS to a
8339 default definition SSA NAME, type convert if necessary.
8340 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8342 2010-07-22 Richard Guenther <rguenther@suse.de>
8344 PR tree-optimization/45017
8345 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8346 TYPE_PRECISION of integral types in addition to size.
8348 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8350 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8351 when no C library is specified.
8353 2010-07-22 Martin Jambor <mjambor@suse.cz>
8355 * ipa-prop.h (struct ipa_node_params): Updated comment.
8356 (struct ipa_edge_args): Likewise.
8357 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8359 2010-07-22 Martin Jambor <mjambor@suse.cz>
8361 * cgraphunit.c (verify_edge_count_and_frequency): New function.
8362 (verify_cgraph_node): Verify frequencies of indirect edges.
8363 * tree-inline.c (tree_function_versioning): Update frequencies of
8366 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8369 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8370 Set *arm_rev to be predicable.
8372 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
8374 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8375 (LINK_COMMAND_SPEC_A): New.
8377 (DSYMUTIL_SPEC): New.
8378 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8379 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8381 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
8383 * calls.c (load_register_parameters): Move check for zero
8384 sized items so that only the call to
8385 mem_overlaps_already_clobbered_arg_p () is protected.
8387 2010-07-22 Jan Hubicka <jh@suse.cz>
8389 * ipa-pure-const.c (varying_state): Break out from ...
8390 (get_function_state): ... here; always return varying_state
8391 when state would be NULL otherwise.
8392 (remove_node_data): Do not free varying state.
8394 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8398 * postreload.c: Include "target.h".
8399 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8401 (fixup_debug_insns): Don't copy the rtx.
8402 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8403 Don't copy when replacing. Call fixup_debug_insns in the case where
8404 we merged one add with another.
8405 (reload_combine_recognize_pattern): Fail if there aren't any uses.
8406 Try harder to determine whether we're picking a valid index register.
8407 Don't set store_ruid for an insn we're going to scan in the
8409 (reload_combine): Remove unused code.
8410 (reload_combine_note_use): When updating use information for
8411 an old insn, ignore a use that occurs after store_ruid.
8412 * Makefile.in (postreload.o): Update dependencies.
8414 * function.c (record_hard_reg_sets): Restrict the previous change
8415 to cases where the incoming nominal mode is the same as the
8416 incoming promoted mode and everything happens in MODE_INT.
8418 2010-07-21 Jakub Jelinek <jakub@redhat.com>
8421 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8422 ASM_OPERANDS_OUTPUT_IDX.
8423 (adjust_insn): For inline asm with multiple sets ensure first
8424 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8427 2010-07-21 Richard Henderson <rth@redhat.com>
8429 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8430 comparison for avoiding xmm register saves. Emit the xmm register
8432 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8433 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8434 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8435 Remove patterns and the associated splitters.
8437 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
8439 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8440 and imagine parts of a complex, so that they can have the same
8441 base and fall into the same group.
8443 2010-07-21 Richard Guenther <rguenther@suse.de>
8446 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8447 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
8448 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8450 2010-07-21 Martin Jambor <mjambor@suse.cz>
8452 PR tree-optimization/44900
8453 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8454 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8456 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
8459 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8461 2010-07-21 Richard Guenther <rguenther@suse.de>
8464 * tree-ssa.c (useless_type_conversion_p): Dispatch to
8465 gimple_types_compatible_p only when in lto.
8466 * gimple.c (gimple_types_compatible_p): Use canonical types
8467 to speed up comparison.
8469 2010-07-21 Richard Guenther <rguenther@suse.de>
8471 * tree-flow.h (referenced_var): Move define ...
8472 * tree-flow-inline.h (referenced_var): ... here as an inline
8473 function. Assert here ...
8474 * tree-dfa.c (referenced_var_lookup): ... instead of here.
8475 * tree-ssa.c (maybe_optimize_var): Check if the variable
8476 is in referenced vars.
8477 (execute_update_addresses_taken): Remove old broken check.
8478 * gimple-pretty-print.c (pp_points_to_solution): Use
8479 referenced_var_lookup.
8480 * tree-into-ssa.c (dump_decl_set): Likewise.
8482 2010-07-21 Jakub Jelinek <jakub@redhat.com>
8485 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
8486 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
8489 2010-07-20 Richard Henderson <rth@redhat.com>
8491 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
8493 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
8495 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8496 computing the sum of the stack pointer and a large constant.
8497 * config/arm/constraints.md (M): Remove superfluous parentheses.
8498 (Pc): New constraint.
8500 2010-07-20 Jakub Jelinek <jakub@redhat.com>
8503 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
8504 operand's type if exp is tcc_unary class tree.
8506 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
8508 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
8509 Reverse sense of if_then_else condition.
8511 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
8513 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
8514 * config/rs6000/rs6000.c (rs6000_override_options): Set
8515 rs6000_block_move_inline_limit appropriately.
8516 (expand_block_move): Use rs6000_block_move_inline_limit.
8517 * doc/invoke.texi (mblock-move-inline-limit): Document.
8519 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
8521 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
8522 FROM and TO. All callers changed. Don't look for tracked uses,
8523 just scan the RTL for DEBUG_INSNs and substitute.
8524 (reload_combine_recognize_pattern): Call fixup_debug_insns.
8525 (reload_combine): Ignore DEBUG_INSNs.
8527 2010-07-20 Jakub Jelinek <jakub@redhat.com>
8529 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
8533 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
8534 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
8535 instead of the result's type.
8537 2010-07-20 Richard Guenther <rguenther@suse.de>
8539 PR tree-optimization/44977
8540 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
8543 2010-07-20 Richard Guenther <rguenther@suse.de>
8545 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
8546 (lto_symtab_merge_decls_2): Likewise.
8547 * gimple.h (gimple_types_compatible_p): Declare.
8548 * gimple.c (gimple_queue_type_fixup): Remove.
8549 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
8550 (gimple_compatible_complete_and_incomplete_type_p): New function.
8551 (gimple_types_compatible_p): Adjust.
8552 (gimple_register_type): Remove type fixup code.
8553 (print_gimple_types_stats): Adjust.
8554 (free_gimple_type_tables): Likewise.
8555 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
8556 * tree-ssa.c (useless_type_conversion_p): Likewise.
8558 2010-07-20 Richard Guenther <rguenther@suse.de>
8562 * tree-ssa.c (maybe_optimize_var): New function split out from ...
8563 (execute_update_addresses_taken): ... here.
8564 (non_rewritable_mem_ref_base): Likewise.
8565 (execute_update_addresses_taken): Do not iterate over all referenced
8566 vars but just all local decls and parms.
8567 Properly check call and asm arguments and rewrite call arguments.
8569 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
8571 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
8573 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
8575 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
8577 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
8579 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8581 * gengtype.c (start_root_entry): New function, split out from
8582 write_root. Check whether V is null and raise an error if so.
8583 (write_field_root): Check for V being null. Don't raise an error here;
8584 set V to null instead.
8585 (write_root): Update comment above function. Use start_root_entry.
8587 2010-07-19 Xinliang David Li <davidxl@google.com>
8590 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
8592 (find_uninit_use): Add dump.
8593 (is_use_properly_guarded): Ditto.
8594 (warn_uninitialized_phi): Ditto.
8595 (execute_late_warn_uninitialized): Ditto.
8597 2010-07-19 Richard Guenther <rguenther@suse.de>
8600 * expr.c (emit_block_move_hints): Move zero size check first.
8601 Move asserts to more useful places.
8602 * calls.c (load_register_parameters): Check for zero size.
8604 2010-07-19 Richard Henderson <rth@redhat.com>
8606 * tree-optimize.c (execute_all_early_local_passes): New. Change
8607 cgraph_state here ...
8608 (execute_early_local_optimizations): ... not here. Remove.
8609 (pass_early_local_passes, pass_all_early_optimizations): Update.
8611 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
8613 * postreload.c (reload_combine_closest_single_use): Ignore the
8614 number of uses for DEBUG_INSNs.
8615 (fixup_debug_insns): New static function.
8616 (reload_combine_recognize_const_pattern): Use it. Don't let the
8617 main loop be affected by DEBUG_INSNs.
8618 Really disallow moving adds past a jump insn.
8619 (reload_combine_recognize_pattern): Don't update use_ruid here.
8620 (reload_combine_note_use): Do it here.
8621 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
8623 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
8625 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
8627 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
8629 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
8631 * config/i386/darwin.h: Define darwin_emit_branch_islands.
8632 (TARGET_MACHO_BRANCH_ISLANDS): New.
8633 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
8634 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
8636 * config/i386/i386.c (output_pic_addr_const): Do not emit
8637 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
8638 (x86_output_mi_thunk): Adjust symbol creation.
8639 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
8640 Remove out of date comment.
8641 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
8642 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8643 (DARWIN_GENERATE_ISLANDS): Ditto.
8644 (output_call): Do not emit branch islands unless
8645 darwin_emit_branch_islands is set.
8646 * config/darwin.c: Declare darwin_emit_branch_islands.
8647 (machopic_indirect_data_reference): Do not emit unless
8648 darwin_emit_branch_islands is set.
8649 (darwin_override_options): Set darwin_emit_branch_islands
8651 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8653 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8655 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8656 sse_runtime, sse2_runtime.
8658 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
8660 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
8661 low half of a single-register SCmode return value before ORing
8662 it with the high half.
8663 * config/mips/mips16.S (MERGE_GPRf): Likewise.
8665 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8668 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
8671 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
8674 * postreload.c (reload_cse_move2add): Return bool, true if anything.
8675 changed. All callers changed.
8676 (move2add_use_add2_insn): Likewise.
8677 (move2add_use_add3_insn): Likewise.
8678 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
8680 (RELOAD_COMBINE_MAX_USES): Bump to 16.
8681 (last_jump_ruid): New static variable.
8682 (struct reg_use): New members CONTAINING_MEM and RUID.
8683 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
8684 (reload_combine_split_one_ruid, reload_combine_split_ruids,
8685 reload_combine_purge_insn_uses, reload_combine_closest_single_use
8686 reload_combine_purge_reg_uses_after_ruid,
8687 reload_combine_recognize_const_pattern): New static functions.
8688 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
8689 is true for our reg and that we have available index regs.
8690 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
8691 callers changed. Use them to initialize fields in struct reg_use.
8692 (reload_combine): Initialize last_jump_ruid. Be careful when to
8693 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
8694 Call reload_combine_recognize_const_pattern.
8695 (reload_combine_note_store): Update REAL_STORE_RUID field.
8697 2010-07-16 Jason Merrill <jason@redhat.com>
8699 * Makefile.in (opts-common.o): Depend on options.h.
8701 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
8703 * tree.c (build_common_builtin_nodes): Use build_function_type_list
8704 instead of build_function_type.
8705 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8706 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8708 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
8710 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
8712 (rs6000_emit_int_cmove): Use function pointers for insn generation.
8713 Don't force values into registers unnecessarily.
8714 (output_isel): Assert that we're not given conditions we can't handle.
8715 Delete corresponding code.
8716 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
8717 scc_comparison_operator constraint. Permit 0 for the consequent
8718 operand. Permit any GPR for the alternative operand.
8719 (isel_unsigned_<mode>): Likewise.
8721 2010-07-16 Jakub Jelinek <jakub@redhat.com>
8724 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
8725 argument to const_tree.
8726 * config/i386/i386.c (function_arg_advance): If padding needs to be
8727 inserted before argument, increment cum->words by number of padding
8729 (contains_aligned_value_p): Change argument to const_tree.
8730 (ix86_function_arg_boundary): Change second argument to const_tree.
8732 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
8735 * function.c (record_hard_reg_sets): New static function.
8736 (assign_parm_setup_reg): If an optab for extending exists and the
8737 generated code clobbbers no hard regs, emit the insn directly and
8738 create a REG_EQUIV note.
8740 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8742 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
8744 * c-typeck.c (push_init_level): Likewise.
8745 (process_init_element): Likewise.
8747 2010-07-15 Anatoly Sokolov <aesok@post.ru>
8749 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
8750 (integer_three_node): Add.
8751 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
8752 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
8753 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
8754 of call build_int_cst.
8755 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
8756 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
8757 (find_interesting_uses_address): Ditto.
8758 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
8759 * tree-eh.c (lower_eh_constructs_2): Ditto.
8760 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
8761 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
8762 * expmed.c (expand_divmod): Ditto.
8763 * tree-mudflap.c (mx_register_decls): Ditto.
8764 * varasm.c (array_size_for_constructor): Ditto.
8765 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8766 * c-parser.c (c_parser_postfix_expression): Ditto.
8768 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
8770 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
8771 New static variables.
8772 (reload_combine_recognize_pattern): New static function, broken out
8774 (reload_combine): Use it. Only initialize first_index_reg and
8775 last_index_reg once.
8777 2010-07-15 Richard Henderson <rth@redhat.com>
8779 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
8782 2010-07-15 Jan Hubicka <jh@suse.cz>
8784 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
8785 comdats for broken gold.
8786 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
8788 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8790 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
8792 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8794 * tree.h (DECL_CHAIN): Define.
8795 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8796 * c-decl.c: Likewise.
8797 * c-parser.c: Likewise.
8798 * c-typeck.c: Likewise.
8799 * cfgexpand.c: Likewise.
8800 * cgraph.c: Likewise.
8801 * cgraphunit.c: Likewise.
8802 * combine.c: Likewise.
8803 * config/alpha/alpha.c: Likewise.
8804 * config/arm/arm.c: Likewise.
8805 * config/frv/frv.c: Likewise.
8806 * config/i386/i386.c: Likewise.
8807 * config/i386/winnt-cxx.c: Likewise.
8808 * config/ia64/ia64.c: Likewise.
8809 * config/iq2000/iq2000.c: Likewise.
8810 * config/mep/mep.c: Likewise.
8811 * config/mips/mips.c: Likewise.
8812 * config/pa/som.h: Likewise.
8813 * config/rs6000/rs6000.c: Likewise.
8814 * config/s390/s390.c: Likewise.
8815 * config/sh/sh.c: Likewise.
8816 * config/sh/symbian-cxx.c: Likewise.
8817 * config/sparc/sparc.c: Likewise.
8818 * config/spu/spu.c: Likewise.
8819 * config/stormy16/stormy16.c: Likewise.
8820 * config/vxworks.c: Likewise.
8821 * config/xtensa/xtensa.c: Likewise.
8822 * coverage.c: Likewise.
8823 * dbxout.c: Likewise.
8824 * dwarf2out.c: Likewise.
8825 * emit-rtl.c: Likewise.
8827 * function.c: Likewise.
8828 * gimple-low.c: Likewise.
8829 * gimple-pretty-print.c: Likewise.
8830 * gimplify.c: Likewise.
8831 * integrate.c: Likewise.
8832 * ipa-inline.c: Likewise.
8833 * ipa-prop.c: Likewise.
8834 * ipa-split.c: Likewise.
8835 * ipa-struct-reorg.c: Likewise.
8836 * ipa-type-escape.c: Likewise.
8837 * langhooks.c: Likewise.
8838 * lto-cgraph.c: Likewise.
8839 * omp-low.c: Likewise.
8840 * stor-layout.c: Likewise.
8841 * tree-cfg.c: Likewise.
8842 * tree-complex.c: Likewise.
8843 * tree-dfa.c: Likewise.
8844 * tree-dump.c: Likewise.
8845 * tree-inline.c: Likewise.
8846 * tree-mudflap.c: Likewise.
8847 * tree-nested.c: Likewise.
8848 * tree-object-size.c: Likewise.
8849 * tree-pretty-print.c: Likewise.
8850 * tree-sra.c: Likewise.
8851 * tree-ssa-live.c: Likewise.
8852 * tree-ssa-loop-niter.c: Likewise.
8853 * tree-ssa-math-opts.c: Likewise.
8854 * tree-ssa-reassoc.c: Likewise.
8855 * tree-ssa-sccvn.c: Likewise.
8856 * tree-ssa-structalias.c: Likewise.
8857 * tree-tailcall.c: Likewise.
8858 * tree-vrp.c: Likewise.
8860 * var-tracking.c: Likewise.
8861 * varasm.c: Likewise.
8863 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8866 * config/spu/spu.c (spu_expand_builtin_1): Allow references
8867 (as well as pointers) as argument to mask_for_load builtins.
8869 2010-07-15 Richard Guenther <rguenther@suse.de>
8871 PR tree-optimization/44946
8872 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
8873 with accessing only padding properly.
8875 2010-07-15 Jan Hubicka <jh@suse.cz>
8877 * ipa.c (function_and_variable_visibility): Variables marked as used
8878 should not be localized.
8880 2010-07-15 Jan Hubicka <jh@suse.cz>
8882 * cgraph.c: Include lto-streamer.h
8883 (change_decl_assembler_name): Work when assembler name hash is at place.
8884 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
8885 be sure to rename it to avoid name clash.
8886 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
8887 Localize hidden symbols only when locally defined.
8889 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
8891 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
8893 2010-07-15 Magnus Granberg <zorry@gentoo.org>
8894 Kevin F. Quinn <kevquinn@gentoo.org>
8896 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
8897 * common.opt: Add -Wtrampolines.
8898 * doc/invoke.texi: Add -Wtrampolines.
8900 2010-07-15 Jie Zhang <jie@codesourcery.com>
8902 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
8905 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
8907 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
8908 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8910 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8912 * config/spu/spu.c (reg_names): Remove prototype.
8913 (call_used_regs): Likewise.
8915 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
8917 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
8918 "unused" with attribute "used".
8919 (__JCR_END__): Likewise.
8920 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
8922 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
8924 2010-07-14 Richard Guenther <rguenther@suse.de>
8926 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
8927 (maybe_fixup_decls): Likewise.
8928 (input_gimple_stmt): Do not fixup anything.
8929 * lto-streamer-out.c (output_gimple_stmt): Make sure all
8930 non-automatic variable uses are wrapped inside a MEM_REF.
8932 2010-07-14 Richard Henderson <rth@redhat.com>
8934 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
8936 * varasm.c (assemble_variable): Remove early exit for functions;
8937 assert that we're given a variable.
8939 2010-07-14 Jie Zhang <jie@codesourcery.com>
8941 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
8942 cortex_a8_default when neon_type is not none.
8944 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
8946 * lower-subreg.c (subreg_context): New static bitmap.
8947 (decompose_multiword_subregs): Allocate and free it.
8948 (find_decomposable_subregs): Set a bit in it for a register that
8949 occurs in a subreg that changes mode but not size.
8950 (can_decompose_p): Test it instead of non_decomposable_context.
8952 2010-07-14 Richard Guenther <rguenther@suse.de>
8954 PR tree-optimization/44824
8955 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
8956 is_gimple_mem_ref_addr.
8957 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
8958 non-decl_address_invariant_p addresses.
8960 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
8962 * reload.c (find_reloads): Revert code to penalize small register
8963 classes that was brought in with the IRA merge.
8965 2010-07-14 Richard Guenther <rguenther@suse.de>
8967 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
8968 as base of ARRAY_REFs.
8970 2010-07-14 Richard Guenther <rguenther@suse.de>
8973 * tree-pretty-print.c (do_niy): Do not print a newline.
8975 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
8977 * ira-int.h (struct ira_object): New.
8978 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
8979 (struct ira_allocno): Remove members min, max,
8980 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
8981 conflict_allocnos_num and conflict_vec_p. Add new member object.
8982 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
8983 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
8984 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
8985 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
8986 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
8987 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
8988 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
8989 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
8990 an ira_object_t rather than ira_allocno_t. All uses changed.
8991 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
8992 contains a vector of ira_object_t; all uses changed.
8993 (ira_objects_num): Declare variable.
8994 (ira_create_allocno_object): Declare function.
8995 (ira_conflict_vector_profitable_p): Adjust prototype.
8996 (ira_allocate_conflict_vec): Renamed from
8997 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
8998 (ira_allocate_object_conflicts): Renamed from
8999 ira_allocate_allocno_conflicts; first arg now ira_object_t.
9000 (struct ira_object_iterator): New.
9001 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9002 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9003 to conflict_vec_p. All uses changed.
9004 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9005 Changed to take into account that conflicts are now tracked for
9007 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9008 Args changed to accept ira_object_t. All uses changed.
9009 (allocnos_conflict_p): New static function.
9010 (collected_conflict_objects): Renamed from collected_allocno_objects;
9011 now a vector of ira_object_t. All uses changed.
9012 (build_conflict_bit_table): Changed to take into account that
9013 conflicts are now tracked for objects.
9014 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9015 (print_allocno_conflicts, ira_build_conflicts): Likewise.
9016 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9017 setup_allocno_left_conflicts_size, allocno_reload_assign,
9018 fast_allocation): Likewise.
9019 * ira-lives.c (make_hard_regno_born, make_allocno_born)
9020 process_single_reg_class_operands, process_bb_node_lives): Likewise.
9021 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9023 * ira-build.c (ira_objects_num): New variable.
9024 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9025 contains a vector of ira_object_t; all uses changed.
9026 (ira_object_id_map_vec): Corresponding change.
9027 (object_pool): New static variable.
9028 (initiate_allocnos): Initialize it.
9029 (finish_allocnos): Free it.
9030 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9032 (ira_create_allocno): Don't set members that were removed.
9033 (ira_set_allocno_cover_class): Don't change conflict hard regs.
9034 (merge_hard_reg_conflicts): Changed to take into account that
9035 conflicts are now tracked for objects.
9036 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9037 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9038 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9039 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9040 setup_min_max_conflict_allocno_ids, ): Likewise.
9041 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9042 to ira_object_t; all callers changed.
9043 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9044 to ira_object_t, all callers changed.
9045 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9046 to ira_object_t, all callers changed.
9047 (conflict_check, curr_conflict_check_tick): Renamed from
9048 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9050 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9051 arg changed to ira_object_t, all callers changed.
9052 (create_cap_allocno): Call ira_create_allocno_object.
9053 (finish_allocno): Free the corresponding object.
9054 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9055 callers changed. Adjusted for dealing with objects.
9056 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
9057 dealing with objects.
9058 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9060 * ira-int.h (struct live_range): Rename allocno member to object
9061 and change type to ira_object_t.
9062 (struct ira_object): New member live_ranges.
9063 (struct ira_allocno): Remove member live_ranges.
9064 (ALLOCNO_LIVE_RANGES): Remove.
9065 (OBJECT_LIVE_RANGES): New macro.
9066 (ira_create_live_range, ira_copy_live_range_list,
9067 ira_merge_live_range_list, ira_live_ranges_intersect_p,
9068 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9069 * ira-build.c (ira_create_object): Initialize live ranges here.
9070 (ira_create_allocno): Not here.
9071 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9072 changed to ira_object_t, all callers changed.
9073 (copy_live_range): Rename from copy_allocno_live_range, all callers
9075 (ira_copy_live_range_list): Rename from
9076 ira_copy_allocno_live_range_list, all callers changed.
9077 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9078 all callers changed.
9079 (ira_live_ranges_intersect_p): Rename from
9080 ira_allocno_live_ranges_intersect_p, all callers changed.
9081 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9083 (ira_finish_live_range_list): Rename from
9084 ira_finish_allocno_live_range_list, all callers changed.
9085 (change_object_in_range_list): Rename from change_allocno_in_range_list,
9086 last arg changed to ira_object_t, all callers changed.
9087 (finish_allocno): Changed to expect live ranges in the allocno's object.
9088 (move_allocno_live_ranges, copy_allocno_live_ranges,
9089 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9090 ira_flattening, ira_build): Likewise.
9091 * ira-color.c (allocnos_have_intersected_live_ranges_p,
9092 slot_coalesced_allocno_live_ranges_intersect,
9093 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9094 * ira-conflicts.c (build_conflict_bit_table): Likewise.
9095 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9096 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9097 make_allocno_dead, create_start_finish_chains,
9098 remove_some_program_points_and_update_live_ranges,
9099 ira_debug_live_range_list): Likewise.
9101 * ira-int.h (ira_object_conflict_iterator): Rename from
9102 ira_allocno_conflict_iterator.
9103 (ira_object_conflict_iter_init): Rename from
9104 ira_allocno_conflict_iter_init, second arg changed to
9105 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9106 FOR_EACH_ALLOCNO_CONFLICT.
9107 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9108 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9109 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9110 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9112 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
9115 * tree-dump.c (dump_options): Add enumerate_locals entry.
9116 Add TDF_NOID exclusion to all entry.
9117 * tree-dump.h (dump_enumerated_decls): Declare.
9118 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9119 Don't display type uid.
9120 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9121 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9122 * tree-ssa-live.c: Include gimple.h.
9123 (numbered_tree_d): New struct.
9124 (numbered_tree): New typedef.
9125 (DEF_VEC_O (numbered_tree): New.
9126 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9127 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9128 (dump_enumerated_decls): Likewise.
9129 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9130 debug info and flag_dump_final_insns, call dump_enumerated_decls.
9131 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9132 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9134 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
9136 * expmed.h (MAX_BITS_PER_WORD): Move to...
9137 * defaults.h (MAX_BITS_PER_WORD): ...here.
9139 2010-07-13 DJ Delorie <dj@redhat.com>
9141 * config/h8300/h8300.c (h8300_init_once): Default to
9142 -fstrict_volatile_bitfields.
9144 * config/sh/sh.c (sh_override_options): Default to
9145 -fstrict_volatile_bitfields.
9147 * config/rx/rx.c (rx_option_override): New.
9149 * config/m32c/m32c.c (m32c_override_options): Default to
9150 -fstrict_volatile_bitfields.
9152 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
9154 * tree.h (build_function_call_expr): Delete.
9155 (build_call_expr_loc_array): New function.
9156 (build_call_expr_loc_vec): New function.
9157 * tree-flow.h (struct omp_region): Change type of ws_args field
9159 * builtins.c (build_function_call_expr): Delete.
9160 (build_call_expr_loc_array): New function.
9161 (build_call_expr_loc): Call it. Use XALLOCAVEC.
9162 (build_call_expr): Likewise.
9163 (build_call_expr_loc_vec): New function.
9164 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9165 build_function_call_expr.
9166 * expr.c (emutls_var_address): Likewise.
9167 * varasm.c (emutls_common_1): Likewise.
9168 * omp-low.c (expand_omp_atomic_mutex): Likewise.
9169 (expand_omp_taskreg): Adjust for new type of region->ws_args.
9170 (get_ws_args_for): Return a VEC instead of a tree.
9171 (expand_parallel_call): Call build_call_expr_loc_vec instead of
9172 build_function_call_expr.
9173 * stor-layout.c (self_referential_size): Likewise.
9175 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9178 * recog.c (constrain_operands): Allow side-effects in memory
9179 operands if either < or > constraint is used, rather than if
9180 both < and > is used.
9182 2010-07-13 Richard Guenther <rguenther@suse.de>
9185 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9186 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
9189 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
9192 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9194 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9195 * config/sh/sh.md (symGOT_load): Likewise.
9196 (symDTPOFF2reg): Likewise.
9197 (symTPOFF2reg): Likewise.
9199 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9201 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9202 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9204 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9206 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9208 Find ucontext_t * on Solaris 11.
9209 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9210 Handle new Solaris 11 __sighndlr patterns.
9212 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9215 * vec.h (VEC_block_remove): Fix comment.
9216 * tree-ssa-live.c (remove_unused_locals): Don't use
9217 VEC_unordered_remove on local_decls, instead replace a single
9218 vector element in each iteration if at least one element had
9219 to be removed and VEC_truncate at the end.
9220 * omp-low.c (expand_omp_taskreg): Likewise.
9222 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9224 * c-decl.c (finish_function): Fix typo in comment.
9226 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
9229 * postreload.c (move2add_use_add3_insn): Silence gcc warning
9232 2010-07-12 Jakub Jelinek <jakub@redhat.com>
9234 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9235 (simplify_stmt_using_ranges): Use it.
9237 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9239 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9240 member. Do not mark as GTY(()).
9241 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9242 (spu_builtin_decls): New static variable.
9243 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9244 (spu_init_builtins): Likewise.
9245 (spu_builtin_mul_widen_even): Likewise.
9246 (spu_builtin_mul_widen_odd): Likewise.
9247 (spu_builtin_mask_for_load): Likewise.
9248 (spu_builtin_vec_perm): Likewise.
9249 * config/spu/spu-c.c: Include "target.h".
9250 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9251 of using spu_builtins[].fndecl.
9253 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9255 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9256 imply -minterlink-mips16.
9258 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9260 * config/mips/mips.h (mips16_globals): Declare.
9261 (SWITCHABLE_TARGET): Define.
9262 * config/mips/mips.c: Include target-globals.h.
9263 (mips16_globals): New variable.
9264 (mips_set_mips16_mode): Use save_target_globals and
9265 restore_target_globals instead of target_reinit.
9267 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9269 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
9270 to say that the function can be called more than once.
9271 * target-globals.c (save_target_globals): Call init_reg_sets.
9273 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9275 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9276 * bb-reorder.h: New file.
9277 * bb-reorder.c (default_target_bb_reorder): New variable.
9278 (this_target_bb_reorder): New conditional variable.
9279 (uncond_jump_length): Redefine as a macro.
9280 * target-globals.h (this_target_bb_reorder): Declare.
9281 (target_globals): Add a bb_reorder field.
9282 (restore_target_globals): Copy the bb_reorder field to
9283 this_target_bb-reorder.
9284 * target-globals.c: Include bb-reorder.h.
9285 (default_target_globals): Initialize the bb_reorder field.
9286 (save_target_globals): Likewise.
9288 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9290 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9292 * gcse.c: Include gcse.h.
9293 (default_target_gcse): New variable.
9294 (this_target_gcse): New conditional variable.
9295 (can_copy): Redefine as a macro.
9296 (can_copy_init_p): New macro.
9297 (can_copy_p): Remove can_copy_init_p.
9298 * target-globals.h (this_target_gcse): Declare.
9299 (target_globals): Add a gcse field.
9300 (restore_target_globals): Copy the gcse field to this_target_gcse.
9301 * target-globals.c: Include gcse.h.
9302 (default_target_globals): Initialize the gcse field.
9303 (save_target_globals): Likewise.
9305 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9307 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9308 and x_ira_prohibited_mode_move_regs_initialized_p.
9309 (ira_prohibited_mode_move_regs): Redefine as a macro.
9310 * ira.c (ira_prohibited_mode_move_regs): Delete.
9311 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9313 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9315 * reload.h (target_reload): Add x_cached_reg_save_code and
9316 x_cached_reg_restore_code.
9317 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9320 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9322 * Makefile.in (target-globals.o): Depend on builtins.h.
9323 * builtins.h: New file.
9324 * builtins.c: Include builtins.h.
9325 (default_target_builtins): New variable.
9326 (this_target_builtins): New conditional variable.
9327 (apply_args_mode, apply_result_mode): Redefine as macros.
9328 * target-globals.h (this_target_builtins): Declare.
9329 (target_globals): Add a builtins field.
9330 (restore_target_globals): Copy the builtins field to
9331 this_target_builtins.
9332 * target-globals.c: Include builtins.h.
9333 (default_target_globals): Initialize the builtins field.
9334 (save_target_globals): Likewise.
9336 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9338 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9339 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9341 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9342 (alg_hash, alg_hash_used_p): New macros.
9343 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9344 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9345 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9347 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9349 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9350 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9351 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9352 (this_op_costs, costs_classes): Redefine as macros.
9353 (record_reg_classes): Don't take op_costs as a parameter.
9354 (record_operand_costs): Likewise. Update calls to record_reg_classes.
9355 (scan_one_insn): Update call to record_operand_costs.
9357 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9359 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9360 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9361 (target_ira_int): New structure.
9362 (default_target_ira_int): Declare.
9363 (this_target_ira_int): Declare as a variable or define as a macro.
9364 (ira_reg_mode_hard_regset, ira_register_move_cost)
9365 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9366 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9367 (prohibited_class_mode_regs, ira_important_classes_num)
9368 (ira_important_classes, ira_reg_class_intersect)
9369 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9370 (ira_reg_class_union): Redefine as macros.
9371 * ira.h (target_ira): New structure.
9372 (default_target_ira): Declare.
9373 (this_target_ira): Declare as a variable or define as a macro.
9374 (ira_available_class_regs, ira_hard_regno_cover_class)
9375 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9376 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9377 (ira_class_hard_regs_num): Redefine as macros.
9378 * ira.c (default_target_ira, default_target_ira_int): New variables.
9379 (this_target_ira, this_target_ira_int): New conditional variables.
9380 (ira_reg_mode_hard_regset, ira_memory_move_cost)
9381 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9382 (ira_class_subset_p): Delete.
9383 (no_unit_alloc_regs): Redefine as a macro.
9384 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9385 (ira_class_hard_regs_num, ira_class_hard_reg_index)
9386 (ira_available_class_regs): Delete.
9387 (alloc_reg_class_subclasses): Redefine as a macro.
9388 (ira_reg_class_cover_size, ira_reg_class_cover)
9389 (ira_important_classes_num, ira_important_classes)
9390 (ira_important_class_nums, ira_class_translate): Delete.
9391 (cover_class_order): Document the variable's lifetime.
9392 (reorder_important_classes): Don't set ira_important_class_nums.
9393 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9394 (ira_reg_class_super_classes, ira_reg_class_union)
9395 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9397 (setup_reg_class_nregs): Don't set ira_max_regs.
9398 (prohibited_class_mode_regs): Delete.
9399 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9400 (target_globals): Add ira and ira_int fields.
9401 (restore_target_globals): Copy the ira field to this_target_ira
9402 and the ira_int field to this_target_ira_int.
9403 * target-globals.c: Include ira-int.h.
9404 (default_target_globals): Initialize the ira and ira_int fields.
9405 (save_target_globals): Likewise.
9407 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9409 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9410 * cfgloop.h (target_cfgloop): New structure.
9411 (default_target_cfgloop): Declare.
9412 (this_target_cfgloop): Declare as a variable or define as a macro.
9413 (target_avail_regs, target_clobbered_regs, target_res_regs)
9414 (target_reg_cost, target_spill_cost): Redefine as macros.
9415 * cfgloopanal.c (default_target_cfgloop): New variable.
9416 (this_target_cfgloop): New conditional variable.
9417 (target_avail_regs, target_clobbered_regs, target_res_regs)
9418 (target_reg_cost, target_spill_cost): Delete.
9419 * target-globals.h (this_target_cfgloop): Declare.
9420 (target_globals): Add a cfgloop field.
9421 (restore_target_globals): Copy the cfgloop field to
9422 this_target_cfgloop.
9423 * target-globals.c: Include cfgloop.h.
9424 (default_target_globals): Initialize the cfgloop field.
9425 (save_target_globals): Likewise.
9427 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9429 * regs.h (target_regs): Add x_direct_load, x_direct_store and
9430 x_float_extend_from_mem.
9431 (direct_load, direct_store, float_extend_from_mem): New macros.
9432 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9434 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9436 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9437 (target-globals.o): Depend on $(LIBFUNCS_H).
9438 * libfuncs.h: Include hashtab.h.
9439 (libfunc_entry): Moved from optabs.c.
9440 (target_libfuncs): New structure.
9441 (default_target_libfuncs): Declare.
9442 (this_target_libfuncs): Declare as a variable or define as a macro.
9443 (libfunc_table): Redefine as a macro.
9444 * optabs.c (default_target_libfuncs): New variable.
9445 (this_target_libfuncs): New conditional variable.
9446 (libfunc_table): Delete.
9447 (libfunc_entry): Moved to optabs.h.
9448 (libfunc_hash): Redefine as a macro.
9449 (hash_libfunc, eq_libfunc): Fix comments.
9450 (init_optabs): Use libfunc_hash to detect cases where the function
9451 has already been called. Clear the hash table instead of
9453 * target-globals.h (this_target_libfuncs): Declare.
9454 (target_globals): Add a libfuncs field.
9455 (restore_target_globals): Copy the libfuncs field to
9456 this_target_libfuncs.
9457 * target-globals.c: Include libfuncs.h.
9458 (default_target_globals): Initialize the libfuncs field.
9459 (save_target_globals): Likewise.
9461 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9463 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
9464 in all dependency lists.
9466 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9468 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
9469 * optabs.h (target_optabs): New structure.
9470 (default_target_optabs): Declare.
9471 (this_target_optabs): Declare as a variable or define as a macro.
9472 (optab_table, convert_optab_table, direct_optab_table): Redefine
9474 * optabs.c (default_target_optabs): New variable.
9475 (this_target_optabs): New conditional variable.
9476 (optab_table, convert_optab_table, direct_optab_table): Delete.
9477 * target-globals.h (this_target_optabs): Declare.
9478 (target_globals): Add a optabs field.
9479 (restore_target_globals): Copy the optabs field to
9481 * target-globals.c: Include expr.h and optabs.h.
9482 (default_target_globals): Initialize the optabs field.
9483 (save_target_globals): Likewise.
9485 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9487 * flags.h (target_flagstate): Add x_flag_excess_precision.
9488 (flag_excess_precision): Redefine as a macro.
9489 * toplev.c (flag_excess_precision): Delete.
9491 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9493 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
9494 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
9495 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
9496 (no_caller_save_reg_set): Redefine as a macro.
9497 * reload.h (target_reload): Add x_caller_save_initialized_p and
9499 (caller_save_initialized_p): Redefine as a macro.
9500 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
9501 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
9502 (regno_save_mode): Redefine as a macro.
9504 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9506 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
9507 * expmed.h: New file.
9508 * expmed.c (default_target_costs): New variable.
9509 (this_target_costs): New conditional variable.
9510 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
9511 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
9512 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
9513 * target-globals.h (this_target_expmed): Declare.
9514 (target_globals): Add a expmed field.
9515 (restore_target_globals): Copy the expmed field to
9517 * target-globals.c: Include expmed.h.
9518 (default_target_globals): Initialize the expmed field.
9519 (save_target_globals): Likewise.
9521 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9523 * Makefile.in (target-globals.o): Depend on reload.h.
9524 * reload.h (target_reload): New structure.
9525 (default_target_reload): Declare.
9526 (this_target_reload): Declare as a variable or define as a macro.
9527 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
9528 * reload1.c (default_target_reload): New variable
9529 (this_target_reload): New conditional variable.
9530 (indirect_symref_ok, double_reg_address_ok): Delete.
9531 (spill_indirect_levels): Redefine as a macro.
9532 * target-globals.h (this_target_reload): Declare.
9533 (target_globals): Add a reload field.
9534 (restore_target_globals): Copy the reload field to
9536 * target-globals.c: Include hard-reg-set.h.
9537 (default_target_globals): Initialize the reload field.
9538 (save_target_globals): Likewise.
9540 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9542 * rtl.h (target_rtl): Add x_static_reg_base_value.
9543 * alias.c (static_reg_base_value): Redefine as a macro.
9545 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9547 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
9548 (GTFILES): Remove reginfo.c.
9549 * rtl.h (target_rtl): Add x_top_of_stack.
9550 (top_of_stack): New macro.
9551 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
9552 (top_of_stack): Delete.
9554 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9556 * regs.h (target_regs): Add x_hard_regs_of_mode,
9557 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
9558 x_may_move_out_cost and x_last_mode_for_init_move_cost.
9559 (have_regs_of_mode, contains_reg_of_mode, move_cost)
9560 (may_move_in_cost, may_move_out_cost): Redefine as macros.
9561 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9562 (may_move_in_cost, may_move_out_cost): Delete.
9563 (last_mode_for_init_move_cost): Redefine as a macro.
9565 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9567 * hard-reg-set.h (target_hard_regs): New structure.
9568 (default_target_hard_regs): Declare.
9569 (this_target_hard_regs): Declare as a variable or define as a macro.
9570 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
9571 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
9572 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
9573 (reg_class_size, reg_class_subclasses, reg_class_subunion)
9574 (reg_class_superunion, reg_names): Redefine as macros.
9575 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
9576 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
9577 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
9578 (reg_class_contents, reg_class_size, reg_class_subclasses)
9579 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
9580 (default_target_hard_regs): New variable
9581 (this_target_hard_regs, initial_call_really_used_regs)
9582 (initial_reg_alloc_order): New conditional variables.
9583 (initial_reg_names): New variable.
9584 (init_reg_sets): Assert that initial_call_really_used_regs,
9585 initial_reg_alloc_order and initial_reg_names
9586 are all the same size as their variable counterparts. Use them to
9587 initialize those counterparts.
9588 * target-globals.h (this_target_hard_regs): Declare.
9589 (target_globals): Add a hard_regs field.
9590 (restore_target_globals): Copy the hard_regs field to
9591 this_target_hard_regs.
9592 * target-globals.c: Include hard-reg-set.h.
9593 (default_target_globals): Initialize the hard_regs field.
9594 (save_target_globals): Likewise.
9596 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9598 * Makefile.in (target-globals.o): Depend on $(RTL_H).
9599 * rtl.h (target_rtl): New structure.
9600 (default_target_rtl): Declare.
9601 (this_target_rtl): Declare as a variable or define as a macro.
9602 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
9604 * emit-rtl.c (default_target_rtl): New variable.
9605 (this_target_rtl): New conditional variable.
9606 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
9607 (return_address_pointer_rtx): Delete.
9608 (initial_regno_reg_rtx): New macro.
9609 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
9610 (init_emit_regs): Likewise.
9611 * target-globals.h (this_target_rtl): Declare.
9612 (target_globals): Add a rtl field.
9613 (restore_target_globals): Copy the rtl field to this_target_rtl.
9614 * target-globals.c: Include rtl.h.
9615 (default_target_globals): Initialize the rtl field.
9616 (save_target_globals): Likewise.
9618 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9620 * Makefile.in (target-globals.o): Depend on $(REGS_H).
9621 * regs.h (target_reg_modes): New structure.
9622 (default_target_reg_modes): Declare.
9623 (this_target_reg_modes): Declare as a variable or define as a macro.
9624 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
9625 * reginfo.c (default_target_reg_modes): New variable.
9626 (this_target_reg_modes): New conditional variable.
9627 (hard_regno_nregs, reg_raw_mode): Delete.
9628 * target-globals.h (this_target_regs): Declare.
9629 (target_globals): Add a regs field.
9630 (restore_target_globals): Copy the regs field to this_target_regs.
9631 * target-globals.c: Include regs.h.
9632 (default_target_globals): Initialize the regs field.
9633 (save_target_globals): Likewise.
9635 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9637 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
9638 * doc/tm.texi: Regenerate.
9639 * Makefile.in (OBJS-common): Add target-globals.o.
9640 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
9641 and target-globals.h.
9642 (target-globals.o): New rule.
9643 (GTFILES): Include $(srcdir)/target-globals.h.
9644 * defaults.h (SWITCHABLE_TARGET): Define.
9645 * gengtype.c (open_base_files): Add target-globals.h to the
9647 * target-globals.h: New file.
9648 * target-globals.c: Likewise.
9650 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
9651 * flags.h (target_flag_state): New structure.
9652 (default_target_flag_state): Declare.
9653 (this_target_flag_state): Declare as a variable or define as a macro.
9654 (align_loops_log): Redefine as a macro.
9655 (align_loops_max_skip, align_jumps_log): Likewise.
9656 (align_jumps_max_skip, align_labels_log): Likewise.
9657 (align_labels_max_skip, align_functions_log): Likewise.
9658 * toplev.c (default_target_flag_state): New variable.
9659 (this_target_flag_state): New conditional variable.
9660 (align_loops_log): Delete.
9661 (align_loops_max_skip, align_jumps_log): Likewise.
9662 (align_jumps_max_skip, align_labels_log): Likewise.
9663 (align_labels_max_skip, align_functions_log): Likewise.
9664 * target-globals.h (this_target_flag_state): Declare.
9665 (target_globals): Add a flag_state field.
9666 (restore_target_globals): Copy the flag_state field to
9667 this_target_flag_state.
9668 * target-globals.c: Include flags.h.
9669 (default_target_globals): Initialize the flag_state field.
9670 (save_target_globals): Likewise.
9672 2010-07-12 Jie Zhang <jie@codesourcery.com>
9674 * postreload.c (reg_symbol_ref[]): New.
9675 (move2add_use_add2_insn): New.
9676 (move2add_use_add3_insn): New.
9677 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
9678 (move2add_note_store): Likewise.
9680 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
9682 PR rtl-optimization/44752
9683 * genautomata.c (main): Don't emit an empty file even if there
9686 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9688 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
9689 ix86_solaris_return_in_memory.
9690 * config/i386-protos.h: Reflect this.
9691 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9692 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9694 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
9696 2010-07-12 Jie Zhang <jie@codesourcery.com>
9698 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
9699 align the stack when it's going to be saved.
9701 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9704 * config/host-solaris.c (mmap_fixed): New function.
9705 (sol_gt_pch_get_address): Use it.
9706 (sol_gt_pch_use_address): Likewise.
9708 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9710 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9711 pentiumpro on Solaris 8 and 9/x86.
9712 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
9713 Document SSE/SSE2 support.
9714 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
9716 2010-07-12 Andi Kleen <ak@linux.intel.com>
9718 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
9719 instead of gcc_assert to print better error message for multiple
9722 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
9724 * config/i386/i386.c (ix86_asm_output_function_label): Change format
9725 string placeholder from 0x%x to %#x.
9726 (ix86_code_end): Use putc to output '\n'.
9727 (ix86_print_operand) <case ';'>: Use putc to output ';'.
9729 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
9731 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
9732 in directive -export.
9734 2010-07-10 Anatoly Sokolov <aesok@post.ru>
9736 * reginfo.h (reg_classes_intersect_p): Change arguments type to
9738 * rtl.h (reg_classes_intersect_p): Adjust prototype.
9740 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9742 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
9743 rs6000_memory_move_cost): Remove
9744 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
9745 TARGET_MEMORY_MOVE_COST): Define.
9746 (rs6000_register_move_cost): Make static. Change arguments type from
9747 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
9748 (rs6000_memory_move_cost): Make static. Change arguments type from
9749 'enum reg_class' to reg_class_t.
9751 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
9754 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
9755 lookup code into....
9756 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
9758 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
9759 * cfgloopanal.c (target_clobbered_regs): Define.
9760 (init_set_costs): Initialize target_clobbered_regs.
9761 (estimate_reg_pressure_cost): Add call_p argument. When true,
9762 adjust the number of available registers to exclude the
9763 call-clobbered registers.
9764 * cfgloop.h (target_clobbered_regs): Declare.
9765 (estimate_reg_pressure_cost): Adjust declaration.
9766 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
9767 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
9768 (determine_set_costs): Dump target_clobbered_regs.
9769 (loop_body_includes_call): New function.
9770 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
9771 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
9772 call_p flag through.
9773 (best_gain_for_invariant): Likewise.
9774 (find_invariants_to_move): Likewise.
9775 (move_single_loop_invariants): Likewise, using already-computed
9778 2010-07-10 Richard Guenther <rguenther@suse.de>
9779 Joern Rennecke <joern.rennecke@embecosm.com>
9782 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
9783 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
9784 unless they have DECL_IGNORED_P set.
9786 2010-07-10 Richard Guenther <rguenther@suse.de>
9789 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
9791 (gimple_types_compatible_p): Similar to pointed-to
9792 types allow and merge a mix of complete and incomplete aggregate.
9793 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
9794 (iterative_hash_gimple_type): Adjust for that.
9796 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
9798 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
9800 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
9803 * config/darwin.c (output_objc_section_asm_op): Save and restore
9804 section when outputting ObjC section list.
9806 2010-07-09 Jan Hubicka <jh@suse.cz>
9808 * lto-streamer-out.c (produce_symtab): Do not write alias
9809 cgraph/varpool nodes.
9811 2010-07-09 Jan Hubicka <jh@suse.cz>
9813 * tree-inline.c (declare_return_variable): Fix ICE while
9814 inlining DECL_BY_VALUE function not in SSA form
9816 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
9818 PR tree-optimization/44576
9819 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
9820 New. Pull out from is_loop_prefetching_profitable to implement
9821 the trip count to ahead ratio heuristic.
9822 (mem_ref_count_reasonable_p): New. Pull out from
9823 is_loop_prefetching_profitable to implement the instruction to
9824 memory reference ratio heuristic. Also consider not reasonable if
9825 the memory reference count is above a threshold (to avoid
9826 explosive compilation time.
9827 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
9828 is_loop_prefetching_profitable to implement the instruction to
9829 prefetch ratio heuristic.
9830 (is_loop_prefetching_profitable): Removed.
9831 (loop_prefetch_arrays): Distribute the cost analysis across the
9832 function to allow early exit of the prefetch analysis.
9833 is_loop_prefetching_profitable is splitted into three functions,
9834 with each one called as early as possible.
9835 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
9836 number of memory references in a loop is considered too many.
9838 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
9840 * reload.c (find_reloads): Don't clear badop if we have a winreg
9841 alternative, but not win, and the class only has fixed regs.
9842 * hard-reg-set.h (class_only_fixed_regs): Declare.
9843 * reginfo.c (class_only_fixed_regs): New array.
9844 (init_reg_sets_1): Initialize it.
9845 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
9846 discourage alternatives using the stack pointer.
9848 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
9850 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
9852 * config/arm/arm.md (cbranchqi4): Fix array size.
9853 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
9856 2010-07-09 Richard Guenther <rguenther@suse.de>
9858 * gimple.c (struct type_fixup_s): New struct and VEC type.
9859 (gimple_register_type_fixups): New static global.
9860 (gimple_queue_type_fixup): New function.
9861 (gimple_types_compatible_p): Queue type fixups instead of
9863 (gimple_register_type): Apply queued fixups for the
9864 canonical type. Empty the type fixup queue.
9866 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
9868 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
9869 * configure: Regenerate.
9872 2010-07-09 Jakub Jelinek <jakub@redhat.com>
9873 Denys Vlasenko <dvlasenk@redhat.com>
9874 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9876 PR tree-optimization/28632
9877 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
9878 (extract_range_from_binary_expr): Further optimize
9879 BIT_AND_EXPR and BIT_IOR_EXPR.
9881 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
9883 * tree-if-conv.c (fold_or_predicates): New.
9884 (add_to_predicate_list): Call it.
9886 2010-07-09 Richard Guenther <rguenther@suse.de>
9889 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
9890 if base is a pointer.
9891 * tree-cfg.c (verify_expr): Update MEM_REF checking.
9893 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9896 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
9897 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
9898 builtin mask for load/store builtins.
9900 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
9902 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
9904 * configure: Regenerate.
9905 * config/i386/i386.c (ix86_print_operand) <case ';'>:
9906 Remove TARGET_MACHO.
9908 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
9910 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
9912 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
9914 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
9916 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
9918 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
9920 * config/picochip/picochip.md (commsTestPort): Emit more
9921 efficient sequence for tstport instruction.
9923 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
9925 * config/i386/i386.c (ix86_veclib_handler): Make static.
9927 2010-07-09 Richard Guenther <rguenther@suse.de>
9929 PR tree-optimization/44852
9930 * tree-ssa-alias.c: Include toplev.h for exact_log2.
9931 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
9933 (indirect_refs_may_alias_p): Likewise.
9934 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
9936 2010-07-09 Richard Guenther <rguenther@suse.de>
9938 PR tree-optimization/44882
9939 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
9941 (vectorizable_load): Likewise.
9943 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
9946 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
9947 All callers changed.
9948 Handle the case when we're called for the epilogue.
9949 (thumb_unexpanded_epilogue): Use it.
9950 (thumb1_expand_epilogue): Likewise.
9952 2010-07-09 Jakub Jelinek <jakub@redhat.com>
9954 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
9955 both ranges are range_int_cst_p with non-negative minimum,
9956 try harder to derive smaller range.
9958 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9960 * genrecog.c: Include diagnostic-core.h before toplev.h.
9961 * genoutput.c: Likewise.
9962 * genextract.c: Likewise.
9963 * genautomata.c: Likewise.
9964 * genemit.c: Likewise.
9965 * genpeep.c: Likewise.
9966 * genattrtab.c: Likewise.
9967 * genconditions.c: Likewise.
9968 * genpreds.c: Likewise.
9970 2010-07-08 Andi Kleen <ak@linux.intel.com>
9972 * lto-section-in.c (lto_section_name): Add missing comma.
9974 2010-07-08 Anatoly Sokolov <aesok@post.ru>
9976 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
9977 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
9978 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
9979 (ia64_override_options): Rename to...
9980 (ia64_option_override): ... this one. Make static.
9982 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
9985 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
9986 pointed-to type of the offset in a MEM_REF to compute the alignment.
9988 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
9990 * final.c (final_scan_insn): Replace
9991 TARGET_UNWIND_INFO macro check by unwind_emit
9993 * targhooks.c (default_unwind_emit): Removed.
9994 * targhooks.h (default_unwind_emit): Likewise.
9995 * target.def (unwind_emit): Set default value to NULL.
9997 * config/i386/i386-protos.h (ix86_asm_output_function_label):
9999 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10000 for NULL fntype argument and allow 64-bit targets.
10001 (ix86_asm_output_function_label): New function.
10002 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10003 (ix86_handle_fndecl_attribute): Likewise.
10004 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10005 * doc/doc/tm.texi: Regenerated.
10006 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10007 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10008 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10009 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10010 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10011 * config/elfos.h: Likewise.
10012 * config/i386/cygming.h: Likewise.
10013 * config/netbsd-aout.h: Likewise.
10014 * config/openbsd.h: Likewise.
10015 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10016 by ix86_asm_output_function_label function call.
10017 * varasm.c (assemble_start_function): Use
10018 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10020 2010-07-08 Jan Hubicka <jh@suse.cz>
10022 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10024 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10026 * ipa-cp.c (ipcp_estimate_growth): Use it.
10027 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10030 2010-07-08 Jan Hubicka <jh@suse.cz>
10032 * tree-inline.c (declare_return_variable): Allocate annotation for new
10035 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10037 PR tree-optimization/44710
10038 * tree-if-conv.c (parse_predicate): New.
10039 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10040 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10042 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10044 * common.opt (ftree-loop-if-convert): New flag.
10045 * doc/invoke.texi (ftree-loop-if-convert): Documented.
10046 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10047 when flag_tree_loop_if_convert is set.
10049 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
10051 * config/i386/i386.c: Use short syntax for function calls
10052 through function pointers.
10053 * config/i386/i386.md: Ditto.
10055 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10059 2010-07-08 Richard Guenther <rguenther@suse.de>
10061 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10062 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10064 2010-07-08 Jakub Jelinek <jakub@redhat.com>
10066 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10067 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10068 (loc_list_from_tree): Likewise.
10069 (output_loc_operands): Handle outputting DW_OP_const[48]u
10070 with loc->dtprel set.
10071 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10073 2010-07-08 Jan Hubicka <jh@suse.cz>
10075 * ipa.c: Include pointer-set.h
10076 (cgraph_externally_visible_p): New attribute ALIASED;
10077 when in LTO, hidden symbols are local unless they are aliased.
10078 (function_and_variable_visibility): Compute aliased nodes;
10079 handle LTO and hidden symbol on functions and vars.
10080 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10081 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10083 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10085 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10086 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10087 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10088 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10089 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10090 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10091 (ix86_gen_probe_stack_range): Likewise.
10092 (override_options): Set them.
10093 (ix86_target_stack_probe): New function.
10094 (ix86_compute_frame_layout): Force use of push instructions to
10095 save registers if stack checking with probes is enabled.
10096 (get_scratch_register_on_entry): New function.
10097 (release_scratch_register_on_entry): Likewise.
10098 (ix86_adjust_stack_and_probe): Likewise.
10099 (output_adjust_stack_and_probe): Likewise.
10100 (ix86_emit_probe_stack_range): Likewise.
10101 (output_probe_stack_range): Likewise.
10102 (ix86_expand_prologue): Emit stack checking code if static built-in
10103 stack checking is enabled.
10104 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10105 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10106 (output_adjust_stack_and_probe): Likewise.
10107 (output_probe_stack_range): Likewise.
10108 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10109 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10110 TARGET_STACK_PROBE.
10111 (allocate_stack_worker_64): Likewise.
10112 (allocate_stack): Likewise.
10113 (adjust_stack_and_probe): New insn.
10114 (probe_stack_range): Likewise.
10116 2010-07-08 Richard Guenther <rguenther@suse.de>
10118 PR tree-optimization/44831
10119 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10120 a MEM_REF preserving TBAA info of the original dereference.
10121 Dereference the original pointer if the address is not invariant.
10122 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
10123 at least one invariant address that we are going to dereference.
10125 2010-07-08 Richard Guenther <rguenther@suse.de>
10127 PR tree-optimization/44861
10128 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10129 information when building MEM_REFs.
10130 (vectorizable_load): Likewise.
10131 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10133 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10135 * config/sol2-c.c: Do not include diagnostic-core.h.
10137 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10140 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10141 with respect to current_function_decl. Pass decl of the function.
10142 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10143 * ipa-inline.c (compute_inline_parameters): Pass decl to
10144 estimated_stack_frame_size.
10146 2010-07-08 Richard Guenther <rguenther@suse.de>
10148 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10150 (valueize_refs): Call it.
10152 2010-07-08 Richard Guenther <rguenther@suse.de>
10154 PR rtl-optimization/44838
10155 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10156 SSA form do not use pointer equivalence.
10158 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10160 * dwarf2out.c (AT_linkage_name): Delete.
10161 (add_linkage_attr): New function.
10162 (add_linkage_name): Call it to emit the linkage attribute.
10163 (dwarf2out_finish): Likewise.
10164 (move_linkage_attr): Explicitly accept both attribute variants.
10166 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10168 * toplev.h: Do not include diagnostic-core.h.
10169 Include diagnostic-core.h in every file that includes toplev.h.
10170 * c-tree.h: Do not include toplev.h.
10171 * pretty-print.h: Update comment.
10172 * Makefile.in: Update dependencies.
10173 * alias.c: Include diagnostic-core.h in every file that includes
10175 * attribs.c: Likewise.
10176 * auto-inc-dec.c: Likewise.
10177 * bb-reorder.c: Likewise.
10178 * bt-load.c: Likewise.
10179 * caller-save.c: Likewise.
10180 * calls.c: Likewise.
10182 * cfganal.c: Likewise.
10183 * cfgbuild.c: Likewise.
10184 * cfgcleanup.c: Likewise.
10185 * cfghooks.c: Likewise.
10186 * cfgloop.c: Likewise.
10187 * combine.c: Likewise.
10188 * config/alpha/alpha.c: Likewise.
10189 * config/arc/arc.c: Likewise.
10190 * config/arm/arm.c: Likewise.
10191 * config/arm/pe.c: Likewise.
10192 * config/avr/avr.c: Likewise.
10193 * config/bfin/bfin.c: Likewise.
10194 * config/cris/cris.c: Likewise.
10195 * config/crx/crx.c: Likewise.
10196 * config/darwin-c.c: Likewise.
10197 * config/darwin.c: Likewise.
10198 * config/fr30/fr30.c: Likewise.
10199 * config/frv/frv.c: Likewise.
10200 * config/h8300/h8300.c: Likewise.
10201 * config/host-darwin.c: Likewise.
10202 * config/i386/i386.c: Likewise.
10203 * config/i386/netware.c: Likewise.
10204 * config/i386/nwld.c: Likewise.
10205 * config/i386/winnt-cxx.c: Likewise.
10206 * config/i386/winnt-stubs.c: Likewise.
10207 * config/i386/winnt.c: Likewise.
10208 * config/ia64/ia64-c.c: Likewise.
10209 * config/ia64/ia64.c: Likewise.
10210 * config/iq2000/iq2000.c: Likewise.
10211 * config/lm32/lm32.c: Likewise.
10212 * config/m32c/m32c-pragma.c: Likewise.
10213 * config/m32c/m32c.c: Likewise.
10214 * config/m32r/m32r.c: Likewise.
10215 * config/m68hc11/m68hc11.c: Likewise.
10216 * config/m68k/m68k.c: Likewise.
10217 * config/mcore/mcore.c: Likewise.
10218 * config/mep/mep-pragma.c: Likewise.
10219 * config/mep/mep.c: Likewise.
10220 * config/mmix/mmix.c: Likewise.
10221 * config/mn10300/mn10300.c: Likewise.
10222 * config/moxie/moxie.c: Likewise.
10223 * config/pa/pa.c: Likewise.
10224 * config/pdp11/pdp11.c: Likewise.
10225 * config/picochip/picochip.c: Likewise.
10226 * config/rs6000/rs6000-c.c: Likewise.
10227 * config/rs6000/rs6000.c: Likewise.
10228 * config/rx/rx.c: Likewise.
10229 * config/s390/s390.c: Likewise.
10230 * config/score/score.c: Likewise.
10231 * config/score/score3.c: Likewise.
10232 * config/score/score7.c: Likewise.
10233 * config/sh/sh.c: Likewise.
10234 * config/sh/symbian-base.c: Likewise.
10235 * config/sh/symbian-c.c: Likewise.
10236 * config/sh/symbian-cxx.c: Likewise.
10237 * config/sol2-c.c: Likewise.
10238 * config/sol2.c: Likewise.
10239 * config/sparc/sparc.c: Likewise.
10240 * config/spu/spu.c: Likewise.
10241 * config/stormy16/stormy16.c: Likewise.
10242 * config/v850/v850-c.c: Likewise.
10243 * config/v850/v850.c: Likewise.
10244 * config/vax/vax.c: Likewise.
10245 * config/vxworks.c: Likewise.
10246 * config/xtensa/xtensa.c: Likewise.
10247 * convert.c: Likewise.
10249 * cselib.c: Likewise.
10250 * dbgcnt.c: Likewise.
10251 * dbxout.c: Likewise.
10253 * dominance.c: Likewise.
10254 * emit-rtl.c: Likewise.
10255 * explow.c: Likewise.
10256 * expmed.c: Likewise.
10257 * fixed-value.c: Likewise.
10258 * fold-const.c: Likewise.
10259 * fwprop.c: Likewise.
10260 * gcse.c: Likewise.
10261 * ggc-common.c: Likewise.
10262 * ggc-page.c: Likewise.
10263 * ggc-zone.c: Likewise.
10264 * gimple-low.c: Likewise.
10265 * gimplify.c: Likewise.
10266 * graph.c: Likewise.
10267 * haifa-sched.c: Likewise.
10268 * ifcvt.c: Likewise.
10269 * implicit-zee.c: Likewise.
10270 * integrate.c: Likewise.
10271 * ira-build.c: Likewise.
10272 * ira-color.c: Likewise.
10273 * ira-conflicts.c: Likewise.
10274 * ira-costs.c: Likewise.
10275 * ira-lives.c: Likewise.
10277 * lists.c: Likewise.
10278 * loop-doloop.c: Likewise.
10279 * loop-iv.c: Likewise.
10280 * lto-opts.c: Likewise.
10281 * lto-symtab.c: Likewise.
10282 * main.c: Likewise.
10283 * modulo-sched.c: Likewise.
10284 * optabs.c: Likewise.
10285 * params.c: Likewise.
10286 * plugin.c: Likewise.
10287 * postreload-gcse.c: Likewise.
10288 * postreload.c: Likewise.
10289 * predict.c: Likewise.
10290 * profile.c: Likewise.
10291 * real.c: Likewise.
10292 * regcprop.c: Likewise.
10293 * reginfo.c: Likewise.
10294 * regmove.c: Likewise.
10295 * reorg.c: Likewise.
10296 * resource.c: Likewise.
10298 * rtlanal.c: Likewise.
10299 * sched-deps.c: Likewise.
10300 * sched-ebb.c: Likewise.
10301 * sched-rgn.c: Likewise.
10302 * sdbout.c: Likewise.
10303 * sel-sched-dump.c: Likewise.
10304 * sel-sched-ir.c: Likewise.
10305 * simplify-rtx.c: Likewise.
10306 * stmt.c: Likewise.
10307 * stor-layout.c: Likewise.
10308 * store-motion.c: Likewise.
10309 * targhooks.c: Likewise.
10310 * tree-cfg.c: Likewise.
10311 * tree-cfgcleanup.c: Likewise.
10312 * tree-dump.c: Likewise.
10313 * tree-eh.c: Likewise.
10314 * tree-inline.c: Likewise.
10315 * tree-nomudflap.c: Likewise.
10316 * tree-object-size.c: Likewise.
10317 * tree-optimize.c: Likewise.
10318 * tree-outof-ssa.c: Likewise.
10319 * tree-phinodes.c: Likewise.
10320 * tree-profile.c: Likewise.
10321 * tree-ssa-ccp.c: Likewise.
10322 * tree-ssa-coalesce.c: Likewise.
10323 * tree-ssa-live.c: Likewise.
10324 * tree-ssa-loop-niter.c: Likewise.
10325 * tree-ssa-loop-prefetch.c: Likewise.
10326 * tree-ssa-loop.c: Likewise.
10327 * tree-ssa-structalias.c: Likewise.
10328 * tree-ssa-uninit.c: Likewise.
10329 * tree-ssa.c: Likewise.
10330 * tree-vect-data-refs.c: Likewise.
10331 * tree-vect-loop-manip.c: Likewise.
10332 * tree-vect-loop.c: Likewise.
10333 * tree-vect-patterns.c: Likewise.
10334 * tree-vect-stmts.c: Likewise.
10335 * tree-vrp.c: Likewise.
10336 * varasm.c: Likewise.
10339 * xcoffout.c: Likewise.
10341 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
10343 * gengtype.c (write_field_root): New function.
10344 (write_root): Use it.
10346 2010-07-07 Wei Guozhi <carrot@google.com>
10348 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10349 of lowest bits to lshift/compare): Add a missing line.
10351 2010-07-07 Wei Guozhi <carrot@google.com>
10353 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10354 of lowest bits to lshift/compare): New.
10356 2010-07-07 Tom Tromey <tromey@redhat.com>
10358 * doc/tm.texi: Update.
10359 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10361 * target.def (want_debug_pub_sections): New hook.
10362 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10363 * dwarf2out.c (add_pubname_string): Check
10364 targetm.want_debug_pub_sections.
10365 (add_pubname): Likewise.
10366 (add_pubtype): Likewise.
10368 2010-07-07 Jie Zhang <jie@codesourcery.com>
10370 * genautomata.c (output_automata_list_min_issue_delay_code):
10371 Correctly decompress min_issue_delay.
10373 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
10375 PR rtl-optimization/44404
10376 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10377 possible, use reg_overlap_mentioned_p instead.
10379 2010-07-07 Duncan Sands <baldrick@free.fr>
10381 PR middle-end/41355
10382 * tree.c (build_function_type_skip_args): Copy the original type using
10383 build_distinct_type_copy rather than copy_node.
10385 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
10388 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10390 (ix86_expand_prologue): Likewise.
10391 (ix86_handle_fndecl_attribute): Likewise.
10392 (ix86_asm_declare_function_name): Likewise.
10393 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10394 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10395 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10396 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10397 * doc/extend.texi: Likewise.
10399 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
10402 * config/i386/i386.md (rdrand<mode>): Changed to expand to
10403 retry if the carry flag isn't valid.
10404 (rdrand<mode>_1): New.
10406 2010-07-07 Richard Guenther <rguenther@suse.de>
10408 PR middle-end/44790
10409 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10410 for expanding the constant offset for MEM_REFs.
10412 2010-07-07 Richard Guenther <rguenther@suse.de>
10414 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10415 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
10416 * gimple.h (is_gimple_operand): Remove.
10417 * gimple.c (is_gimple_operand): Likewise.
10418 (walk_gimple_op): Fix wi->val_only setting for calls.
10419 * tree-cfg.c (verify_gimple_call): Fix argument validation.
10420 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10421 invalid gimple calls.
10423 2010-07-06 Jan Hubicka <jh@suse.cz>
10425 * lto-cgraph.c (output_cgraph): Add missing declaration.
10427 2010-07-06 Jan Hubicka <jh@suse.cz>
10429 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10432 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
10434 * doc/gimple.texi (GIMPLE_DEBUG): Document.
10435 * doc/rtl.texi (Debug Information): New node.
10436 (NOTE_INSN_VAR_LOCATION): Document.
10437 (debug_insn): Likewise.
10438 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10440 2010-07-07 Jan Hubicka <jh@suse.cz>
10442 With parts by Richard Guenther.
10444 PR middle-end/44813
10445 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10446 for functions passed by reference.
10447 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10448 in memory when passed by reference.
10449 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10451 * ipa-split.c (split_function): Cleanup way return value is passed;
10452 handle SSA DECL_BY_REFERENCE retvals.
10453 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10454 DECL_BY_REFERENCE is set.
10455 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10456 find_what_p_points_to): Handle RESULT_DECL.
10457 * tree-inline.c (declare_return_variable): Get new entry_block argument;
10458 when passing by reference ensure that RESULT_DECL is gimple_val.
10459 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10460 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10462 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
10464 PR rtl-optimization/44787
10465 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10466 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
10468 2010-07-06 Jan Hubicka <jh@suse.cz>
10470 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
10471 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
10472 with body can prevail.
10473 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
10474 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
10475 * cgraph.c (cgraph_get_node_or_alias): New function.
10476 * cgraph.h (cgraph_get_node_or_alias): Declare.
10478 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
10480 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
10482 (ix86_expand_prologue): Likewise.
10483 (ix86_handle_fndecl_attribute): Likewise.
10484 (ix86_asm_declare_function_name): New function for
10485 ASM_DECLARE_FUNCTION_NAME.
10486 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
10487 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
10488 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
10489 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
10490 * doc/extend.texi: Adjust documentation about ms_hook_prologue
10493 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10495 * config/i386/i386.md (immediate_operand): New mode attribute.
10497 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
10498 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
10499 using P mode iterator.
10500 (pro_epilogue_adjust_stack_di_2): Rename from
10501 pro_epilogue_adjust_stack_rex64_2.
10503 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
10505 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10507 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
10508 through gen_mov_insv_1 function pointer.
10509 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
10510 gen_truncxf<mode>2 through gen_truncxf function pointer.
10511 (remainder<mode>3): Ditto.
10512 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
10513 (allocate_stack): Call gen_allocate_stack_worker_64 or
10514 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
10516 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
10519 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
10521 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
10522 operand constraint instead of <r><i>m.
10524 2010-07-06 Richard Guenther <rguenther@suse.de>
10526 PR middle-end/44828
10527 * convert.c (convert_to_integer): Watch out for overflowing
10530 2010-07-05 Jan Hubicka <jh@suse.cz>
10532 * lto-streamer.c (write_symbol_vec): Rename to ...
10533 (write_symbol) ... this one; write only symbol given and when
10534 present in cache. Sanity check that what is defined is present
10535 in cgraph/varpool with body/finalized decl.
10536 (write_symbols_of_kind): Remove.
10537 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
10538 pairs to produce symtab.
10539 (produce_asm_for_decls): Update call of produce_symtab; don't do so
10540 when doing WPA streaming.
10542 2010-07-05 Jan Hubicka <jh@suse.cz>
10544 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
10545 function is still available to fold into.
10547 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10549 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
10550 * function.h (struct_function): Change type of local_decls field
10552 (add_local_decl): New function.
10553 (FOR_EACH_LOCAL_DECL): New macro.
10554 * cfgexpand.c (init_vars_expansion): Adjust for new type of
10556 (estimated_stack_frame_size): Likewise.
10557 (expand_used_vars): Likewise.
10558 * cgraphbuild.c (build_cgraph_edges): Likewise.
10559 * function.c (instantiate_decls_1): Likewise.
10560 * ipa-struct-reorg.c (build_data_structure): Likewise.
10561 * ipa-type-escape.c (analyze_function): Likewise.
10562 * lto-streamer-in.c (input_function): Likewise.
10563 * lto-streamer-out.c (output_function): Likewise.
10564 * tree-ssa-live.c (remove_unused_locals): Likewise.
10565 * tree.c (free_lang_data_in_decl): Likewise.
10566 (find_decls_types_in_node): Likewise.
10567 * omp-low.c (remove_exit_barrier): Likewise.
10568 (expand_omp_taskreg): Likewise.
10569 (list2chain): Rename to...
10570 (vec2chain): ...this. Adjust.
10571 * cgraphunit.c (assemble_thunk): Call add_local_decl.
10572 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
10573 * gimple-low.c (record_vars_into): Likewise.
10574 * tree-inline.c (remap_decls): Likewise.
10575 (declare_return_variable): Likewise.
10576 (declare_inline_vars): Likewise.
10577 (copy_forbidden): Adjust for new type of cfun->local_decls.
10578 (add_local_variables): New function.
10579 (expand_call_inline): Call it.
10580 (tree_function_versioning): Likewise.
10582 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
10584 AVX Programming Reference (June, 2010)
10585 * config/i386/cpuid.h (bit_F16C): New.
10586 (bit_RDRND): Likewise.
10587 (bit_FSGSBASE): Likewise.
10589 * config/i386/i386-builtin-types.def: Add
10590 "DEF_FUNCTION_TYPE (UINT16)", function types for
10591 float16 <-> float conversions and
10592 "DEF_FUNCTION_TYPE (VOID, UINT64)".
10594 * config/i386/i386-c.c (ix86_target_macros_internal): Support
10595 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
10596 OPTION_MASK_ISA_F16C.
10598 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
10599 (OPTION_MASK_ISA_RDRND_SET): Likewise.
10600 (OPTION_MASK_ISA_F16C_SET): Likewise.
10601 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
10602 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
10603 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
10604 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
10605 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
10606 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
10607 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
10608 (override_options): Handle them.
10609 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
10610 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
10611 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
10612 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
10613 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
10614 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
10615 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
10616 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
10617 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
10618 (bdesc_args): Likewise.
10619 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
10620 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
10621 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
10622 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
10623 Handle non-memory store.
10625 * config/i386/i386.h (TARGET_FSGSBASE): New.
10626 (TARGET_RDRND): Likewise.
10627 (TARGET_F12C): Likewise.
10629 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
10630 (UNSPEC_VCVTPS2PH): Likewise.
10631 (UNSPECV_RDFSBASE): Likewise.
10632 (UNSPECV_RDGSBASE): Likewise.
10633 (UNSPECV_WRFSBASE): Likewise.
10634 (UNSPECV_WRGSBASE): Likewise.
10635 (UNSPECV_RDRAND): Likewise.
10636 (rdfsbase<mode>): Likewise.
10637 (rdgsbase<mode>): Likewise.
10638 (wrfsbase<mode>): Likewise.
10639 (wrgsbase<mode>): Likewise.
10640 (rdrand<mode>): Likewise.
10642 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
10644 * config/i386/immintrin.h (_rdrand_u16): New.
10645 (_rdrand_u32): Likewise.
10646 (_readfsbase_u32): Likewise.
10647 (_readfsbase_u64): Likewise.
10648 (_readgsbase_u32): Likewise.
10649 (_readgsbase_u64): Likewise.
10650 (_writefsbase_u32): Likewise.
10651 (_writefsbase_u64): Likewise.
10652 (_writegsbase_u32): Likewise.
10653 (_writegsbase_u64): Likewise.
10654 (_rdrand_u64): Likewise.
10655 (_cvtsh_ss): Likewise.
10656 (_mm_cvtph_ps): Likewise.
10657 (_mm256_cvtph_ps): Likewise.
10658 (_cvtss_sh): Likewise.
10659 (_mm_cvtps_ph): Likewise.
10660 (_mm256_cvtps_ph): Likewise.
10662 * config/i386/sse.md (vcvtph2ps): New.
10663 (*vcvtph2ps_load): Likewise.
10664 (vcvtph2ps256): Likewise.
10665 (vcvtps2ph): Likewise.
10666 (*vcvtps2ph): Likewise.
10667 (*vcvtps2ph_store): Likewise.
10668 (vcvtps2ph256): Likewise.
10670 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
10672 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
10674 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
10677 * genenums.c (main): Output include of insn-constants.h
10678 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
10680 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
10682 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
10683 (override_options): Initialize it.
10684 (ix86_expand_prologue): Use it.
10686 2010-07-05 Jakub Jelinek <jakub@redhat.com>
10688 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
10690 2010-07-05 Anatoly Sokolov <aesok@post.ru>
10692 * double-int.h (fit_double_type): Remove declaration.
10693 * double-int.c (fit_double_type): Remove function.
10694 * tree.h (int_fits_type_p): Adjust prototype.
10695 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
10696 instead of fit_double_type.
10697 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
10698 instead of fit_double_type and build_int_cst_wide.
10699 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
10700 instead of fit_double_type and build_int_cst_wide.
10701 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
10702 of fit_double_type.
10704 2010-07-05 Jan Hubicka <jh@suse.cz>
10706 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
10707 in_other_partition.
10708 * lto-cgraph.c (referenced_from_other_partition_p,
10709 reachable_from_other_partition_p): Use in_other_partition flags.
10710 (output_node, output_varpool_node): COMDAT nodes always have private
10711 copies and thus are never used from other partition.
10713 2010-07-05 Anatoly Sokolov <aesok@post.ru>
10715 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10716 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
10717 * config/ia64/ia64.c Include reload.h.
10718 (ia64_memory_move_cost): New function.
10719 (TARGET_MEMORY_MOVE_COST): Define.
10720 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
10723 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
10725 PR middle-end/42505
10726 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
10727 comments about cost model.
10728 (try_add_cand_for): Add second strategy for choosing initial set
10729 based on original IVs, controlled by ORIGINALP argument.
10730 (get_initial_solution): Add ORIGINALP argument.
10731 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
10732 (find_optimal_iv_set): Try two different strategies for choosing
10733 the IV set, and return the one with lower cost.
10735 2010-07-05 Richard Guenther <rguenther@suse.de>
10737 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
10739 2010-07-05 Richard Guenther <rguenther@suse.de>
10741 * tree.c (reference_alias_ptr_type): New function.
10742 * tree.h (reference_alias_ptr_type): Declare.
10743 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
10744 allow non-TARGET_MEM_REF new refs.
10745 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
10746 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
10747 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
10748 (create_mem_ref): Get alias pointer type. Adjust calls to
10749 create_mem_ref_raw.
10750 (maybe_fold_tmr): Likewise.
10751 * tree-flow.h (create_mem_ref): Adjust prototype.
10753 2010-07-05 Jakub Jelinek <jakub@redhat.com>
10756 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
10757 *from_p is VAR_DECL.
10759 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10761 * tree.h (build_call_list): Remove.
10762 * tree.c (build_call_list): Remove.
10764 2010-07-05 Richard Guenther <rguenther@suse.de>
10766 * double-int.h (double_int_sub): Declare.
10767 * double-int.c (double_int_sub): New function.
10768 * dwarf2out.c (field_byte_offset): Use it.
10769 * fixed-value.c (do_fixed_add): Likewise.
10770 (do_fixed_multiply): Likewise.
10771 (do_fixed_divide): Likewise.
10772 * tree-predcom.c (add_ref_to_chain): Likewise.
10773 (determine_roots_comp): Likewise.
10774 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10776 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
10778 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
10781 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
10783 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
10784 * arm-modes.def (CC_NOTB): Don't define.
10785 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
10786 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
10787 (LTUGEU): New code_iterator.
10788 (cnb, optab): New corresponding code_attrs.
10789 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
10790 to canonical form. Operands 1 and 2 are commutative. Parametrize
10792 (addsi3_carryin_shift_<optab>): Likewise.
10793 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
10794 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
10795 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
10796 (subsi3_compare): Renamed from subsi3_compare0_c.
10797 Change CC_NOTB to CC.
10798 (arm_subsi3_insn): Allow constants for operand 0.
10799 (compare_scc peephole for eq case): New.
10800 (compare_scc splitters): Change CC_NOTB to CC.
10802 2010-07-05 Richard Guenther <rguenther@suse.de>
10804 * tree-ssa-loop-im.c (for_each_index): Do not handle
10805 ALIGN_INDIRECT_REF.
10806 (gen_lsm_tmp_name): Likewise.
10807 * tree-dump.c (dequeue_and_dump): Likewise.
10808 * tree-pretty-print.c (dump_generic_node): Likewise.
10809 (op_code_prio): Likewise.
10810 (op_symbol_code): Likewise.
10811 * tree.c (staticp): Likewise.
10812 (build1_stat): Likewise.
10813 * tree.h (INDIRECT_REF_P): Likewise.
10814 * fold-const.c (maybe_lvalue_p): Likewise.
10815 (operand_equal_p): Likewise.
10816 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10817 (ao_ref_init_from_vn_reference): Likewise.
10818 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10819 (find_interesting_uses_address): Likewise.
10820 * dwarf2out.c (loc_list_from_tree): Likewise.
10821 * gimplify.c (gimplify_expr): Likewise.
10822 * tree-eh.c (tree_could_trap_p): Likewise.
10823 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10824 * cfgexpand.c (expand_debug_expr): Likewise.
10825 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10826 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10827 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10828 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
10829 * tree-ssa-operands.c (get_expr_operands): Likewise.
10830 * expr.c (safe_from_p): Likewise.
10831 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
10832 * tree-vect-data-refs.c (vect_setup_realignment): Build
10833 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
10834 * tree-vect-stmts.c (vectorizable_load): Likewise.
10835 * tree.def (ALIGN_INDIRECT_REF): Remove.
10837 2010-07-05 Richard Guenther <rguenther@suse.de>
10839 PR tree-optimization/44784
10840 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
10841 for inserted stmts.
10842 (find_or_generate_expression): Fix SCCVN insertion check.
10844 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
10846 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
10847 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
10848 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
10851 2010-07-05 Ira Rosen <irar@il.ibm.com>
10853 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
10854 statements that are not vectorized.
10855 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
10858 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
10861 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
10863 2010-07-05 Richard Guenther <rguenther@suse.de>
10865 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
10866 RESULT_DECLs properly.
10868 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
10870 PR rtl-optimization/44695
10871 * config/i386/i386.md (extract_code): Removed.
10872 (<u>divmodqi4): Likewise.
10874 (udivmodqi4): Likewise.
10875 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
10876 (udivmodhiqi3): Likewise.
10878 2010-07-04 Jan Hubicka <jh@suse.cz>
10880 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
10882 2010-07-04 Jan Hubicka <jh@suse.cz>
10884 * cgraphunit.c (init_cgraph): Only initialize dump file if it
10885 is not already initialized.
10887 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
10889 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
10890 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
10891 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
10892 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
10893 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
10894 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
10895 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
10896 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
10897 (sync_new_nand_optab): Redefine as macros.
10898 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
10900 (direct_optab_index): New enum.
10901 (direct_optab_d): New structure.
10902 (direct_optab): New typedef.
10903 (direct_optab_table): Declare.
10904 (direct_optab_handler, set_direct_optab_handler): New functions.
10905 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
10906 (sync_lock_release_optab): New macros.
10907 * optabs.c (direct_optab_table): New variable.
10908 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
10909 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
10910 cmpstr_optab and cmpstrn_optab.
10911 (emit_conditional_move): Likewise for movcc_optab.
10912 (can_conditionally_move_p): Likewise for movcc_gen_code.
10913 (init_insn_codes): Clear direct_optab_table.
10914 (init_optabs): Don't initialize the new "direct optabs" here.
10915 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
10917 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
10918 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
10919 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
10920 (expand_sync_operation): Likewise other sync_*_optabs.
10921 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
10922 to sync_compare_and_swap_optab.
10923 (expand_sync_lock_test_and_set): Use direct_optab_handler for
10924 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
10925 to the names of both.
10926 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
10927 cmpstr_optab and cmpstrn_optab.
10928 (expand_builtin_lock_release): Likewise sync_lock_release.
10929 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
10930 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
10931 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
10932 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
10933 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
10934 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
10935 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
10936 (sync_lock_test_and_set, sync_lock_release): Delete.
10937 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
10938 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
10939 * genopinit.c (optabs): Use set_direct_optab_handler for the new
10941 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
10942 the "optab" local variable. Use direct_optab_handler for optab and
10943 sync_compare_and_swap_optab.
10944 * reload1.c (reload_in_optab, reload_out_optab): Delete.
10945 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
10946 reload_in_optab and reload_out_optab.
10947 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
10948 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
10949 * config/pa/pa.c (pa_secondary_reload): Likewise.
10950 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
10951 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
10952 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
10953 (VMSupportsCS8_builtin): Likewise.
10955 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
10957 * optabs.h (optab_handlers): Change type of insn_code to int.
10958 (optab_handler, set_optab_handler, convert_optab_handler)
10959 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
10961 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
10962 (init_insn_codes): Zero both the above arrays.
10963 (init_optabs): Never call init_insn_codes first time around.
10965 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
10967 * optabs.h (optab_handler, convert_optab_handler): Turn into
10968 inline functions that return an insn code.
10969 (set_optab_handler, set_convert_optab_handler): New functions.
10970 * builtins.c: Replace optab_handler(X)->insn_code with
10971 optab_handler or set_optab_handler thoughout. Likewise
10972 convert_optab_handler(X)->insn_code with convert_optab_handler
10973 and set_convert_optab_handler.
10974 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
10975 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
10976 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
10977 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
10978 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
10979 config/spu/spu.c: Likewise.
10981 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
10984 * config.gcc (sh*-*-*): Use regular expressions instead of
10985 the 'i' modifier for sed substitutions.
10987 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
10989 * gimple.c (gimple_body): Comments added.
10991 2010-07-04 Richard Guenther <rguenther@suse.de>
10993 PR middle-end/44809
10994 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
10995 of an INDIRECT_REF.
10997 2010-07-04 Richard Guenther <rguenther@suse.de>
10999 PR tree-optimization/44479
11000 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11001 extra SSA name copy statements which preserves points-to
11003 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11004 Copy points-to information for all pointers. Properly handle
11006 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
11008 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11011 2010-07-04 Richard Guenther <rguenther@suse.de>
11013 PR middle-end/44785
11014 * tree-inline.c (initialize_inlined_parameters): Do not
11015 re-use pointer-map slot over remap_type call.
11017 2010-07-04 Richard Guenther <rguenther@suse.de>
11019 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11021 2010-07-04 Richard Guenther <rguenther@suse.de>
11023 PR tree-optimization/44656
11024 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11025 again after value-replacing in the defintions lhs.
11027 2010-07-04 Ira Rosen <irar@il.ibm.com>
11028 Revital Eres <eres@il.ibm.com>
11030 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11031 Document new arguments.
11032 * doc/tm.texi: Regenerate.
11033 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11034 Handle unaligned store.
11035 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11036 * target.def (builtin_vectorization_cost): Add new arguments.
11037 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11038 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11039 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11040 (vect_vfa_segment_size): Fix indentation.
11041 * tree-vectorizer.h (struct _vect_peel_info): New.
11042 (struct _vect_peel_extended_info): New.
11043 (struct _loop_vec_info): Add new field for peeling hash table and a
11044 macro for its access.
11045 (VECT_MAX_COST): Define.
11046 (vect_get_load_cost): Declare.
11047 (vect_get_store_cost, vect_get_known_peeling_cost,
11048 vect_get_single_scalar_iteraion_cost): Likewise.
11049 (vect_supportable_dr_alignment): Add new argument.
11050 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11052 (destroy_loop_vec_info): Free peeling hash table.
11053 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11054 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11055 vect_analyze_slp. Fix indentation.
11056 (vect_get_single_scalar_iteraion_cost): New function.
11057 (vect_get_known_peeling_cost): Likewise.
11058 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11059 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11060 statement. Move outside cost calculation inside unknown peeling case.
11061 Call vect_get_known_peeling_cost for known amount of peeling.
11062 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11063 reference to the print message of forced alignment.
11064 (vect_verify_datarefs_alignment): Update call to
11065 vect_supportable_dr_alignment.
11066 (vect_get_data_access_cost): New function.
11067 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11068 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11069 vect_peeling_hash_choose_best_peeling): Likewise.
11070 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11071 to store all the accesses in the loop and find best possible access to
11072 align using peeling for known alignment case. For unknown alignment
11073 check if stores are preferred or if peeling is worthy.
11074 (vect_find_same_alignment_drs): Analyze pairs of loads too.
11075 (vect_supportable_dr_alignment): Add new argument and check aligned
11076 accesses according to it.
11077 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11078 (cost_for_stmt): Call vect_get_stmt_cost.
11079 (vect_model_simple_cost): Likewise.
11080 (vect_model_store_cost): Call vect_get_stmt_cost. Call
11081 vect_get_store_cost to calculate the cost of the statement.
11082 (vect_get_store_cost): New function.
11083 (vect_model_load_cost): Call vect_get_stmt_cost. Call
11084 vect_get_load_cost to calculate the cost of the statement.
11085 (vect_get_load_cost): New function.
11086 (vectorizable_store): Update call to vect_supportable_dr_alignment.
11087 (vectorizable_load): Likewise.
11088 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11089 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11090 arguments. Handle unaligned store.
11091 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11092 (rs6000_builtin_support_vector_misalignment): Return true for word and
11093 double word alignments for VSX.
11094 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11095 vect_supportable_dr_alignment and builtin_vectorization_cost.
11097 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11100 * config/pa/predicates.md (prefetch_cc_operand): Remove.
11101 (prefetch_nocc_operand): Likewise.
11102 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11103 (prefetch_20): New insn.
11104 (prefetch_cc): Remove.
11105 (prefetch_nocc): Likewise.
11107 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11109 * expr.c (vector_mode_valid_p): Move to c-common.c.
11110 * expr.h (vector_mode_valid_p): Do not declare here.
11111 * system.h: Poison GCC_EXPR_H in front-ends.
11112 * Makefile.in: Update dependencies.
11114 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11117 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11119 2010-07-03 Jan Hubicka <jh@suse.cz>
11121 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11122 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11123 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11124 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11127 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11129 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11130 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11131 TV_IPA_LTO_DECL_OUT): New.
11132 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11134 2010-07-03 Jan Hubicka <jh@suse.cz>
11136 * ipa-inline.c (update_edge_key): Break out from ...
11137 update_callers_keys): ... here;
11138 (update_callee_keys): Update only the edges from caller to callee.
11139 (update_all_calle_keys): Do what update_calle_keys did.
11140 (decide_inlining_of_small_functions): Avoid recomputing of all
11141 callees when badness increase.
11143 2010-07-03 Jie Zhang <jie@codesourcery.com>
11145 * config/arm/arm.c (arm_attr_length_move_neon): New.
11146 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11147 * config/arm/neon.md (define_mode_attr V_slen): Remove.
11148 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11149 to compute length attribute.
11151 2010-07-03 Jie Zhang <jie@codesourcery.com>
11153 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11154 as predicate for operand 1 and remove its constraint.
11155 * config/arm/predicates.md (vfp_register_operand): New.
11156 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11157 (*push_fp_multi): Likewise.
11159 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
11161 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11163 2010-07-03 Jan Hubicka <jh@suse.cz>
11165 * config/i386/i386.c (override_options): Revert accidental commit.
11167 2010-07-02 Le-Chun Wu <lcwu@google.com>
11170 * doc/invoke.texi: Update documentation of -Wshadow.
11172 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
11173 Julian Brown <julian@codesourcery.com>
11174 Sandra Loosemore <sandra@codesourcery.com>
11176 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11177 comparisons. Adjust to take both operands.
11178 (arm_select_cc_mode): Handle DImode comparisons.
11179 (arm_gen_compare_reg): Generate a scratch register for DImode
11180 comparisons which require one. Use xor for Thumb equality checks.
11181 (arm_const_double_by_immediates): New.
11182 (arm_print_operand): Allow 'Q' and 'R' for constants.
11183 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11184 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11185 arm_canonicalize_comparison.
11186 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11187 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11189 (arm_const_double_by_immediates): Declare.
11190 * config/arm/constraints.md (Di): New constraint.
11191 * config/arm/predicates.md (arm_immediate_di_operand)
11192 (arm_di_operand, cmpdi_operand): New.
11193 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11194 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11195 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11196 (cstoredi4): Handle non-Cirrus also.
11198 2010-07-02 Julian Brown <julian@codesourcery.com>
11199 Sandra Loosemore <sandra@codesourcery.com>
11202 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11203 (smax<mode>3): Disable for NEON float modes when
11204 flag_unsafe_math_optimizations is false.
11205 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11207 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11208 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11209 for NEON float modes when flag_unsafe_math_optimizations is false.
11210 (quad_halves_<code>v4sf): Only enable if
11211 flag_unsafe_math_optimizations is true.
11212 * doc/invoke.texi (ARM Options): Add note about floating point
11213 vectorization requiring -funsafe-math-optimizations.
11215 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11216 Julian Brown <julian@codesourcery.com>
11218 * config/arm/neon.md (UNSPEC_VABA): Delete.
11219 (UNSPEC_VABAL): Delete.
11220 (UNSPEC_VABS): Delete.
11221 (UNSPEC_VMUL_N): Delete.
11222 (adddi3_neon): New.
11223 (subdi3_neon): New.
11224 (mul<mode>3add<mode>_neon): Make the pattern named.
11225 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11226 (neon_vadd<mode>): Replace with define_expand, and move the remaining
11228 (neon_vadd<mode>_unspec): ...to this.
11229 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11230 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11231 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11232 (neon_vaba<mode>): Rewrite in terms of vabd.
11233 (neon_vabal<mode>): Rewrite in terms of vabdl.
11234 (neon_vabs<mode>): Rewrite without unspec.
11235 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11236 (*arm_subdi3): Likewise.
11237 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11238 No_op attribute to disable assembly output checks.
11239 * config/arm/arm_neon.h: Regenerated.
11240 * doc/arm-neon-intrinsics.texi: Regenerated.
11242 2010-07-02 Jan Hubicka <jh@suse.cz>
11244 * ipa-split.c (split_function): For aggregate values, set the return
11245 slot optimization bit. When passing DECL_BY_REFERENCE, produce
11246 *<retval> = fncall.part ().
11247 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11249 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11251 * config/arm/neon.md (UNSPEC_VAND): Delete.
11252 (UNSPEC_VBIC): Delete.
11253 (UNSPEC_VCLZ): Delete.
11254 (UNSPEC_VCNT): Delete.
11255 (UNSPEC_VEOR): Delete.
11256 (UNSPEC_VORN): Delete.
11257 (UNSPEC_VORR): Delete.
11258 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
11259 core registers too.
11260 (anddi3_neon): Likewise.
11261 (orndi3_neon): Likewise.
11262 (bicdi3_neon): Likewise.
11263 (xordi3_neon): Likewise.
11264 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11265 rid of unspec and handle unused operand.
11266 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11267 * config/arm/predicates.md (imm_for_neon_logic_operand):
11268 Require TARGET_NEON.
11269 (imm_for_neon_inv_logic_operand): Likewise.
11270 * config/arm/arm.md (define_split for logical_binary_operator):
11271 Disable for NEON registers.
11272 (anddi3): Add new define_expand, and rename the insn. Disable
11273 this insn for NEON, where anddi3_neon now applies.
11274 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11275 (iordi3): As for anddi3.
11276 (xordi3): Likewise.
11277 * config/arm/neon.ml (Vand): Split DImode variants and mark them
11278 as No_op to disable testing for exact instruction match.
11283 * config/arm/arm_neon.h: Regenerated.
11284 * doc/arm-neon-intrinsics.texi: Regenerated.
11286 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
11288 * expr.h (emit_stack_probe): Declare.
11289 * explow.c (emit_stack_probe): Make global.
11290 (anti_adjust_stack_and_probe): Fix comments.
11291 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11292 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11293 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11294 * config/sparc/sparc.c: Include except.h.
11295 (sparc_emit_probe_stack_range): New function.
11296 (output_probe_stack_range): Likewise.
11297 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11298 built-in stack checking is enabled.
11299 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11300 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11301 (probe_stack_range): New insn.
11303 2010-07-02 Richard Guenther <rguenther@suse.de>
11306 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11307 for argument alignment.
11309 2010-07-02 Jan Hubicka <jh@suse.cz>
11311 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11312 walk backwards from entry_bb to check only those basic block of header
11313 that might lead to execution of split part.
11314 (consider_split) ... here.
11315 (find_return_bb): Allow assignment in return BB.
11316 (find_retval): New.
11317 (split_function): Fix name of cloned function; take care of updating
11318 return value in return_bb containing move.
11320 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
11323 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11324 used variable insn.
11326 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
11328 * implicit-zee.c (combine_reaching_defs): Fix long lines.
11329 (is_set_with_extension_DI): Delete.
11330 (struct zero_extend_info): New structure.
11331 (add_removable_zero_extend): New function.
11332 (find_removable_zero_extends): Use note_stores to find SETs.
11333 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11335 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
11337 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11338 is_miss_rate_acceptable. Pull total_positions computation
11339 out of the loops. Early return if miss_positions exceeds
11340 the acceptable threshold.
11341 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11342 is_miss_rate_acceptable after renaming of compute_miss_rate.
11344 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
11346 PR middle-end/44576
11347 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11348 of 1000) for miss rate if the address diference is greater than or
11349 equal to the cache line size (the two reference will never hit the
11352 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
11355 * config/arm/arm-modes.def (CC_NOTB): New mode.
11356 * config/arm/arm.c (get_arm_condition_code): Handle it.
11357 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11358 * config/arm/arm.md (subsi3_compare0_c): New pattern.
11359 (compare_scc): Now a define_and_split. Add a number of extra
11360 splitters before it.
11363 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11365 (arm_rtx_costs_1): Likewise.
11366 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11367 * config/arm/arm.md (is_arch6): New attribute.
11368 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11369 extendqisi2): Tighten the code somewhat, avoiding invalid
11370 RTL to occur in the expander patterns.
11371 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11372 (thumb1_zero_extendhisi2_v6): Delete.
11373 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11374 (thumb1_extendhisi2_v6): Delete.
11375 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11376 (thumb1_extendqisi2_v6): Delete.
11377 (zero_extendhisi2 for register input splitter): New.
11378 (zero_extendqisi2 for register input splitter): New.
11379 (thumb1_extendhisi2 for register input splitter): New.
11380 (extendhisi2 for register input splitter): New.
11381 (extendqisi2 for register input splitter): New.
11382 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11383 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11384 and add support for a register alternative requiring a split.
11385 (thumb1_zero_extendqisi2): Likewise.
11386 (arm_zero_extendqisi2): Likewise.
11387 (arm_extendhisi2): Likewise.
11388 (arm_extendqisi2): Likewise.
11390 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11392 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11393 instead of an unspec.
11394 (neon_expand_vector_init): Likewise.
11395 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11396 (UNSPEC_VDUP_LANE): Delete.
11397 (UNSPEC VDUP_N): Delete.
11398 (UNSPEC_VGET_HIGH): Delete.
11399 (UNSPEC_VGET_LANE): Delete.
11400 (UNSPEC_VGET_LOW): Delete.
11401 (UNSPEC_VMVN): Delete.
11402 (UNSPEC_VSET_LANE): Delete.
11403 (V_double_vector_mode): New.
11404 (vec_set<mode>_internal): Make code emitted match that for the
11405 corresponding intrinsics.
11406 (vec_setv2di_internal): Likewise.
11407 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11408 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11409 (neon_vset_lane<mode>): Combine double and quad patterns and
11410 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11411 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11412 (neon_vdup_n<mode>): Rewrite RTL without unspec.
11413 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11414 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11415 with neon_vdup_lanev2di, adjusting the pattern from the latter
11416 to be predicable for consistency.
11417 (neon_vdup_lane<mode>_internal): New.
11418 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11419 to avoid using an unspec.
11420 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11421 (neon_vdup_lanev2di): Turn into a define_expand.
11422 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11423 (neon_vget_high<mode>): Replace with....
11424 (neon_vget_highv16qi): New pattern using canonical RTL.
11425 (neon_vget_highv8hi): Likewise.
11426 (neon_vget_highv4si): Likewise.
11427 (neon_vget_highv4sf): Likewise.
11428 (neon_vget_highv2di): Likewise.
11429 (neon_vget_low<mode>): Replace with....
11430 (neon_vget_lowv16qi): New pattern using canonical RTL.
11431 (neon_vget_lowv8hi): Likewise.
11432 (neon_vget_lowv4si): Likewise.
11433 (neon_vget_lowv4sf): Likewise.
11434 (neon_vget_lowv2di): Likewise.
11436 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11437 test for this emitting vmov.
11438 (Vset_lane): Likewise.
11439 (Vdup_n): Likewise.
11440 (Vmov_n): Likewise.
11442 * doc/arm-neon-intrinsics.texi: Regenerated.
11444 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11446 * config/arm/neon.md (vec_extractv2di): Correct error in register
11447 numbering to reconcile with neon_vget_lanev2di.
11449 2010-07-02 Richard Guenther <rguenther@suse.de>
11451 * tree-ssa-structalias.c (pt_solution_set_var): New function.
11452 * tree-ssa-alias.h (pt_solution_set_var): Declare.
11453 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11454 points-to information.
11456 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
11458 * config/s390/s390.c (override_options): Adopt prefetching
11459 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11461 2010-07-02 Jan Hubicka <jh@suse.cz>
11463 * df-problems.c (df_kill_notes): Do not collect dead notes.
11464 (df_set_note): Just call add_reg_note.
11465 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11466 df_create_unused_note): Do not deal with lists of old notes.
11467 (df_note_bb_compute): Likewise.
11469 2010-07-02 Richard Guenther <rguenther@suse.de>
11471 * tree-ssa-structalias.c (find_func_aliases): Handle
11472 pointer alignment via BIT_AND_EXPR.
11473 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
11475 2010-07-02 Richard Guenther <rguenther@suse.de>
11477 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11478 mismatching number of dimensions properly.
11480 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11483 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
11484 (lo_sum (high ...) ...) patterns generated by earlier passes.
11486 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11488 * doc/install.texi (Prerequisites): Document Perl requirement on
11490 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
11492 2010-07-02 Richard Guenther <rguenther@suse.de>
11494 PR middle-end/44777
11495 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
11497 2010-07-02 Jan Hubicka <jh@suse.cz>
11499 PR middle-end/44706
11500 * predict.c (predict_paths_for_bb): Handle case when control dependence
11501 BB has only abnormal edges.
11503 2010-07-02 Richard Guenther <rguenther@suse.de>
11505 PR tree-optimization/44748
11506 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
11507 the embedded conversion in MEM_REFs.
11509 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
11511 * reload.c: Include toplev.h.
11512 * recog.c: Likewise.
11513 * Makefile.in: Adjust dependencies.
11515 2010-07-01 Jakub Jelinek <jakub@redhat.com>
11518 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
11519 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
11521 2010-07-01 Richard Guenther <rguenther@suse.de>
11523 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
11526 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
11529 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
11530 Fix argument types.
11532 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
11535 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11536 Make sure operand 0 dies.
11538 2010-07-01 Richard Guenther <rguenther@suse.de>
11540 PR middle-end/42834
11541 PR middle-end/44468
11542 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
11543 * doc/generic.texi (References to storage): Document MEM_REF.
11544 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
11545 (print_call_name): Likewise.
11546 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
11547 (build_simple_mem_ref_loc): New function.
11548 (mem_ref_offset): Likewise.
11549 * tree.h (build_simple_mem_ref_loc): Declare.
11550 (build_simple_mem_ref): Define.
11551 (mem_ref_offset): Declare.
11552 * fold-const.c: Include tree-flow.h.
11553 (operand_equal_p): Handle MEM_REF.
11554 (build_fold_addr_expr_with_type_loc): Likewise.
11555 (fold_comparison): Likewise.
11556 (fold_unary_loc): Fold
11557 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
11558 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
11559 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
11560 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
11561 (ptr_deref_may_alias_ref_p_1): Likewise.
11562 (ao_ref_base_alias_set): Properly differentiate base object for
11564 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
11565 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
11566 (indirect_refs_may_alias_p): Likewise.
11567 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
11569 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
11570 (call_may_clobber_ref_p_1): Likewise.
11571 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
11572 * expr.c (expand_assignment): Handle MEM_REF.
11573 (store_expr): Handle MEM_REFs from STRING_CSTs.
11574 (store_field): If expanding a MEM_REF of a non-addressable
11575 decl use bitfield operations.
11576 (get_inner_reference): Handle MEM_REF.
11577 (expand_expr_addr_expr_1): Likewise.
11578 (expand_expr_real_1): Likewise.
11579 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
11580 * alias.c (ao_ref_from_mem): Handle MEM_REF.
11581 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
11582 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
11583 (dr_analyze_indices): Likewise.
11584 (dr_analyze_alias): Likewise.
11585 (object_address_invariant_in_loop_p): Likewise.
11586 * gimplify.c (mark_addressable): Handle MEM_REF.
11587 (gimplify_cond_expr): Build MEM_REFs.
11588 (gimplify_modify_expr_to_memcpy): Likewise.
11589 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
11590 (gimple_fold_indirect_ref): Adjust.
11591 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
11592 * tree.def (MEM_REF): New tree code.
11593 * tree-dfa.c: Include toplev.h.
11594 (get_ref_base_and_extent): Handle MEM_REF.
11595 (get_addr_base_and_unit_offset): New function.
11596 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
11597 * gimple-fold.c (may_propagate_address_into_dereference): Handle
11599 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
11600 accesses if the array has just one dimension. Remove always true
11601 parameter. Do not require type compatibility here.
11602 (maybe_fold_offset_to_component_ref): Remove.
11603 (maybe_fold_stmt_indirect): Remove.
11604 (maybe_fold_reference): Remove INDIRECT_REF handling.
11605 Fold back to non-MEM_REF.
11606 (maybe_fold_offset_to_address): Simplify. Deal with type
11608 (maybe_fold_reference): Likewise.
11609 (maybe_fold_stmt_addition): Likewise. Also handle
11610 &ARRAY + I in addition to &ARRAY[0] + I.
11611 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
11612 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
11613 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
11614 * tree-ssa.c (useless_type_conversion_p): Make most pointer
11615 conversions useless.
11616 (warn_uninitialized_var): Handle MEM_REF.
11617 (maybe_rewrite_mem_ref_base): New function.
11618 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
11620 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
11621 INDIRECT_REF handling.
11622 (copy_tree_body_r): Handle MEM_REF.
11623 * gimple.c (is_gimple_addressable): Adjust.
11624 (is_gimple_address): Likewise.
11625 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
11626 invariant base are invariant.
11627 (is_gimple_min_lval): Adjust.
11628 (is_gimple_mem_ref_addr): New function.
11629 (get_base_address): Handle MEM_REF.
11630 (count_ptr_derefs): Likewise.
11631 (get_base_loadstore): Likewise.
11632 * gimple.h (is_gimple_mem_ref_addr): Declare.
11633 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
11634 * tree-cfg.c (verify_address): New function, split out from ...
11635 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
11636 the address operand of MEM_REFs. Verify MEM_REFs. Reject
11638 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
11639 INDIRECT_REF. Allow conversions.
11640 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
11641 a register does not change its size.
11642 (verify_types_in_gimple_reference): Verify MEM_REF.
11643 (verify_gimple_assign_single): Disallow INDIRECT_REF.
11645 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
11647 (mark_address_taken): Handle MEM_REF.
11648 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
11649 (get_asm_expr_operands): Pass opf_not_non_addressable.
11650 (get_expr_operands): Handle opf_[not_]non_addressable.
11651 Handle MEM_REF. Remove INDIRECT_REF handling.
11652 * tree-vrp.c (check_array_ref): Handle MEM_REF.
11653 (search_for_addr_array): Likewise.
11654 (check_array_bounds): Likewise.
11655 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
11656 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
11657 (ref_always_accessed_p): Likewise.
11658 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
11659 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
11661 * cgraphbuild.c (mark_load): Properly check for NULL result
11662 from get_base_address.
11663 (mark_store): Likewise.
11664 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
11665 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
11666 handling for MEM_REF.
11667 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
11668 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
11669 * builtins.c (stabilize_va_list_loc): Use the function ABI
11670 valist type if we couldn't canonicalize the argument type.
11671 Always dereference with the canonical va-list type.
11672 (maybe_emit_free_warning): Handle MEM_REF.
11673 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
11675 * builtins.c (fold_builtin_memory_op): Use ref-all types
11676 for all memcpy foldings.
11677 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
11678 (build_outer_var_ref): Likewise.
11679 (scan_omp_1_op): Likewise.
11680 (lower_rec_input_clauses): Likewise.
11681 (lower_lastprivate_clauses): Likewise.
11682 (lower_reduction_clauses): Likewise.
11683 (lower_copyprivate_clauses): Likewise.
11684 (expand_omp_atomic_pipeline): Likewise.
11685 (expand_omp_atomic_mutex): Likewise.
11686 (create_task_copyfn): Likewise.
11687 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
11688 Remove old union trick. Initialize constant offsets.
11689 (ao_ref_init_from_vn_reference): Likewise. Do not handle
11690 INDIRECT_REF. Init base_alias_set properly.
11691 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
11692 (vn_reference_fold_indirect): Adjust for MEM_REFs.
11693 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
11695 (may_insert): Remove.
11696 (visit_reference_op_load): Do not test may_insert.
11697 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
11698 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11699 a field to store the constant offset this op applies.
11700 (run_scc_vn): Adjust prototype.
11701 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
11702 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
11703 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
11704 bother about volatile qualifiers on pointers.
11705 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
11706 * tree-ssa-loop-ivopts.c
11707 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
11708 (strip_offset_1): Likewise.
11709 (find_interesting_uses_address): Replace INDIRECT_REF handling with
11711 (get_computation_cost_at): Likewise.
11712 * ipa-pure-const.c (check_op): Handle MEM_REF.
11713 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
11714 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
11716 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
11717 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
11718 (eliminate_local_variables_1): Likewise.
11719 (create_call_for_reduction_1): Likewise.
11720 (create_loads_for_reductions): Likewise.
11721 (create_loads_and_stores_for_name): Likewise.
11722 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
11723 (ssa_accessed_in_tree): Handle MEM_REF.
11724 (ssa_accessed_in_assign_rhs): Likewise.
11725 (update_type_size): Likewise.
11726 (analyze_accesses_for_call_stmt): Likewise.
11727 (analyze_accesses_for_assign_stmt): Likewise.
11728 (transform_access_sites): Likewise.
11729 (transform_allocation_sites): Likewise.
11730 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
11731 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11732 not handle INDIRECT_REF.
11733 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
11734 (cond_store_replacement): Likewise.
11735 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11736 MEM_REF, no not handle INDIRECT_REFs.
11737 (insert_into_preds_of_block): Properly initialize avail.
11738 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
11739 for ARRAY_REFs. Properly handle reference lookups that
11740 require a bit re-interpretation.
11741 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
11742 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
11743 (build_ref_for_offset_1): Remove.
11744 (build_ref_for_offset): Build MEM_REFs.
11745 (gate_intra_sra): Disable for now.
11746 (sra_ipa_modify_expr): Handle MEM_REF.
11747 (ipa_early_sra_gate): Disable for now.
11748 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
11750 (disqualify_base_of_expr): Likewise.
11751 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
11753 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
11754 Use mem_ref_offset. Remove bogus folding.
11755 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
11756 (make_fancy_name_1): Add support for MEM_REF.
11757 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
11758 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
11759 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
11760 (compute_complex_ancestor_jump_func): Likewise.
11761 (ipa_analyze_virtual_call_uses): Likewise.
11762 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
11763 INDIRECT_REF folding with more generalized MEM_REF folding.
11764 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
11765 (forward_propagate_addr_into_variable_array_index): Also handle
11766 &ARRAY + I in addition to &ARRAY[0] + I.
11767 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
11768 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
11769 creates assignments with overlap.
11770 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
11771 (get_frame_field): Likewise.
11772 (get_nonlocal_debug_decl): Likewise.
11773 (convert_nonlocal_reference_op): Likewise.
11774 (struct nesting_info): Add mem_refs pointer-set.
11775 (create_nesting_tree): Allocate it.
11776 (convert_local_reference_op): Insert to be folded mem-refs.
11777 (fold_mem_refs): New function.
11778 (finalize_nesting_tree_1): Perform defered folding of mem-refs
11779 (free_nesting_tree): Free the pointer-set.
11780 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
11781 (vectorizable_load): Likewise.
11782 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
11783 (propagate_with_phi): Likewise.
11784 * tree-object-size.c (addr_object_size): Handle MEM_REFs
11785 instead of INDIRECT_REFs.
11786 (compute_object_offset): Handle MEM_REF.
11787 (plus_stmt_object_size): Handle MEM_REF.
11788 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
11790 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
11791 (symbol_marked_for_renaming): Likewise.
11792 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
11793 (fold-const.o): Add $(TREE_FLOW_H).
11794 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
11795 (find_func_clobbers): Likewise.
11796 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
11797 (decompose_access): Likewise.
11798 (replace_field_acc): Likewise.
11799 (replace_field_access_stmt): Likewise.
11800 (insert_new_var_in_stmt): Likewise.
11801 (get_stmt_accesses): Likewise.
11802 (reorg_structs_drive): Disable.
11803 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
11804 (ix86_canonical_va_list_type): Likewise.
11806 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
11809 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
11810 * target.def (struct gcc_target): Replace enum reg_class with
11811 reg_class_t in hook argument / return types.
11812 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
11813 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
11814 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11815 * targhooks.h (default_branch_target_register_class): Likewise.
11816 (default_ira_cover_classes, default_secondary_reload): Likewise.
11817 (default_memory_move_cost, default_register_move_cost): Likewise.
11818 * targhooks.c (default_branch_target_register_class): Likewise.
11819 (default_ira_cover_classes, default_secondary_reload): Likewise.
11820 (default_memory_move_cost, default_register_move_cost): Likewise.
11821 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
11822 * bt-load.c (branch_target_load_optimize): Likewise.
11823 * ira.c (setup_cover_and_important_classes): Likewise.
11824 * ira-costs.c (copy_cost): Likewise.
11825 * reload1.c (emit_input_reload_insns): Likewise.
11826 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11827 * config/frv/frv.c (frv_secondary_reload): Likewise.
11828 * config/s390/s390.c (s390_secondary_reload): Likewise.
11829 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
11830 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
11831 (ix86_register_move_cost): Likewise.
11832 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
11833 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
11834 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
11835 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
11836 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
11837 (rs6000_ira_cover_classes): Likewise.
11838 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
11839 * config/picochip/picochip-protos.h (picochip_secondary_reload):
11841 * config/pa/pa.c (pa_secondary_reload): Likewise.
11842 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
11843 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
11844 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
11845 * doc/tm.texi: Regenerate.
11847 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
11849 PR bootstrrap/44726
11850 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
11852 (build_alias_set_optimal_p): Likewise.
11853 (build_base_obj_set_for_drs): Likewise.
11855 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
11857 * target.def: Remove comment about licensing problems of function
11860 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
11861 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
11862 * doc/tm.texi: Regenerate.
11864 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
11865 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
11867 * target.def (enum_va_list_p): Use DEFHOOK.
11868 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
11869 Rename ptype to ptree.
11870 * doc/tm.texi: Regenerate.
11872 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
11873 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
11874 * doc/tm.texi: Regenerate.
11876 * target.def (memory_move_cost): Use DEFHOOK.
11877 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
11878 Rename regclass AKA class to rclass.
11879 * doc/tm.texi: Regenerate.
11881 * target.def (pragma_parse): Use DEFHOOK.
11882 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
11883 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
11884 * doc/tm.texi: Regenerate.
11886 * target.def (pass_by_reference): Use DEFHOOK.
11887 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
11888 * doc/tm.texi: Regenerate.
11890 * target.def (resolve_overloaded_builtin): Rename params to arglist.
11892 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
11893 * doc/tm.texi: Regenerate.
11895 * target.def (return_pops_args): Use DEFHOOK.
11896 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
11897 Rename stack-size to size.
11898 * doc/tm.texi: Regenerate.
11900 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
11901 last-sched_cycle to last_clock, cur_cycle to clock.
11902 * doc/tm.texi.in: Use @hook.
11903 * doc/tm.texi: Regenerate.
11905 * target.def (print_operand, print_operand_address): Update comment.
11906 (print_operand_punct_valid_p): Likewise.
11908 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
11910 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
11912 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
11913 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
11914 * rtl-error.h: New.
11915 * regrename.c: Do not include toplev.h. Include rtl-error.h.
11916 * rtl-error.c: Likewise.
11917 * reload.c: Likewise.
11918 * recog.c: Likewise.
11919 * sel-sched.c: Likewise.
11920 * function.c: Likewise.
11921 * reg-stack.c: Likewise.
11922 * cfgrtl.c: Likewise.
11923 * reload1.c: Likewise.
11924 * final.c: Include rtl-error.
11925 * Makefile.in: Adjust dependencies.
11927 2010-06-30 Jan Hubicka <jh@suse.cz>
11929 PR middle-end/PR44706
11930 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
11931 to return the value.
11933 2010-06-30 Michael Matz <matz@suse.de>
11936 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
11937 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
11938 a gimple reg, attach the original VDEF to the last store in the
11941 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
11944 * config/darwin.c (darwin_override_options): Use renamed
11945 targetm.asm_out.emit_unwind_label.
11947 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
11949 PR tree-optimization/39799
11950 * tree-inline.c (remap_ssa_name): Initialize variable only if
11951 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11953 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
11955 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
11957 2010-06-30 Richard Guenther <rguenther@suse.de>
11960 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
11961 against oscillation with reverse peephole2.
11963 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
11966 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11969 2010-06-30 Nick Clifton <nickc@redhat.com>
11971 * config/rx/rx-modes.def: New file.
11972 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
11973 (CC_REGNUM): Define.
11974 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
11976 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
11977 (SELECT_CC_MODE): Define.
11978 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
11979 (reg:CC CC_REG) instead of (cc0).
11980 (attr "cc"): Delete.
11981 (cbranchsi4): Do not split compare and branch here. Instead move
11983 (cbranchsi4_<code>): ... here. New patterns.
11984 (cmpsi): Call rx-compare_redundant to find out if it is necessary
11985 to emit the compare instruction.
11986 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
11988 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
11989 FIRST_PSEUDO_REGNUM.
11990 (rx_expand_prologue, rx_expand_epilogue): Likewise.
11991 (rx_notice_update_cc): Delete.
11992 (rx_cc_modes_compatible): New function.
11993 (flags_needed_for_conditional): New function.
11994 (flags_from_mode): New function.
11995 (rx_compare_redundant): New function - scans backwards through
11996 insn list to find out if condition flags are already set correctly.
11997 (TARGET_CC_MODES_COMPATIBLE): Define.
11998 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12000 * config/rx/rx.h (BRANCH_COST): Define.
12001 (REGISTER_MOVE_COST): Define.
12002 * config/rx/predicates (rx_source_operand): Allow all constant types.
12003 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12004 (tstsi4): New pattern.
12005 * config/rx/rx.c (rx_memory_move_cost): Define.
12006 (TARGET_MEMORY_MOVE_COST): Define.
12008 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12010 * tree.h (block_may_fallthru): Declare here.
12011 * tree-flow.h (block_may_fallthru): Do not declare here.
12012 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12014 * Makefile.in (c-typeck.o): Update dependencies.
12016 2010-06-30 Jakub Jelinek <jakub@redhat.com>
12019 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12020 * cselib.c (cfa_base_preserved_regno): New static variable.
12021 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12022 of REGNO (cfa_base_preserved_val->locs->loc).
12023 (cselib_preserve_cfa_base_value): Add regno argument, set
12024 cfa_base_preserved_regno to it.
12025 (cselib_invalidate_regno): Allow removal of registers other than
12026 cfa_base_preserved_regno from cfa_base_preserved_val.
12027 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12028 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12029 of MEM addresses, if not on LHS.
12030 (reverse_op): Don't add reverse ops for cfa_base_rtx.
12031 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12033 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12035 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12037 (peep2_buf_position): New static function.
12038 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12039 peephole2_optimize): Use it.
12040 (peep2_attempt, peep2_update_life): New static functions, broken out
12041 of peephole2_optimize.
12042 (peep2_fill_buffer): New static function.
12043 (peephole2_optimize): Change the main loop to try to fill the buffer
12044 with the maximum number of insns before matching them against
12045 peepholes. Use a forward scan. Remove special case for targets with
12046 conditional execution.
12047 * genrecog.c (change_state): Delete dead code.
12048 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12049 Rewrite so as not to expect the second insn to have had a peephole
12052 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12054 * genhooks.c (emit_findices): Cast field precision to int.
12055 (emit_documentation): Likewise.
12057 2010-06-29 Jakub Jelinek <jakub@redhat.com>
12059 PR tree-optimization/43801
12060 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12061 if old_decl was DECL_ONE_ONLY.
12064 * dwarf2out.c (add_accessibility_attribute): New function.
12065 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12066 instead of adding DW_AT_accessibility manually.
12067 (gen_enumeration_type_die, gen_struct_or_union_type_die,
12068 gen_typedef_die): Use it.
12070 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12072 * vmsdbgout.c (full_name): Just output the file name if not native.
12074 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12076 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12077 (funcnam_table): New static table.
12078 (funcnum_table): New static table.
12079 (write_rtnbeg): Write value saved in funcnum_table.
12080 (write_rtnend): Write value saved in funcnum_table.
12081 (vmsdbgout_begin_function): Save current function info in
12082 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12083 (vmsdbgout_finish): Iterate over funcnum_table.
12085 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12087 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12088 (vmsdbgout_type_decl): Declare
12089 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12090 (FUNC_EPILOGUE_LABEL): New macro
12091 (vmsdbgout_begin_epilogue): New function.
12092 (vmsdbgout_type_decl): New function.
12094 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12096 * vmsdbg.h: Update copyright.
12098 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12100 * vmsdbg.h (DST_K_TBG): New DST constant.
12101 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12102 (write_modbeg): Cast module_language to avoid warning.
12103 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12105 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12108 * target.def, doc/tm.texi.in, genhooks.c: New files.
12109 * target.h: Instead of defining individual hook members,
12110 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12111 include target.def.
12112 * target-def.h: Instead of defining individual hook initializers,
12113 include target-hooks-def.h.
12114 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12115 targetm.live_on_entry -> targetm.extra_live_on_entry
12116 targetm.sched.md_finish ->targetm.sched.finish
12117 targetm.sched.md_init -> targetm.sched.init
12118 targetm.sched.md_init_global -> targetm.sched.init_global
12119 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12120 targetm.asm_out.except_table_label ->
12121 targetm.asm_out.emit_except_table_label
12122 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12123 targetm.target_help -> targetm.help
12124 targetm.vectorize.builtin_support_vector_misalignment ->
12125 targetm.vectorize.support_vector_misalignment
12126 targetm.file_start_app_off -> targetm.asm_file_start_app_off
12127 targetm.file_start_file_directive ->
12128 targetm.asm_file_start_file_directive
12129 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12130 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12131 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12132 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12133 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12134 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12135 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12136 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12137 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12138 * Makefile.in (TARGET_H): Depend on target.def.
12139 (TARGET_DEF_H): Depend on target-hooks-def.h.
12140 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12141 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12142 * doc/tm.texi: Regenerate.
12144 * Makefile.in (s-tm-texi): Remove stray tab / rule.
12146 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12147 (targetm.sched.init): Likewise.
12149 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12152 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12153 (function_arg_advance_32): Const-ify TYPE parameter.
12154 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
12155 (ix86_function_arg_advance): Change type of NAMED to bool.
12156 (function_arg_32): Const-ify CUM and TYPE parameters.
12157 (function_arg_64): Likewise. Change type of NAMED to bool.
12158 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12160 (ix86_function_arg): Change type of NAMED to bool.
12161 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
12162 last argument as a bool.
12164 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12166 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12167 (OVERRIDE_OPTIONS): Add note of obsolescence.
12168 Replace references with references to TARGET_OPTION_OVERRIDE.
12169 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12171 * targhooks.c (default_target_option_override): New function.
12172 * targhooks.h (default_target_option_override): Declare.
12173 * target.h (struct gcc_target): Add override member to
12174 target_option member.
12175 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12176 targetm.target_option.override call.
12177 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12178 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12180 2010-06-29 Jan Hubicka <jh@suse.cz>
12182 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12184 2010-06-29 Jan Hubicka <jh@suse.cz>
12186 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12188 (rebuild_frequencies): New function.
12189 * predict.h (rebuild_frequencies): Declare.
12190 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12191 entry block and edge reaching new_entry.
12192 (tree_function_versioning): When doing partial cloning, rebuild
12193 frequencies when done.
12194 * passes.c (execute_function_todo): Use rebild_frequencies.
12196 2010-06-29 Richard Guenther <rguenther@suse.de>
12198 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12199 * tree-flow.h (enum noalias_state): Remove.
12200 (struct var_ann_d): Remove noalias_state member.
12202 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12205 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12206 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
12207 (maddhidi4): Likewise.
12209 Revert parts of the change for PR25130.
12210 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12213 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12215 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12216 targetm.calls.function_incoming_arg, and
12217 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12218 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12219 * target.h (struct gcc_target): Add function_arg_advance,
12220 function_arg, and function_incoming_arg fields.
12221 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12222 (TARGET_FUNCTION_INCOMING_ARG): Define.
12223 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12224 and TARGET_FUNCTION_INCOMING_ARG.
12225 * targhooks.h (default_function_arg_advance): Declare.
12226 (default_function_arg, default_function_incoming_arg): Declare.
12227 * targhooks.c (default_function_arg_advance): New function.
12228 (default_function_arg, default_function_incoming_arg): New function.
12229 * config/i386/i386.c (function_arg_advance): Rename to...
12230 (ix86_function_arg_advance): ...this. Make static.
12231 (function_arg): Rename to...
12232 (ix86_function_arg): ...this. Make static.
12233 (TARGET_FUNCTION_ARG_ADVANCE): Define.
12234 (TARGET_FUNCTION_ARG): Define.
12235 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12236 (FUNCTION_ARG): Delete.
12237 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12238 (function_arg): Delete prototype.
12240 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12242 * reginfo.c (init_reg_sets_1): Adjust comments.
12243 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12244 * calls.c (prepare_call_address): Likewise.
12245 (emit_call_1): Use targetm.calls.return_pops_args.
12246 (expand_call): Likewise.
12247 * function.c (assign_parms): Likewise.
12248 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12249 * target.h (struct gcc_target) [struct calls]: Add
12250 return_pops_args field.
12251 * targhooks.h (default_return_pops_args): Declare.
12252 * targhooks.c (default_return_pops_args): Define.
12253 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12254 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12255 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12256 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
12258 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12259 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12260 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12261 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12262 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12263 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12264 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12265 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12266 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12267 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12268 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12269 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12270 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12271 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12272 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12273 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12274 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12275 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12276 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12277 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12278 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12279 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12280 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12281 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12282 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12283 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12284 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12285 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12286 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12287 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12288 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12289 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12290 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12291 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12292 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12293 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12294 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12295 * config/i386/i386.c (ix86_return_pops_args): Make static.
12296 Constify arguments.
12297 (TARGET_RETURN_POPS_ARGS): Define.
12298 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12299 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
12300 (TARGET_RETURN_POPS_ARGS): Define.
12301 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12302 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
12303 (TARGET_RETURN_POPS_ARGS): Define.
12305 2010-06-29 Richard Guenther <rguenther@suse.de>
12307 PR middle-end/44667
12308 * tree-inline.c (initialize_inlined_parameters): Make sure
12309 to remap the inlined parameter variable substitutions types.
12311 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
12313 PR rtl-optimization/44659
12314 * combine.c (make_compound_operation) <SUBREG>: Do not return the
12315 result of force_to_mode if it partially re-expanded the compound.
12317 2010-06-28 Jan Hubicka <jh@suse.cz>
12319 PR middle-end/44671
12320 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12323 2010-06-28 Anatoly Sokolov <aesok@post.ru>
12325 * double-int.h (force_fit_type_double): Remove declaration.
12326 * double-int.c (force_fit_type_double): Move to tree.c.
12327 * tree.h (force_fit_type_double): Declare.
12328 * tree.h (force_fit_type_double): Moved from double-int.c. Use
12329 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12330 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12331 * convert.c (convert_to_pointer): Adjust call to
12332 force_fit_type_double.
12333 * tree-vrp.c (extract_range_from_assert,
12334 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12335 * fold-const.c: Update comment.
12336 (int_const_binop, fold_convert_const_int_from_int,
12337 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12338 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12339 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12340 round_up_loc): Adjust call to force_fit_type_double.
12342 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12344 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12346 2010-06-28 Martin Jambor <mjambor@suse.cz>
12348 * tree-sra.c (convert_callers): New parameter, change fndecls of
12350 (modify_function): Pass the old decl to convert_callers.
12352 2010-06-28 Martin Jambor <mjambor@suse.cz>
12354 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12355 ipa_check_create_node_params and ipa_initialize_node_params with
12356 checking asserts they are not necessary.
12358 2010-06-28 Jan Hubicka <jh@suse.cz>
12360 PR tree-optimization/44687
12361 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12363 2010-06-28 Martin Jambor <mjambor@suse.cz>
12366 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12367 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12368 instead of BINFO_BASE_BINFO.
12370 2010-06-28 Michael Matz <matz@suse.de>
12372 PR middle-end/44592
12373 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12374 proper VDEF chain for intermediate stores in the sequence.
12376 2010-06-28 Jan Hubicka <jh@suse.cz>
12378 PR tree-optimization/44357
12379 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12380 uninlinable functions.
12382 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12384 * config.gcc (powerpc*-*-*): Handle titan.
12385 * config/rs6000/rs6000.c (titan_cost): New costs.
12386 (rs6000_override_options): Add "titan" to processor_target_table.
12387 Add Titan to branch alignment logic.
12388 Correctly set rs6000_cost for titan.
12389 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
12390 * config/rs6000/titan.md: New file.
12391 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12393 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
12395 * tree-browser.c (TB_history_stack): Convert to a VEC.
12396 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12397 (TB_history_prev): Likewise.
12399 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
12401 * vec.h (vec_heap_free): Add parentheses around free.
12403 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
12405 * system.h: Poison GCC_EXCEPT_H for front-end files.
12407 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12409 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12410 Define to NULL by default.
12411 * except.h: Define GCC_EXCEPT_H.
12412 (doing_eh): Remove prototype.
12413 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12414 (lang_protect_cleanup_actions): Remove.
12415 * except.c (lang_protect_cleanup_actions): Remove.
12416 (doing_eh): Remove.
12417 (gen_eh_region): Don't check doing_eh here.
12418 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12419 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12420 instead of lang_protect_cleanup_actions.
12421 * omp-low.c (maybe_catch_exception): Likewise.
12422 * Makefile.in: Update dependencies.
12424 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
12426 * cgraph.h (struct varpool_node): new used_from_object_file flag.
12427 (struct cgraph_local_info): new used_from_object_file flag.
12428 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12429 (cgraph_clone_node): initialize used_from_object_file.
12430 (cgraph_create_virtual_clone): initialize used_from_object_file.
12431 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12432 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12433 when compiling with -fwhole-program.
12434 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12436 * ipa.c (function_and_variable_visibility): Set externally_visible
12437 flag of varpool_node if used_from_object_file flag is set.
12438 (cgraph_externally_visible_p): check used_from_object_file flag.
12439 * doc/invoke.texi (-fwhole-program option): Change description of
12440 externally_visible attribute accordingly.
12441 * doc/extend.texi (externally_visible): Ditto.
12443 2010-06-27 Jan Hubicka <jh@suse.cz>
12445 * params.def (max-inline-insns-auto): Default to 40.
12446 * doc/invoke.texi (max-inline-insns-auto): Document the change.
12448 2010-06-27 Jan Hubicka <jh@suse.cz>
12450 PR middle-end/44671
12451 PR middle-end/44686
12452 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12454 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12455 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12457 2010-06-27 Anatoly Sokolov <aesok@post.ru>
12459 * target.h (struct gcc_target): Add register_move_cost field.
12460 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12461 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12462 * targhooks.c (default_register_move_cost): New function.
12463 * targhooks.h (default_register_move_cost): Declare function.
12464 * defaults.h (REGISTER_MOVE_COST): Delete.
12465 * ira-int.h (ira_register_move_cost): Update comment.
12466 * ira.c (ira_register_move_cost): Update comment.
12467 * reload.h (register_move_cost): Declare.
12468 * reginfo.c (register_move_cost): New function.
12469 (move_cost): Update comment.
12470 (init_move_cost, memory_move_secondary_cost): Replace
12471 REGISTER_MOVE_COST with register_move_cost.
12472 * postreload.c (reload_cse_simplify_set): (Ditto.).
12473 * reload.c (find_valid_class, find_reloads): (Ditto.).
12474 * reload1.c (choose_reload_regs): (Ditto.).
12475 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
12476 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
12477 * doc/md.texi (can_create_pseudo_p): Update documentation.
12479 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12480 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12481 * config/i386/i386.h (ix86_memory_move_cost): Make static.
12482 (TARGET_MEMORY_MOVE_COST): Define.
12484 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12485 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
12486 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
12487 (TARGET_MEMORY_MOVE_COST): Define.
12489 2010-06-27 Richard Guenther <rguenther@suse.de>
12491 PR tree-optimization/44683
12492 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
12493 false edge from the inverted condition.
12495 2010-06-27 Richard Guenther <rguenther@suse.de>
12497 PR middle-end/44684
12498 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
12499 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
12500 for register LHS. Or non-store assignments.
12502 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
12504 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
12505 (sparc_emit_set_const64): Likewise. Remove disabled code.
12506 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
12507 (sparc_emit_set_const64): Likewise.
12509 2010-06-26 Catherine Moore <clm@codesourcery.com>
12511 * config/mips/mips.md (alu_type): New attribute.
12512 (type): Infer type from alu_type.
12513 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
12514 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
12515 *subsi3_extended, negsi2, negdi2, *low<mode>,
12516 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
12517 xor<mode>3, *nor<mode>3,
12518 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
12519 *zero_extendhi_truncqi): Set alu_type instead of type.
12521 2010-06-26 Douglas B Rupp <rupp@gnat.com>
12523 * config/alpha/alpha.c (alpha_need_linkage): Adjust
12524 splay_tree_new_ggc call.
12525 (alpha_use_linkage): Likewise.
12527 2010-06-26 Joseph Myers <joseph@codesourcery.com>
12529 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
12530 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
12531 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
12532 (static_specs): Remove switches_need_spaces.
12533 (process_command, do_self_spec): Hardcode handling "-o" instead of
12534 checking switches_need_spaces.
12535 * system.h (SWITCHES_NEED_SPACES): Poison.
12537 2010-06-26 Richard Guenther <rguenther@suse.de>
12539 PR tree-optimization/44393
12540 * tree-loop-distribution.c (generate_loops_for_partition): Fix
12541 stmt removal and VOP renaming.
12542 (generate_memset_zero): Remove redundant stmt updating.
12543 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
12544 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
12546 2010-06-26 Jan Hubicka <jh@suse.cz>
12548 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
12549 edges comming from header are equivalent.
12550 (visit_bb): Handle PHIs correctly.
12551 * tree-inline.c (copy_phis_for_bb): Be able to copy
12552 PHI from entry edge.
12553 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
12555 2010-06-26 Richard Guenther <rguenther@suse.de>
12557 PR middle-end/44674
12558 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
12559 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
12561 2010-06-26 Joseph Myers <joseph@codesourcery.com>
12563 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
12564 add_infile, alloc_switch): New.
12565 (process_command): Remove variable lang_n_infiles. Process
12566 options in a single pass. Use new functions for allocating
12567 infiles and switches arrays. Properly skip operands of
12568 -Xpreprocessor and -Xassembler.
12570 2010-06-26 Jan Hubicka <jh@suse.cz>
12572 PR middle-end/44671
12573 * cgraphunit.c (cgraph_function_versioning): Remove wrong
12574 cgraph_make_decl_local call; fix typo copying RTL data.
12576 2010-06-25 DJ Delorie <dj@redhat.com>
12578 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
12579 (m32c_output_aligned_common): Likewise.
12580 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
12581 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
12582 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
12583 (m32c_register_pragmas): Register it.
12584 * config/m32c/m32c.c (m32c_get_pragma_address): New.
12585 (m32c_insert_attributes): Set #pragma address decls volatile.
12586 (pragma_entry_eq): New.
12587 (pragma_entry_hash): New.
12588 (m32c_note_pragma_address): New.
12589 (m32c_get_pragma_address): New.
12590 (m32c_output_aligned_common): New.
12591 * doc/extend.texi: Document the new pragma.
12593 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
12595 * config/m32c/predicates.md (m32c_any_operand): Check the code
12596 instead of memory_operand so as to allow matching volatile MEMs.
12597 (m32c_nonimmediate_operand): Likewise.
12598 (mra_operand): Allow volatiles.
12600 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
12603 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
12604 address if the offset is unknown.
12606 2010-06-25 Douglas B Rupp <rupp@gnat.com>
12608 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
12609 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
12610 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
12611 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
12612 to ia64_start_function. Invoke it.
12613 * config/ia64/ia64.c (ia64_start_function): Call new function
12614 dwarf2out_vms_debug_main_pointer.
12616 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12618 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
12619 statements computing the true predicate.
12621 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12623 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
12624 to boolean_true_node.
12625 (reset_bb_predicate): New.
12626 (predicate_bbs): Call reset_bb_predicate.
12628 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12630 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
12631 (tree_if_conversion): Returns true when something has been changed.
12632 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
12635 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
12637 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
12638 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
12639 * tree-if-conv.c: Include dbgcnt.h.
12640 (tree_if_conversion): Use if_conversion_tree to count the number of
12641 if-convertible loops.
12643 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
12645 * common.opt (fprefetch-loop-arrays): Re-define
12646 -fprefetch-loop-arrays as a tri-state option with the initial
12648 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
12649 pass only when flag_prefetch_loop_arrays > 0.
12650 * toplev.c (process_options): Note that, with tri-states,
12651 flag_prefetch_loop_arrays>0 means prefetching is enabled.
12652 * config/i386/i386.c (override_options): Enable prefetching at -O3
12653 for a set of CPUs that sw prefetching is helpful.
12654 (software_prefetching_beneficial_p): New. Return TRUE if software
12655 prefetching is beneficial for the given CPU.
12657 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
12659 PR rtl-optimization/44326
12660 * implicit-zee.c (find_removable_zero_extends): Replace
12661 INSN_P with NONDEBUG_INSN_P.
12663 2010-06-25 Martin Jambor <mjambor@suse.cz>
12665 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
12666 (struct ipa_node_params): Removed the modification_analysis_done flag.
12667 (ipa_is_param_modified): Removed.
12668 (ipa_analyze_node): Declare.
12669 (ipa_compute_jump_functions): Remove declaration.
12670 (ipa_count_arguments): Likewise.
12671 (ipa_detect_param_modifications): Likewise.
12672 (ipa_analyze_params_uses): Likewise.
12673 * ipa-prop.c (struct param_analysis_info): New type.
12674 (visit_store_addr_for_mod_analysis): Removed.
12675 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
12676 moved down in the file.
12677 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
12678 (ipa_count_arguments): Made static.
12679 (mark_modified): New function.
12680 (is_parm_modified_before_call): New function.
12681 (compute_pass_through_member_ptrs): New parameter parms_info, call
12682 is_parm_modified_before_call instead of ipa_is_param_modified.
12683 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
12684 it to compute_pass_through_member_ptrs.
12685 (ipa_compute_jump_functions): New parameter parms_info, pass it to
12686 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
12687 on the callee if it is analyzed. Made static.
12688 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
12689 is_parm_modified_before_call instead of ipa_is_param_modified.
12690 (ipa_analyze_call_uses): New parameter parms_info, pass it to
12691 ipa_analyze_indirect_call_uses.
12692 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
12693 ipa_analyze_call_uses.
12694 (ipa_analyze_params_uses): New parameter parms_info, pass it to
12695 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
12696 (ipa_analyze_node): New function.
12697 (ipa_print_node_params): Do not dump the modified flag.
12698 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
12699 it. Do not stream the modified parameter flag.
12700 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
12701 it. Do not stream the modified parameter flag.
12702 * ipa-cp.c (ipcp_analyze_node): Removed.
12703 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
12704 with only a call to ipa_analyze_node.
12705 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
12706 node with only a call to ipa_analyze_node.
12708 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12710 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
12712 2010-06-25 Jan Hubicka <jh@suse.cz>
12714 * tree-pass.h (pass_split_functions): Declare.
12715 * opts.c (decode_options): Enable function splitting at -O2
12716 * timevar.def (TV_IPA_FNSPLIT): New macro.
12717 * ipa-split.c: New file.
12718 * common.opt (-fpartial-inlining): New flag.
12719 * Makefile.in (ipa-split.o): New object file.
12720 * passes.c (init_optimization_passes): Add ipa-split.
12721 * params.def (partial-inlining-entry-probability): New parameters.
12722 * doc/invoke.texi (-fpartial-inlining): New.
12724 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12727 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
12728 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
12729 (gimplify_expr): Likewise.
12731 2010-06-25 Martin Jambor <mjambor@suse.cz>
12733 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
12734 statements instead of bailing out on them.
12735 (ipa_analyze_indirect_call_uses): Do not require that loads from the
12736 parameter are in the same BB as the condition. Update comments.
12738 2010-06-25 Jakub Jelinek <jakub@redhat.com>
12740 PR middle-end/43866
12741 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
12742 true or always false, return NULL_TREE.
12743 (tree_unswitch_single_loop): Optimize conditions even when reaching
12744 max-unswitch-level parameter. If num > 0, optimize first all conditions
12745 using entry checks, then do still reachable block discovery and consider
12746 only conditions in still reachable basic blocks in the loop.
12748 PR tree-optimization/44539
12749 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
12750 the call doesn't have LHS, but has VDEF.
12752 2010-06-25 Joseph Myers <joseph@codesourcery.com>
12754 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
12755 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
12756 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
12757 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
12758 * system.h (MODIFY_TARGET_NAME): Poison.
12760 2010-06-25 Alan Modra <amodra@gmail.com>
12762 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
12763 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
12764 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12765 CMODEL_LARGE as default.
12766 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
12767 (offsettable_ok_by_alignment): Delete.
12768 (rs6000_emit_move): Remove mcmodel=medium optimization.
12770 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
12772 With large parts from Jim Wilson:
12774 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
12775 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12776 * optabs.c (optab_for_tree_code): Likewise.
12777 (expand_widen_pattern_expr): Likewise.
12778 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
12779 out of execute_optimize_widening_mul.
12780 (convert_plusminus_to_widen): New function.
12781 (execute_optimize_widening_mul): Use the two new functions.
12782 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
12783 Remove code to generate widening multiply-accumulate. Add support
12784 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12785 * gimple-pretty-print.c (dump_ternary_rhs): New function.
12786 (dump_gimple_assign): Call it when appropriate.
12787 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
12788 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
12789 (expand_gimple_stmt_1): Likewise.
12790 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
12791 WIDEN_MULT_MINUS_EXPR.
12792 * tree-ssa-operands.c (get_expr_operands): Likewise.
12793 * tree-inline.c (estimate_operator_cost): Likewise.
12794 * gimple.c (extract_ops_from_tree_1): Renamed from
12795 extract_ops_from_tree. Add new arg for a third operand; fill it.
12796 (gimple_build_assign_stat): Support operations with three operands.
12797 (gimple_build_assign_with_ops_stat): Likewise.
12798 (gimple_assign_set_rhs_from_tree): Likewise.
12799 (gimple_assign_set_rhs_with_ops_1): Renamed from
12800 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
12801 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
12802 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
12803 WIDEN_MULT_MINUS_EXPR.
12804 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
12805 (extract_ops_from_tree_1): Adjust declaration.
12806 (gimple_assign_set_rhs_with_ops_1): Likewise.
12807 (gimple_build_assign_with_ops): Pass NULL for last operand.
12808 (gimple_build_assign_with_ops3): New macro.
12809 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
12810 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
12812 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
12813 (verify_gimple_assign): Call it.
12814 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
12815 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
12816 functions for dealing with three-operand statements.
12817 * tree.c (commutative_ternary_tree_code): New function.
12818 * tree.h (commutative_ternary_tree_code): Declare it.
12819 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
12820 ternary statements.
12821 (gimple_assign_nonzero_warnv_p): Likewise.
12822 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
12823 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
12824 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
12825 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
12826 (struct hashtable_expr): New member ternary in the union.
12827 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
12828 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
12829 (iterative_hash_hashable_expr): Likewise.
12830 (print_expr_hash_elt): Handle EXPR_TERNARY.
12831 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
12832 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
12833 statements. Handle GIMPLE_TERNARY_RHS.
12835 2010-06-25 Jan Hubicka <jh@suse.cz>
12837 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
12839 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
12842 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
12843 parameters are not good.
12844 (c_parser_parameter_declaration): Error unknown type name if the type
12845 name can't start declaration specifiers.
12847 2010-06-25 Joseph Myers <joseph@codesourcery.com>
12849 * gcc.c (translate_options): Don't mention +e in comment.
12850 (process_command): Don't handle +e specially.
12852 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
12854 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
12856 * ira-build.c (merge_hard_reg_conflicts): New function.
12857 (create_cap_allocno, copy_info_to_removed_store_destinations,
12858 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
12859 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
12860 (remove_unnecessary_allocnos, remove_low_level_allocnos)
12861 copy_nifo_to_removed_store_destination): Use them.
12862 * ira-lives.c (make_hard_regno_born): New function, split out of
12864 (make_allocno_born): Likewise.
12865 (make_hard_regno_dead): New function, split out of make_regno_dead.
12866 (make_allocno_dead): Likewise.
12867 (inc_register_pressure): New function, split out of set_allocno_live.
12868 (dec_register_pressure): New function, split out of clear_allocno_live.
12869 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
12870 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
12871 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
12872 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
12873 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
12874 mark_pseudo_regno_live.
12875 (process_bb_node_lives): Use mark_pseudo_regno_live,
12876 make_hard_regno_born and make_allocno_dead.
12877 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
12878 set_allocno_live, clear_allocno_live): Delete functions.
12880 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
12881 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
12883 (ira_flattening): Use ira_parent_allocno.
12884 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
12885 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
12887 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
12890 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
12891 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
12892 minmax_set_iter_cond, minmax_set_iter_next,
12893 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
12894 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
12895 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
12896 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
12899 * ira-int.h (struct live_range, live_range_t): Renamed from struct
12900 ira_allocno_live_range and allocno_live_range_t; all uses changed.
12901 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
12904 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
12906 * thumb2.md (thumb2_tlobits_cbranch): Delete.
12907 (peephole2 to convert zero_extract/compare of single bit to
12908 lshift/compare): New.
12910 2010-06-24 Anatoly Sokolov <aesok@post.ru>
12912 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
12913 recursive call and call to 'int_const_binop'.
12914 (build_range_check, fold_cond_expr_with_comparison, unextend,
12915 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
12916 multiple_of_p): Adjust call to const_binop.
12918 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
12920 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
12921 determine size of XFmode operand.
12922 (XFmode extended DFmode push splitter): Ditto.
12923 (XFmode extended SFmode push splitter): Ditto.
12925 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
12928 * config/i386/i386.md (extract_code): New.
12929 (<u>divmodqi4): Likewise.
12930 (divmodhiqi3): Likewise.
12931 (udivmodhiqi3): Likewise.
12932 (<u>divqi3): Remvoved.
12934 2010-06-24 Jakub Jelinek <jakub@redhat.com>
12936 PR middle-end/44492
12937 * recog.h (struct recog_data): Add is_asm field.
12938 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
12939 present in constraints of inline-asm operand and memory operand
12940 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
12941 (extract_insn): Initialize recog_data.is_asm.
12942 * doc/md.texi (Constraints): Document operand side-effect rules.
12944 2010-06-24 Andi Kleen <ak@linux.intel.com>
12946 * c-parser.c (c_parser_conditional_expression): Call
12947 warn_for_omitted_condop.
12948 * doc/invoke.texi: Document omitted condop warning.
12950 2010-06-24 Nick Clifton<nickc@redhat.com>
12952 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
12953 insn in the sequence is a jump insn before setting its label.
12955 2010-06-24 Alan Modra <amodra@gmail.com>
12957 * collect2.c (main): Match exactly --version and --help.
12959 2010-06-24 DJ Delorie <dj@redhat.com>
12961 * config/m32c/m32c-pragma.c: Don't include rtl.h.
12963 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
12965 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
12966 using X87MODEF mode iterator.
12967 (pushsf splitter): Macroize splitter using P mode iterator.
12968 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
12971 (*movxf_internal): Rename from *movxf_integer.
12972 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
12973 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
12974 (*movdf_internal): Rename from *movdf_integer.
12975 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
12976 (*movsf_internal): Rename from *movdf_1.
12978 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
12980 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
12981 (const_gimple_seq_node): Removed typedefs.
12983 * gimple.h (gimple_seq_node_d, gimple_seq_node)
12984 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
12986 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
12988 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
12989 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
12990 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
12991 and CODE_FOR_vec_extract_lo_v4df.
12993 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
12994 Changed to define_insn_and_split.
12995 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
12996 (vec_extract_lo_v16hi): Likewise.
12997 (vec_extract_lo_v32qi): Likewise.
12998 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
12999 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13001 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
13004 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13005 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13006 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13007 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13008 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13011 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13014 * df-core.c (struct df): Rename to df_d.
13015 * df.h (struct df): Likewise.
13016 * dse.h (struct df): Remove forward declaration.
13017 * recog.h (struct insn_data): Rename to:
13018 (struct_insn_data_d). Adjusted all users.
13020 2010-06-23 Arnaud Charlet <charlet@adacore.com
13023 * doc/install.texi: Update requirements to build GNAT.
13025 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
13027 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13029 (m68k_sched_attr_opx_type): Remove unreachable return.
13030 (m68k_sched_attr_opy_type): Likewise.
13031 (m68k_sched_attr_size): Likewise.
13032 (sched_get_opxy_mem_type): Likewise.
13033 (m68k_sched_attr_op_mem): Likewise.
13035 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
13037 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13038 new statement and adjust VDEF only if necessary. Remove superfluous
13039 call to maybe_clean_or_replace_eh_stmt.
13040 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13042 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13043 * tree-inline.c (copy_bb): ...and not there.
13045 2010-06-22 Cary Coutant <ccoutant@google.com>
13047 * dwarf2out.c (is_nested_in_subprogram): New function.
13048 (should_move_die_to_comdat): Use it.
13049 (copy_ancestor_tree): Don't mark DIEs here.
13050 (copy_decls_walk): Start walk from root of newly-added tree;
13051 mark DIEs here instead.
13053 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
13055 * config/i386/i386.md (unit): Also check sseishft1.
13057 2010-06-22 Jan Hubicka <jh@suse.cz>
13059 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13062 2010-06-22 Jan Hubicka <jh@suse.cz>
13064 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13065 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13066 Return true if something changed.
13067 * df.h (df_confluence_function_n): Return bool.
13068 * df-core.c (df_worklist_propagate_forward,
13069 df_worklist_propagate_backward): Track changes and ages.
13070 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13072 * dse.c (dse_confluence_n): Return always true.
13074 2010-06-22 Jan Hubicka <jh@suse.cz>
13076 * bitmap.c (bitmap_clear_bit): Micro optimize.
13078 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
13080 * config/i386/i386.md (SWI1248x): New mode iterator.
13085 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13086 SWI1248x mode iterator.
13087 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13088 using SWI124 mode iterator.
13089 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13091 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
13092 *pushdi2_prologue_rex64 using P mode iterator.
13093 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13094 using SWI48 mode iterator.
13095 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13096 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13097 using SWI1248x mode iterator.
13098 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13099 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13100 SWI48 mode iterator.
13101 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13103 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13104 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13105 SWI12 mode iterator.
13106 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13107 SWI12 mode iterator.
13108 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13109 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13110 SWI24 mode iterator.
13111 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13112 SWI48 mode iterator.
13113 (mov<mode>_insn_1): New expander.
13114 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13115 using SWI48x mode iterator.
13117 (*movoi_internal_avx): Rename from *movoi_internal.
13118 (*movti_internal_rex64): Rename from *movti_rex64.
13119 (*movti_internal_sse): Rename from *movti_sse.
13120 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13121 (*movdi_internal): Rename from *movdi_2.
13122 (*movsi_internal): Rename from *movsi_1.
13123 (*movhi_internal): Rename from *movhi_1.
13124 (*movqi_internal): Rename from *movqi_1.
13126 (insv): Update the call to gen_movsi_insv_1 for rename.
13127 * config/i386/i386.c (promote_duplicated_reg): Ditto.
13129 2010-06-22 Jan Hubicka <jh@suse.cz>
13131 * passes.c (execute_function_todo): Move call of statistics_fini_pass
13133 (execute_todo) ... this one.
13135 2010-06-22 Alan Modra <amodra@gmail.com>
13138 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13139 * caller-save.c (insert_restore, insert_save): Use non-validate
13140 form of adjust_address.
13142 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13145 * config/pa/pa.c (override_options): Disable
13146 -freorder-blocks-and-partition.
13148 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
13151 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13153 * config/i386/i386.md (type): Add sseishft1
13155 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13156 (ppro_insn_load): Likewise.
13157 (ppro_insn_store): Likewise.
13158 (ppro_insn_both): Likewise.
13160 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13161 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13163 (*vec_extractv2di_1_avx): Likewise.
13164 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13165 type. Remove atom_unit.
13166 (*vec_extractv2di_1_sse2): Likewise.
13168 2010-06-21 DJ Delorie <dj@redhat.com>
13170 * diagnostic.h (diagnostic_classification_change_t): New.
13171 (diagnostic_context): Add history and push/pop list.
13172 (diagnostic_push_diagnostics): Declare.
13173 (diagnostic_pop_diagnostics): Declare.
13174 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13175 from pragmas in a history chain instead of the global table.
13176 (diagnostic_push_diagnostics): New.
13177 (diagnostic_pop_diagnostics): New.
13178 (diagnostic_report_diagnostic): Scan history chain to find state
13179 of diagnostics as of the diagnostic location.
13180 * opts.c (set_option): Pass UNKNOWN_LOCATION to
13181 diagnostic_classify_diagnostic.
13182 (enable_warning_as_error): Likewise.
13183 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13184 use in the history chain.
13185 * doc/extend.texi: Document pragma GCC diagnostic changes.
13187 2010-06-21 Jakub Jelinek <jakub@redhat.com>
13189 * dwarf2out.c (add_linkage_name): New function. Don't add
13190 anything to DW_TAG_member DIEs.
13191 (add_name_and_src_coords_attributes): Use it.
13192 (gen_variable_die): Call it for C++ static data members if
13193 specification is DW_TAG_member.
13195 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13196 C++ char16_t and char32_t.
13198 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13199 * genattrtab.c: Include vecprim.h.
13200 (cached_attrs, cached_attr_count, attrs_seen_once,
13201 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13202 attrs_cached_after): New variables.
13203 (find_attrs_to_cache): New function.
13204 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13205 (write_test_expr): Add attrs_cached argument, return it too,
13206 attempt to cache non-const attributes used more than once in
13207 a single case handling.
13208 (write_attr_get): Use find_attrs_to_cache, for caching candidates
13209 emit cached_* variables. Adjust write_attr_set callers.
13210 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13211 to find attributes that should be cached in this block. Adjust
13212 write_test_expr callers.
13213 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
13215 (make_automaton_attrs): Adjust write_test_expr caller.
13217 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13218 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13219 (make_automaton_attrs): If find_tune_attr returns non-NULL,
13220 write separate internal_dfa_insn_code_* and insn_default_latency_*
13221 functions for each attribute's value and emit init_sched_attrs
13222 function and function pointers.
13223 * genattr.c (const_attrs, reservations): New variables.
13224 (gen_attr): Add const attributes to const_attrs vector.
13225 (check_tune_attr, find_tune_attr): New functions.
13226 (main): Add reservations to reservations vector. If find_tune_attr
13227 returns true, add prototype for init_sched_attrs and make
13228 internal_dfa_insn_code and insn_default_latency function pointers,
13229 otherwise define init_sched_attrs as dummy macro.
13230 * cfgexpand.c: Include insn-attr.h.
13231 (gimple_expand_cfg): Call init_sched_attrs.
13233 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13236 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13237 va_arg from a set of register save slots into a temporary,
13238 if the container is bigger than type size, do the copying
13239 using smaller mode or using memcpy.
13242 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13244 (sel_print_to_dot): Remove macro.
13245 (sel_print): Likewise. New prototype.
13246 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13247 (sel_print): New function.
13249 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13251 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13252 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13254 2010-06-21 Nick Clifton <nickc@redhat.com>
13256 * config/rx/rx.h (PTRDIFF_TYPE): Define.
13257 (SMALL_REGISTER_CLASS): Define (to zero).
13258 (PRINT_OPERAND): Delete.
13259 (PRINT_OPERAND_ADDRESS): Delete.
13260 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13261 (rx_print_operand_address): Delete prototype.
13262 * config/rx/rx.c (rx_print_operand): Make static.
13263 Allow %H and %L to handle CONST_DOUBLEs.
13264 (rx_print_operand_address): Make static.
13265 (rx_gen_move_template): Rename local variable 'template' to
13267 (rx_function_arg): Do not pass unknown sized objects in registers.
13268 (TARGET_PRINT_OPERAND): Define.
13269 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13271 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13273 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13275 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
13277 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13278 stack-alignment for simple leaf-functions.
13280 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13282 * doc/install.texi: Document bootstrap-lto.
13284 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13287 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13288 (input_function): Drop them here, if VTA is disabled.
13290 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
13293 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13295 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13296 ix86_swapped_fp_comparsion_operator instead of
13297 ix86_fp_comparison_operator.
13299 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13300 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13301 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13302 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13303 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13304 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13306 2010-06-20 Joseph Myers <joseph@codesourcery.com>
13309 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13310 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13311 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13312 (decode_cmdline_option): Update for this return value. Set
13313 orig_option_with_args_text field. Set arg field for unknown
13314 options. Make static.
13315 (decode_cmdline_options_to_array): New.
13316 (prune_options): Update handling of find_opt return value.
13317 * opts.c (read_cmdline_option): Take decoded option. Return void.
13318 (read_cmdline_options): Take decoded options.
13319 (decode_options): Add parameters for decoded options. Use
13320 decode_cmdline_options_to_array. Use decoded options for -O
13321 scan. Use integral_argument for -O parameters. Update call to
13322 read_cmdline_options.
13323 (enable_warning_as_error): Update handling of find_opt return value.
13324 * opts.h: Update comment on unknown options.
13325 (struct cl_decoded_option): Update comments on opt_index and arg.
13326 Add orig_option_with_args_text.
13327 (decode_cmdline_option): Remove.
13328 (decode_cmdline_options_to_array): Declare.
13329 (decode_options): Update prototype.
13330 * toplev.c (save_argv): Remove.
13331 (save_decoded_options, save_decoded_options_count): New.
13332 (read_integral_parameter): Remove.
13333 (print_switch_values): Use decoded options.
13334 (toplev_main): Don't set save_argv. Update call to decode_options.
13335 * toplev.h (read_integral_parameter): Remove.
13336 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13338 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
13341 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13343 * constraints.md (Pw, Px): New constraints.
13344 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13346 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
13348 * config/i386/sse.md (fma4modesuffixf4): Removed.
13349 (ssemodesuffixf2s): Likewise.
13350 (ssemodesuffixf4): Likewise.
13351 (ssemodesuffixf2c): Likewise.
13352 (ssescalarmodesuffix2s): Likewise.
13353 (avxmodesuffixf2c): Likewise.
13354 (ssemodesuffix): New.
13355 (ssescalarmodesuffix): Likewise.
13356 Update patterns with ssemodesuffix and ssescalarmodesuffix.
13358 2010-06-19 Philip Herron <herron.philip@googlemail.com>
13360 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13362 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
13364 * stor-layout.c (debug_rli): Remove unused local variables.
13366 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
13368 PR rtl-optimization/40900
13369 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
13370 original expression for later reuse.
13371 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13372 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13374 2010-06-18 Anatoly Sokolov <aesok@post.ru>
13376 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13377 double_int_fits_in_uhwi_p): Implement as static inline.
13378 (double_int_xor): New inline function.
13379 (double_int_lrotate, double_int_rrotate, double_int_max,
13380 double_int_umax, double_int_smax, double_int_min, double_int_umin,
13381 double_int_smin): Declare.
13382 (lrotate_double, rrotate_double): Remove declaration.
13383 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13384 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13385 (double_int_lrotate, double_int_rrotate, double_int_max,
13386 double_int_umax, double_int_smax, double_int_min, double_int_umin,
13387 double_int_smin): New function.
13388 * fold-const.c (int_const_binop): Clean up, use double_int_*
13390 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13391 double_int_* and immed_double_int_const functions.
13393 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
13395 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13396 * function.c (types_used_by_cur_var_decl): Likewise.
13397 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13399 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
13401 * tree.h (record_layout_info): Change type of pending_statics field
13403 * stor-layout.c (start_record_layout): Store NULL into
13405 (debug_rli): Call debug_vec_tree instead of debug_tree.
13406 (place_field): Likewise.
13407 (finish_record_layout): Likewise.
13409 2010-06-18 Alan Modra <amodra@gmail.com>
13411 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13413 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13416 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13417 for SET source operand from SET destination operand.
13419 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
13421 PR rtl-optimization/39871
13422 * reload1.c (init_eliminable_invariants): For flag_pic, disable
13423 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13424 (function_invariant_p): Rule out a plus of frame or arg pointer with
13426 * ira.c (find_reg_equiv_invariant_const): Likewise.
13428 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
13430 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13431 print_operand_address and puts to output the operand for CONST.
13433 2010-06-17 Jakub Jelinek <jakub@redhat.com>
13436 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13439 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13441 * v850-protos.h (print_operand): Delete.
13442 (print_operand_address): Delete.
13443 * v850.h (PRINT_OPERAND): Delete.
13444 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13445 (PRINT_OPERAND_ADDRESS): Delete.
13446 * v850.c (print_operand_address): Rename to...
13447 (v850_print_operand_address): ...this. Make static. Call
13448 v850_print_operand.
13449 (print_operand): Rename to...
13450 (v850_print_operand): ...this. Make static. Call
13451 v850_print_operand_address.
13452 (v850_print_operand_punct_valid_p): New function.
13453 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13454 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13456 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13458 * config/sh/sh-protos.h (print_operand): Delete.
13459 (print_operand_address): Delete.
13460 * config/sh/sh.h (PRINT_OPERAND): Delete.
13461 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13462 (PRINT_OPERAND_ADDRESS): Delete.
13463 * config/sh/sh.c (sh_print_operand_address): Make static.
13464 (sh_print_operand): Make static. Call sh_print_operand_address
13465 and sh_print_operand.
13466 (sh_print_operand_punct_valid_p): New function.
13467 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13468 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13470 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13472 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
13473 (mcore_print_operand_address): Delete.
13474 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
13475 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13476 (PRINT_OPERAND_ADDRESS): Delete.
13477 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
13478 (mcore_print_operand): Make static.
13479 (mcore_print_operand_punct_valid_p): New function.
13480 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
13481 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13483 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13485 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
13486 (print_operand_address): Delete.
13487 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
13488 (PRINT_OPERAND_ADDRESS): Delete.
13489 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
13491 (m68hc11_print_operand): Make static.
13492 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13494 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13496 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
13497 (m32r_print_operand_address): Delete.
13498 * config/m32r/m32r.h (m32r_punct_chars): Delete.
13499 (PRINT_OPERAND): Delete.
13500 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13501 (PRINT_OPERAND_ADDRESS): Delete.
13502 * config/m32r/m32r.c (m32r_punct_chars): Make static.
13503 (m32r_print_operand_address): Make static.
13504 (m32r_print_operand): Make static.
13505 (m32r_print_operand_punct_valid_p): New function.
13506 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13507 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13509 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13511 * config/iq2000/iq2000-protos.h (print_operand): Delete.
13512 (print_operand_address): Delete.
13513 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
13514 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13515 (PRINT_OPERAND_ADDRESS): Delete.
13516 (iq2000_print_operand_punct): Delete.
13517 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
13518 (iq2000_print_operand_address): Make static.
13519 (iq2000_print_operand): Make static.
13520 (iq2000_print_operand_punct_valid_p): New function.
13521 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13522 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13524 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13526 * config/frv/frv-protos.h (frv_print_operand): Delete.
13527 (frv_print_operand_address): Delete.
13528 * config/frv/frv.h (PRINT_OPERAND): Delete.
13529 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13530 (PRINT_OPERAND_ADDRESS): Delete.
13531 * config/frv/frv.c (frv_print_operand_address): Make static.
13532 (frv_print_operand): Make static.
13533 (frv_print_operand_punct_valid_p): New function.
13534 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13535 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13537 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
13539 * tree.h (vec_member): Declare.
13540 * tree.c (vec_member): Define.
13542 2010-06-17 Richard Guenther <rguenther@suse.de>
13544 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
13545 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
13547 2010-06-17 Richard Guenther <rguenther@suse.de>
13549 * tree-inline.c (declare_return_variable): Remove bogus code.
13551 2010-06-17 Richard Guenther <rguenther@suse.de>
13553 * gimplify.c (gimplify_bind_expr): Always promote complex
13554 and vector variables to registers if possible.
13556 2010-06-17 Richard Guenther <rguenther@suse.de>
13558 * expr.c (get_inner_reference): Use double_int for bit_offset
13561 2010-06-16 DJ Delorie <dj@redhat.com>
13563 * common.opt (-fstrict-volatile-bitfields): new.
13564 * doc/invoke.texi: Document it.
13565 * fold-const.c (optimize_bit_field_compare): For volatile
13566 bitfields, use the field's type to determine the mode, not the
13568 * expr.c (expand_assignment): Likewise.
13569 (get_inner_reference): Likewise.
13570 (expand_expr_real_1): Likewise.
13571 * expmed.c (store_fixed_bit_field): Likewise.
13572 (extract_bit_field_1): Likewise.
13573 (extract_fixed_bit_field): Likewise.
13575 2010-06-16 Richard Guenther <rguenther@suse.de>
13577 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
13579 2010-06-16 Douglas B Rupp <rupp@gnat.com>
13581 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
13582 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
13583 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
13584 * debug.c: Likewise.
13585 * sdbout.c: Likewise.
13586 * vmsdbgout.c: Likewise.
13587 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
13588 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
13589 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
13590 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
13591 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
13592 * dwarf2out.c (dw_fde_struct): New fields
13593 dw_fde_vms_{end,begin}_prologue.
13594 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
13595 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
13596 (dwarf2out_vms_end_prologue): New function.
13597 (dwarf2out_vms_begin_epilogue): New function.
13598 (dw_val_struct): New value dw_val_class_vms_delta.
13599 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
13600 begin_epilogue for VMS.
13601 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
13602 new static functions.
13603 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
13604 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
13606 (print_die): New case dw_val_class_vms_delta.
13607 (attr_checksum): Likewise.
13608 (same_dw_val_p: Likewise.
13609 (size_of_die): Likewise.
13610 (value_format): Likewise.
13611 (output_die): Likewise.
13612 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
13613 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
13614 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
13615 dwarf2out_cfi_begin_epilogue
13616 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
13618 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
13620 * config/cris/cris-protos.h (cris_print_operand): Delete.
13621 (cris_print_operand_address): Delete.
13622 * config/cris/cris.h (PRINT_OPERAND): Delete.
13623 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13624 (PRINT_OPERAND_ADDRESS): Delete.
13625 * config/cris/cris.c (cris_print_operand_address): Make static.
13626 (cris_print_operand): Make static.
13627 (cris_print_operand_punct_valid_p): New function.
13628 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13629 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13631 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
13633 * config/arm/arm-protos.h (arm_print_operand): Delete.
13634 (arm_print_operand_address): Delete.
13635 * config/arm/arm.h (PRINT_OPERAND): Delete.
13636 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13637 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
13638 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
13639 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
13640 (arm_print_operand): Make static.
13641 (arm_print_operand_punct_valid_p): New function.
13642 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13643 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13645 2010-06-16 Nick Clifton <nickc@redhat.com>
13647 * config/rx/constraints.md (NEGint4): New constraint.
13648 * config/rx/rx.md (attr cc): Add set_zsc.
13649 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
13652 (call_internal): Clobber the cc0 register.
13653 (call_value_internal): Likewise.
13654 (cstoresi4): Likewise.
13655 (movsieq): Likewise.
13656 (movsine): Likewise.
13657 (addsi3): Add alternative to handle small negative constants.
13658 (sunsi3): Likewise.
13659 (addsi3): Do not set the O bit in the cc0 register.
13660 (adddi3): Likewise.
13661 (subsi3): Likewise.
13662 (subdi3): Likewise.
13663 (andsi3): Reorder alternatives to prefer shorter forms.
13664 (mulsi3): Likewise.
13665 (iorsi3): Likewise.
13666 (negsi2): Note that the cc0 flags are set.
13667 (rotlsi3): Note that only the Z and S bits are set in cc0.
13668 (lshrsi3): Likewise.
13669 (ashlsi3): Likewise.
13670 (subsf3): Use %Q for the MEM operand.
13671 (fix_truncsfsi2): Likewise.
13672 (floatsisf2): Likewise.
13673 (bitset): Remove early clobber from destination.
13674 (bitset_in_memory): Likewise.
13675 (lrintsf2): Clobber the cc0 register.
13676 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
13677 (rx_print_operand): Handle %N.
13679 2010-06-16 Jan Hubicka <jh@suse.cz>
13681 * df-core.c (df_compact_blocks): Free problem_temps vector.
13683 2010-06-16 Martin Jambor <mjambor@suse.cz>
13685 PR tree-optimization/43905
13686 * tree-sra.c: Include tree-inline.h.
13687 (create_abstract_origin): Removed.
13688 (modify_function): Version the call graph node instead of creating
13689 abstract origins and dealing with same_body aliases.
13690 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
13691 function is versionable.
13692 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
13694 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
13696 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
13697 (CHOOSE_DYNAMIC_LINKER): Update.
13699 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
13701 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
13702 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
13703 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
13704 *prefetch_3dnow_rex.
13706 2010-06-15 Anatoly Sokolov <aesok@post.ru>
13708 * target.h (struct asm_out):Add declare_constant_name field.
13709 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13710 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
13711 * output.h (default_asm_declare_constant_name): Declare.
13712 (assemble_label): Update prototype.
13713 * varasm.c (assemble_constant_contents): Use
13714 targetm.asm_out.declare_constant_name target hook.
13715 (assemble_label): Add 'file' argument.
13716 (default_asm_declare_constant_name): New function.
13717 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
13718 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
13719 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
13721 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
13722 * config/darwin.c (darwin_asm_declare_constant_name): New function.
13723 (machopic_output_indirection): Update assemble_label argument list.
13724 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
13725 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13727 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
13729 PR middle-end/44391
13730 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13731 size_one_node for pointer types. Do not call gmp_cst_to_tree.
13733 2010-06-15 Richard Guenther <rguenther@suse.de>
13735 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
13737 2010-06-15 Paul Brook <paul@codesourcery.com>
13739 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
13742 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
13744 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
13745 don't get a vector type for output.
13747 2010-06-15 Jakub Jelinek <jakub@redhat.com>
13750 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
13751 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
13752 (LANG_HOOKS_DECLS): Add it.
13753 * gimplify.c (omp_notice_variable): Call
13754 lang_hooks.decls.omp_report_decl.
13756 2010-06-15 Martin Jambor <mjambor@suse.cz>
13759 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
13760 on the newly dead SSA name.
13762 2010-06-15 Alan Modra <amodra@gmail.com>
13764 * doc/invoke.texi: Add mcmodel to powerpc options.
13765 * configure.ac: Add HAVE_LD_LARGE_TOC test.
13766 * configure: Regenerate.
13767 * config.in: Regenerate.
13768 * config/rs6000/linux64.opt (mcmodel): New.
13769 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
13770 (TARGET_CMODEL, SET_CMODEL): Define.
13771 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
13772 select CMODEL_MEDIUM default.
13773 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
13774 (TARGET_CMODEL): Define default.
13775 * config/rs6000/rs6000.c (cmodel): New variable.
13776 (rs6000_explicit_options): Add cmodel field.
13777 (rs6000_handle_option): Handle -mcmodel.
13778 (create_TOC_reference): Add largetoc_reg param. Generate high,
13779 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
13780 (rs6000_delegitimize_address): Recognise new toc reference rtl
13781 and minimal-toc rtl.
13782 (rs6000_legitimize_reload_address): Handle new toc references.
13783 (print_operand_address): Handle legitimate_constant_pool_address_p
13784 match before lo_sum.
13785 (rs6000_eliminate_indexed_memrefs): Tidy.
13786 (rs6000_emit_move): Tweak threshold for inlining constants.
13787 Keep rs6000_emit_allocate_stack large stack frame offsets
13788 loaded into r0 inline.
13789 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
13790 (tocrel_base, tocrel_offset): New variables.
13791 (toc_relative_expr_p): Set them here.
13792 (print_operand_address): Skip over any offset on constant pool address.
13793 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
13794 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
13795 (offsettable_ok_by_alignment): New function.
13796 (rs6000_emit_move): Address suitably aligned local symbol_refs
13797 relative to the toc pointer for -mcmodel=medium.
13798 (legitimate_constant_pool_address_p): Make param const_rtx. Add
13799 strict param. Allow lo_sum version of addressing. Verify reg
13800 used for -mminimal-toc and -mcmodel != small. Update all callers.
13801 * config/rs6000/constraints.md: Update for above change.
13802 * config/rs6000/predicates.md: Likewise.
13803 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
13805 (tls_gd): Split for -mcmodel=medium/large.
13806 (tls_gd_high, tls_gd_low): New.
13807 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
13808 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
13809 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
13810 (largetoc_high, largetoc_low): New.
13811 (cmptf_internal2): Add clobber.
13812 * config/rs6000/rs6000-protos.h: Update.
13814 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
13816 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
13817 true if no prefetch is going to be generated for a given group.
13818 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
13819 estimate the prefetch_count.
13820 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
13821 prefetch count by considering the unroll_factor and prefetch_mod
13822 for is_loop_prefetching_profitable.
13824 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
13826 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
13827 anything if the argument is not a MEM.
13829 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
13834 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
13836 (canonicalize_loop_ivs): Likewise.
13838 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
13841 * haifa-sched.c (setup_insn_reg_pressure_info,
13842 update_register_pressure): Reject debug insns.
13843 (ready_sort): Don't setup reg pressure for debug insns.
13844 (schedule_insn): Don't update reg pressure for debug insns.
13846 2010-06-14 Richard Guenther <rguenther@suse.de>
13848 * lto-streamer.c (cached_bp): Remove.
13849 (bitpack_delete): Likewise.
13850 (bitpack_create): Likewise.
13851 (bp_get_next_word): Likewise.
13852 (bp_pack_value, bp_unpack_value): Move ...
13853 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
13855 (struct bitpack_d): Likewise.
13856 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
13857 New inline functions.
13858 * lto-streamer-out.c (lto_output_bitpack): Remove.
13859 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
13860 (pack_value_fields): Adjust.
13861 (lto_write_tree): Likewise.
13862 (output_gimple_stmt): Likewise.
13863 (output_function): Likewise.
13864 * lto-streamer-in.c (input_gimple_stmt): Adjust.
13865 (input_function): Likewise.
13866 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
13867 (lto_input_bitpack): Remove.
13868 (lto_materialize_tree): Adjust.
13869 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
13870 * lto-cgraph.c (lto_output_edge): Adjust.
13871 (lto_output_node): Likewise.
13872 (lto_output_varpool_node): Likewise.
13873 (lto_output_ref): Likewise.
13874 (input_node): Likewise.
13875 (input_varpool_node): Likewise.
13876 (input_ref): Likewise.
13877 (input_edge): Likewise.
13878 (output_node_opt_summary): Likewise.
13879 (input_node_opt_summary): Likewise.
13880 * ipa-pure-const.c (pure_const_write_summary): Likewise.
13881 (pure_const_read_summary): Likewise.
13882 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
13883 (ipa_read_indirect_edge_info): Likewise.
13884 (ipa_write_node_info): Likewise.
13885 (ipa_read_node_info): Likewise.
13887 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
13890 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
13891 (vec_extract_lo_v16hi): Likewise.
13892 (vec_extract_lo_v32qi): Likewise.
13894 2010-06-14 Jakub Jelinek <jakub@redhat.com>
13897 * tree.h (build_call_expr): Don't define as vararg macro, instead
13899 * builtins.c (build_call_nofold): Remove.
13900 (expand_builtin_int_roundingfn, expand_builtin_pow,
13901 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
13902 expand_builtin_memset_args, expand_builtin_strcmp,
13903 expand_builtin_strncmp, expand_builtin_memory_chk): Use
13904 build_call_nofold_loc instead of build_call_nofold.
13905 (build_call_expr): New function.
13907 PR tree-optimization/44508
13908 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
13909 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
13910 don't eliminate trivially dead stmts.
13911 * tree-vrp.c (vrp_finalize): Pass false as last argument
13912 to substitute_and_fold.
13913 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
13914 to substitute_and_fold.
13915 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13918 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
13920 2010-06-14 Ira Rosen <irar@il.ibm.com>
13922 PR tree-optimization/44507
13923 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
13924 to build initial vector for BIT_AND_EXPR.
13925 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
13927 2010-06-14 Jakub Jelinek <jakub@redhat.com>
13929 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
13930 adjust z10prop set_attr.
13932 2010-06-13 Jan Hubicka <jh@suse.cz>
13934 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
13935 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
13936 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
13937 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
13938 datastructure checks into checking asserts.
13939 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
13940 * tree-ssa-sccvn.c (VN_INFO): Likewise.
13941 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
13942 df_ref_create_structure): Likewise.
13943 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
13944 pool_free): Use gcc_checking_assert.
13945 * alias.c (get_alias_set): Likewise.
13946 * var-tracking.c (variable_htab_free, shared_hash_copy,
13947 canonicalize_values_mark, variable_merge_over_cur): Likewise.
13948 * lto-streamer.c (bp_unpack_value): Likewise.
13950 2010-06-13 Richard Guenther <rguenther@suse.de>
13952 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
13953 Do not stream but initialize TYPE_CANONICAL to NULL.
13954 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
13955 * gimple.c (gimple_types_compatible_p): Disregard
13956 TYPE_STRUCTURAL_EQUALITY_P.
13957 (gimple_register_type): Use TYPE_CANONICAL as cache.
13958 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
13959 before registering common types.
13960 * config/i386/i386.c (ix86_function_arg_boundary): Do not
13961 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
13962 * tree.h (TYPE_CANONICAL): Clarify documentation.
13964 2010-06-13 Anatoly Sokolov <aesok@post.ru>
13966 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13967 LIBCALL_VALUE): Remove macros.
13968 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
13969 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13970 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13971 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
13972 (ia64_function_value): Make static. Handle receiving the function
13973 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
13975 2010-06-12 Jan Hubicka <jh@suse.cz>
13977 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
13980 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
13982 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
13984 2010-06-12 Jan Hubicka <jh@suse.cz>
13986 * df-core.c (df_clear_bb_info): New function.
13987 (df_set_blocks): bb_info is always allocated.
13988 (df_get_bb_info): Use block_info_elt_size.
13989 (df_set_bb_info): Likewise.
13990 (df_compact_blocks): Update for new block_info.
13991 (grow_bb_info): New function.
13992 * df-problems.c (df_grow_bb_info): Move to df-core.c
13993 (df_rd_set_bb_info): Remove.
13994 (df_rd_free_bb_info): Do not free block pool.
13995 (df_rd_alloc): Do not create pool, use check for
13996 obstack presence instead of NULL pointer for new blocks.
13997 (df_rd_free): DO not free alloc pool; clear block_info.
13998 (problem_RD): Add size of block info structure.
13999 (df_lr_set_bb_info): Remove.
14000 (df_lr_free_bb_info): Do not free block pool.
14001 (df_lr_alloc): Do not create pool, use check for
14002 obstack presence instead of NULL pointer for new blocks.
14003 (df_lr_free): DO not free alloc pool; clear block_info.
14004 (problem_LR): Add size of block info structure.
14005 (df_live_set_bb_info): Remove.
14006 (df_live_free_bb_info): Do not free block pool.
14007 (df_live_alloc): Do not create pool, use check for
14008 obstack presence instead of NULL pointer for new blocks.
14009 (df_live_free): DO not free alloc pool; clear block_info.
14010 (problem_LIVE): Add size of block info structure.
14011 (problem_CHAIN): Add size of block info structure.
14012 (df_byte_lr_set_bb_info): Remove.
14013 (df_byte_lr_free_bb_info): Do not free block pool.
14014 (df_byte_lr_alloc): Do not create pool, use check for
14015 obstack presence instead of NULL pointer for new blocks.
14016 (df_byte_lr_free): DO not free alloc pool; clear block_info.
14017 (problem_BYTE_LR): Add size of block info structure.
14018 (problem_NOTE): Add size of block info structure.
14019 (df_byte_MD_set_bb_info): Remove.
14020 (df_byte_MD_free_bb_info): Do not free block pool.
14021 (df_byte_MD_alloc): Do not create pool, use check for
14022 obstack presence instead of NULL pointer for new blocks.
14023 (df_byte_MD_free): DO not free alloc pool; clear block_info.
14024 (problem_BD): Add size of block info structure.
14025 * df-scan.c (df_scan_free_internal): Free block pool.
14026 (df_scan_set_bb_info): Remove.
14027 (df_scan_free_bb_info): Check for artificial_defs instead
14028 of bb_info being non-NULL.
14029 (df_scan_alloc): DO not create df_scan_block pool.
14030 (problem_SCAN): Set size of block info.
14031 (df_bb_refs_record): Do not allocate bb_info.
14032 * df.h (df_problem): Add block_info_elt_size.
14033 (struct dataflow): Change block_info to void *.
14034 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14035 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14036 in-line structures.
14038 2010-06-12 Jan Hubicka <jh@suse.cz>
14040 PR tree-optimize/44485
14041 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14042 containing use of return value of noreturn function.
14044 2010-06-12 Anatoly Sokolov <aesok@post.ru>
14046 * targhooks.c (default_function_value): Don't use
14047 FUNCTION_OUTGOING_VALUE.
14048 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14049 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14051 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
14053 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14054 Add crtfastmath.o to extra_parts.
14055 * config/mips/crtfastmath.c: New.
14056 * config/mips/linux.h (ENDFILE_SPEC): New.
14058 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
14060 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14061 old_type in parameter.
14062 (gcc_type_for_value): Update call to gcc_type_for_interval.
14063 (compute_type_for_level_1): Renamed compute_type_for_level.
14064 Update call to gcc_type_for_interval.
14066 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14068 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14069 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14071 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14073 * opts-common.c: Include options.h.
14074 (integral_argument): Move from opts.c.
14075 (decode_cmdline_option): New. Based on read_cmdline_option.
14076 * opts.c (integral_argument): Move to opts-common.c.
14077 (read_cmdline_option): Move most contents to
14078 decode_cmdline_option. Use %qs in diagnostics.
14079 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14080 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14081 decode_cmdline_option): New.
14083 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14086 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14087 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14088 (partiysi2_cmp): Ditto.
14089 (*partiyhi2_cmp): Ditto.
14090 (*parityqi2_cmp): Remove.
14092 2010-06-11 Jan Hubicka <jh@suse.cz>
14094 * bitmap.h (bmp_iter_next_bit): New.
14095 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14097 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
14098 Eric Botcazou <ebotcazou@adacore.com>
14100 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14103 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14105 * config/i386/i386.md (unspec): New define_c_enum.
14108 2010-06-10 Jakub Jelinek <jakub@redhat.com>
14110 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14112 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
14114 PR middle-end/44483
14115 * tree-if-conv.c (bb_predicate_s): New struct.
14116 (bb_predicate_p): New.
14117 (bb_has_predicate): New.
14118 (bb_predicate): New.
14119 (set_bb_predicate): New.
14120 (bb_predicate_gimplified_stmts): New.
14121 (set_bb_predicate_gimplified_stmts): New.
14122 (add_bb_predicate_gimplified_stmts): New.
14123 (init_bb_predicate): New.
14124 (free_bb_predicate): New.
14125 (is_predicated): Use bb_predicate.
14126 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14127 (predicate_bbs): Same. Gimplify the condition of the basic blocks
14128 before processing their successors.
14129 (clean_predicate_lists): Removed.
14130 (find_phi_replacement_condition): Use bb_predicate.
14131 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
14133 (insert_gimplified_predicates): New.
14134 (combine_blocks): Call insert_gimplified_predicates.
14135 (tree_if_conversion): Call free_bb_predicate instead of
14136 clean_predicate_lists.
14138 2010-10-11 Paul Brook <paul@codesourcery.com>
14140 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14141 * config/arm/arm.c (all_architectures): Change v7e-m default to
14143 * config/arm/arm-cores.def: Add cortex-m4.
14144 * config/arm/arm-tune.md: Regenerate.
14146 2010-06-11 Jan Hubicka <jh@suse.cz>
14148 * ipa-pure-const.c (special_builtlin_state): New function.
14149 (check_call): Use it instead of special casign BUILT_IN_RETURN.
14150 (propagate_pure_const): Use it.
14152 2010-06-11 Jan Hubicka <jh@suse.cz>
14154 * df-problems.c (df_live_scratch): Convert to bitmap_head.
14155 (df_live_alloc): Initialize df_live_scratch when initializing
14157 (df_live_transfer_function): Update uses of df_live_scratch.
14158 (df_live_free): Free problem_data; clear df_live_scratch before
14159 releasing the obstack.
14160 (df_md_free): Free problem data.
14162 2010-06-11 Jan Hubicka <jh@suse.cz>
14164 * doc/invoke.texi (Wsuggest-attribute): Document.
14165 (Wmissing-noreturn): Remove.
14166 * ipa-pure-const.c (warn_function_noreturn): New function.
14167 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14168 warn_missing_noreturn.
14169 * common.opt (Wsuggest-attribute=noreturn): New.
14170 * tree-flow.h (warn_function_noreturn): Declare.
14171 * tree-cfg.c (execute_warn_function_noreturn): Use
14172 warn_function_noreturn.
14173 (gate_warn_function_noreturn): New.
14174 (pass_warn_function_noreturn): Update.
14176 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14178 * c-typeck.c (handle_warn_cast_qual): Add loc
14179 parameter. Improve warning message.
14180 (build_c_cast): Pass location to handle_warn_cast_qual.
14182 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14184 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14185 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
14187 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14189 2010-06-10 Dodji Seketeli <dodji@redhat.com>
14191 Fix bootstap on mips
14192 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14193 be naming typedefs.
14195 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
14197 * system.h (helper_const_non_const_cast): New inline for
14198 gcc version <= 4.0.
14199 (CONST_CAST2): For gcc version <= 4.0 use
14200 new helper to do const/non-const casting.
14202 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14204 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14205 * Makefile.in (OBJS-common): Include insn-enums.o.
14206 (insn-enums.o): New rule.
14207 (simple_generated_c): Add insn-enums.c.
14208 (build/genenums.o): New rule.
14209 (genprogmd): Add "enums".
14210 * genconstants.c (print_enum_type): Declare a C string array
14212 * genenums.c: New file.
14213 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14214 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
14215 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14217 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14219 * doc/md.texi (define_enum_attr): Document.
14220 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14221 * read-md.h (lookup_enum_type): Declare.
14222 * read-md.c (lookup_enum_type): New function.
14223 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14224 * genattrtab.c (attr_desc): Add an enum_name field.
14225 (evaluate_eq_attr): Take the associated attribute as argument.
14226 Get the enum prefix from the enum_name field, if defined.
14227 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
14228 (simplify_test_exp): Pass attr to evaluate_eq_attr.
14229 (add_attr_value): New function, split out from...
14230 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
14231 (write_test_expr): Pass attr to evaluate_eq_attr.
14232 (write_attr_get): Use the enum_name as the enum tag, if defined.
14233 (write_attr_valueq): Use the enum_name as a prefix, if defined.
14234 (find_attr): Initialize enum_name.
14235 (main): Handle DEFINE_ENUM_ATTR.
14236 * gensupport.c (process_rtx): Likewise.
14237 * config/mips/mips.h (mips_tune_attr): Delete.
14238 * config/mips/mips.md (cpu): Use define_attr_enum.
14240 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14242 * doc/md.texi (define_c_enum, define_enum): Document.
14243 * read-md.h (md_constant): Add a parent_enum field.
14244 (enum_value, enum_type): New structures.
14245 (upcase_string, traverse_enum_types): Declare.
14246 * read-md.c (enum_types): New variable.
14247 (upcase_string, add_constant): New functions.
14248 (handle_constants): Don't create the hash table here.
14250 (traverse_md_constants): Don't check for a null md_constants.
14251 (decimal_string, handle_enum, traverse_enum_types): New functions.
14252 (read_md_files): Initialize md_constants and md_enums.
14253 * genconstants.c (print_md_constant): Ignore info argument.
14254 Only print constants that belong to no enum.
14255 (print_enum_type): New function.
14256 (main): Don't pass stdout to print_md_constant. Call print_enum_type
14257 for each defined enum type.
14258 * config/mips/mips.md (processor): New define_enum.
14259 (unspec): New define_c_enum.
14260 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14261 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14262 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14263 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14264 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14265 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14266 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14267 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14268 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14269 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14270 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14271 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14272 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14273 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14274 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14275 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14276 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14277 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14278 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14279 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14280 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14281 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14282 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14283 (UNSPEC_RDDSP): Move to mips-dsp.md.
14284 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14285 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14286 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14287 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14288 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14289 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14290 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14291 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14292 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14293 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14294 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14295 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14296 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14297 Moved to mips-dspr2.md.
14298 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14299 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14300 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14301 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14302 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14303 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14304 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14305 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14306 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14307 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14308 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14309 UNSPEC_LOONGSON_PSADBH)
14310 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14311 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14312 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14313 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14314 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14315 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14316 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14317 (cpu): Update comment.
14318 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14319 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14320 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14321 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14322 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14323 UNSPEC_LOONGSON_PCMPEQ)
14324 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14325 UNSPEC_LOONGSON_PINSR_0)
14326 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14327 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14328 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14329 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14330 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14331 UNSPEC_LOONGSON_PSADBH)
14332 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14333 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14334 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14335 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14336 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14337 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14338 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14339 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14340 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14341 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14342 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14343 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14344 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14345 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14346 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14347 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14348 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14349 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14350 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14351 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14352 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14353 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14354 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14355 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14356 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14357 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14358 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14359 (UNSPEC_RDDSP): Moved from mips.md.
14360 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14361 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14362 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14363 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14364 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14365 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14366 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14367 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14368 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14369 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14370 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14371 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14372 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14373 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14374 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14375 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14376 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14377 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14378 (UNSPEC_SCC): Moved from mips.md.
14379 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14380 "processor_type" to "processor".
14381 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14382 * config/mips/mips.h (processor_type): Delete.
14383 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14384 "processor_type" to "processor".
14386 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14388 * configure.ac (tm_include_list): Add insn-constants.h.
14389 * configure: Regenerate.
14390 * Makefile.in (GTM_H): Move insn-constants.h here from...
14392 * mkconfig.sh: Remove special handling for insn-constants.h.
14394 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14396 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14397 (BUILD_MD): ...this new variable.
14398 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14399 that include the old contents of simple_generated_h and
14400 simple_generated_c.
14401 (simple_generated_h, simple_generated_c): Include them. Add
14403 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14404 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14405 Remove these dependencies from the main rule and include
14406 insn-conditions.md in the command line only if it appears
14407 in the dependency list.
14408 (insn-constants.h, s-constants): Delete.
14409 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14411 (build/genmddeps.o): Likewise.
14412 (genprogrtl): New variable that contains everything from genprogmd
14413 except mddeps and constants.
14414 (genprogmd): Redefine in terms of genprogrtl. Make these programs
14415 depend on $(BUILD_MD)
14416 (genprog): New variable. Make these programs depend on
14418 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14419 (main): Use read_md_files instead of init_rtx_reader_args.
14420 * genconstants.c: As for genmddeps.c.
14421 * read-md.h (read_skip_construct): Declare.
14422 * read-md.c (read_skip_construct): New function.
14423 (handle_file): Allow a null handle_directive, skipping the
14425 (parse_include): Update the comment accordingly.
14427 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14429 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14430 * genmddeps.c: Include read-md.h.
14431 (main): Call init_rtx_reader_args instead of init_md_reader_args.
14432 * genattr.c (main): Likewise.
14433 * genattrtab.c (main): Likewise.
14434 * genautomata.c (main): Likewise.
14435 * gencodes.c (main): Likewise.
14436 * genconditions.c (main): Likewise.
14437 * genconfig.c (main): Likewise.
14438 * genconstants.c (main): Likewise.
14439 * genemit.c (main): Likewise.
14440 * genextract.c (main): Likewise.
14441 * genflags.c (main): Likewise.
14442 * genopinit.c (main): Likewise.
14443 * genoutput.c (main): Likewise.
14444 * genpeep.c (main): Likewise.
14445 * genrecog.c (main): Likewise.
14446 * genpreds.c (main): Likewise.
14447 * gensupport.h (in_fname): Move to read-md.h.
14448 (init_md_reader_args_cb): Rename to...
14449 (init_rtx_reader_args_cb): ...this and return a bool.
14450 (init_md_reader_args): Rename to...
14451 (init_rtx_reader_args): ...this and return a bool.
14452 (include_callback): Move to read-md.h.
14453 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14454 (file_name_list, first_dir_md_include): Move to read-md.c
14455 (first_bracket_include): Delete unused variable.
14456 (last_dir_md_include): Move to read-md.c.
14457 (process_include): Delete, moving code to read-md.c:handle_include.
14458 (process_rtx): Don't handle INCLUDE.
14459 (save_string): Delete.
14460 (rtx_handle_directive): New function.
14461 (init_md_reader_args_cb): Rename to...
14462 (init_rtx_reader_args_cb): ...this and return a boolean success value.
14464 (init_md_reader_args): Rename to...
14465 (init_rtx_reader_args): ...this and return a boolean success value.
14466 * rtl.def (INCLUDE): Delete.
14467 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
14469 * read-rtl.c (read_conditions): Don't gobble ')' here.
14470 (read_mapping): Likewise.
14471 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
14472 Handle top-level non-rtx constructs here rather than in read_rtx_1.
14473 Store the whole queue in *X. Remove call to init_md_reader.
14474 (read_rtx_1): Rename to...
14475 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
14476 Don't handle top-level non-rtx constructs here. Don't handle (nil)
14478 (read_nested_rtx): New function. Handle (nil) here rather than
14480 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
14482 * read-md.h (directive_handler_t): New type.
14483 (in_fname, include_callback): Moved from read-md.h.
14484 (read_constants, init_md_reader): Delete.
14485 (read_md_files): Declare.
14486 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
14487 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
14489 (read_constants): Rename to...
14490 (handle_constants): ...this. Don't gobble ')' here.
14491 (handle_include, handle_file, handle_toplevel_file)
14492 (parse_include): New functions, mostly taken from gensupport.c.
14493 (init_md_reader): Subsume into...
14494 (read_md_files): ...this new function.
14496 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14498 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
14499 (unread_char): Decrement read_md_lineno after putting back '\n'.
14500 * read-md.c (fatal_with_file_and_line): Push back any characters
14501 that we decide not to add to the context.
14502 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
14503 fatal_expected_char in cases where '/' ends a line (for example).
14504 (read_name): Don't increment read_md_lineno here.
14505 (read_escape): Likewise.
14506 (read_quoted_string): Likewise.
14507 (read_braced_string): Likewise.
14509 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14511 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
14512 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
14513 * genconstants.c: Include read-md.h.
14514 * read-rtl.c (md_constants): Move to read-md.c.
14515 (md_name): Move to read-md.h.
14516 (initialize_iterators): Use leading_string_hash instead of def_hash
14517 and leading_string_eq_p instead of def_name_eq_p.
14518 (read_name): Move to read-md.c.
14519 (def_hash, def_name_eq_p): Delete.
14520 (read_constants, traverse_md_constants): Move to read-md.c.
14521 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
14522 * read-md.h: Include hashtab.h.
14523 (md_name): Moved from read-rtl.c.
14524 (md_constant): Moved from read-md.h.
14525 (leading_string_hash, leading_string_eq_p, read_name)
14526 (read_constants, traverse_md_constants): Declare.
14527 * read-md.c (md_constants): Moved from read-rtl.c.
14528 (leading_string_hash, leading_string_eq_p): New functions.
14529 (read_name, read_constants, traverse_md_constants): Moved from
14532 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14534 * read-rtl.c (md_name): New structure.
14535 (read_name): Take an md_name instead of a buffer pointer.
14536 Use the "string" field instead of strcpy when expanding constants.
14537 (read_constants): Remove the tmp_char argument. Update the calls
14538 to read_name, using two local name buffers instead of the tmp_char
14539 argument. Merge the constant-creation code.
14540 (read_conditions): Remove the tmp_char argument. Update the calls
14541 to read_name, using a local name buffer instead of the tmp_char
14543 (read_mapping): Replace tmp_char variable with a local name buffer.
14544 Update the calls to read_name.
14545 (read_rtx_1): Likewise. Update the calls to read_constants and
14548 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14550 * Makefile.in (build/read-md.o): Depend on errors.h.
14551 * read-md.h (error_with_line): Declare.
14552 * read-md.c: Include errors.h.
14553 (message_with_line_1): New function, extracted from...
14554 (message_with_line): ...here.
14555 (error_with_line): New function.
14556 * genattrtab.c: If a call to message_with_line is followed by
14557 "have_error = 1;", replace both statements with a call to
14559 * genoutput.c: Likewise.
14560 * genpreds.c: Likewise.
14561 * genrecog.c: If a call to message_with_line is followed by
14562 "error_count++;", replace both statements with a call to
14564 (errorcount): Delete.
14565 (main): Don't check it.
14566 * gensupport.c: If a call to message_with_line is followed by
14567 "errors = 1;", replace both statements with a call to error_with_line.
14569 (process_define_cond_exec): Check have_error instead of errors.
14570 (init_md_reader_args_cb): Likewise. Don't set errors.
14572 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14574 * read-md.h (read_md_file): Declare.
14575 (read_char, unread_char): New functions.
14576 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14577 (read_quoted_string, read_string): Remove FILE * argument.
14578 * read-md.c (read_md_file): New variable.
14579 (read_md_filename, read_md_lineno): Update comments and remove
14580 unnecessary initialization.
14581 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14582 (read_escape, read_quoted_string, read_braced_string, read_string):
14583 Remove FILE * argument. Update calls accordingly, using read_char
14584 and unread_char instead of getc and ungetc.
14585 * rtl.h (read_rtx): Remove FILE * argument.
14586 * read-rtl.c (iterator_group): Remove FILE * argument from
14588 (iterator_traverse_data): Remove "infile" field.
14589 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
14590 (add_mapping, read_name, read_constants, read_conditions)
14591 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
14592 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
14593 Remove file arguments from all calls, using read_char and unread_char
14594 instead of getc and ungetc.
14595 * gensupport.c (process_include): Preserve read_md_file around
14596 the include. Set read_md_file to the handle of the included file.
14597 Update call to read_rtx.
14598 (init_md_reader_args_cb): Set read_md_file to the handle of the file
14599 and remove local FILE *. Update calls to read_rtx.
14601 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14603 * read-md.h (read_rtx_lineno): Rename to...
14604 (read_md_lineno): ...this.
14605 (read_rtx_filename): Rename to...
14606 (read_md_filename): ...this.
14607 (copy_rtx_ptr_loc): Rename to...
14608 (copy_md_ptr_loc): ...this.
14609 (print_rtx_ptr_loc): Rename to...
14610 (print_md_ptr_loc): ...this.
14611 * read-md.c: Likewise. Update references after renaming.
14612 (string_obstack): Replace RTL with MD in comment.
14613 (set_rtx_ptr_loc): Rename to...
14614 (set_md_ptr_loc): ...this.
14615 (get_rtx_ptr_loc): Rename to...
14616 (get_md_ptr_loc): ...this.
14617 * genconditions.c: Update references after renaming.
14618 * genemit.c: Likewise.
14619 * genoutput.c: Likewise.
14620 * genpreds.c: Likewise.
14621 * gensupport.c: Likewise.
14622 * read-rtl.c: Likewise.
14624 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14626 * Makefile.in (READ_MD_H): New variable.
14627 (BUILD_RTL): Add build/read-md.o.
14628 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
14629 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
14630 (build/genattrtab.o, build/genconditions.o build/genemit.o)
14631 (build/genextract.o, build/genflags.o, build/genoutput.o)
14632 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
14633 (build/read-md.o): New rule.
14634 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
14635 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
14636 * coretypes.h: ...here.
14637 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
14638 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
14639 * genattr.c: Include read-md.h.
14640 * genattrtab.c: Likewise.
14641 * genconditions.c: Likewise.
14642 * genemit.c: Likewise.
14643 * genextract.c: Likewise.
14644 * genflags.c: Likewise.
14645 * genoutput.c: Likewise.
14646 * genpreds.c: Likewise.
14647 * genrecog.c: Likewise.
14648 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
14649 (join_c_conditions, print_c_condition, read_rtx_filename)
14650 (read_rtx_lineno): Move to read-md.h.
14651 * read-rtl.c: Include read-md.h.
14652 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
14653 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
14654 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
14655 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
14656 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
14657 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
14658 (read_braced_string, read_string): Move to read-md.c.
14659 (read_rtx): Move some initialization to init_md_reader and call
14660 init_md_reader here.
14661 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
14663 * gensupport.c: Include read-md.h.
14664 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
14665 * read-md.h, read-md.c: New files.
14667 2010-06-10 Anatoly Sokolov <aesok@post.ru>
14669 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14670 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14671 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
14672 * config/moxie/moxie.c (moxie_function_value): Make static.
14673 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
14674 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14676 2010-06-10 Martin Jambor <mjambor@suse.cz>
14678 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
14679 * dbgcnt.def (tree_sra): New counter.
14680 * tree-sra.c: Include dbgcnt.h.
14681 (gate_intra_sra): Check tree_sra debug counter.
14683 2010-06-10 Martin Jambor <mjambor@suse.cz>
14685 PR tree-optimization/44258
14686 * tree-sra.c (build_access_subtree): Return false iff there is a
14688 (build_access_trees): Likewise.
14689 (analyze_all_variable_accesses): Disqualify candidates if
14690 build_access_trees returns true for them.
14692 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
14695 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
14696 tail-recurse into canonical node. Fast-forward over
14697 non-canonical VALUEs.
14699 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
14702 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
14703 (*addsi_1_zext) <TYPE_LEA>: Likewise.
14704 (add lea splitter): Likewise.
14705 (add_zext lea splitter): Likewise.
14707 2010-06-10 Joseph Myers <joseph@codesourcery.com>
14709 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
14711 2010-06-10 Jan Hubicka <jh@suse.cz>
14713 * df-problems.c (df_live_problem_data): Add live_bitmaps.
14714 (df_live_alloc): Initialize problem data and live_osbtacks.
14715 (df_live_finalize): Remove obstack, problem data; do not
14717 (df_live_top_dump, df_live_bottom_dump): Do not dump old
14718 data when not allocated.
14719 (df_live_verify_solution_start): Do not allocate problem data.
14720 (df_live_verify_solution_end): Check if out is allocated.
14721 (struct df_md_problem_data): New structure.
14722 (df_md_alloc): Allocate problem data.
14723 (df_md_free): Free problem data; do not clear bitmaps.
14725 2010-06-10 Jan Beulich <jbeulich@novell.com>
14728 * configure.ac: Replace $() with ${} when intending to expand
14729 variables rather than invoking commands.
14730 * configure: Re-generate.
14732 2010-06-10 Jan Hubicka <jh@suse.cz>
14734 PR rtl-optimization/44460
14735 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14736 TYPE_NEEDS_CONSTRUCTING sanity check.
14738 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
14740 * doc/include/fdl.texi: Move to GFDL version 1.3.
14742 * doc/cpp.texi: Move to GFDL version 1.3.
14743 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
14744 * doc/gccint.texi: Move to GFDL version 1.3.
14745 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
14746 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
14747 * doc/invoke.texi: Move to GFDL version 1.3.
14749 2010-06-09 Jan Hubicka <jh@suse.cz>
14751 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
14753 (propagate) ... here; swap the order.
14755 2010-06-09 Jan Hubicka <jh@suse.cz>
14757 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
14758 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
14759 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
14760 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
14762 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
14764 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
14765 Do not the gather memory reference in the outer loop if the step
14768 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
14770 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
14771 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
14772 8 to 4. Minor change of the related comments.
14774 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14776 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
14777 the scev analysis when the variable is not used outside the loop
14778 in a close phi node: call compute_overall_effect_of_inner_loop.
14780 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14782 * graphite-sese-to-poly.c (single_pred_cond): Renamed
14783 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
14784 (build_sese_conditions_before): Renamed call to single_pred_cond.
14785 (build_sese_conditions_after): Same.
14787 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
14789 * graphite-poly.h: Fix comments and indentation.
14790 * graphite-sese-to-poly.c: Same.
14791 (build_sese_conditions_before): Compute stmt and gbb only when needed.
14792 * tree-chrec.c: Fix comments and indentation.
14793 (tree-ssa-loop-niter.c): Same.
14795 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
14797 PR rtl-optimization/42461
14798 * dce.c (deletable_insn_p): Return true for const or pure calls again.
14799 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
14801 2010-06-09 Jan Hubicka <jh@suse.cz>
14803 * bitmap.c (bitmap_and): Walk array forward.
14804 (bitmap_and_compl_into): Likewise.
14805 (bitmap_xor): Likewise.
14806 (bitmap_xor_into): Likewise.
14807 (bitmap_equal_p): Likewise.
14808 (bitmap_intersect_p): Likewise.
14809 (bitmap_intersect_compl_p): Likewise.
14810 (bitmap_ior_and_into): Likewise.
14811 (bitmap_elt_copy): Likewise.
14812 (bitmap_and_compl): Likewise.
14813 (bitmap_elt_ior): Likewise.
14815 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
14817 * opts-common.c (prune_options): Ensure replacement argv array
14818 is correctly terminated by a NULL entry.
14820 2010-06-09 Jan Hubicka <jh@suse.cz>
14822 * cgraph.h (varpool_first_static_initializer,
14823 varpool_next_static_initializer): Make checking only when
14825 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
14826 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
14827 gcc_assert to gcc_checking_assert.
14828 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
14829 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
14830 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
14831 op_iter_init_phiuse, op_iter_init_phidef,
14832 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
14833 gcc_checking_assert.
14834 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
14835 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
14836 partition_is_global, live_on_entry, live_on_exit,
14837 live_merge_and_clear): Likewise.
14838 * system.h (gcc_checking_assert): New macro.
14839 * gimple.h (set_bb_seq): Use gcc_checking_assert.
14841 2010-06-09 Jason Merrill <jason@redhat.com>
14843 * Makefile.in (TAGS): Collect tags info from c-family.
14845 2010-06-09 Jan Hubicka <jh@suse.cz>
14847 * gimple.h (gcc_gimple_checking_assert): New macro.
14848 (gimple_set_def_ops, gimple_set_use_ops,
14849 gimple_set_vuse, gimple_set_vdef,
14850 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
14851 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
14852 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
14853 gimple_asm_output_op, gimple_asm_output_op_ptr,
14854 gimple_asm_set_output_op, gimple_asm_clobber_op,
14855 gimple_asm_set_clobber_op, gimple_asm_label_op,
14856 gimple_asm_set_label_op, gimple_try_set_kind,
14857 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
14858 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
14859 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
14860 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
14861 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
14862 gimple_omp_for_set_initial, gimple_omp_for_final,
14863 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
14864 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
14865 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
14866 conditional with ENABLE_GIMPLE_CHECKING.
14867 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
14869 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
14871 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
14872 (get_computation_cost_at): Use it.
14873 (determine_use_iv_cost_condition): Likewise.
14874 (determine_iv_cost): Likewise.
14876 2010-06-09 Richard Guenther <rguenther@suse.de>
14878 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
14881 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
14883 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
14885 2010-06-09 Martin Jambor <mjambor@suse.cz>
14887 PR tree-optimization/44423
14888 * tree-sra.c (dump_access): Dump also grp_assignment_read.
14889 (analyze_access_subtree): Pass negative allow_replacements to children
14890 if the current type is scalar.
14892 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
14895 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
14896 * doc/plugins.texi (Plugin license check): Update information
14897 on type of plugin_is_GPL_compatible.
14898 * Makefile.in (PLUGINCC): Define as $(COMPILER).
14899 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
14901 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
14903 * config/arm/arm.c (thumb2_reorg): New function.
14904 (arm_reorg): Call it.
14905 * config/arm/thumb2.md (define_peephole2 for flag clobbering
14906 arithmetic operations): Delete.
14908 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
14911 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
14914 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
14917 * gcc-plugin.h: Encapsulate all declarations in extern "C".
14919 2010-06-08 Jan Hubicka <jh@suse.cz>
14921 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
14922 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
14924 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
14926 PR tree-optimization/39874
14927 PR middle-end/28685
14928 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
14930 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
14931 same_bool_result_p): New.
14932 (and_var_with_comparison, and_var_with_comparison_1,
14933 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
14934 (or_var_with_comparison, or_var_with_comparison_1,
14935 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
14936 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
14937 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
14938 of combine_comparisons.
14939 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
14941 2010-06-08 Anatoly Sokolov <aesok@post.ru>
14943 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14944 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14945 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
14946 pdp11_function_value_regno_p): New functions.
14947 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14948 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14950 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
14952 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
14953 Thumb-2 in the MINUS case.
14955 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14957 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
14959 * doc/gty.texi (GTY Options): Document typed GC allocation and
14960 variable_size GTY option.
14962 * ggc-internal.h: New.
14964 * ggc.h: Update copyright year.
14965 (digit_string): Move to stringpool.c.
14966 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
14967 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
14968 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
14969 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
14970 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
14971 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
14972 (ggc_force_collect, ggc_get_size, ggc_statistics)
14973 (ggc_print_common_statistics): Move to ggc-internal.h.
14974 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
14975 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
14976 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
14977 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
14978 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
14979 (ggc_alloc_zone_pass_stat): Remove.
14980 (ggc_internal_alloc_stat, ggc_internal_alloc)
14981 (ggc_internal_cleared_alloc_stat): New.
14982 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
14983 (ggc_internal_vec_alloc_stat)
14984 (ggc_internal_cleared_vec_alloc_stat)
14985 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
14986 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
14987 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
14988 (ggc_cleared_alloc_ptr_array_two_args): New.
14989 (htab_create_ggc, splay_tree_new_ggc): Redefine.
14990 (ggc_splay_alloc): Change the type of the first argument to
14991 enum gt_types_enum.
14992 (ggc_alloc_string): Make macro.
14993 (ggc_alloc_string_stat): New.
14994 (ggc_strdup): Redefine.
14995 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
14996 (ggc_alloc_rtvec_sized): New.
14997 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
14998 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
14999 (ggc_internal_cleared_alloc_zone_stat)
15000 (ggc_internal_zone_alloc_stat)
15001 (ggc_internal_zone_cleared_alloc_stat)
15002 (ggc_internal_zone_vec_alloc_stat)
15003 (ggc_alloc_zone_rtx_def_stat)
15004 (ggc_alloc_zone_tree_node_stat)
15005 (ggc_alloc_zone_cleared_tree_node_stat)
15006 (ggc_alloc_cleared_gimple_statement_d_stat): New.
15008 * ggc-common.c: Include ggc-internal.h.
15009 (ggc_internal_cleared_alloc_stat): Rename from
15010 ggc_alloc_cleared_stat.
15011 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15012 (ggc_calloc): Remove.
15013 (ggc_cleared_alloc_htab_ignore_args): New.
15014 (ggc_cleared_alloc_ptr_array_two_args): New.
15015 (ggc_splay_alloc): Add obj_type parameter.
15016 (init_ggc_heuristics): Formatting fixes.
15018 * ggc-none.c: Update copyright year.
15019 (ggc_alloc_stat): Rename to ggc_alloc_stat.
15020 (ggc_alloc_cleared_stat): Rename to
15021 ggc_internal_cleared_alloc_stat.
15022 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15024 * ggc-page.c: Update copyright year. Include ggc-internal.h.
15025 Remove references to ggc_alloc in comments.
15026 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15027 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15028 (new_ggc_zone, destroy_ggc_zone): Remove.
15029 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15031 * ggc-zone.c: Include ggc-internal.h. Remove references to
15032 ggc_alloc in comments.
15033 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15034 (ggc_internal_alloc_zone_pass_stat): New.
15035 (ggc_internal_cleared_alloc_zone_stat): New.
15036 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15037 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15038 (new_ggc_zone, destroy_ggc_zone): Remove.
15040 * stringpool.c: Update copyright year. Include ggc-internal.h
15041 (digit_vector): Make static.
15042 (digit_string): Moved from ggc.h.
15043 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15044 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15046 * Makefile.in (GGC_INTERNAL_H): New.
15047 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15048 $(GGC_INTERNAL_H) to dependencies.
15050 * gentype.c: Update copyright year.
15051 (walk_type): Accept variable_size GTY option.
15052 (USED_BY_TYPED_GC_P): New macro.
15053 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
15054 whitespace at the end of strings.
15055 (get_type_specifier, variable_size_p): New functions.
15056 (alloc_quantity, alloc_zone): New enums.
15057 (write_typed_alloc_def): New function.
15058 (write_typed_struct_alloc_def): Likewise.
15059 (write_typed_typed_typedef_alloc_def): Likewise.
15060 (write_typed_alloc_defns): Likewise.
15061 (output_typename, write_splay_tree_allocator_def): Likewise.
15062 (write_splay_tree_allocators): Likewise.
15063 (main): Call write_typed_alloc_defns and
15064 write_splay_tree_allocators.
15066 * lto-streamer.h (lto_file_decl_data_ptr): New.
15068 * passes.c (order): Define using cgraph_node_ptr.
15070 * strinpool.c (struct string_pool_data): Declare nested_ptr using
15073 * gimple.h (union gimple_statement_d): Likewise.
15075 * rtl.h (struct rtx_def): Likewise.
15076 (struct rtvec_def): Likewise.
15078 * tree.h (union tree_node): Likewise.
15080 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15082 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15084 * tree-scalar-evolution.c (scev_initialize): Likewise.
15086 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15088 * dwarf2asm.c (dw2_force_const_mem): Likewise.
15090 * omp-low.c (lower_omp_critical): Likewise.
15092 * bitmap.h (struct bitmap_head_def): Update comment to not
15093 reference ggc_alloc.
15095 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15097 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15099 * ipa-prop.c (duplicate_ggc_array): Rename to
15100 duplicate_ipa_jump_func_array. Use typed GC allocation.
15101 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15103 * gimple.c (gimple_alloc_stat): Use
15104 ggc_alloc_cleared_gimple_statement_d_stat.
15106 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15108 * tree.c (make_node_stat): Use
15109 ggc_alloc_zone_cleared_tree_node_stat.
15110 (make_tree_vec_stat): Likewise.
15111 (build_vl_exp_stat): Likewise.
15112 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15113 (make_tree_binfo_stat): Likewise.
15114 (tree_cons_stat): Likewise.
15116 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15117 (shallow_copy_rtx_stat): Likewise.
15118 (make_node_stat): Likewise.
15120 * lto-symtab.c: Fix comment.
15122 * tree-cfg.c (create_bb): Update comment to not reference
15124 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15126 * varpool.c (varpool_node): Use typed GC allocation.
15127 (varpool_extra_name_alias): Likewise.
15129 * varasm.c (emutls_decl): Likewise.
15130 (get_unnamed_section): Likewise.
15131 (get_noswitch_section): Likewise.
15132 (get_section): Likewise.
15133 (get_block_for_section): Likewise.
15134 (build_constant_desc): Likewise.
15135 (create_constant_pool): Likewise.
15136 (force_const_mem): Likewise.
15138 * tree.c (build_vl_exp_stat): Likewise.
15139 (build_real): Likewise.
15140 (build_string): Likewise.
15141 (decl_debug_expr_insert): Likewise.
15142 (decl_value_expr_insert): Likewise.
15143 (type_hash_add): Likewise.
15144 (build_omp_clause): Likewise.
15146 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15148 * tree-ssa.c (init_tree_ssa): Likewise.
15150 * tree-ssa-structalias.c (heapvar_insert): Likewise.
15152 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15154 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15156 * tree-ssa-alias.c (get_ptr_info): Likewise.
15158 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15160 * tree-phinodes.c (allocate_phi_node): Likewise.
15162 * tree-iterator.c (tsi_link_before): Likewise.
15163 (tsi_link_after): Likewise.
15165 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15167 * tree-dfa.c (create_var_ann): Likewise.
15169 * tree-cfg.c (create_bb): Likewise.
15171 * toplev.c (alloc_for_identifier_to_locale): Likewise.
15172 (general_init): Likewise.
15174 * stringpool.c (stringpool_ggc_alloc): Likewise.
15175 (gt_pch_save_stringpool): Likewise.
15177 * sese.c (if_region_set_false_region): Likewise.
15179 * passes.c (do_per_function_toporder): Likewise.
15181 * optabs.c (set_optab_libfunc): Likewise.
15182 (set_conv_libfunc): Likewise.
15184 * lto-symtab.c (lto_symtab_register_decl): Likewise.
15186 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15187 (input_eh_region): Likewise.
15188 (input_eh_lp): Likewise.
15189 (make_new_block): Likewise.
15190 (unpack_ts_real_cst_value_fields): Likewise.
15192 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15194 * lto-cgraph.c (input_node_opt_summary): Likewise.
15196 * loop-init.c (loop_optimizer_init): Likewise.
15198 * lambda.h (lambda_vector_new): Likewise.
15200 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15202 * ira.c (update_equiv_regs): Likewise.
15204 * ipa.c (cgraph_node_set_new): Likewise.
15205 (cgraph_node_set_add): Likewise.
15206 (varpool_node_set_new): Likewise.
15207 (varpool_node_set_add): Likewise.
15209 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15210 (duplicate_ipa_jump_func_array): Likewise.
15211 (ipa_read_node_info): Likewise.
15213 * ipa-cp.c (ipcp_create_replace_map): Likewise.
15215 * integrate.c (get_hard_reg_initial_val): Likewise.
15217 * gimple.c (gimple_alloc_stat): Likewise.
15218 (gimple_build_omp_for): Likewise.
15219 (gimple_seq_alloc): Likewise.
15220 (gimple_copy): Likewise.
15222 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15223 (gsi_insert_after_without_update): Likewise.
15225 * function.c (add_frame_space): Likewise.
15226 (insert_temp_slot_address): Likewise.
15227 (assign_stack_temp_for_type): Likewise.
15228 (allocate_struct_function): Likewise.
15229 (types_used_by_var_decl_insert): Likewise.
15231 * except.c (init_eh_for_function): Likewise.
15232 (gen_eh_region): Likewise.
15233 (gen_eh_region_catch): Likewise.
15234 (gen_eh_landing_pad): Likewise.
15235 (add_call_site): Likewise.
15237 * emit-rtl.c (get_mem_attrs): Likewise.
15238 (get_reg_attrs): Likewise.
15239 (start_sequence): Likewise.
15240 (init_emit): Likewise.
15242 * dwarf2out.c (new_cfi): Likewise.
15243 (queue_reg_save): Likewise.
15244 (dwarf2out_frame_init): Likewise.
15245 (new_loc_descr): Likewise.
15246 (find_AT_string): Likewise.
15247 (new_die): Likewise.
15248 (add_var_loc_to_decl): Likewise.
15249 (clone_die): Likewise.
15250 (clone_as_declaration): Likewise.
15251 (break_out_comdat_types): Likewise.
15252 (new_loc_list): Likewise.
15253 (loc_descriptor): Likewise.
15254 (add_loc_descr_to_each): Likewise.
15255 (add_const_value_attribute): Likewise.
15256 (tree_add_const_value_attribute): Likewise.
15257 (add_comp_dir_attribute): Likewise.
15258 (add_name_and_src_coords_attributes): Likewise.
15259 (lookup_filename): Likewise.
15260 (store_vcall_insn): Likewise.
15261 (dwarf2out_init): Likewise.
15263 * dbxout.c (dbxout_init): Likewise.
15265 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15267 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15269 * config/score/score7.c (score7_output_external): Likewise.
15271 * config/score/score3.c (score3_output_external): Likewise.
15273 * config/s390/s390.c (s390_init_machine_status): Likewise.
15275 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15276 (rs6000_init_machine_status): Likewise.
15277 (output_toc): Likewise.
15279 * config/pa/pa.c (pa_init_machine_status): Likewise.
15280 (get_deferred_plabel): Likewise.
15282 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15284 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15286 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15288 * config/mep/mep.c (mep_init_machine_status): Likewise.
15289 (mep_note_pragma_flag): Likewise.
15291 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15293 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15295 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15297 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15298 (i386_pe_maybe_record_exported_symbol): Likewise.
15300 * config/i386/i386.c (get_dllimport_decl): Likewise.
15301 (ix86_init_machine_status): Likewise.
15302 (assign_386_stack_local): Likewise.
15304 * config/frv/frv.c (frv_init_machine_status): Likewise.
15306 * config/darwin.c (machopic_indirection_name): Likewise.
15308 * config/cris/cris.c (cris_init_machine_status): Likewise.
15310 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15312 * config/avr/avr.c (avr_init_machine_status): Likewise.
15314 * config/arm/arm.c (arm_init_machine_status): Likewise.
15316 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15317 (alpha_need_linkage): Likewise.
15318 (alpha_use_linkage): Likewise.
15320 * cgraph.c (cgraph_allocate_node): Likewise.
15321 (cgraph_create_edge_1): Likewise.
15322 (cgraph_create_indirect_edge): Likewise.
15323 (cgraph_add_asm_node): Likewise.
15325 * cfgrtl.c (init_rtl_bb_info): Likewise.
15327 * cfgloop.c (alloc_loop): Likewise.
15328 (rescan_loop_exit): Likewise.
15330 * cfg.c (init_flow): Likewise.
15331 (alloc_block): Likewise.
15332 (unchecked_make_edge): Likewise.
15334 * c-parser.c (c_parse_init): Likewise.
15335 (c_parse_file): Likewise.
15337 * c-decl.c (bind): Likewise.
15338 (record_inline_static): Likewise.
15339 (push_scope): Likewise.
15340 (make_label): Likewise.
15341 (lookup_label_for_goto): Likewise.
15342 (finish_struct): Likewise.
15343 (finish_enum): Likewise.
15344 (c_push_function_context): Likewise.
15346 * bitmap.c (bitmap_element_allocate): Likewise.
15347 (bitmap_gc_alloc_stat): Likewise.
15349 * alias.c (record_alias_subset): Likewise.
15350 (init_alias_analysis): Likewise.
15352 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
15354 * fold-const.c (fold_comparison): Remove redundant parenthesis.
15355 * tree-inline.c (expand_call_inline): Pass translated return value of
15356 cgraph_inline_failed_string to diagnostic function.
15358 2010-06-08 Andrew Pinski <pinskia@gmail.com>
15359 Shujing Zhao <pearly.zhao@oracle.com>
15362 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15363 implicit bad conversions is initialization.
15364 (error_init): Use gmsgid instead of msgid for argument name and change
15365 the call for error.
15366 (pedwarn_init): Use gmsgid instead of msgid for argument name and
15367 change the call for pedwarn.
15368 (warning_init): Use gmsgid instead of msgid for argument name and
15369 change the call for warning.
15371 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
15373 * config/mips/mips-protos.h (mips_print_operand): Delete.
15374 (mips_print_operand_address): Delete.
15375 * config/mips/mips.h (mips_print_operand_punct): Delete.
15376 (PRINT_OPERAND): Delete.
15377 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15378 (PRINT_OPERAND_ADDRESS): Delete.
15379 * config/mips/mips.c (mips_print_operand_punct): Make static.
15380 (mips_print_operand_address): Make static.
15381 (mips_print_operand): Make static. Call
15382 mips_print_operand_punct_valid_p.
15383 (mips_print_operand_punct_valid_p): New function.
15384 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15385 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15387 2010-06-07 Jan Hubicka <jh@suse.cz>
15389 PR middle-end/44454
15390 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15393 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
15395 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15398 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15400 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15401 attributes): Document gas.
15403 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
15405 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15406 <TYPE_LEA>: Split instruction.
15407 <default>: Remove alternative 2 handling.
15408 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15409 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15410 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15412 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15413 (ashift_zext lea splitter): Use DImode for multiplication.
15415 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15416 to generate addition.
15418 2010-06-07 Joseph Myers <joseph@codesourcery.com>
15420 * common.opt (fira-verbose): Use Var.
15421 (fpcc-struct-return): Use Init instead of VarExists.
15422 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15424 * flags.h (flag_signed_char, flag_short_enums,
15425 flag_pcc_struct_return, flag_ira_verbose,
15426 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15427 * toplev.c (flag_detailed_statistics, flag_signed_char,
15428 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15429 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15430 * toplev.h (flag_crossjumping, flag_if_conversion,
15431 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15432 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15433 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15434 flag_cprop_registers, time_report, flag_ira_loop_pressure,
15435 flag_ira_coalesce, flag_ira_move_spills,
15436 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15438 2010-06-07 Jan Hubicka <jh@suse.cz>
15440 * df-core.c (df_analyze_problem): Do verification after allocation.
15442 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15443 (df_lr_alloc): Initialize problem data; move bitmaps to
15444 lr_bitmaps obstack.
15445 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15446 (df_lr_verify_solution_start): Do not initialize problem data;
15447 allocate bitmaps in lr_bitmaps.
15448 (df_lr_verify_solution_end): Do not free problem data.
15450 2010-06-07 Jan Hubicka <jh@suse.cz>
15452 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15453 if caller is noreturn.
15454 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15455 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15456 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15457 * ipa-pure-const.c (check_decl): Add IPA parameter.
15458 (state_from_flags): New function.
15459 (better_state, worse_state): New functions.
15460 (check_call): When in IPA mode, do not care about callees.
15461 (check_load, check_store): Update.
15462 (check_ipa_load, check_ipa_store): New.
15463 (check_stmt): When in IPA mode, use IPA checkers.
15464 (analyze_function): Use state_from_flags.
15465 (propagate): Check indirect edges and references.
15467 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
15469 PR rtl-optimization/44404
15470 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
15471 of count_occurrences to see if it's safe to modify mem_insn.
15473 2010-06-07 Richard Guenther <rguenther@suse.de>
15475 * gimplify.c (gimplify_cleanup_point_expr): For empty body
15476 and EH-only cleanup drop the cleanup instead of inserting it
15479 2010-06-07 Ira Rosen <irar@il.ibm.com>
15481 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
15483 * targhooks.c (default_builtin_vectorization_cost): New function.
15484 * targhooks.h (default_builtin_vectorization_cost): Declare.
15485 * target.h (enum vect_cost_for_stmt): Define.
15486 (builtin_vectorization_cost): Change argument and comment.
15487 * tree-vectorizer.h: Remove cost model macros.
15488 * tree-vect-loop.c: Include target.h.
15489 (vect_get_cost): New function.
15490 (vect_estimate_min_profitable_iters): Replace cost model macros with
15491 calls to vect_get_cost.
15492 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
15493 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
15494 default implementation.
15495 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
15496 calls to target hook builtin_vectorization_cost.
15497 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
15499 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
15500 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
15501 implementation to return costs.
15502 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15503 * config/spu/spu.h: Remove vectorizer cost model macros.
15504 * config/i386/i386.h: Likewise.
15505 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
15506 a call to target hook builtin_vectorization_cost.
15508 2010-06-06 Sriraman Tallam <tmsriram@google.com>
15511 * config/i386/i386.c (override_options): Turn zee pass on for level 2
15512 and above and defer till target is known.
15513 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
15514 turn off otherwise.
15516 2010-05-25 Jan Hubicka <jh@suse.cz>
15518 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
15519 (df_compact_blocks): Likewise.
15520 * df.h (struct df): Turn hardware_regs_used,
15521 regular_block_artificial_uses, eh_block_artificial_uses,
15522 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
15524 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
15525 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
15526 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
15527 df_scan_blocks, df_insn_delete, df_insn_rescan,
15528 df_insn_rescan_debug_internal, df_insn_rescan_all,
15529 df_process_deferred_rescans, df_process_deferred_rescans,
15530 df_notes_rescan, df_get_call_refs, df_get_call_refs,
15531 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
15532 df_record_entry_block_defs, df_record_exit_block_uses,
15533 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
15534 df_scan_verify): Update.
15536 2010-05-25 Dodji Seketeli <dodji@redhat.com>
15539 * c-common.c (is_typedef_decl): Move this definition ...
15540 * tree.c (is_typedef_decl): ... here.
15541 (typdef_variant_p): Move definition here from cp/tree.c.
15542 * c-common.h (is_typedef_decl): Move this declaration ...
15543 * tree.h (is_typedef_decl): ... here.
15544 (typedef_variant_p): Move declaration here from cp/cp-tree.h
15545 * dwarf2out.c (is_naming_typedef_decl): New function.
15546 (gen_tagged_type_die): Split out of ...
15547 (gen_type_die_with_usage): ... this function. When an anonymous
15548 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15549 is emitted for the typedef.
15550 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15551 anonymous tagged types.
15553 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
15556 * c-decl.c (grokdeclarator): Delete warning.
15558 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
15560 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
15561 newly built CALL_EXPR.
15562 * tree-profile.c (tree_profiling): Don't profile functions produced
15563 for built-in stuff.
15565 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
15569 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
15570 endianness-independent.
15572 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
15574 * c-common.c: Move to c-family/.
15575 * c-common.def: Likewise.
15576 * c-common.h: Likewise.
15577 * c-cppbuiltin.c: Likewise.
15578 * c-dump.c: Likewise.
15579 * c-format.c: Likewise.
15580 * c-format.h : Likewise.
15581 * c-gimplify.c: Likewise.
15582 * c-lex.c: Likewise.
15583 * c-omp.c: Likewise.
15585 * c-opts.c: Likewise.
15586 * c-pch.c: Likewise.
15587 * c-ppoutput.c: Likewise.
15588 * c-pragma.c: Likewise.
15589 * c-pragma.h: Likewise.
15590 * c-pretty-print.c: Likewise.
15591 * c-pretty-print.h: Likewise.
15592 * c-semantics.c: Likewise.
15593 * stub-objc.c: Likewise.
15595 * gengtype.c (get_file_langdir): Special-case files in c-family/.
15596 (get_output_file_with_visibility): Fix name for c-common.h.
15597 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
15599 * c-tree.h: Update include path for moved files.
15600 * c-lang.c: Likewise.
15601 * c-lang.h: Likewise.
15602 * c-parser.c: Likewise.
15603 * c-convert.c: Likewise.
15604 * c-decl.c: Likewise.
15605 * c-objc-common.c: Likewise.
15606 * configure.ac: Make sure c-family/ exists in the build directory.
15607 * configure: Regenerate.
15608 * Makefile.in: Update paths for moved files. Regroup files per
15609 location and update dependencies. Move generated_files down after
15612 * config/spu/spu-c.c: Update paths for moved files.
15613 * config/mep/mep-pragma.c: Likewise.
15614 * config/darwin-c.c: Likewise.
15615 * config/i386/msformat-c.c: Likewise.
15616 * config/i386/i386-c.c: Likewise.
15617 * config/avr/avr-c.c: Likewise.
15618 * config/sol2-c.c: Likewise.
15619 * config/ia64/ia64-c.c: Likewise.
15620 * config/rs6000/rs6000-c.c: Likewise.
15621 * config/arm/arm.c: Likewise.
15622 * config/arm/arm-c.c: Likewise.
15623 * config/h8300/h8300.c: Likewise.
15624 * config/v850/v850-c.c: Likewise.
15626 * config/t-darwin: Fix dependencies for moved files.
15627 * config/t-sol2: Fix dependencies for moved files.
15628 * config/mep/t-mep: Fix dependencies for moved files.
15629 * config/ia64/t-ia64: Fix dependencies for moved files.
15630 * config/rs6000/t-rs6000: Fix dependencies for moved files.
15631 * config/v850/t-v850: Fix dependencies for moved files.
15632 * config/v850/t-v850e: Fix dependencies for moved files.
15634 * config/m32c/m32c-pragma.c
15636 * po/exgettext: Look in c-family/ also.
15638 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
15640 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
15641 (mark_control_dependent_edges_necessary): Call it instead of marking
15642 the last statement manually.
15643 (propagate_necessity): Likewise.
15645 2010-06-05 Jan Hubicka <jh@suse.cz>
15647 * basic-block.h (compute_dominance_frontiers): Updated.
15648 (compute_idf): Likewise.
15650 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
15651 for dominance frontiers.
15652 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
15653 (insert_updated_phi_nodes_for): Likewise.
15654 (update_ssa): Likewise.
15655 * cfganal.c (compute_dominance_frontiers_1): Likewise.
15656 (compute_dominance_frontiers): Likewise.
15657 (compute_idf): Likewise.
15658 * df-problems.c (df_md_local_compute): Likewise.
15660 2010-06-05 Anatoly Sokolov <aesok@post.ru>
15662 * target.h (struct gcc_target): Add memory_move_cost field.
15663 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
15664 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
15665 * targhooks.c (default_memory_move_cost): New function.
15666 * targhooks.h (default_memory_move_cost): Declare function.
15667 * reload.h (memory_move_cost): Declare.
15668 (memory_move_secondary_cost): Change type of 'in' argument to bool.
15669 * reginfo.c (memory_move_cost): New function.
15670 (memory_move_secondary_cost): Change type of 'in' argument to bool.
15671 * ira.h (ira_memory_move_cost): Update comment.
15672 * ira.c (ira_memory_move_cost): Update comment.
15673 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
15674 with memory_move_cost.
15675 * postreload.c (reload_cse_simplify_set): (Ditto.).
15676 * reload1.c (choose_reload_regs): (Ditto.).
15677 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
15678 (MEMORY_MOVE_COST): Revise documentation.
15680 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15681 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15682 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
15683 type of 'in' argument to bool.
15684 (TARGET_MEMORY_MOVE_COST): Define.
15686 2010-06-05 Jan Hubicka <jh@suse.cz>
15688 * ipa-pure-const.c (propagate): Fix typo in handling of functions
15689 that cannot return. Be more careful when merging the results with
15690 previously known ones.
15692 2010-06-05 Matthias Klose <doko@ubuntu.com>
15694 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
15695 function to add the -iplugindir option.
15696 (find_plugindir_spec_function): Add new declaration and function.
15697 (static_spec_func): Use it for "find-plugindir".
15699 2010-06-05 Jakub Jelinek <jakub@redhat.com>
15702 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
15703 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
15704 statement expression.
15706 2010-06-05 Jan Hubicka <jh@suse.cz>
15708 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
15709 (df_rd_problem_data): Convert sparse_invalidated_by_call,
15710 dense_invalidated_by_call to bitmap head.
15711 (df_rd_alloc, df_rd_bb_local_compute_process_def,
15712 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
15713 df_rd_start_dump, df_lr_verify_transfer_functions,
15714 df_live_verify_transfer_functions, df_chain_create_bb,
15715 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
15716 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
15717 df_simulate_one_insn_forwards, df_md_alloc,
15718 df_md_bb_local_compute_process_def,
15719 df_md_bb_local_compute_process_def, df_md_local_compute,
15720 df_md_transfer_function df_md_free): Update.
15722 2010-06-05 Joseph Myers <joseph@codesourcery.com>
15725 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
15726 target type for ADDR_EXPR; require no changes to qualifiers except
15727 for function types.
15728 * c-tree.h (c_build_type_variant): Remove.
15730 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
15732 * genautomata.c (get_excl_set): Do work per element, not per char.
15733 (check_presence_pattern_sets): Similar.
15734 (check_absence_pattern_sets): Similar.
15736 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
15738 * genautomata.c (curr_state_pass_num): Delete.
15739 (min_issue_delay_pass_states): Delete.
15740 (min_issue_delay): Delete.
15741 (initiate_min_issue_delay_pass_states): Delete.
15742 (output_min_issue_delay_table): Compute min_issue_delay_vect
15743 using a breadth-first search variant.
15744 (output_tables): Don't call initiate_min_issue_delay_pass_states.
15746 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
15749 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
15750 (df_byte_lr_bb_local_compute): Likewise.
15752 2010-06-03 Jason Merrill <jason@redhat.com>
15754 Implement noexcept operator (5.3.7)
15755 * c-common.c (c_common_reswords): Add noexcept.
15756 * c-common.h (enum rid): Add RID_NOEXCEPT.
15758 2010-06-04 Joseph Myers <joseph@codesourcery.com>
15760 * config/darwin-driver.c (darwin_default_min_version): Use
15761 GCC-specific formats in diagnostics.
15762 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
15764 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
15765 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
15766 eval_spec_function, handle_braces, process_brace_body, main,
15767 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
15768 getenv_spec_function, compare_version_strings,
15769 version_compare_spec_function): Use GCC-specific formats in
15772 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
15774 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
15775 that operand 0 and operand 1 are equal.
15776 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
15777 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
15778 and operand 1 are equal.
15779 <default>: Ditto. Remove ??? comment.
15780 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
15781 and operand 1 are equal.
15782 <default>: Ditto. Remove ??? comment.
15783 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
15785 (*add<mode>_4) <default>: Ditto.
15786 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
15788 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
15790 * config/i386/i386-protos.h (ix86_print_operand): Declare.
15791 * config/i386/i386.c (ix86_print_operand): Make non-static.
15792 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
15793 * output.h (output_operand): Declare.
15794 * final.c (output_operand): Make non-static.
15796 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
15798 PR rtl-optimization/44013
15799 * sched-deps.c (add_dependence_list_and_free): Don't free lists
15800 when processing debug insns.
15803 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
15804 recursing. Check that recursion is bounded. Rename inner var
15805 to avoid hiding incoming argument.
15807 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
15809 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
15810 operands[2] == 255.
15814 (*addqi_ext_1_rex64): Ditto.
15815 (*addqi_ext_1): Ditto.
15817 (*addqi_4): Check for incdec_operand in QImode.
15819 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
15820 using SWI mode iterator.
15821 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
15822 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
15824 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
15825 using SWI mode iterator.
15827 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
15830 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
15831 * c-format.c (gcc_diag_flag_specs): Add hash.
15832 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
15833 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
15834 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
15835 pp_c_cv_qualifiers. Handle qualifiers spelling here.
15836 (pp_c_type_qualifier_list): Call the function above.
15837 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
15838 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
15839 (WARN_FOR_QUALIFIERS): New macro.
15840 (convert_for_assignment): Use it.
15842 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
15844 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
15846 2010-06-04 Jan Hubicka <jh@suse.cz>
15848 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
15849 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
15850 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
15851 DF_BYTE_LR_OUT): Update for embedded bitmaps.
15852 * fwprop.c (single_def_use_enter_block): Likewise.
15853 * ddg.c (create_ddg_dep_from_intra_loop_link,
15854 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
15855 * loop-iv.c (latch_dominating_def): Likewise.
15856 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
15857 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
15858 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
15859 df_rd_transfer_function, df_rd_top_dump,
15860 df_rd_bottom_dump): Update.
15861 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
15862 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
15863 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
15864 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
15865 df_lr_verify_solution_start, df_lr_verify_solution_end,
15866 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
15867 df_live_free_bb_info, df_live_alloc, df_live_reset,
15868 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
15869 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
15870 df_live_verify_solution_start, df_live_verify_solution_end,
15871 df_live_verify_transfer_functions, df_chain_create_bb,
15872 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
15873 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
15874 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
15875 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
15876 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15877 df_byte_lr_transfer_function, df_byte_lr_top_dump,
15878 df_byte_lr_bottom_dump, df_create_unused_note,
15879 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
15880 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
15881 df_md_transfer_function, df_md_init, df_md_confluence_0,
15882 df_md_confluence_n,
15883 df_md_top_dump, df_md_bottom_dump): Update.
15884 (struct df_lr_problem_data): Embedd bitmap headers.
15886 2010-06-04 Jan Hubicka <jh@suse.cz>
15888 * dce.c (dce_process_block): Do not re-scan already marked
15891 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
15893 PR rtl-optimization/39871
15894 PR rtl-optimization/40615
15895 PR rtl-optimization/42500
15896 PR rtl-optimization/42502
15897 * ira.c (init_reg_equiv_memory_loc: New function.
15898 (ira): Call it twice.
15899 * reload.h (calculate_elim_costs_all_insns): Declare.
15900 * ira-costs.c: Include "reload.h".
15901 (regno_equiv_gains): New static variable.
15902 (init_costs): Allocate it.
15903 (finish_costs): Free it.
15904 (ira_costs): Call calculate_elim_costs_all_insns.
15905 (find_costs_and_classes): Take estimated elimination costs
15907 (ira_adjust_equiv_reg_cost): New function.
15908 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
15909 * reload1.c (init_eliminable_invariants, free_reg_equiv,
15910 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
15911 (elim_bb): New static variable.
15912 (reload): Move code out of here into init_eliminable_invariants and
15913 free_reg_equiv. Call them.
15914 (calculate_elim_costs_all_insns): New function.
15915 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
15916 all callers changed. If FOR_COSTS is true, don't call alter_reg,
15917 but call note_reg_elim_costly if we turned a valid memory address
15918 into an invalid one.
15919 * Makefile.in (ira-costs.o): Depend on reload.h.
15921 2010-06-04 Julian Brown <julian@codesourcery.com>
15923 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
15926 2010-06-04 Richard Guenther <rguenther@suse.de>
15929 * cgraph.h (struct varpool_node): Add lto_file_data field.
15930 * lto-cgraph.c (input_varpool_node): Initialize it.
15932 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
15934 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
15935 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
15936 predicate in "type" attribute calculation.
15937 (*addsi_1_zext): Ditto.
15938 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
15939 (*addsi_2_zext): Ditto.
15940 (*add<mode>_3): Ditto.
15941 (*addsi_3_zext): Ditto.
15942 (*add<mode>_5): Ditto.
15944 2010-06-03 Jan Hubicka <jh@suse.cz>
15946 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
15948 * cfganal.c (compute_dominance_frontiers_1): Likewise.
15950 2010-06-03 Jan Hubicka <jh@suse.cz>
15952 * df-problems.c (df_create_unused_note, df_note_bb_compute):
15953 micro-optimize the checks when to add new note.
15955 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
15957 * final.c (output_asm_insn): Call
15958 targetm.asm_out.print_operand_punct_valid_p. Update comments.
15959 (output_operand): Call targetm.asm_out.print_operand. Update comments.
15960 (output_address): Call targetm.asm_out.print_operand_address.
15962 * target.h (struct gcc_target): Add print_operand,
15963 print_operand_address, and print_operand_punct_valid_p fields.
15964 * targhooks.h (default_print_operand): Declare.
15965 (default_print_operand_address): Declare.
15966 (default_print_operand_punct_valid_p): Declare.
15967 * targhooks.c (default_print_operand): Define.
15968 (default_print_operand_address): Define.
15969 (default_print_operand_punct_valid_p): Define.
15970 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
15971 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
15972 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
15973 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
15974 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
15975 * vmsdbgout.c (addr_const_to_string): Update comment.
15976 * config/i386/i386.c (print_operand): Rename to...
15977 (ix86_print_operand): ...this. Make static.
15978 (print_operand_address): Rename to...
15979 (ix86_print_operand_address): ...this. Make static. Call
15980 ix86_print_operand instead of PRINT_OPERAND.
15981 (ix86_print_operand_punct_valid_p): New function.
15982 (TARGET_PRINT_OPERAND): Define.
15983 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15984 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15985 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
15986 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15987 (PRINT_OPERAND): Delete.
15988 (PRINT_OPERAND_ADDRESS): Delete.
15989 * config/i386/i386-protos.h (print_operand): Delete prototype.
15990 (print_operand_address): Delete prototype.
15992 2010-06-03 Richard Guenther <rguenther@suse.de>
15994 PR tree-optimization/44403
15995 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15996 Preserve pointer qualifiers.
15997 (vect_create_data_ref_ptr): Likewise.
15999 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
16002 * defaults.h (MAX_FIXED_MODE_SIZE): New.
16004 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16006 2010-06-03 Jakub Jelinek <jakub@redhat.com>
16009 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16010 return false if merging the bbs would lead to goto_locus
16011 location being lost from the IL.
16013 2010-06-03 Jan Hubicka <jh@suse.cz>
16014 Jakub Jelinek <jakub@redhat.com>
16016 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16017 set->regs[i] is NULL or has just one entry.
16019 2010-06-03 Jan Hubicka <jh@suse.cz>
16021 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16022 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16024 2010-06-03 Paul Brook <paul@codesourcery.com>
16026 * config/arm/arm.c (FL_TUNE): Define.
16027 (arm_default_cpu, arm_cpu_select): Remove.
16028 (all_cores): Populate core field.
16029 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16030 (arm_find_cpu): New function.
16031 (arm_handle_option): Lookup cpu/architecture names.
16032 (arm_override_options): Cleanup mcpu/march/mtune handling.
16033 (arm_file_start): Ditto.
16035 2010-06-03 Alan Modra <amodra@gmail.com>
16038 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16039 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16040 rtx to gen_load_toc_v4_PIC_1b. Tidy.
16041 (rs6000_emit_load_toc_table): Likewise.
16043 2010-06-02 Jan Hubicka <jh@suse.cz>
16045 * passes.c (init_optimization_passes): Put ipa reference
16046 after ipa pure-const.
16048 2010-06-02 Jan Hubicka <jh@suse.cz>
16050 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16051 calls_read_all and calls_write_all.
16052 (get_reference_optimization_summary): Fix formatting.
16053 (is_proper_for_analysis): Check that decl is not readonly.
16054 (propagate_bits): Check CONST/PURE/noreturn flags.
16055 (ipa_init): Move all_module_statics to optimization_summary_obstack.
16056 (analyze_function): Ignore indirect edges.
16057 (copy_global_bitmap): For all module statics, do nothing.
16058 (generate_summary): Do not print calls_read_all/calls_write_all.
16059 (read_write_all_from_decl): Take node as argument; check
16060 cgraph_node_cannot_return.
16061 (propagate): Reorganize read_all/write_all computation;
16062 check indirect edges; check ecf flags; use all_module_statics
16063 in the results; do not free all_module_statics.
16064 (stream_out_bitmap): Handle all_module_statics.
16065 (ipa_reference_write_optimization_summary): Likewise; use
16066 varpool/cgraph encoders to get boundaries.
16067 (ipa_reference_read_optimization_summary): Read in all_module_statics;
16068 use it when possible.
16070 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16073 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16074 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16076 * doc/extend.texi (powerpc builtins): Document vec_recip,
16077 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16079 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16080 (rs6000_emit_swrsqrt): Ditto.
16081 (rs6000_emit_swdivsf): Delete.
16082 (rs6000_emit_swdivdf): Ditto.
16083 (rs6000_emit_swrsqrtsf): Ditto.
16085 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16086 describe the reciprocal estimate support for each type.
16087 (recip_options): Map -mrecip=<opt> into option bits.
16088 (gen_2arg_fn_t): New typedef for binary rtx gen function.
16089 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16090 reciprocal estimate instructions.
16091 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16092 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16093 Set up rs6000_recip_bits based on the -mrecip* options. Print the
16094 cost information if -mdebug=cost or -mdebug=reg.
16095 (rs6000_override_options): Set -mrecip-precision for power6, and
16096 power7 machines. If -mvsx or -mdfp, enable various options that
16097 came in previous instruction set ISAs, unless the option was
16098 explicitly disabled by the command line option. Parse
16099 -mrecip=<opt> options.
16100 (rs6000_builtin_vectorized_function): Add support for vectorizing
16101 the reciprocal estimate builtins and expansions.
16102 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16103 (bdesc_2arg): Add reciprocal estimate builtins.
16104 (bdesc_1arg): Add reciprocal square root estimate builtins.
16105 (rs6000_expand_builtin): Rewrite to use a switch statement,
16106 instead of multiple if/then/elses. Add reciprocal estimate builtins.
16107 (rs6000_init_builtins): Create declarations for reciprocal
16109 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16110 sized, prefer traditional floating point registers, if integer
16111 vector types, prefer altivec registers. Don't actually look at
16112 the memory address any more.
16113 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16115 (rs6000_load_constant_and_splat): New helper function to load up
16116 the constant for reciprocal estimate instructions.
16117 (rs6000_emit_madd): New helper function for generating
16118 multiply/add type instructions, based on the current switches.
16119 (rs6000_emit_msub): Ditto.
16120 (rs6000_emit_mnsub): Ditto.
16121 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16122 replace a divide with a reciprocal estimate and fixup, adding
16123 support for machines with high precision and vectors.
16124 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16125 low precision machines.
16126 (rs6000_emit_swdiv): New common function to be called to replace a
16127 division with reciprocal estimate and fixup.
16128 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
16129 for double and vector types. Add support for high precision machines.
16131 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16132 the reciprocal estimate instructions can be generated.
16133 (TARGET_FRE): Ditto.
16134 (TARGET_FRSQRTES): Ditto.
16135 (TARGET_FRSQRTE): Ditto.
16136 (RS6000_RECIP_*): New macros for reciprocal estimate support.
16138 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16139 square root estimate on vectors.
16140 (re<mode>2): New insn for reciprocal division estimate on vectors.
16142 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16144 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16145 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16146 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16147 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16148 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16149 (RS6000_BUILTIN_RSQRT): Ditto.
16150 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16151 floating point builtin.
16153 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16154 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16155 __RECIP_PRECISION__ based on the command line switches.
16156 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16158 * config/rs6000/rs6000.opt (-mrecip): Document add support for
16159 replacing division instructions with reciprocal estimate and fixup.
16160 (-mrecip=<opt>): New option.
16161 (-mrecip-precision): Ditto.
16163 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16164 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16165 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16168 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16169 (UNSPEC_VREFP): Ditto.
16170 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16171 conterparts with regard to support of -mno-fused-madd and -ffast-math.
16172 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16173 reciprocal estimate instructions to be generated.
16174 (altivec_vrefp): Ditto.
16176 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16178 (rreg): New mode attribute for reciprocal estimate support.
16179 (recip<mode>3): New insn for division using reciprocal estimate
16180 and fixup builtins.
16181 (divide define_split): New define_split to convert floating point
16182 division to use reciprocal estimate if the user used the
16183 appropriate options and the split is run when we can add new
16184 pseudo registers for the fixup.
16185 (rsqrt<mode>2): New insn for reciprocal square root support.
16186 (recipsf3): Move into recip<mode>3.
16188 (fres): Use TARGET_FRES.
16189 (rsqrtsf2): Move into rsqrt<mode>2.
16190 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16191 (copysignsf3): Add support for VSX.
16192 (fred): Use TARGET_FRE.
16194 (rsqrtdf_internal1): New function for frsqrte instruciton.
16196 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16197 (vec_rsqrt): Ditto.
16199 2010-06-03 Richard Guenther <rguenther@suse.de>
16201 PR middle-end/44291
16202 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16203 (set_user_assembler_libfunc): Likewise.
16205 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16207 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16209 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16211 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16212 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16213 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16214 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16215 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16216 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16217 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16218 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16219 * defaults.h: Updated for above mentioned changes.
16221 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
16223 * c-common.c: Remove header include of tm_p.h.
16224 * Makefile.in (c-common.o): Remove TM_P_H dependency.
16226 2010-06-02 Jakub Jelinek <jakub@redhat.com>
16228 * tree.h (struct tree_decl_map): New type.
16229 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16230 (tree_decl_map_hash): New prototype.
16231 (debug_expr_for_decl, value_expr_for_decl): Change into
16232 tree_decl_map hashtab from tree_map.
16233 (init_ttree): Adjust initialization.
16234 (tree_decl_map_hash): New function.
16235 (decl_debug_expr_lookup, decl_debug_expr_insert,
16236 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16238 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16240 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16242 * configure: Regenerate.
16243 * config.in: Regenerate.
16245 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16246 (X86_64_EMULATION): Define.
16247 (TARGET_LD_EMULATION): Use them.
16249 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16250 (SPARC64_EMULATION): Define.
16251 (LINK_ARCH_SPEC): Use them.
16253 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16255 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16256 smallest_mode_for_size for computing the precision types of new
16257 graphite IVs. Do not call lang_hooks.types.type_for_size.
16259 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16261 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16263 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16265 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16267 PR middle-end/44363
16268 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16269 return false instead.
16271 2010-06-02 Jan Hubicka <jh@suse.cz>
16273 PR middle-end/44295
16274 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16275 create new cgraph node to check callee.
16277 2010-06-02 Richard Guenther <rguenther@suse.de>
16279 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16281 2010-06-02 Richard Guenther <rguenther@suse.de>
16283 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16284 (lto_wrapper_cleanup): ... this. Do not exit.
16285 (fatal): Adjust. Exit here.
16286 (fatal_perror): Likewise.
16287 (fatal_signal): New function.
16288 (main): Set up signal handlers to cleanup temporary files.
16289 * Makefile.in (lto-wrapper.o): Adjust dependencies.
16291 2010-06-02 Richard Guenther <rguenther@suse.de>
16293 PR tree-optimization/44377
16294 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16296 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16298 * config/s390/2097.md (z10_fhex): Remove insn reservation.
16299 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16300 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16301 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16303 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16305 2010-06-02 Jan Hubicka <jh@suse.cz>
16307 * bitmap.c (bitmap_descriptor): Add search_iter.
16308 (bitmap_find_bit): Increment it.
16309 (print_statistics): Print it.
16311 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
16313 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16314 instead of gimple_build_call_vec. Delete unnecessary local variable.
16316 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16318 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16319 change from yesterday.
16321 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16323 * c-ada-spec.c: Clean up redundant includes.
16325 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
16327 * gimplify.c: Do not include except.h and optabs.h.
16328 (gimplify_body): Do not initialize RTL profiling.
16329 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16330 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16331 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16332 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16335 * tree-pretty-print.h: Include pretty-print.h.
16336 * gimple-pretty-print.h: Include pretty-print.h.
16338 * tree-pretty-print.c: Do not include diagnostic.h.
16339 * tree-vrp.c: Likewise.
16340 * tree-tailcall.c: Likewise
16341 * tree-scalar-evolution.c: Likewise
16342 * tree-ssa-dse.c: Likewise
16343 * tree-chrec.c: Likewise
16344 * tree-ssa-sccvn.c: Likewise
16345 * tree-ssa-copyrename.c: Likewise
16346 * tree-nomudflap.c: Likewise
16347 * tree-call-cdce.c: Likewise
16348 * tree-stdarg.c: Likewise
16349 * tree-ssa-math-opts.c: Likewise
16350 * tree-nrv.c: Likewise
16351 * tree-ssa-sink.c: Likewise
16352 * tree-browser.c: Likewise
16353 * tree-ssa-loop-ivcanon.c: Likewise
16354 * tree-ssa-loop.c: Likewise
16355 * tree-parloops.c: Likewise
16356 * tree-ssa-address.c: Likewise
16357 * tree-ssa-ifcombine.c: Likewise
16358 * tree-if-conv.c: Likewise
16359 * tree-data-ref.c: Likewise
16360 * tree-affine.c: Likewise
16361 * tree-ssa-phiopt.c: Likewise
16362 * tree-ssa-coalesce.c: Likewise
16363 * tree-ssa-pre.c: Likewise
16364 * tree-ssa-live.c: Likewise
16365 * tree-predcom.c: Likewise
16366 * tree-ssa-forwprop.c: Likewise
16367 * tree-ssa-dce.c: Likewise
16368 * tree-ssa-ter.c: Likewise
16369 * tree-ssa-loop-prefetch.c: Likewise
16370 * tree-optimize.c: Likewise
16371 * tree-ssa-phiprop.c: Likewise
16372 * tree-object-size.c: Likewise
16373 * tree-outof-ssa.c: Likewise
16374 * tree-ssa-structalias.c: Likewise
16375 * tree-switch-conversion.c: Likewise
16376 * tree-ssa-reassoc.c: Likewise
16377 * tree-ssa-operands.c: Likewise
16378 * tree-vectorizer.c: Likewise
16379 * tree-vect-data-refs.c: Likewise
16380 * tree-vect-generic.c: Likewise
16381 * tree-vect-stmts.c: Likewise
16382 * tree-vect-patterns.c: Likewise
16383 * tree-vect-slp.c: Likewise
16384 * tree-vect-loop.c: Likewise
16385 * tree-ssa-loop-ivopts.c: Likewise
16386 * tree-ssa-loop-im.c: Likewise
16387 * tree-ssa-loop-niter.c: Likewise
16388 * tree-ssa-loop-unswitch.c: Likewise
16389 * tree-ssa-loop-manip.c: Likewise
16390 * tree-ssa-loop-ch.c: Likewise
16391 * tree-dump.c: Likewise
16392 * tree-complex.c: Likewise
16394 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16395 * tree-ssa-uninit.c: Likewise
16396 * tree-ssa-threadupdate.c: Likewise
16397 * tree-ssa-uncprop.c: Likewise
16398 * tree-ssa-ccp.c: Likewise
16399 * tree-ssa-dom.c: Likewise
16400 * tree-ssa-propagate.c: Likewise
16401 * tree-ssa-alias.c: Likewise
16402 * tree-dfa.c: Likewise
16403 * tree-cfgcleanup.c: Likewise
16404 * tree-sra.c: Likewise
16405 * tree-ssa-copy.c: Likewise
16406 * tree-ssa.c: Likewise
16407 * tree-profile.c: Likewise
16408 * tree-cfg.c: Likewise
16409 * tree-ssa-threadedge.c: Likewise
16410 * tree-vect-loop-manip.c: Likewise
16412 * tree-inline.c: Do not include diagnostic.h and expr.h.
16414 (copy_decl_for_dup_finish): Do not use NULL_RTX.
16416 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16417 * tree-loop-distribution.c: Likewise.
16419 2010-06-01 Jan Hubicka <jh@suse.cz>
16421 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16423 2010-06-01 Jan Hubicka <jh@suse.cz>
16425 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16426 remove return value.
16427 (split_bbs_on_noreturn_calls) .... here.
16428 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16429 * tree-flow.h (fixup_noreturn_call): New.
16431 2010-06-01 Jan Hubicka <jh@suse.cz>
16433 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16435 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
16437 * tree.h (build_nt_call_list): Delete.
16438 * tree.c (build_nt_call_list): Delete.
16440 2010-06-01 Jan Hubicka <jh@suse.cz>
16442 * fwprop.c: Make emit-rtl.h include last.
16443 * rtlanal.c: Include emit-rtl.h.
16444 * genautomata.c: Output emit-rtl include into insn-automata.c
16445 * df-scan.c: Include emit-rtl.h.
16446 * haifa-sched.c: Indlude emit-rtl.h.
16447 * mode-switching.c: Indlude emit-rtl.h.
16448 * graph.c: Indlude emit-rtl.h.
16449 * sel-sched.c: Include emit-rtl.h.
16450 * sel-sched-ir.c: Include emit-rtl.h.
16451 * ira-build.c: Include emit-rtl.h.
16452 * emit-rtl.c (first_insn, last_insn): Remove defines.
16453 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16454 Move to emit-rtl.h.
16455 (set_new_first_and_last_insn, get_last_insn_anywhere,
16456 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16457 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16458 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16459 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16460 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16461 Use accessor functions.
16462 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16463 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16464 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16465 mem_expr_equal_p): Move here from rtl.h.
16466 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
16467 Move here from emit-rtl.c; make inline.
16468 * cfglayout.h: Include emit-rtl.h.
16469 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16470 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16471 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16472 mem_expr_equal_p, get_insns, set_first-insn,
16473 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
16474 * reg-stack.c: Include emit-rtl.h.
16477 2010-06-01 Jan Hubicka <jh@suse.cz>
16479 * cgraph.h (tree_function_versioning): Update prototype.
16480 (cgraph_function_versioning): Update prototype.
16481 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
16483 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
16484 (cgraph_materialize_clone, save_inline_function_body): Update use of
16485 tree_function_versioning.
16486 * tree-inline.c (copy_bb): Look for previous copied block to link
16487 after; fix debug output.
16488 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
16489 (copy_body): Likewise.
16490 (expand_call_inline): Update use of copy_body.
16491 (tree_function_versioning): Update use of copy body; accept
16492 blocks_to_copy and new_entry.
16494 2010-06-01 Jan Hubicka <jh@suse.cz>
16496 * gegenrtl.c: Remove unnecesary prototypes.
16498 (gendef): Produce static inline.
16500 (main): Do not decode parameters; generate header only.
16501 * Makefile.in (genrtl.c): Remove.
16503 2010-06-01 Jan Hubicka <jh@suse.cz>
16505 * tree-switch-conversion.c (build_one_array): Make it readonly.
16507 2010-06-01 Richard Guenther <rguenther@suse.de>
16509 * optabs.c (init_optabs): Guard all accesses to reinit.
16510 * ipa-pure-const.c (propagate): Fix another typo.
16511 * opts.c (common_handle_option): Split assignment to bool.
16512 * c-opts.c (c_common_handle_option): Likewise.
16514 2010-06-01 Arnaud Charlet <charlet@adacore.com>
16515 Matthew Gingell <gingell@adacore.com>
16517 * doc/invoke.texi: Mention -fdump-ada-spec.
16518 * tree-dump.c (dump_files): Add ada-spec.
16519 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
16520 * tree-pass.h (tree_dump_index): Add TDI_ada.
16521 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
16522 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
16523 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
16524 * c-decl.c: Include c-ada-spec.h.
16525 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
16527 (c_write_global_declarations): Add handling of -fdump-ada-spec.
16528 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
16529 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
16530 * c-ada-spec.h, c-ada-spec.c: New files.
16532 2010-06-01 Richard Guenther <rguenther@suse.de>
16535 * ipa-pure-const.c (get_function_state): Hand back varying state
16536 if we do not have one.
16537 (has_function_state): New function.
16538 (duplicate_node_data): Adjust.
16539 (remove_node_data): Likewise.
16540 (pure_const_write_summary): Likewise.
16541 (propagate): Likewise. Fix typo.
16543 2010-06-01 Jan Hubicka <jh@suse.cz>
16545 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
16546 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
16547 (execute_all_ipa_transforms): Do not play with the states.
16549 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16551 * config/arm/t-linux-androideabi: New.
16552 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
16554 2010-06-01 Jan Hubicka <jh@suse.cz>
16556 * tree-inline.c (estimate_num_insns): For stdarg functions look
16557 into call statement to count cost of argument passing.
16559 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
16561 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
16562 argument for fprintf.
16563 (ix86_output_addr_diff_elt): Likewise.
16564 (x86_function_profiler): Likewise.
16565 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
16566 (LPREFIX): Likewise.
16567 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
16569 2010-05-31 Jakub Jelinek <jakub@redhat.com>
16572 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
16573 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
16574 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
16575 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
16576 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
16577 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
16578 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
16579 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
16582 2010-05-31 Jan Hubicka <jh@suse.cz>
16584 * tree.h (tree_range_check_failed): Declare noreturn.
16586 2010-05-31 Jan Hubicka <jh@suse.cz>
16588 * gimple.c (gimple_call_builtin_p): New function.
16589 * gimple.h (gimple_call_builtin_p): Declare.
16590 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
16592 (execute_warn_function_return): BUILT_IN_RETURN is return.
16593 (split_critical_edges): Return edges are not critical.
16594 (is_ctrl_altering_stmt): Builtin_in_return is altering.
16595 (gimple_verify_flow_info): Handle built_in_return.
16596 (execute_warn_function_return): Handle built_in_return.
16597 * ipa-pure-const.c (check_call): Ignore builtin_return.
16599 2010-05-31 Jakub Jelinek <jakub@redhat.com>
16601 PR middle-end/44337
16602 * expr.c (expand_assignment): Don't store anything for out-of-bounds
16603 array accesses with non-MEM.
16605 PR tree-optimization/44182
16606 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
16607 newly needs to end a bb is followed by debug stmts, instead return
16608 true from the function at the end.
16609 (maybe_move_debug_stmts_to_successors): New function.
16610 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
16612 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
16615 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
16617 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
16619 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
16620 for nested functions in non-optimized compilation.
16622 2010-05-31 Richard Guenther <rguenther@suse.de>
16624 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
16626 2010-05-30 Jan Hubicka <jh@suse.cz>
16628 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
16630 2010-05-30 Richard Guenther <rguenther@suse.de>
16633 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
16634 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
16637 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
16639 * config/darwin.c (output_objc_section_asm_op): Add comment.
16640 (name_needs_quotes): Add '_' to list of valid comment chars.
16641 (machopic_output_function_base_name): Remove unneeded quotes.
16642 (darwin_encode_section_info): Adjust asm whitespace.
16643 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
16644 (ASM_OUTPUT_LOCAL): Ditto.
16645 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
16646 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
16647 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
16649 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
16651 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
16652 RS6000_OUTPUT_BASENAME unconditionally.
16653 (rs6000_output_function_epilogue): Likewise.
16655 2010-05-30 Jan Hubicka <jh@suse.cz>
16657 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
16660 2010-05-30 Richard Guenther <rguenther@suse.de>
16662 * tree-cfg.c (verify_gimple_assign_single): Implement
16663 verification for COND_EXPR rhs.
16665 2010-05-30 Jan Hubicka <jh@suse.cz>
16667 * cgraph.h (cgraph_dump_file): Declare.
16668 * cgraphunit.c (cgraph_dump_file): Export.
16669 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
16671 2010-05-30 Jan Hubicka <jh@suse.cz>
16673 * dwarf2out.c (reference_to_unused,
16674 premark_types_used_by_global_vars_helper): Avoid creation of new
16677 2010-05-30 Jan Hubicka <jh@suse.cz>
16679 * cgraph.h (cgraph_node_cannot_return,
16680 cgraph_edge_cannot_lead_to_return): New functions.
16681 * cgraph.c (cgraph_node_cannot_return,
16682 cgraph_edge_cannot_lead_to_return): Use them.
16683 * ipa-pure-const.c (pure_const_names): New static var.
16684 (check_call): Handle calls not leading to return.
16685 (pure_const_read_summary): Dump info read.
16686 (propagate): Dump info about propagation process; ignore side effects
16687 of functions not leading to exit; fix handling of pure functions.
16689 2010-05-30 Jan Hubicka <jh@suse.cz>
16691 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
16692 for tail call epilogues.
16694 2010-05-30 Jan Hubicka <jh@suse.cz>
16696 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
16697 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
16700 2010-05-29 Jan Hubicka <jh@suse.cz>
16702 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
16703 node; remove references in node we no longer keep in cgrpah but need
16706 2010-05-29 Jan Hubicka <jh@suse.cz>
16708 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
16710 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16713 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
16715 2010-05-29 Jan Hubicka <jh@suse.cz>
16717 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
16718 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
16719 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
16720 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
16721 debug_names_replaced_by, debug_update_ssa): Likewise.
16722 * sbitmap.c (debug_sbitmap): Likewise.
16723 * genrecog.c (debug_decision, debug_decision_list): Likewise.
16724 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
16725 debug_tree_chain): Likewise.
16726 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
16727 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
16728 * optabs.c (debug_optab_libfuncs): Likewise.
16729 (verify_loop_closed_ssa): Likewise.
16730 * value-prof.c (verify_histograms): Likewise.
16731 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
16732 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
16733 * cfghooks.c (verify_flow_info): Likewise.
16734 * fold-const.c (debug_fold_checksum): Likewise.
16735 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
16736 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
16738 * omega.c (debug_omega_problem): Likewise.
16739 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
16740 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
16741 * dominance.c (verify_dominators, debug_dominance_info,
16742 debug_dominance_tree): Likewise.
16743 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
16744 * df_regno_debug, df_ref_debug,
16745 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
16746 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
16747 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
16748 * sel-sched.c (debug_state): Likewise.
16749 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
16751 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
16752 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
16753 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
16754 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
16756 * c-pretty-print.c (debug_c_tree): Likewise.
16757 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
16758 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
16759 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
16760 * ebitmap.c (debug_ebitmap): Likewise.
16761 * function.c (debug_find_var_in_block_tree): Likewise.
16762 * print-rtl.c (debug_rtx): Likewise.
16763 (debug_rtx_count): Likewise.
16764 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
16765 * stor-layout.c (debug_rli): Likewise.
16766 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
16767 * tree-data-ref.c (debug_data_references,
16768 debug_data_dependence_relations, debug_data_reference,
16769 debug_data_dependence_relation, debug_rdg_vertex,
16770 debug_rdg_component, debug_rdg): Likewise.
16771 * tree-affine.c (debug_aff): Likewise.
16772 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
16774 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
16775 * emit-rtl.c (verify_rtl_sharing): Likewise.
16776 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
16777 debug_value_expressions): Likewise.
16778 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
16779 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
16780 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
16781 * cfglayout.c (verify_insn_chain): Likewise.
16782 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
16783 debug_clast_stmt, debug_generated_program): Likewise.
16784 * ggc-page.c (debug_print_page_list): Likewise.
16785 * tree-ssa-ter.c (debug_ter): Likewise.
16786 * graphite-dependences.c (debug_pddr): Likewise.
16787 * sched-deps.c (debug_ds): Likewise.
16788 * tree-ssa.c (verify_ssa): Likewise.
16789 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
16790 debug_scattering_functions, debug_iteration_domains, debug_pdr,
16791 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
16792 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
16793 * tree-inline.c (debug_find_tree): Likewise.
16794 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
16795 debug_ppl_powerset_matrix): Likewise.
16796 * var-tracking.c (debug_dv): Likewise.
16797 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
16798 * cfgloop.c (verify_loop_structure): Likewise.
16799 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
16800 * c-common.c (verify_sequence_points): Likewise.
16801 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
16802 debug_candidates, debug_rgn_dependencies): Likewise.
16803 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
16804 * debug_constraint_graph, debug_solution_for_var,
16805 debug_sa_points_to_info): Likewise.
16806 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
16808 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
16809 debug_loops, debug_loop, debug_loop_num): Likewise.
16810 * passes.c (debug_pass): Likewise.
16811 (dump_properties): Likewise; add cfglayout property.
16812 (debug_properties): Likewise.
16813 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
16814 * varpool.c (debug_varpool): Likewise.
16815 * regcprop.c (debug_value_data): Likewise.
16816 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
16817 debug_immediate_uses_for): Likewise.
16819 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
16822 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
16823 Filter out insn-flags.h.
16825 2010-05-29 Jan Hubicka <jh@suse.cz>
16827 * cgraph.h (struct varpool_node_set_def,
16828 struct cgraph_node_set_def): Remove unused AUX pointer.
16829 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
16832 2010-05-29 Jan Hubicka <jh@suse.cz>
16834 PR middle-end/44324
16835 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
16837 2010-05-29 Richard Guenther <rguenther@suse.de>
16839 * lto-streamer.c (cached_bp): New global variable.
16840 (bitpack_create): Return the cached bitpack, if available.
16841 (bitpack_delete): Clear and cache the bitpack, if appropriate.
16842 (bp_pack_value): Remove redundant asserts.
16844 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
16846 PR middle-end/44306
16847 * tree-if-conv.c (is_true_predicate): New.
16848 (is_predicated): Use is_true_predicate.
16849 (add_to_predicate_list): Same. Do not use unshare_expr.
16850 (add_to_dst_predicate_list): Same.
16852 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
16854 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
16856 (predicate_bbs): Same.
16857 (clean_predicate_lists): Same.
16858 (find_phi_replacement_condition): Do not AND the predicate from
16861 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
16864 * Makefile.in (build/gencondmd.o): Add a missing `\'.
16866 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16869 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
16870 (negdf2): Adjust expander pattern and use negdf2_slow.
16871 (negsf2): Likewise.
16873 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
16875 * basic-block.h (struct control_flow_graph): Move last_label_uid field
16877 * df.h (struct df_base_ref): Move regno field up.
16878 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
16879 * expr.h (struct separate_ops): Move location field up.
16880 * optabs.h (struct optab_d): Move libcall_basename field down.
16881 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
16882 * config/i386/i386.h (struct machine_function): Convert call_abi field
16883 into a bitfield. Move cfa field to the end of the structure.
16885 2010-05-29 Jan Hubicka <jh@suse.cz>
16887 * varpool.c (varpool_get_node): Fix lookup.
16889 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
16891 * config/spu/spu-protos.h: Do not include rtl.h. Protect
16892 RTL specific prototypes with #ifdef RTX_CODE.
16893 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
16894 * config/spu/t-spu-elf: Fix dependencies.
16896 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
16898 2010-05-29 Mike Stump <mikestump@comcast.net>
16901 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
16902 TM_H when building to avoid dependency loops.
16904 2010-05-29 Jan Hubicka <jh@suse.cz>
16906 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
16907 refs and body; not the whole node for masters of materialized clones.
16909 2010-05-29 Mike Stump <mikestump@comcast.net>
16911 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
16913 2010-05-29 Jan Hubicka <jh@suse.cz>
16915 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
16916 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
16917 use of clone_function_name.
16918 * cgraph.h (cgraph_create_virtual_clone,
16919 cgraph_function_versioning): update prototypes.
16920 (clone_function_name): Declare.
16921 * ipa-cp.c (ipcp_insert_stage): Update call of
16922 cgraph_create_virtual_clone.
16923 * omp-low.c (create_omp_child_function_name): Use
16924 cgraph_create_virtual_clone.
16925 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
16926 (cgraph_function_versioning): Take SUFFIX argument; produce new name
16927 and make decl local.
16929 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
16931 * vec.h: Include statistics.h
16932 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
16935 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
16937 * c-lex.c: Do not include c-tree.h.
16938 * c-pretty-print.c: Likewise.
16939 * c-opts.c: Likewise.
16940 * c-gimplify.c: Likewise.
16941 * c-common.c: Likewise.
16942 * c-dump.c: Likewise. Include c-common.h.
16944 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
16946 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
16947 before including diagnostic-core.h.
16948 (c_cpp_error): New prototype moved from c-tree.h.
16949 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
16950 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
16951 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
16952 (c_cpp_error): Prototype moved to c-common.h.
16953 * Makefile.in: Update dependency for C_COMMON_H.
16955 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
16957 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
16958 * c-common.c (c_register_addr_space): Remove here.
16959 * c-decl.c (c_register_addr_space): Re-add here.
16961 2010-05-28 Mike Stump <mikestump@comcast.net>
16963 * config/darwin-c.c: Remove c-tree.h include.
16965 2010-05-28 Joseph Myers <joseph@codesourcery.com>
16967 * gcc.c: Include diagnostic.h.
16968 (error_count): Remove. All users changed to use errorcount.
16969 (programname): Remove. All users changed to use progname.
16970 (fancy_abort, internal_error, fatal_error, error, warning, inform,
16972 (execute): Don't include "Internal error" and bug reporting
16973 information in argument of internal_error call.
16974 (process_command): Don't increment error_count after calling
16976 (input_filename): Rename to gcc_input_filename. All users
16978 (main): Call diagnostic_initialize. Register delete_temp_files
16979 with atexit. Use seen_error to test for errors.
16980 * gcc.h: Include diagnostic-core.h.
16981 (fatal_error, error, warning): Remove.
16982 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
16983 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
16984 (gcc.o): Update dependencies.
16986 2010-05-28 Jeff Law <law@redhat.com>
16988 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
16990 * ira.h (ira_bad_reload_regno): Declare
16991 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
16993 * ira-color.c (update_curr_costs): Free updated hard reg costs.
16994 (ira_reassign_conflict_allocnos): Remove bogus asserts.
16995 (allocno_reload_assign): Likewise.
16997 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
16999 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17002 2010-05-28 Richard Guenther <rguenther@suse.de>
17005 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17006 Stream fixed-point constants mode.
17007 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17008 and TYPE_PRECISION.
17009 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17010 Stream fixed-point constants mode.
17011 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17012 and TYPE_PRECISION.
17014 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17016 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17017 only place it was called from.
17018 (number_of_latch_executions): Do not return chrec_dont_know when the
17019 may_be_zero is a runtime condition: instead, return a COND_EXPR
17020 including the may_be_zero condition.
17021 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17023 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17026 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17028 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17029 generate COND_EXPRs for degenerate_phi_result.
17031 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17033 PR middle-end/44293
17034 * tree-if-conv.c (if_convertible_loop_p): Check the
17035 if-convertibility of phi nodes in non predicated BBs.
17037 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17039 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17041 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17044 * gcc.c (inform, warning, inform): New functions.
17045 (fatal_ice): Rename to internal_error; change cmsgid parameter to
17046 gmsgid. All callers changed.
17047 (notice): Rename to fnotice; add parameter fp. All callers changed.
17048 (fatal_error): Rename to fatal_signal. All users changed.
17049 (fatal): Rename to fatal_error; change cmsgid parameter to
17050 gmsgid. All callers changed.
17051 (process_command): Use warning instead of error for warnings.
17052 (end_going_arg): Don't use _() around argument of error.
17053 (do_spec_1): Use inform for message from %n specs. Use warning
17054 instead of error for warnings.
17055 (main): Use inform for comparison messages. Use warning for
17056 message about unused linker input.
17057 (error): Increment error_count. Print "error: ".
17058 * gcc.h (fatal): Change to fatal_error.
17059 (warning): Declare.
17060 * config/darwin-driver.c (darwin_default_min_version): Use warning
17061 instead of fprintf for warnings.
17062 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17064 2010-05-28 Julian Brown <julian@codesourcery.com>
17066 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17067 (*thumb2_addsi3_compare0_scratch): New.
17068 * config/arm/constraints.md (Pv): New.
17069 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17071 (*addsi3_compare0_scratch): Likewise.
17073 2010-05-28 Jan Hubicka <jh@suse.cz>
17075 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17077 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17078 only on local statics.
17080 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
17082 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17084 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
17087 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17088 (OPTION_GLIBC): Define.
17090 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17093 * dwarf2out.c (double_int_type_size_in_bits): New function.
17094 (round_up_to_align): Change first argument and return value to
17096 (field_byte_offset): Work internally on double_ints.
17099 * builtins.c (expand_movstr): Use a temporary pseudo instead
17100 of target even when target is not NULL and not const0_rtx, but
17101 fails movstr predicate.
17102 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17104 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17106 * final.c (rest_of_clean_state): Use %m in errors instead of
17108 * gengtype.c (read_input_list, close_output_files): Use xstrerror
17109 instead of strerror.
17110 * toplev.c (process_options): Use %m in errors instead of strerror
17112 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17115 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
17117 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17118 (ix86_canonical_va_list_type): Make static. Add declaration.
17119 (ix86_enum_va_list): Make static. Reindent.
17120 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17121 (ix86_canonical_va_list_type): Ditto.
17122 (ix86_enum_va_list): Ditto.
17124 2010-05-28 Richard Guenther <rguenther@suse.de>
17126 * lto-wrapper.c (run_gcc): With -save-temps generate a
17127 user-visible ltrans filename. Fixup ltrans unit numbering.
17129 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
17131 * c-common.c (c_common_nodes_and_builtins): Replace use
17132 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17133 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17134 to ix86_enum_va_list.
17135 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17136 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17137 (TARGET_ENUM_VA_LIST_P): Add hook description.
17138 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17139 * target.h (gcc_target): Add enum_va_list hook.
17142 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17143 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17144 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17146 2010-05-28 Alan Modra <amodra@gmail.com>
17149 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17150 emit_library_call machinery to set up __tls_get_addr calls.
17152 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17154 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17156 2010-05-28 Dodji Seketeli <dodji@redhat.com>
17158 Revert fix for PR c++/44188
17159 * c-common.c (is_typedef_decl): Revert the moving of this
17161 * tree.c (is_typedef_decl): ... here.
17162 (typdef_variant_p): Revert the moving of this definition
17163 here from cp/tree.c.
17164 * c-common.h (is_typedef_decl): Revert the moving of this
17166 * tree.h (is_typedef_decl): ... here.
17167 (typedef_variant_p): Revert the moving of this declaration here
17169 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17170 (gen_tagged_type_die): Revert the splitting out of ...
17171 (gen_type_die_with_usage): ... this function. Revert the anonymous
17172 tagged type handling.
17173 (gen_typedef_die): Revert emitting DW_TAG_typedef for
17174 typedefs naming anonymous tagged types.
17176 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17178 * config/rs6000/rs6000-modes.def (PSImode): Delete.
17180 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17182 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17183 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17185 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17187 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17188 XER_REGS to CA_REGS throughout.
17189 * config/rs6000/rs6000.h: Same.
17190 (ADDITIONAL_REGISTER_NAMES): Add "xer".
17191 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
17192 that mode_iterator "P" is the size for arithmetic carries as well.
17193 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17195 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17198 * combine.c (struct rtx_subst_pair): Define unconditionally.
17199 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
17200 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17201 Call make_compound_operation on pair->to.
17202 (propagate_for_debug): Don't call make_compound_operation here.
17203 Always use simplify_replace_fn_rtx.
17205 2010-05-27 Sterling Augustine <sterling@tensilica.com>
17207 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17208 * config/xtensa/xtensa.c (override_options): Check
17209 TARGET_FORCE_NO_PIC and set flag_pic.
17210 * config/xtensa/xtensa.opt: Document -mforce-no-pic
17212 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17215 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17216 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17218 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17220 * diagnostic-core.h: New. Contents moved from diagnostic.h and
17222 * diagnostic.c: Don't include toplev.h.
17223 (progname): Define. Moved from toplev.c.
17224 (seen_error): New function.
17225 * diagnostic.h: Include diagnostic-core.h.
17226 (diagnostic_t, emit_diagnostic): Don't declare here.
17227 * toplev.c (progname): Move to toplev.c.
17228 (emit_debug_global_declarations, compile_file, finalize,
17229 do_compile, toplev_main): Use seen_error.
17230 * toplev.h: Include diagnostic-core.h.
17231 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17232 internal_error, warning, warning_at, error, error_n, error_at,
17233 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17234 verbatim, fnotice, progname): Move to diagnostic-core.h.
17235 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17236 (expand_builtin_expect): Use seen_error.
17237 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17238 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17239 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17240 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17241 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17242 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17243 errorcount for errors.
17244 * c-opts.c (c_common_finish): Use seen_error.
17245 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17246 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17247 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17248 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17249 (get_coverage_counts): Use seen_error.
17250 * dwarf2out.c (dwarf2out_finish): Use seen_error.
17251 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17252 gimplify_body): Use seen_error.
17253 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17254 * ipa-pure-const.c (gate_pure_const): Use seen_error.
17255 * ipa-reference.c (gate_reference): Use seen_error.
17256 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17257 * lambda-code.c: Include diagnostic-core.h instead of
17259 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17260 * lto-compress.c: Include diagnostic-core.h instead of
17262 * lto-section-in.c: Include diagnostic-core.h instead of
17264 * lto-streamer-out.c: Include diagnostic-core.h instead of
17266 * lto-streamer.c: Include diagnostic-core.h instead of
17268 (gate_lto_out): Use seen_error.
17269 * matrix-reorg.c: Include diagnostic-core.h instead of
17271 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17272 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17273 (gate_expand_omp, lower_omp_1): Use seen_error.
17274 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17275 (rest_of_decl_compilation, rest_of_type_compilation,
17276 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17277 * tree-cfg.c (label_to_block_fn): Use seen_error.
17278 * tree-inline.c (optimize_inline_calls): Use seen_error.
17279 * tree-mudflap.c (mudflap_finish_file): Use
17281 * tree-optimize.c (gate_all_optimizations,
17282 gate_all_early_local_passes, gate_all_early_optimizations): Use
17284 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17285 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17286 (varpool_remove_unreferenced_decls,
17287 varpool_assemble_pending_decls): Use seen_error.
17288 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17289 (TOPLEV_H, DIAGNOSTIC_H): Update.
17290 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17291 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17292 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17293 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17294 coverage.o, lambda-code.o): Update dependencies.
17296 2010-05-25 Dodji Seketeli <dodji@redhat.com>
17299 * c-common.c (is_typedef_decl): Move this definition ...
17300 * tree.c (is_typedef_decl): ... here.
17301 (typdef_variant_p): Move definition here from cp/tree.c.
17302 * c-common.h (is_typedef_decl): Move this declaration ...
17303 * tree.h (is_typedef_decl): ... here.
17304 (typedef_variant_p): Move declaration here from cp/cp-tree.h
17305 * dwarf2out.c (is_naming_typedef_decl): New function.
17306 (gen_tagged_type_die): Split out of ...
17307 (gen_type_die_with_usage): ... this function. When an anonymous
17308 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17309 is emitted for the typedef.
17310 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17311 anonymous tagged types.
17313 2010-05-27 Jason Merrill <jason@redhat.com>
17315 * print-tree.c (debug_vec_tree): New fn.
17316 (print_vec_tree): New fn.
17317 * tree.h: Declare them.
17318 * gdbinit.in (pvt): New command.
17320 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17322 * gdbinit.in (pdd): New command.
17324 2010-05-27 Jan Hubicka <jh@suse.cz>
17326 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17327 (update_caller_keys): Return early if there are no callers;
17328 only update fibheap when decresing the key.
17329 (update_callee_keys): Avoid recursion.
17330 (decide_inlining_of_small_functions): When badness does not match;
17331 re-insert into fibheap.
17333 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
17335 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17336 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17337 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17338 (ALL_HOST_OBJS): Now a union of the above two.
17339 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17340 all files in ALL_HOST_FRONTEND_OBJS.
17341 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17343 * c-common.c: Pretend to be a backend file by undefining
17344 IN_GCC_FRONTEND (still need rtl.h here).
17346 2010-05-27 Jan Hubicka <jh@suse.cz>
17348 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17349 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17351 2010-05-27 Jan Hubicka <jh@suse.cz>
17353 * sched-ebb.c: Rename struct deps to struct deps_desc.
17355 * sel-sched-ir.c: Likewise.
17356 * sched-deps.c: Likewise.
17357 * sched-int.h: Likewise.
17358 * sched-rgn.c: Likewise.
17360 2010-05-27 Jon Beniston <jon@beniston.com>
17363 * config/lm32/lm32.h: Remove definition of
17364 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17366 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
17369 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17371 2010-05-27 Richard Guenther <rguenther@suse.de>
17373 PR tree-optimization/44284
17374 * tree-vect-stmts.c (vectorizable_assignment): Handle
17375 sign-changing conversions as simple copy.
17377 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17379 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17381 (__gthread_active_p): Check for pthread_create if compiling against
17384 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17386 Support compilation for Android platform. Reimplement -mandroid.
17388 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17389 (*android*): Set ANDROID_DEFAULT.
17390 (arm*-*-linux*): Include linux-android.h.
17391 (arm*-*-eabi*): Don't include previous -mandroid implementation.
17392 * config/arm/eabi.h: Remove, move Android-specific parts ...
17393 * config/linux-android.h: ... here. New file.
17394 * config/arm/eabi.opt: Rename to ...
17395 * config/linux-android.opt: ... this.
17396 (mandroid): Allow -mno-android option. Initialize based on
17398 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17399 Move logic to corresponding LINUX_TARGET_* macros.
17400 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17401 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17402 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17403 Android definitions.
17404 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17405 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17408 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
17410 Add support for Bionic C library
17412 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17414 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17415 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17417 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17418 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17419 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17420 to support multiple C libraries. Handle Bionic.
17421 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17422 (BIONIC_DYNAMIC_LINKER64): Define.
17423 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17425 (TARGET_HAS_SINCOS): Enable for Bionic.
17427 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
17428 the last option specified on command line take effect.
17429 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17431 (mglibc, muclibc): Update.
17433 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17434 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17437 * doc/invoke.texi (-mglibc, -muclibc): Update.
17438 (-mbionic): Document.
17440 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17442 * c-common.h (c_register_addr_space): Add prototype.
17443 (ADDR_SPACE_KEYWORD): Remove.
17444 * c-common.c (c_register_addr_space): New function.
17445 (c_addr_space_name): Reimplement.
17446 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17448 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17449 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17451 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17452 Remove TARGET_ADDR_SPACE_KEYWORDS.
17454 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17456 * input.c: New file.
17457 * input.h (main_input_filename): Move declaration to toplev.h.
17458 * toplev.c (input_location, line_table): Move to input.c
17459 * toplev.h (main_input_filename): Move declaration from input.h.
17460 * tree.c (expand_location): Move to input.c.
17461 * Makefile.in (OBJS-common): Add input.o.
17462 (input.o): Add dependencies.
17464 2010-05-27 Richard Guenther <rguenther@suse.de>
17466 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
17467 for non-existant files.
17468 (fork_execute): Mark args_name file as deleted.
17470 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17473 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
17474 (narrow_signed_type): Likewise.
17476 2010-05-26 Jan Hubicka <jh@suse.cz>
17478 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
17479 edge only when checking is enabled; check using former_clone_of;
17480 check inline clones too.
17481 (cgraph_materialize_clone): Record former_clone_of pointer.
17482 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
17483 combining redirections; dump args_to_skip bitmap
17484 (cgraph_materialize_all_clones): Do no redirection here.
17485 * ipa-inline.c (inline_transform): Do redirection here.
17486 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
17489 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17491 * config/avr/avr-c.c: Do not include regs.h.
17492 Include cpplib.h for cpp_define and tree.h for c-common.h.
17493 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
17494 * config/avr/t-avr: Fix dependencies for avr-c.o.
17496 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17498 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
17499 string instead of SYMBOL_REF rtx.
17500 * rtl.h (set_stack_check_libfunc): Move prototype from here...
17501 * libfuncs.h: ...to here. Adjust for explow.c change.
17503 2010-05-26 Joseph Myers <joseph@codesourcery.com>
17505 * pretty-print.c: Don't include ggc.h.
17506 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
17507 (identifier_to_locale): Use them for allocation.
17508 * pretty-print.h (identifier_to_locale_alloc,
17509 identifier_to_locale_free): Declare.
17510 * toplev.c (alloc_for_identifier_to_locale): New.
17511 (general_init): Set identifier_to_locale_alloc and
17512 identifier_to_locale_free.
17513 * Makefile.in (pretty-print.o): Update dependencies.
17515 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
17517 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
17518 pointer types if they have different alignment or mode.
17520 2010-05-26 Anatoly Sokolov <aesok@post.ru>
17522 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17523 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17524 * config/sparc/sparc-protos.h (function_value): Remove declaration.
17525 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
17526 sparc_function_value_regno_p): New functions.
17527 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17528 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17529 (function_value): Rename to...
17530 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
17531 argument to 'outgoing'.
17532 (function_arg_record_value, function_arg_union_value,
17533 function_arg_vector_value): Update comment.
17535 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
17537 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
17538 (fde_needed_for_eh_p): New predicate.
17539 (output_call_frame_info): Use it throughout to decide whether FDEs
17540 are needed for EH purpose.
17541 (dwarf2out_begin_prologue): Reorder assignments.
17543 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17545 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
17546 special case loop->header.
17547 (is_predicated): New.
17548 (if_convertible_loop_p): Call it.
17550 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17552 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
17553 iterator in parameter. Do not generate code during the analysis.
17554 (tree_if_convert_cond_stmt): Removed.
17555 (tree_if_convert_stmt): Removed.
17556 (predicate_bbs): New.
17557 (if_convertible_loop_p): Call predicate_bbs.
17558 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
17559 now contains all the analysis part.
17561 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17563 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
17564 statements in the analysis part.
17565 (tree_if_convert_stmt): Update comment.
17566 (remove_conditions_and_labels): New.
17567 (combine_blocks): Call remove_conditions_and_labels.
17568 (tree_if_conversion): Update comment.
17570 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17572 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
17573 than 2 predecessors or more than 2 successors.
17575 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17577 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
17578 of loops in which the data dependence analysis fails.
17580 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17582 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
17583 CDI_POST_DOMINATORS.
17584 (tree_if_conversion): Same.
17586 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17588 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
17590 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
17592 * tree-if-conv.c: Update copyright years. Fix comments.
17595 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
17597 * builtin-types.def (BT_INT128): New primitive type.
17598 (BT_UINT128): Likewise.
17599 * c-common.c (c_common_r): Add __int128 keyword.
17600 (c_common_type_for_size): Handle __int128.
17601 (c_common_type_for_mode): Likewise.
17602 (c_common_signed_or_unsigned_type): Likewise.
17603 (c_common_nodes_and_builtins): Add builtin type
17604 if target supports 128-bit integer scalar.
17605 * c-common.h (enum rid): Add RID_INT128.
17606 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
17607 if target supports 128-bit integer scalar.
17608 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
17609 (finish_declspecs): Likewise.
17610 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
17611 (c_token_starts_declspecs): Likewise.
17612 (c_parser_declspecs): Likewise.
17613 (c_parser_attributes): Likewise.
17614 (c_parser_objc_selector): Likewise.
17615 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
17616 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
17617 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
17618 * tree.c (make_or_reuse_type): Likewise.
17619 (make_unsigned_type): Likewise.
17620 (build_common_tree_nodes_2): Likewise.
17621 * tree.h (enum integer_type_kind): Add itk_int128 and
17622 itk_unsigned_int128.
17623 (int128_integer_type_node): New define.
17624 (int128_unsigned_type_node): New define.
17625 * doc/extend.texi: Add documentation about __int128 type.
17627 2010-05-26 Richard Guenther <rguenther@suse.de>
17629 * tree-ssa-sccvn.c (copy_nary): Adjust.
17630 (copy_phis): Rename to ...
17631 (copy_phi): ... this. Adjust.
17632 (copy_references): Rename to ...
17633 (copy_reference): ... this. Adjust.
17634 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
17635 result into the valid table.
17637 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17639 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
17640 insn-config.h, insn-codes.h, recog.h, and optabs.h.
17642 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17644 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
17646 2010-05-26 Richard Guenther <rguenther@suse.de>
17648 * opts.c (common_handle_option): Handle OPT_Ofast.
17650 2010-05-26 Joseph Myers <joseph@codesourcery.com>
17652 * diagnostic.c: Don't include opts.h.
17653 (permissive_error_option): Define.
17654 (diagnostic_initialize): Take n_opts parameter. Allocate memory
17655 for classify_diagnostic. Don't use memset for
17656 classify_diagnostic. Initialize new and recently added fields.
17657 (diagnostic_classify_diagnostic): Use context->n_opts instead of
17659 (diagnostic_report_diagnostic): Pass context parameter to
17660 diagnostic_report_warnings_p. Use option_enabled and option_name
17661 hooks from context.
17662 (emit_diagnostic): Use permissive_error_option.
17663 (permerror): Likewise.
17664 * diagnostic.h: Don't include options.h.
17665 (struct diagnostic_context): Add n_opts, opt_permissive,
17666 inhibit_warnings, warn_system_headers, option_enabled and
17667 option_name fields. Change classify_diagnostic to a pointer.
17668 * opts-diagnostic.h: New file.
17669 * opts.c: Include opts-diagnostic.h.
17670 (common_handle_option): Set global_dc fields for -Wfatal-errors,
17671 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
17672 (option_name): New function.
17673 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
17674 (c_common_handle_option): Set global_dc->permissive for
17676 * c-common.c (c_cpp_error): Save and restore
17677 global_dc->warn_system_headers, not variable warn_system_headers.
17678 * toplev.c: Include opts-diagnostic.h.
17679 (general_init): Update call to diagnostic_initialize. Set
17680 global_dc->show_column, global_dc->option_enabled and
17681 global_dc->option_name.
17682 (process_options): Don't set global_dc fields here.
17683 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
17684 (diagnostic.o, opts.o, toplev.o): Update dependencies.
17686 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
17688 * config/picochip/picochip.md (movsi): Split a movsi from a
17689 const after reload.
17691 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17693 * ggc-zone.c: Update copyright year.
17694 (poison_region): Mark memory for Valgrind as undefined before
17695 memset () call and inaccessible afterwards.
17696 (ggc_pch_total_size): Change type of i to int.
17698 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17700 * ggc-common.c (ggc_free_overhead): Allow empty slot.
17702 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17704 * ggc-common.c: Update copyright year.
17705 (ggc_rlimit_bound): Remove prototype. Compile only if
17706 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
17707 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
17708 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
17709 (ggc_min_heapsize_heuristic): Likewise.
17711 2010-05-26 Richard Guenther <rguenther@suse.de>
17713 PR rtl-optimization/44164
17714 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
17715 no-common access-path disambiguation.
17716 (indirect_ref_may_alias_decl_p): Adjust.
17717 (indirect_refs_may_alias_p): Likewise.
17718 (refs_may_alias_p_1): Likewise.
17720 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17722 * c-typeck.c: Do not include expr.h.
17724 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
17726 * rtl.h (decl_default_tls_model): Move prototype from here...
17727 * output.h: ...to here.
17728 * c-decl.c: Do not include rtl.h.
17729 * c-pragma.c: Likewise.
17730 * c-parser.c: Likewise.
17731 * c-gimplify.c: Likewise. And also not hard-reg-set.
17732 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
17733 FIXME note for it. Add a FIXME note for expr.h.
17734 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
17735 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
17738 2010-05-26 Jakub Jelinek <jakub@redhat.com>
17741 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
17742 or total_size is larger than red zone size for non-V4 ABI, emit a
17743 stack_tie resp. frame_tie insn before stack pointer restore.
17744 * config/rs6000/rs6000.md (frame_tie): New insn.
17746 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
17748 * function.h (struct function): Add can_throw_non_call_exceptions bit.
17749 * lto-streamer-in.c (input_function): Stream it in.
17750 * lto-streamer-out.c (output_function): Stream it out.
17751 * function.c (allocate_struct_function): Set it.
17752 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
17753 for flag_non_call_exceptions.
17754 * cfgbuild.c (control_flow_insn_p): Likewise.
17755 (make_edges): Likewise.
17756 * cfgexpand.c (expand_stack_alignment): Likewise.
17757 * combine.c (distribute_notes): Likewise.
17758 * cse.c (cse_extended_basic_block): Likewise.
17759 * except.c (insn_could_throw_p): Likewise.
17760 * gcse.c (simple_mem): Likewise.
17761 * ipa-pure-const.c (check_call): Likewise.
17762 (check_stmt ): Likewise.
17763 * lower-subreg.c (lower-subreg.c): Likewise.
17764 * optabs.c (emit_libcall_block): Likewise.
17765 (prepare_cmp_insn): Likewise.
17766 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
17767 * postreload.c (rest_of_handle_postreload): Likewise.
17768 * reload1.c (reload_as_needed): Likewise.
17769 (emit_input_reload_insns): Likewise.
17770 (emit_output_reload_insns): Likewise.
17771 (fixup_abnormal_edges): Likewise.
17772 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
17773 * store-motion.c (find_moveable_store): Likewise.
17774 * tree-eh.c (stmt_could_throw_p): Likewise.
17775 (tree_could_throw_p): Likewise.
17776 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17777 * config/arm/arm.c (arm_expand_prologue): Likewise.
17778 (thumb1_expand_prologue): Likewise.
17779 * config/rx/rx.md (cbranchsf4): Likewise.
17781 * config/s390/s390.c (s390_emit_prologue): Likewise.
17782 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
17783 (inline_forbidden_into_p): New predicate.
17784 (expand_call_inline): Use it to forbid inlining.
17785 (tree_can_inline_p): Likewise.
17787 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17789 * config/i386/i386-c.c: Do not include rtl.h.
17790 * config/i386/t-i386: Update dependencies.
17792 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17794 * attribs.c: Do not include rtl.h.
17795 * Makefile.in: Update dependencies.
17797 2010-05-25 Anatoly Sokolov <aesok@post.ru>
17799 * double-int.h (double_int_and): New.
17800 * combine.c (try_combine): Clean up, use double_int_* and
17801 immed_double_int_const functions.
17803 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17805 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
17806 stderr to /dev/null instead of grep -q.
17807 * configure: Regenerate.
17809 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
17811 * Makefile.in (EXCEPT_H): Fix typo.
17813 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
17815 * ira-build.c (update_conflict_hard_reg_costs): New.
17816 (ira_build): Call update_conflict_hard_reg_costs.
17818 2010-05-25 Jakub Jelinek <jakub@redhat.com>
17821 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
17823 (intersect_loc_chains): Walk the s2var's loc_chain together
17824 with s1node chain as long as the locations are equal, don't
17825 call find_loc_in_1pdv in that case.
17828 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
17829 (copy_bind_expr): ... instead of here.
17830 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
17831 if the block hasn't been remapped.
17832 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
17833 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
17835 2010-05-25 Richard Guenther <rguenther@suse.de>
17837 PR middle-end/44069
17838 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
17839 out-of-bounds array accesses.
17841 2010-05-25 Richard Guenther <rguenther@suse.de>
17843 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
17844 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
17845 (run_gcc): Re-organize to make cleanup easier.
17847 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17849 * config/s390/s390.c (optimization_options): Fix and move the
17850 flag_prefetch_loop_arrays override ...
17851 (override_options): ... here.
17853 2010-05-25 Joseph Myers <joseph@codesourcery.com>
17855 * diagnostic.c: Don't include plugin.h.
17856 (diagnostic_report_diagnostic): Don't handle plugins specially
17857 here. Pass context to internal_error callback.
17858 * diagnostic.h (struct diagnostic_context): Add context parameter
17859 to internal_error callback.
17860 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
17861 * plugin.h (struct diagnostic_context): Declare.
17862 (warn_if_plugins, plugins_internal_error_function): Declare.
17863 * toplev.c (general_init): Set global_dc->internal_error.
17864 * Makefile.in (diagnostic.o): Update dependencies.
17866 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
17868 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
17869 * config/rs6000/t-darwin64: New.
17870 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
17873 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
17876 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
17877 match the original (and intended) behaviour before r159557. This
17878 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
17881 2010-05-25 Richard Guenther <rguenther@suse.de>
17883 * doc/invoke.texi: Document -Ofast.
17884 * target.h (struct gcc_target): Add handle_ofast.
17885 * target-def.h (TARGET_HANDLE_OFAST): Add.
17886 (TARGET_INITIALIZER): Adjust.
17887 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
17888 * common.opt (Ofast): Add.
17890 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
17892 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
17893 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
17895 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
17898 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
17899 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
17900 false_rtx. Use false_rtx to compute the correct *ptest for reversed
17901 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
17903 2010-05-25 Jakub Jelinek <jakub@redhat.com>
17905 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
17906 DW_OP_minus with negated offset instead of DW_OP_plus.
17907 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
17909 2010-05-25 Wei Guozhi <carrot@google.com>
17911 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
17912 tst instruction and a new alternative.
17913 * config/arm/constraints.md (Pu): New constraint.
17915 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
17917 * function.c (assign_stack_local_1): Initialize variable
17918 to avoid warning when bootstrapping at -O3.
17920 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
17922 * configure.ac (all_lang_makefiles): Remove everything related to it.
17923 * configure: Regenerate.
17924 * Makefile.in: Fix reference to ada Make-lang.in.
17925 Remove support for LANG_MAKEFILES.
17927 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
17928 Sandra Loosemore <sandra@codesourcery.com>
17930 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
17931 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
17932 description. Add arm_neon_fp16_ok.
17933 (Add Options): Add arm_neon and arm_neon_fp16.
17935 2010-05-24 Joseph Myers <joseph@codesourcery.com>
17937 * diagnostic.c: Don't include flags.h.
17938 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
17939 context parameters. Check flags in the context passed as a parameter.
17940 (diagnostic_build_prefix): Add context parameter. Check
17941 show_column flag in context.
17942 (diagnostic_action_after_output): Check fatal_errors flag in context.
17943 (diagnostic_report_current_module): Check show_column flag in context.
17944 (default_diagnostic_starter): Update call to
17945 diagnostic_build_prefix.
17946 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
17947 (emit_diagnostic): Pass context to permissive_error_kind.
17948 (permerror): Pass context to permissive_error_kind.
17949 * diagnostic.h (struct diagnostic_context): Add show_column,
17950 pedantic_errors, permissive and fatal_errors fields.
17951 (diagnostic_build_prefix): Update prototype.
17953 * toplev.c (process_options): Set flags in global_dc from
17954 flag_show_column, flag_pedantic_errors, flag_permissive,
17956 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
17957 to diagnostic_build_prefix.
17958 * Makefile.in (diagnostic.o): Update dependencies.
17960 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
17962 * config/i386/ia32intrin.h (__crc32q): Define only if
17963 __SSE4_2__ is defined.
17965 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
17968 PR middle-end/43602
17969 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
17970 DECL_VISIBILITY_SPECIFIED.
17971 (emutls_decl): Set DECL_PRESERVE_P and copy
17972 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
17973 (emutls_finalize_control_var): New callback.
17974 (emutls_finish): Finalize emutls control variables.
17975 * toplev.c (compile_file): Move the call to emutls_finish ()
17976 before varpool_assemble_pending_decls ().
17978 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
17980 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
17981 added to the preprocessor condition.
17983 2010-05-24 Paul Brook <paul@codesourcery.com>
17985 * gengtype-lex.l: Add HARD_REG_SET.
17986 * expr.c (expand_expr_real_1): Record writes to hard registers.
17987 * function.c (rtl_data): Add asm_clobbers.
17988 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
17989 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
17990 Use crtl->asm_clobbers.
17992 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17994 * doc/makefile.texi (Makefile): Mention stages 'profile'
17995 and 'feedback' for profiledbootstrap.
17997 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
18000 * config/i386/i386.c (def_builtin): Properly check
18001 OPTION_MASK_ISA_64BIT.
18003 2010-05-23 Joseph Myers <joseph@codesourcery.com>
18005 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18006 typedefs with different but compatible types. Allow duplicate
18007 typedefs with the same type except for pedantic non-C1X, but give
18008 warning for variably modified types.
18009 * c-typeck.c (tagged_types_tu_compatible_p,
18010 function_types_compatible_p, type_lists_compatible_p,
18011 comptypes_internal): Add parameter different_types_p; set
18012 *different_types_p for different but compatible types. All
18014 (comptypes_check_different_types): New.
18015 * c-tree.h (comptypes_check_different_types): Declare.
18017 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18019 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
18020 * jump.c: Include basic-block.h.
18021 * profile.c: Likewise.
18022 * tree-profile.c: Likewise.
18023 * coverage.c: Likewise.
18024 * basic-block.h (optimize_function_for_size_p): Move to function.h.
18025 (optimize_function_for_speed_p): Likewise.
18026 * function.h (optimize_function_for_size_p,
18027 optimize_function_for_speed_p): Moved here from basic-block.h.
18028 * Makefile.in: Update dependencies.
18030 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18032 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18033 before calling make; allow override through $MAKE.
18034 * doc/invoke.texi (Optimize Options): Document override.
18036 2010-05-23 Anatoly Sokolov <aesok@post.ru>
18038 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18039 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18040 (rs6000_mode_dependent_address_ptr): Make static.
18041 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18042 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18045 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
18048 * config/i386/i386.c: Make sure that the correct regparm is passed.
18050 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18052 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18053 * sbitmap.c: ...to here to internalize sbitmap element access.
18054 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18055 Explain why basic-block.h is included.
18056 * function.h: Include tm.h for CUMULATIVE_ARGS.
18057 * Makefile.in: Update dependencies.
18059 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18061 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18063 * sbitmap.h (struct sbitmap_def): Do not typedef here.
18064 * sbitmap.c: Include sbitmap.h.
18065 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18066 hard-reg-set.h. Split everything related to regsets out from here...
18067 * regset.h: ...to here. New file.
18068 * df.h: Include regset.h and sbitmap.h.
18069 * tree-flow.h: Likewise.
18070 * cfgloop.h: Likewise.
18071 * except.h: Do not include sbitmap.h. Include hashtab.h.
18072 * cgraph.h: Include vec.h and function.h.
18073 * reload.h (struct insn_chain): Change types of live_throughout
18074 and dead_or_set from regset_head to bitmap_head.
18075 (compute_use_by_pseudos): Be defined also if regset.h is not included.
18076 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18077 spilled_regs from regset_head to bitmap_head to avoid dependency
18079 * sel-sched-ir.h: Include regset.h.
18080 * reload.c: Include df.h before reload.h.
18081 * caller-save.c: Likewise.
18082 * reload1.c: Likewise.
18084 (mark_elimination): Update type of r to bitmap, consistent with
18086 * dominance.c: Include bitmap.h.
18087 * modulo-sched.c: Include df.h.
18088 * cfganal.c: Include bitmap.h and sbitmap.h.
18089 * cfgbuild.c: Include sbitmap.h.
18090 * lcm.c: Include sbitmap.h.
18091 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18092 * domwalk.c: Include sbitmap.h, exclude ggc.h.
18093 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18094 * cselib.c: Include bitmap.h.
18095 * tree-optimize.c: Include regset.h.
18096 * stmt.c: Include bitmap.h.
18097 * Makefile.in: Update dependencies.
18099 2010-05-22 Jan Hubicka <jh@suse.cz>
18101 * cgraph.h (struct varpool_node): Add same_comdat_group.
18102 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18104 (output_varpool): Update call of lto_output_varpool_node.
18105 (input_varpool): Read same_comdat_group pointer.
18106 (input_varpool_1): Fixup same_comdat_group pointer.
18107 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18108 group is needed, all are.
18109 * varpool.c (varpool_remove_node): Remove node from same comdat group
18111 (varpool_analyze_pending_decls): Walk same comdat groups.
18113 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18115 * rtl.h (union rtunion_def): Remove rt_bit member.
18116 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18117 * print-rtl (print_rtx): Do not print the member.
18118 * gengtype.c (adjust_field_rtx_def): Do not handle it.
18119 * gengenrtl.c (type_from_format): Likewise.
18120 (accessor_from_format): Likewise.
18122 2010-05-22 Joseph Myers <joseph@codesourcery.com>
18124 * dbgcnt.c: Include toplev.h instead of errors.h.
18125 * ira-emit.c: Don't include errors.h.
18126 * ira.c: Include toplev.h instead of errors.h.
18127 * lto-compress.c: Include toplev.h instead of errors.h.
18128 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18129 ira.o, dbgcnt.o): Update dependencies.
18131 2010-05-22 Richard Guenther <rguenther@suse.de>
18133 * gimple.c (gimple_types_compatible_p): Check type qualifications
18134 before merging pointer to complete and pointer to incomplete type.
18135 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18136 we use our own resolution algorithm. The gold linker plugin
18137 doesn't do the job we want it to do here.
18139 2010-05-22 Anatoly Sokolov <aesok@post.ru>
18141 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18142 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18143 (sparc_mode_dependent_address_p): New function.
18145 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18147 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18149 * timevar.c: Do not include any core headers.
18150 (timevar_print): De-i18n-ize.
18151 (print_time): Likewise.
18152 * timevar.h (timevar_push, timevar_pop): Make inline functions.
18154 2010-05-21 Joseph Myers <joseph@codesourcery.com>
18156 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18158 (diagnostic_initialize): Initialize x_data not last_function.
18159 (diagnostic_report_current_function): Move to tree-diagnostic.c.
18160 (default_diagnostic_starter): Call
18161 diagnostic_report_current_module not
18162 diagnostic_report_current_function.
18163 (diagnostic_report_diagnostic): Initialize x_data not
18165 (verbatim): Likewise.
18166 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18168 (struct diagnostic_context): Change last_function to x_data.
18169 (diagnostic_auxiliary_data): Replace with
18170 diagnostic_context_auxiliary_data and
18171 diagnostic_info_auxiliary_data.
18172 (diagnostic_last_function_changed, diagnostic_set_last_function,
18173 diagnostic_report_current_function): Move to tree-diagnostic.h.
18174 (print_declaration, dump_generic_node, print_generic_stmt,
18175 print_generic_stmt_indented, print_generic_expr,
18176 print_generic_decl, debug_c_tree, dump_omp_clauses,
18177 print_call_name, debug_generic_expr, debug_generic_stmt,
18178 debug_tree_chain, default_tree_printer): Move to
18179 tree-pretty-print.h.
18180 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18181 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18182 gimple-pretty-print.h.
18183 * pretty-print.c: Don't include tree.h
18184 (pp_base_format): Don't handle %K here.
18185 (pp_base_tree_identifier): Move to tree-pretty-print.c.
18186 * pretty-print.h (text_info): Change abstract_origin to x_data.
18187 (pp_tree_identifier, pp_unsupported_tree,
18188 pp_base_tree_identifier): Move to tree-pretty-print.h.
18189 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18190 tree-pretty-print.h: New files.
18191 * tree-pretty-print.c: Include tree-pretty-print.h.
18192 (percent_K_format): New. Moved from pretty-print.c.
18193 (pp_base_tree_identifier): Move from pretty-print.c.
18194 * c-objc-common.c: Include tree-pretty-print.h.
18195 (c_tree_printer): Handle %K here.
18196 * langhooks.c: Include tree-diagnostic.h.
18197 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18198 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18199 (default_tree_printer): Handle %K using percent_K_format.
18200 (general_init): Use default_tree_diagnostic_starter.
18201 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18202 (free_lang_data): Use default_tree_diagnostic_starter.
18203 * c-pretty-print.c: Include tree-pretty-print.h.
18204 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18205 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18206 * dwarf2out.c: Include tree-pretty-print.h.
18207 * except.c: Include tree-pretty-print.h.
18208 * gimple-pretty-print.c: Include tree-pretty-print.h and
18209 gimple-pretty-print.h.
18210 * gimplify.c: Include tree-pretty-print.h.
18211 * graphite-poly.c: Include tree-pretty-print.h and
18212 gimple-pretty-print.h.
18213 * ipa-cp.c: Include tree-pretty-print.h.
18214 * ipa-inline.c: Include gimple-pretty-print.h.
18215 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18216 * ipa-pure-const.c: Include gimple-pretty-print.h.
18217 * ipa-struct-reorg.c: Include tree-pretty-print.h and
18218 gimple-pretty-print.h.
18219 * ipa-type-escape.c: Include tree-pretty-print.h.
18220 * print-rtl.c: Include tree-pretty-print.h.
18221 * print-tree.c: Include gimple-pretty-print.h.
18222 * sese.c: Include tree-pretty-print.h.
18223 * tree-affine.c: Include tree-pretty-print.h.
18224 * tree-browser.c: Include tree-pretty-print.h.
18225 * tree-call-cdce.c: Include gimple-pretty-print.h.
18226 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18227 * tree-chrec.c: Include tree-pretty-print.h.
18228 * tree-data-ref.c: Include tree-pretty-print.h and
18229 gimple-pretty-print.h.
18230 * tree-dfa.c: Include tree-pretty-print.h.
18231 * tree-if-conv.c: Include tree-pretty-print.h and
18232 gimple-pretty-print.h.
18233 * tree-inline.c: Include tree-pretty-print.h.
18234 * tree-into-ssa.c: Include tree-pretty-print.h and
18235 gimple-pretty-print.h.
18236 * tree-nrv.c: Include tree-pretty-print.h.
18237 * tree-object-size.c: Include tree-pretty-print.h and
18238 gimple-pretty-print.h.
18239 * tree-outof-ssa.c: Include tree-pretty-print.h and
18240 gimple-pretty-print.h.
18241 * tree-parloops.c: Include tree-pretty-print.h and
18242 gimple-pretty-print.h.
18243 * tree-predcom.c: Include tree-pretty-print.h and
18244 gimple-pretty-print.h.
18245 * tree-scalar-evolution.c: Include tree-pretty-print.h and
18246 gimple-pretty-print.h.
18247 * tree-sra.c: Include tree-pretty-print.h.
18248 * tree-ssa-address.c: Include tree-pretty-print.h.
18249 * tree-ssa-alias.c: Include tree-pretty-print.h.
18250 * tree-ssa-ccp.c: Include tree-pretty-print.h and
18251 gimple-pretty-print.h.
18252 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18253 * tree-ssa-copy.c: Include tree-pretty-print.h and
18254 gimple-pretty-print.h.
18255 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18256 * tree-ssa-dce.c: Include tree-pretty-print.h and
18257 gimple-pretty-print.h.
18258 * tree-ssa-dom.c: Include tree-pretty-print.h and
18259 gimple-pretty-print.h.
18260 * tree-ssa-dse.c: Include gimple-pretty-print.h.
18261 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18262 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18263 * tree-ssa-live.c: Include tree-pretty-print.h and
18264 gimple-pretty-print.h.
18265 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18266 gimple-pretty-print.h.
18267 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18268 gimple-pretty-print.h.
18269 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18270 gimple-pretty-print.h.
18271 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18272 gimple-pretty-print.h.
18273 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18274 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18275 * tree-ssa-operands.c: Include tree-pretty-print.h and
18276 gimple-pretty-print.h.
18277 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18278 gimple-pretty-print.h.
18279 * tree-ssa-pre.c: Include tree-pretty-print.h and
18280 gimple-pretty-print.h.
18281 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18282 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18283 gimple-pretty-print.h.
18284 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18285 gimple-pretty-print.h.
18286 * tree-ssa-sink.c: Include gimple-pretty-print.h.
18287 * tree-ssa-ter.c: Include tree-pretty-print.h and
18288 gimple-pretty-print.h.
18289 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18290 * tree-ssa.c: Include tree-pretty-print.h and
18291 gimple-pretty-print.h.
18292 * tree-stdarg.c: Include gimple-pretty-print.h.
18293 * tree-switch-conversion.c: Include gimple-pretty-print.h.
18294 * tree-tailcall.c: Include tree-pretty-print.h and
18295 gimple-pretty-print.h.
18296 * tree-vect-data-refs.c: Include tree-pretty-print.h and
18297 gimple-pretty-print.h.
18298 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18299 gimple-pretty-print.h.
18300 * tree-vect-loop.c: Include tree-pretty-print.h and
18301 gimple-pretty-print.h.
18302 * tree-vect-patterns.c: Include gimple-pretty-print.h.
18303 * tree-vect-slp.c: Include tree-pretty-print.h and
18304 gimple-pretty-print.h.
18305 * tree-vect-stmts.c: Include tree-pretty-print.h and
18306 gimple-pretty-print.h.
18307 * tree-vectorizer.c: Include tree-pretty-print.h.
18308 * tree-vrp.c: Include tree-pretty-print.h and
18309 gimple-pretty-print.h.
18310 * value-prof.c: Include tree-pretty-print.h and
18311 gimple-pretty-print.h.
18312 * var-tracking.c: Include tree-pretty-print.h.
18313 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18314 (tree-diagnostic.o): New dependencies.
18315 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18316 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18317 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18318 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18319 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18320 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18321 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18322 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18323 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18324 tree-ssa-address.o, tree-ssa-loop-niter.o,
18325 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18326 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18327 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18328 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18329 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18330 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18331 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18332 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18333 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18334 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18335 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18336 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18337 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18338 tree-switch-conversion.o, var-tracking.o, value-prof.o,
18339 cfgexpand.o, pretty-print.o): Update dependencies.
18341 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
18343 * tree-ssa-structalias.c: Remove tm_p.h from include.
18345 2010-05-21 Jeff Law <law@redhat.com>
18347 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18349 2010-05-21 Jason Merrill <jason@redhat.com>
18351 * tree-eh.c (cleanup_is_dead_in): New.
18352 (lower_try_finally): Don't generate a dead cleanup region.
18353 (lower_cleanup): Likewise.
18355 2010-05-21 Jakub Jelinek <jakub@redhat.com>
18358 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18359 unchain each use from the cyclic next_regno_use chain first.
18361 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18363 * real: Do not include gmp.h, mpfr.h, and mpc.h.
18364 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18365 (real_value_negate, real_value_abs): New prototypes.
18366 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18367 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18368 new include file for interface between MPFR and REAL_VALUE_TYPE.
18369 * real.c: Include realmpfr.h.
18370 (real_arithmetic2): Remove legacy function.
18371 (real_value_negate): New.
18372 (real_value_abs): New.
18373 (mfpr_from_real, real_from_mpfr): Move from here...
18374 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18375 * builtins.c: Include realmpfr.h.
18376 * fold-const.c: Include realmpfr.h.
18377 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18378 (fold_negate_const): Likewise.
18379 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18380 * toplev.c: Include realmpfr.h.
18381 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18382 and real_value_negate.
18383 * fixed-value.c (check_real_for_fixed_mode): Likewise.
18384 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18385 (vfp3_const_double_index): Likewise.
18386 (arm_print_operand): Likewise.
18387 * Makefile.in: Update dependencies.
18389 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18391 * config/s390/s390.c (override_options): Increase the default
18392 of max-completely-peel-times.
18394 2010-05-21 Julian Brown <julian@codesourcery.com>
18395 Mark Mitchell <mark@codesourcery.com>
18397 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18398 sibling calls for Thumb-1.
18399 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18400 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18402 (*call_insn, *call_value_insn): Don't use for Thumb-2.
18403 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18405 (return): New expander.
18406 (*arm_return): New name for ARM return insn.
18407 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18409 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
18411 * config.gcc (sparc64-*-rtems*): New target.
18413 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
18415 * tree.c (build_function_decl_skip_args): Fix grammar.
18416 (build_function_type_list_1): Fix typos, adjust formatting.
18418 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18420 * tree.h: Include real.h and fixed-value.h as basic datatypes.
18421 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18422 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18423 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18424 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18425 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18426 tree-pretty-print.c, tree-loop-distribution.c,
18427 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18428 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18429 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18430 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18431 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18432 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18433 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18434 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18435 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18436 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18437 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18438 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18439 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18440 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18441 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18442 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18443 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18444 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18445 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18446 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18447 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18448 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18449 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18450 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18451 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18452 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18453 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18454 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18455 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18456 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18457 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18458 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18459 config/score/score7.c, config/score/score.c, config/arm/arm.c,
18460 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18461 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18462 config/bfin/bfin.c: Clean up redundant includes.
18463 * Makefile.in: Update accordingly.
18465 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
18467 PR middle-end/44204
18468 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
18469 statement has no arguments.
18471 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
18474 * varasm.c (emutls_decl): Merge attributes to new decl.
18476 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
18478 PR middle-end/44101
18479 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
18480 around the uniquized constructor if its type requires a conversion.
18482 2010-05-21 Jakub Jelinek <jakub@redhat.com>
18485 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
18486 at -O0 goto_locus of any of the incoming edges differs from
18487 goto_locus of outgoing edge, or gimple_location of any of the
18490 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
18492 * ira.c (ira_non_ordered_class_hard_regs): Define.
18493 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
18494 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
18495 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
18496 cost of unaligned hard regs when allocating multi-reg pseudos.
18498 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18500 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
18501 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
18502 for TARGET_NO_FLOAT.
18503 * config/mips/mips.c (mips_file_start): Expand conditional expression
18504 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
18505 (mips_override_options): Move -mno-float override -msoft-float and
18507 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
18508 Condition(TARGET_SUPPORTS_NO_FLOAT).
18509 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
18510 __mips_no_float here.
18511 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
18512 (TARGET_SUPPORTS_NO_FLOAT): Define.
18513 * config/mips/sdemtk.opt: Delete.
18515 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
18517 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
18519 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
18522 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
18523 * configure: Regenerate.
18524 * config.in: Regenerate.
18525 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
18526 instead of sahf only for 64bit targets.
18528 2010-05-20 Jakub Jelinek <jakub@redhat.com>
18531 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
18532 setup_ref_regs for DEBUG_INSNs.
18534 2010-05-20 Jan Hubicka <jh@suse.cz>
18536 PR middle-end/44197
18537 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
18539 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
18542 * df-scan.c (df_ref_compare): Stabilize sort.
18544 2010-05-20 Jakub Jelinek <jakub@redhat.com>
18546 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
18547 argument. Don't use DW_OP_piece if offset is non-zero,
18548 put offset into second DW_OP_bit_piece argument.
18549 (dw_sra_loc_expr): Adjust callers. For memory expressions
18552 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
18555 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
18556 settings for 16-bit-constant "addo" alternative.
18558 2010-05-19 James E. Wilson <wilson@codesourcery.com>
18560 * config/mips/mips-dsp.md (add<DSPV:mode>3,
18561 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
18564 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
18565 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
18568 2010-05-19 Joseph Myers <joseph@codesourcery.com>
18570 * diagnostic.c (FLOAT, FFS): Don't undefine.
18571 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
18572 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
18575 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18577 * combine.c (propagate_for_debug): Call make_compound_operation
18578 on the source value.
18579 (try_combine): When implementing a split chosen by find_split_point,
18580 either copy i2src or set it to null. Assert that i2src is not null
18581 before substituting into CALL_INSN_FUNCTION_USAGE.
18583 2010-05-19 Anatoly Sokolov <aesok@post.ru>
18585 * double-int.h (double_int_ior): New function.
18586 * tree.h (build_int_cst_wide_type): Remove.
18587 * tree.c (build_int_cst_wide_type): Remove.
18588 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
18589 of build_int_cst_wide_type.
18590 * stor-layout.c (set_sizetype): (Ditto.).
18591 * dojump.c (do_jump): Use build_int_cstu instead of
18592 build_int_cst_wide_type.
18594 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
18596 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
18597 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
18598 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
18599 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
18600 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
18601 propagate the 'data' argument to copy_tree_r.
18602 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
18603 Propagate 'data' argument to walk_tree.
18604 (copy_if_shared): New function.
18605 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
18606 (unmark_visited): New function.
18607 (unshare_body): Call copy_if_shared instead of doing it manually.
18608 (unvisit_body): Call unmark_visited instead of doing it manually.
18610 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
18612 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
18613 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
18614 * hooks.c: Likewise.
18615 * target-def.h (TARGET_FOLD_BUILTIN): Define to
18616 hook_tree_tree_int_treep_bool_null.
18617 * target.h (struct gcc_target): Update signature of fold_builtin
18619 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
18620 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
18621 instead of the call expression.
18622 (fold_builtin_call_array): Pass n and argarray directly.
18623 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
18625 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
18626 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
18627 `i' and use it in place of `arity'.
18628 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
18629 Dereference `args' directly.
18630 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
18632 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18634 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18636 (Directives): Document optional dg-require-effective-target
18639 2010-05-19 Richard Guenther <rguenther@suse.de>
18642 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
18644 2010-05-19 Richard Guenther <rguenther@suse.de>
18646 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
18647 * common.opt (fwhopr=): New.
18648 * opts.c (common_handle_option): Handle OPT_fwhopr.
18649 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
18650 * collect2.c (main): Match -fwhopr*.
18651 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
18652 Execute ltrans stage in parallel when jobs is bigger than 1.
18654 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18656 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18657 pentiumpro on Solaris 8/x86 with Sun as.
18658 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
18660 (gcc_cv_as_ix86_quad): Check for .quad directive.
18661 * configure: Regenerate.
18662 * config.in: Regenerate.
18663 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
18665 2010-05-19 Martin Jambor <mjambor@suse.cz>
18667 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
18668 also for indirect edges. Actual printing moved...
18669 (ipa_print_node_jump_functions_for_edge): ...here.
18670 (ipa_compute_jump_functions): Renamed to
18671 ipa_compute_jump_functions_for_edge and made static.
18672 (ipa_compute_jump_functions): New function.
18673 (make_edge_direct_to_target): Check if the number of arguments on
18674 the newly direct edge is the same as the number of parametrs of
18676 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
18677 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
18678 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18679 analysis functions unconditionally, call the new
18680 ipa_analyze_params_uses on the node instead of every edge.
18682 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
18684 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
18686 (dump_mem_ref): Adopt debug code to handle a tree as step. This
18687 also checks for a constant int vs. non-constant but
18688 loop-invariant steps.
18689 (find_or_create_group): Change the sort algorithm to only consider
18690 steps that are constant ints.
18691 (idx_analyze_ref): Adopt code to handle a tree instead of a
18692 HOST_WIDE_INT for step.
18693 (gather_memory_references_ref): Handle tree instead of int and be
18694 prepared to see a NULL_TREE.
18695 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
18696 prefetches if the step cannot be calculated at compile time.
18697 (issue_prefetch_ref): Issue prefetches for non-constant but
18698 loop-invariant steps.
18700 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18703 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18705 * tree.h (build_call_list): Remove.
18706 * tree.c (build_call_list): Remove.
18708 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
18710 * tree.h (build_call_list): Remove.
18711 * tree.c (build_call_list): Remove.
18713 2010-05-18 Jan Hubicka <jh@suse.cz>
18715 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
18717 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
18719 PR rtl-optimization/43332
18720 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
18722 2010-05-18 Anatoly Sokolov <aesok@post.ru>
18724 * tree.h (build_int_cstu): Implement as static inline.
18725 * tree.c (build_int_cstu): Remove function.
18726 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
18729 2010-05-18 Richard Guenther <rguenther@suse.de>
18732 * lto-wrapper.c (verbose): New variable. Initialize from -v.
18733 (debug): Initialize from -save-temps.
18734 (collect_execute): Print command-line when verbose.
18735 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
18736 for ltrans invocation. Produce -dumpbase flag again.
18737 (process_args): Remove.
18739 * collect2.c (maybe_run_lto_and_relink): Only pass object
18740 files to lto-wrapper.
18741 * gcc.c (LINK_COMMAND_SPEC): Likewise.
18743 2010-05-18 Jan Hubicka <jh@suse.cz>
18745 * opts.c (decode_options): Do not disable whopr at ipa_cp.
18746 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
18748 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
18751 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
18753 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
18756 2010-05-18 Jakub Jelinek <jakub@redhat.com>
18759 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
18760 rtx_equal_p inline.
18762 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
18764 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
18765 lto-macho as lto_binary_reader.
18767 * darwin.c (darwin_asm_named_section): Do not add assembler comment
18768 after .section directive; just print it before the directive instead.
18770 2010-05-17 Jan Hubicka <jh@suse.cz>
18772 * cgraph.c (cgraph_create_virtual_clone): Only check
18773 versionable_function_p when not in wpa and checking is enabled.
18774 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
18775 there are no more functions to materialize.
18777 2010-05-17 Jan Hubicka <jh@suse.cz>
18779 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
18780 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
18782 (output_cgraph): Call output_cgraph_opt_summary.
18783 (input_cgrpah): Call input_cgraph_opt_summary.
18784 (output_cgraph_opt_summary_p, output_node_opt_summary,
18785 input_node_opt_summary, input_cgraph_opt_section): New functions.
18786 * lto-section-in.c (lto_section_name): Add cgraphopt.
18787 * tree-inline.c (tree_function_versioning): Handle parm_num.
18788 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
18789 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
18791 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
18793 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
18794 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
18795 the insn to prefetch ratio heuristic to loops with known trip count.
18797 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
18799 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
18800 (schedule_prefetches): Do not generate a prefetch if the unroll factor
18801 is far from what is required by the prefetch.
18803 2010-05-17 Jan Hubicka <jh@suse.cz>
18805 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
18806 (ipcp_estimate_growth): Likewise.
18807 (ipcp_const_param_count): Likewise.
18808 (ipcp_insert_stage): Likewise.
18809 * ipa-prop.c (visit_load_for_mod_analysis): New function.
18810 (visit_store_addr_for_mod_analysis): Set used flag.
18811 (ipa_detect_param_modifications): Set used flag for SSE params;
18812 update use of walk_stmt_load_store_addr_ops.
18813 (ipa_print_node_params): Print used flag.
18814 (ipa_write_node_info): Stream used flag.
18815 (ipa_read_node_info): Likewise.
18816 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
18817 (ipa_is_param_used): New function.
18818 (lto_ipa_fixup_call_notes): Remove unused declaration.
18820 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18823 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
18824 * configure: Regenerate.
18825 * config.in: Regenerate.
18826 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
18827 !HAVE_AS_IX86_REP_LOCK_PREFIX.
18828 Don't emit whitespace.
18829 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
18830 (*rep_movsi): Likewise.
18831 (*rep_movsi_rex64): Likewise.
18832 (*rep_movqi): Likewise.
18833 (*rep_movqi_rex64): Likewise.
18834 (*rep_stosdi_rex64): Likewise.
18835 (*rep_stossi): Likewise.
18836 (*rep_stossi_rex64): Likewise.
18837 (*rep_stosqi): Likewise.
18838 (*rep_stosqi_rex64): Likewise.
18839 (*cmpstrnqi_nz_1): Use {%;} after repz.
18840 (*cmpstrnqi_nz_rex_1): Likewise.
18841 (*cmpstrnqi_1): Likewise.
18842 (*cmpstrnqi_rex_1): Likewise.
18843 (*strlenqi_1): Use {%;} after repnz.
18844 (*strlenqi_rex_1): Likewise.
18845 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
18846 (*sync_compare_and_swap<mode>): Likewise.
18847 (sync_double_compare_and_swap<mode>): Likewise.
18848 (*sync_double_compare_and_swapdi_pic): Likewise.
18849 (sync_old_add<mode>): Likewise.
18850 (sync_add<mode>): Likewise.
18851 (sync_sub<mode>): Likewise.
18852 (sync_<code><mode>): Likewise.
18854 2010-05-17 Martin Jambor <mjambor@suse.cz>
18856 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
18857 otr_token and polymorphic.
18858 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
18859 (cgraph_clone_edge): Copy the above fields.
18860 * tree.c (get_binfo_at_offset): New function.
18861 * tree.h (get_binfo_at_offset): Declare.
18862 * ipa-prop.h (enum jump_func_type): Added known_type jump function
18863 type, reordered items, updated comments.
18864 (union jump_func_value): Added base_type field, reordered fields.
18865 (enum ipa_lattice_type): Moved down in the file.
18866 (struct ipa_param_descriptor): New field polymorphic.
18867 (ipa_is_param_polymorphic): New function.
18868 * ipa-prop.c: Include gimple.h and gimple-fold.h.
18869 (ipa_print_node_jump_functions): Print known type jump functions.
18870 (compute_complex_pass_through): Renamed to...
18871 (compute_complex_assign_jump_func): this.
18872 (compute_complex_ancestor_jump_func): New function.
18873 (compute_known_type_jump_func): Likewise.
18874 (compute_scalar_jump_functions): Create known type and complex ancestor
18876 (ipa_note_param_call): New parameter polymorphic, set the corresponding
18877 flag in the call note accordingly.
18878 (ipa_analyze_call_uses): Renamed to...
18879 (ipa_analyze_indirect_call_uses): this. New parameter target, define
18880 variable var only in the block where it is used.
18881 (ipa_analyze_virtual_call_uses): New function.
18882 (ipa_analyze_call_uses): Likewise.
18883 (combine_known_type_and_ancestor_jfs): Likewise.
18884 (update_jump_functions_after_inlining): Implemented handling of a
18885 number of new jump function types combination.
18886 (print_edge_addition_message): Removed.
18887 (make_edge_direct_to_target): New function.
18888 (try_make_edge_direct_simple_call): Likewise.
18889 (try_make_edge_direct_virtual_call): Likewise.
18890 (update_call_notes_after_inlining): Renamed to...
18891 (update_indirect_edges_after_inlining): this. Moved edge creation for
18892 indirect calls to try_make_edge_direct_simple_call, also calls
18893 try_make_edge_direct_virtual_call for virtual calls.
18894 (ipa_print_node_params): Changed the header message.
18895 (ipa_write_jump_function): Stream also known type jump functions.
18896 (ipa_read_jump_function): Likewise.
18897 (ipa_write_indirect_edge_info): Stream new fields in
18898 cgraph_indirect_call_info.
18899 (ipa_read_indirect_edge_info): Likewise.
18900 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
18903 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18905 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
18907 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
18909 * tree.h (CALL_EXPR_ARGS): Delete.
18910 (call_expr_arglist): Delete.
18911 * tree.c (call_expr_arglist): Delete.
18912 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
18913 targetm.fold_builtin.
18914 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
18915 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
18916 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
18917 arglist parameter. Use CALL_EXPR_ARG.
18918 (picochip_expand_builtin_3op): Likewise.
18919 (picochip_expand_builtin_2opvoid): Likewise.
18920 (picochip_expand_array_get): Likewise.
18921 (picochip_expand_array_put): Likewise.
18922 (picochip_expand_array_testport): Likewise.
18923 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
18924 rather than arglist.
18925 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
18927 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
18928 than TREE_VALUE and TREE_CHAIN.
18929 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
18930 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
18933 2010-05-17 Jakub Jelinek <jakub@redhat.com>
18936 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
18937 to have no fallthru edge.
18939 PR middle-end/44102
18940 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
18941 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
18942 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
18943 add BARRIER after previous bb if needed.
18945 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
18947 * tree.c (build_function_type_list_1): Remove bogus assert condition.
18949 2010-05-17 Alan Modra <amodra@gmail.com>
18951 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
18952 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
18953 with copy_reg rtx param.
18954 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
18955 Correct cases where code for ABI_V4 did not initialise the reg
18956 used to access frame. Also leave frame_reg_rtx as sp for large
18957 frames that save no regs.
18959 2010-05-17 Martin Jambor <mjambor@suse.cz>
18961 PR middle-end/44133
18962 * tree-sra.c (create_access_replacement): New parameter rename, mark
18963 the replaement for renaming only when it is true.
18964 (get_access_replacement): Pass true in the rename parameter of
18965 create_access_replacement.
18966 (get_unrenamed_access_replacement): New function.
18967 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
18968 replacement declaration from it.
18970 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
18972 * function.c (try_fit_stack_local, add_frame_space): New static
18974 (assign_stack_local_1): Use them. Look for opportunities to use
18975 space previously wasted on alignment.
18976 * function.h (struct frame_space): New.
18977 (struct rtl_data): Add FRAME_SPACE_LIST member.
18978 * reload1.c (something_was_spilled): New static variable.
18979 (alter_reg): Set it.
18980 (reload): Test it in addition to testing if the frame size changed.
18982 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
18984 * config/s390/s390.c: Define sane prefetch settings and activate
18985 flag_prefetch_loop_arrays on -O3.
18986 * config/s390/s390.h: Declare that read can use write prefetch.
18988 2010-05-17 Jakub Jelinek <jakub@redhat.com>
18990 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
18993 2010-05-16 Jan Hubicka <jh@suse.cz>
18995 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
18996 function body; do not check stdarg field of struct function.
18998 2010-05-16 Jan Hubicka <jh@suse.cz>
19000 * cgraph.c (dump_cgraph_node): Dump versionable flag.
19001 * cgraph.h (cgraph_local_info): Add versionable flag.
19002 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19003 (ipcp_versionable_function_p): Use it.
19004 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19007 2010-05-16 Jan Hubicka <jh@suse.cz>
19009 * cgraph.c (cgraph_clone_node): Take decl argument and insert
19010 clone into hash when it is different from orig.
19011 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19012 * cgraph.h (cgraph_clone_node): Update prototype.
19013 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19014 (lto_cgraph_encoder_delete): Delete body map.
19015 (lto_cgraph_encoder_size): Move to header.
19016 (lto_cgraph_encoder_encode_body_p,
19017 lto_set_cgraph_encoder_encode_body): New.
19018 (lto_output_node): Do not take written_decls argument; output clone_of
19020 (add_node_to): Add include_body_argument; call
19021 lto_set_cgraph_encoder_encode_body on master of the clone.
19022 (add_references): Update use of add_node_to.
19023 (compute_ltrans_boundary): Likewise.
19024 (output_cgraph): Do not create written_decls bitmap.
19025 (input_node): Take nodes argument; stream in clone_of correctly.
19026 (input_cgraph_1): Update use of input_node.
19027 * lto-streamer-out.c (lto_output): Use encoder info to decide
19028 what bodies to output.
19029 * ipa-inline.c (cgraph_clone_inlined_nodes,
19030 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19031 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19032 (lto_cgraph_encoder_size): Define here.
19033 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19036 2010-05-16 Richard Guenther <rguenther@suse.de>
19038 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19040 * ipa-type-escape.c (gate_type_escape_vars): Run when
19041 -fipa-struct-reorg runs.
19042 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19043 * common.opt (fipa-type-escape): Remove.
19045 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19047 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19048 (decode_options): Likewise.
19049 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19051 2010-05-16 Jan Hubicka <jh@suse.cz>
19053 * ipa.c (function_and_variable_visibility): Also bring local all
19056 2010-05-16 Richard Guenther <rguenther@suse.de>
19058 * alias.c (nonoverlapping_memrefs_p): Remove use of
19059 IPA type-escape information.
19061 2010-05-16 Joseph Myers <joseph@codesourcery.com>
19063 * c-common.c (c_common_reswords): Add _Static_assert for C.
19064 * c-parser.c (c_token_starts_declaration,
19065 c_parser_next_token_starts_declaration,
19066 c_parser_static_assert_declaration_no_semi,
19067 c_parser_static_assert_declaration): New.
19068 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19069 Handle static assertions if static_assert_ok.
19070 (c_parser_external_declaration, c_parser_declaration_or_fndef,
19071 c_parser_compound_statement_nostart, c_parser_label,
19072 c_parser_for_statement, c_parser_objc_methodprotolist,
19073 c_parser_omp_for_loop): All callers of
19074 c_parser_declaration_or_fndef changed.
19075 (c_parser_struct_declaration): Handle static assertions.
19076 (c_parser_compound_statement_nostart): Use
19077 c_parser_next_token_starts_declaration and
19078 c_token_starts_declaration to detect start of declarations.
19079 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19082 2010-05-16 Anatoly Sokolov <aesok@post.ru>
19084 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19085 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19086 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19087 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19088 (mmix_function_outgoing_value): Rename to...
19089 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19090 (mmix_function_value_regno_p): Make static.
19091 (mmix_libcall_value): New function.
19092 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19093 mmix_function_value_regno_p): Remove declaration.
19095 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19097 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19098 BUILT_IN_ALLOCA if stack checking is enabled.
19100 2010-05-16 Richard Guenther <rguenther@suse.de>
19102 * var-tracking.c (vars_copy_1): Inline ...
19103 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
19104 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
19105 (variable_merge_over_cur): Adjust. Merge asserts.
19106 (variable_merge_over_src): Likewise.
19107 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19108 (variable_post_merge_new_vals): Merge asserts.
19109 (variable_post_merge_perm_vals): Likewise.
19110 (find_mem_expr_in_1pdv): Likewise.
19111 (dataflow_set_different_value): Remove.
19112 (onepart_variable_different_p): Merge asserts.
19113 (variable_different_p): Likewise.
19114 (dataflow_set_different_1): Inline ...
19115 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
19116 (emit_notes_for_differences_1): Merge asserts.
19118 2010-05-16 Richard Guenther <rguenther@suse.de>
19120 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19121 * optabs.c (libfunc_decl_hash): Likewise.
19122 * varasm.c (emutls_decl): Likewise.
19124 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
19126 * c-decl.c: Don't include gimple.h.
19127 (merge_decls): Do not copy gimple_body.
19129 2010-05-15 Jason Merrill <jason@redhat.com>
19131 * c.opt: Add -fnothrow-opt.
19133 2010-05-15 Jan Hubicka <jh@suse.cz>
19135 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19137 * passes.c (ipa_write_summaries): Write all analyzed nodes.
19139 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
19141 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19142 * Makefile.in: Add it.
19143 Fix all other Makefile dependencies for changes below.
19144 * tree.h: Include it instead of defining VEC primitives here.
19145 * gimple.h: Likewise.
19147 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19148 * except.h: Include vecir.h, break dependence on tree.h.
19150 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19152 * tree-iterator.c: ...to here.
19153 * tree-iterator.h: Fix file introduction comment. Add extern markers.
19155 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
19157 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19158 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19159 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19160 tree-mudflap.h, and target.h.
19161 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19162 predict.h, tree-inline.h, gimple.h, and langhooks.h.
19163 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19164 Add FIXME for why gimple.h is still included (should be unnecessary
19165 since GCC 4.5 gimplification unit-at-a-time).
19166 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19167 * c-pragma.c: Add FIXME for why function.h needs to be included just
19168 for cfun, at front-end level.
19169 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19170 Do not include ggc.h, but include vecprim.h for VEC(char).
19171 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19172 Explain why target.h is included.
19173 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19174 Explain why gimple.h is included.
19175 * c-ppoutput.c: Do not include tm.h.
19176 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
19177 * c-parses.c: Explain why rtl.h is included, and that this (and only
19178 this) is also why tm.h must be included.
19179 Do not include except.h.
19180 * c-lang.c: Do not include ggc.h.
19182 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
19184 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19186 2010-05-15 Joseph Myers <joseph@codesourcery.com>
19188 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19189 unions by default if those structs and unions have no tags. Do
19190 not condition anonymous struct and unions handling on flag_iso.
19191 Allow anonymous structs and unions for C1X.
19192 (finish_struct): Do not diagnose lack of named fields when
19193 anonymous structs and unions present for C1X. Accept flexible
19194 array members in structure with anonymous structs or unions but no
19195 directly named fields.
19196 * doc/extend.texi (Unnamed Fields): Update.
19198 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
19200 * gimple.h (compare_field_offset): Rename into...
19201 (gimple_compare_field_offset): ...this.
19202 * gimple.c (compare_field_offset): Rename into...
19203 (gimple_compare_field_offset): ...this. Compare the full access if
19204 the offset is self-referential.
19205 (gimple_types_compatible_p): Adjust for above renaming.
19206 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
19207 DECL_NONADDRESSABLE_P flag of fields before merging them.
19209 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
19211 * tree.h (ctor_to_list): Delete.
19212 * tree.c (ctor_to_list): Delete.
19214 2010-05-15 Jan Hubicka <jh@suse.cz>
19216 * ipa-reference.c: Include toplev.h
19217 (is_proper_for_analysis): Only add to all_module_statics
19218 if it is allocated.
19219 (write_node_summary_p, stream_out_bitmap,
19220 ipa_reference_write_optimization_summary,
19221 ipa_reference_read_optimization_summary): New.
19222 (struct ipa_opt_pass_d pass_ipa_reference): Add
19223 optimization summary streaming.
19224 * lto-cgraph.c (referenced_from_this_partition_p,
19225 reachable_from_this_partition_p): New functions.
19226 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19227 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19228 * opts.c (decode_options): Enable ipa_reference.
19229 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19230 * lto-streamer.h (referenced_from_this_partition_p,
19231 reachable_from_this_partition_p): Declare.
19233 2010-05-15 Richard Guenther <rguenther@suse.de>
19235 PR tree-optimization/44038
19236 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19237 taking the address of a V_C_E of a constant.
19239 2010-05-14 Jan Hubicka <jh@suse.cz>
19241 * tree.h (memory_identifier_string): Remove.
19242 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19243 (ipa_reference_global_vars_info_d): Remove statics_not_read and
19244 statics_not_written.
19245 (ipa_reference_optimization_summary_d): New structure.
19246 (ipa_reference_optimization_summary_t): New type and vector.
19247 (ipa_reference_vars_info_d): Embedd structures instead of using
19249 (reference_vars_to_consider): Remove out of GGC space.
19250 (module_statics_escape): Remove.
19251 (global_info_obstack): Rename to ...
19252 (optimization_summary_obstack): ... this one.
19253 (initialization_status_t): Remove.
19254 (memory_identifier_string): Remove.
19255 (get_reference_vars_info): Fix indenting.
19256 (set_reference_vars_info): Likewise.
19257 (get_reference_optimization_summary): New.
19258 (set_reference_optimization_summary): New.
19259 (get_global_reference_vars_info): Remove.
19260 (ipa_reference_get_read_global): Remove.
19261 (ipa_reference_get_written_global): Remove.
19262 (ipa_reference_get_not_read_global): Update.
19263 (ipa_reference_get_not_written_global): Update.
19264 (is_proper_for_analysis): Outlaw addressable.
19265 (propagate_bits): Update for new datastructures.
19266 (analyze_variable): Remove.
19267 (init_function_info): Update for new datastructures.
19268 (clean_function_local_data): Remove.
19269 (clean_function): Remove.
19270 (copy_global_bitmap): Use optimizations_summary_obstack.
19271 (duplicate_node_data): Duplicate optimization summary only.
19272 (remove_node_data): Remove optimization summary only.
19273 (generate_summary): Do not analyze variables; do not compute
19274 module_statics_escape; do not prune solutions by it.
19275 (read_write_all_from_decl): Fix typos in comments.
19276 (propagate): Doscover readonly and nonaddressable first;
19277 update for new datastructures; share global bitmaps.
19278 * ipa-reference.h (ipa_reference_get_read_global,
19279 ipa_reference_get_written_global): Remove.
19280 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19281 * Makefile.in: Remove ipa-refereference from GT files.
19283 2010-05-14 Jakub Jelinek <jakub@redhat.com>
19286 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19287 for all SYMBOL_REF_DECLs.
19289 2010-05-14 Jan Hubicka <jh@suse.cz>
19291 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19292 (varpool_all_refs_explicit_p): New inline function.
19293 * ipa-reference.c: Update comment.
19294 (module_statics_written): Remove.
19295 (get_static_decl): Remove.
19296 (ipa_init): Do not initialize module_statics_written.
19297 (analyze_function): Likewise.
19298 (generate_summary): Likewise; do not compute module_statics_readonly
19299 and do not update variable flags.
19300 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19301 * ipa.c: Inlucde flags.h
19302 (cgraph_local_node_p): New.
19303 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19304 promote functions to local.
19305 (ipa_discover_readonly_nonaddressable_vars): New function.
19306 (function_and_variable_visibility): Use cgraph_local_node_p.
19307 * varpool.c (varpool_finalize_decl): Set force_output for
19308 DECL_PRESERVE_P vars.
19310 2010-05-14 Jan Hubicka <jh@suse.cz>
19312 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19314 2010-05-14 Richard Guenther <rguenther@suse.de>
19316 PR tree-optimization/44119
19317 * tree-ssa-pre.c (eliminate): Properly mark replacement of
19318 a PHI node necessary.
19320 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
19322 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19324 2010-05-14 Jason Merrill <jason@redhat.com>
19327 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19328 (gimple_call_set_nothrow): New.
19329 * gimple.c (gimple_build_call_from_tree): Call it.
19330 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19333 * gimplify.c (gimplify_seq_add_stmt): No longer static.
19334 * gimple.h: Declare it.
19335 * gimple.c (gimple_build_eh_filter): No ops.
19337 2010-05-14 Jan Hubicka <jh@suse.cz>
19339 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19340 nodes already in queue.
19341 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19342 re-enqueueing node.
19344 2010-05-14 Jakub Jelinek <jakub@redhat.com>
19347 * cfgexpand.c (expand_debug_expr): If non-memory op0
19348 has BLKmode, return NULL.
19350 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
19352 * config.gcc: Add support for --with-cpu option for bdver1.
19353 * config/i386/i386.h (TARGET_BDVER1): New macro.
19354 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19355 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19356 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19357 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19358 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19359 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19360 (processor_type): Add PROCESSOR_BDVER1.
19361 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19362 processor_type in config/i386/i386.h.
19363 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19364 movaps <reg, reg> instead of movapd <reg, reg> when replacing
19365 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19366 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19367 to emit packed xor instead of packed double/packed integer
19368 xor for SSE and AVX when moving a zero value.
19369 * config/i386/sse.md: Add check for
19370 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19371 movapd/movdqa for SSE and AVX.
19372 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19373 single logical operations i.e and, or and xor instead of packed double
19374 logical operations for SSE and AVX.
19375 * config/i386/i386-c.c (ix86_target_macros_internal):
19376 Add PROCESSOR_BDVER1.
19377 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19378 (has_fma4, has_xop): New.
19379 * config/i386/i386.c (bdver1_cost): New variable.
19380 (m_BDVER1): New macro.
19381 (m_AMD_MULTIPLE): Add m_BDVER1.
19382 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19383 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19384 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19385 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19386 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19387 x86_tune_sse_partial_reg_dependency,
19388 x86_tune_sse_unaligned_load_optimal,
19389 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19390 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19391 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19392 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19393 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19394 Enable/disable for bdver1.
19395 (processor_target_table): Add bdver1_cost.
19396 (cpu_names): Add bdver1.
19397 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19398 processor_alias_table.
19399 (ix86_expand_vector_move_misalign): Change.
19400 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19401 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19402 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19403 of movupd/movdqu for SSE and AVX.
19404 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19405 (ix86_tune_adjust_cost): Add code for bdver1.
19406 (standard_sse_constant_opcode): Add check for
19407 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19408 of packed double xor for SSE and AVX.
19410 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
19412 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19413 result to unsigned.
19415 2010-05-14 Tristan Gingold <gingold@adacore.com>
19417 * toplev.c (default_debug_hooks): Remove this variable.
19418 (process_options): Remove assignments to default_debug_hooks.
19420 2010-05-14 Martin Jambor <mjambor@suse.cz>
19422 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19423 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19424 * langhooks.h (struct lang_hooks_for_decls): Removed field
19426 * tree.c (free_lang_data): Remove assignment to
19427 lang_hooks.fold_obj_type_ref.
19428 * tree.def (OBJ_TYPE_REF): Update comment.
19430 2010-05-14 Richard Guenther <rguenther@suse.de>
19432 PR tree-optimization/44124
19433 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19435 2010-05-14 Alan Modra <amodra@gmail.com>
19438 * config/rs6000/rs6000.c (struct machine_function): Reorder
19439 fields for better packing. Add lr_save_state.
19440 (rs6000_ra_ever_killed): Return lr_save_state if set.
19441 (rs6000_emit_eh_reg_restore): Set lr_save_state.
19443 2010-05-13 Jan Hubicka <jh@suse.cz>
19445 * varpool.c (decide_is_variable_needed): Drop code checking
19446 TREE_SYMBOL_REFERENCED.
19448 2010-05-13 Jan Hubicka <jh@suse.cz>
19450 * final.c (output_addr_const): Do not call mark_decl_referenced.
19451 * cgraphunit.c (process_function_and_variable_attributes): Use
19452 mark_needed_node dirrectly.
19453 (assemble_thunk): Do not call mark_decl_referenced.
19455 2010-05-13 Anatoly Sokolov <aesok@post.ru>
19457 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19459 2010-05-13 Jeff Law <law@redhat.com>
19461 * ira-conflicts.c (print_allocno_conflicts): New function broken out
19463 (print_conflicts): Call print_allocno_conflicts.
19465 2010-05-13 Jakub Jelinek <jakub@redhat.com>
19468 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
19471 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
19473 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
19474 t-mingw-w64 or t-mingw-w32 for multilib configuration.
19475 * config/i386/t-mingw-w32: New.
19476 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
19478 2010-05-13 Martin Jambor <mjambor@suse.cz>
19480 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
19482 * gimple-fold.c (get_base_binfo_for_type): New function.
19483 (gimple_get_relevant_ref_binfo): Likewise.
19484 (gimple_fold_obj_type_ref_known_binfo): Likewise.
19485 (gimple_fold_obj_type_ref): Likewise.
19486 (fold_gimple_call): Simplify condition for folding virtual calls
19487 and call gimple_fold_obj_type_ref.
19488 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
19489 (gimple_fold_obj_type_ref_known_binfo): Likewise.
19491 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
19493 * config/rs6000/rs6000-protos.h
19494 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
19495 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
19496 (rs6000_debug_mode_dependent_address)
19497 (rs6000_mode_dependent_address_ptr): Likewise.
19499 2010-05-13 Jakub Jelinek <jakub@redhat.com>
19502 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
19504 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
19505 * tree-sra.c (create_access_replacement): Call unshare_expr before
19506 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
19507 * dwarf2out.c: Include tree-flow.h.
19508 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
19509 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
19510 Handle DW_OP_bit_piece.
19511 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
19512 construct_piece_list, adjust_piece_list): New functions.
19513 (add_var_loc_to_decl): Handle SRA optimized variables.
19514 Adjust for var_loc_note to loc field renaming.
19515 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
19516 in VAR_LOCATION note.
19517 (new_loc_descr_op_bit_piece): New function.
19518 (dw_sra_loc_expr): New function.
19519 (dw_loc_list): Use it. Don't handle the last range after the
19520 loop, handle it inside of the loop. Adjust for var_loc_note
19521 to loc field renaming.
19522 (add_location_or_const_value_attribute): Only special case
19523 single entry loc lists if loc is NOTE_P. Adjust for
19524 var_loc_note to loc field renaming.
19525 (dwarf2out_var_location): Don't set newloc->var_loc_note
19526 and newloc->next here.
19528 2010-05-12 Jan Hubicka <jh@suse.cz>
19530 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
19532 * cgraph.h (cgraph_only_called_directly_p,
19533 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
19534 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
19535 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
19537 * ipa.c (cgraph_remove_unreachable_nodes): Use
19538 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
19540 * tree-inline.c (copy_bb): Check address_taken flag.
19541 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
19542 externally_visible flag.
19544 2010-05-12 Jason Merrill <jason@redhat.com>
19548 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
19549 * sdbout.c (plain_type_1): Likewise.
19550 * dwarf2out.c (is_base_type): Likewise.
19551 (gen_type_die_with_usage): Likewise. Generate
19552 DW_TAG_unspecified_type for any LANG_TYPE.
19554 2010-05-12 Jan Hubicka <jh@suse.cz>
19556 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
19558 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
19559 (cgraph_clone_edge): Update.
19560 (cgraph_node_remove_callees): Remove indirect calls too.
19561 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
19562 (cgraph_create_indirect_edge): Update prototype.
19563 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
19564 is_proper_for_analysis.
19565 (add_new_function, visited_nodes, function_insertion_hook_holder,
19566 get_local_reference_vars_info, mark_address_taken, mark_address,
19567 mark_load, mark_store, check_asm_memory_clobber, check_call,
19568 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
19569 (ipa_init): Do not initialize visited_nodes;
19570 function_insertion_hook_holder.
19571 (analyze_variable): Rewrite.
19572 (analyze_function): Rewrite.
19573 (copy_local_bitmap): Remove.
19574 (duplicate_node_dat): Do not duplicate local info.
19575 (generate_summary): Simplify to only walk cgraph.
19576 (write_node_summary_p, ipa_reference_write_summary,
19577 ipa_reference_read_summary): Remove.
19578 (propagate): Do not remove function insertion;
19580 (pass_ipa_reference): NULLify summary handling fields.
19581 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
19582 (input_edge): Input ecf_flags.
19583 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
19584 (update_indirect_edges_after_inlining): Ignore edges with unknown
19587 2010-05-12 Sriraman Tallam <tmsriram@google.com>
19589 * implicit-zee.c: New file.
19590 * tree-pass.h (pass_implicit_zee): Declare.
19591 * passes.c (init_optimization_passes): Add zee pass.
19592 * common.opt (fzee): New flag.
19593 * timevar.def (TV_ZEE): Define.
19594 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
19596 * Makefile.in (implicit-zee.o): Add new build file.
19598 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19599 Nathan Froyd <froydnj@codesourcery.com>
19601 * c-common.c (sync_resolve_params): Remove write-only variable.
19603 2010-05-12 Anatoly Sokolov <aesok@post.ru>
19605 * target.h (struct gcc_target): Add mode_dependent_address_p field.
19606 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19607 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
19608 * targhooks.c (default_mode_dependent_address_p): New function.
19609 * targhooks.h (default_mode_dependent_address_p): Declare function.
19610 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19611 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
19612 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
19613 target hook. Change return type to bool.
19614 * recog.h (mode_dependent_address_p): Change return type to bool.
19616 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19617 Nathan Froyd <froydnj@codesourcery.com>
19619 * tree-mudflap.c (build_function_type_0, build_function_type_1,
19620 build_function_type_2, build_function_type_3): Remove.
19621 (mudflap_init): Use build_function_type_list.
19623 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
19624 Nathan Froyd <froydnj@codesourcery.com>
19626 * coverage.c (build_fn_info_value): Call build_constructor instead of
19627 build_constructor_from_list.
19628 (build_ctr_info_value): Likewise.
19629 (build_gcov_info): Likewise.
19631 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
19633 * tree.c (build_constructor): Compute TREE_CONSTANT for the
19634 resultant constructor.
19635 (build_constructor_single): Don't set TREE_CONSTANT.
19636 (build_constructor_from_list): Don't compute TREE_CONSTANT.
19638 2010-05-12 Jan Hubicka <jh@suse.cz>
19640 * cgraph.h (struct varpool_node): Add aux.
19641 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
19642 * varpool.c (varpool_remove_node): Do not remove initializer.
19643 (varpool_reset_queue): Export.
19644 (varpool_finalize_decl): Volatile vars are forced to be output.
19645 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
19647 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
19648 process_references, varpool_can_remove_if_no_refs): New functions.
19649 (cgraph_remove_unreachable_nodes): Handle variables too.
19651 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
19654 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
19656 2010-05-12 Jakub Jelinek <jakub@redhat.com>
19658 PR middle-end/44085
19659 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
19660 change value of ORT_TASK.
19661 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
19662 (omp_notice_threadprivate_variable): New function.
19663 (omp_notice_variable): Call it for threadprivate variables.
19664 If enclosing ctx is a task, print enclosing task rather than
19665 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
19666 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
19667 if task has untied clause.
19670 * dwarf2out.c (base_type_die): Don't add name attribute here.
19671 (modified_type_die): Instead of sizetype use
19672 its underlying original type. If a DW_TAG_base_type doesn't
19673 have name added, add __unknown__.
19674 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
19675 always call force_type_die instead.
19677 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19679 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
19680 for __stack_chk_guard.
19682 2010-05-11 Jakub Jelinek <jakub@redhat.com>
19684 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
19685 don't call start_source_file debug hook here...
19686 (finish_options): ... but here, after outputting predefined and
19687 command line defines and undefs.
19689 PR middle-end/44071
19690 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
19692 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
19693 optimizing away empty bb with no successors, move over its
19694 footer chain to fallthru predecessor.
19695 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
19696 (rtl_split_edge): For asm goto call patch_jump_insn even if
19697 splitting fallthru edge.
19700 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
19701 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
19702 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19703 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
19707 * c-parser.c (c_parser_expression): Mark LHS of a comma
19708 expression as read if it is a decl, handled component or
19709 COMPOUND_EXPR with that on the RHS.
19710 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
19711 if it is a decl or handled component.
19713 2010-05-11 Jan Hubicka <jh@suse.cz>
19715 * lto-symtab.c (lto_symtab_free): New function.
19716 * lto-streamer.h (lto_symtab_free): Declare.
19718 2010-05-11 Jan Hubicka <jh@suse.cz>
19720 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
19721 that if function is needed it is reachable.
19722 (lto_output_node): See if it the function is reachable or referenced.
19723 (output_cgraph): Update call of lto_output_node.
19724 * lto-streamer.h (reachable_from_other_partition_p): Declare.
19726 2010-05-11 Jan Hubicka <jh@suse.cz>
19728 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
19731 2010-05-11 Jan Hubicka <jh@suse.cz>
19733 PR tree-optimize/44063
19734 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
19736 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
19738 (estimate_function_body_sizes): Compute sizes even when disregarding.
19740 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
19742 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
19744 2010-05-11 Jan Hubicka <jh@suse.cz>
19746 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
19747 into every boundary.
19749 2010-05-11 Jan Hubicka <jh@suse.cz>
19751 * matrix-reorg.c (matrix_reorg): Rebuild edges.
19753 2010-05-11 Jan Hubicka <jh@suse.cz>
19755 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
19756 lto_streamer_cache_delete): Put nodes into heap.
19757 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
19760 2010-05-11 Jan Hubicka <jh@suse.cz>
19762 * cgraphbuild.c (cgraph_rebuild_references): New.
19763 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
19764 out extern inlines.
19765 * cgraph.h (cgraph_rebuild_references): Declare.
19766 * tree-inline.c (tree_function_versioning): Use it.
19767 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
19769 2010-05-11 Jan Hubicka <jh@suse.cz>
19771 * cgraph.c: Include ipa-utils.h
19772 (cgraph_create_virtual_clone): Update references.
19773 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
19775 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
19777 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
19778 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
19781 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
19783 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
19785 2010-05-11 Jakub Jelinek <jakub@redhat.com>
19787 * gcc.c (execute): For -### don't quote arguments that
19788 contain just alphanumerics and _/-. characters.
19789 * doc/invoke.texi: Document that change for -###.
19792 * df-problems.c (struct dead_debug): Add to_rescan field.
19793 (dead_debug_init): Clear to_rescan field.
19794 (dead_debug_finish): Rescan all debug insns in to_rescan
19795 bitmap and free the bitmap.
19796 (dead_debug_insert_before): Instead of rescanning debug insns
19797 immediately queue their rescanning until dead_debug_finish.
19798 (df_note_bb_compute): After dead_debug_add do continue instead
19801 2010-05-10 Jakub Jelinek <jakub@redhat.com>
19804 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
19805 clear also INSN_REG_USE_LIST.
19807 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19809 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
19811 2010-05-10 Jan Hubicka <jh@suse.cz>
19813 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
19816 2010-05-10 Jan Hubicka <jh@suse.cz>
19818 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
19820 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
19821 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
19822 (lto_streamer_cache_create): Init alloc pool.
19823 (lto_streamer_cache_delete): Free alloc pool.
19824 * lto-streamer.h: Include alloc pool.
19825 (lto_streamer_cache_d): Use alloc pool.
19826 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
19828 2010-05-10 Jan Hubicka <jh@suse.cz>
19830 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
19831 * cgraphbuild.c: Include except.h
19832 (record_type_list, record_eh_tables): New function.
19833 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
19835 2010-05-10 Jan Hubicka <jh@suse.cz>
19837 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
19838 __frame_dummy_init_array_entry, force_to_data): Attribute as used
19839 rather than unused.
19841 2010-05-10 Michael Matz <matz@suse.de>
19843 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
19844 (can_reassociate_p): Use FLOAT_TYPE_P.
19845 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
19846 (vect_force_simple_reduction): ... this.
19847 * tree-parloops.c (gather_scalar_reductions): Use
19848 vect_force_simple_reduction.
19849 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
19850 vect_is_simple_reduction, add modify argument, if true rewrite
19851 "a-b" into "a+(-b)".
19852 (vect_is_simple_reduction, vect_force_simple_reduction): New
19854 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
19856 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
19857 Vladimir Makarov <vmakarov@redhat.com>
19859 PR rtl-optimization/44012
19860 * ira-build.c (remove_unnecessary_allocnos): Nullify
19861 regno_allocno_map of the removed allocno.
19863 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19865 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
19867 * configure: Regenerate.
19869 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19871 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
19873 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
19874 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
19876 * configure: Regenerate.
19878 2010-05-10 Richard Guenther <rguenther@suse.de>
19880 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
19881 marked if the entry identifier is marked.
19883 2010-05-10 Richard Guenther <rguenther@suse.de>
19885 * c-common.c (struct c_common_attributes): Add fnspec attribute.
19886 (handle_fnspec_attribute): New function.
19887 * gimple.h (gimple_call_return_flags): Declare.
19888 (gimple_call_arg_flags): Likewise.
19889 * gimple.c (gimple_call_arg_flags): New function.
19890 (gimple_call_return_flags): Likewise.
19891 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
19892 New argument flags.
19893 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
19894 return value flags.
19895 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
19896 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
19898 (make_heapvar_for): ... this new function.
19899 (handle_rhs_call): Handle fnspec attribute argument specifiers.
19900 (handle_lhs_call): Likewise.
19901 (find_func_aliases): Adjust.
19903 2010-05-10 Richard Guenther <rguenther@suse.de>
19905 PR tree-optimization/44050
19906 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
19908 2010-05-10 Wei Guozhi <carrot@google.com>
19911 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
19913 2010-05-09 Joseph Myers <joseph@codesourcery.com>
19916 * c-typeck.c (lookup_field): Take a type directly. Update
19918 (build_component_ref): Update call to lookup_field.
19919 (set_init_label): Use lookup_field to find initialized field.
19920 Handle returned list of fields like a sequence of designators.
19922 2010-05-09 Richard Guenther <rguenther@suse.de>
19924 PR middle-end/44024
19925 * fold-const.c (tree_single_nonzero_warnv_p): Properly
19926 handle &FUNCTION_DECL.
19928 2010-05-09 Joseph Myers <joseph@codesourcery.com>
19931 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
19932 structures and unions recursively.
19933 (detect_field_duplicates): Move duplicate detection with a hash to
19934 detect_field_duplicates_hash. Always use a hash if anonymous
19935 structures or unions are present.
19936 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
19939 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
19942 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
19943 detect Atom, Core 2 and Core i7.
19945 2010-05-09 Richard Guenther <rguenther@suse.de>
19947 * gcc.c (store_arg): Handle temporary file deletion for
19950 2010-05-09 Richard Guenther <rguenther@suse.de>
19952 PR middle-end/44043
19953 * ipa-inline.c (estimate_function_body_sizes): Return after
19954 disregarding inline limits.
19956 2010-05-09 Richard Guenther <rguenther@suse.de>
19958 * gcc.c (store_arg): Revert last change.
19960 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
19962 PR middle-end/28685
19963 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
19964 (optimize_ops_list): Call it.
19966 2010-05-08 Richard Guenther <rguenther@suse.de>
19968 PR tree-optimization/44030
19969 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
19970 NECESSARY flag if we propagate from a inserted expression.
19972 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
19974 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
19975 domain types as equal if they are both PLACEHOLDER_EXPRs.
19977 2010-05-08 Richard Guenther <rguenther@suse.de>
19979 * lto-wrapper.c (run_gcc): Remove linker output from
19980 command line for LTRANS invocation.
19982 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
19984 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
19985 lto-macho as lto_binary_reader.
19986 * target.h (struct gcc_target): New hooks lto_start and lto_end.
19987 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
19988 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
19989 in lto_start and lto_end calls.
19990 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
19992 (scan_prog_file): Update is_elf_or_coff call.
19993 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
19995 * collect2.c (main): Fix enum comparison.
19997 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
19999 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20000 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
20001 and TARGET_ASM_LTO_END.
20002 * darwin.c: Include obstack.h and lto-streamer.h.
20003 (lto_section_names_offset, lto_section_names_obstack,
20004 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20006 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20007 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
20008 to a temporary file.
20009 (darwin_asm_lto_end): New function. Restore asm_out_file.
20010 (darwin_asm_named_section): For LTO sections, replace the name with
20011 the offset of the section name in a string table, and build this
20013 (darwin_file_start): Initialize global vars for LTO support.
20014 (darwin_file_end): If output to asm_out_file was redirected, append it
20015 to the proper asm_out_file here. Add the section names section.
20017 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20019 * c-pragma.c (pending_weak_d, pending_weak): New.
20020 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20021 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20022 handle_pragma_weak): Update the uses of pending_weaks.
20024 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20026 PR documentation/44016
20027 * doc/standards.texi (Standards): Link to unversioned
20028 cxx0x_status.html page.
20030 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
20033 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20034 in addition to TREE_USED, to avoid "set but unused" warnings.
20036 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20038 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20039 (is_loop_prefetching_profitable): Do not insert prefetches
20040 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20041 times the prefetch ahead distance.
20043 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20045 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20046 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20047 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20050 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20052 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20053 a diagnostic info when the insn-to-mem ratio is too small.
20055 2010-05-07 Richard Guenther <rguenther@suse.de>
20057 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20059 (store_arg): Queue temp_filename for deletion instead of
20060 the whole argument.
20062 2010-05-07 Richard Guenther <rguenther@suse.de>
20064 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20065 (run_gcc): Handle LTRANS phase invocation.
20066 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20068 2010-05-07 Jakub Jelinek <jakub@redhat.com>
20070 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20071 this is also meaningful on PARM_DECLs and RESULT_DECLs.
20073 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20075 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20077 2010-05-07 Richard Guenther <rguenther@suse.de>
20079 PR tree-optimization/44020
20080 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20081 code when PRE is not yet initialized.
20083 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20085 * config/mips/dbxmdebug.h: Remove.
20086 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20088 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
20090 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20091 with null pointer and also warn about ordered comparison of zero with
20092 pointer if -Wextra.
20094 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20096 * graphite-blocking.c
20097 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20098 * graphite-clast-to-gimple.c
20099 (clast_to_gcc_expression): Same.
20100 (precision_for_value): Same.
20101 (precision_for_interval): Same.
20102 (gcc_type_for_interval): Same.
20103 (graphite_create_new_guard): Same.
20104 (compute_bounds_for_level): Same.
20105 (graphite_create_new_loop_guard): Same.
20106 * graphite-interchange.c
20107 (build_linearized_memory_access): Same.
20108 (pdr_stride_in_loop): Same.
20109 (memory_strides_in_loop_1): Same.
20110 (memory_strides_in_loop): Same.
20111 (extend_scattering): Same.
20112 (psct_scattering_dim_for_loop_depth): Same.
20113 (pbb_number_of_iterations): Same.
20115 (debug_iteration_domains): Same.
20117 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20118 (ppl_set_inhomogeneous_gmp): Same.
20119 (ppl_strip_loop): Same.
20120 (ppl_lexico_compare_linear_expressions): Same.
20121 (ppl_read_polyhedron_matrix): Same.
20122 (ppl_max_for_le_pointset): Same.
20124 (ppl_read_polyhedron_matrix): Same.
20125 (tree_int_to_gmp): Same.
20126 (gmp_cst_to_tree): Same.
20127 (ppl_set_inhomogeneous): Same.
20128 (ppl_set_inhomogeneous_tree): Same.
20129 (ppl_set_coef): Same.
20130 (ppl_set_coef_tree): Same.
20131 * graphite-sese-to-poly.c
20132 (build_pbb_scattering_polyhedrons): Same.
20133 (build_scop_scattering): Same.
20134 (scan_tree_for_params_right_scev): Same.
20135 (scan_tree_for_params): Same.
20136 (find_params_in_bb): Same.
20137 (find_scop_parameters): Same.
20138 (add_upper_bounds_from_estimated_nit): Same.
20139 (build_loop_iteration_domains): Same.
20140 (add_condition_to_domain): Same.
20141 (pdr_add_memory_accesses): Same.
20143 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20145 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20146 CLooG's value_* macros to their respective mpz_* counterparts.
20147 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20148 (graphite_create_new_loop_guard): Same.
20149 * graphite-interchange.c (build_linearized_memory_access): Same.
20150 (pdr_stride_in_loop): Same.
20151 (memory_strides_in_loop_1): Same.
20152 (1st_interchange_profitable_p): Same.
20153 * graphite-poly.c (extend_scattering): Same.
20154 (psct_scattering_dim_for_loop_depth): Same.
20155 (pbb_number_of_iterations): Same.
20156 (pbb_number_of_iterations_at_time): Same.
20157 * graphite-poly.h (new_1st_loop): Same.
20158 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20159 (oppose_constraint): Same.
20160 (insert_constraint_into_matrix): Same.
20161 (ppl_set_inhomogeneous_gmp): Same.
20162 (ppl_set_coef_gmp): Same.
20163 (ppl_strip_loop): Same.
20164 (ppl_lexico_compare_linear_expressions): Same.
20165 (ppl_max_for_le_pointset): Same.
20166 (ppl_min_for_le_pointset): Same.
20167 (ppl_build_realtion): Same.
20168 * graphite-ppl.h (gmp_cst_to_tree): Same.
20169 (ppl_set_inhomogeneous): Same.
20170 (ppl_set_inhomogeneous_tree): Same.
20171 (ppl_set_coef): Same.
20172 (ppl_set_coef_tree): Same.
20173 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20174 (build_scop_scattering): Same.
20175 (add_value_to_dim): Same.
20176 (scan_tree_for_params_right_scev): Same.
20177 (scan_tree_for_params_int): Same.
20178 (scan_tree_for_params): Same.
20179 (find_params_in_bb): Same.
20180 (find_scop_parameters): Same.
20181 (add_upper_bounds_from_estimated_nit): Same.
20182 (build_loop_iteration_domains): Same.
20183 (create_linear_expr_from_tree): Same.
20184 (add_condition_to_domain): Same.
20185 (pdr_add_memory_accesses): Same.
20187 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
20188 Jason Merrill <jason@redhat.com>
20190 * c-common.c (c_common_reswords): Add nullptr.
20191 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
20192 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20193 (gen_type_die_with_usage): Likewise.
20194 * dbxout.c (dbxout_type): Likewise.
20195 * sdbout.c (plain_type_1): Likewise.
20197 2010-05-06 Jason Merrill <jason@redhat.com>
20199 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20200 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
20202 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20204 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20205 stripping WITH_SIZE_EXPR.
20206 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20209 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20211 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20212 list of obsolete configurations.
20213 Disabled check for obsolete configurations.
20214 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20215 Removed support for previous versions.
20216 * config/mips/iris.h: Removed.
20217 * config/mips/iris5.h: Removed.
20218 * config/mips/iris6.h: Merged old iris.h contents.
20219 (TARGET_IRIX): Removed.
20220 (DRIVER_SELF_SPECS): Removed mabi=32.
20221 (IDENT_ASM_OP): Removed undef.
20222 (STARTFILE_SPEC): Removed mabi=32.
20223 (ENDFILE_SPEC): Likewise.
20224 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20225 (MACHINE_TYPE): Update for IRIX 6.5.
20226 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20227 TARGET_IRIX by TARGET_IRIX6.
20228 (mips_file_start): Likewise.
20229 (mips_output_external): Remove IRIX 5/6 O32 support.
20230 (mips_output_function_prologue): Likewise.
20231 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20233 (TARGET_CPU_CPP_BUILTINS): Likewise.
20234 (TARGET_IRIX): Removed.
20235 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20236 (MULTILIB_DIRNAMES): Removed 32.
20237 (MULTILIB_OSDIRNAMES): Removed ../lib.
20238 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20239 (Specific, mips-sgi-irix5): Document removal.
20240 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20241 Remove references to older IRIX 6 releases and the O32 ABI.
20243 2010-05-06 Jakub Jelinek <jakub@redhat.com>
20246 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20247 instead of DF_REF_REAL_REG.
20249 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
20252 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20253 handling to still return true for x64 targets.
20255 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20257 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20259 2010-05-06 Jan Hubicka <jh@suse.cz>
20261 PR tree-optimization/43791
20262 * ipa-inline.c (update_caller_keys): Remove bogus
20263 disregard_inline_limits check.
20265 2010-05-06 Michael Matz <matz@suse.de>
20267 PR tree-optimization/43984
20268 * tree-ssa-pre.c (inserted_phi_names): Remove.
20269 (inserted_exprs): Change to bitmap.
20270 (create_expression_by_pieces): Set bits, don't append to vector.
20271 (insert_into_preds_of_block): Don't handle inserted_phi_names.
20272 (eliminate): Don't look at inserted_phi_names, remove deleted
20273 insns from inserted_exprs.
20274 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20275 (init_pre, fini_pre): Allocate and free bitmaps.
20276 (execute_pre): Insert insns on edges before elimination.
20278 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20280 * tree.c (initializer_zerop): Handle STRING_CST.
20282 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20285 * doc/invoke.texi (Wimplicit): Document as C only.
20286 * opts.c (common_handle_option): Add argument kind.
20287 (handle_option): Rename as read_cmdline_option. Factor out code to...
20288 (handle_option): ... here. New.
20289 (handle_options): Rename as read_cmdline_options.
20290 (decode_options): Update call.
20291 (set_option): Use option index instead of option pointer. Classify
20292 diagnostics correctly.
20293 (enable_warning_as_error): Call handle_option.
20294 * opts.h (set_option): Update declaration.
20295 (handle_option): Declare.
20296 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20297 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20298 * c-opts.c (set_Wimplicit): Delete.
20299 (c_family_lang_mask): New static constant.
20300 (c_common_handle_option): Add argument kind. Use handle_option
20301 instead of set_Wimplicit.
20302 (c_common_post_options): warn_implicit and warn_implicit_int
20303 are disabled by default.
20304 * c-common.c (warn_implicit): Do not define here.
20305 * c-common.h (warn_implicit): Do not declare here.
20306 (c_common_handle_option): Update declaration.
20307 * lto-opts.c (lto_reissue_options): Update call to set_option.
20309 2010-05-06 Richard Guenther <rguenther@suse.de>
20311 PR tree-optimization/43571
20312 * domwalk.c (walk_dominator_tree): Walk the dominator
20313 sons in more optimal order.
20315 2010-05-06 Richard Guenther <rguenther@suse.de>
20317 PR tree-optimization/43934
20318 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20319 (stmt_cost): Likewise.
20320 (extract_true_false_args_from_phi): New helper.
20321 (determine_max_movement): For PHI nodes verify we can hoist them
20322 and compute their cost.
20323 (determine_invariantness_stmt): Handle PHI nodes.
20324 (move_computations_stmt): Likewise. Hoist PHI nodes in
20325 if-converted form using COND_EXPRs.
20326 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20327 (tree_ssa_lim): Likewise.
20328 * tree-flow.h (tree_ssa_lim): Adjust prototype.
20329 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20331 2010-05-06 Richard Guenther <rguenther@suse.de>
20333 PR tree-optimization/43987
20334 * tree-ssa-structalias.c (could_have_pointers): For possibly
20335 address-taken variables force pointers to be recorded.
20336 (create_variable_info_for_1): Likewise.
20337 (push_fields_onto_fieldstack): Pass in wheter all fields
20338 must have pointers.
20339 (find_func_aliases): Query types instead of vars whether
20340 they contain pointers where appropriate.
20342 2010-05-06 Jan Hubicka <jh@suse.cz>
20344 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20345 (record_reference, mark_address, mark_load, mark_store): Record
20347 (record_references_in_initializer): Update call of record_references.
20348 (rebuild_cgraph_edges): Remove all references before rebuiding.
20349 * cgraph.c (cgraph_create_node): Clear ref list.
20350 (cgraph_remove_node): Remove references.
20351 (dump_cgraph_node): Dump references.
20352 (cgraph_clone_node): Clone references.
20353 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20354 (struct cgraph_node, varpool_node): Add ref_lst.
20355 * ipa-ref.c: New file.
20356 * ipa-ref.h: New file.
20357 * ipa-ref-inline.h: New file.
20358 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20359 (referenced_from_other_partition_p): New function.
20360 (lto_output_varpool_node): Take set arugment; call
20361 referenced_from_other_partition.
20362 (lto_output_ref): New.
20363 (add_references): New.
20364 (output_refs): New.
20365 (output_cgraph): Compute boundary based on references; output refs.
20366 (output_varpool): Accept cgraph_node_set argument.
20369 (input_cgraph): Call input_refs.
20370 * lto-section-in.c (lto_section_name): Add refs.
20371 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20372 (ipa-ref.o): New file.
20373 * varpool.c (varpool_node): Clear ipa ref list.
20374 (varpool_remove_node): Remove references.
20375 (dump_varpool_node): Dump references.
20376 (varpool_assemble_decl): Only compile finalized ones.
20377 (varpool_extra_name_alias): Initialize ref list.
20378 * lto-streamer.c (lto-get_section_name): Add .refs section.
20379 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20380 (referenced_from_other_partition_p): Declared.
20382 2010-05-06 Ira Rosen <irar@il.ibm.com>
20384 PR tree-optimization/43901
20385 * tree-vect-stmts.c (vectorizable_call): Assert that vector
20386 type is not NULL if it's transformation phase, and return
20387 FALSE if it's analysis.
20388 (vectorizable_conversion, vectorizable_operation,
20389 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20391 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
20393 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20395 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20397 * config/mips/mips-protos.h
20398 (mips_small_register_classes_for_mode_p): Delete prototype.
20400 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
20402 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20403 * config/arm/arm.c (multiple_operation_profitable_p,
20404 compute_offset_order): New static functions.
20405 (load_multiple_sequence, store_multiple_sequence): Use them.
20406 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
20407 memory offsets, not register numbers.
20408 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20410 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
20412 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20413 (get_pending_sizes, put_pending_size, put_pending_sizes):
20414 Update the uses of pending_sizes.
20415 * c-decl.c (store_parm_decls): Likewise.
20416 * c-tree.h (struct c_arg_info): Likewise.
20417 * tree.h: Update the prototype for get_pending_sizes and
20420 2010-05-05 Jason Merrill <jason@redhat.com>
20423 * c-common.c (handle_aligned_attribute): Respect
20424 ATTR_FLAG_TYPE_IN_PLACE.
20427 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20428 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20429 (TARGET_INITIALIZER): Use it.
20430 * c-common.c (attribute_takes_identifier_p): Call it.
20431 * c-common.h: Update prototype.
20432 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20433 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20435 2010-05-05 Jakub Jelinek <jakub@redhat.com>
20438 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20439 DW_ID_down_case for Fortran compilation units.
20441 2010-05-05 Jan Hubicka <jh@suse.cz>
20443 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20446 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
20448 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20449 a variable-sized RESULT_DECL.
20451 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
20453 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20455 2010-05-05 Jason Merrill <jason@redhat.com>
20458 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20460 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20462 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
20463 Jakub Jelinek <jakub@redhat.com>
20466 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
20467 (dead_debug_init, dead_debug_finish): New functions.
20468 (dead_debug_add, dead_debug_insert_before): Likewise.
20469 (df_note_bb_compute): Initialize a dead_debug object, add dead
20470 debug uses to it, insert debug bind insns before death insns,
20471 reset debug insns that refer to pending uses at the end.
20472 * rtl.h (make_debug_expr_from_rtl): New prototype.
20473 * varasm.c (make_debug_expr_from_rtl): New function.
20475 2010-05-05 Jan Hubicka <jh@suse.cz>
20477 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
20478 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
20479 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
20480 lto_varpool_encoder_deref, lto_varpool_encoder_size,
20481 lto_varpool_encoder_encode_initializer_p,
20482 lto_set_varpool_encoder_encode_initializer): New functions.
20483 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
20484 call output_varpool.
20485 (input_varpool_node): Do not always set analyzed.
20486 (input_cgraph_1): Return vector of cgraph nodes.
20487 (input_varpool_1): Return vector of varpools.
20488 (input_cgraph): Free the vectors.
20489 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20490 output only initializers needed.
20491 (lto_output): Only call output_cgraph.
20492 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
20493 * lto-section-out.c (lto_new_out_decl_state): Initialize
20494 state->varpool_node_encoder.
20495 * lto-streamer.h (lto_varpool_encoder_d): New.
20496 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
20497 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
20498 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
20499 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
20500 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
20502 (output_varpool, input_varpool): Remove declarations.
20504 2010-05-05 Jan Hubicka <jh@suse.cz>
20506 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
20507 with body can prevail.
20509 2010-05-05 Jan Hubicka <jh@suse.cz>
20511 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
20514 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20516 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
20518 * gengtype.h (erro_at_line): Constify pos argument.
20520 * gengtype.c: Include hashtab.h.
20521 (enum gc_used): Document GC_MAYBE_POINTED_TO.
20522 (error_at_line): Constify pos argument.
20523 (do_typedef): Initialize p->opt field.
20524 (get_file_gtfilename): Fix comment typo.
20525 (struct walk_type_data): Constify line field.
20526 (get_output_file_for_structure): New function.
20527 (write_local_func_for_structure): Constify orig_s argument.
20528 Use get_output_file_for_structure.
20529 (write_func_for_structure): Use get_output_file_for_structure.
20530 (INDENT): New define.
20531 (dump_pair, dump_type, dump_type_list, dump_typekind)
20532 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
20533 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
20535 (seen_types): New variable.
20536 (main): New variable do_dump. Process "-d" command line option.
20537 Call dump_everything if dump requested.
20539 2010-05-05 Jakub Jelinek <jakub@redhat.com>
20541 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
20542 in a temporary instead of invoking the macro multiple times.
20543 (track_expr_p): Likewise.
20545 2010-05-04 Neil Vachharajani <nvachhar@google.com>
20547 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
20549 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
20550 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
20551 conditions for printing notes.
20552 * common.opt (-Wcoverage-mismatch): Allow negative, default to
20553 true, update documentation.
20554 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
20556 2010-05-04 Jakub Jelinek <jakub@redhat.com>
20559 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
20562 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
20565 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
20566 (*sse_prologue_save_insn1): Likewise.
20567 (SSE prologue save splitter): Likewise.
20569 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
20571 * tree.c (free_lang_data_in_one_sizepos): New inline function.
20572 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
20573 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
20574 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
20575 all decls. Call it on DECL_FIELD_OFFSET of fields.
20576 (find_decls_types_r): Follow DECL_VALUE_EXPR.
20577 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
20579 2010-05-04 Martin Jambor <mjambor@suse.cz>
20581 * tree-sra.c (build_access_from_expr_1): The first parameter type
20582 changed to simple tree.
20583 (build_access_from_expr): Likewise, gsi parameter was eliminated.
20584 (scan_assign_result): Renamed to assignment_mod_result, enum elements
20586 (build_accesses_from_assign): Removed all parameters except for a
20587 simple gimple statement. Now returns a simple bool.
20588 (scan_function): All non-analysis parts moved to separate functions
20589 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
20590 parameters and updated both callers.
20591 (sra_modify_expr): Removed parameter data.
20592 (sra_modify_function_body): New function.
20593 (perform_intra_sra): Call sra_modify_function_body to modify the
20595 (replace_removed_params_ssa_names): Parameter data changed into
20596 adjustments vector.
20597 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
20598 changed the parameter dont_convert to convert with the opposite
20600 (sra_ipa_modify_assign): Parameter data changed into adjustments
20601 vector, return value changed to bool.
20602 (ipa_sra_modify_function_body): New function.
20603 (sra_ipa_reset_debug_stmts): Updated a comment.
20604 (modify_function): Use ipa_sra_modify_function_body to modify function
20607 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
20609 PR middle-end/43671
20610 * alias.c (true_dependence): Handle the same VALUE in x and mem.
20611 (canon_true_dependence): Likewise.
20612 (write_dependence_p): Likewise.
20614 2010-05-04 Jan Hubicka <jh@suse.cz>
20616 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
20617 * cgraphbuild.c: Include ipa-utils.h
20618 (record_reference_ctx): New struct.
20619 (record_reference): Simplify to work on initializers; not statements.
20620 (mark_address, mark_load, mark_store): New.
20621 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20622 walk PHI nodes too.
20623 (record_references_in_initializer): Update use of record_reference.
20624 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20625 walk PHI nodes too.
20627 2010-05-04 Jan Hubicka <jh@suse.cz>
20629 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
20630 node will be removed anyway.
20631 (lto_varpool_replace_node): Allow also unanalyzed nodes;
20632 relink aliases of node into prevailing node.
20633 * varpool.c (varpool_remove_node): Remove aliases properly;
20634 when removing node, remove all its aliases too; remove DECL_INITIAL
20635 of removed node; ggc_free the varpool node.
20637 2010-05-04 Richard Guenther <rguenther@suse.de>
20639 PR tree-optimization/43879
20640 * tree-ssa-structalias.c (alias_get_name): Use
20641 DECL_ASSEMBLER_NAME if available.
20642 (create_function_info_for): Return the varinfo node.
20643 (ipa_pta_execute): Associate same-body aliases and extra names
20644 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
20646 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
20648 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
20650 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
20653 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
20654 only if HONOR_REG_ALLOC_ORDER is not defined.
20656 2010-05-04 Richard Guenther <rguenther@suse.de>
20658 PR tree-optimization/43949
20659 * tree-vrp.c (extract_range_from_binary_expr): Only handle
20662 2010-04-26 Jason Merrill <jason@redhat.com>
20664 * c.opt (-fstrict-enums): New.
20665 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
20667 2010-05-03 David Ung <davidu@mips.com>
20668 James E. Wilson <wilson@codesourcery.com>
20670 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
20671 emit the trap instruction before the divide for TUNE_74K.
20673 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
20675 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
20676 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
20677 based on the above, for new target hook.
20679 * hooks.c (hook_bool_mode_true): New generic hook.
20680 * hooks.h (hook_bool_mode_true): Add prototype.
20682 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
20684 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
20685 target hook, set to hook_bool_mode_false.
20686 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
20687 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
20688 with targetm.small_register_classes_for_mode_p.
20689 (find_reusable_reload): Likewise.
20690 (combine_reloads): Likewise.
20691 * reload1.c (reload_as_needed): Likewise.
20692 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
20693 * ifcvt.c (noce_process_if_block, check_cond_move_block,
20694 dead_or_predicable): Likewise.
20695 * regmove.c (optimize_reg_copy_1): Likewise.
20696 * calls.c (prepare_call_address): Likewise.
20697 (precompute_register_parameters): Likewise.
20699 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
20701 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
20702 implementation of the hook that considers all register classes
20703 small except for SH64.
20704 (sh_override_options): Use the new hook.
20705 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
20708 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
20710 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
20711 implementation of the hook that considers all register classes
20713 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
20716 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
20718 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
20719 implementation of the hook that considers all register classes
20721 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
20724 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
20726 * config/m32c/m32c.h: Likewise.
20727 * config/pdp11/pdp11.h: Likewise.
20728 * config/avr/avr.h: Likewise.
20729 * config/xtensa/xtensa.h: Likewise.
20730 * config/m68hc11/m68hc11.h: Likewise.
20731 * config/mn10300/mn10300.h: Likewise.
20732 * config/mcore/mcore.h: Likewise.
20733 * config/h8300/h8300.h: Likewise.
20734 * config/bfin/bfin.h: Likewise.
20736 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
20737 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
20739 2010-05-03 Anatoly Sokolov <aesok@post.ru>
20741 * double-int.h (tree_to_double_int): Remove macro.
20742 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
20743 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20744 (tree_to_double_int): New function.
20745 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
20747 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20749 2010-05-03 Richard Guenther <rguenther@suse.de>
20751 PR tree-optimization/43971
20752 * tree-ssa-structalias.c (get_constraint_for_1): Fix
20753 constraints in the !flag_delete_null_pointer_checks case.
20755 2010-05-03 Jakub Jelinek <jakub@redhat.com>
20758 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
20759 result mode matches original rtl mode.
20761 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
20764 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
20766 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20768 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
20769 when processing flag options.
20771 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20773 * gcov-iov.c (main): Change format string placeholder
20774 from %#08x to 0x%08x.
20775 * genchecksum.c (dosum): Change format string placeholder
20776 from %#02x to 0x%02x.
20778 2010-05-02 Richard Guenther <rguenther@suse.de>
20780 PR tree-optimization/43879
20781 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
20783 2010-05-02 Bruno Haible <bruno@clisp.org>
20785 * doc/extend.texi (Function Attributes): Fix a typo.
20787 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20790 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
20791 placeholder from 0x%x to %#x.
20792 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20793 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
20794 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
20795 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
20796 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
20797 * config/i386/i386.c (ix86_target_string): Ditto.
20798 * config/i386/i386.c (output_pic_addr_const): Ditto.
20799 (print_operand): Ditto.
20801 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
20803 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
20804 placeholder from 0x%x to %#x.
20805 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
20806 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
20807 (ASM_OUTPUT_DEBUG_DATA): Ditto.
20808 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
20809 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
20810 * optc-gen.awk: Ditto.
20811 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
20812 (HOST_WIDE_INT_PRINT_HEX): Ditto.
20813 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
20814 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20816 2010-05-01 Anatoly Sokolov <aesok@post.ru>
20818 * target.h (struct calls): Add function_value_regno_p field.
20819 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
20820 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
20821 * targhooks.c (default_function_value_regno_p): New function.
20822 * targhooks.h (default_function_value_regno_p): Declare function.
20823 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
20824 * builtins.c. (apply_result_size): (Ditto.).
20825 * combine.c. (likely_spilled_retval_p): (Ditto.).
20826 * mode-switching.c. Include 'target.h'.
20827 (create_pre_exit): Use function_value_regno_p hook.
20828 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
20829 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
20830 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
20832 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
20833 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
20834 (ix86_function_value_regno_p): Declare as static, change argument
20835 type to const unsigned int.
20836 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
20838 2010-05-01 Richard Guenther <rguenther@suse.de>
20840 PR tree-optimization/43949
20841 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
20843 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
20845 2010-05-01 Anatoly Sokolov <aesok@post.ru>
20847 * rtl.h (CONST_DOUBLE_P): Define.
20848 (rtx_to_double_int): Declare.
20849 * emit-rtl.c (rtx_to_double_int): New function.
20850 * dwarf2out.c (insert_double): New function.
20851 (loc_descriptor, add_const_value_attribute): Clean up, use
20852 rtx_to_double_int and insert_double functions.
20854 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
20856 * doc/extend.texi (Inline): Add missing return keyword to examples.
20857 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
20860 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
20862 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
20863 the variable part of the offset as well. Use highest_pow2_factor for
20864 all alignment checks.
20866 2010-04-30 Richard Guenther <rguenther@suse.de>
20868 PR tree-optimization/43879
20869 * tree-ssa-structalias.c (type_could_have_pointers): Functions
20872 2010-04-30 Jan Hubicka <jh@suse.cz>
20874 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
20876 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
20878 2010-04-30 Jan Hubicka <jh@suse.cz>
20880 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
20882 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
20883 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
20884 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
20885 cgraph_node_set_needs_ltrans_p): Remove.
20887 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
20889 * sdbout.c: Include vec.h, do not include varray.h.
20890 (deferred_global_decls, sdbout_global_decl,
20891 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
20892 * toplev.c: Do not include varray.h.
20893 (dump_memory_report): Do not dump VARRAY statistics.
20894 * gengtype.c (open_base_file): Ignore varray.h.
20895 * Makefile.in: Update for abovementioned changes.
20896 Remove all traces of varray.c and varray.h.
20897 * varray.c: Remove file.
20898 * varray.h: Remove file.
20900 2010-04-30 Jan Hubicka <jh@suse.cz>
20902 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
20905 2010-04-30 Jan Hubicka <jh@suse.cz>
20907 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
20910 2010-04-30 Richard Guenther <rguenther@suse.de>
20912 * tree-ssa-structalias.c (get_constraint_for_1): Generate
20913 constraints for CONSTRUCTOR.
20915 2010-04-30 Richard Guenther <rguenther@suse.de>
20918 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
20919 first after all lowering passes.
20921 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
20923 * toplev.c: Include varray.h for statistics dumping.
20924 * tree.h: Do not declare varray_head_tag.
20925 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
20926 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
20927 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
20928 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
20929 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
20930 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
20931 c-common.c, c-common.h, reg-stack.c, basic-block.h,
20932 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
20934 * Makefile.in: Update for abovementioned changes.
20936 2010-04-30 Jakub Jelinek <jakub@redhat.com>
20939 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
20941 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20943 * config/picochip/picochip.c (picochip_legitimize_address): Define.
20944 Use this function to do machine-specific conversion.
20945 (picochip_legitimize_reload_address): Likewise.
20946 (picochip_legitimate_address_p): Check valid base register only if
20948 (picochip_check_conditional_copy): Check for modw only if opnd is
20950 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
20951 to call the function in c.
20952 * config/picochip/picochip-protos.h
20953 (picochip_legitimize_reload_address): Define.
20954 * config/picochip/picochip.md (supported_compare1): Define.
20956 2010-04-30 Jan Hubicka <jh@suse.cz>
20958 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
20959 (cgraph_global_info): Remove inlined.
20960 (LTO_cgraph_tag_names): Remove.
20961 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
20962 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
20963 simplify cgraph tags and document.
20964 (lto_output_node): Use only LTO_cgraph_unavail_node and
20965 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
20966 for_functions_valid, global info, process and output flags.
20967 (input_overwrite_node): Initialize estimated stack size and
20968 estimated growth. Do not read flags we no longer store.
20969 (input_node): Likewise do not read info no longer stored.
20970 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
20973 2010-04-30 Richard Guenther <rguenther@suse.de>
20975 PR tree-optimization/43879
20976 * tree-ssa-structalias.c (get_constraint_for_1): Properly
20977 handle non-zero initializers.
20979 2010-04-30 Richard Guenther <rguenther@suse.de>
20981 * builtins.c (fold_builtin_1): Delete free (0).
20983 2010-04-29 Jan Hubicka <jh@suse.cz>
20985 * gengtype.c (open_base_files): Add lto-streamer.h
20986 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
20987 (pass_ipa_cp): GGC collect.
20988 * toplev. (compile_file): Do not output symbols.
20989 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
20990 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
20991 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
20992 * lto-section-in.c: Include ggc.h
20993 (lto_new_in_decl_state): Alloc in GGC.
20994 (lto_delete_in_decl_state): Likewise.
20995 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
20998 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21001 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21002 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
21003 (HONOR_REG_ALLOC_ORDER): Describe new macro.
21004 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21005 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21006 account only if HONOR_REG_ALLOC_ORDER is not defined.
21007 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21008 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21010 2010-04-29 Jon Grant <04@jguk.org>
21012 * collect2.c (vflag): Change type from int to bool.
21014 (helpflag): New global bool.
21015 (main): Set vflag and debug with boolean, not integer truth values.
21016 Accept new "--help" option and output usage text if found.
21017 * collect2.h (vflag): Update prototype.
21020 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21023 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21025 2010-04-29 Richard Guenther <rguenther@suse.de>
21028 * plugin.h (invoke_plugin_callbacks): Annotate arguments
21029 with ATTRIBUTE_UNUSED.
21031 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21034 * config/i386/i386.c (get_some_local_dynamic_name): Replace
21035 INSN_P with NONDEBUG_INSN_P.
21036 (distance_non_agu_define): Likewise.
21037 (distance_agu_use): Likewise.
21039 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21041 From Dominique d'Humieres <dominiq@lps.ens.fr>
21043 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21046 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
21048 * plugin.h (invoke_plugin_callbacks): New inline function.
21049 * plugin.c (flag_plugin_added): New global flag.
21050 (add_new_plugin): Initialize above flag.
21051 (invoke_plugin_callbacks): Rename to ...
21052 (invoke_plugin_callbacks_full): ... this.
21054 2010-04-28 Jan Hubicka <jh@suse.cz>
21056 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21057 (lto_varpool_replace_node): New.
21058 (lto_symtab_resolve_symbols): Resolve varpool nodes.
21059 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21060 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21061 * cgraph.h (varpool_node_ptr): New type.
21062 (varpool_node_ptr): New vector.
21063 (varpool_node_set_def): New structure.
21064 (varpool_node_set): New type.
21065 (varpool_node_set): New vector.
21066 (varpool_node_set_element_def): New structure.
21067 (varpool_node_set_element, const_varpool_node_set_element): New types.
21068 (varpool_node_set_iterator): New type.
21069 (varpool_node): Add prev pointers, add used_from_other_partition,
21070 in_other_partition.
21071 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21072 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21073 varpool_get_node, varpool_remove_node): Declare.
21074 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21075 varpool_node_set_size): New inlines.
21076 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21077 * tree-pass.h (varpool_node_set_def): Forward declare.
21078 (ipa_opt_pass_d): Summary writting takes vnode sets too.
21079 (ipa_write_optimization_summaries): Update prototype.
21080 * ipa-cp.c (ipcp_write_summary): Update.
21081 * ipa-reference.c (ipa_reference_write_summary): Update.
21082 * lto-cgraph.c (lto_output_varpool_node): New static function.
21083 (output_varpool): New function.
21084 (input_varpool_node): New static function.
21085 (input_varpool_1): New function.
21086 (input_cgraph): Input varpool.
21087 * ipa-pure-const.c (pure_const_write_summary): Update.
21088 * lto-streamer-out.c (lto_output): Update, output varpool too.
21089 (write_global_stream): Kill WPA hack.
21090 (produce_asm_for_decls): Update.
21091 (output_alias_pair_p): Handle variables.
21092 (output_unreferenced_globals): Output only needed partition of varpool.
21093 * ipa-inline.c (inline_write_summary): Update.
21094 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21096 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21097 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21098 varpool_node_set_new, varpool_node_set_add,
21099 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21100 debug_varpool_node_set): New functions.
21101 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21102 (execute_one_pass): Process new decls too.
21103 (ipa_write_summaries_2): Pass around vsets.
21104 (ipa_write_summaries_1): Likewise.
21105 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21107 (ipa_write_optimization_summaries_1): Pass around vsets.
21108 (ipa_write_optimization_summaries): Likewise.
21109 * varpool.c (varpool_get_node): New.
21110 (varpool_node): Update doubly linked lists.
21111 (varpool_remove_node): New.
21112 (dump_varpool_node): More dumping.
21113 (varpool_enqueue_needed_node): Update doubly linked lists.
21114 (decide_is_variable_needed): Kill ltrans hack.
21115 (varpool_finalize_decl): Kill lto hack.
21116 (varpool_assemble_decl): Skip decls in other partitions.
21117 (varpool_assemble_pending_decls): Update doubly linkes lists.
21118 (varpool_empty_needed_queue): Likewise.
21119 (varpool_extra_name_alias): Likewise.
21120 * lto-streamer.c (lto_get_section_name): Add vars section.
21121 * lto-streamer.h (lto_section_type): Update.
21122 (output_varpool, input_varpool): Declare.
21124 2010-04-28 Mike Stump <mikestump@comcast.net>
21126 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21128 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21130 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21131 record or union type with RECORD_OR_UNION_TYPE_P predicate.
21132 (lto_input_ts_type_tree_pointers): Likewise.
21133 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21134 (lto_output_ts_type_tree_pointers): Likewise.
21136 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21138 Uniquization of constants at the Tree level
21139 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21140 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21142 (tree_output_constant_def): Declare.
21143 * gimplify.c (gimplify_init_constructor): When using block copy, first
21144 uniquize the constant constructor on the RHS.
21145 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21146 DECL_IN_CONSTANT_POOL flag.
21147 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21148 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21150 (assemble_variable): Deal with symbols belonging to the tree constant
21152 (get_constant_section): Add ALIGN parameter and simplify.
21153 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21154 (assemble_constant_contents): Use the expression of the VAR_DECL.
21155 (output_constant_def_contents): Use the alignment of the VAR_DECL.
21156 (tree_output_constant_def): New global function.
21157 (mark_constant): Use the expression of the VAR_DECL.
21158 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21160 (output_object_block): Likewise and assemble the expression.
21162 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21164 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21165 hash_tree, eq_tree): New tree hash table.
21166 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21167 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21168 lto_orig_address_remove): Reimplement.
21170 2010-04-28 Xinliang David Li <davidxl@google.com>
21173 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21174 (compute_uninit_opnds_pos): New function.
21175 (is_non_loop_exit_postdominating): New function.
21176 (compute_control_dep_chain): New function.
21177 (find_pdom): New function.
21178 (convert_control_dep_chain_into_preds): New function.
21179 (find_predicates): New function.
21180 (find_control_equiv_block): New function.
21181 (collect_phi_def_edges): New function.
21182 (find_def_preds): New function.
21183 (find_dom): New function.
21184 (dump_predicates): New function.
21185 (get_cmp_code): New function.
21186 (is_value_included_in): New function.
21187 (find_matching_predicate_in_rest_chains): New function.
21188 (use_pred_not_overlap_with_undef_path_pred): New function.
21189 (is_use_properly_guarded): New function.
21190 (normalize_cond_1): New function.
21191 (is_and_or_or): New function.
21192 (normalize_cond): New function.
21193 (is_gcond_subset_of): New function.
21194 (is_subset_of_any): New function.
21195 (is_or_set_subset_of): New function.
21196 (is_and_set_subset_of): New function.
21197 (is_norm_cond_subset_of): New function.
21198 (is_pred_expr_subset_of): New function.
21199 (is_pred_chain_subset_of): New function.
21200 (is_included_in): New function.
21201 (is_superset_of): New function.
21202 (find_uninit_use): New function.
21203 (warn_uninitialized_phi): New function.
21204 (compute_possibly_undefined_names): New function.
21205 (ssa_undefined_value_p): New function.
21206 (execute_late_warn_uninitialized): New function.
21207 * tree-ssa.c (ssa_undefined_value_p): Removed.
21208 (warn_uninit): Changed to extern.
21209 (warn_uninitialized_phi): Removed.
21210 (warn_uninitialized_vars): Changed to extern.
21211 (execute_late_warn_uninitialized): Removed
21212 * tree-flow.h: Add new prototypes.
21213 * timevar.def: Add new time variable.
21214 * Makefile.in: Add new build file.
21216 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
21218 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21221 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21224 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21226 2010-04-28 Martin Jambor <mjambor@suse.cz>
21228 * cgraph.h (struct cgraph_node): New field indirect_calls.
21229 (struct cgraph_indirect_call_info): New type.
21230 (struct cgraph_edge): Removed field indirect_call. New fields
21231 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21232 (cgraph_create_indirect_edge): Declare.
21233 (cgraph_make_edge_direct): Likewise.
21234 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21235 * ipa-prop.h (struct ipa_param_call_note): Removed.
21236 (struct ipa_node_params): Removed field param_calls.
21237 (ipa_create_all_structures_for_iinln): Declare.
21238 * cgraph.c: Described indirect edges and uids in initial comment.
21239 (cgraph_add_edge_to_call_site_hash): New function.
21240 (cgraph_edge): Search also among the indirect edges, use
21241 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21242 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21243 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21245 (initialize_inline_failed): Assign a reason to indirect edges.
21246 (cgraph_create_edge_1): New function.
21247 (cgraph_create_edge): Moved some functionality to
21248 cgraph_create_edge_1.
21249 (cgraph_create_indirect_edge): New function.
21250 (cgraph_edge_remove_callee): Add an assert checking for
21252 (cgraph_edge_remove_caller): Special-case indirect edges.
21253 (cgraph_remove_edge): Likewise.
21254 (cgraph_set_edge_callee): New function.
21255 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21256 (cgraph_make_edge_direct): New function.
21257 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21258 the declaration of the call statement matches.
21259 (cgraph_node_remove_callees): Special-case indirect edges.
21260 (cgraph_clone_edge): Likewise.
21261 (cgraph_clone_node): Clone also the indirect edges.
21262 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21263 indirect_call, dump count of indirect_calls edges.
21264 * ipa-prop.c (iinlining_processed_edges): New variable.
21265 (ipa_note_param_call): Create indirect edges instead of
21266 creating notes. New parameter node.
21267 (ipa_analyze_call_uses): New parameter node, pass it on to
21268 ipa_note_param_call.
21269 (ipa_analyze_stmt_uses): Likewise.
21270 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21271 (print_edge_addition_message): Work on edges rather than on notes.
21272 (update_call_notes_after_inlining): Likewise, renamed to
21273 update_indirect_edges_after_inlining.
21274 (ipa_create_all_structures_for_iinln): New function.
21275 (ipa_free_node_params_substructures): Do not free notes.
21276 (ipa_edge_duplication_hook): Propagate bits within
21277 iinlining_processed_edges bitmap.
21278 (ipa_node_duplication_hook): Do not duplicate notes.
21279 (free_all_ipa_structures_after_ipa_cp): Renamed to
21280 ipa_free_all_structures_after_ipa_cp.
21281 (free_all_ipa_structures_after_iinln): Renamed to
21282 ipa_free_all_structures_after_iinln.
21283 (ipa_write_param_call_note): Removed.
21284 (ipa_read_param_call_note): Removed.
21285 (ipa_write_indirect_edge_info): New function.
21286 (ipa_read_indirect_edge_info): Likewise.
21287 (ipa_write_node_info): Do not stream notes, do stream information
21289 (ipa_read_node_info): Likewise.
21290 (lto_ipa_fixup_call_notes): Removed.
21291 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21292 * ipa-inline.c (pass_ipa_inline): Likewise.
21293 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21294 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21295 * tree-inline.c (copy_bb): Removed an unnecessary double check for
21297 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21299 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21300 (output_cgraph): Stream also indirect edges.
21301 (lto_output_edge): Added capability to stream indirect edges.
21302 (input_edge): Likewise.
21303 (input_cgraph_1): Likewise.
21304 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21307 2010-04-28 Richard Guenther <rguenther@suse.de>
21309 PR tree-optimization/43879
21310 PR tree-optimization/43909
21311 * tree-ssa-structalias.c (struct variable_info): Add
21312 only_restrict_pointers flag.
21313 (new_var_info): Initialize it. Increment stats.total_vars here.
21314 (create_function_info_for): Do not increment stats.total_vars here.
21315 (get_function_part_constraint): Fix build with C++.
21316 (insert_into_field_list): Remove.
21317 (push_fields_onto_fieldstack): Properly merge fields.
21318 (create_variable_info_for): Split and simplify.
21319 (create_variable_info_for_1): New piece.
21320 (intra_create_variable_infos): Properly make restrict constraints
21323 2010-04-28 Richard Guenther <rguenther@suse.de>
21326 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21328 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
21329 Jan Hubicka <hubicka@ucw.cz>
21331 * doc/invoke.texi (-Wsuggest-attribute=const,
21332 -Wsuggest-attribute=pure): Document.
21333 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21334 (function_always_visible_to_compiler_p,
21335 suggest_attribute, warn_function_pure, warn_function_const):
21337 (check_call): Improve debug info.
21338 (analyze_function): Do not check availability.
21339 (add_new_function): Check availability.
21340 (propagate): Output warnings.
21341 (skip_function_for_local_pure_const): New function.
21342 (local_pure_const): Use it; output warnings.
21343 * common.opt (Wsuggest-attribute=const,
21344 Wsuggest-attribute=pure): New.
21346 2010-04-27 Jakub Jelinek <jakub@redhat.com>
21348 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21349 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21350 or DW_CFA_def_cfa_offset{,_sf}.
21352 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
21354 * tree.h: Fix truncated long macros.
21356 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
21358 * collect2.c (TARGET_64BIT): Redefine to target's default.
21359 * tlink.c: Likewise.
21360 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21361 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21362 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21363 for underscoring __USER_LABEL_PREFIX__.
21364 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21365 (SUB_LINK_ENTRY32): New.
21366 (SUB_LINK_ENTRY64): New.
21367 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21368 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21369 (SUB_LINK_ENTRY64): New.
21370 (SUB_LINK_ENTRY): New.
21371 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21372 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21373 x64 target is choosen.
21374 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21375 * configure: Regenerated.
21376 * configure.ac (leading-mingw64-underscores): Option added.
21378 2010-04-27 Jan Hubicka <jh@suse.cz>
21380 * doc/invoke.texi (-fipa-profile): Document.
21381 * opts.c (decode_options): Enable ipa-profile at -O1.
21382 * timevar.def (TV_IPA_PROFILE): Define.
21383 * common.opt (fipa-profile): Add.
21384 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21386 (cgraph_propagate_frequency): Handle only local ones.
21387 * tree-pass.h (pass_ipa_profile): Declare.
21388 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21389 (pass_ipa_profile): Use TV_IPA_PROFILE.
21390 * ipa.c (ipa_profile): New function.
21391 (gate_ipa_profile): Likewise.
21392 (pass_ipa_profile): New global variable.
21393 * passes.c (pass_ipa_profile): New.
21395 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
21397 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21399 2010-04-27 Martin Jambor <mjambor@suse.cz>
21401 PR middle-end/43812
21402 * ipa.c (dissolve_same_comdat_group_list): New function.
21403 (function_and_variable_visibility): Call
21404 dissolve_same_comdat_group_list when comdat group contains external or
21406 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21407 lists are circular and that they contain only DECL_ONE_ONLY nodes.
21409 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
21411 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21412 (const_hash_1) <VECTOR_CST>: New case.
21413 (compare_constant) <VECTOR_CST>: Likewise.
21414 <ADDR_EXPR>: Deal with LABEL_REFs.
21415 (copy_constant) <VECTOR_CST>: New case.
21417 2010-04-27 Jan Hubicka <jh@suse.cz>
21419 * cgraph.c (cgraph_propagate_frequency): New function.
21420 * cgraph.h (cgraph_propagate_frequency): Declare.
21421 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21422 cgraph_propagate_frequency.
21424 2010-04-27 Jakub Jelinek <jakub@redhat.com>
21426 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21428 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
21431 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21432 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21433 here to determine which regs to push and how much stack to reserve.
21435 2010-04-27 Jie Zhang <jie@codesourcery.com>
21437 * doc/gimple.texi (gimple_statement_with_ops): Remove
21438 addresses_taken field.
21439 (gimple_statement_with_memory_ops): Likewise.
21441 2010-04-27 Jan Hubicka <jh@suse.cz>
21443 * tree-inline.c (eni_inlining_weights): Remove.
21444 (estimate_num_insns): Special case more builtins.
21446 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
21449 * c-typeck.c (build_binary_op): Move forward check for comparison
21450 pointer with null pointer constant and adjust the diagnostic message.
21452 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
21455 * configure.ac (gcc_cv_as_section_has_align): Set if installed
21456 binutils supports extended .section directive needed by LTO, or
21457 warn if older binutils found.
21458 (LTO_BINARY_READER): New AC_SUBST'd variable.
21459 (LTO_USE_LIBELF): Likewise.
21460 * config.gcc (lto_binary_reader): New target-specific configure
21462 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21463 (LTO_USE_LIBELF): Likewise.
21464 * configure: Regenerate.
21466 * collect2.c (is_elf): Rename from this ...
21467 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
21468 object files in addition to ELF-formatted ones.
21469 (scan_prog_file): Caller updated. Also allow for LTO info marker
21470 symbol to be prefixed or not by an extra underscore.
21472 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
21473 * config/i386/winnt.c: Also #include lto-streamer.h
21474 (i386_pe_asm_named_section): Specify 1-byte section alignment for
21475 LTO named sections.
21476 (i386_pe_asm_output_aligned_decl_common): Add comment.
21477 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
21479 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
21482 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
21483 Add missing earlyclobber for second alternative.
21485 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
21487 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
21488 bits for artificial defs at the top of the block.
21489 * fwprop.c (single_def_use_enter_block): Don't call it.
21491 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
21494 * configure.ac: Use "$gcc_cv_nm -g" on darwin
21495 instead of "$gcc_cv_objdump -T".
21496 Use "-undefined dynamic_lookup" on darwin.
21497 * configure: Regenerate.
21499 2010-04-26 Jakub Jelinek <jakub@redhat.com>
21502 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
21504 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
21506 * c-parser.c (struct c_token): Move location field up.
21507 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
21508 (struct c_declspecs): Convert typespec_word, storage_class, and
21509 default_int_p into bitfields.
21510 (struct c_declarator): Move loc field up.
21512 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
21514 * cfgloop.h (struct loop): Move can_be_parallel field up.
21515 * ipa-prop.h (struct ip_node_params): Move bitfields up.
21516 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
21518 (struct iv_cand): Convert pos field into a bitfield.
21519 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
21521 (struct _stmt_vec_info): Shuffle fields for better packing.
21523 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
21525 * varasm.c (IN_NAMED_SECTION): Remove guard.
21526 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
21527 (IN_NAMED_SECTION_P): ...this.
21528 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
21529 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21531 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
21533 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
21534 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
21535 of shadowing it. Fix comments.
21537 2010-04-26 Jan Hubicka <jh@suse.cz>
21539 * cgraph.c (cgraph_create_node): Set node frequency to normal.
21540 (cgraph_clone_node): Copy function frequency.
21541 * cgraph.h (node_frequency): New enum
21542 (struct cgraph_node): Add.
21543 * final.c (rest_of_clean_state): Update.
21544 * lto-cgraph.c (lto_output_node): Output node frequency.
21545 (input_overwrite_node): Input node frequency.
21546 * tre-ssa-loop-ivopts (computation_cost): Update.
21547 * lto-streamer-out.c (output_function): Do not output function
21549 * predict.c (maybe_hot_frequency_p): Update and handle functions
21551 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
21553 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
21554 (compute_function_frequency): Set noreturn functions to be executed
21556 (choose_function_section): Update.
21557 * lto-streamer-in.c (input_function): Do not input function frequency.
21558 * function.c (allocate_struct_function): Do not initialize function
21560 * function.h (function_frequency): Remove.
21561 (struct function): Remove function frequency.
21562 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
21563 (try_update): Update.
21564 * tree-inline.c (initialize_cfun): Do not update function frequency.
21565 * passes.c (pass_init_dump_file): Update.
21566 * i386.c (ix86_compute_frame_layout): Update.
21567 (ix86_pad_returns): Update.
21569 2010-04-26 Jie Zhang <jie@codesourcery.com>
21571 PR tree-optimization/43833
21572 * tree-vrp.c (range_int_cst_p): New.
21573 (range_int_cst_singleton_p): New.
21574 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
21575 when both operands are constants. Use range_int_cst_p in
21578 2010-04-26 Jan Hubicka <jh@suse.cz>
21580 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
21582 2010-04-26 Richard Guenther <rguenther@suse.de>
21585 * gimple.c (gimple_decl_printable_name): Deal gracefully
21586 with a NULL DECL_NAME.
21588 2010-04-26 Richard Guenther <rguenther@suse.de>
21591 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
21592 if emitting debug information and it is either a function
21593 or a namespace decl.
21595 2010-04-26 Ira Rosen <irar@il.ibm.com>
21597 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
21598 determine if the statement is vectorizable, and a macro to access it.
21599 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21600 Skip statements that can't be vectorized. If the analysis fails,
21601 mark the statement as unvectorizable if vectorizing basic block.
21602 (vect_compute_data_refs_alignment): Likewise.
21603 (vect_verify_datarefs_alignment): Skip statements marked as
21604 unvectorizable. Add print.
21605 (vect_analyze_group_access): Skip statements that can't be
21606 vectorized. If the analysis fails, mark the statement as
21607 unvectorizable if vectorizing basic block.
21608 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
21609 * tree-vect-stmts.c (vectorizable_store): Fix the number of
21610 generated stmts for SLP.
21611 (new_stmt_vec_info): Initialize the new field.
21612 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
21613 statements marked as unvectorizable.
21615 2010-04-25 Joseph Myers <joseph@codesourcery.com>
21617 * c-common.c (flag_isoc1x): New.
21618 (flag_isoc99): Update comment.
21619 * c-common.h (flag_isoc1x): New.
21620 (flag_isoc99): Update comment.
21621 * c-cppbuiltin.c (builtin_define_float_constants): Also define
21622 __<type>_DECIMAL_DIG__.
21623 * c-opts.c (set_std_c1x): New.
21624 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
21625 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
21626 * c.opt (-std=c1x, -std=gnu1x): New options.
21627 * doc/cpp.texi: Mention -std=c1x.
21628 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
21629 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
21630 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
21631 * doc/standards.texi: Mention C1X.
21632 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
21633 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
21634 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
21637 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
21639 * config/i386/gmon-sol2.c (_mcleanup): Change format string
21640 placeholder from 0x%x to %#x.
21641 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21642 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21643 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21644 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21645 * config/i386/i386.c (ix86_target_string): Ditto.
21646 (output_pic_addr_const): Ditto.
21647 (print_operand): Ditto.
21649 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
21651 * combine.c (find_split_point): Add third argument. Use it
21652 to find nested multiply-accumulate instructions. Adjust calls.
21653 (try_combine): Adjust call to find_split_point.
21655 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
21657 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
21659 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
21661 PR tree-optimization/41442
21662 * fold-const.c (merge_truthop_with_opposite_arm): New function.
21663 (fold_binary_loc): Call it.
21665 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
21667 * toplev.c (general_init): Set default for fdiagnostics-show-option.
21668 * opts.c (common_handle_option): Allow disabling it.
21669 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
21671 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
21673 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
21674 between modes if both types are integral.
21676 2010-04-23 Richard Guenther <rguenther@suse.de>
21678 PR tree-optimization/43572
21679 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
21681 2010-04-23 Richard Guenther <rguenther@suse.de>
21684 * tree-inline.c (tree_can_inline_p): Also check compatibility
21687 2010-04-23 Martin Jambor <mjambor@suse.cz>
21689 PR tree-optimization/43846
21690 * tree-sra.c (struct access): New flag grp_assignment_read.
21691 (build_accesses_from_assign): Set grp_assignment_read.
21692 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
21693 (enum mark_read_status): New type.
21694 (analyze_access_subtree): Propagate grp_assignment_read, create
21695 accesses also if both direct_read and root->grp_assignment_read.
21697 2010-04-23 Martin Jambor <mjambor@suse.cz>
21699 PR middle-end/43835
21700 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
21701 function does not have type attributes.
21703 2010-04-23 Richard Guenther <rguenther@suse.de>
21706 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
21709 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21711 * sese.h (create_if_region_on_edge): Remove.
21713 * sese.c (create_if_region_on_edge): Make static.
21715 * tree-inline.c: Do not include ggc.h.
21717 * expr.c: Do not include ggc.h.
21719 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
21722 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
21725 * config/sh/sh.c (find_barrier): Don't emit a constant pool
21726 in the middle of insns for casesi_worker_2.
21728 2010-04-22 David Edelsohn <edelsohn@gnu.org>
21730 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
21732 2010-04-22 Ira Rosen <irar@il.ibm.com>
21734 PR tree-optimization/43842
21735 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
21736 loop unrolling in update of exit phis. Fix comment.
21737 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
21738 least two reduction statements in the loop before starting SLP
21741 2010-04-22 Nick Clifton <nickc@redhat.com>
21743 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
21745 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
21747 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
21748 to simplify a + ~a.
21750 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21752 * tree-parloops.c (loop_parallel_p): New argument
21753 parloop_obstack. Pass it down.
21754 (parallelize_loops): New variable parloop_obstack. Initialize it,
21755 pass it down, free it.
21757 * tree-loop-linear.c (linear_transform_loops): Pass down
21760 * tree-data-ref.h (lambda_compute_access_matrices): New argument
21761 of type struct obstack *.
21763 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
21764 scratch_obstack. Initialize it, pass down, free it.
21766 * lambda.h (lambda_loop_new): Remove.
21767 (lambda_matrix_new, lambda_matrix_inverse)
21768 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
21769 argument of type struct obstack *.
21771 * lambda-trans.c (lambda_trans_matrix_new): New argument
21772 lambda_obstack. Pass it down, use obstack allocation for ret.
21773 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
21776 * lambda-mat.c (lambda_matrix_get_column)
21777 (lambda_matrix_project_to_null): Remove.
21778 (lambda_matrix_new): New argument lambda_obstack. Use obstack
21779 allocation for mat.
21780 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
21783 * lambda-code.c (lambda_loop_new): New function.
21784 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
21785 (lambda_compute_auxillary_space, lambda_compute_target_space)
21786 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
21787 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
21788 (build_access_matrix): New argument lambda_obstack. Use obstack
21790 (lambda_compute_step_signs, lambda_compute_access_matrices): New
21791 argument lambda_obstack. Pass it down.
21793 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21795 * optabs.h (expand_widening_mult): Declare.
21797 2010-04-22 Richard Guenther <rguenther@suse.de>
21799 PR tree-optimization/43845
21800 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
21801 lookup the CALL_EXPR function and arguments.
21803 2010-04-22 Nick Clifton <nickc@redhat.com>
21805 * config/stormy16/stormy16.c
21806 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
21807 * config/stormy16/stormy16.h: Tidy up formatting.
21808 (DONT_USE_BUILTIN_SETJMP): Remove definition.
21809 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
21810 (ineqbranchsi): Delete pattern.
21811 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
21812 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
21813 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
21814 stormy16-lib2-ucmpsi2.c.
21816 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21818 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
21819 df_simulate_find_noclobber_defs as appropriate. Keep track of an
21820 extra set merge_set_noclobber, and use it to relax the final test
21822 * df.h (df_simulate_find_noclobber_defs): Declare.
21823 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
21825 (df_simulate_find_noclobber_defs): New function.
21827 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
21829 * config/i386/i386.md: Use {} around multi-line preparation statements.
21831 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21833 * c-tree.h (push_init_level, pop_init_level, set_init_index)
21834 (process_init_element): New argument of type struct obstack *.
21836 * c-typeck.c (push_init_level, pop_init_level, set_designator)
21837 (set_init_index, set_init_label, set_nonincremental_init)
21838 (set_nonincremental_init_from_string, find_init_member)
21839 (output_init_element, output_pending_init_elements)
21840 (process_init_element): New argument braced_init_obstack. Pass it
21842 (push_range_stack, add_pending_init): New argument
21843 braced_init_obstack. Use obstack allocation.
21845 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
21846 braced_init_obstack. Pass it down.
21847 (c_parser_braced_init): New variables ret, braced_init_obstack.
21848 Initialize obstack, pass it down and finally free it.
21850 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
21852 PR middle-end/29274
21853 * tree-pass.h (pass_optimize_widening_mul): Declare.
21854 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
21855 gate_optimize_widening_mul): New static functions.
21856 (pass_optimize_widening_mul): New.
21857 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
21858 <case MULT_EXPR>: Remove support for widening multiplies.
21859 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
21860 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
21861 simplify_gen_unary rather than directly building extensions.
21862 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
21864 * expmed.c (expand_widening_mult): New function.
21865 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
21867 2010-04-21 Jan Hubicka <jh@suse.cz>
21869 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
21870 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
21871 * lto-wpa-fixup.c: Remove.
21872 * Makefile.in (lto-wpa-fixup.o): Remove.
21873 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
21874 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
21875 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
21877 2010-04-21 Jan Hubicka <jh@suse.cz>
21879 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
21880 add write_optimization_summary, read_optimization_summary.
21881 (ipa_write_summaries_of_cgraph_node_set): Remove.
21882 (ipa_write_optimization_summaries): Declare.
21883 (ipa_read_optimization_summaries): Declare.
21884 * ipa-cp.c (pass_ipa_cp): Update.
21885 * ipa-reference.c (pass_ipa_reference): Update.
21886 * ipa-pure-const.c (pass_ipa_pure_const): Update.
21887 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
21889 * ipa-inline.c (pass_ipa_inline): Update.
21890 * ipa.c (pass_ipa_whole_program): Update.
21891 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
21892 * passes.c (ipa_write_summaries_1): Do not test wpa.
21893 (ipa_write_optimization_summaries_1): New.
21894 (ipa_write_optimization_summaries): New.
21895 (ipa_read_summaries): Do not test ltrans.
21896 (ipa_read_optimization_summaries_1): New.
21897 (ipa_read_optimization_summaries): New.
21899 2010-04-21 Jan Hubicka <jh@suse.cz>
21901 * lto-cgraph.c (lto_output_node): Do not output comdat groups
21902 for boundary nodes.
21903 (output_cgraph): Do not arrange comdat groups for boundary nodes.
21905 2010-04-21 Jakub Jelinek <jakub@redhat.com>
21908 * dwarf2out.c (add_name_and_src_coords_attributes): Add
21909 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
21911 2010-04-21 Jan Hubicka <jh@suse.cz>
21913 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
21915 2010-04-21 Jan Hubicka <jh@suse.cz>
21917 * varpool.c (decide_is_variable_needed): Variable is always needed
21920 2010-04-21 Jan Hubicka <jh@suse.cz>
21922 * opts.c (decode_options): Enable pure-const pass for whopr.
21924 2010-04-21 Jan Hubicka <jh@suse.cz>
21926 * cgraph.c (dump_cgraph_node): Dump also assembler name.
21927 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
21929 (cgraph_decide_inlining): Do not expect callee to be removed in all
21932 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
21934 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
21936 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
21938 * config/i386/i386.md (x86_shrd): Add athlon_decode and
21939 amdfam10_decode attributes.
21941 2010-04-21 Jakub Jelinek <jakub@redhat.com>
21943 PR middle-end/43570
21944 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
21945 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
21946 (lower_copyprivate_clauses): Use private var in outer
21947 context instead of original var. Make sure the types
21948 are correct for VLAs.
21950 2010-04-21 Richard Guenther <rguenther@suse.de>
21952 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
21953 to non-pointer objects.
21955 2010-04-21 Jakub Jelinek <jakub@redhat.com>
21957 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
21958 last chain entry if it starts with the still current label.
21959 (add_location_or_const_value_attribute): Check that
21960 loc_list->first->next is NULL instead of comparing ->first with ->last.
21961 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
21962 to add_var_loc_to_decl.
21964 * dwarf2out.c (output_call_frame_info): For dw_cie_version
21965 >= 4 add also address size and segment size fields into CIE header.
21967 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
21968 long as address size is the same as sizeof (void *) and
21970 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
21971 address size or segment size is unexpected, return DW_EH_PE_omit.
21972 (classify_object_over_fdes): If get_cie_encoding returned
21973 DW_EH_PE_omit, return -1.
21974 (init_object): If classify_object_over_fdes returned -1,
21975 pretend there were no FDEs at all.
21977 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
21979 * config/i386/i386.md (bswap<mode>2): Macroize expander from
21980 bswap{si,di}2 using SWI48 mode iterator.
21981 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
21982 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
21983 set modrm attribute of bswap insn to 0 and remove length attribute.
21984 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
21985 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
21986 set mode attribute to <MODE> and remove length attribute.
21988 2010-04-20 James E. Wilson <wilson@codesourcery.com>
21990 PR rtl-optimization/43520
21991 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
21992 zero available registers.
21994 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21996 * builtins.c (fold_builtin_cproj): Fold more cases.
21998 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22000 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22001 (fold_builtin_1): Fold builtin cproj.
22002 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22003 Use ATTR_CONST_NOTHROW_LIST.
22005 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
22007 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22008 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
22009 ffsi2_no_cmove for !TARGET_CMOVE.
22010 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
22011 (ffssi2): Remove expander.
22012 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22014 (ctz<mode>2): Ditto from ctz{si,di}2.
22015 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22017 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22020 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22022 * dwarf2out.c (AT_linkage_name): Define.
22023 (clone_as_declaration): Handle DW_AT_linkage_name.
22024 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22025 of DW_AT_MIPS_linkage_name.
22026 (move_linkage_attr): Likewise.
22027 (dwarf2out_finish): Likewise.
22029 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
22031 PR middle-end/41952
22032 * fold-const.c (fold_comparison): New folding rule.
22034 2010-04-20 Anatoly Sokolov <aesok@post.ru>
22036 * double-int.h (double_int_setbit): Declare.
22037 * double-int.c (double_int_setbit): New function.
22038 * rtl.h (immed_double_int_const): Declare.
22039 * emit-rtl.c (immed_double_int_const): New function.
22040 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22041 and immed_double_int_const functions.
22042 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22043 expand_copysign_bit): (Ditto.).
22044 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22045 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22046 * dojump.c (prefer_and_bit_test): (Ditto.).
22047 * expr.c (convert_modes, reduce_to_bit_field_precision,
22048 const_vector_from_tree): (Ditto.).
22049 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22051 2010-04-20 Jan Hubicka <jh@suse.cz>
22053 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22054 (dump_cgraph_node): Dump new flags.
22055 * cgraph.h (struct cgraph_node): Add flags
22056 reachable_from_other_partition and in_other_partition.
22057 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22058 other partition can not be removed.
22059 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22060 the other partition must be output; silence sanity checking on
22061 leaking functions bodies from other paritition.
22062 * lto-cgraph.c (reachable_from_other_partition_p): New function.
22063 (lto_output_node): Output new flags; do not sanity check that inline
22064 clones are output; drop lto_forced_extern_inline_p code; do not mock
22065 visibility flags at partition boundaries.
22066 (add_node_to): New function.
22067 (output_cgraph): Use it to sort functions so masters appear before
22069 (input_overwrite_node): Input new flags.
22070 * passes.c (ipa_write_summaries): Do not call
22071 lto_new_extern_inline_states.
22072 * lto-section-out.c (forced_extern_inline,
22073 lto_new_extern_inline_states lto_delete_extern_inline_states,
22074 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22075 * lto-streamer.h (lto_new_extern_inline_states,
22076 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22077 lto_forced_extern_inline_p): Kill.
22079 2010-04-20 Richard Guenther <rguenther@suse.de>
22081 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22082 from vars that can have pointers.
22083 (process_constraint): Dump useless constraints.
22085 2010-04-20 Richard Guenther <rguenther@suse.de>
22087 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22088 (dump_sa_points_to_info): Remove asserts.
22089 (init_base_vars): nothing_id isn't an escape point nor does it
22092 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22094 * tree.h (TYPE_REF_IS_RVALUE): Define.
22095 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22096 should_move_die_to_comdat, prune_unused_types_walk): Handle
22097 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22098 (modified_type_die, gen_reference_type_die): Emit
22099 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22100 if TYPE_REF_IS_RVALUE and -gdwarf-4.
22102 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22105 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22106 calls for -fpic -m31 if they have been sibcall optimized.
22108 2010-04-19 James E. Wilson <wilson@codesourcery.com>
22110 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22111 ar.lc fixed and call-used.
22113 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22115 2010-04-19 Jan Hubicka <jh@suse.cz>
22117 * opts.c (decode_options): Disable whpr incompatible passes.
22118 * lto/lto.c (lto_1_to_1_map): Skip clones.
22119 (read_cgraph_and_symbols): Do not mark everything as needed.
22120 (do_whole_program_analysis): Do map only after optimizing;
22121 set proper cgraph_state; use passmanager.
22123 2010-04-19 DJ Delorie <dj@redhat.com>
22125 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22126 POINTER_PLUS_EXPR and fix them.
22128 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
22130 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22131 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22132 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22133 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22134 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22135 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22136 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22137 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22138 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22139 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22140 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22142 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
22144 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22145 (check_cond_move_block): Likewise.
22146 (cond_move_process_if_block): Likewise.
22147 (noce_find_if_block): Improve formatting.
22148 (find_if_header): Pass 0 to memset and tweak conditions.
22149 (cond_exec_find_if_block): Fix long lines and tweak conditions.
22151 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22153 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22156 PR middle-end/43337
22157 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22158 with non-local decl doesn't need chain.
22160 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
22162 * ira-color.c (allocno_reload_assign): Avoid accumulating
22163 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22165 2010-04-19 Martin Jambor <mjambor@suse.cz>
22167 * gimple.h (create_tmp_reg): Declare.
22168 * gimplify.c (create_tmp_reg): New function.
22169 (gimplify_return_expr): Use create_tmp_reg.
22170 (gimplify_omp_atomic): Likewise.
22171 (gimple_regimplify_operands): Likewise.
22172 * tree-dfa.c (make_rename_temp): Likewise.
22173 * tree-predcom.c (predcom_tmp_var): Likewise.
22174 (reassociate_to_the_same_stmt): Likewise.
22175 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22176 (get_replaced_param_substitute): Likewise.
22177 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22178 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22179 * tree-ssa-pre.c (get_representative_for): Likewise.
22180 (create_expression_by_pieces): Likewise.
22181 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22182 (create_tailcall_accumulator): Likewise.
22184 2010-04-19 Martin Jambor <mjambor@suse.cz>
22186 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22188 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22190 2010-04-19 Richard Guenther <rguenther@suse.de>
22192 PR tree-optimization/43796
22193 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22194 from SCEV in the lattice.
22195 (vrp_visit_phi_node): Dump change.
22197 2010-04-19 Richard Guenther <rguenther@suse.de>
22199 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22200 * configure: Re-generated.
22202 2010-04-19 Richard Guenther <rguenther@suse.de>
22204 PR tree-optimization/43783
22205 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22206 constant ARRAY_REF operands two and three if possible.
22208 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
22211 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22213 2010-04-19 Jie Zhang <jie@codesourcery.com>
22216 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22218 2010-04-19 Ira Rosen <irar@il.ibm.com>
22220 PR tree-optimization/37027
22221 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22222 and macro to access it.
22223 (vectorizable_reduction): Add argument.
22224 (vect_get_slp_defs): Likewise.
22225 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22226 statements for possible use in SLP.
22227 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22228 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22229 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22231 (vectorizable_reduction): Likewise.
22232 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22234 (vectorizable_type_demotion, vectorizable_type_promotion,
22235 vectorizable_store): Likewise.
22236 (vect_analyze_stmt): Update call to vectorizable_reduction.
22237 (vect_transform_stmt): Likewise.
22238 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22239 (vect_build_slp_tree): Fix indentation. Check that there are no loads
22240 from different interleaving chains in same node.
22241 (vect_slp_rearrange_stmts): New function.
22242 (vect_supported_load_permutation_p): Allow load permutations for
22243 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22244 inside SLP nodes if necessary.
22245 (vect_analyze_slp_instance): Handle reductions.
22246 (vect_analyze_slp): Try to build SLP instances originating from groups
22248 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22249 (vect_get_constant_vectors): Create initial vectors for reductions
22250 according to reduction code. Add new argument.
22251 (vect_get_slp_defs): Add new argument, pass it to
22252 vect_get_constant_vectors.
22253 (vect_schedule_slp_instance): Remove SLP tree root statements.
22255 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22257 * tree.h (ENUM_IS_SCOPED): Define.
22258 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22259 for ENUM_IS_SCOPED enums.
22261 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
22263 * fold-const.c (fold_comparison): Use ssizetype.
22264 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22265 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22266 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22267 * tree-object-size.c (compute_object_sizes): Use size_type_node.
22269 * tree.h (initialize_sizetypes): Remove parameter.
22270 (build_common_tree_nodes): Remove second parameter.
22271 * stor-layout.c (initialize_sizetypes): Remove parameter.
22272 Always create an unsigned type.
22273 (set_sizetype): Assert that the passed type is unsigned and simplify.
22274 * tree.c (build_common_tree_nodes): Remove second parameter.
22275 Adjust call to initialize_sizetypes.
22276 * c-decl.c (c_init_decl_processing): Remove second argument in call to
22277 build_common_tree_nodes.
22279 2010-04-18 Matthias Klose <doko@ubuntu.com>
22281 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22283 2010-04-18 Ira Rosen <irar@il.ibm.com>
22285 PR tree-optimization/43771
22286 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22287 load permutation doesn't have gaps.
22289 2010-04-18 Jan Hubicka <jh@suse.cz>
22291 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22292 (sse_prologue_save_insn expander): Use new pattern.
22293 (sse_prologue_save_insn1): New pattern and splitter.
22294 (sse_prologue_save_insn): Update to deal also with 64bit aligned
22296 * i386.c (setup_incoming_varargs_64): Do not compute jump
22298 (ix86_gimplify_va_arg): Update alignment needed.
22299 (ix86_local_alignment): Do not align all local arrays to 128bit.
22301 2010-04-17 Jan Hubicka <jh@suse.cz>
22303 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22305 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22307 * arm.md (negdi2): Remove redundant code to force values into a
22310 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22312 * arm/bpabi.S: Add EABI alignment attributes to objects.
22313 * arm/bpabi-v6m.S: Likewise.
22314 * arm/crti.asm: Likewise.
22315 * arm/crtn.asm: Likewise.
22316 * arm/lib1funcs.asm: Likewise.
22317 * arm/libunwind.S: Likewise.
22319 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22321 * arm-protos.h (tune_params): New structure.
22322 * arm.c (current_tune): New variable.
22323 (arm_constant_limit): Delete.
22324 (struct processors): Add pointer to the tune parameters.
22325 (arm_slowmul_tune): New tuning option.
22326 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22327 (all_cores): Adjust to pick up the tuning model.
22328 (arm_constant_limit): New function.
22329 (arm_override_options): Select the appropriate tuning model. Delete
22330 initialization of arm_const_limit.
22331 (arm_split_constant): Use the new constant-limit model.
22332 (arm_rtx_costs): Pick up the current tuning model.
22333 * arm.md (is_strongarm, is_xscale): Delete.
22334 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22335 for Xscale variant architectures.
22336 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22338 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22340 * config/arm/arm.c (arm_gen_constant): Remove unused variable
22342 (arm_rtx_costs_1): Remove unused variable extra_cost.
22343 (arm_unwind_emit_set): Use variable offset.
22344 (thumb1_output_casesi): Remove unused variable flags.
22346 2010-04-16 Jeff Law <law@redhat.com>
22348 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22349 needing assignment rather than doing a two-phase assignment. Remove
22350 unused variable 'm'.
22352 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22355 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22357 2010-04-16 Doug Kwan <dougkwan@google.com>
22359 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22360 (next_operand_entry_id): New static variable.
22361 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22362 (add_to_ops_vec): Assigned unique ID to operand entry.
22363 (struct oecount_s): New field ID.
22364 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22365 (undistribute_ops_list): Assign unique IDs to oecounts.
22366 (init_reassoc): reset next_operand_entry_id.
22368 2010-04-16 Doug Kwan <dougkwan@google.com>
22370 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22371 missing left parenthesis.
22373 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
22375 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22376 *btdi_rex64 using SWI48 mode iterator.
22377 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22378 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22379 *jcc_btdi_mask_rex64.
22381 2010-04-16 Anatoly Sokolov <aesok@post.ru>
22383 * double-int.h (tree_to_double_int): Convert to macro.
22384 * double-int.c (tree_to_double_int): Remove.
22386 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22389 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22390 with want_address 2 and in case a single element list might be
22391 possible, call it again with want_address 0.
22393 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22395 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22396 case 'W' print operands for HI mode.
22397 * config/h8300/h8300.h (Y0, Y2) : New constraints.
22398 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22399 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22400 * config/h8300/predicate.md (bit_register_indirect_operand): New.
22402 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22404 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22405 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22406 #xx:3 and #xx:4 mode.
22408 * config/h8300/h8300.md (inverted load with HImode dest): Add
22409 support for H8300SX.
22411 * config/h8300/predicate.md (bit_operand): Allow immediate values that
22412 satisfy 'U' constraint.
22414 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22416 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22417 * configure: Regenerate.
22418 * config.in: Regenerate.
22419 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22422 2010-04-16 Richard Guenther <rguenther@suse.de>
22424 * tree.h (struct tree_decl_minimal): Move pt_uid ...
22425 (struct tree_decl_common): ... here.
22426 (DECL_PT_UID): Adjust.
22427 (SET_DECL_PT_UID): Likewise.
22428 (DECL_PT_UID_SET_P): Likewise.
22430 2010-04-16 Richard Guenther <rguenther@suse.de>
22432 PR tree-optimization/43572
22433 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22434 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22435 * tree-flow.h (is_call_clobbered): Remove.
22436 * tree-flow-inline.h (is_call_clobbered): Likewise.
22437 * tree-dfa.c (dump_variable): Do not dump call clobber state.
22438 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22439 (execute_return_slot_opt): Adjust.
22440 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22441 check for call clobbered vars here.
22442 (find_tail_calls): Move tailcall verification to the
22445 2010-04-16 Diego Novillo <dnovillo@google.com>
22447 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22449 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
22452 * config/arm/arm.md (cbranchqi4): New pattern.
22453 * config/arm/predicates.md (const0_operand,
22454 cbranchqi4_comparison_operator): New predicates.
22456 2010-04-16 Richard Guenther <rguenther@suse.de>
22458 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22459 (dump_gimple_stmt): Likewise.
22461 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
22463 * recog.h (struct recog_data): New field is_operator.
22464 (struct insn_operand_data): New field is_operator.
22465 * recog.c (extract_insn): Set recog_data.is_operator.
22466 * genoutput.c (output_operand_data): Emit code to set the
22468 * reload.c (find_reloads): Use it rather than testing for an
22469 empty constraint string.
22472 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
22473 If the previous insn is a cbranchsi4_insn with the same arguments,
22474 omit the compare instruction.
22476 * config/arm/arm.md (addsi3_cbranch): If destination is a high
22477 register, inputs must be low registers and we need a low register
22478 scratch. Handle alternative 2 like alternative 3.
22480 2010-04-16 Jakub Jelinek <jakub@redhat.com>
22482 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
22483 don't call get_addr on both. If one expression is a VALUE and
22484 the other a REG, check VALUE's locs if the REG isn't among them.
22486 2010-04-16 Christian Bruel <christian.bruel@st.com>
22488 * config/sh/sh.h (sh_frame_pointer_required): New function.
22489 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
22490 (flag_omit_frame_pointer) Set.
22491 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
22492 (rounded_frame_size): Adjust size with outgoing_args_size.
22493 (sh_set_return_address): Must return from stack pointer.
22494 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
22495 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
22496 (ACCUMULATE_OUTGOING_ARGS): Define.
22497 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
22498 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
22500 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
22503 * config/sh/sh.c (sh_legitimize_reload_address): Use
22504 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
22505 Remove a unneeded check for offset_base.
22507 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
22509 * configure: Regenerated.
22511 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22513 * config/s390/s390.c (s390_call_save_register_used): Switch back
22514 to HARD_REGNO_NREGS.
22516 2010-04-15 Richard Guenther <rguenther@suse.de>
22518 * alias.c (alias_set_subset_of): Handle alias-set zero
22521 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
22522 Julian Brown <julian@codesourcery.com>
22524 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
22525 alternatives according to use of high and low regs.
22526 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
22527 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
22528 optimizing for size on Thumb-2.
22530 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
22532 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
22534 2010-04-15 Richard Guenther <rguenther@suse.de>
22536 * tree-ssa-structalias.c (struct variable_info): Add
22538 (new_var_info): Initialize it.
22539 (dump_constraints): Support printing last added constraints.
22540 (debug_constraints): Adjust.
22541 (dump_constraint_graph): Likewise.
22542 (make_heapvar_for): Check for NULL cfun.
22543 (get_function_part_constraint): New function.
22544 (get_fi_for_callee): Likewise.
22545 (find_func_aliases): Properly implement IPA PTA constraints.
22546 (process_ipa_clobber): New function.
22547 (find_func_clobbers): Likewise.
22548 (insert_into_field_list_sorted): Remove.
22549 (create_function_info_for): Properly allocate vars for IPA mode.
22550 Do not use insert_into_field_list_sorted.
22551 (create_variable_info_for): Properly generate constraints for
22552 global vars in IPA mode.
22553 (dump_solution_for_var): Always dump the solution.
22554 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
22555 (find_what_var_points_to): Adjust.
22556 (pt_solution_set): Change.
22557 (pt_solution_ior_into): New function.
22558 (pt_solution_empty_p): Export.
22559 (pt_solution_includes_global): Adjust.
22560 (pt_solution_includes_1): Likewise.
22561 (pt_solutions_intersect_1): Likewise.
22562 (dump_sa_points_to_info): Check some invariants.
22563 (solve_constraints): Move constraint dumping ...
22564 (compute_points_to_sets): ... here.
22565 (ipa_pta_execute): ... and here.
22566 (compute_may_aliases): Do not re-compute points-to info
22567 locally if IPA info is available.
22568 (ipa_escaped_pt): New global var.
22569 (ipa_pta_execute): Properly implement IPA PTA.
22570 * tree-into-ssa.c (dump_decl_set): Support dumping
22571 decls not in referenced-vars.
22572 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
22573 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
22574 (dump_points_to_solution): Likewise.
22575 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
22576 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
22577 (remap_gimple_stmt): Reset call clobber/use information if necessary.
22578 (copy_decl_to_var): Copy DECL_PT_UID.
22579 (copy_result_decl_to_var): Likewise.
22580 * tree.c (make_node_stat): Initialize DECL_PT_UID.
22581 (copy_node_stat): Copy it.
22582 * tree.h (DECL_PT_UID): New macro.
22583 (SET_DECL_PT_UID): Likewise.
22584 (DECL_PT_UID_SET_P): Likewise.
22585 (struct tree_decl_minimal): Add pt_uid member.
22586 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
22587 (pt_solution_empty_p): Declare.
22588 (pt_solution_set): Adjust.
22589 (ipa_escaped_pt): Declare.
22590 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
22591 * gimple-pretty-print.c (pp_points_to_solution): New function.
22592 (dump_gimple_call): Dump call clobber/use information.
22593 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
22594 * tree-pass.h (TDF_ALIAS): New dump option.
22595 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
22596 * doc/invoke.texi (-fipa-pta): Update documentation.
22598 2010-04-15 Richard Guenther <rguenther@suse.de>
22600 * Makefile.in (OBJS-common): Add gimple-fold.o.
22601 (gimple-fold.o): New rule.
22602 * tree.h (maybe_fold_offset_to_reference,
22603 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
22605 * gimple.h: ... here.
22606 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
22607 may_propagate_address_into_dereference): Move prototypes ...
22608 * gimple.h: ... here.
22609 * tree-ssa-ccp.c (get_symbol_constant_value,
22610 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
22611 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
22612 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
22613 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
22614 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
22615 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
22616 gimplify_and_update_call_from_tree): Move ...
22617 * gimple-fold.c: ... here. New file.
22618 (ccp_fold_builtin): Rename to ...
22619 (gimple_fold_builtin): ... this.
22620 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
22622 2010-04-15 Richard Guenther <rguenther@suse.de>
22624 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
22625 fit_double_type, force_fit_type_double, add_double_with_sign,
22626 neg_double, mul_double_with_sign, lshift_double, rshift_double,
22627 lrotate_double, rrotate_double, div_and_round_double): Move ...
22628 * double-int.c: ... here.
22629 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
22630 add_double, neg_double, mul_double_with_sign, mul_double,
22631 lshift_double, rshift_double, lrotate_double, rrotate_double,
22632 div_and_round_double): Move prototypes ...
22633 * double-int.h: ... here.
22635 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
22638 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
22639 matching constraints to ensure inputs match the output.
22641 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
22644 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
22645 in an input-only operand.
22647 2010-04-15 Anatoly Sokolov <aesok@post.ru>
22649 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
22650 (double_int_not, double_int_lshift, double_int_rshift): Declare.
22651 (double_int_negative_p): Convert to static inline function.
22652 * double-int.c (double_int_lshift, double_int_lshift): New functions.
22653 (double_int_negative_p): Remove.
22654 * tree.h (lshift_double, rshift_double):
22655 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
22656 * fold-const.c (fold_convert_const_int_from_real,
22657 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
22658 (lshift_double): Change type of arith argument to bool.
22659 (rshift_double): Change type of arith argument to bool. Correct
22661 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22663 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
22666 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
22667 at the start and end of the then/else blocks, and omit them from the
22669 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
22670 argument; all callers changed. Pass zero to old_insns_match_p instead.
22671 (flow_find_head_matching_sequence): New function.
22672 (old_insns_match_p): Check REG_EH_REGION notes for calls.
22673 * basic-block.h (flow_find_cross_jump,
22674 flow_find_head_matching_sequence): Declare functions.
22676 2010-04-14 Jason Merrill <jason@redhat.com>
22679 * c-common.c (attribute_takes_identifier_p): New fn.
22680 * c-common.h: Declare it.
22682 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22684 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
22685 splitter condition.
22686 (*udivmod<mode>4): Ditto.
22688 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22690 * config/i386/i386.md (maxmin_int): Rename code attribute from
22691 maxminiprefix and update all users.
22692 (maxmin_float): Ditto from maxminfprefix.
22693 (logic): Ditto from logicprefix.
22694 (absneg_mnemonic): Ditto from absnegprefix.
22695 * config/i386/mmx.md: Update all users of maxminiprefix,
22696 maxminfprefix and logicprefix for rename.
22697 * config/i386/sse.md: Ditto.
22698 * config/i386/sync.md (sync_<code><mode>): Update for
22699 logicprefix rename.
22701 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
22704 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
22705 warnings converted to errors.
22707 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22709 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
22710 used insn_type variable.
22711 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
22712 to avoid set-but-not-used warning.
22714 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22716 * df-core.c (df_ref_debug): Change format string placeholder
22718 * dwarf2asm.c (dw2_asm_output_data_raw,
22719 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
22720 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
22721 * dwarf2out.c (output_cfi, output_cfi_directive,
22722 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
22723 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
22725 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
22726 * print-rtl.c (print_rtx): Ditto.
22728 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22730 PR middle-end/42694
22731 * builtins.c (expand_builtin_pow_root): New function to expand pow
22732 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
22733 series of sqrt and cbrt calls under -ffast-math.
22734 (expand_builtin_pow): Call it.
22736 2010-04-14 Michael Matz <matz@suse.de>
22738 PR tree-optimization/42963
22739 * tree-cfg.c (touched_switch_bbs): New static variable.
22740 (group_case_labels_stmt): New function broken out from ...
22741 (group_case_labels): ... here, use the above.
22742 (start_recording_case_labels): Allocate touched_switch_bbs.
22743 (end_recording_case_labels): Deallocate it, call
22744 group_case_labels_stmt.
22745 (gimple_redirect_edge_and_branch): Remember index of affected BB.
22747 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22749 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
22750 from insn template.
22752 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
22754 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
22756 2010-04-13 Jan Hubicka <jh@suse.cz>
22758 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
22759 of optimized out static functions.
22760 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
22761 cost computation. Also sanity check for overflows.
22762 (update_caller_keys): Update cgraph_edge_badness call; properly
22763 update fibheap and sanity check that it is up to date.
22764 (add_new_edges_to_heap): Update cgraph_edge_badness.
22765 (cgraph_decide_inlining_of_small_function): Likewise;
22766 add sanity checking that badness in heap is up to date;
22767 improve dumping of reason; Update badness of calls to the
22768 offline copy of function currently inlined; dump badness
22769 of functions not inlined because of unit growth limits.
22771 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
22773 PR middle-end/32628
22774 * c-common.c (pointer_int_sum): Disregard overflow that occured only
22775 because of sign-extension change when converting to sizetype here...
22776 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
22778 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
22779 the folding to constants. Remove redundant final conversion.
22780 (fold_binary) <associate>: Do not associate if the re-association of
22781 constants alone overflows.
22782 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
22783 to the end of the list.
22784 (multiple_of_p) <COND_EXPR>: New case.
22786 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
22788 * opt-functions.awk (opt_sanitized_name): New.
22790 * optc-gen.awk: Use it
22791 * opth-gen.awk: Use it.
22793 2010-04-13 Martin Jambor <mjambor@suse.cz>
22795 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
22796 (sra_modify_assign): Delete stmts loading dead data even if racc has no
22797 children. Call replace_uses_with_default_def_ssa_name to handle
22800 2010-04-13 Michael Matz <matz@suse.de>
22802 PR middle-end/43730
22803 * builtins.c (expand_builtin_interclass_mathfn): Also create
22804 a register if the predicate doesn't match.
22806 2010-04-13 Diego Novillo <dnovillo@google.com>
22808 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
22809 * c-pch.c: Include timevar.h.
22810 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
22811 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
22812 * ggc-common.c: Include timevar.h.
22813 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
22814 * timevar.def (TV_PCH_SAVE): Define.
22815 (TV_PCH_CPP_SAVE): Define.
22816 (TV_PCH_PTR_REALLOC): Define.
22817 (TV_PCH_PTR_SORT): Define.
22818 (TV_PCH_RESTORE): Define.
22819 (TV_PCH_CPP_RESTORE): Define.
22821 2010-04-13 Michael Matz <matz@suse.de>
22823 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
22825 (can_reassociate_p): New function.
22826 (break_up_subtract_bb, reassociate_bb): Use it.
22828 2010-04-13 Richard Guenther <rguenther@suse.de>
22831 * builtins.c (c_readstr): Fix assert.
22833 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
22835 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
22836 when generating cltd insn.
22838 (*ashl<mode>3_1): Remove special handling for register operand 2.
22839 (*ashlsi3_1_zext): Ditto.
22840 (*ashlhi3_1): Ditto.
22841 (*ashlhi3_1_lea): Ditto.
22842 (*ashlqi3_1): Ditto.
22843 (*ashlqi3_1_lea): Ditto.
22844 (*<shiftrt_insn><mode>3_1): Ditto.
22845 (*<shiftrt_insn>si3_1_zext): Ditto.
22846 (*<shiftrt_insn>qi3_1_slp): Ditto.
22847 (*<rotate_insn><mode>3_1): Ditto.
22848 (*<rotate_insn>si3_1_zext): Ditto.
22849 (*<rotate_insn>qi3_1_slp): Ditto.
22851 2010-04-13 Richard Guenther <rguenther@suse.de>
22853 * tree-ssa-structalias.c (callused_id): Remove.
22854 (call_stmt_vars): New.
22855 (get_call_vi): Likewise.
22856 (lookup_call_use_vi): Likewise.
22857 (lookup_call_clobber_vi): Likewise.
22858 (get_call_use_vi): Likewise.
22859 (get_call_clobber_vi): Likewise.
22860 (make_transitive_closure_constraints): Likewise.
22861 (handle_const_call): Adjust to do per-call call-used handling.
22862 (handle_pure_call): Likewise.
22863 (find_what_var_points_to): Remove general callused handling.
22864 (init_base_vars): Likewise.
22865 (init_alias_vars): Initialize call_stmt_vars.
22866 (compute_points_to_sets): Process call-used and call-clobbered
22867 vars for call statements.
22868 (delete_points_to_sets): Free call_stmt_vars.
22870 2010-04-13 Richard Guenther <rguenther@suse.de>
22872 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22873 Only add RW dependence for dependence distance zero.
22874 Adjust maximal vectorization factor according to dependences.
22875 Move alignment handling ...
22876 (vect_find_same_alignment_drs): ... here. New function.
22877 (vect_analyze_data_ref_dependences): Adjust.
22878 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
22879 (vect_analyze_data_refs): Adjust minimal vectorization factor
22880 according to data references.
22881 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
22882 dependences before determining the vectorization factor.
22883 Analyze alignment after determining the vectorization factor.
22884 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
22885 dependences before alignment.
22886 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
22888 (vect_analyze_data_refs): Likewise.
22889 (MAX_VECTORIZATION_FACTOR): New define.
22891 2010-04-13 Duncan Sands <baldrick@free.fr>
22893 * except.h (lang_eh_type_covers): Remove.
22894 * except.c (lang_eh_type_covers): Likewise.
22896 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22897 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22899 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
22900 * config/s390/s390.c: Replace UNTIS_PER_WORD with
22901 UNITS_PER_LONG where it is ABI relevant.
22902 (s390_return_addr_rtx): Likewise.
22903 (s390_back_chain_rtx): Likewise.
22904 (s390_frame_area): Likewise.
22905 (s390_frame_info): Likewise.
22906 (s390_initial_elimination_offset): Likewise.
22907 (save_gprs): Likewise.
22908 (s390_emit_prologue): Likewise.
22909 (s390_emit_epilogue): Likewise.
22910 (s390_function_arg_advance): Likewise.
22911 (s390_function_arg): Likewise.
22912 (s390_va_start): Likewise.
22913 (s390_gimplify_va_arg): Likewise.
22914 (s390_function_profiler): Likewise.
22915 (s390_optimize_prologue): Likewise.
22916 (s390_rtx_costs): Likewise.
22917 (s390_secondary_reload): Likewise.
22918 (s390_promote_function_mode): Likewise.
22919 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
22920 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
22921 registers available.
22922 (s390_unwind_word_mode): New function.
22923 (s390_function_value): Split 64 bit values into register pair if
22924 used as return value.
22925 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
22926 function call parameters. Handle parallels.
22927 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
22928 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
22929 (DWARF_CIE_DATA_ALIGNMENT): New macro.
22930 (s390_expand_setmem): Remove unused variable src_addr.
22931 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
22932 deal with 64 bit registers.
22933 * config/s390/s390.h: Define __zarch__ predefined macro.
22934 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
22935 (UNITS_PER_LONG): New macro.
22936 * libjava/include/s390-signal.h: Define extended ucontext
22937 structure containing the upper halfs of the 64 bit registers.
22939 2010-04-13 Simon Baldwin <simonb@google.com>
22941 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
22943 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
22945 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
22946 rvalue on the RHS if the LHS is of a non-renamable type.
22947 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
22949 2010-04-13 Matthias Klose <doko@ubuntu.com>
22951 * gcc.c (cc1_options): Handle -iplugindir before processing
22952 the cc1 spec. Only add -iplugindir once.
22953 (cpp_unique_options): Add -iplugindir option if -fplugin* options
22955 * common.opt (iplugindir): Remove `Separate' property, initialize.
22956 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
22958 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
22959 (distclean): Remove plugin dir.
22960 * doc/invoke.texi: Document -iplugindir.
22962 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
22964 * doc/plugins.texi (Loading Plugins): Document short
22965 -fplugin=foo option.
22966 (Plugin API): Mention default_plugin_dir_name function.
22968 * gcc.c (find_file_spec_function): Add new declaration.
22969 (static_spec_func): Use it for "find-file".
22970 (find_file_spec_function): Add new function.
22971 (cc1_options): Add -iplugindir option if -fplugin* options found.
22973 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
22975 * plugin.c (add_new_plugin): Updated comment, and handle short
22977 (default_plugin_dir_name): Added new function.
22979 * common.opt (iplugindir): New option to set the plugin directory.
22981 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
22983 * config/i386/i386.md (any_rotate): New code iterator.
22984 (rotate_insn): New code attribute.
22986 (SWIM124): New mode iterator.
22987 (<rotate_insn>ti3): New expander.
22988 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
22989 any_rotate code iterator.
22990 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
22991 using any_rotate code iterator and SWIM124 mode iterator.
22992 (ix86_rotlti3): New insn_and_split pattern.
22993 (ix86_rotrti3): Ditto.
22994 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
22995 ix86_rotl{di,ti}3 patterns.
22996 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
22997 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
22998 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
22999 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23000 code iterator and SWI mode iterator.
23001 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23002 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23004 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23005 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23006 (bswap rotatert splitter): Add splitter.
23007 (bswap splitter): Macroize splitter using any_rotate code iterator.
23008 Add insn predicate to split only for TARGET_USE_XCHGB or when
23009 optimizing function for size.
23011 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23013 * config/pa/pa.c (emit_move_sequence): Remove use of
23014 deleted variable flag_argument_noalias.
23016 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23018 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23020 Add to unsupported targets list.
23021 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23022 sparc*-sun-solaris2.[567]* from target lists.
23023 * configure: Regenerate.
23024 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23026 Remove Solaris 7 patch references.
23027 (Specific, sparc-sun-solaris2.7): Removed.
23028 (sparc-sun-solaris2*): Update Solaris 7 example.
23029 (sparc64-*-solaris2*): Likewise.
23031 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23033 * config.build (alpha*-dec-osf4*): Remove.
23034 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23035 of obsolete configurations.
23036 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23038 * config/alpha/t-osf4: Renamed to ...
23039 * config/alpha/t-osf5: ... this.
23040 * config/alpha/osf.h: Renamed to ...
23041 * config/alpha/osf5.h: ... this.
23042 Merged old osf5.h contents.
23044 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23045 (EXTRA_SPECS): Removed.
23046 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23047 reflect removal of Tru64 UNIX V4.0/V5.0 support.
23050 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23052 * doc/contrib.texi (Contributors, Rainer Orth): Update.
23054 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
23057 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23058 __thiscall convention.
23060 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23062 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23064 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23066 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23068 * function.c (assign_parms_initialize_all): Add unused attribute
23071 2010-04-12 Richard Guenther <rguenther@suse.de>
23073 * gsstruct.def (GSS_CALL): New.
23074 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23075 * gimple.h: Include tree-ssa-alias.h.
23076 (struct gimple_statement_call): New.
23077 (union gimple_statement_struct_d): Add gimple_call member.
23078 (gimple_call_reset_alias_info): Declare.
23079 (gimple_call_use_set): New function.
23080 (gimple_call_clobber_set): Likewise.
23081 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23082 * gimple.c (gimple_call_reset_alias_info): New function.
23083 (gimple_build_call_1): Call it.
23084 * lto-streamer-in.c (input_gimple_stmt): Likewise.
23085 * tree-inline.c (remap_gimple_stmt): Likewise.
23086 (expand_call_inline): Remove callused handling.
23087 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23088 * tree-dfa.c (dump_variable): Likewise.
23089 * tree-parloops.c (parallelize_loops): Likewise.
23090 * tree-ssa.c (init_tree_ssa): Likewise.
23091 (delete_tree_ssa): Likewise.
23092 * tree-flow-inline.h (is_call_used): Remove.
23093 * tree-flow.h (struct gimple_df): Remove callused member.
23094 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23095 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23096 (ref_maybe_used_by_call_p_1): Simplify.
23097 (call_may_clobber_ref_p_1): Likewise.
23098 * tree-ssa-structalias.c (compute_points_to_sets): Set
23099 the call stmt used and clobbered sets.
23100 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23101 (find_tail_calls): Verify the tail call.
23103 2010-04-12 Richard Guenther <rguenther@suse.de>
23105 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23106 single-iteration always-inline inlining.
23107 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23108 (cgraph_decide_inlining): Do not handle always-inline specially.
23109 (try_inline): Remove always-inline cycle detection special case.
23110 Do not recurse on always-inlines.
23111 (cgraph_early_inlining): Do not iterate if not optimizing.
23112 (cgraph_gate_early_inlining): remove.
23113 (pass_early_inline): Run unconditionally.
23114 (gate_cgraph_decide_inlining): New function.
23115 (pass_ipa_inline): Use it. Do not run the IPA inliner if
23116 not inlining or optimizing.
23117 (cgraph_decide_inlining_of_small_functions): Also consider
23118 always-inline functions.
23119 (cgraph_default_inline_p): Return true for nodes which should
23120 disregard inline limits.
23121 (estimate_function_body_sizes): Assume zero size and time for
23122 nodes which are marked as disregarding inline limits.
23123 (cgraph_decide_recursive_inlining): Do not perform recursive
23124 inlining on always-inline nodes.
23126 2010-04-12 Jakub Jelinek <jakub@redhat.com>
23129 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23130 for exprs satisfying handled_component_p.
23132 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
23134 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23135 non-constant aggregate elements.
23137 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23138 is a real initialization.
23140 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
23143 * c-decl.c (start_function): Move forward check for nested function.
23145 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
23147 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23148 * config/sh/sh.c: Include reload.h.
23149 (sh_legitimize_reload_address): New.
23150 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23151 sh_legitimize_reload_address.
23153 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23155 * config/sh/sh.md (*movqi_pop): New insn pattern.
23156 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23158 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23160 * config/i386/i386.md (any_shiftrt): New code iterator.
23161 (shiftrt_insn): New code attribute.
23163 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23164 using any_shiftrt code iterator.
23165 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23166 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23167 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23168 pattern from corresponding peephole2 patterns.
23169 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23170 using any_shiftrt code iterator.
23171 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23172 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23173 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23174 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23175 *{ashr,lshr}<mode>3_cmp_zext.
23176 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23178 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23180 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23182 (*lshr<mode>3_cconly): Ditto.
23184 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23186 * config/i386/i386.md (lshr<mode>3): Macroize expander from
23187 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23188 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23189 pattern from *lshr{di,ti}3_1 and corresponding splitters using
23191 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23192 from corresponding peephole2 patterns.
23193 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23194 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23195 and *lshrdi3_1_rex64 using SWI mode iterator.
23196 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23197 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23198 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23199 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23200 and *lshrdi3_cmp_rex64 using SWI mode iterator.
23201 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23202 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23203 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23204 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23207 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
23209 * config/i386/i386.md (ashr<mode>3): Macroize expander from
23210 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23211 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23212 pattern from *ashr{di,ti}3_1 and corresponding splitters using
23214 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23215 from corresponding peephole2 patterns.
23216 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23217 (ashrsi3_cvt): Rename from ashrsi3_31.
23218 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23219 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23220 and x86_64_shift_adj_3 using SWI48 mode iterator.
23221 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23222 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23223 and *ashrdi3_1_rex64 using SWI mode iterator.
23224 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23225 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23226 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23227 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23228 and *ashrdi3_cmp_rex64 using SWI mode iterator.
23229 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23230 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23231 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23232 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23234 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23235 * config/i386/i386.c (ix86_split_ashr): Update for renamed
23236 x86_shift<mode>_adj_3 expanders.
23238 2010-04-10 Wei Guozhi <carrot@google.com>
23241 * config/arm/arm.c (arm_pic_static_addr): New function.
23242 (legitimize_pic_address): Call arm_pic_static_addr when it detects
23244 (arm_output_addr_const_extra): Output expression for new pattern.
23245 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23247 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
23249 * ira-costs.c (record_reg_classes): Ignore alternatives that are
23252 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23253 * web.c: Include "insn-config.h" and "recog.h".
23254 (union_match_dups): New function.
23255 (web_main): Call it.
23256 (union_defs): Don't try to recognize match_dups.
23258 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23259 if doing so would replace the entire pattern.
23261 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
23265 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23266 and splitter pattern. Change splitter operand 1 predicate to
23269 2010-04-09 Martin Jambor <mjambor@suse.cz>
23271 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23272 lattices are addresses of CONST_DECLs with the same initial value.
23273 (ipcp_print_all_lattices): Print values of CONST_DECLs.
23274 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23276 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
23277 Bernd Schmidt <bernds@codesourcery.com>
23279 * loop-invariant.c (replace_uses): New static function.
23280 (move_invariant_reg): Use it to ensure we can replace the uses.
23282 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
23284 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23286 (picochip_override_options): Enable section anchors only above -O1.
23287 (picochip_reorg): Fixed a couple of build warnings.
23289 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23291 * configure.ac (plugin -rdynamic test): Log result.
23292 * configure: Regenerate.
23293 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23294 (RDYNAMIC_SPEC): Define.
23295 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23297 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23299 * configure.ac: Determine Sun ld version numbers.
23300 (comdat_group): Restrict GNU ld version checks to gld.
23301 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23302 (enable_comdat): Support --enable-comdat.
23303 * configure: Regenerate.
23304 * doc/install.texi (Configuration): Document --enable-comdat.
23306 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23308 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
23309 * config/sol2-gld.h: ... here.
23310 * config.gcc (sparc*-*-solaris2*): Reflect this.
23311 (i[34567]86-*-solaris2*): Use it.
23313 2010-04-09 Steve Ellcey <sje@cup.hp.com>
23315 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23317 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23319 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
23322 * diagnostic.c (diagnostic_initialize): Initialize
23323 some_warnings_are_errors.
23324 (diagnostic_finish): New.
23325 (diagnostic_action_after_output): Call it before exiting.
23326 (diagnostic_report_diagnostic): Do not print message here. Set
23327 some_warnings_are_errors.
23328 * diagnostic.h (diagnostic_context): Delete
23329 issue_warnings_are_errors_message. Add some_warnings_are_errors.
23330 (diagnostic_finish): Declare.
23331 * toplev.c (toplev_main): Call it before exit.
23333 2010-04-09 Jason Merrill <jason@redhat.com>
23336 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23337 for incomplete type.
23340 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23341 based on a warning flag.
23343 2010-04-09 Richard Guenther <rguenther@suse.de>
23345 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23347 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
23350 * varasm.c (default_assemble_visibility): Wrap vars that are
23351 set, but unused, by targets without GAS.
23352 * config/rs6000/rs6000.c (paired_emit_vector_compare):
23353 Remove set, but unused, vars.
23354 (rs6000_legitimize_tls_address): Likewise.
23355 (altivec_expand_dst_builtin): Likewise.
23356 * config/darwin.c (machopic_classify_symbol): Likewise.
23357 (machopic_indirection_name): Likewise.
23359 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
23361 * config/i386/i386.md (DWI): New mode iterator.
23362 (S): New mode attribute.
23363 (shift_operand): Ditto.
23364 (shift_immediate_operand): Ditto.
23365 (ashl_input_operand): Ditto.
23366 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23367 using SDWIM mode iterator.
23368 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
23369 pattern from *ashl{di,ti}3_1 and corresponding splitters using
23371 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23372 from corresponding peephole2 patterns.
23373 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23374 and x86_64_shift_adj_1 using SWI48 mode iterator.
23375 (x86_shift<mode>_adj_2): Ditto.
23376 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23377 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23378 using SWI48 mode iterator.
23379 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23380 *ashldi3_cmp_rex64 using SWI mode iterator.
23381 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23382 *ashldi3_cconly_rex64 using SWI mode iterator.
23383 * config/i386/i386.c (ix86_split_ashl): Update for renamed
23384 x86_shift<mode>_adj_{1,2}.
23385 (ix86_split_ashr): Ditto.
23386 (ix86_split_lshr): Ditto.
23388 2010-04-09 Richard Guenther <rguenther@suse.de>
23390 * target.h (builtin_conversion): Pass in input and output types.
23391 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23392 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23393 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23394 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23396 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23398 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23400 2010-04-09 Richard Guenther <rguenther@suse.de>
23403 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23405 2010-04-09 Richard Guenther <rguenther@suse.de>
23407 * tree-vectorizer.h (struct _stmt_vec_info): Document
23408 that vectype is the type of the LHS.
23409 (supportable_widening_operation, supportable_narrowing_operation):
23410 Get both input and output vector types as arguments.
23411 (vect_is_simple_use_1): Declare.
23412 (get_same_sized_vectype): Likewise.
23413 * tree-vect-loop.c (vect_determine_vectorization_factor):
23414 Set STMT_VINFO_VECTYPE to the vector type of the def.
23415 (vectorizable_reduction): Adjust.
23416 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23417 Adjust. Specify the output vector type.
23418 (vect_pattern_recog_1): Adjust.
23419 * tree-vect-stmts.c (get_same_sized_vectype): New function.
23420 (vectorizable_call): Adjust.
23421 (vectorizable_conversion): Likewise.
23422 (vectorizable_operation): Likewise.
23423 (vectorizable_type_demotion): Likewise.
23424 (vectorizable_type_promotion): Likewise.
23425 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23427 (vect_is_simple_use_1): New function.
23428 (supportable_widening_operation): Get both input and output
23430 (supportable_narrowing_operation): Likewise.
23431 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23433 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
23435 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23436 __thiscall and _thiscall as predefined macros.
23437 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23438 thiscall attribute handling.
23439 (ix86_comp_type_attributes): Likewise.
23440 (ix86_function_regparm): Likewise.
23441 (ix86_return_pops_args): Likewise.
23442 (init_cumulative_args): Likewise.
23443 (find_drap_reg): Likewise.
23444 (ix86_static_chain): Likewise.
23445 (x86_this_parameter): Likewise.
23446 (x86_output_mi_thunk): Likewise.
23447 (ix86_attribute_table): Add description for thiscall attribute.
23448 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23449 * doc/extend.texi: Add documentation for thiscall.
23451 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
23454 * c.opt (Wint-to-pointer-cast): Available in C++.
23455 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23457 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
23459 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23460 * calls.c (expand_call): Pass the function type to aggregate_value_p.
23461 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23462 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
23463 function type instead. Reorder and simplify checks.
23465 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23467 2010-04-08 Jing Yu <jingyu@google.com>
23468 Zdenek Dvorak <ook@ucw.cz>
23470 PR tree-optimization/42720
23471 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
23472 loop unswitch conditions here from ...
23473 (tree_unswitch_single_loop): ... here.
23475 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
23477 * tree-if-conv.c: Fix comments and simplify logic.
23479 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
23481 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
23482 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
23483 (main_tree_if_conversion): Update call to tree_if_conversion.
23485 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
23488 * doc/invoke.texi (-b,-V): Delete.
23489 * doc/tm.texi: Do not mention -b.
23490 * gcc.c (display_help): Delete -b and -V.
23491 (process_command): Delete -b and -V.
23492 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
23494 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
23495 Wolfgang Gellerich <gellerich@de.ibm.com>
23497 Implement target hook for loop unrolling
23498 * target.h (loop_unroll_adjust): Add a new target hook function.
23499 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
23500 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
23501 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
23502 (s390_loop_unroll_adjust): Implement the new target hook for s390.
23503 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
23505 (decide_unroll_stupid): Likewise.
23507 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23510 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
23512 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23514 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
23515 (Specific, *-*-solaris2*): Likewise.
23516 Don't prefer Sun as over GNU as.
23518 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
23520 * config/s390/s390.c (override_options): Adjust the z10 defaults
23521 for max-unroll-times, max-completely-peeled-insns
23522 and max-completely-peel-times.
23524 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23526 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
23527 instructions for z10.
23528 (s390_expand_setmem): Likewise.
23529 (s390_expand_cmpmem): Likewise.
23531 2010-04-08 Richard Guenther <rguenther@suse.de>
23533 PR tree-optimization/43679
23534 * tree-ssa-pre.c (eliminate): Only propagate copies.
23536 2010-04-08 Jakub Jelinek <jakub@redhat.com>
23539 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
23540 set but not used variable warning.
23542 2010-04-08 Wei Guozhi <carrot@google.com>
23545 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
23546 (arm_size_rtx_costs): Call the new function when optimized for size.
23548 2010-04-08 Jakub Jelinek <jakub@redhat.com>
23551 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
23552 op0 is not a MEM, just return NULL instead of assertion
23554 (discover_nonconstant_array_refs): Don't walk debug stmts.
23556 2010-04-08 Doug Kwan <dougkwan@google.com>
23558 * configure.ac: Recognize gold and do not use its version number
23559 to test ld features.
23560 * configure: Regenerate.
23562 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
23564 PR middle-end/40815
23565 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
23566 (negate_value): Move code to push elements to broken_up_substracts ...
23567 (eliminate_plus_minus_pair): ... here. Push operands that have no
23568 negative pair to plus_negates.
23569 (repropagate_negates, init_reassoc, fini_reassoc): Update.
23571 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23573 * doc/install.texi (Configuration): Move description of
23574 --enable-lto, --with-libelf*, --enable-gold from Java section to
23577 * doc/generic.texi (Working with declarations)
23578 (Function Properties, C and C++ Trees): Fix typos.
23579 * doc/sourcebuild.texi (Top Level): Likewise.
23581 2010-04-07 Jakub Jelinek <jakub@redhat.com>
23584 * tree.h (DECL_READ_P): Define.
23585 (struct tree_decl_common): Add decl_read_flag.
23586 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
23587 a set but not used warning.
23588 (merge_decls): Merge DECL_READ_P flag.
23589 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
23590 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
23591 * c-common.c (handle_used_attribute, handle_unused_attribute):
23593 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
23595 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
23597 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
23598 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
23599 c_parser_binary_expression, c_parser_cast_expression,
23600 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
23601 Call default_function_array_read_conversion instead of
23602 default_function_array_conversion where needed.
23603 (c_parser_unary_expression, c_parser_conditional_expression,
23604 c_parser_postfix_expression_after_primary, c_parser_initelt):
23605 Likewise. Call mark_exp_read where needed.
23606 (c_parser_statement_after_labels, c_parser_asm_operands,
23607 c_parser_typeof_specifier, c_parser_sizeof_expression,
23608 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
23610 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
23612 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
23613 (warn_unused_but_set_parameter): Default to warn_unused
23615 * doc/invoke.texi: Document -Wunused-but-set-variable and
23616 -Wunused-but-set-parameter.
23618 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
23619 used count variable.
23620 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
23621 when operandN variables aren't used in the body of the expander
23623 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
23624 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
23625 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
23626 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
23627 FOR_EACH_IMM_USE_ON_STMT): Likewise.
23628 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
23629 * tree.c (PROCESS_ARG): Likewise.
23631 2010-04-07 Simon Baldwin <simonb@google.com>
23633 * diagnostic.h (diagnostic_override_option_index): New macro to
23634 set a diagnostic's option_index.
23635 * c-tree.h (c_cpp_error): Add warning reason argument.
23636 * opts.c (_warning_as_error_callback): New.
23637 (register_warning_as_error_callback): Store callback for
23638 warnings enabled via enable_warning_as_error.
23639 (enable_warning_as_error): Call callback, minor code tidy.
23640 * opts.h (register_warning_as_error_callback): Declare.
23641 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
23642 response to -Werror=.
23643 (c_common_init_options): Register warning_as_error_callback in opts.c.
23644 * common.opt: Add -Wno-cpp option.
23645 * c-common.c (struct reason_option_codes_t): Map cpp warning
23646 reason codes to gcc option indexes.
23647 * (c_option_controlling_cpp_error): New function, lookup the gcc
23648 option index for a cpp warning reason code.
23649 * (c_cpp_error): Add warning reason argument, call
23650 c_option_controlling_cpp_error for diagnostic_override_option_index.
23651 * doc/invoke.texi: Document -Wno-cpp.
23653 2010-04-07 Richard Guenther <rguenther@suse.de>
23655 * ipa-reference.c (mark_load): Use get_base_address.
23656 (mark_store): Likewise.
23658 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
23659 inserting GIMPLE_NOPs into the IL.
23660 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23661 Explicitly strip handled components and indirect references.
23663 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
23664 folding address expressions.
23665 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
23666 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
23667 operand_equal_p to compare decls.
23668 (ptr_deref_may_alias_decl_p): Likewise.
23669 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
23670 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
23671 Handle reversed comparison ops.
23672 * tree-sra.c (asm_visit_addr): Use get_base_address.
23673 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
23674 * ipa-reference.c (mark_address): Use get_base_address.
23676 2010-04-07 Richard Guenther <rguenther@suse.de>
23678 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
23679 Propagate constants everywhere.
23681 2010-04-07 Jakub Jelinek <jakub@redhat.com>
23684 * tree.c (MAX_INT_CACHED_PREC): Define.
23685 (nonstandard_integer_type_cache): New array.
23686 (build_nonstandard_integer_type): Cache results for precision
23687 <= MAX_INT_CACHED_PREC.
23689 2010-04-07 Richard Guenther <rguenther@suse.de>
23691 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
23692 -fargument-noalias-global, -fargument-noalias-anything): Remove.
23693 * common.opt: Likewise.
23694 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
23695 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
23696 (nonoverlapping_memrefs_p): Likewise.
23697 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
23698 * opts.c (common_handle_option): Handle OPT_fargument_alias,
23699 OPT_fargument_noalias, OPT_fargument_noalias_anything and
23700 OPT_fargument_noalias_global for backward compatibility.
23702 2010-04-07 Richard Guenther <rguenther@suse.de>
23704 PR tree-optimization/43270
23705 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
23706 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
23707 * tree-ssa-pre.c (phi_translate_1): Adjust.
23708 (fully_constant_expression): Split out vn_reference handling to ...
23709 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
23710 Fold reads from constant strings.
23711 (vn_reference_lookup): Handle fully constant references.
23712 (vn_reference_lookup_pieces): Likewise.
23713 * Makefile.in (expmed.o-warn): Add -Wno-error.
23715 2010-04-07 Martin Jambor <mjambor@suse.cz>
23717 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
23719 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
23722 * gcc.c: Add -static-libstdc++ to list of recognized options.
23724 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23726 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
23728 2010-04-07 Richard Guenther <rguenther@suse.de>
23730 PR middle-end/42617
23731 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
23732 bases build simple mem attributes to retain points-to information.
23734 2010-04-07 Richard Guenther <rguenther@suse.de>
23736 PR middle-end/42617
23737 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
23738 preserve points-to related information.
23740 2010-04-07 Richard Guenther <rguenther@suse.de>
23742 PR middle-end/42617
23743 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
23744 discard plain indirect references.
23745 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
23746 * tree.c (tree_nop_conversion): Likewise.
23748 2010-04-07 Dodji Seketeli <dodji@redhat.com>
23751 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
23753 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
23755 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
23756 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
23758 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23760 * tree-if-conv.c: Fix indentation and comments.
23762 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23764 * tree-if-conv.c: Sort static functions in topological order.
23766 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
23768 * tree-if-conv.c: Fix indentation and comments.
23770 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23772 PR middle-end/43519
23773 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
23774 lang_hooks.types.type_for_size instead of
23775 build_nonstandard_integer_type.
23776 When converting an unsigned type to signed, double its precision.
23777 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
23778 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
23779 (graphite_create_new_loop_guard): When ub + 1 wraps around,
23782 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23784 PR middle-end/43519
23785 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23786 POINTER_PLUS_EXPR for pointer types.
23788 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23790 PR middle-end/43519
23791 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
23792 * graphite-clast-to-gimple.c: Include langhooks.h.
23793 (max_signed_precision_type): New.
23794 (max_precision_type): Takes two types as arguments.
23795 (precision_for_value): New.
23796 (precision_for_interval): New.
23797 (gcc_type_for_interval): New.
23798 (gcc_type_for_value): New.
23799 (gcc_type_for_clast_term): New.
23800 (gcc_type_for_clast_red): New.
23801 (gcc_type_for_clast_bin): New.
23802 (gcc_type_for_clast_expr): Split up into several functions.
23803 (gcc_type_for_clast_eq): Rewritten.
23804 (compute_bounds_for_level): New.
23805 (compute_type_for_level_1): New.
23806 (compute_type_for_level): New.
23807 (gcc_type_for_cloog_iv): Removed.
23808 (gcc_type_for_iv_of_clast_loop): Rewritten.
23809 (graphite_create_new_loop): Compute the lower and upper bound types
23810 with gcc_type_for_clast_expr.
23811 (graphite_create_new_loop_guard): Same.
23812 (find_cloog_iv_in_expr): Removed.
23813 (compute_cloog_iv_types_1): Removed.
23814 (compute_cloog_iv_types): Removed.
23815 (gloog): Do not call compute_cloog_iv_types.
23816 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
23817 GBB_CLOOG_IV_TYPES.
23818 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
23819 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
23820 (GBB_CLOOG_IV_TYPES): Removed.
23822 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23824 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
23825 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
23826 (detect_commutative_reduction): Same.
23828 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23830 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
23831 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
23833 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
23834 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
23835 (rewrite_commutative_reductions_out_of_ssa): Same.
23836 * passes.c (execute_function_todo): Call verify_ssa for every pass
23837 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
23838 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
23839 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
23840 with an extra argument.
23841 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
23842 verify_ssa only when the extra argument is true.
23843 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
23844 with an extra argument.
23845 (tree_transform_and_unroll_loop): Same.
23847 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
23849 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
23850 for all the passes of the LNO having LOOP_CLOSED_SSA.
23851 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
23852 * tree-loop-distribution.c (pass_loop_distribution): Same.
23853 * tree-pass.h (TODO_verify_loops): Removed.
23854 * tree-ssa-loop.c (pass_tree_loop_init): Same.
23856 (pass_tree_unswitch): Same.
23857 (pass_predcom): Same.
23858 (pass_vectorize): Same.
23859 (pass_linear_transform): Same.
23860 (pass_graphite_transforms): Same.
23861 (pass_iv_canon): Same.
23862 (pass_complete_unroll): Same.
23863 (pass_complete_unrolli): Same.
23864 (pass_parallelize_loops): Same.
23865 (pass_loop_prefetch): Same.
23866 (pass_iv_optimize): Same.
23868 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
23870 PR middle-end/32824
23871 * passes.c (init_optimization_passes): Move pass_lim before
23872 pass_copy_prop and pass_dce_loop.
23874 2010-04-06 Jakub Jelinek <jakub@redhat.com>
23877 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
23878 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
23879 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
23880 MULTI_* defines for 4 argument vpermil2p* builtins.
23882 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
23884 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
23885 * config/i386/i386.c (x86_maybe_negate_const_int): New.
23886 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
23887 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
23888 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
23889 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
23890 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
23891 Use x86_maybe_negate_const_int to output insn mnemonic.
23892 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
23893 check from instruction predicate. Update comments.
23894 * config/i386/sync.md (sync_add<mode>): Use
23895 x86_maybe_negate_const_int to output insn mnemonic.
23897 2010-04-06 Jan Hubicka <jh@suse.cz>
23899 PR tree-optimization/42906
23900 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
23901 IGNORE_SELF argument. Set visited_control_parents for fully
23903 (find_obviously_necessary_stmts): Update call of
23904 mark_control_dependent_edges_necessary.
23905 (propagate_necessity): Likewise. Handle PHI edges more curefully.
23907 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
23909 * config/i386/i386.md: Remove comment about 'e' and 'E'
23912 2010-04-06 Richard Guenther <rguenther@suse.de>
23914 PR tree-optimization/43627
23915 * tree-vrp.c (extract_range_from_unary_expr): Widenings
23916 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
23919 2010-04-06 Jakub Jelinek <jakub@redhat.com>
23921 * BASE-VER: Change to 4.6.0.
23924 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
23927 2010-04-06 Richard Guenther <rguenther@suse.de>
23929 PR middle-end/43661
23930 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
23932 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23934 * doc/invoke.texi (Optimize Options): Document that LTO
23935 won't remove object access purely due to incompatible
23938 2010-04-04 Matthias Klose <doko@ubuntu.com>
23940 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
23941 Initialize variable.
23943 2010-04-03 Richard Guenther <rguenther@suse.de>
23945 PR middle-end/42509
23946 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
23947 require a non-NULL MEM_OFFSET.
23949 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
23951 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
23952 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
23953 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
23954 config/alpha/predicates.md, config/arm/arm.md,
23955 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
23956 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
23957 config/darwin9.h, config/darwin.c, config/darwin.h,
23958 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
23959 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
23960 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
23961 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
23962 config/mips/mips.md, config/mn10300/mn10300.c,
23963 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
23964 config/rs6000/aix.h, config/rs6000/dfp.md,
23965 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
23966 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
23967 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
23968 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
23969 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
23970 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
23971 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
23972 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
23973 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
23974 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
23975 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
23976 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
23977 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
23978 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
23979 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
23980 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
23981 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
23982 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
23983 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
23984 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
23985 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
23986 opt-functions.awk, opth-gen.awk, params.def, passes.c,
23987 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
23988 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
23989 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
23990 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
23991 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
23992 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
23993 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
23994 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
23995 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
23996 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
23997 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
23998 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
23999 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24000 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24002 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24005 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24006 * aclocal.m4: Regenerate.
24008 2010-04-02 Richard Guenther <rguenther@suse.de>
24010 PR tree-optimization/43629
24011 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24012 if we have seen a constant value.
24014 2010-04-02 Joseph Myers <joseph@codesourcery.com>
24016 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24018 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
24021 * arm.c (legitimize_tls_address): Adjust call to
24022 gen_tls_load_dot_plus_four.
24023 (arm_note_pic_base): New function.
24024 (arm_cannot_copy_insn_p): Use it.
24025 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24028 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24033 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24035 * Makefile.in ($(out_object_file)): Depend on
24036 gt-$(basename $(notdir $(out_file))).h.
24038 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
24040 * config.gcc (lm32-*-rtems*): Add t-lm32.
24042 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
24044 * config.gcc: Add lm32-*-rtems*.
24045 * config/lm32/rtems.h: New file.
24047 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
24050 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24052 2010-04-01 Jakub Jelinek <jakub@redhat.com>
24054 * dwarf2out.c (output_compilation_unit_header): For
24055 -gdwarf-4 use version 4 instead of version 3.
24056 (output_line_info): For version 4 and above emit additional
24057 maximum ops per insn header field.
24058 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24060 * dwarf2out.c (is_c_family, is_java): Remove.
24061 (lower_bound_default): New function.
24062 (add_bound_info, gen_descr_array_type_die): Use it.
24064 2010-04-01 Dodji Seketeli <dodji@redhat.com>
24067 * dwarf2out.c (gen_variable_die): Allow debug info for variable
24068 re-declaration when it happens in a function.
24070 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
24072 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24073 (cgraph_remove_function_insertion_hook): Same.
24074 (cgraph_call_function_insertion_hooks): Same.
24076 2010-04-01 Richard Guenther <rguenther@suse.de>
24078 PR middle-end/43614
24079 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24080 and TREE_THIS_VOLATILE.
24081 (copy_ref_info): Likewise.
24082 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24083 * tree.c (build6_stat): Ignore side-effects of all but arg5
24084 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
24087 2010-04-01 Richard Guenther <rguenther@suse.de>
24089 PR tree-optimization/43607
24090 * ipa-type-escape.c (check_call): Do not access non-existing
24093 2010-04-01 Richard Guenther <rguenther@suse.de>
24095 PR middle-end/43602
24097 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24098 Jack Howarth <howarth@bromo.med.uc.edu>
24100 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24103 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24105 * doc/install.texi (Prerequisites): Document libelf usability on
24106 IRIX 5/6 and Solaris 2.
24107 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24108 Update GNU as, GNU ld requirements.
24109 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24110 Document Sun Studio compiler download.
24111 Update and simplify as, ld recommendations.
24112 (Specific, *-*-solaris2.7): Note obsoletion, removal.
24114 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24116 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24117 with_tune_32 to pentium4.
24119 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
24121 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24123 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24125 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24126 obsoletion, removal.
24128 Document GNU as requirement.
24129 Update configure requirements.
24130 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24131 Recomment IRIX 6.5.18+.
24132 Document IDF/IDL requirement.
24133 Document GNU as requirement.
24134 Document GNU ld bootstrap failure.
24135 Remove freeware.sgi.com reference.
24137 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24139 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24140 UNIX V4.0, V5.0 obsoletion, removal.
24141 Remove --with-gc=simple reference.
24142 Update VM requirements during bootstrap.
24143 Remove -oldas bootstrap description.
24144 Update binutils reference.
24145 Remove comparison failure note.
24147 2010-03-31 Richard Guenther <rguenther@suse.de>
24148 Zdenek Dvorak <ook@ucw.cz>
24149 Sebastian Pop <sebastian.pop@amd.com>
24151 PR middle-end/43464
24152 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24153 with multiple arguments.
24154 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24156 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24158 * graphite-dependences.c (print_pddr): Call print_pdr with an
24160 * graphite-poly.c (debug_pdr): Add an extra argument for the
24163 (print_pbb_domain): Same.
24165 (print_scop_context): Same.
24166 (print_scop): Same.
24167 (print_cloog): Same.
24168 (debug_pbb_domain): Same.
24170 (print_pdrs): Same.
24171 (debug_pdrs): Same.
24172 (debug_scop_context): Same.
24173 (debug_scop): Same.
24174 (debug_cloog): Same.
24175 (print_scop_params): Same.
24176 (debug_scop_params): Same.
24177 (print_iteration_domain): Same.
24178 (print_iteration_domains): Same.
24179 (debug_iteration_domain): Same.
24180 (debug_iteration_domains): Same.
24181 (print_scattering_function): Same.
24182 (print_scattering_functions): Same.
24183 (debug_scattering_function): Same.
24184 (debug_scattering_functions): Same.
24185 * graphite-poly.h (debug_pdr): Update declaration.
24187 (print_pbb_domain): Same.
24189 (print_scop_context): Same.
24190 (print_scop): Same.
24191 (print_cloog): Same.
24192 (debug_pbb_domain): Same.
24194 (print_pdrs): Same.
24195 (debug_pdrs): Same.
24196 (debug_scop_context): Same.
24197 (debug_scop): Same.
24198 (debug_cloog): Same.
24199 (print_scop_params): Same.
24200 (debug_scop_params): Same.
24201 (print_iteration_domain): Same.
24202 (print_iteration_domains): Same.
24203 (debug_iteration_domain): Same.
24204 (debug_iteration_domains): Same.
24205 (print_scattering_function): Same.
24206 (print_scattering_functions): Same.
24207 (debug_scattering_function): Same.
24208 (debug_scattering_functions): Same.
24210 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24212 * graphite-poly.c (print_scattering_function_1): New.
24213 (print_scattering_function): Call it.
24214 (print_scop_params): Remove spaces at the end of lines.
24215 (print_cloog): New.
24216 (debug_cloog): New.
24217 * graphite-poly.h (print_cloog): Declared.
24218 (debug_cloog): Declared.
24220 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24222 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24224 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24225 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24226 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24227 to switch between adding the IV bump in loop->latch or in loop->header.
24229 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24231 * graphite-poly.c (print_scattering_function): Pretty print following
24232 the scoplib format.
24234 (print_pbb_domain): Same.
24235 (dump_gbb_cases): Same.
24236 (dump_gbb_conditions): Same.
24237 (print_pdrs): Same.
24239 (print_scop_params): Same.
24240 (print_scop_context): Same.
24241 (print_scop): Same.
24242 (print_pbb_body): New.
24243 (lst_indent_to): New.
24244 (print_lst): Start new lines with a #.
24245 * graphite-poly.h (pbb_bb): New.
24246 (pbb_index): Use pbb_bb.
24247 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24249 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24251 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24253 * dwarf2out.c (size_of_die): For -gdwarf-4 use
24254 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24255 and 0 instead of 1 for dw_val_class_flag.
24256 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24257 dw_val_class_range_list, dw_val_class_loc_list,
24258 dw_val_class_lineptr and dw_val_class_macptr, use
24259 DW_FORM_flag_present for dw_val_class_flag and
24260 DW_FORM_exprloc for dw_val_class_loc.
24261 (output_die): For -gdwarf-4 print dw_val_class_loc
24262 size as uleb128 instead of 1 or 2 bytes and don't print
24263 anything for dw_val_class_flag.
24265 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24266 instead of cselib_lookup following by tweaking locs->setting_insn.
24269 * cselib.c (cselib_process_insn): Clear cselib_current_insn
24270 even before returning from label, setjmp call or volatile asm
24273 2010-03-31 Richard Guenther <rguenther@suse.de>
24275 PR middle-end/43600
24276 * cgraphunit.c (cgraph_output_in_order): Do not allocate
24277 temporary data on stack.
24279 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24281 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24282 (PUSHSECTION_ASM_OP): Remove.
24283 (POPSECTION_ASM_OP): Remove.
24284 (PUSHSECTION_FORMAT): Remove.
24285 * config/sol2.h (PUSHSECTION_FORMAT): Define.
24286 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24287 * config/sol2.c (solaris_output_init_fini): Use it.
24289 2010-03-31 Jie Zhang <jie@codesourcery.com>
24292 * opt-functions.awk (var_type_struct): Use signed char type
24293 for simple variables.
24295 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24297 * config/sol2.c: Include output.h.
24298 (solaris_assemble_visibility): New function.
24299 * config/t-sol2 (sol2.o): Add output.h dependency.
24300 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24301 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24304 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24307 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24308 V2SImode or XFmode on PRE_DEC.
24311 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24314 2010-03-31 Jie Zhang <jie@codesourcery.com>
24317 * reload.h (caller_save_initialized_p): Declare.
24318 * toplev.c (backend_init_target): Don't call
24319 init_caller_save but set caller_save_initialized_p to false.
24320 * caller-save.c (caller_save_initialized_p): Define.
24321 (init_caller_save): Check caller_save_initialized_p.
24322 * ira.c (ira): Call init_caller_save if flag_caller_saves.
24324 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24327 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24328 and soft-fp/t-softfp to tmake_file.
24329 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24330 (LIBGCC2_TF_CEXT): Define.
24333 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
24336 * cselib.c (n_useless_values): Document handling of debug locs.
24337 (n_useless_debug_values, n_debug_values): New variables.
24338 (new_elt_loc_list): Don't add to debug values, keep count.
24339 (promote_debug_loc): New.
24340 (cselib_reset_table): Zero new variables.
24341 (entry_and_rtx_equal_p): Promote debug locs.
24342 (discard_useless_locs): Increment n_useless_debug_values for
24344 (remove_useless_values): Adjust n_useless_values and n_debug_values
24345 with n_useless_debug_values.
24346 (add_mem_for_addr): Promote debug locs.
24347 (cselib_lookup_mem): Likewise.
24348 (cselib_lookup_addr): Renamed to...
24349 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
24350 (cselib_log_lookup): ... this. Turn into...
24351 (cselib_lookup_addr): ... new wrapper.
24352 (cselib_lookup_from_insn): New.
24353 (cselib_invalidate_regno): Increment n_useless_debug_values for
24355 (cselib_invalidate_mem): Likewise.
24356 (cselib_process_insn): Take n_deleted and n_debug_values into
24357 account to guard remove_useless_value call.
24358 (cselib_finish): Zero n_useless_debug_values.
24359 * cselib.h (cselib_lookup_from_insn): Declare.
24360 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24361 (sched_analyze_2): Likewise.
24363 2010-03-30 Jakub Jelinek <jakub@redhat.com>
24365 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24367 (adjust_mems): Replace narrowing SUBREG of expression containing
24368 just PLUS, MINUS, MULT and ASHIFT of registers and constants
24369 with operations in the narrower mode.
24372 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24373 regs_invalidated_by_call instead all call_used_reg_set registers.
24375 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
24377 PR middle-end/43430
24378 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24379 pointer comparisons with types_compatible_p.
24380 * tree-vect-stmts.c (vectorizable_call): Same.
24381 (vectorizable_condition): Same.
24383 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24385 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24386 stack check if the mask would be zero.
24388 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24389 Jack Howarth <howarth@bromo.med.uc.edu>
24391 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24394 2010-03-30 Joseph Myers <joseph@codesourcery.com>
24397 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
24399 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24400 Include ___unordxf2 and ___unordtf2.
24401 * config/i386/libgcc-glibc.ver: Do not define inheritance from
24404 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
24406 * config/lm32/t-lm32: New file.
24407 * config.gcc: Use the above file when targetting lm32.
24409 2010-03-28 Duncan Sands <baldrick@free.fr>
24411 * Makefile.in (PLUGIN_HEADERS): Add except.h.
24413 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
24415 PR middle-end/43431
24416 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24417 Improve vectorization cost model diagnostic.
24419 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
24421 PR middle-end/43436
24422 * tree-vect-data-refs.c (vect_analyze_data_refs): When
24423 compute_data_dependences_for_loop returns false, early exit
24424 and output an extra diagnostic for the failed data reference
24427 2010-03-29 Richard Guenther <rguenther@suse.de>
24429 PR tree-optimization/43560
24430 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24431 (can_sm_ref_p): Treat stores to readonly locations as trapping.
24433 2010-03-29 Jie Zhang <jie@codesourcery.com>
24436 * toplev.c (process_options): Set optimization_default_node
24437 and optimization_current_node.
24438 * opts.c (decode_options): Don't set optimization_default_node
24439 and optimization_current_node.
24441 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
24443 * config/rtems.h: Abandon -qrtems_debug.
24445 2010-03-28 Jan Hubicka <jh@suse.cz>
24447 PR tree-optimization/43505
24448 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24449 map should not be copied.
24451 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24453 PR middle-end/41674
24454 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24455 cdtors, set DECL_PRESERVE_P.
24456 * ipa.c (cgraph_externally_visible_p): Return true if declaration
24457 should be preseved.
24459 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
24461 PR tree-optimization/43528
24462 * stor-layout.c (place_field): Check that constant fits into
24463 unsigned HWI when skipping calculation of MS bitfield layout.
24465 2010-03-27 Jan Hubicka <jh@suse.cz>
24467 PR middle-end/43391
24468 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
24469 notice_global_symbol work.
24471 2010-03-27 Jakub Jelinek <jakub@redhat.com>
24473 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
24474 instead of dwarf2out_decl.
24475 (struct var_loc_node): Remove section_label field.
24476 (dwarf2out_function_decl): New function.
24477 (dwarf2out_var_location): Don't set section_label field.
24478 (dwarf2out_begin_function): Don't empty decl_loc_table here.
24480 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24482 PR tree-optimization/43544
24483 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24484 First argument for builtin vectorized function hook is now a
24485 tree to be able to distinguish between machine specific and
24487 * targhooks.c (default_builtin_vectorized_function): Ditto.
24488 * targhooks.h (default_builtin_vectorized_function): Ditto.
24489 * target.h (struct gcc_target): Ditto.
24490 * tree-vect-stmts.c (vectorizable_function): Ditto.
24491 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
24492 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
24495 2010-03-26 Joseph Myers <joseph@codesourcery.com>
24498 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
24499 nested binding iff it is a FUNCTION_DECL.
24500 (store_parm_decls_newstyle): Pass nested=true to bind for
24501 FUNCTION_DECLs amongst parameters.
24503 2010-03-26 Jakub Jelinek <jakub@redhat.com>
24505 * var-tracking.c (vt_expand_loc_callback): Don't run
24506 cselib_expand_value_rtx_cb in dummy mode if
24507 cselib_dummy_expand_value_rtx_cb returned false.
24509 * var-tracking.c (emit_note_insn_var_location): For one part
24510 notes with offset 0, don't add EXPR_LIST around the location.
24511 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
24512 add_location_or_const_value_attribute): Adjust for that change.
24515 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
24516 into first operand and location into second.
24517 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
24518 dw_cfi_oprnd_loc for DW_CFA_expression.
24519 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
24520 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
24521 assume first argument is regnum and second argument is location.
24523 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
24526 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
24527 of scratch register to DImode. Split to DImode comparison operator.
24528 Use SImode subreg of scratch register in the multiplication.
24529 (*cmp_sadd_sidi): Ditto.
24530 (*cmp_ssub_si): Ditto.
24531 (*cmp_ssub_sidi): Ditto.
24533 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
24536 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
24537 Remove invalid assert and wrong comment.
24539 2010-03-26 Jakub Jelinek <jakub@redhat.com>
24542 * flags.h (final_insns_dump_p): New extern.
24543 * final.c (final_insns_dump_p): New variable.
24544 (rest_of_clean_state): Set it before -fdump-final-insns=
24545 dumping, clear afterwards.
24546 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
24547 MEM_ALIAS_SET on MEMs.
24549 2010-03-26 David S. Miller <davem@davemloft.net>
24551 * configure.ac: Fix sparc GOTDATA_OP bug check.
24552 * configure: Rebuild.
24554 2010-03-26 Alan Modra <amodra@gmail.com>
24556 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
24558 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24560 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
24561 TLS_SECTION_ASM_FLAG.
24563 2010-03-25 Jakub Jelinek <jakub@redhat.com>
24566 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
24567 Clear first_function_block_is_cold.
24570 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
24571 argument if the argument is truth_value_p.
24573 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24575 * config/rs6000/constraints.md: Update copyright year for my changes.
24578 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
24579 used in reg+reg addressing, swap registers.
24581 2010-03-24 Jakub Jelinek <jakub@redhat.com>
24584 * target.h (struct gcc_target): Add code_end hook.
24585 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
24586 if not yet defined.
24587 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
24588 * toplev.c (compile_file): Call targetm.asm_out.code_end
24589 hook before unwind info/debug info output.
24590 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
24591 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
24592 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24593 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
24594 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24595 * config/i386/i386.c (ix86_file_end): Renamed to...
24596 (ix86_code_end): ... this. Make static. Don't call
24597 file_end_indicate_exec_stack. Emit unwind info using
24598 final_start_function/final_end_function.
24599 (darwin_x86_file_end): Remove.
24600 (TARGET_ASM_CODE_END): Define.
24601 * config/i386/i386.h (TARGET_ASM_FILE_END,
24602 NEED_INDICATE_EXEC_STACK): Don't define.
24603 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
24604 (TARGET_ASM_FILE_END): Define to darwin_file_end.
24605 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
24606 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
24609 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
24610 at the beginning and final_end_function at the end.
24611 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24613 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24615 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
24616 and Sun as TLS syntax.
24617 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
24618 * configure: Regenerate.
24619 * config.in: Regenerate.
24620 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
24621 (default_elf_asm_named_section): Use it.
24622 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
24623 (i386_output_dwarf_dtprel): Likewise.
24624 (output_addr_const_extra): Likewise.
24625 (output_pic_addr_const): Lowercase @GOTTPOFF.
24626 (output_addr_const_extra): Likewise.
24627 (output_pic_addr_const): Lowercase @GOTNTPOFF.
24628 (output_addr_const_extra): Likewise.
24629 (output_pic_addr_const): Lowercase @INDNTPOFF.
24630 (output_addr_const_extra): Likewise.
24631 (output_pic_addr_const): Lowercase @NTPOFF.
24632 (output_addr_const_extra): Likewise.
24633 (output_pic_addr_const): Lowercase @TPOFF.
24634 (output_addr_const_extra): Likewise.
24635 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
24636 (*tls_global_dynamic_64): Likewise.
24637 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
24638 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
24640 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
24641 (ASM_OUTPUT_TLS_COMMON): Use it.
24642 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
24645 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
24646 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24647 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
24648 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
24649 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24650 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
24652 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24654 * config/i386/i386.c (override_options): Don't accept
24655 -mtls-dialect=sun any longer.
24656 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
24657 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
24658 (*tls_local_dynamic_base_32_sun): Likewise.
24659 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24661 2010-03-24 Jakub Jelinek <jakub@redhat.com>
24664 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24665 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
24668 * ira.c (adjust_cleared_regs): New function.
24669 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
24673 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
24675 * expr.c (expand_expr_real): Restore previous
24676 curr_insn_source_location and curr_insn_block after
24677 expand_expr_real_1 call.
24678 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
24679 instead of expand_expr_real_1.
24681 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
24683 PR rtl-optimization/43413
24684 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
24687 2010-03-22 James E. Wilson <wilson@codesourcery.com>
24690 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
24691 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
24693 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
24695 * config/i386/i386.c (ix86_target_string): Add -mfma.
24696 Fix a typo in comment.
24698 2010-03-22 Mike Stump <mikestump@comcast.net>
24701 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
24702 Don't overly align based upon packed packed fields.
24704 2010-03-22 Jason Merrill <jason@redhat.com>
24706 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
24707 Use () rather than [], and move before the element type.
24709 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24711 * doc/configfiles.texi (Configuration Files): Removed
24712 fixinc/Makefile*, intl/Makefile.*.
24713 * doc/makefile.texi: Fixed markup. Abstract from version
24714 control system used.
24715 (Makefile): Removed obsolete java/parse.y example.
24716 * doc/sourcebuild.texi: Likewise.
24717 (Top Level): Added config, gnattools, libdecnumber, libgcc,
24718 libgomp, libssp. Removed fastjar.
24719 (Miscellaneous Docs): Clarify location.
24720 Added COPYING3, COPYING3.LIB.
24721 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
24723 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24726 * config/i386/i386.c (x86_function_profiler)
24727 [!NO_PROFILE_COUNTERS]: Fix typo.
24728 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
24731 2010-03-22 Janis Johnson <janis187@us.ibm.com>
24732 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24734 * doc/sourcebuild.texi (Test Directives): Split into six
24735 subsections, with most of the current text in new subsections
24736 Directives, Selectors, and Final Actions.
24737 (Directives): Split list of test directives into multiple
24739 (Selectors): Describe use and syntax of selectors.
24740 (Effective-Target Keywords): Describe all existing keywords.
24741 (Add Options): Describe features for dg-add-options.
24742 (Require Support): Describe variants of dg-require-support.
24743 (Final Actions): Describe commands to use in dg-final.
24745 2010-03-22 Michael Matz <matz@suse.de>
24747 PR middle-end/43475
24748 * recog.c (validate_replace_rtx_group): Replace also in
24749 REG_EQUAL and REG_EQUIV notes.
24751 2010-03-22 Richard Guenther <rguenther@suse.de>
24753 PR tree-optimization/43390
24754 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
24755 sure vector extracts are type correct.
24757 2010-03-22 Richard Guenther <rguenther@suse.de>
24759 PR middle-end/40106
24760 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
24761 x * sqrt (x) even when optimizing for size if the target
24762 has native support for sqrt.
24764 2010-03-22 Jakub Jelinek <jakub@redhat.com>
24766 * varasm.c (make_decl_rtl_for_debug): Also clear
24767 flag_mudflap for the duration of make_decl_rtl call.
24770 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
24771 locs from preserved VALUEs.
24773 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24775 PR middle-end/42718
24776 * pa.md (movmemsi): Set align to one if zero.
24777 (movmemdi): Likewise.
24779 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
24782 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
24783 with their corresponding prologue pushes.
24785 2010-03-20 Andrew Pinski <pinskia@gmail.com>
24788 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
24789 at the begining or end.
24790 (spu_expand_epilogue): Likewise.
24792 2010-03-20 Richard Guenther <rguenther@suse.de>
24794 PR rtl-optimization/43438
24795 * combine.c (make_extraction): Properly zero-/sign-extend an
24796 extraction of the low part of a CONST_INT. Also handle
24799 2010-03-19 Mike Stump <mikestump@comcast.net>
24801 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
24802 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
24803 (override_options): Use SUBTARGET32_DEFAULT_CPU.
24805 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
24808 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
24811 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
24813 PR rtl-optimization/42258
24814 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
24815 use that may match DEF.
24818 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
24819 the cost of loading the constant rather than assuming
24821 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
24822 outer code is AND, do the same tests as the andsi3 expander and
24823 return COSTS_N_INSNS (1) if and is cheap.
24825 * optabs.c (avoid_expensive_constant): Fix formatting.
24827 2010-03-19 Michael Matz <matz@suse.de>
24830 * attribs.c (decl_attributes): When rebuilding a function pointer
24831 type use the same qualifiers as the original pointer type.
24833 2010-03-19 Martin Jambor <mjambor@suse.cz>
24835 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
24836 and is_gimple_ip_invariant_address.
24838 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24841 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24843 * config/arm/arm.c (arm_override_options): Turn off
24844 flag_dwarf2_cfi_asm for AAPCS variants.
24846 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24849 * config/arm/arm.c (emit_multi_reg_push): Update comments.
24850 Use PRE_MODIFY instead of PRE_DEC.
24851 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
24852 (vfp_emit_fstmd): Likewise.
24854 2010-03-19 Michael Matz <matz@suse.de>
24857 * builtins.c (expand_builtin_interclass_mathfn,
24858 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
24861 2010-03-19 Richard Guenther <rguenther@suse.de>
24863 PR tree-optimization/43415
24864 * tree-ssa-pre.c (phi_translate): Split out worker to ...
24865 (phi_translate_1): ... this.
24866 (phi_translate): Move all caching here. Cache all NARY
24867 and REFERENCE translations.
24869 2010-03-19 David S. Miller <davem@davemloft.net>
24871 With help from Eric Botcazou.
24872 * config/sparc/sparc.c: Include dwarf2out.h.
24873 (emit_pic_helper): Delete.
24874 (pic_helper_symbol_name): Delete.
24875 (pic_helper_emitted_p): Delete.
24876 (pic_helper_needed): New.
24877 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
24878 (get_pc_thunk_name): New.
24879 (load_pic_register): Remove 'delay_pic_helper' arg. Use
24880 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
24881 Set pic_helper_needed to true. Don't call emit_pic_helper.
24882 (sparc_expand_prologue): Update load_pic_register call.
24883 (sparc_output_mi_thunk): Likewise.
24884 (sparc_file_end): Emit a hidden comdat symbol for the PIC
24885 thunk if possible. Output CFI information as needed.
24887 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
24888 Jack Howarth <howarth@bromo.med.uc.edu>
24891 * config/i386/i386.h: Fix ABI on darwin x86-32.
24893 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
24895 * tree.h: Declare make_decl_rtl_for_debug.
24896 * varasm.c (make_decl_rtl_for_debug): New.
24897 * dwarf2out.c (rtl_for_decl_location): Call it.
24898 * cfgexpand.c (expand_debug_expr): Call it.
24900 2010-03-18 Jakub Jelinek <jakub@redhat.com>
24903 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
24907 * var-tracking.c (vt_init_cfa_base): Do nothing if
24908 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
24910 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
24913 * var-tracking.c (canonicalize_vars_star): New.
24914 (dataflow_post_merge_adjust): Use it.
24916 2010-03-18 Jakub Jelinek <jakub@redhat.com>
24919 * var-tracking.c (non_suitable_const): New function.
24920 (add_uses): For DEBUG_INSNs with constants, don't record any
24921 value, instead just the constant value itself.
24922 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
24923 is not VAR_LOC_UNKNOWN_P, set var to the constant.
24924 (emit_notes_in_bb): Likewise.
24925 (emit_note_insn_var_location): For onepart variables if
24926 cur_loc is a VOIDmode constant, use DECL_MODE.
24928 2010-03-18 Martin Jambor <mjambor@suse.cz>
24930 PR middle-end/42450
24931 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
24932 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
24933 all non-clones. Moved call redirection...
24934 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
24935 (cgraph_materialize_all_clones): Dispose of all
24936 combined_args_to_skip bitmaps.
24937 (verify_cgraph_node): Do not check for edges pointing to wrong
24938 nodes in inline clones.
24939 * tree-inline.c (copy_bb): Call
24940 cgraph_redirect_edge_call_stmt_to_callee.
24941 * ipa.c (cgraph_remove_unreachable_nodes): Call
24942 cgraph_node_remove_callees even when there are used clones.
24944 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
24946 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
24948 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
24951 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
24954 2010-03-18 Michael Matz <matz@suse.de>
24956 PR middle-end/43419
24957 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
24958 into sqrt(x) if we need to preserve signed zeros.
24960 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
24961 Eric Botcazou <ebotcazou@adacore.com>
24963 PR rtl-optimization/43360
24964 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
24965 note if we don't know its invariant status.
24967 2010-03-18 Michael Matz <matz@suse.de>
24969 PR tree-optimization/43402
24970 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
24971 PHI chains of ssa names registered for update.
24973 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
24976 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
24977 non-offsettable and pre_modify update addressing.
24978 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
24979 and "2" alternatives "#".
24980 (*movdd_softfloat32): Make all alternatives "#";
24981 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
24982 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
24983 (*movdf_softfloat32): Make all alternatives "#";
24984 (movdi): Use the new DIFD mode iterator to create a common splitter
24985 for movdi, movdf and movdd patterns.
24987 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
24989 * common.opt (dumpdir): Remove redundant tab.
24991 2010-03-17 Martin Jambor <mjambor@suse.cz>
24993 PR tree-optimization/43347
24994 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
24995 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
24997 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
24999 PR rtl-optimization/42216
25000 * regrename.c (create_new_chain): New function, broken out from...
25001 (scan_rtx_reg): ... here. Call it. Handle the case where we are
25002 appending a use to an empty chain.
25003 (build_def_use): Remove previous changes that convert OP_INOUT to
25004 OP_OUT operands; instead detect the case where an OP_INOUT operand
25005 uses a previously untracked register and create an empty chain for it.
25007 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25009 * doc/extend.texi (Function Attributes): Rewrite unfinished
25010 sentence in ms_abi documentation.
25012 2010-03-17 Alan Modra <amodra@gmail.com>
25014 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25015 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25016 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25017 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25019 2010-03-16 Richard Henderson <rth@redhat.com>
25021 PR middle-end/43365
25022 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25023 (lower_try_finally): Save and restore eh_seq around the expansion
25024 of the try-finally.
25026 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25028 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25029 statements before splitting block.
25031 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25033 * doc/sourcebuild.texi (Testsuites): Fix markup.
25034 Use pathnames relative to gcc/testsuite.
25035 (Test Directives): Move description of how timeout is determined.
25036 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25037 (C Tests): Correct gcc.misc-tests directory.
25038 Framework tests now live in gcc.test-framework.
25040 2010-03-16 Richard Guenther <rguenther@suse.de>
25042 PR middle-end/43379
25043 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25044 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25046 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25047 Alexandre Oliva <aoliva@redhat.com>
25049 PR tree-optimization/42917
25050 * lambda-code.c (remove_iv): Skip debug statements.
25051 (lambda_loopnest_to_gcc_loopnest): Likewise.
25052 (not_interesting_stmt): Debug statements are not interesting.
25054 2010-03-16 Jakub Jelinek <jakub@redhat.com>
25058 * cselib.c (cselib_preserve_constants,
25059 cfa_base_preserved_val): New static variables.
25060 (preserve_only_constants): New function.
25061 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25062 clear its REG_VALUES. If cselib_preserve_constants, don't
25063 empty the whole hash table, but preserve there VALUEs with constants,
25064 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25065 (cselib_preserve_cfa_base_value): New function.
25066 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25067 (cselib_init): Change argument to int bitfield. Set
25068 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25070 (cselib_finish): Clear cselib_preserve_constants and
25071 cfa_base_preserved_val.
25072 * cselib.h (enum cselib_record_what): New enum.
25073 (cselib_init): Change argument to int.
25074 (cselib_preserve_cfa_base_value): New prototype.
25075 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25076 * dse.c (dse_step1): Likewise.
25077 * cfgcleanup.c (thread_jump): Likewise.
25078 * sched-deps.c (sched_analyze): Likewise.
25079 * gcse.c (local_cprop_pass): Likewise.
25080 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25081 If FN is non-NULL, call the callback always and whenever it returns
25082 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
25083 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25084 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25085 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25086 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25087 * var-tracking.c: Include recog.h.
25088 (bb_stack_adjust_offset): Remove.
25089 (vt_stack_adjustments): Don't call it, instead just gather the
25090 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25091 (adjust_stack_reference): Remove.
25092 (compute_cfa_pointer): New function.
25093 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25094 (struct adjust_mem_data): New type.
25095 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25097 (get_address_mode): New function.
25098 (replace_expr_with_values): Use it.
25099 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25100 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
25101 (adjust_sets): Remove.
25102 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25103 Use get_address_mode.
25104 (get_adjusted_src): Remove.
25105 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
25106 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
25107 (add_with_sets): Don't call adjust_sets.
25108 (fp_setter, vt_init_cfa_base): New functions.
25109 (vt_initialize): Change return type to bool. Move most of pool etc.
25110 initialization to the beginning of the function from end. Pass
25111 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25112 If !frame_pointer_needed, call vt_stack_adjustment before mos
25113 vector is filled, call vt_init_cfa_base if argp/framep has been
25114 eliminated to sp. If frame_pointer_needed and argp/framep has
25115 been eliminated to hard frame pointer, set
25116 hard_frame_pointer_adjustment and call vt_init_cfa_base after
25117 encountering fp setter in the prologue. For MO_ADJUST, call
25118 log_op_type before pusing the op into mos vector, not afterwards.
25119 Call adjust_insn before cselib_process_insn/add_with_sets,
25120 call cancel_changes (0) afterwards.
25121 (variable_tracking_main_1): Adjust for vt_initialize calling
25122 vt_stack_adjustments and returning whether it succeeded or not.
25124 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
25126 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25129 2010-03-15 Jakub Jelinek <jakub@redhat.com>
25131 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25133 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25134 drap_reg has not been set.
25136 2010-03-15 Michael Matz <matz@suse.de>
25138 PR middle-end/43300
25139 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25140 use it to expand block copies.
25141 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25142 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25143 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25145 2010-03-15 Richard Guenther <rguenther@suse.de>
25147 PR tree-optimization/43367
25148 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25151 2010-03-15 Richard Guenther <rguenther@suse.de>
25153 PR tree-optimization/43317
25154 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25156 2010-03-15 Martin Jambor <mjambor@suse.cz>
25158 PR tree-optimization/43141
25159 * tree-sra.c (create_abstract_origin): New function.
25160 (modify_function): Call create_abstract_origin.
25162 2010-03-15 Chris Demetriou <cgd@google.com>
25164 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25167 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25169 PR middle-end/43354
25170 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25171 call insert_out_of_ssa_copy for default definitions.
25173 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25175 * graphite-clast-to-gimple.c (my_long_long): Defined.
25176 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25177 * graphite-sese-to-poly.c (my_long_long): Defined.
25178 (scop_ivs_can_be_represented): Use it.
25180 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25182 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25183 graphite-max-bbs-per-function, and loop-block-tile-size.
25184 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25186 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25188 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25190 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25191 forward declaration.
25192 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25193 (add_upper_bounds_from_estimated_nit): New.
25194 (build_loop_iteration_domains): Use it.
25196 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25198 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25200 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25202 PR middle-end/43306
25203 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25204 should be an INTEGER_CST. Also handle CASE_CONVERT.
25206 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25208 * graphite.c (graphite_initialize): To bound the number of bbs per
25209 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25210 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25211 * doc/invoke.texi: Document it.
25213 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25215 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25216 * graphite-sese-to-poly.h (build_poly_scop): Same.
25218 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25220 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25221 the number of parameters in the scop. Use as an upper bound
25222 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25223 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25224 * doc/invoke.texi: Document it.
25226 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
25228 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25229 * doc/c-tree.texi: Remove.
25230 * doc/generic.texi: Merge c-tree.texi here.
25231 * doc/gccint.texi (Trees): Remove menu entry.
25232 (c-tree.texi): Remove @include.
25233 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25234 * doc/languages.texi (Reading RTL): Ditto.
25236 2010-03-12 Steve Ellcey <sje@cup.hp.com>
25239 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25241 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25243 PR middle-end/42431
25244 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25245 code added to work around reload clobbering CONST insns.
25247 2010-03-12 Jakub Jelinek <jakub@redhat.com>
25249 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25250 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25251 (cselib_preserve_only_values): Remove retain argument, don't
25252 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25253 * cselib.h (cselib_preserve_only_values): Remove retain argument.
25254 * var-tracking.c (micro_operation): Move insn field before union.
25255 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25256 (struct variable_tracking_info_def): Remove n_mos field, change
25257 mos into a vector of micro_operations.
25258 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25259 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25260 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25261 changing into a vector.
25262 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
25263 come before all other uops generated by add_stores.
25264 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25266 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
25267 a vector. Run just one pass over the bbs instead of separate counting
25268 and computation phase.
25269 (vt_finalize): Free VTI (bb)->mos vector instead of array.
25272 * tree-inline.c (remap_decls): Put old_var rather than origin_var
25273 into *nonlocalized_list vector.
25274 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25275 even if origin is non-NULL.
25276 (gen_variable_die): Likewise.
25277 (process_scope_var): Don't change origin.
25278 (gen_decl_die): Likewise.
25279 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25280 before adding new edges instead of after it, fix moving over
25283 2010-03-11 David S. Miller <davem@davemloft.net>
25285 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25287 * configure: Rebuild.
25289 2010-03-11 Martin Jambor <mjambor@suse.cz>
25291 PR tree-optimization/43257
25292 * tree.c (assign_assembler_name_if_neeeded): New function.
25293 (free_lang_data_in_cgraph): Assembler name assignment moved to the
25294 above new function.
25295 * tree.h (assign_assembler_name_if_neeeded): Declare.
25296 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25297 the function if needed.
25299 2010-03-11 Chris Demetriou <cgd@google.com>
25301 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25302 include/stdint-gcc.h, and include/stdint.h world-readable.
25304 2010-03-11 Richard Guenther <rguenther@suse.de>
25306 PR tree-optimization/43255
25307 * tree-vrp.c (process_assert_insertions_for): Do not insert
25308 asserts for trivial conditions.
25310 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25312 PR tree-optimization/43280
25313 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25314 generation. Move calculation of size out of the if branch.
25315 (find_bswap): Modify compare number generation.
25317 2010-03-11 Richard Guenther <rguenther@suse.de>
25320 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25321 (input_gimple_stmt): Fixup handled component types during
25322 operand read. Also fix up decls in ADDR_EXPRs.
25324 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
25326 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25327 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25329 2010-03-10 Jan Hubicka <jh@suse.cz>
25332 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25333 * varasm.c (get_variable_section): Don't do that here...
25334 (make_decl_rtl): ... and here.
25335 (do_assemble_alias): Produce decl RTL.
25336 (assemble_alias): Likewise.
25338 2010-03-10 Jakub Jelinek <jakub@redhat.com>
25341 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25342 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25344 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25345 (based_loc_descr): Only express drap or vdrap regno based expressions
25346 using DW_OP_fbreg when not optimizing.
25347 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25348 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25349 REG_CFA_SET_VDRAP note.
25351 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
25353 PR tree-optimization/43236
25354 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25355 error in calculation of base address in reverse iteration case.
25356 (generate_builtin): Take number of latch executions if the statement
25359 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
25361 PR middle-end/42859
25362 * tree-eh.c: Include pointer-set.h.
25363 (lower_eh_dispatch): Filter out duplicate case labels and
25364 remove the unneeded edge when the label is unused. Return
25365 true when some edges are removed.
25366 (execute_lower_eh_dispatch): When any lowering resulted in
25367 removing an edge, also delete unreachable blocks.
25369 2010-03-10 Jakub Jelinek <jakub@redhat.com>
25372 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25373 UNSPEC_MACHOPIC_OFFSET.
25375 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
25378 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25379 (m68k_delegitimize_address): New function.
25381 2010-03-09 Jakub Jelinek <jakub@redhat.com>
25384 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25387 * var-tracking.c (adjust_sets): New function.
25388 (count_with_sets, add_with_sets): Use it.
25389 (get_adjusted_src): New inline function.
25390 (add_stores): Use it.
25393 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25394 call cselib_dummy_expand_value_rtx_cb instead of
25395 cselib_expand_value_rtx_cb.
25398 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25399 * config/i386/i386.c: Include debug.h and dwarf2out.h.
25400 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25401 and .cfi_endproc around the pic thunks.
25402 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25403 all queued unwind info register saves are saved before the call.
25404 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25405 considered as sp-=4 for unwind info and the pop as sp+=4 which
25406 also clobbers dest, but doesn't actually restore it.
25409 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25410 RTX_FRAME_RELATED_P.
25412 2010-03-09 Jie Zhang <jie@codesourcery.com>
25414 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25415 whitespaces in output template.
25417 2010-03-09 Jie Zhang <jie@codesourcery.com>
25419 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25420 out array boundary.
25422 2010-03-08 Jakub Jelinek <jakub@redhat.com>
25424 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25425 builtins.exp in a separate job.
25427 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25429 * graphite-sese-to-poly.c (add_param_constraints): Use
25430 lower_bound_in_type and upper_bound_in_type.
25432 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25434 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25435 instead of unsigned_type_node.
25437 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25438 Reza Yazdani <reza.yazdani@amd.com>
25440 PR middle-end/43065
25441 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25442 on pointer type parameters.
25444 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
25446 PR middle-end/42644
25447 PR middle-end/42130
25448 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25449 handle conversions from pointer to integers.
25450 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25451 induction variable, to be able to work with code generated by CLooG.
25452 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25453 (build_poly_scop): Bail out if we cannot codegen a loop.
25455 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
25457 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25458 code generation with gloog_error.
25460 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25462 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25463 Call fold_convert on all the returned values.
25464 (expand_scalar_variables_expr): Pass to
25465 expand_scalar_variables_ssa_name the type of the resulting expression.
25467 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25469 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
25470 ppl_min_for_le_pointset.
25471 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
25472 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
25474 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25476 * graphite-dependences.c (map_into_dep_poly): Removed.
25477 (dependence_polyhedron_1): Use combine_context_id_scat.
25479 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25481 * graphite-poly.h (struct poly_scattering): Add layout documentation.
25482 (struct poly_bb): Same.
25483 (combine_context_id_scat): New.
25485 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25487 PR middle-end/42326
25488 * sese.c (name_defined_in_loop_p): Return false for default
25491 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25493 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
25494 and clean up the logic.
25496 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
25498 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
25501 2010-03-08 Jakub Jelinek <jakub@redhat.com>
25503 * var-tracking.c (remove_cselib_value_chains): Define only for
25505 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
25506 delete_slot_part, emit_notes_for_differences_1): Don't call
25507 remove_cselib_value_chains here.
25508 (set_slot_part, emit_notes_for_differences_2): Don't call
25509 add_cselib_value_chains here.
25510 (preserved_values): New vector.
25511 (preserve_value): New function.
25512 (add_uses, add_stores, vt_add_function_parameters): Use it
25513 instead of cselib_preserve_value.
25514 (changed_values_stack): New vector.
25515 (check_changed_vars_0): New function.
25516 (check_changed_vars_1, check_changed_vars_2): Use it.
25517 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
25518 changed_values_stack VALUEs.
25519 (vt_emit_notes): For all preserved_values call
25520 add_cselib_value_chains. If ENABLE_CHECKING call
25521 remove_cselib_value_chains before verifying value_chains is empty.
25522 Initialize and free changed_values_stack.
25523 (vt_initialize): Initialize preserved_values.
25524 (vt_finalize): Free preserved_values.
25526 2010-03-08 Richard Guenther <rguenther@suse.de>
25528 PR tree-optimization/43269
25529 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
25532 2010-03-08 Martin Jambor <mjambor@suse.cz>
25534 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
25535 (ipa_is_param_called): Removed.
25536 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
25537 (ipa_print_node_params): Do not print the called flag.
25538 (ipa_write_node_info): Do not stream the called flag.
25539 (ipa_read_node_info): Likewise.
25541 2010-03-07 Jakub Jelinek <jakub@redhat.com>
25544 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
25545 * cselib.c (struct expand_value_data): Add dummy field.
25546 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
25548 (cselib_dummy_expand_value_rtx_cb): New function.
25549 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
25551 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
25552 * var-tracking.c: Include pointer-set.h.
25553 (variable): Change n_var_parts to char from int. Add
25554 cur_loc_changed and in_changed_variables fields.
25555 (variable_canonicalize): Remove.
25556 (shared_var_p): New inline function.
25557 (unshare_variable): Maintain cur_loc_changed and
25558 in_changed_variables fields. If var was in changed_variables,
25559 replace it there with new_var. Just copy cur_loc instead of
25560 resetting it to something else.
25561 (variable_union): Don't recompute cur_loc. Use shared_var_p.
25562 (dataflow_set_union): Don't call variable_canonicalize.
25563 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
25564 of their DEBUG_EXPR_TREE_DECLs.
25565 (canonicalize_loc_order_check): Verify that cur_loc is NULL
25566 and in_changed_variables and cur_loc_changed is false.
25567 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
25568 and cur_loc_changed. Don't update cur_loc here.
25569 (variable_merge_over_src): Don't call variable_canonicalize.
25570 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
25571 removing loc that is equal to cur_loc, clear cur_loc,
25572 set cur_loc_changed and ensure variable_was_changed is called.
25573 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
25574 compare pointers in cur_loc check, if it is equal to loc,
25575 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
25576 (variable_different_p): Remove compare_current_location argument,
25577 don't compare cur_loc.
25578 (dataflow_set_different_1): Adjust variable_different_p caller.
25579 (variable_was_changed): If dv had some var in changed_variables
25580 already, reset in_changed_variables flag for it and propagate
25581 cur_loc_changed over to the new variable. On empty var
25582 always set cur_loc_changed. Set in_changed_variables on whatever
25583 var is added to changed_variables.
25584 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
25585 Use shared_var_p. When removing loc that is equal to cur_loc,
25586 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
25587 end, don't set it to something else, just call variable_was_changed.
25588 (delete_slot_part): Use shared_var_p. When cur_loc equals to
25589 loc being removed, clear cur_loc and set cur_loc_changed.
25590 Set cur_loc_changed if all locations have been removed.
25591 (struct expand_loc_callback_data): New type.
25592 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
25593 allocated. Always create SUBREGs if simplify_subreg failed.
25594 Prefer to use cur_loc, when that fails and still in
25595 changed_variables (and seen first time) recompute it. Set
25596 cur_loc_changed of variables which had to change cur_loc and
25597 compute elcd->cur_loc_changed if any of the subexpressions used
25598 had to change cur_loc.
25599 (vt_expand_loc): Adjust to pass arguments in
25600 expand_loc_callback_data structure.
25601 (vt_expand_loc_dummy): New function.
25602 (emitted_notes): New variable.
25603 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
25604 that weren't used for any other decl in current
25605 emit_notes_for_changes call call vt_expand_loc_dummy to update
25606 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
25607 first loc_chain location if NULL before. Always use just
25608 cur_loc instead of first loc_chain location. When cur_loc_changed
25609 is false, when not --enable-checking=rtl just don't emit any note.
25610 When rtl checking, compute the note and assert it is the same
25611 as previous note. Clear cur_loc_changed and in_changed_variables
25612 at the end before removing from changed_variables.
25613 (check_changed_vars_3): New function.
25614 (emit_notes_for_changes): Traverse changed_vars to call
25615 check_changed_vars_3 on each changed var.
25616 (emit_notes_for_differences_1): Clear cur_loc_changed and
25617 in_changed_variables. Recompute cur_loc of new_var.
25618 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
25619 (vt_emit_notes): Initialize and destroy emitted_notes.
25621 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
25623 PR rtl-optimization/42220
25624 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
25625 Use verify_reg_tracked to determine if we should use OP_OUT rather
25627 (build_def_use): If we see an in-out operand for a register that we
25628 know nothing about, treat is an output if possible, fail the block if
25631 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25634 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
25637 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25640 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
25641 uses of relevant DEFs that are dead outside the loop too.
25643 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
25645 * var-tracking.c (dataflow_set_merge): Swap src and src2.
25647 2010-01-13 Jakub Jelinek <jakub@redhat.com>
25649 * var-tracking.c (values_to_unmark): New variable.
25650 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25651 values_to_unmark vector. Moved body to...
25652 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
25653 instead queue it into values_to_unmark vector.
25654 (vt_find_locations): Free values_to_unmark vector.
25656 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
25658 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
25659 (site.exp): Export them when plugins are enabled.
25661 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
25663 PR middle-end/42326
25664 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
25665 that contain scevs.
25666 (chrec_fold_multiply): Same.
25668 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
25671 * c-decl.c (build_compound_literal): Return early if init is
25672 an error_mark_node.
25674 2010-03-04 Martin Jambor <mjambor@suse.cz>
25676 PR tree-optimization/43164
25677 PR tree-optimization/43191
25678 * tree-sra.c (type_consists_of_records_p): Reject records with
25679 zero-size bit-fields at the end.
25681 2010-03-04 Mike Stump <mikestump@comcast.net>
25683 * Makefile.in (TAGS): Remove *.y.
25685 2010-03-04 Richard Guenther <rguenther@suse.de>
25687 PR tree-optimization/40761
25688 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
25690 (my_rev_post_order_compute): New function.
25691 (init_pre): Call it.
25693 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
25695 PR middle-end/43209
25696 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
25697 decrease the cost of an IV candidate when the cost is infinite.
25699 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25701 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
25702 Use '3DNow!' for the extension of that name, ensure normal space
25704 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
25706 2010-03-03 Jeff Law <law@redhat.com>
25708 * PR middle-end/32693
25709 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
25710 than gen_rtx_SUBREG.
25711 (extract_bit_field_1): Likewise.
25713 2010-03-03 Janis Johnson <janis187@us.ibm.com>
25715 * doc/sourcebuild.texi (Test directives): Document that arguments
25716 include-opts and exclude-opts are now optional for dg-skip-if,
25717 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
25719 2010-03-03 Jason Merrill <jason@redhat.com>
25722 * cgraph.h (varpool_node): Add extra_name field.
25723 * varpool.c (varpool_extra_name_alias): New.
25724 (varpool_assemble_decl): Emit extra name aliases.
25725 (varpool_mark_needed_node): Look past an extra name alias.
25726 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
25727 * lto-streamer-in.c (lto_input_tree): Read it.
25728 * lto-streamer-out.c (output_unreferenced_globals): Write it.
25730 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
25732 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
25733 (sparc*-*-solaris2*): ...this.
25735 2010-03-03 Jakub Jelinek <jakub@redhat.com>
25738 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
25739 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
25740 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
25741 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
25744 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
25745 fallthrough to default handling, just with want_address 0 instead of 2.
25746 For single element lists, add_AT_loc directly, otherwise create an
25747 artificial variable DIE and stick location list to it.
25750 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
25751 (VAL_EXPR_HAS_REVERSE): Define.
25752 (reverse_op): New function.
25753 (add_stores): For reversible operations add an extra MO_VAL_USE.
25755 2010-03-02 Jason Merrill <jason@redhat.com>
25757 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
25759 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
25761 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
25762 (sparc64-*-linux*): Likewise.
25763 (sparc64-*-solaris2*): Include assembler files before linker ones.
25764 (sparc-*-solaris2*): Simplify and reorder to match previous case.
25765 * config/sparc/gas.h: Delete.
25766 * config/sparc/sol2-64.h: Add copyright notice.
25767 * config/sparc/sol2-gas-bi.h: Likewise.
25768 * config/sparc/sol2-gld.h: Likewise.
25769 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
25770 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
25771 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
25772 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
25773 (sparc_elf_asm_named_section): Rename into...
25774 (sparc_solaris_elf_asm_named_section): ...this. Always define.
25776 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
25778 * config/alpha/alpha.c (override_options): Fix -mtune error message.
25780 2010-03-02 Jeff Law <law@redhat.com>
25782 PR middle-end/42431
25783 * reload1.c (rtx_p, substitute_stack): Declare.
25784 (substitute): Record addresses of changed rtxs.
25785 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
25786 Restore the original rtx when complete.
25787 (reload): Free subsitute_stack when complete.
25789 2010-03-02 Janis Johnson <janis187@us.ibm.com>
25791 * doc/gccint.texi (menu): Add Testsuites as a chapter.
25792 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
25794 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
25795 LTO Testing, gcov Testing, profopt Testing, compat Testing,
25796 Torture Tests): Change from subsection to section.
25798 2010-03-02 Jakub Jelinek <jakub@redhat.com>
25799 Steven Bosscher <steven@gcc.gnu.org>
25801 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
25804 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
25806 PR middle-end/42640
25807 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
25808 the assignment from the new induction variable to the assignment
25809 of the value from the original loop PHI function.
25811 2010-03-01 Janis Johnson <janis187@us.ibm.com>
25812 Daniel Jacobowitz <dan@codesourcery.com>
25814 * doc/sourcebuild.texi (Test directives): Clarify options to
25817 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25819 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
25820 Disable cfi directives unless GCC and gas agree on using read-only
25821 .eh_frame sections for 64-bit.
25822 * configure: Regenerate.
25824 2010-03-01 Richard Guenther <rguenther@suse.de>
25826 PR tree-optimization/43220
25827 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
25828 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
25830 2010-03-01 Richard Guenther <rguenther@suse.de>
25831 Martin Jambor <mjambor@suse.cz>
25833 PR middle-end/41250
25834 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
25835 gimplified parameters.
25837 2010-03-01 Christian Bruel <christian.bruel@st.com>
25839 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
25841 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
25843 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
25845 2010-03-01 Richard Guenther <rguenther@suse.de>
25847 PR middle-end/43213
25848 * expr.c (expand_assignment): Use the alias-oracle to tell
25849 if the rhs aliases the result decl.
25851 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25854 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
25855 to sol_gt_pch_get_address.
25856 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
25857 64-bit, SPARC and x86.
25858 (sol_gt_pch_get_address): New function.
25860 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
25862 * toplev.h (inform_n, error_n): Declare.
25863 * diagnostic.c (inform_n, error_n): New function.
25865 2010-03-01 Jakub Jelinek <jakub@redhat.com>
25867 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
25868 has no rtl yet when processing local_decls, queue it and recheck
25869 if deferred stack allocation hasn't assigned it rtl.
25871 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
25873 * config/sh/sh.c (unspec_bbr_uid): New.
25874 (gen_block_redirect): Use it instead of INSN_UID.
25875 (gen_far_branch): Likewise.
25877 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
25879 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
25880 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
25882 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25884 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
25885 (Warning Options): -Wno-conversion-null is valid for
25886 Objective-C++ as well.
25887 * doc/tm.texi (Named Address Spaces): Likewise.
25888 * doc/plugins.texi (Plugins): Replace TABs with spaces.
25889 * doc/tree-ssa.texi (Tree SSA): Likewise.
25891 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
25894 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
25895 by default. Don't set the default arch for
25896 i[34567]86-*-darwin*|x86_64-*-darwin*.
25898 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
25901 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
25902 default. Set the default 32bit/64bit archs with $with_arch
25903 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
25905 2010-02-27 Richard Guenther <rguenther@suse.de>
25907 PR tree-optimization/43186
25908 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
25909 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
25910 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
25911 unroller iterations.
25913 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
25915 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
25916 required and i[34567]86-*-* targets don't support 64bit ISA.
25918 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
25921 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25922 the same alias set.
25924 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
25926 * config.gcc: Set the default arch at least to Prescott for
25927 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
25928 if SSE math is enabled.
25930 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
25932 * diagnostic.c (diagnostic_initialize): Update.
25933 (diagnostic_report_diagnostic): Test inhibit_notes_p for
25935 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
25936 (diagnostic_inhibit_notes): New.
25937 * toplev.c (process_options): inhibit notes with -fcompare-debug.
25939 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
25942 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
25943 * doc/standards.texi: Likewise.
25944 * doc/extend.texi: Likewise.
25945 * doc/trouble.texi: Likewise.
25946 * doc/cppopts.texi: Likewise.
25947 * doc/install.texi: Likewise.
25948 * c.opt (std=c90,std=gnu90): New options.
25949 * c-opts.c (c_common_handle_option): Handle them.
25951 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
25954 * c-decl.c (undeclared_variable): Use an informative note.
25956 2010-02-26 Richard Guenther <rguenther@suse.de>
25958 PR tree-optimization/43186
25959 * gimple.h (gimple_fold): Remove.
25960 * gimple.c (gimple_fold): Remove. Inline into single user ...
25961 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
25962 Try harder for conditions.
25964 2010-02-26 Jakub Jelinek <jakub@redhat.com>
25967 * function.c (used_types_insert): Don't skip through named pointer
25968 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
25969 and it is different from the main variant's type.
25971 2010-02-26 Nick Clifton <nickc@redhat.com>
25973 * config/rx/rx.md (sminsi3): Remove bogus alternative.
25975 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
25977 * config.gcc: Support --with-fpmath=sse for x86.
25979 * config/i386/ssemath.h: New.
25981 * doc/install.texi (--with-fpmath=sse): Documented.
25983 2010-02-26 Richard Guenther <rguenther@suse.de>
25985 PR tree-optimization/43188
25986 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
25987 vector types of over-aligned element type.
25989 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
25992 * config/i386/i386.c (expand_vec_perm_blend): Use correct
25993 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
25995 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
25997 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
25999 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26001 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26002 * var-tracking.c: Include diagnostic.h.
26003 (debug_dv): New function.
26004 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26007 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26008 (add_value_chain, add_value_chains, remove_value_chain,
26009 remove_value_chains): Handle DEBUG_EXPRs.
26010 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26013 * regcprop.c (struct queued_debug_insn_change): New type.
26014 (struct value_data_entry): Add debug_insn_changes field.
26015 (struct value_data): Add n_debug_insn_changes field.
26016 (debug_insn_changes_pool): New variable.
26017 (free_debug_insn_changes, apply_debug_insn_changes,
26018 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26019 (kill_value_one_regno): Call free_debug_insn_changes if needed.
26020 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26022 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26024 (copyprop_hardreg_forward_1): Don't call apply_change_group for
26025 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
26026 changes, call cprop_find_used_regs via note_stores.
26027 (copyprop_hardreg_forward): When copying vd from predecessor
26028 which has any queued DEBUG_INSN changes, make sure the pointers are
26029 cleared. At the end call df_analyze and then if there are any
26030 DEBUG_INSN changes queued at the end of some basic block for still
26031 live registers, apply them.
26032 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26034 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
26036 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26039 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
26041 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26042 targets. Set the default with_cpu/with_arch from arch/cpu.
26043 Allow x86-64 and native for with_cpu/with_arch.
26045 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
26047 * ebitmap.c: Change calls to verify_popcount with calls to
26048 sbitmap_verify_popcount.
26049 (ebitmap_clear_bit): Fixed map->cacheindex test and
26050 map>cache update when bit clearing results in an empty
26053 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26056 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26057 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26058 and support both V2DF and V2DI modes.
26059 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26060 support both V2DF and V2DI modes.
26061 (general): Delete trailing whitespace from a few patterns.
26063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26064 V2DF/V2DI interleave high/low builtins.
26066 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26069 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26070 interleave high/low functions.
26072 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26074 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26075 #pragma extern_prefix.
26077 2010-02-25 Jakub Jelinek <jakub@redhat.com>
26080 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26081 BLKmode, assert op0 is a MEM and just adjust its mode.
26084 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26085 if bitpos isn't multiple of mode's bitsize.
26087 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26089 * c.opt (-ftemplate-depth=): New.
26090 (-ftemplate-depth-): Deprecate.
26091 * optc-gen.awk: Handle -ftemplate-depth=.
26092 * opth-gen.awk: Likewise.
26093 * c-opts.c (c_common_handle_option): Likewise.
26094 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26096 2010-02-24 Jason Merrill <jason@redhat.com>
26098 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26100 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26102 * cfg.c (alloc_aux_for_block): Remove inline.
26103 (alloc_aux_for_edge): Likewise.
26105 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26107 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26109 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26111 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26112 * config/i386/sol2-gas.h: New file.
26113 * config.gcc (i[34567]86-*-solaris2*): Use it.
26115 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26118 * c-typeck.c (ep_convert_and_check): New.
26119 (build_conditional_expr): Use it.
26120 (build_binary_op): Likewise.
26122 2010-02-24 Jakub Jelinek <jakub@redhat.com>
26124 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26127 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26128 bounds even for -O+.
26129 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26130 expr needs to have DECL_NAME set.
26132 2010-02-24 Nick Clifton <nickc@redhat.com>
26134 * config/mep/mep.c: Include gimple.h.
26135 (mep_function_uses_sp): Delete unused function.
26136 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26137 parameters. Use unsigned integers to count args. Return a
26138 NULL_RTX instead of an error_mark_node. Toidy up formatting.
26140 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26143 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26144 greater or equal to nelt instead of 2 * nelt.
26145 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26148 2010-02-23 Jason Merrill <jason@redhat.com>
26151 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26152 in cfun->local_decls even if they have register types.
26155 * stor-layout.c (place_field): Don't warn about unnecessary
26156 DECL_PACKED if the type is packed.
26158 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26161 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26162 GOTOFF relocs, even when the base reg isn't pic pointer.
26164 2010-02-23 Michael Matz <matz@suse.de>
26167 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26168 (expand_gimple_basic_block): Generate and use debug temps if there
26169 are debug uses left after the last real use of TERed ssa names.
26170 Unlink debug immediate uses when they are expanded.
26172 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26175 * config/i386/i386.c (override_options): Reorganise to provide
26176 better error messages.
26178 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26180 PR middle-end/43083
26181 * graphite-scop-detection.c (create_single_exit_edge): Move
26182 the call to find_single_exit_edge to....
26183 (create_sese_edges): ...here. Don't handle multiple edges
26184 exiting the function.
26185 (build_graphite_scops): Don't handle multiple edges
26186 exiting the function.
26188 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26190 PR middle-end/43097
26191 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26192 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26194 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26196 PR middle-end/43026
26197 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26199 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
26202 * c-typeck.c (convert_arguments): Print declaration location.
26203 * c-common.c (validate_nargs): Rename as
26204 builtin_function_validate_nargs.
26205 (check_builtin_function_arguments): Update.
26207 2010-02-22 Richard Guenther <rguenther@suse.de>
26210 * tree-inline.c (declare_return_variable): Use the type of
26211 the call stmt lhs if available.
26213 2010-02-22 Duncan Sands <baldrick@free.fr>
26215 * passes.c (register_pass): Always consider all pass lists when
26216 ref_pass_instance_number is zero.
26218 2010-02-22 Richard Guenther <rguenther@suse.de>
26220 PR tree-optimization/42749
26221 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26222 parameter. Do arithmetic in the original type.
26223 (update_accumulator_with_ops): Likewise.
26224 (adjust_accumulator_values): Adjust.
26226 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26228 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26229 (QI to BLKmode splitter): New splitter.
26231 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
26233 * config/i386/i386.c (initial_ix86_tune_features): Turn on
26234 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26236 2010-02-22 Richard Guenther <rguenther@suse.de>
26238 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26240 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
26242 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26243 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26244 ($(T)crti.o, $(T)crtn.o): Remove rules.
26246 2010-02-21 Tobias Burnus <burnus@net-b.de>
26249 * doc/invoke.texi (-fassociative-math): Document that this
26250 option is automatically enabled for Fortran.
26252 2010-02-20 David S. Miller <davem@davemloft.net>
26254 * configure.ac: Test if linker and assembler properly support
26255 GOTDATA_OP relocations.
26256 * configure: Rebuild.
26257 * config.in: Likewise.
26258 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26259 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26260 (movsi_high_pic): Likewise.
26261 (movdi_lo_sum_pic): Likewise.
26262 (movdi_high_pic): Likewise.
26263 (movsi_pic_gotdata_op): New pattern.
26264 (movdi_pic_gotdata_op): Likewise.
26265 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26266 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26268 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
26271 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26272 attribute to ssemul.
26273 (xop_mulv2div2di3_high): Ditto.
26275 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26278 * c.opt (Wconversion-null): New option.
26279 * doc/invoke.texi (Wconversion-null): Document.
26281 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26283 * common.opt (Wlarger-than-): Add Undocumented.
26285 2010-02-19 Mike Stump <mikestump@comcast.net>
26287 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26289 2010-02-19 Jason Merrill <jason@redhat.com>
26292 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26293 * configure: Likewise.
26295 2010-02-20 Alan Modra <amodra@gmail.com>
26297 PR middle-end/42344
26298 * cgraph.h (cgraph_make_decl_local): Declare.
26299 * cgraph.c (cgraph_make_decl_local): New function.
26300 (cgraph_make_node_local): Use it.
26301 * cgraphunit.c (cgraph_function_versioning): Likewise.
26302 * ipa.c (function_and_variable_visibility): Likewise.
26304 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26307 * except.c (sjlj_emit_function_enter): Don't call
26308 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26310 * rtl.h (add_reg_br_prob_note): Remove prototype.
26312 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
26315 * c-common.c (conversion_warning): Remove widening conversions
26316 before checking the conversion of integers to reals.
26318 2010-02-19 Mike Stump <mikestump@comcast.net>
26320 PR middle-end/43125
26321 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26324 * cgraphunit.c (process_function_and_variable_attributes): Check
26325 DECL_PRESERVE_P instead of looking up attribute "used".
26326 * ipa-pure-const.c (check_decl): Likewise.
26327 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26328 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26329 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26330 instead of attribute "used".
26331 * config/sol2-c.c (solaris_pragma_init): Likewise.
26332 (solaris_pragma_fini): Likewise.
26334 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26336 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26337 Use XCNEW instead of xcalloc.
26338 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26339 XNEW instead of xmalloc.
26340 (get_fields): Use XNEWVEC instead of xmalloc.
26343 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26344 populate vars array.
26345 (create_new_general_access): For debug stmts just reset value.
26346 (get_stmt_accesses): For accesses within debug stmts just record them
26347 using add_access_to_acc_sites instead of preventing the peeling or
26348 counting them as accesses.
26350 PR middle-end/42233
26351 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26353 2010-02-19 Richard Guenther <rguenther@suse.de>
26355 PR tree-optimization/42916
26356 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26359 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
26361 * configure.ac: Replace all uses of changequote in macro arguments
26362 with proper quoting.
26364 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26366 PR middle-end/42233
26367 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26369 2010-02-19 Richard Guenther <rguenther@suse.de>
26371 PR tree-optimization/42944
26372 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26373 test for aliasing with errno.
26375 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26377 PR middle-end/42233
26378 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26379 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26380 * dojump.c: Include output.h.
26381 (inv): New inline function.
26382 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26383 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26384 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26385 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26386 argument, pass it down to other calls.
26387 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
26388 add REG_BR_PROB note to the conditional jump.
26389 * cfgexpand.c (add_reg_br_prob_note): Removed.
26390 (expand_gimple_cond): Don't call it, add the probability
26391 as last argument to jumpif_1/jumpifnot_1.
26392 * Makefile.in (dojump.o): Depend on output.h.
26393 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26395 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26396 * stmt.c (do_jump_if_equal): Likewise.
26397 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26398 * loop-unswitch.c (compare_and_jump_seq): Likewise.
26399 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26401 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26402 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26403 jumpifnot_1 callers.
26404 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26406 (store_expr): Adjust jumpifnot caller.
26407 (store_constructor): Adjust jumpif caller.
26409 PR middle-end/42233
26410 * gimplify.c (gimple_boolify): For __builtin_expect call
26411 gimple_boolify also on its first argument.
26413 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
26415 * configure.ac (gnu-unique-object): Wrap regexps using [] in
26417 (__stack_chk_fail): Ditto. Remove quadrigraphs.
26418 * configure: Regenerated.
26420 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26422 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26423 lang_hooks.types_compatible_p instead of comptypes.
26425 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
26427 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26428 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26429 if __prefer_thumb__ is defined.
26431 2010-02-18 Martin Jambor <mjambor@suse.cz>
26433 PR tree-optimization/43066
26434 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26435 array with zero-sized element type.
26437 2010-02-18 Jakub Jelinek <jakub@redhat.com>
26439 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26440 rtx, allocate struct var_loc_node here and return it to the
26441 caller, and only if it is actually needed.
26442 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26443 move it earlier and return immediately if it returns NULL.
26445 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
26447 * config/sparc/gas.h: New file. Restore
26448 TARGET_ASM_NAMED_SECTION to its ELF default.
26449 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26450 check !HAVE_GNU_AS.
26451 * config/sparc/sparc.c (sparc_elf_asm_named_section):
26452 Likewise. Add ATTRIBUTE_UNUSED to prototype.
26453 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26454 after sparc/sysv4.h.
26456 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
26458 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26460 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
26462 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26463 patterns from predicated pattern.
26465 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
26468 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
26469 for insn mnemonic suffix.
26471 2010-02-17 Richard Guenther <rguenther@suse.de>
26473 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
26476 2010-02-17 Jakub Jelinek <jakub@redhat.com>
26479 * caller-save.c (save_call_clobbered_regs): If BB ends with
26480 a DEBUG_INSN, move any notes in between last real insn and the last
26481 DEBUG_INSN after the last DEBUG_INSN.
26483 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
26485 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
26486 Fix return type. Fix argument type. Explain meaning of return value.
26488 2010-02-16 Richard Guenther <rguenther@suse.de>
26490 PR tree-optimization/41043
26491 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
26492 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
26494 (vrp_visit_phi_node): ... but only for loop PHI nodes.
26496 2010-02-16 Ira Rosen <irar@il.ibm.com>
26498 PR tree-optimization/43074
26499 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
26500 * tree-vect-loop.c (vect_analyze_loop_operations): Add
26501 vectorizable cycles in hybrid SLP check.
26502 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
26504 2010-02-16 Richard Guenther <rguenther@suse.de>
26506 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
26507 (true_dependence): If memrefs_conflict_p computes must-alias
26508 trust it. Move TBAA check after offset-based disambiguation.
26509 (canon_true_dependence): Likewise.
26511 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
26513 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
26514 * doc/invoke.texi: Document it.
26515 * var-tracking.c: Include toplev.h and params.h.
26516 (vt_find_locations): Return bool indicating success. Compute
26517 hash sizes unconditionally. Check new parameter, report.
26518 (variable_tracking_main_1): Check vt_find_locations results and
26519 retry. Renamed from...
26520 (variable_tracking_main): ... this. New wrapper to preserve
26521 flag_var_tracking_assignments.
26522 * Makefile.in (var-tracking.o): Adjust dependencies.
26524 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
26525 Jakub Jelinek <jakub@redhat.com>
26528 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
26529 if weak_import attribute is present.
26530 * config/darwin.c (machopic_select_section): Likewise.
26532 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
26534 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
26535 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
26536 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
26537 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
26539 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
26542 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26543 Fix argument types.
26545 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
26546 Rewrite text to refer to the names.
26548 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
26550 * config/i386/i386-builtin-types.def
26551 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
26552 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
26553 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
26554 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
26555 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
26556 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
26557 IX86_BUILTIN_VPERMIL2PS256.
26558 (MULTI_ARG_4_DF2_DI_I): Defined.
26559 (MULTI_ARG_4_DF2_DI_I1): Defined.
26560 (MULTI_ARG_4_SF2_SI_I): Defined.
26561 (MULTI_ARG_4_SF2_SI_I1): Defined.
26562 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
26563 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
26564 __builtin_ia32_vpermil2ps256.
26565 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26566 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26567 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
26568 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26569 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26570 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
26571 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
26572 CODE_FOR_xop_vpermil2v8sf3.
26573 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
26574 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
26575 * config/i386/xopintrin.h (_mm_permute2_pd): New.
26576 (_mm256_permute2_pd): New.
26577 (_mm_permute2_ps): New.
26578 (_mm256_permute2_ps): New.
26580 2010-02-15 Nick Clifton <nickc@redhat.com>
26582 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
26583 boolean parameters. Use emit_jump_insn when emitting a pop
26584 instruction containing a return insn.
26585 (push): Use 'true' rather than '1' as second parameter to F.
26586 (h8300_expand_prologue): Likewise.
26587 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
26588 (h8300_expand_epilogue): Likewise.
26590 2010-02-15 Richard Guenther <rguenther@suse.de>
26592 PR middle-end/43068
26593 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
26596 2010-02-15 Nick Clifton <nickc@redhat.com>
26598 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
26601 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
26603 * intl.c (fake_ngettext): New function.
26604 * intl.h (fake_ngettext): Declare.
26605 (ngettext): Define macro.
26606 * collect2.c (notice_translated): New function.
26607 (main): Use notice_translated and ngettext.
26608 * collect2.h (notice_translated): Declare.
26610 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
26612 * reorg.c (delete_computation): Comment fixes.
26613 * caller-save.c (setup_save_areas): Idem.
26614 * sel-sched-dump.c (dump_lv_set): Idem.
26617 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26619 * config/s390/s390.c (s390_sched_init): New function.
26620 (TARGET_SCHED_INIT): Target hook defined.
26622 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
26623 Jack Howarth <howarth@bromo.med.uc.edu>
26624 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
26627 Partial revert of unintended change in fix for PR41605.
26628 * config/darwin.h: Fix typo.
26629 * config/darwin9.h: Same.
26631 2010-02-11 Jakub Jelinek <jakub@redhat.com>
26633 * c-pch.c (pch_init): Clear v.
26635 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26637 PR middle-end/42930
26638 * graphite-scop-detection.c (graphite_can_represent_scev): Call
26639 graphite_can_represent_init for MULT_EXPR.
26641 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26643 PR middle-end/42914
26644 PR middle-end/42530
26645 * graphite-sese-to-poly.c (remove_phi): New.
26646 (translate_scalar_reduction_to_array): Call remove_phi.
26648 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26650 PR middle-end/42771
26651 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
26652 * graphite-clast-to-gimple.h (gloog): Update declaration.
26653 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
26654 * graphite-poly.h (struct poly_bb): Add missing comments.
26655 (struct scop): Add poly_scop_p field.
26656 (POLY_SCOP_P): New.
26657 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
26658 * graphite.c (graphite_transform_loops): Build the polyhedral
26659 representation for each scop before code generation.
26660 * sese.c (rename_variables_in_operand): Removed.
26661 (rename_variables_in_expr): Return the renamed expression.
26662 (rename_sese_parameters): New.
26663 * sese.h (rename_sese_parameters): Declared.
26665 2010-02-11 Richard Guenther <rguenther@suse.de>
26667 PR tree-optimization/42998
26668 * tree-ssa-pre.c (create_expression_by_pieces): Treat
26669 POINTER_PLUS_EXPR properly.
26671 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
26672 Changpeng Fang <changpeng.fang@amd.com>
26674 PR middle-end/40886
26675 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
26676 the cost of an IV candidate when the IV is used in a test against zero.
26678 * gcc.dg/tree-ssa/ivopts-3.c: New.
26680 2010-02-11 Richard Guenther <rguenther@suse.de>
26683 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
26684 pointer-vs-decl case by swapping refs. Handle some cases
26685 of pointer-vs-decl disambiguations more conservatively.
26686 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
26687 to false after expanding.
26689 2010-02-11 Richard Guenther <rguenther@suse.de>
26692 * gcc.c (process_command): Handle LTO file@offset case more
26695 2010-02-11 Jakub Jelinek <jakub@redhat.com>
26697 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
26698 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
26700 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
26702 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
26703 if MEM's mode size isn't DWARF2_ADDR_SIZE.
26704 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
26705 Optimize eq/ne comparisons when both arguments are known to be
26707 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
26708 Don't mask operands unnecessarily if they are known to be already
26711 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
26713 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
26716 2010-02-10 Richard Guenther <rguenther@suse.de>
26718 PR tree-optimization/43017
26719 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
26720 for wrapping signed arithmetic.
26722 2010-02-10 Jakub Jelinek <jakub@redhat.com>
26725 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
26726 if no debug info should be emitted for it.
26728 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
26730 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
26731 note when flag_exceptions is set.
26733 2010-02-10 Duncan Sands <baldrick@free.fr>
26735 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
26737 2010-02-10 Richard Guenther <rguenther@suse.de>
26740 * tree.c (get_unwidened): Handle constants.
26741 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
26743 2010-02-10 Martin Jambor <mjambor@suse.cz>
26746 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
26747 check for variable argument counts independently.
26749 2010-02-10 Christian Bruel <christian.bruel@st.com>
26752 * config/sh/sh.c (find_barrier): Increase length for non delayed
26753 conditional branches.
26755 2010-02-10 Christian Bruel <christian.bruel@st.com>
26757 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
26759 2010-02-10 Jakub Jelinek <jakub@redhat.com>
26761 * builtins.c (set_builtin_user_assembler_name): Also handle
26762 ffs if int is smaller than word.
26764 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
26766 PR middle-end/42973
26767 * ira-conflicts.c (get_dup): Remove.
26768 (process_reg_shuffles): Add new parameter. Use it as an
26769 additional guard for copy generation.
26770 (add_insn_allocno_copies): Rewrite.
26772 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
26774 * common.opt (fsched2-use-traces): Preserved for backward
26776 * doc/invoke.texi: Remove the documentation about option
26777 -fsched2-use-traces.
26778 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
26779 flag_sched2_use_traces.
26780 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
26781 the backward compatibility flag section.
26783 2010-02-09 Richard Guenther <rguenther@suse.de>
26785 PR tree-optimization/43008
26786 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
26787 make HEAP variables initialized from global memory if they
26788 are not known builtin functions.
26789 (find_func_aliases): Adjust.
26791 2010-02-09 Richard Guenther <rguenther@suse.de>
26793 PR tree-optimization/43000
26794 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
26795 arithmetic manually.
26797 2010-02-08 Jakub Jelinek <jakub@redhat.com>
26799 PR tree-optimization/42931
26800 * tree-loop-linear.c (try_interchange_loops): Don't call
26801 double_int_mul if estimated_loop_iterations failed.
26803 2010-02-08 Martin Jambor <mjambor@suse.cz>
26805 PR middle-end/42898
26806 * tree-sra.c (build_accesses_from_assign): Do not mark in
26807 should_scalarize_away_bitmap if stmt has volatile ops.
26808 (sra_modify_assign): Do not process assigns piecemeal if if stmt
26811 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
26813 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
26815 2010-02-07 Adam Nemet <adambnmet@gmail.com>
26817 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
26818 before the pattern.
26820 2010-02-07 Andrew Pinski <pinskia@gmail.com>
26822 PR middle-end/42946
26823 * df-core.c (df_finish_pass): Change type of saved_flags to int.
26825 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
26827 PR middle-end/42988
26828 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
26829 to unknown_dependence.
26830 (graphite_legal_transform_dr): Handle the unknown_dependence.
26831 (graphite_carried_dependence_level_k): Same.
26833 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
26835 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
26837 2010-02-07 Richard Guenther <rguenther@suse.de>
26839 PR middle-end/42991
26840 * expr.c (get_inner_reference): Always initialize *pbitsize.
26842 2010-02-07 Richard Guenther <rguenther@suse.de>
26844 PR middle-end/42956
26845 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
26846 new ARRAY_REFs on variable size element or minimal index arrays.
26848 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
26849 gimple_fold_indirect_ref.
26851 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
26854 * arm.c (arm_override_options): Just return if the user has specified
26855 an invalid fpu name.
26857 2010-02-03 Jason Merrill <jason@redhat.com>
26860 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
26861 i386_pe_maybe_record_exported_symbol.
26863 2010-02-05 Steve Ellcey <sje@cup.hp.com>
26866 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
26867 (pa_delegitimize_address): New function.
26869 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
26871 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
26872 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
26874 2010-02-05 Richard Guenther <rguenther@suse.de>
26877 * lto-streamer-in.c (get_resolution): Deal with references
26878 to undefined functions.
26880 2010-02-05 Richard Guenther <rguenther@suse.de>
26882 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
26883 (fold_const_aggregate_ref): Likewise.
26884 (ccp_fold_stmt): Substitute loads.
26885 (maybe_fold_reference): Verify types before substituting.
26887 (fold_gimple_assign): Unshare properly.
26888 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
26890 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
26892 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
26893 for rs6000_gen_cell_microcode.
26895 2010-02-04 Richard Guenther <rguenther@suse.de>
26897 PR rtl-optimization/42952
26898 * dse.c (const_or_frame_p): Remove MEM handling.
26900 2010-02-04 Nick Clifton <nickc@redhat.com>
26902 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
26903 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26904 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
26905 (mn10300_asm_output_mi_thunk): New function.
26906 (mn10300_can_output_mu_thunk): New function.
26907 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
26908 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
26909 (FUNCTION_ARG): Delete incorrect comment.
26911 2010-02-03 Jason Merrill <jason@redhat.com>
26914 * fold-const.c (operand_equal_p): Handle erroneous types.
26916 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26918 * config/h8300/h8300.md (can_delay): Fix attibute condition.
26920 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
26922 PR rtl-optimization/42941
26923 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
26926 2010-02-03 Jason Merrill <jason@redhat.com>
26929 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
26931 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
26934 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
26935 (cselib_reset_table): Renamed from...
26936 (cselib_reset_table_with_next_value): ... this.
26937 (cselib_get_next_uid): Renamed from...
26938 (cselib_get_next_unknown_value): ... this.
26939 * cselib.c (next_uid): Renamed from...
26940 (next_unknown_value): ... this.
26941 (cselib_clear_table): Adjust.
26942 (cselib_reset_table): Adjust. Renamed from...
26943 (cselib_reset_table_with_next_value): ... this.
26944 (cselib_get_next_uid): Adjust. Renamed from...
26945 (cselib_get_next_unknown_value): ... this.
26946 (get_value_hash): Use hash.
26947 (cselib_hash_rtx): Likewise.
26948 (new_cselib_val): Adjust. Set and dump uid.
26949 (cselib_lookup_mem): Pass next_uid as hash.
26950 (cselib_subst_to_values): Likewise.
26951 (cselib_log_lookup): Dump uid.
26952 (cselib_lookup): Pass next_uid as hash. Adjust.
26953 (cselib_process_insn): Adjust.
26954 (cselib_init): Initialize next_uid.
26955 (cselib_finish): Adjust.
26956 (dump_cselib_table): Likewise.
26957 * dse.c (canon_address): Dump value uid.
26958 * print-rtl.c (print_rtx): Print value uid.
26959 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
26961 (dv_uid): New function, sort of renamed from...
26962 (dv_htab_hash): ... this, reimplemented in terms of it and...
26963 (dv_uid2hash): ... this. New.
26964 (variable_htab_eq): Drop excess assertions.
26965 (tie_break_pointers): Removed.
26966 (canon_value_cmp): Compare uids.
26967 (variable_post_merge_New_vals): Print uids.
26968 (vt_add_function_parameters): Adjust.
26969 (vt_initialize): Reset table. Adjust.
26971 2010-02-03 Richard Guenther <rguenther@suse.de>
26973 PR tree-optimization/42944
26974 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
26975 (call_may_clobber_ref_p_1): Likewise. Properly handle
26976 malloc and calloc clobbering errno.
26978 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
26980 * doc/invoke.texi: Fix name of sched1 dump.
26982 * opts.c (decode_options): Set flag_tree_switch_conversion
26983 only conditionally on optimize >= 2.
26985 * gcse.c: Assorted comment fixes in pass description.
26987 2010-02-03 Anthony Green <green@moxielogic.com>
26989 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
26990 nop padding in order to maintain alignment of storage location of
26991 target function address.
26992 (moxie_trampoline_init): Store target function address at newly
26994 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
26996 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
26998 2010-02-03 Richard Guenther <rguenther@suse.de>
27000 PR middle-end/42927
27001 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27003 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27005 * config.gcc: Reenable check for obsolete targets.
27006 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27007 mips-sgi-irix6.[0-4]*.
27009 2010-02-02 Nick Clifton <nickc@redhat.com>
27011 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27012 constant size of 4 as being the same as 0.
27013 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27014 can take values in the range 0..4.
27016 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
27019 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27020 as _darwin10_Unwind_FindEnclosingFunction().
27021 * libgcc-libsystem.ver: New.
27023 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
27026 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27027 implicitly set registers.
27029 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
27031 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27032 (arm_override_options): Allow automatic selection of the thread
27033 pointer register if thumb2.
27034 (legitimize_pic_address): Improve code sequences for Thumb2.
27035 (arm_call_tls_get_addr): Likewise.
27036 (legitimize_tls_address): Likewise.
27037 * arm.md (pic_load_addr_arm): Delete. Replace with ...
27038 (pic_load_addr_32bit): ... this. New named pattern.
27039 * thumb2.md (pic_load_addr_thumb2): Delete.
27040 (pic_load_dot_plus_four): Delete.
27041 (tls_load_dot_plus_four): New named pattern.
27043 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27046 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27047 Document fix for TLS bug.
27049 2010-01-31 Richard Guenther <rguenther@suse.de>
27051 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27052 conservatively correct.
27054 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27058 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27060 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27062 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27064 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27066 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
27068 * config.gcc: Adjust order of makefile fragments for mingw targets.
27070 2010-01-31 Richard Guenther <rguenther@suse.de>
27072 PR middle-end/42898
27073 * gimplify.c (gimplify_init_constructor): For volatile LHS
27074 initialize a temporary.
27076 2010-01-31 Matthias Klose <doko@ubuntu.com>
27078 * configure.ac: Fix __stack_chk_fail check for cross builds configured
27080 * configure: Regenerate.
27082 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
27084 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27085 the same alias set and their sizes different constantness.
27086 (aliasing_component_refs_p): Revert 2009-10-24 change.
27088 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27090 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27093 2010-01-29 Richard Guenther <rguenther@suse.de>
27095 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27096 Assert we successfully updated the call.
27098 2010-01-29 Jakub Jelinek <jakub@redhat.com>
27100 PR rtl-optimization/42889
27101 * df.h (df_set_bb_dirty_nonlr): New prototype.
27102 * df-core.c (df_set_bb_dirty_nonlr): New function.
27103 * df-scan.c (df_insn_rescan): Call it instead of
27104 df_set_bb_dirty for DEBUG_INSNs.
27106 2010-01-29 Richard Guenther <rguenther@suse.de>
27108 PR middle-end/37448
27109 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27110 quadratic behavior in most cases.
27112 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
27115 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27116 in the call to gen_x86_movsicc_0_m1.
27118 2010-01-28 Richard Guenther <rguenther@suse.de>
27120 PR tree-optimization/42871
27121 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27123 2010-01-28 Richard Guenther <rguenther@suse.de>
27125 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27126 into call arguments.
27128 2010-01-28 Richard Guenther <rguenther@suse.de>
27130 PR middle-end/42883
27131 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27132 the forwarder if the destination is an EH landing pad.
27134 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
27136 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27137 block list passed to gimple_duplicate_sese_tail.
27138 (parallelize_loops): Avoid parallelization when the function
27139 has_nonlocal_label.
27140 Avoid parallelization when the preheader is IRREDUCIBLE.
27141 Try to optimize when estimated_loop_iterations_int is unresolved.
27142 Add the loop's location to the dump file.
27143 * tree-cfg.c (add_phi_args_after_redirect): Remove.
27144 (gimple_duplicate_sese_tail): Remove the check for the latch.
27145 Redirect nexits to the exit block.
27146 Remove handling of the incoming edges to the latch.
27147 Redirect the backedge from the copied latch to the exit bb.
27149 2010-01-28 Michael Matz <matz@suse.de>
27152 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27153 Wrap force_reg into a sequence, emit it before user.
27155 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
27157 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27159 (arm_legacy_rev): Likewise.
27160 (thumb_legacy_rev): Likewise.
27162 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27164 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27165 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
27166 on MEM's address failed, try avoid_constant_pool_reference and
27167 recurse if it returned something different.
27168 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27169 address, try avoid_constant_pool_reference and recurse if it
27170 returned something different.
27171 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27172 address and avoid_constant_pool_reference returned something
27173 different, don't set have_address.
27175 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
27178 * var-tracking.c (val_store): Add modified argument, obey it.
27180 (count_uses): Move down logging of main.
27181 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27182 don't need resolution.
27183 (emit_notes_in_bb): Likewise.
27185 2010-01-27 Richard Guenther <rguenther@suse.de>
27187 PR middle-end/42878
27188 * tree-inline.c (remap_decl): Delay remapping of SSA name
27189 default definitions until we need them.
27191 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27193 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27194 (rs6000_delegitimize_address): New function.
27196 * config/s390/s390.c (s390_delegitimize_address): Call
27197 delegitimize_mem_from_attrs.
27199 PR middle-end/42874
27200 * tree-inline.c (cannot_copy_type_1): Removed.
27201 (copy_forbidden): Don't forbid copying of functions containing
27202 records/unions with variable length fields.
27204 2010-01-27 Christian Bruel <christian.bruel@st.com>
27208 * config/sh/sh.c (find_barrier): Increase length for non delayed
27209 conditional branches.
27211 2010-01-27 Matthias Klose <doko@ubuntu.com>
27213 * configure.ac (gnu-unique-object): Fix ldd version check.
27214 * configure: Regenerate.
27216 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27218 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27220 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27221 Test for HAVE_GNU_AS value.
27223 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27225 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27226 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27227 INT64_TYPE): Define.
27228 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27229 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27230 INT_LEAST64_TYPE): Define.
27231 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27232 UINT_LEAST64_TYPE): Define.
27233 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27234 INT_FAST64_TYPE): Define.
27235 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27236 UINT_FAST64_TYPE): Define.
27237 (INTMAX_TYPE, UINTMAX_TYPE): Define.
27238 (INTPTR_TYPE, UINTPTR_TYPE): Define.
27239 (SIG_ATOMIC_TYPE): Define.
27241 2010-01-26 Richard Guenther <rguenther@suse.de>
27243 * df-scan.c (df_scan_set_bb_info): Remove assert.
27244 (df_insn_rescan_debug_internal): Merge asserts.
27245 (df_install_ref): Likewise.
27246 (df_mark_reg): Use bitmap_set_range.
27247 (df_hard_reg_used_p): Remove assert.
27248 (df_hard_reg_used_count): Likewise.
27250 2010-01-26 Richard Guenther <rguenther@suse.de>
27252 PR rtl-optimization/42685
27253 * web.c (web_main): Ignore DEBUG_INSNs.
27255 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
27257 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27259 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27260 Fix types of fndecl and arglist parameters.
27262 2010-01-26 Richard Guenther <rguenther@suse.de>
27264 PR middle-end/42806
27265 * tree-eh.c (unsplit_eh): Skip debug insns.
27267 2010-01-26 Richard Guenther <rguenther@suse.de>
27269 PR tree-optimization/42250
27270 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27272 2010-01-26 Jakub Jelinek <jakub@redhat.com>
27275 * omp-low.c (expand_omp_sections): Only use single_pred if
27276 l2_bb is single_pred_p.
27278 2010-01-25 Christian Bruel <christian.bruel@st.com>
27281 * config/sh/sh.c (find_barrier): Increase length for non delayed
27282 conditional branches.
27283 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27285 2010-01-24 David S. Miller <davem@davemloft.net>
27287 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27288 define if not using GAS.
27289 * config/sparc/sparc.c (sparc_elf_asm_named_section):
27290 Likewise. Delete SECTION_MERGE code, which is only applicable
27293 2010-01-24 Mark Mitchell <mark@codesourcery.com>
27296 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27297 mangling of va_list in system headers.
27299 2010-01-23 Toon Moene <toon@moene.org>
27301 * tree-predcom.c (combine_chains): Return NULL, not false.
27303 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
27305 * tree-loop-distribution.c (distribute_loop): Fix declaration and
27306 initialization of variable res to agree with return type.
27308 2010-01-22 Steve Ellcey <sje@cup.hp.com>
27310 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27311 * tree-sra.c: Add include of expr.h.
27313 2010-01-22 Jakub Jelinek <jakub@redhat.com>
27315 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27316 insert the debug stmt on the single non-EH edge from the stmt.
27318 2010-01-22 Richard Henderson <rth@redhat.com>
27321 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27322 the RHS until after generate_subtree_copies has insertted its
27323 code before the current statement.
27325 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
27327 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27329 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27331 2010-01-21 Martin Jambor <mjambor@suse.cz>
27333 PR tree-optimization/42585
27334 * tree-sra.c (struct access): New field grp_total_scalarization.
27335 (dump_access): Dump the new field.
27336 (should_scalarize_away_bitmap): New variable.
27337 (cannot_scalarize_away_bitmap): Likewise.
27338 (sra_initialize): Allocate new bitmaps.
27339 (sra_deinitialize): Free new bitmaps.
27340 (create_access_1): New function.
27341 (create_access): Parts moved to create_access_1.
27342 (type_consists_of_records_p): New function.
27343 (completely_scalarize_record): Likewise.
27344 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27345 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27346 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27348 (analyze_all_variable_accesses): Completely scalarize small eligible
27351 2010-01-21 Martin Jambor <mjambor@suse.cz>
27353 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27355 2010-01-21 Andrew Haley <aph@redhat.com>
27357 * gcc.c (process_command): Move lang_specific_driver before
27358 setting cc_libexec_prefix.
27360 2010-01-21 Richard Guenther <rguenther@suse.de>
27362 PR middle-end/19988
27363 * fold-const.c (negate_expr_p): Pretend only negative
27364 real constants are easily negatable.
27366 2010-01-20 Janis Johnson <janis187@us.ibm.com>
27367 Jason Merrill <jason@redhat.com>
27369 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27370 (TYPE_TRANSPARENT_AGGR): this, for union and record.
27371 * calls.c (initialize argument_information): Handle it.
27372 * c-common.c (handle_transparent_union_attribute): Use new name.
27373 * c-decl.c (finish_struct): Ditto.
27374 * c-typeck.c (type_lists_compatible_p): Ditto.
27375 (convert_for_assignment): Use new name and also handle record.
27376 * function.c (aggregate_value_p): Handle it.
27377 (pass_by_reference): Ditto.
27378 (assign_parm_data_types): Ditto.
27379 * print-tree.c (print_node): Ditto.
27380 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27381 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27382 * tree.c (first_field): New fn.
27384 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
27387 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27388 even when linking statically, for now.
27390 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
27393 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27394 without a cselib val.
27395 (count_uses): Accept MO_VAL_SET with no val on stores.
27396 (add_stores): Likewise.
27398 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27400 * var-tracking.c (check_value_val): Add a compile time assertion.
27401 (dv_is_decl_p): Simplify.
27402 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27403 gcc_assert if ENABLE_CHECKING.
27405 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
27408 * var-tracking.c: Include tree-flow.h.
27409 (mem_dies_at_call): New.
27410 (dataflow_set_preserve_mem_locs): Use it.
27411 (dataflow_set_remove_mem_locs): Likewise.
27412 (dump_var): Renamed from dump_variable. Adjust all callers.
27413 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
27414 * Makefile.in (var-tracking.o): Adjust deps.
27416 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
27418 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27420 2010-01-20 Richard Guenther <rguenther@suse.de>
27422 PR tree-optimization/42717
27423 * tree-ssa-dce.c (get_live_post_dom): Remove.
27424 (forward_edge_to_pdom): Take an arbitrary edge to copy
27425 degenerate PHI args from.
27426 (remove_dead_stmt): Use the first post-dominator even if it
27427 does not contain live statements as redirection destination.
27429 2010-01-20 Richard Guenther <rguenther@suse.de>
27431 * tree-inline.c (estimate_num_insns): Handle EH builtins.
27433 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27435 * sel-sched.c (create_speculation_check): Remove set but not used
27437 (try_transformation_cache): Remove set but not used variable ds.
27438 (calculate_privileged_insns): Remove set but not used variables
27439 cur_insn and min_spec_insn.
27440 (find_best_expr): Remove set but not used variable avail_n.
27441 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27443 * cgraphunit.c (assemble_thunk): Remove set but not used variable
27445 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27446 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27447 new_scop_exit_edge.
27449 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
27452 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27453 cpu types. Add support for *-sse3 cpu types.
27454 (x86_64-*-*): Ditto.
27456 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27458 PR middle-end/42803
27459 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27460 argument, call initializer_constant_valid_p_1 instead of
27461 initializer_constant_valid_p, pass CACHE to it, return NULL
27462 immediately if first call returns NULL.
27463 (initializer_constant_valid_p_1): New function.
27464 (initializer_constant_valid_p): Use it.
27466 2010-01-20 Thomas Quinot <quinot@adacore.com>
27468 * tree.def (PLACEHOLDER_EXPR): Fix comment.
27470 2010-01-20 Jakub Jelinek <jakub@redhat.com>
27472 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
27473 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
27474 (loc_list_from_tree): Don't handle unsigned division. Handle
27475 signed modulo using DW_OP_{over,over,div,mul,minus}.
27476 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
27477 modulo instead of signed.
27479 2010-01-20 DJ Delorie <dj@redhat.com>
27481 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
27483 (h8300_emit_stack_adjustment): Propogate it.
27485 (h8300_expand_prologue): Likewise.
27486 (h8300_expand_epilogue): Likewise.
27488 2010-01-19 Michael Matz <matz@suse.de>
27490 PR tree-optimization/41783
27491 * tree-data-ref.c (toplevel): Include flags.h.
27492 (dump_data_dependence_relation): Also dump the inputs if the
27493 result will be unknown.
27494 (split_constant_offset_1): Look through some conversions.
27495 * tree-predcom.c (determine_roots_comp): Restart a new chain if
27496 the offset from last element is too large.
27497 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
27498 (reassociate_to_the_same_stmt): Handle vector registers.
27499 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
27500 (e.g. conversions).
27501 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
27502 wide_prolog_niters argument, emit widening instructions.
27503 (vect_do_peeling_for_alignment): Adjust caller, use widened
27504 variant of the iteration cound.
27505 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
27507 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27510 * config/arm/neon-testgen.m (emit_automatics): New parameter
27511 features. Adjust for Fixed_return_reg feature.
27512 (test_intrinsic): Call emit_automatics with new feature.
27513 * config/arm/neon.ml: Update copyright years.
27514 (features): New Fixed_return_reg feature.
27515 (ops): Update feature for Vget_low.
27517 2010-01-19 Jakub Jelinek <jakub@redhat.com>
27519 PR tree-optimization/42719
27520 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
27524 * fwprop.c (all_uses_available_at): Return false if def_set dest
27525 is a REG that is used in def_insn.
27527 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
27529 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
27531 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
27532 Add argument names.
27534 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
27536 * target.h (struct gcc_target) <secondary_reload>: Change type
27537 of last argument to secondary_reload_info *.
27539 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
27542 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
27543 memory references with unaligned offsets. Remove CQImode handling.
27544 (unaligned_memory_operand): Return 1 for memory references with
27545 unaligned offsets. Remove CQImode handling.
27547 2010-01-18 Richard Guenther <rguenther@suse.de>
27549 PR middle-end/39954
27550 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
27553 2010-01-18 Richard Guenther <rguenther@suse.de>
27555 PR tree-optimization/42781
27556 * tree-ssa-structalias.c (find_what_var_points_to): Skip
27557 restrict processing only if the original variable was artificial.
27559 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
27561 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
27562 find number of popped argument bytes.
27564 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
27565 Fix the text that describes the return value for invalid insns.
27567 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
27569 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
27570 Clarify what 'cost of the -dependence' is. Fix quoting.
27572 * toplev.c (default_get_pch_validity): Rename argument to "sz".
27573 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
27575 2010-01-17 Jakub Jelinek <jakub@redhat.com>
27577 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27578 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
27580 2010-01-17 Richard Guenther <rguenther@suse.de>
27582 PR middle-end/42248
27583 * function.c (split_complex_args): Take a VEC to modify.
27584 (assign_parms_augmented_arg_list): Build a VEC instead of
27585 a chain of PARM_DECLs.
27586 (assign_parms_unsplit_complex): Take a VEC of arguments.
27587 Do not fixup unmodified parms.
27588 (assign_parms): Deal with the VEC.
27589 (gimplify_parameters): Likewise.
27591 2010-01-17 Richard Guenther <rguenther@suse.de>
27593 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
27594 node existence check.
27595 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
27596 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
27597 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
27598 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
27599 (gimple_execute_on_growing_pred): Likewise.
27601 2010-01-17 Richard Guenther <rguenther@suse.de>
27603 PR tree-optimization/42773
27604 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
27605 (compute_antic_aux): Likewise.
27606 (compute_partial_antic_aux): Likewise.
27608 2010-01-17 Jie Zhang <jie.zhang@analog.com>
27611 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
27614 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
27616 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
27619 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
27620 Fix markup for strict argument.
27622 (TARGET_SCHED_REORDER2): Fix argument types.
27624 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
27625 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
27627 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
27628 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
27630 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
27633 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
27634 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
27635 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
27636 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
27637 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
27639 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
27641 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
27643 (TARGET_ASM_RELOC_RW_MASK): Add return type.
27644 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
27646 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
27648 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
27651 (TARGET_ASM_NAMED_SECTION): Fix argument list.
27653 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
27654 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
27656 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
27658 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
27660 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
27661 referring to it. Fix language.
27663 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
27665 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
27667 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
27669 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
27671 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
27672 '@var{stream}. Remove stray 'and'.
27674 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
27676 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
27678 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
27680 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
27681 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
27683 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
27684 Fix description of return value.
27685 Rename argument "sz" to "len."
27687 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
27688 Clarify meaning of 'true' return value.
27690 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
27692 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
27693 rep_mode versus mode_rep.
27695 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
27697 (TARGET_BUILTIN_DECL): Fix name.
27699 (TARGET_COMMUTATIVE_P): Fix type of first argument.
27701 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
27703 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
27705 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
27707 (TARGET_RELAXED_ORDERING): Use @deftypevr.
27709 (TARGET_GET_DRAP_RTX): Note that this is a hook.
27712 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
27713 Rename argument tm_fn to md_fn.
27715 (TARGET_OPTION_PRINT): Fix argument list.
27717 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
27720 * config/i386/i386.c (ix86_fixup_binary_operands):
27721 Revert FMA4 fixup of operands.
27723 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27726 * Makefile.in (write_entries_to_file, install-plugin):
27727 Use \012 instead of \n with tr.
27729 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
27731 * configure.ac (HAVE_AS_REF): New C macro.
27732 * configure: Regenerate.
27733 * config.in: Likewise.
27734 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
27736 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
27739 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
27741 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
27743 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
27745 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
27747 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
27749 (TARGET_IN_SMALL_DATA_P): Fix argument type.
27751 (TARGET_BINDS_LOCAL_P): Fix argument type.
27753 (TARGET_ASM_FILE_END): Use prototype.
27755 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
27757 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
27759 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
27761 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
27763 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
27764 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
27766 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
27767 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
27769 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
27770 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
27771 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
27772 (TARGET_ADDR_SPACE_CONVERT): Likewise.
27774 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
27776 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
27778 (TARGET_INIT_BUILTINS): Use prototype.
27780 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
27781 Put 'const char *' in braces. Fix parameter types.
27782 (TARGET_INVALID_CONVERSION): Fix parameter types.
27783 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
27784 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
27786 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
27789 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
27791 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
27793 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
27795 * doc/tm.texi (TARGET_HELP): Fix return type.
27797 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
27798 in braces. Fix argument types.
27800 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
27802 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
27804 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
27806 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
27807 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
27809 (TARGET_MANGLE_TYPE): Fix argument types.
27811 (TARGET_IRA_COVER_CLASSES): Use prototype.
27813 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
27815 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
27817 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
27819 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
27821 (TARGET_CALLEE_COPIES): Fix argument types.
27823 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
27825 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
27827 (TARGET_FUNCTION_VALUE): Fix argument types.
27829 (TARGET_RETURN_IN_MSB): Fix argument type.
27831 (TARGET_RETURN_IN_MEMORY): Fix argument types.
27833 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
27835 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
27837 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
27838 agree with return type.
27840 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
27842 2010-01-15 Jing Yu <jingyu@google.com>
27844 PR rtl-optimization/42691
27845 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
27846 a pseudo to a constant and are merged, and adjust comments.
27848 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
27850 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
27852 2010-01-15 Richard Guenther <rguenther@suse.de>
27854 PR middle-end/42739
27855 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
27856 labels of computed or non-local gotos to the destination.
27857 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
27858 landing pad label is the first label.
27860 2010-01-15 Richard Guenther <rguenther@suse.de>
27862 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
27864 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27867 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
27868 to allow generation of the xssqrtdp instruction on power7.
27869 (sqrtdf2_fpr): Ditto.
27871 2010-01-14 Jakub Jelinek <jakub@redhat.com>
27873 PR middle-end/42674
27874 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
27875 functions with noreturn attribute.
27878 * varasm.c (declare_weak): Add weak attribute to decl if it
27879 doesn't have one already.
27880 (assemble_external): Only add decls to weak_decls if they also
27881 have weak attribute.
27883 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
27885 * var-tracking.c (var_reg_delete): Don't delete the association
27886 between REGs and values or one-part variables if the register
27889 2010-01-14 Jakub Jelinek <jakub@redhat.com>
27892 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
27893 because its first operand is a non-localized variable.
27895 2010-01-14 Martin Jambor <mjambor@suse.cz>
27897 PR tree-optimization/42706
27898 * tree-sra.c (encountered_recursive_call): New variable.
27899 (encountered_unchangable_recursive_call): Likewise.
27900 (sra_initialize): Initialize both new variables.
27901 (callsite_has_enough_arguments_p): New function.
27902 (scan_function): Call decl and flags check only for IPA-SRA, check
27903 whether there is a recursive call and whether it has enough arguments.
27904 (all_callers_have_enough_arguments_p): New function.
27905 (convert_callers): Look for recursive calls only when
27906 encountered_recursive_call is set.
27907 (ipa_early_sra): Bail out either if
27908 !all_callers_have_enough_arguments_p or
27909 encountered_unchangable_recursive_call.
27911 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27913 * sel-sched.c: Add 2010 to copyright years.
27914 * sel-sched-ir.c: Likewise.
27915 * sel-sched-ir.h: Likewise.
27917 2010-01-14 Martin Jambor <mjambor@suse.cz>
27919 PR tree-optimization/42714
27920 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
27921 constructors specially.
27923 2010-01-14 Andi Kleen <ak@linux.intel.com>
27925 * config/i386/drivers-i386.c (detect_caches_intel):
27926 Add l2sizekb parameter and fill in.
27927 (host_detect_local_cpu): Add l2sizekb, fill in.
27928 Add Atom small cache heuristic.
27930 2010-01-14 Andi Kleen <ak@linux.intel.com>
27932 * config/i386/drivers-i386.c (detect_caches_cpuid4):
27933 Add level3 parameter and fill in.
27934 (detect_caches_intel): Handle level3 cache.
27936 2010-01-14 Andi Kleen <ak@linux.intel.com>
27938 * config/i386/drivers-i386.c (host_detect_local_cpu):
27939 Fix core duo detection.
27941 2010-01-14 Andi Kleen <ak@linux.intel.com>
27943 * config/i386/drivers-i386.c (host_detect_local_cpu):
27944 Fix Atom detection.
27946 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27948 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
27949 (rs6000_variable_issue_1): this. Use...
27950 (rs6000_variable_issue): here. Reimplement. Print debug info.
27952 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27954 * sel-sched-ir.c (sel_restore_other_notes): Rename to
27955 sel_restore_notes. Update all callers. Call reemit_notes
27958 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
27960 PR rtl-optimization/42246
27961 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
27964 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
27966 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
27967 all successors is the same as number of successors in current region.
27969 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27971 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
27972 to rename is not separable. Otherwise check that its LHS is not NULL.
27974 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27976 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
27978 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
27980 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
27981 available registers when failed to discover LHS register class.
27982 Fix indentation. Update comment.
27984 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
27985 Alexander Monakov <amonakov@ispras.ru>
27987 PR rtl-optimization/42389
27988 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
27990 (advance_state_on_fence): Likewise.
27991 (sel_target_adjust_priority): Print debug output only when
27992 sched_verbose >= 4, not 2.
27993 (get_expr_cost): Do not issue all unique insns on the next cycle.
27994 (fill_insns): Initialize can_issue_more from the value saved
27996 * sel-sched-ir.c (flist_add): New parameter issue_more.
27997 Init FENCE_ISSUE_MORE with it.
27998 (merge_fences): Likewise.
27999 (init_fences): Update call to flist_add.
28000 (add_to_fences, add_clean_fence_to_fences)
28001 (add_dirty_fence_to_fences): Likewise.
28002 (move_fence_to_fences): Update call to merge_fences.
28003 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28005 * sel-sched-ir.h (struct _fence): New field issue_more.
28006 (FENCE_ISSUE_MORE): New accessor macro.
28008 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28010 PR rtl-optimization/42388
28011 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28012 that have no predecessors nor successors. Do not call move_bb_info
28013 for empty blocks outside of current region.
28015 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28017 PR rtl-optimization/42294
28018 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28019 * sel-sched.c (move_exprs_to_boundary): Transitively add all
28020 originators' originators.
28022 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28024 PR rtl-optimization/39453
28025 PR rtl-optimization/42246
28026 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28028 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28030 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28031 Alexander Monakov <amonakov@ispras.ru>
28033 PR middle-end/42245
28034 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
28035 (maybe_tidy_empty_bb): ... here. Make static. Add new
28036 argument. Update all callers.
28037 (tidy_control_flow): ... and here. Recompute topological order
28038 of basic blocks in region if necessary.
28039 (sel_redirect_edge_and_branch): Change return type. Return true
28040 if topological order might have been invalidated.
28041 (purge_empty_blocks): Export and move from...
28042 * sel-sched.c (purge_empty_blocks): ... here.
28043 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28044 (maybe_tidy_empty_bb): Delete prototype.
28045 (purge_empty_blocks): Declare.
28047 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28049 PR rtl-optimization/42249
28050 * sel-sched.c (try_replace_dest_reg): When chosen register
28051 and original register is the same, do not bail out early, but
28052 still check all original insns for validity of replacing destination
28053 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28056 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28059 Port from no-undefined-overflow branch:
28060 2009-03-09 Richard Guenther <rguenther@suse.de>
28062 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28064 2010-01-14 Richard Guenther <rguenther@suse.de>
28067 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28069 2010-01-14 Ira Rosen <irar@il.ibm.com>
28071 PR tree-optimization/42709
28072 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28073 as scalar type in creation of constant vector operand.
28075 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28078 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28079 (check-parallel-%): Match `testsuite' directory component only
28082 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
28084 PR translation/39521
28085 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28088 2010-01-13 Richard Guenther <rguenther@suse.de>
28090 PR tree-optimization/42730
28091 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28094 2010-01-13 Steve Ellcey <sje@cup.hp.com>
28097 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28098 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28101 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
28103 * config/bfin/libgcc-bfin.ver: Regenerate based on current
28104 libgcc-std.ver. Add entries for ___smulsi3_highpart and
28105 ___umulsi3_highpart.
28107 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28108 rather than schedule_insns if the pass is enabled.
28110 2010-01-13 Martin Jambor <mjambor@suse.cz>
28112 PR tree-optimization/42704
28113 * tree-sra.c (sra_modify_assign): Do not delete assignments to
28116 2010-01-13 Martin Jambor <mjambor@suse.cz>
28118 PR tree-optimization/42703
28119 * tree-sra.c (analyze_access_subtree): Check that we can build a
28120 reference to the original data within the aggregate.
28122 2010-01-13 Richard Guenther <rguenther@suse.de>
28124 PR tree-optimization/42705
28125 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28127 2010-01-13 Richard Guenther <rguenther@suse.de>
28129 PR middle-end/42716
28130 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28132 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28135 * var-tracking.c (values_to_unmark): New variable.
28136 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28137 values_to_unmark vector. Moved body to...
28138 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28139 instead queue it into values_to_unmark vector.
28140 (vt_find_locations): Free values_to_unmark vector.
28142 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
28144 * config/s390/s390.c (override_options): Set
28145 default of max-pending-list-length to 256
28147 2010-01-13 Richard Guenther <rguenther@suse.de>
28150 * tree-pass.h (PROP_gimple_lcx): New.
28151 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28152 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28153 before the final cleanup_eh.
28154 (dump_properties): Dump PROP_gimple_lcx.
28155 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28156 (tree_lower_complex_O0): Remove.
28157 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28158 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
28159 tree_lower_complex, schedule TODO_update_ssa.
28160 * lto-streamer-out.c (output_function): Stream the functions
28162 * lto-streamer-in.c (input_function): Likewise.
28163 (lto_read_body): Do not override them here.
28165 2010-01-12 Joseph Myers <joseph@codesourcery.com>
28168 * c-typeck.c (build_c_cast): Fold value cast to union type before
28169 wrapping it in a CONSTRUCTOR.
28171 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28173 PR rtl-optimization/42699
28174 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28177 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28179 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28180 SUBTARGET_WARN_UNUSED_SPEC): Move ...
28181 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28182 SUBTARGET_WARN_UNUSED_SPEC): ... here
28183 * config/mips/iris5.h (LIBGCC_SPEC): Define.
28185 2010-01-12 Julian Brown <julian@codesourcery.com>
28187 * config/arm/neon-schedgen.ml (Utils): Don't try to
28188 open missing module.
28189 (find_with_result): New.
28191 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28194 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28195 sharing when canonicalizing ({lt,ge}u (plus a b) b).
28197 PR tree-optimization/42645
28198 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
28199 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28200 decl_map, set processing_debug_stmt to -1 and return name without
28203 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
28205 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28206 binutils version, and reword target configuration description.
28208 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28210 * config/avr/avr.h (LINKER_NAME): Remove.
28212 2010-01-11 Janis Johnson <janis187@us.ibm.com>
28215 * config/rs6000/rs6000.c (rs6000_override_options): On targets
28216 that support VSX, warn for -mno-altivec if vsx is not disabled,
28219 2010-01-11 Joseph Myers <joseph@codesourcery.com>
28220 Shujing Zhao <pearly.zhao@oracle.com>
28222 PR translation/42469
28223 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28224 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28225 character between option name and help text.
28226 * c.opt (imultilib): Likewise.
28228 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
28230 * lto-streamer-out.c (output_unreferenced_globals): Output static
28233 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
28235 PR rtl-optimization/42621
28236 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28237 optimizing for size.
28238 (duplicate_computed_gotos): Remove now-redundant check.
28240 2010-01-10 Steve Ellcey <sje@cup.hp.com>
28243 * configure.ac: Save and restore LDFLAGS and LIBS
28244 * configure: Regenerate.
28246 2010-01-10 Richard Guenther <rguenther@suse.de>
28248 PR middle-end/42667
28249 * builtins.c (fold_builtin_strlen): Add type argument and
28250 convert the resulting length to it.
28251 (fold_builtin_1): Adjust.
28253 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28255 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28256 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28258 (num_insns_constant_wide): Adjust for that change.
28260 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28263 * web.c (union_defs): Add used argument, to combine uses of
28264 uninitialized regs.
28265 (entry_register): Adjust type and tests of used argument.
28266 (web_main): Widen used for new use. Pass it to union_defs.
28267 * df.h (union_defs): Adjust prototype.
28269 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28272 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28273 uses in new incoming argument. Free body.
28274 (reset_debug_uses_in_loop): New.
28275 (analyze_insn_to_expand_var): Call the latter if the former found
28276 anything. Fix whitespace. Reject invalid dest overlaps before
28277 going through all insns in the loop.
28279 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28282 * haifa-sched.c (dying_use_p): Debug insns don't count.
28284 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28286 PR middle-end/42363
28287 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28288 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28289 (verify_gimple_call): Reject LHS in noreturn calls.
28291 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28295 * tree-vect-loop-manip.c (adjust_info): New type.
28296 (adjust_vec): New pointer to vector.
28297 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28298 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28299 (slpeel_update_phis_for_duplicate_loop): Use them.
28300 (slpeel_update_phi_nodes_for_guard1): Likewise.
28301 (slpeel_update_phi_nodes_for_guard2): Likewise.
28302 (slpeel_tree_peel_loop_to_edge): Likewise.
28303 (vect_update_ivs_after_vectorizer): Likewise.
28305 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28307 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28308 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28310 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28312 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28313 bogus uninitialized warning.
28315 2010-01-09 Richard Guenther <rguenther@suse.de>
28317 PR middle-end/42512
28318 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28319 the evolution is compatible with the initial condition.
28321 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28323 * gcc.c (process_command): Update copyright notice dates.
28324 * gcov.c (print_version): Likewise.
28325 * gcov-dump.c (print_version): Likewise.
28326 * mips-tfile.c (main): Likewise.
28327 * mips-tdump.c (main): Likewise.
28329 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28332 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28334 (rotlhi3_8): Delete.
28336 (rotlsi3_8): Delete.
28337 (rotlsi3_16): Delete.
28338 (rotlsi3_24): Delete.
28339 (rotl<mode>3): New.
28340 (*rotw<mode>3): New.
28341 (*rotb<mode>3): New.
28342 * config/avr/avr.c (avr_rotate_bytes): New function.
28343 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28345 2010-01-08 Steve Ellcey <sje@cup.hp.com>
28348 * configure.ac: Modify -rdynamic check.
28349 * configure: Regenerate.
28351 2010-01-08 DJ Delorie <dj@redhat.com>
28353 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28354 register popping order.
28356 2010-01-08 Richard Guenther <rguenther@suse.de>
28359 * c.opt (fsigned-char): Also let LTO handle this option.
28360 (funsigned-char): Likewise.
28362 2010-01-07 Richard Guenther <rguenther@suse.de>
28364 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28365 (gimple_op): Likewise.
28366 (gimple_op_ptr): Likewise.
28367 (gimple_assign_set_lhs): Remove gcc_assert.
28368 (gimple_assign_set_rhs1): Likewise.
28369 (gimple_assign_set_rhs2): Likewise.
28370 (gimple_call_set_lhs): Likewise.
28371 (gimple_call_set_fn): Likewise.
28372 (gimple_call_set_fndecl): Likewise.
28373 (gimple_call_fndecl): Likewise.
28374 (gimple_call_return_type): Likewise.
28375 (gimple_call_set_chain): Likewise.
28376 (gimple_call_num_args): Likewise.
28377 (gimple_call_set_arg): Likewise.
28378 (gimple_cond_set_code): Likewise.
28379 (gimple_cond_set_lhs): Likewise.
28380 (gimple_cond_set_rhs): Likewise.
28381 (gimple_cond_set_true_label): Likewise.
28382 (gimple_cond_set_false_label): Likewise.
28383 (gimple_label_set_label): Likewise.
28384 (gimple_goto_set_dest): Likewise.
28385 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28386 (gimple_debug_bind_get_value): Likewise.
28387 (gimple_debug_bind_get_value_ptr): Likewise.
28388 (gimple_debug_bind_set_var): Likewise.
28389 (gimple_debug_bind_set_value): Likewise.
28390 (gimple_debug_bind_reset_value): Likewise.
28391 (gimple_debug_bind_has_value_p): Likewise.
28392 (gimple_return_retval_ptr): Remove gcc_assert.
28393 (gimple_return_retval): Likewise.
28394 (gimple_return_set_retval): Likewise.
28395 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28396 (safe_referenced_var_iterator): Remove.
28397 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28398 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28399 (fill_referenced_var_vec): Remove.
28400 (first_readonly_imm_use): Remove redundant gcc_assert.
28401 (phi_arg_index_from_use): Combine gcc_asserts.
28402 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28403 (first_imm_use_stmt): Remove redundant gcc_assert.
28404 * tree-cfg.c (verify_gimple_call): Verify function and chain
28405 operands. Verify arguments.
28406 (verify_types_in_gimple_stmt): Verify condition code and labels.
28408 2010-01-07 Richard Guenther <rguenther@suse.de>
28410 PR tree-optimization/42641
28411 * sese.c (rename_map_elt_info): Use the SSA name version, do
28414 2010-01-07 Jakub Jelinek <jakub@redhat.com>
28416 PR tree-optimization/42625
28417 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28418 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28420 2010-01-07 Duncan Sands <baldrick@free.fr>
28422 * Makefile.in (PLUGIN_HEADERS): Add version.h.
28424 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
28427 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28428 note itself is not function_invariant_p.
28430 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
28432 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28433 Do not add the DF_NOTE problem.
28434 * store-motion.c (execute_rtl_store_motion): Likewise.
28436 2010-01-07 Martin Jambor <mjambor@suse.cz>
28438 PR tree-optimization/42157
28439 * tree-sra.c (compare_access_positions): Stabilize sort if both
28440 accesses have integer types, return zero immediately if they are the
28443 2010-01-06 Richard Henderson <rth@redhat.com>
28445 PR middle-end/41883
28446 * haifa-sched.c (add_to_note_list): Merge into ...
28447 (concat_note_lists): ... here, and ...
28448 (unlink_other_notes, rm_other_notes): Merge into...
28449 (remove_notes): ... here. Create REG_SAVE_NOTEs for
28450 NOTE_INSN_EPILOGUE_BEG.
28452 2010-01-06 Richard Guenther <rguenther@suse.de>
28454 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28455 not inline regular functions into always-inline functions.
28457 2010-01-06 Nick Clifton <nickc@redhat.com>
28459 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28460 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28462 (OVERRIDE_OPTIONS): Delete.
28463 (OPTIMIZATION_OPTIONS): Define.
28464 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28465 * config/rx/rx.c (rx_handle_option): Issue an error message if
28466 -mcpu=rx200 and -fpu are used together.
28467 (rx_set_optimization_options): New function. Issue an error
28468 message if an optimization attribute attempts to reset the FPU/
28469 math optimization pairing.
28470 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
28471 * config/rx/rx.opt: Set the default to 32-bit doubles.
28472 * config/rx/t-rx: Add multilibs for -nofpu option.
28473 * doc/invoke.texi: Update documentation of RX options.
28475 2010-01-06 Richard Guenther <rguenther@suse.de>
28477 * tree-ssa-pre.c (name_to_id): New global.
28478 (alloc_expression_id): Simplify SSA name handling.
28479 (lookup_expression_id): Likewise.
28480 (init_pre): Zero name_to_id.
28481 (fini_pre): Free it.
28483 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
28485 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
28487 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
28490 * config/i386/sse.md (smaxv2di3): New.
28491 (umaxv2di3): Likewise.
28492 (sminv2di3): Likewise.
28493 (uminv2di3): Likewise.
28495 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
28498 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
28499 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
28500 (legitimize_tls_address): Likewise.
28501 (sparc_tls_referenced_p): Likewise.
28502 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
28503 and adjust calls to legitimize_pic_address.
28504 (legitimate_constant_p) Use sparc_tls_referenced_p.
28505 (legitimate_pic_operand_p): Likewise.
28506 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
28507 (sparc_tls_symbol_ref_1): Delete.
28508 (sparc_tls_referenced_p): Make static, recognize specific patterns.
28509 (legitimize_tls_address): Make static, handle CONST patterns.
28510 (legitimize_pic_address): Make static, remove unused parameter and
28511 adjust recursive calls.
28512 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
28513 and adjust call to legitimize_pic_address.
28514 (sparc_output_mi_thunk): Likewise.
28516 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
28517 H.J. Lu <hongjiu.lu@intel.com>
28520 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
28521 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
28522 operands to make them signed.
28525 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28528 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28529 GTU to GT for V4SI and V2DI.
28531 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28532 (umin<mode>3): Removed.
28534 (uminv4si3): Likewise.
28536 2010-01-05 Martin Jambor <mjambor@suse.cz>
28538 PR tree-optimization/42462
28539 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
28540 current_function_decl to helper functions and macros.
28542 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28545 * flags.h: Don't include real.h.
28546 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
28547 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
28548 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
28549 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
28550 * dominance.c: Update copyright.
28551 * gimple.c (walk_gimple_op): Remove inline.
28552 * tree-ssa-reassoc.c: Include real.h.
28553 * Makefile.in (FLAGS_H): Remove $(REAL_H).
28554 (tree-ssa-reassoc.o): Depend on $(REAL_H).
28556 2010-01-05 Nick Clifton <nickc@redhat.com>
28558 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
28559 register to push into the stack frame when the accumulator has to
28560 be saved during interrupts.
28562 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
28564 * doc/invoke.texi: Remove the documentation about option
28565 -Wunreachable-code.
28566 * common.opt (Wunreachable-code): Preserved for backward
28568 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
28569 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
28570 the backward compatibility flag section.
28572 2010-01-05 Richard Guenther <rguenther@suse.de>
28574 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
28576 2010-01-05 Jakub Jelinek <jakub@redhat.com>
28579 * cfgexpand.c (expand_one_var): Diagnose too large variables.
28581 PR tree-optimization/42508
28582 * tree-sra.c (convert_callers): Check for recursive call
28583 by comparing cgraph nodes instead of decls.
28584 (modify_function): Call ipa_modify_formal_parameters also
28585 on all same_body aliases.
28587 * cgraphunit.c (cgraph_materialize_all_clones): Compare
28588 cgraph nodes when checking for same_body aliases.
28590 2010-01-05 Richard Guenther <rguenther@suse.de>
28592 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
28593 allocation and lookup.
28594 (get_or_alloc_expr_for_constant): Likewise.
28595 (phi_translate): Sink allocation.
28597 2010-01-04 Richard Guenther <rguenther@suse.de>
28599 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
28600 a new entry only if needed.
28601 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
28602 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
28604 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
28606 (phi_translate): Handle CONSTANTs early.
28608 2010-01-04 Martin Jambor <mjambor@suse.cz>
28610 PR tree-optimization/42398
28611 * tree-sra.c (struct access): Removed flag grp_different_types.
28612 (dump_access): Do not dump the removed flag.
28613 (sort_and_splice_var_accesses): Do not set the removed flag.
28614 (sra_modify_expr): Check for type compatibility directly.
28616 2010-01-04 Martin Jambor <mjambor@suse.cz>
28618 PR tree-optimization/42366
28619 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
28620 edges with variable number of parameters.
28621 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
28622 flag instead of asserting it.
28623 (ipa_read_node_info): Read uses_analysis_done flag.
28625 2010-01-04 Richard Guenther <rguenther@suse.de>
28627 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
28628 iterative_hash_* as intended.
28629 (vn_reference_compute_hash): Likewise. Simplify hashing
28631 (vn_reference_lookup_2): Likewise.
28632 (vn_nary_op_compute_hash): Likewise.
28633 (vn_phi_compute_hash): Likewise.
28634 (expressions_equal_p): Remove strange code.
28635 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
28636 (pre_expr_hash): Likewise. Simplify hashing SSA names.
28637 (bitmap_insert_into_set_1): Take value-id as parameter.
28638 (add_to_value): Pass it.
28639 (bitmap_insert_into_set): Likewise.
28640 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
28642 2010-01-04 Jakub Jelinek <jakub@redhat.com>
28645 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
28646 (do_self_spec): For switches with SWITCH_IGNORE set set also
28647 SWITCH_IGNORE_PERMANENTLY.
28648 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
28651 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
28653 * lto-streamer-out.c (output_unreferenced_globals): Output the full
28654 tree of an unreferenced global var.
28656 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28659 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28660 GTU to GT for V4SI and V2DI.
28662 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28663 (umin<mode>3): Removed.
28665 (uminv4si3): Likewise.
28667 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
28670 * collect2.c (main): Turn on trace in collect2 if -v is passed
28673 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
28675 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
28676 description of expression operand.
28678 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
28680 * configure.ac: Add install-html to target_list for Make-hooks.
28681 * configure: Regenerate.
28682 * fortran/Make-lang.in (F95_HTMLFILES): New.
28683 (fortran.html): Use it.
28684 (fortran.install-html): New.
28685 * Makefile.in (install-html): Add lang.install-html.
28686 * java/Make-lang.in (JAVA_HTMLFILES): New.
28687 (java.html): Use it.
28688 (java.install-html): New.
28689 * objc/Make-lang.in (objc.install-html): New.
28690 * objcp/Make-lang.in (obj-c++.install-html): New.
28691 * cp/Make-lang.in (c++.install-html): New.
28692 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
28693 * lto/Make-lang.in (lto.install-html): New.
28695 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
28698 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
28700 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
28702 PR rtl-optimization/41862
28703 * store-motion.c (store_killed_in_insn, compute_store_table,
28704 remove_reachable_equiv_notes, replace_store_insn,
28705 build_store_vectors): Ignore all DEBUG_INSNs.
28707 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
28710 * common.opt: Add dumpdir.
28712 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
28714 (option_map): Add --dumpdir.
28716 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
28718 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
28720 * opts.c (decode_options): Try dump_dir_name first if
28721 dump_base_name isn't an absolute path.
28722 (common_handle_option): Handle OPT_dumpdir.
28724 * toplev.c (dump_dir_name): New.
28725 (print_switch_values): Also ignore -dumpdir.
28727 * toplev.h (dump_dir_name): New.
28729 2010-01-03 Richard Guenther <rguenther@suse.de>
28731 PR tree-optimization/42589
28732 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
28733 double-word expansion of bswap32.
28735 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
28737 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
28738 with BLOCK_FOR_INSN.
28739 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
28740 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
28741 noce_process_if_block): Likewise.
28742 * gcse.c (compute_local_properties, insert_expr_in_table,
28743 insert_set_in_table, canon_list_insert, find_avail_set,
28744 pre_insert_copy_insn): Likewise.
28746 * basic-block.h (BLOCK_NUM): Move from here...
28747 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
28749 2010-01-03 Richard Guenther <rguenther@suse.de>
28751 PR tree-optimization/42438
28752 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
28753 contains_may_not_return_call flag.
28754 (BB_MAY_NOTRETURN): New.
28755 (valid_in_sets): Trapping nary operations are not valid
28756 in blocks that may not return.
28757 (insert_into_preds_of_block): Remove check for trapping expressions.
28758 (compute_avail): Compute also BB_MAY_NOTRETURN.
28760 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
28762 * doc/invoke.texi: Add 2010 to copyright years.
28764 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
28766 * config/sparc/sparc.c: Fix formatting nits.
28768 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
28769 Alexander Monakov <amonakov@ispras.ru>
28771 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
28773 2010-01-02 Richard Guenther <rguenther@suse.de>
28775 PR middle-end/42577
28776 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
28777 (simplify_switch_using_ranges): Mark to be removed edges
28780 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28782 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
28784 * collect2.c (scan_libraries): Add missing argument in call to
28787 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
28790 * config/alpha/predicates.md (aligned_memory_operand): Return false
28792 (unaligned_memory_operand): Return true for CQImode.
28793 * config/alpha/alpha.c (get_aligned_mem): Assert that location
28794 doesn not cross aligned SImode word boundary.
28796 2010-01-02 Anatoly Sokolov <aesok@post.ru>
28798 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
28800 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
28801 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
28803 2010-01-02 Richard Guenther <rguenther@suse.de>
28806 * toplev.c (compile_file): Emit LTO marker properly. Change
28807 it to __gnu_lto_v1.
28808 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
28810 2010-01-01 Richard Guenther <rguenther@suse.de>
28813 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
28815 2010-01-01 Richard Guenther <rguenther@suse.de>
28818 * c-decl.c (grokdeclarator): For zero-size arrays force
28819 structural equality checks as layout_type does.
28821 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
28823 * builtins.c: Update copyright to 2010.
28825 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
28828 * lto-streamer-out.c (produce_asm): Revert the last change.
28829 (copy_function): Likewise.
28831 * lto-streamer.c (lto_get_section_name): Skip any leading
28834 2010-01-01 Richard Guenther <rguenther@suse.de>
28836 PR middle-end/42559
28837 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
28841 Copyright (C) 2010 Free Software Foundation, Inc.
28843 Copying and distribution of this file, with or without modification,
28844 are permitted in any medium without royalty provided the copyright
28845 notice and this notice are preserved.