1 2010-11-21 Richard Henderson <rth@redhat.com>
3 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
6 2010-11-21 Richard Henderson <rth@redhat.com>
8 PR rtl-optimization/46571
9 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
10 (compute_hash_table_work): Use NONDEBUG_INSN_P.
12 2010-11-21 Paul Koning <ni1d@arrl.net>
14 * config/mips/pdp11.md (negsi2): Fix wrong code.
16 2010-11-21 Paul Koning <ni1d@arrl.net>
18 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
19 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
23 * config/mips/mips.c (machine_function): Rename load_label_length to
25 (mips_load_label_length): Rename to...
26 (mips_load_label_num_insns): ...this. Adjust to first renaming.
27 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
29 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
32 * config/alpha/predicates.md (direct_call_operand): Return false
33 for !TARGET_SMALL_TEXT targets.
35 2010-11-20 Joseph Myers <joseph@codesourcery.com>
37 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
38 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
39 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to
41 * doc/tm.texi: Regenerate.
42 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
43 HANDLE_PRAGMA_WEAK): Poison.
44 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
45 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
46 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
47 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
48 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
49 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
50 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
51 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
52 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
53 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
54 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
55 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
56 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
57 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
58 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
59 (HANDLE_PRAGMA_WEAK): Don't undefine.
60 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
61 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
62 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
63 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
64 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
65 (HANDLE_PRAGMA_WEAK): Don't undefine.
66 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
67 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
68 (HANDLE_PRAGMA_PACK): Don't undefine.
69 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
70 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
71 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
72 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
73 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
74 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
75 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
76 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
77 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
78 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
79 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
80 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
81 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
82 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
83 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
84 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
85 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
87 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
90 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
91 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
92 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
94 2010-11-20 Jan Hubicka <jh@suse.cz>
96 * cgraph.c (ld_plugin_symbol_resolution_names): New.
97 (dump_cgraph_node): Dump resolution.
98 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
99 (cgraph_comdat_can_be_unshared_p): Dclare.
100 * lto-streamer-out.c (produce_symtab): Use
101 cgraph_comdat_can_be_unshared_p.
102 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
103 (cgraph_comdat_can_be_unshared_p): New function based on logic
104 in cgraph_externally_visible_p.
105 (cgraph_externally_visible_p): Use it.
106 (varpool_externally_visible_p): Virtual tables can be unshared.
107 * varpool.c (dump_varpool_node): Dump resolution.
109 2010-11-20 Jan Hubicka <jh@suse.cz>
111 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
113 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
116 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
117 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
119 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
120 (install-strip): New target.
121 (STRIPPROG): New variable, exported if STRIP is set.
122 * doc/install.texi (Final install): Minor markup and code style
123 fixes. Document install-strip target.
125 2010-11-20 Paul Koning <ni1d@arrl.net>
127 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
128 pdp11_regno_reg_class): New functions.
129 * config/pdp11/pdp11.md (define_constants): Add register numbers.
130 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
131 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
133 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
134 frame pointer and argument pointer pseudo-registers.
135 (ARG_POINTER_REGNUM): Define.
136 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
138 (FIRST_PARM_OFFSET): Update for argument pointer.
139 (INITIAL_FRAME_POINTER_OFFSET): Delete.
140 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
141 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
142 frame pointer and argument pointer.
144 2010-11-20 Jakub Jelinek <jakub@redhat.com>
147 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
148 when looking for immediate uses.
150 PR tree-optimization/45830
151 * stmt.c (expand_switch_using_bit_tests_p): New function.
152 (expand_case): Use it.
153 * tree.h (expand_switch_using_bit_tests_p): New prototype.
154 * tree-switch-conversion.c (struct switch_conv_info): Add
155 bit_test_uniq, bit_test_count and bit_test_bb fields.
156 (check_range): Fix a comment.
157 (check_process_case): Compute bit_test_uniq and bit_test_count.
158 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
160 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
161 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
162 (array_value_type): New function.
163 (build_one_array): Use it, if it returned different type,
164 fold_convert all constructor fields and convert back to the
165 wider type in the generated code.
166 (process_switch): Initialize bit_test_uniq, bit_test_count and
167 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
170 2010-11-19 Michael Matz <matz@suse.de>
172 PR tree-optimization/46077
173 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
175 2010-11-19 Anatoly Sokolov <aesok@post.ru>
177 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
178 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
180 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
182 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
184 * mode-switching.c (optimize_mode_switching): Use
185 FOR_BB_INSNS instead of open-coded loop.
186 * cfgrtl.c (redirect_branch_edge): Ditto.
188 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
191 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
192 to accomodate 32 bit HOST_WIDE_INT.
193 (m68hc11_emit_logical): Remove unused variable insn.
194 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
195 this_insn_uses_iy before use.
198 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
200 2010-11-19 Joseph Myers <joseph@codesourcery.com>
203 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
204 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
206 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
208 * doc/extend.texi (Function attributes): Document PowerPC target
209 attributes that are supported.
210 (Pragmas): Document that PowerPC now supports target pragmas.
212 * doc/options.texi (TargetVariable): Document TargetVariable,
213 HeaderInclude, and SourceInclude.
215 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
216 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
219 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
220 SourceInclude directives. Fix a cut+paste error with target save
221 enum variables. Sort enums in the structures after ints and
223 * opth-gen.awk: Ditto.
225 * configure.ac: Add support for HeaderInclude and SourceInclude option
226 directives to add the appropriate files to the dependency lists.
227 * configure: Regenerate.
228 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
229 (OPTIONS_C_EXTRA): New variable for SourceInclude.
230 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
231 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
232 (gcc-options.o): Ditto.
233 * opt-include.awk: New awk script to handle HeaderInclude and
236 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
237 gets saved in the target options.
238 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
239 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
240 (-mprototype): Ditto.
243 (-msecure-plt): Ditto.
245 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
246 (-mpowerpc-gfxopt): Ditto.
261 (-mno-update): Ditto.
262 (-mavoid-indexed-addresses): Ditto.
263 (-mtls-markers): Ditto.
264 (-msched-epilog): Ditto.
265 (-msched-prolog): Ditto.
266 (-maix-struct-return): Ditto.
267 (-msvr4-struct-return): Ditto.
268 (-mxl-compat): Ditto.
269 (-mrecip-precision): Ditto.
270 (-mfp-in-toc): Ditto.
271 (-msum-in-toc): Ditto.
273 (-mblock-move-inline-limit=): Ditto.
277 (-mgen-cell-microcode): Ditto.
278 (-mwarn-cell-microcode): Ditto.
279 (-mwarn-altivec-long): Ditto.
280 (-mprioritize-restricted-insns=): Ditto.
281 (-msingle-float): Ditto.
282 (-mdouble-float): Ditto.
283 (-msimple-fpu): Ditto.
284 (-mxilinx-fpu): Ditto.
285 * config/rs6000/aix64.opt (-mpe): Ditto.
287 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
288 (rs6000_cpu): Move variable to be a target variable. Rename
289 cmodel to rs6000_current_cmodel because of macro conflict. Merge
290 -mdebug=<xxx> variables into a single int.
291 (rs6000_always_hint): Ditto.
292 (rs6000_sched_groups): Ditto.
293 (rs6000_align_branch_targets): Ditto.
294 (rs6000_sched_costly_dep): Ditto.
295 (rs6000_sched_insert_nops): Ditto.
296 (rs6000_long_double_type_size): Ditto.
297 (rs6000_ieeequad): Ditto.
298 (rs6000_altivec_abi): Ditto.
300 (rs6000_spe_abi): Ditto.
301 (rs6000_float_gprs): Ditto.
302 (rs6000_darwin64_abi): Ditto.
303 (can_override_loop_align): Ditto.
304 (rs6000_sdata): Ditto.
305 (rs6000_tls_size): Ditto.
306 (rs6000_current_abi): Ditto.
307 (rs6000_traceback): Ditto.
308 (rs6000_alignment_flags): Ditto.
309 (rs6000_current_cmodel): Ditto.
310 (rs6000_recip_control): Ditto.
311 (rs6000_cpu_index): Ditto.
312 (rs6000_tune_index): Ditto.
313 (rs6000_debug): Ditto.
314 (rs6000_target_flags_explict): Ditto.
316 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
319 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
320 cmodel. Change all uses.
322 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
323 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
324 Rename cmodel to rs6000_current_cmodel.
325 (rs6000_sched_groups): Ditto.
326 (rs6000_align_branch_targets): Ditto.
327 (rs6000_sched_costly_dep): Ditto.
328 (rs6000_sched_insert_nops): Ditto.
329 (rs6000_long_double_type_size): Ditto.
330 (rs6000_ieeequad): Ditto.
331 (rs6000_altivec_abi): Ditto.
333 (rs6000_spe_abi): Ditto.
334 (rs6000_float_gprs): Ditto.
335 (rs6000_darwin64_abi): Ditto.
336 (can_override_loop_align): Ditto.
337 (rs6000_sdata): Ditto.
338 (rs6000_tls_size): Ditto.
339 (rs6000_current_abi): Ditto.
340 (rs6000_traceback): Ditto.
341 (rs6000_alignment_flags): Ditto.
342 (rs6000_current_cmodel): Ditto.
343 (rs6000_recip_control): Ditto.
344 (rs6000_cpu_index): Ditto.
345 (rs6000_tune_index): Ditto.
346 (rs6000_debug): Ditto.
347 (rs6000_target_flags_explict): Ditto.
348 (rs6000_sched_insert_nops_str): Make static.
349 (rs6000_sched_costly_dep_str): Ditto.
350 (rs6000_recip_name): Ditto.
351 (rs6000_abi_name): Ditto.
352 (rs6000_sdata_name): Ditto.
353 (enum rs6000_traceback_name): Move to rs6000-opts.h.
354 (rs6000_parse_tls_size_option): Delete.
355 (rs6000_valid_attribute_p): New function for target attributes and
357 (rs6000_function_specific_save): Ditto.
358 (rs6000_function_specific_restore): Ditto.
359 (rs6000_function_specific_print): Ditto.
360 (rs6000_can_inline_p): Ditto.
361 (rs6000_set_current_function): Ditto.
362 (rs6000_inner_target_options): Ditto.
363 (rs6000_debug_target_options): Ditto.
364 (rs6000_pragma_target_parse): Ditto.
365 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
366 attributes and pragmas.
367 (TARGET_OPTION_SAVE): Ditto.
368 (TARGET_OPTION_RESTORE): Ditto.
369 (TARGET_OPTION_PRINT): Ditto.
370 (TARGET_CAN_INLINE_P): Ditto.
371 (TARGET_SET_CURRENT_FUNCTION): Ditto.
372 (POWER_MASKS): Move to file level scope from the
373 rs6000_option_override_internal function.
374 (POWERPC_MASKS): Ditto.
375 (ISA_*_MASKS): Ditto.
376 (struct rs6000_ptt): Ditto.
377 (processor_target_table): Ditto.
378 (rs6000_cpu_name_lookup): Map cpu name to an index in
379 processor_target_table.
380 (rs6000_debug_reg_global): Print more information on processor
381 options for -mdebug=reg.
382 (rs6000_init_hard_regno_mode_ok): Add support for target
383 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
384 Allow -mdebug=val1,val2. Rename cmodel variable.
385 (rs6000_option_override_internal): Ditto.
386 (rs6000_option_override): Ditto.
387 (rs6000_handle_option): Ditto.
388 (rs6000_conditional_register_usage): Add debug trace message.
389 (struct rs6000_opt_mask): New for target attribute/pragma support.
390 (rs6000_opt_masks): Ditto.
391 (struct rs6000_opt_var): Ditto.
392 (rs6000_opt_vars): Ditto.
393 (rs6000_previous_function): Ditto.
395 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
396 wasn't already included.
397 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
398 (enum processor_type): Ditto.
400 (enum fpu_type_t): Ditto.
402 (enum rs6000_dependence_cost): Ditto.
403 (enum rs6000_nop_insertion): Ditto.
404 (enum group_termination): Ditto.
405 (rs6000_long_double_type_size): Ditto.
406 (rs6000_ieeequad): Ditto.
407 (rs6000_altivec_abi): Ditto.
408 (rs6000_spe_abi): Ditto.
410 (rs6000_float_gprs): Ditto.
411 (rs6000_alignment_flags): Ditto.
412 (rs6000_sched_insert_nops): Ditto.
413 (enum rs6000_vector): Ditto.
414 (enum rs6000_abi): Ditto.
415 (rs6000_current_opt): Ditto.
416 (rs6000_debug_*): Delete.
417 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
418 (TARGET_DEBUG*): Ditto.
420 * config/rs6000/rs6000-opts.h: New header file to define the enums
421 that are used in target variables that are now defined in rs6000.opt.
423 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
425 (rs6000_sdata): Ditto.
426 (rs6000_abi_name): Delete.
427 (rs6000_sdata_name): Ditto.
428 (rs6000_tls_size_string): Ditto.
430 2010-11-19 Joseph Myers <joseph@codesourcery.com>
432 * common.opt (debug_struct_ordinary, debug_struct_generic): New
434 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
435 should_emit_struct_debug): Move from opts.c.
436 * flag-types.h (enum debug_struct_file): Move from opts.c.
437 * flags.h (should_emit_struct_debug): Remove.
438 (base_of_path): Declare.
439 (set_struct_debug_option): Add gcc_options parameter.
440 * optc-gen.awk, opth-gen.awk: Handle array variables.
441 * opts.c (enum debug_struct_file, debug_struct_ordinary,
442 debug_struct_generic): Remove.
443 (set_struct_debug_option): Add gcc_options parameter.
444 (base_of_path): Remove static.
445 (main_input_basename, main_input_baselength, matches_main_base,
446 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
448 * toplev.c (main_input_basename, main_input_baselength): Define
450 * toplev.h (main_input_basename, main_input_baselength): Declare
453 2010-11-19 Joseph Myers <joseph@codesourcery.com>
455 * common.opt (flag_instrument_functions_exclude_functions,
456 flag_instrument_functions_exclude_files): New Variable definitions.
457 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
458 * gimplify.c (char_p): Declare type and vectors.
459 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
460 * opts.c (flag_instrument_functions_exclude_functions,
461 flag_instrument_functions_exclude_files): Remove.
462 (add_comma_separated_to_vector): Take void **.
463 (flag_instrument_functions_exclude_p): Move to gimplify.c.
464 (common_handle_option): Use options structure for
465 -finstrument-functions-exclude- options.
467 2010-11-19 Joseph Myers <joseph@codesourcery.com>
469 * doc/options.texi (Var): Document effects of Defer.
471 * opt-functions.awk (var_type, var_set): Handle deferred options.
472 * opts-common.c (set_option): Handle CLVC_DEFER.
473 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
474 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
475 fstack-limit-symbol=): Mark as deferred.
476 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
478 (print_filtered_help): Don't report state of CLVC_DEFER options.
479 (common_handle_option): Move code for OPT_fcall_used_,
480 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
481 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
482 OPT_fstack_limit_symbol_ to opts-global.c.
483 (option_enabled, get_option_state): Handle CLVC_DEFER.
484 * opts.h: Include vec.h.
485 (enum cl_var_type): Add CLVC_DEFER.
486 (cl_deferred_option): Define type and vectors.
487 (handle_common_deferred_options): Declare.
488 * opts-global.c: New.
489 * toplev.c (toplev_main): Call handle_common_deferred_options
490 * Makefile.in (OPTS_H): Include $(VEC_H).
491 (OBJS-common): Include opts-global.o.
492 (opts.o): Update dependencies.
493 (opts-global.o): Add dependencies.
495 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
497 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
498 to objc_declare_protocols.
500 2010-11-19 Richard Guenther <rguenther@suse.de>
503 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
504 IDENTIFIERs do not stream TREE_TYPE.
505 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
507 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
509 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
511 2010-11-19 Jakub Jelinek <jakub@redhat.com>
514 * dwarf2out.c (const_ok_for_output_1): Don't complain about
515 non-delegitimized TLS UNSPECs.
517 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
518 Ian Lance Taylor <iant@google.com>
520 * config/darwin-c.c (darwin_additional_format_types): Export.
522 2010-11-18 Paul Koning <ni1d@arrl.net>
524 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
527 2010-11-18 Paul Koning <ni1d@arrl.net>
529 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
530 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
531 * config/pdp11/pdp11.opt (-mabshi): Delete.
533 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
535 * resource.h (struct resources): Fix typo in the comment.
537 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
540 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
542 2010-11-18 Richard Henderson <rth@redhat.com>
545 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
546 maybe_copy_epilogue_insn; handle prologue insns as well.
547 * rtl.h, cfglayout.c: Update for rename.
548 * recog.c (peep2_attempt): Copy prologue/epilogue data for
549 RTX_FRAME_RELATED_P insns.
551 2010-11-18 Jakub Jelinek <jakub@redhat.com>
554 * builtins.c (fold_builtin_printf): Don't copy and modify string
555 before build_string_literal, instead modify what
556 build_string_literal returned.
558 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
561 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
562 REALPART_EXPR and IMAGPART_EXPR.
564 2010-11-18 Richard Guenther <rguenther@suse.de>
566 PR tree-optimization/46172
567 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
569 (slpeel_tree_peel_loop_to_edge): Call it.
571 2010-11-18 Jeff Law <law@redhat.com>
573 PR middle-end-optimization/46297
574 * postreload.c (reload_combine_note_store): Deal with embedded
575 side effects in MEM expressions.
577 2010-11-18 Richard Guenther <rguenther@suse.de>
580 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
581 when checking is not enabled.
583 2010-11-18 Richard Guenther <rguenther@suse.de>
586 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
588 (gimple_register_canonical_type): Also cache the canoncial type
589 for non type leaders.
591 2010-11-18 Richard Guenther <rguenther@suse.de>
593 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
595 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
598 * sel-sched-ir.c (init_expr): Use the correct type for
600 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
602 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
604 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
605 as well as -mrelocatable at the same time.
607 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
610 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
611 Call the clz builtin.
613 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
614 Steve Ellcey <sje@cup.hp.com>
617 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
618 if section attribute used.
620 2010-11-17 Jan Hubicka <jh@suse.cz>
622 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
623 expand errno setting variant when optimizing for size.
625 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
627 * postreload.c (reload_combine): Call control_flow_insn_p only once.
628 Reverse backward loop. Fix formatting issues.
630 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
632 * c-parser.c (c_token_is_qualifier,
633 c_parser_next_token_is_qualifier): New.
634 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
635 Improve error message on specs->tagdef_seen_p.
636 (c_parser_struct_or_union_specifier): Improve error recovery.
637 (c_parser_declspecs): Move exit condition on C_ID_ID early.
638 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
639 using c_parser_next_token_is_qualifier; extend it to cover
640 a ctsk_tagdef typespec and !typespec_ok in general.
642 2010-11-17 Richard Guenther <rguenther@suse.de>
644 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
645 (gimple_mod_pow2_value_transform): Likewise.
646 (gimple_mod_subtract_transform): Likewise.
648 2010-11-17 Richard Guenther <rguenther@suse.de>
651 * gimple.c (gimple_register_canonical_type): Make sure to only
652 make type leaders canonical types.
654 2010-11-17 Michael Matz <matz@suse.de>
656 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
657 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
658 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
659 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
660 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
661 (pass_build_ssa): ... but here.
662 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
663 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
664 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
665 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
666 * predict.c (rebuild_frequencies): Ditto.
667 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
668 * emit-rtl.c (verify_rtl_sharing): Ditto.
669 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
670 * tree-ssa-live.c (remove_unused_locals): Ditto.
671 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
672 * tree-ssa.c (pass_early_warn_uninitialized,
673 execute_update_addresses_taken, pass_update_address_taken): Ditto.
674 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
675 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
676 * passes.c (pass_postreload, execute_todo): Ditto.
677 * tree-ssanames.c (pass_release_ssa_names): Ditto.
679 2010-11-17 Joseph Myers <joseph@codesourcery.com>
681 * doc/invoke.texi (-dy): Remove.
682 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
683 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
684 * langhooks.c (lhd_do_nothing_i): Remove.
685 * langhooks.h (lang_hooks.parse_file): Take no arguments.
686 * toplev.c (set_yydebug): Remove.
687 (compile_file): Update call to lang_hooks.parse_file.
688 (decode_d_option): Don't handle -dy.
690 2010-11-17 Jakub Jelinek <jakub@redhat.com>
692 PR rtl-optimization/46440
693 * combine.c (update_cfg_for_uncondjump): When changing
694 an indirect jump into unconditional jump, remove BARRIERs
697 2010-11-17 Joseph Myers <joseph@codesourcery.com>
699 * opts.c (target_handle_option): Do not assert that loc ==
702 2010-11-17 Jakub Jelinek <jakub@redhat.com>
703 Richard Guenther <rguenther@suse.de>
706 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
707 call_may_clobber_ref_p_1): Return true for __sync_* and some
708 OpenMP builtins that act as threading barriers.
710 2010-11-17 Richard Guenther <rguenther@suse.de>
712 PR tree-optimization/46498
713 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
715 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
717 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
718 (xtensa_function_arg_boundary): ...this.
719 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
720 thinko in declaration.
721 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
722 number of parameters to picochip_function_arg_boundary.
723 (picochip_arg_advance): Likewise.
725 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
728 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
729 under check for type.
731 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
733 * ifcvt.c (dead_or_predicable): Fix typo.
735 2010-11-16 Richard Henderson <rth@redhat.com>
737 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
738 * config/s390/s390.opt (mfused-madd): Remove.
739 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
740 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
741 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
742 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
744 2010-11-16 Richard Henderson <rth@redhat.com>
746 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
747 * config/rs6000/rs6000.opt (mfused-madd): Remove.
748 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
749 (*altivec_vmaddfp_1): Remove.
750 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
751 (altivec_mulv4sf3): Expand to FMA directly.
752 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
753 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
754 * config/rs6000/paired.md (paired_madds0): Use FMA.
755 (paired_madds1): Likewise.
756 (*paired_madd): Rename from paired_madd; use FMA.
757 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
758 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
759 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
760 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
761 (rs6000_emit_madd): Use fma_optab.
762 (rs6000_emit_msub): Use fms_optab.
763 (rs6000_emit_nmsub): Expand the FMA pattern directly.
764 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
765 (*fmasf4_fpr): Rename from fmasf4_fpr.
766 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
767 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
768 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
769 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
770 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
771 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
772 (*fmadf4_fpr): Rename from fmadf4_fpr.
773 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
774 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
775 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
776 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
777 (fmasf4, fmadf4): Macroize into...
778 (fma<FMA_F>4): ... here.
779 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
780 (nfma<FMA_F>4, nfms<FMA_F>4): New.
781 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
783 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
784 (*vsx_fmadd<mode>4_1): Remove.
785 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
786 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
787 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
788 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
789 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
790 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
791 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
793 2010-11-16 Richard Henderson <rth@redhat.com>
795 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
796 (fmasf4, fnmadf4, fnmasf4): Likewise.
797 (unnamed plus+mult insns and splitters): Delete.
799 2010-11-16 Richard Henderson <rth@redhat.com>
801 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
802 (fnma<VSF>4): Rename from fnms_<VSF>.
803 (fms<VSF>4): Rename from fms_<VSF>.
804 (fma<VDF>4): Rename from fma_<VDF>.
805 (fms<VDF>4): Rename from fms_<VDF>.
806 (nfma<VDF>4): Rename from fnma_<VDF>.
807 (nfms<VDF>4): Rename from fnms_<VDF>.
808 (fnma<VDF>4, fnms<VDF>4): New expanders.
809 (floatunsdisf2): Update for the renames.
810 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
811 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
813 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
815 PR rtl-optimization/46490
816 * combine.c (expand_compound_operation): Fix thinko.
818 2010-11-16 Richard Henderson <rth@redhat.com>
821 * recog.c (peep2_attempt): Convert frame-related info when possible.
822 (peep2_fill_buffer): Allow frame-related insns into the buffer.
823 (peephole2_optimize): Allow peep2_attempt to fail.
825 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
827 PR rtl-optimization/46315
828 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
829 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
831 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
832 (remove_reg_equal_equiv_notes_for_defs): ...this.
833 (delete_unmarked_insns): Adjust to above renaming.
834 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
835 referring to registers set in the insns being moved, if any.
837 * df-core.c (df_ref_dump): New function extracted from...
838 (df_refs_chain_dump): ...here. Call it.
839 (df_regs_chain_dump): Likewise.
840 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
841 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
843 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
845 PR rtl-optimization/46395
846 * postreload.c (reload_combine): Invalidate register use
847 information on all control flow insns.
849 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
850 LABEL_REF in UNSPEC operand.
852 2010-11-16 Jan Hubicka <jh@suse.cz>
854 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
855 when !flag_toplevel_reorder do not remove unless variable is
856 COMDAT or ARTIFICIAL.
857 * ipa.c (varpool_can_remove_if_no_refs): ... here.
858 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
859 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
860 * varpool.c (decide_is_variable_needed): Do not handle visibility
862 (varpool_finalize_decl): Likewise.
863 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
864 update outdated comment on DECL_RTL_SET_P check.
866 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
868 * config/sol2.h (NM_FLAGS): Define.
869 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
870 * doc/tm.texi: Update.
872 2010-11-16 Nick Clifton <nickc@redhat.com>
874 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
875 (msubsf4): Rename to fmssf4, and use fma.
876 (nmaddsf4): Rename to fnmasf4 and use fma.
877 (nmsubsf4): Rename to fnmssf4 and use fma.
879 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
882 * config/score/score3.c (score3_return_in_memory): Constify arguments.
883 (score3_in_small_data_p, score3_function_value): Likewise.
884 (score3_trampoline_init): Use LCT_NORMAL.
885 (score3_print_operand): Initialize code as UNKNOWN.
886 * config/score/predicates.md (score_load_multiple_operation):
887 Remove unused variable.
888 (score_store_multiple_operation): Likewise.
889 * config/score/score7.c (score7_return_in_memory): Constify arguments.
890 (score7_in_small_data_p, score7_function_value): Likewise.
891 (score7_trampoline_init): Use LCT_NORMAL.
892 (score7_print_operand): Initialize code as UNKNOWN.
893 * config/score/score3.h (score3_return_in_memory): Update prototype.
894 (score3_in_small_data_p, score3_function_value): Likewise.
895 * config/score/score-protos.h (score_function_value): Likewise.
896 * config/score/score7.h (score7_return_in_memory): Update prototype.
897 (score7_in_small_data_p, score7_function_value): Likewise.
898 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
899 (score_return_in_memory, score_pass_by_reference): Constify arguments.
900 (score_output_mi_thunk, score_function_prologue): Don't return a value.
901 (score_function_epilogue, score_in_small_data_p): Likewise.
902 (score_option_override, score_asm_trampoline_template): Likewise.
903 (score_trampoline_init, score_print_operand): Likewise.
904 (score_print_operand_address, score_prologue): Likewise.
905 (score_epilogue, score_call, score_call_value): Likewise.
906 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
907 (score_function_arg_advance): Likewise. Make static.
908 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
909 (score_function_arg, score_legitimate_address_p): Make static.
910 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
911 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
912 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
913 Allow (W) == HOST_BITS_PER_WIDE_INT.
916 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
917 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
919 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
921 * config/arc/arc.c: Delete pasto.
922 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
924 2010-11-16 Anatoly Sokolov <aesok@post.ru>
926 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
927 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
928 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
929 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
930 (mn10300_preferred_reload_class,
931 mn10300_preferred_output_reload_class): New functions.
933 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
935 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
936 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
937 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
938 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
940 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
942 * builtins.c (std_gimplify_va_arg_expr): Use
943 targetm.calls.function_arg_boundary.
944 * function.c (assign_parms, locate_and_pad_parm): Likewise.
945 * calls.c (struct arg_data): Update comment.
946 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
947 * target.def (function_arg_boundary): Define.
948 * targhooks.h (default_function_arg_boundary): Declare.
949 * targhooks.c (default_function_arg_boundary): Define.
950 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
951 TARGET_FUNCTION_ARG_BOUNDARY.
952 (FUNCTION_ARG_BOUNDARY): Delete.
953 (TARGET_FUNCTION_ARG_BOUNDARY): New.
954 * doc/tm.texi: Regenerate.
955 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
956 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
957 * config/arc/arc.c (arc_function_arg_boundary): Define.
958 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
959 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
960 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
961 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
962 (arm_function_arg_boundary): Define.
963 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
964 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
965 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
966 * config/frv/frv.c (frv_function_arg_boundary): Make static.
967 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
968 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
969 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
970 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
971 (ix86_compat_function_arg_boundary): Take and return unsigned int.
972 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
973 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
974 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
975 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
976 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
977 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
978 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
979 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
980 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
981 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
982 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
983 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
984 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
985 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
986 * config/mips/mips.c (mips_function_arg_boundary): Make static.
987 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
988 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
989 * config/pa/pa.c (pa_function_arg_boundary): Define.
990 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
991 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
992 * config/picochip/picochip-protos.h
993 (picochip_get_function_arg_boundary): Delete.
994 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
996 (picochip_function_arg_boundary): ...this. Make static.
997 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
998 (picochip_arg_advance): Adjust.
999 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1000 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
1001 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
1002 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
1003 (rs6000_function_arg_boundary): ...this. Make static.
1004 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
1005 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1006 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
1007 * config/rx/rx.c (rx_function_arg_boundary): Define.
1008 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1009 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
1010 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
1011 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1012 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
1013 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
1014 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
1015 (xtensa_function_arg_boundary): ...this. Make static.
1016 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1018 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1020 * expr.c (alignment_for_piecewise_move): New function.
1021 (widest_int_mode_for_size): New function.
1022 (move_by_pieces, move_by_pieces_ninsns): Call them.
1023 (can_store_by_pieces, store_by_pieces_1): Likewise.
1025 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1027 * gcc.c (char_p): Define. Define a VEC of it.
1028 (n_linker_options, n_assembler_options, n_preprocessor_options):
1030 (linker_options, assembler_options, preprocessor_options): Convert
1032 (add_preprocessor_option): Adjust.
1033 (add_assembler_option): Adjust.
1034 (add_linker_option): Adjust.
1035 (do_specs_vec): New function.
1036 (do_spec_1): Call it. Adjust for new types.
1038 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1040 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
1041 (sreal.o, statistics.o, stringpool.o): Likewise.
1043 2010-11-16 Richard Guenther <rguenther@suse.de>
1045 PR tree-optimization/44545
1046 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
1047 statements are not reassociatable.
1048 (reassociate_bb): Likewise.
1050 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1052 * bitmap.c: Delete unnecessary includes.
1053 * ebitmap.c: Likewise.
1054 * et-forest.c: Likewise.
1055 * sreal.c: Likewise.
1056 * statistics.c: Likewise.
1057 * stringpool.c: Likewise.
1058 * double-int.c: Add comment for inclusion of tm.h.
1060 2010-11-16 Richard Guenther <rguenther@suse.de>
1062 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
1063 (visit_nary_op): ... this.
1064 (visit_binary_op): Remove.
1065 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
1067 2010-11-16 Richard Guenther <rguenther@suse.de>
1070 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
1072 2010-11-16 Nick Clifton <nickc@redhat.com>
1074 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
1077 2010-11-15 Richard Henderson <rth@redhat.com>
1079 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
1080 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
1083 2010-11-15 Richard Henderson <rth@redhat.com>
1085 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
1086 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
1089 2010-11-15 Richard Henderson <rth@redhat.com>
1091 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
1092 and *mulsubsf4 respectively. Use fma rtx_code.
1094 2010-11-15 Joseph Myers <joseph@codesourcery.com>
1096 * gcc.c: Include "vec.h".
1097 (argbuf): Make into a VEC.
1098 (argbuf_length, argbuf_index): Remove.
1099 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
1100 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
1101 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
1102 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
1103 (gcc.o): Depend on $(VEC_H).
1105 2010-11-15 Richard Henderson <rth@redhat.com>
1107 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
1108 via FMA if unsafe math.
1109 (insert_var_expansion_initialization): Handle FMA.
1110 (combine_var_copies_in_loop_exit): Likewise.
1112 2010-11-15 Richard Henderson <rth@redhat.com>
1114 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
1115 * config/ia64/ia64.opt: Remove mfused-madd.
1116 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
1117 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
1118 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
1119 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
1120 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
1121 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
1122 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
1123 (fmav2sf4): Rename from fpma; use FMA code.
1124 (fmsv2sf4): Rename from fpms; use FMA code.
1125 (fnmav2sf4): Rename from *fpnma; use FMA code.
1126 * config/ia64/ia64.md (MODE_SDF): New iterator.
1127 (suffix): New mode attribute.
1128 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
1129 (fmssf4): Rename from *fmssf4.
1130 (fnmasf4): Rename from *nfmasf4.
1131 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
1132 (*nmadddf4, *nmadddf4_truncsf): Remove.
1133 (fmsdf4): Rename from *fmsdf4.
1134 (fnmadf4): Rename from *nfmadf4.
1135 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
1136 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
1137 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
1138 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
1139 (fmsxf4): Rename from *fmsxf4.
1140 (fnmaxf4): Rename from *nfmaxf4.
1141 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
1142 (*fnmaxf_trunc_<MODE_SDF>): New.
1144 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1146 PR tree-optimization/46461
1147 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
1150 2010-11-15 Ian Lance Taylor <iant@google.com>
1152 * godump.c: New file.
1153 * common.opt (fdump-go-spec=): New option.
1154 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
1155 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
1156 (TYPE_SYMTAB_IS_DIE): Define.
1157 (struct tree_type): Change GTY for symtab field to use
1158 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
1159 to pick the union field.
1160 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
1161 (dump_go_spec_init): Declare.
1162 * toplev.c (process_options): Handle flag_dump_go_spec.
1163 * debug.c: Include "tree.h".
1164 (do_nothing_debug_hooks): Set tree_type_symtab_field.
1165 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1166 * dbxout.c (dbx_debug_hooks): Likewise.
1167 (xcoff_debug_hooks): Likewise.
1168 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1169 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
1170 SDB_DEBUGGING_INFO is not defined.
1171 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
1172 (Overall Options): Document -fdump-go-spec.
1173 * Makefile.in (OBJS-common): Add godump.o.
1174 (debug.o): Add dependency on $(TREE_H).
1175 (godump.o): New target.
1176 (GTFILES): Add $(srcdir)/godump.c.
1178 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1181 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
1182 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
1183 style < 0, add REG_FRAME_RELATED_EXPR.
1186 * rtl.h (vt_equate_reg_base_value): New prototype.
1187 * alias.c (vt_equate_reg_base_value): New function.
1188 * var-tracking.c (vt_init_cfa_base): Use it.
1190 2010-11-15 Jan Hubicka <jh@suse.cz>
1191 Diego Novillo <dnovillo@google.com>
1194 * doc/lto.texi: Add.
1195 * doc/gccint.texi: Add reference to lto.texi.
1196 * doc/invoke.texi: Update user documentation for LTO.
1197 Move internal flags to lto.texi
1199 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1201 * c-typeck.c (build_unary_op): Use
1202 objc_build_incr_expr_for_property_ref to build the pre/post
1203 increment/decrement of an Objective-C property ref, and skip the
1204 lvalue_or_else check in that case.
1206 2010-11-15 Martin Jambor <mjambor@suse.cz>
1208 PR tree-optimization/46349
1209 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
1210 (contains_vce_or_bfcref_p): Likewise.
1211 (sra_modify_assign): Use them.
1213 2010-11-15 Richard Guenther <rguenther@suse.de>
1215 PR tree-optimization/46467
1216 * tree-ssa-structalias.c (do_structure_copy): Properly treat
1217 variables without subvars.
1219 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
1221 * config/picochip/picochip.c (file header): Picochip name change.
1222 * config/picochip/picochip.md (file header): Likewise.
1223 * config/picochip/predicates.md (file header): Likewise.
1224 * config/picochip/dfa_space.md (file header): Likewise.
1225 * config/picochip/dfa_speed.md (file header): Likewise.
1226 * config/picochip/picochip.h(file header): Likewise.
1227 * config/picochip/constraints.md (file header): Likewise.
1228 * config/picochip/picochip-protos.h (file header): Likewise.
1229 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
1230 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
1231 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
1232 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
1233 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
1234 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
1235 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
1236 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
1237 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
1238 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
1239 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
1240 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
1241 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
1242 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
1244 2010-11-15 Richard Guenther <rguenther@suse.de>
1247 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
1249 2010-11-15 Nick Clifton <nickc@redhat.com>
1251 * config/stormy16/stormy16.c (direct_return): Do not generate a
1252 direct return for interrupt handlers.
1254 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
1256 * Makefile.in (tm.texi): Replace with rule for:
1257 ($(srcdir)/doc/tm.texi).
1258 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
1259 $(srcdir)/doc/tm.texi .
1260 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
1264 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
1267 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
1268 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
1271 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1273 2010-11-15 Richard Guenther <rguenther@suse.de>
1276 * lto-opts.c (lto_write_options): Write -fexceptions even if
1277 not set by the user.
1279 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1282 * c-decl.c (declspecs_add_type): Make variables with error types
1284 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
1285 do not start a declaration before an Objective-C foreach.
1286 (c_parser_declaration_or_fndef): Improve recovery after unknown
1288 (c_parser_for_statement): Hoist entrance of "foreach context"
1289 before ifs, add corresponding reset where it was missing. Do
1290 not set objc_could_be_foreach_context for C.
1292 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
1294 PR tree-optimization/45722
1295 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
1296 this is a reference to a component.
1297 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
1298 (ipa_note_param_call): Adjust comment.
1300 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
1302 * config/mips/mips.c (machine_function): Remove
1303 initialized_mips16_gp_pseudo_p.
1304 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
1305 detect whether a pseudo has already been created. Unconditionally
1306 create a new one if not.
1307 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
1308 expanding to rtl. Create a new pseudo otherwise, if allowed.
1310 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
1313 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
1314 * tm.texi: Regenerated.
1315 * output.h (decode_reg_name_and_count): Declare.
1316 * varasm.c (decode_reg_name_and_count): New function.
1317 (decode_reg_name): Reimplement using decode_reg_name_and_count.
1318 * reginfo.c (fix_register): Use decode_reg_name_and_count and
1319 iterate over all regs used.
1320 * stmt.c (expand_asm_operands): Likewise.
1321 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
1322 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
1323 multiple machine registers.
1325 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
1327 * stor-layout.c (place_union_field): Do not put location information
1328 on offset expressions.
1329 (place_field): Likewise.
1330 (finalize_record_size): Likewise on size expressions.
1331 (finalize_type_size): Likewise.
1332 (layout_type): Likewise.
1334 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
1337 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
1338 * df-core.c (df_set_bb_dirty_nonrl): Remove.
1339 * df.h (df_set_bb_dirty_nonlr): Likewise.
1341 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
1343 * config/mips/mips.md (call_internal): Pass curr_insn to
1345 (call_internal_direct): Ditto.
1346 (call_value_internal): Ditto.
1347 (call_value_internal_direct): Ditto.
1348 (call_value_multiple_internal): Ditto.
1349 * config/mips/mips.c (mips_split_call): Do not copy
1350 CALL_INSN_FUNCTION_USAGE here.
1352 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
1354 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
1355 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
1356 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
1357 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
1358 (TUNE_LOONGSON_3A): Define.
1359 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
1360 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
1361 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
1362 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
1363 (mips_rtx_cost_data): Add Loongson-3A.
1365 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1367 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
1370 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1372 * dwarf2out.c (macinfo_entry): New struct.
1373 (output_comp_unit): Emit the section start label here and flag that we
1374 will emit an info section.
1375 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
1377 (dwarf2out_end_source_file): Likewise.
1378 (dwarf2out_define): Likewise.
1379 (dwarf2out_undef): Likewise.
1380 (output_macinfo): New.
1381 (dwarf2out_init): Do not emit debug section switches here, allocate a
1382 vec for macinfo, when required.
1383 (dwarf2out_finish): First switch to debug_abbrev_section here.
1384 debug_line_section, debug_macinfo_section, Likewise.
1385 Check that the pubtypes table has at least one unpruned entry before
1388 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1391 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
1392 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
1394 (c_parser_compound_statement_nostart, c_parser_label,
1395 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
1396 (c_parser_declaration_or_fndef): Detect the case now matched by
1397 c_parser_next_tokens_start_declaration, give error and correct it.
1399 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1401 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
1402 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
1404 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
1405 (shadow_tag_warned, check_compound_literal_type): Adjust
1406 uses of tag_defined_p.
1407 (declspecs_add_type): Set typespec_kind.
1408 * c-parser.c (c_parser_declaration_or_fndef,
1409 c_parser_declspecs, c_parser_struct_declaration,
1410 c_parser_parameter_declaration, c_parser_type_name,
1411 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
1413 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
1414 tag_defined_p, pass ctsk_firstref through.
1416 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1418 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
1419 (struct format_wanted_type): Replace field "name" with "kind", add
1420 "format_start" and "format_length".
1421 (check_format_info_main): Fill in new fields. Fill in
1422 FORMAT_WANTED_TYPES even for missing arguments. Move checks
1423 after the final NUL outside the while loop. Do not include
1424 width and precision modifiers in the format_start/format_length
1426 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
1427 arguments. Compute WANTED_TYPE first so that format_type_warning
1428 can be called for missing arguments. Adjust calls to
1429 format_type_warning.
1430 (format_type_warning): Fetch as much information as possible
1431 from format_wanted_type. Adjust printing now that every
1432 warning has a "descr", as well as for missing argument warnings
1433 and to include % sign for format specifiers.
1435 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
1437 PR rtl-optimization/46204
1438 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
1439 Update all callers. Do not recompute topological order. Adjust
1440 fallthrough edges following a degenerate conditional jump.
1442 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1444 * opts-common.c (control_warning_option): New.
1445 * opts.c (set_default_handlers): New.
1446 (decode_options): Use set_default_handlers and
1447 control_warning_option.
1448 (common_handle_option): Update call to enable_warning_as_error.
1449 (enable_warning_as_error): Take gcc_options parameters. Use
1450 control_warning_option.
1451 * opts.h (set_default_handlers, control_warning_option): Declare.
1453 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1455 * Makefile.in (OPTS_H): Define.
1456 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
1457 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
1458 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
1459 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
1460 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
1461 * gcc.c (driver_handle_option): Take location_t parameter.
1462 (process_command, do_self_spec): Update calls to
1463 read_cmdline_option.
1464 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
1465 * langhooks.c (lhd_handle_option): Take location_t parameter.
1466 * langhooks.h (handle_option): Take location_t parameter.
1467 * lto-opts.c (lto_reissue_options): Update call to set_option.
1468 * opts-common.c (handle_option): Make static. Take location_t
1469 parameter and pass it to other functions.
1470 (handle_generated_option): Take location_t parameter and pass it
1472 (read_cmdline_option): Take location_t parameter and pass it to
1473 other functions. Use warning_at and error_at.
1474 (set_option): Take location_t parameter and pass it to other
1476 * opts.c (common_handle_option): Take location_t parameter and
1477 pass it to other functions.
1478 (enable_warning_as_error): Make static. Take location_t parameter
1479 and pass it to other functions.
1480 (lang_handle_option): Take location_t parameter and pass it to
1482 (target_handle_option): Take location_t parameter.
1483 (read_cmdline_options, maybe_default_option,
1484 maybe_default_options, default_options_optimization,
1485 decode_options): Take location_t parameter and pass it to other
1487 * opts.h: Include input.h.
1488 (struct cl_option_handler_func, decode_options, set_option,
1489 handle_generated_option, read_cmdline_option): Take location_t
1491 (handle_option, enable_warning_as_error): Remove.
1492 * toplev.c (toplev_main): Update call to decode_options.
1494 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
1496 * graphite-cloog-util.c (oppose_constraint,
1497 cloog_matrix_to_ppl_constraint,
1498 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
1499 CLooG isl uses unsigned integers. This triggered a warning.
1501 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1504 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
1505 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
1506 (xtensa_function_arg_1): De-constify cum.
1507 (xtensa_expand_prologue): Use add_reg_note.
1510 * config/cris/cris.c (saved_regs_mentioned): Delete.
1511 (cris_reload_address_legitimized): Cast itype to enum reload_type.
1512 Remove unused variable op0p.
1513 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
1514 (cris_emit_movem_store): Use add_reg_note.
1517 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
1519 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
1521 * function.c (expand_function_end): Set the locator of the prologue on
1522 the stack checking insns.
1524 2010-11-12 Richard Henderson <rth@redhat.com>
1526 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
1527 * config/xtensa/xtensa.opt (mfused-madd): Remove.
1528 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
1530 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
1531 (fnmasf4): Rename from mulsubsf3; use fma.
1533 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1534 Richard Henderson <rth@redhat.com>
1537 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
1538 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
1541 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
1543 * opts-common.c (decode_cmdline_option): Initialize separate_args.
1545 2010-11-12 Jan Hubicka <jh@suse.cz>
1547 * doc/invoke.texi (early-inlining-insns): Update default.
1548 * params.def (early-inlining-insns): Default to 10.
1550 2010-11-12 Olivier Hainque <hainque@adacore.com>
1552 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
1554 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
1557 (SUPPORTS_INIT_PRIORITY): Define.
1559 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1562 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
1563 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
1564 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1565 (avr_device_to_devicelib): Likewise.
1566 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
1568 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
1569 (zero_extendhidi2, zero_extendsidi2): Likewise.
1570 * config/avr/avr.c (avr_num_arg_regs): Constify type.
1571 (avr_return_addr_rtx): De-constify tem.
1572 (avr_rotate_bytes): Move declarations to start of block.
1573 Don't use variable length array. Put nested if/else into block.
1575 PR rtl-optimization/46433
1576 * var-tracking.c: Include tm_p.h .
1580 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
1582 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
1583 * doc/tm.texi: Regenerate.
1586 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
1587 * config/bfin/bfin.c: Include sel-sched.h .
1588 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
1589 (expand_interrupt_handler_prologue): Remove unused variable insn.
1590 (bfin_load_pic_reg): Likewise.
1591 (bfin_rtx_costs): Make code / outer_code variables of type
1592 enum rtx_code, copied from re-named parameters.
1593 (bfin_local_alignment): Change align argument and return type
1595 (bfin_adjust_cost): Remove unused variable insn_type.
1596 Declare variables at start of block.
1597 (struct loop_info): Rename to...
1598 (struct loop_info_d).
1599 (workaround_rts_anomaly): Change type of icode to int.
1600 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
1601 with int-typed variable.
1602 (note_np_check_stores): Likewise.
1603 (trapping_loads_p): Remove unused variable pat.
1604 (bfin_expand_binop_builtin): Use expand_normal.
1605 (bfin_expand_unop_builtin): Likewise.
1606 (bfin_expand_builtin): Likewise. Set tmode before use.
1609 * final.c (split_double): Don't use BITS_PER_WORD directly in
1613 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
1617 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1619 (xstormy16_function_arg): Dereference cum.
1620 (xstormy16_expand_builtin): Use expand_normal.
1621 Change type of omode to enum machine_mode.
1622 (combine_bnp): Rename and to and_insn.
1625 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
1628 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
1631 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
1633 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1636 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
1638 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
1641 * common.opt (fmax-errors=): New option.
1642 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
1643 * diagnostic.h (struct diagnostic_context): Add max_errors field.
1644 * diagnostic.c (diagnostic_initialize): Initialize it.
1645 (diagnostic_action_after_output): Exit if more than max_errors
1647 * doc/invoke.texi (Warning Options): Add -fmax-errors.
1648 (-fmax-errors): Document.
1650 2010-11-11 Richard Henderson <rth@redhat.com>
1652 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
1654 2010-11-11 Richard Henderson <rth@redhat.com>
1656 * config/fused-madd.opt: New file.
1657 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
1658 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
1659 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1660 * config/i386/i386.opt (mfused-madd): Remove.
1661 * config/i386/sse.md (split_fma): Remove.
1662 (split_fms, split_fnma, split_fnms): Remove.
1664 2010-11-12 Jakub Jelinek <jakub@redhat.com>
1667 * config/i386/i386.md (*ashl<mode>3_cconly,
1668 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
1669 change nonimmediate_operand predicate to register_operand.
1671 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
1673 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
1675 2010-11-11 Jan Hubicka <jh@suse.cz>
1677 * opts.c (finish_options): Do not error on -flto-partition alone.
1679 * doc/invoke.texi (-fwhopr): Merge into -flto section.
1680 (-flto-partition): Document none.
1681 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
1682 * lto-wrapper.c: Update comment.
1683 (run_gcc): Update LTO option parsing.
1684 * opts.c (finish_options): add support -flto-partition=none
1685 (common_handle_option): Remove fwhopr.
1686 * common.opt: Turn fwhopr into flto.
1687 * collect2.c (main): Update option handling.
1688 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
1689 * ipa-split.c (execute_split_functions): Remove flag_whopr.
1690 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
1691 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
1692 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
1694 2010-11-11 Jan Hubicka <jh@suse.cz>
1696 PR tree-optimize/40436
1697 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
1698 (eliminated_by_inlining_prob): ... this one; return 50% probability
1700 (estimate_function_body_sizes): Update use of
1701 eliminated_by_inlining_prob; estimate static function size
1704 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
1707 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
1708 declare. Change type of argument four to type int.
1709 (mep_secondary_input_reload_class): Returns enum reg_class.
1710 (mep_secondary_output_reload_class): Likewise.
1711 (mep_function_value): Change types of arguments to cont_tree.
1712 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
1713 argument four to type int.
1714 (mep_secondary_input_reload_class): Returns enum reg_class.
1715 (mep_secondary_output_reload_class): Likewise.
1716 (mep_function_value): Change types of arguments to cont_tree.
1717 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
1718 mep_regno_reg_class to enum reg_class.
1720 2010-11-11 Richard Henderson <rth@redhat.com>
1722 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
1723 that the target has the exact fma operation that we matched.
1725 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1727 * reginfo.c (fix_register): Avoid inserting English word in
1728 diagnostic sentence. Use %qs for quoting and %'.
1730 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
1732 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1733 Intel processor family 6, model 0x2c.
1735 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1737 * opts.c (warning_as_error_callback,
1738 register_warning_as_error_callback): Remove.
1739 (enable_warning_as_error): Don't use warning_as_error_callback.
1740 * opts.h (register_warning_as_error_callback): Remove.
1742 2010-11-11 Richard Henderson <rth@redhat.com>
1744 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
1745 in between the MULT and the PLUS/MINUS.
1747 2010-11-11 Jakub Jelinek <jakub@redhat.com>
1750 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
1751 BLKmode mode for it.
1752 (expand_expr_real_1): Similarly for op0.
1754 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1756 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
1757 Document optional target selector.
1759 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
1761 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
1762 assembling high and low parts of size if not using 32-bit HWINT; else
1763 use DECL_SIZE_UNITS, not DECL_SIZE.
1765 2010-11-11 Martin Jambor <mjambor@suse.cz>
1767 PR tree-optimization/46383
1768 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
1770 (compute_complex_ancestor_jump_func): Likewise.
1771 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
1773 2010-11-11 Jakub Jelinek <jakub@redhat.com>
1776 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
1777 true if expr1->hash != expr2->hash.
1779 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1781 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
1782 diagnostics with lowercase letters.
1783 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
1785 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
1787 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1788 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
1790 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1791 Remove trailing ' ' from diagnostic.
1792 * config/avr/avr.c (print_operand_address): Start diagnostic with
1793 a lowercase letter and remove trailing '.'.
1794 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
1795 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
1796 with lowercase letters. Use %' in diagnostics. Remove trailing
1797 '.' from diagnostics.
1798 (bfin_handle_longcall_attribute): Use %' in diagnostic.
1799 * config/cris/cris.c (cris_split_movdx,
1800 cris_expand_pic_call_address): Start diagnostics with lowercase
1802 (cris_asm_output_label_ref): Use %' in diagnostic.
1803 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
1805 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
1807 * config/darwin-c.c (version_as_macro): Start diagnostic with a
1809 * config/darwin-driver.c (darwin_default_min_version): Use %' in
1811 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
1813 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1814 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
1816 * config/i386/i386.c (ix86_option_override_internal): Write
1817 diagnostic as a single sentence without trailing '.'. Use %' in
1819 (ix86_function_sseregparm, classify_argument): Start diagnostics
1820 with lowercase letters.
1821 (ix86_expand_prologue): Use %' in diagnostic.
1822 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
1824 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
1826 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
1828 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1829 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
1831 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
1833 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
1835 * config/microblaze/microblaze.c (microblaze_handle_option):
1836 Remove trailing '.' from diagnostic.
1837 (print_operand): Start diagnostic with a lowercase letter.
1838 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
1839 lowercase letters. Avoid '`' in diagnostics.
1840 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
1841 lowercase letters. Avoid '`' in diagnostics.
1842 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
1843 lowercase letters. Avoid '`' in diagnostics.
1844 * config/picochip/picochip.c (picochip_option_override,
1845 picochip_emit_save_register, picochip_function_arg,
1846 picochip_output_label, picochip_output_internal_label,
1847 picochip_asm_output_opcode, picochip_output_cbranch,
1848 picochip_output_compare, picochip_output_branch,
1849 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
1850 diagnostics. Start diagnostics with lowercase letters. Use %' in
1852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
1853 "SPE" capitalization. Start diagnostic with a lowercase letter.
1854 (rs6000_handle_option): Start diagnostics with lowercase letters.
1855 (def_builtin): Remove trailing '.' from diagnostic.
1856 (rs6000_savres_routine_name): Start diagnostic with a lowercase
1858 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
1860 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
1862 * config/s390/s390.c (s390_option_override) Start diagnostics with
1863 lowercase letters. Use %' in diagnostic.
1864 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
1866 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
1868 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
1870 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
1872 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1873 * config/spu/spu.c (spu_option_override): Start diagnostics with
1874 lowercase letters. Use %qs for quoting in diagnostics.
1875 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
1876 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
1877 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
1879 * convert.c (convert_to_integer, convert_to_vector): Use %' in
1881 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
1882 letter and use "cannot" spelling.
1883 * expmed.c (extract_fixed_bit_field): Start diagnostic with
1884 lowercase letter and format as a single sentence without '.'.
1885 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
1886 Use %' in diagnostics.
1887 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1888 Use %' in diagnostics.
1889 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1890 Use %' in diagnostics.
1891 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
1892 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
1893 with lowercase letters and remove tailing '.' and '\n'.
1894 * lto-cgraph.c (input_profile_summary): Start diagnostic with
1895 lowercase letter and remove trailing '.'.
1896 (input_cgraph): Start diagnostics with lowercase letters and
1897 remove trailing '\n'.
1898 * opts.c (finish_options, common_handle_option): Start diagnostics
1899 with lowercase letters and remove trailing '.'. Fix typo in
1901 * passes.c (position_pass): Start diagnostic with lowercase letter.
1902 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
1903 register_callback, try_init_one_plugin): Start diagnostics with
1905 * reload1.c (spill_failure): Use %' in diagnostic.
1906 (gen_reload): Start diagnostic with a lowercase letter.
1907 * stor-layout.c (place_field): Start diagnostic with a lowercase
1909 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
1910 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
1911 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
1912 Start diagnostics with lowercase letters, remove trailing '.' and
1913 use %' in diagnostics.
1914 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
1915 (verify_ssa): Don't split diagnostic across two error calls.
1916 Spell out "number" and use %' in diagnostic.
1917 * value-prof.c (visit_hist, check_counter): Start diagnostics with
1920 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
1923 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
1924 (_mm_cvtpu16_ps): Ditto.
1926 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1928 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
1929 warn_larger_than, larger_than_size, warn_frame_larger_than,
1930 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
1931 default_visibility, flag_tls_default): New Variable declarations.
1932 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
1933 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
1934 (v): Declare as Common and document here.
1935 * flags.h (default_visibility, flag_generate_lto,
1936 warn_larger_than, larger_than_size, warn_frame_larger_than,
1937 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
1938 flag_shlib, flag_excess_precision_cmdline): Remove.
1939 (set_Wstrict_aliasing): Update prototype.
1940 * gcc.c (verbose_flag): Remove.
1941 (driver_handle_option): Add diagnostic_context parameter. Don't
1942 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
1944 * opts-common.c (handle_option): Pass dc to handler.
1945 * opts.c (warn_larger_than, larger_than_size,
1946 warn_frame_larger_than, frame_larger_than_size,
1947 default_visibility): Remove.
1948 (common_handle_option): Add diagnostic_context parameter.
1949 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
1950 gcc_options parameters.
1951 (lang_handle_option, target_handle_option, read_cmdline_options,
1952 decode_options): Add diagnostic_context parameters.
1953 (finish_options): Access option state through opts pointer where
1955 (common_handle_option): Access option state through opts pointer
1956 where possible. Do not set local static variable verbose. Do not
1957 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
1958 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
1959 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
1960 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
1961 OPT_fwhopr_. Do not explicitly set .opt file variables for
1962 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
1963 (set_Wstrict_aliasing): Add gcc_options parameter.
1964 * opts.h (struct cl_option_handler_func): Add diagnostic_context
1965 parameter to handler.
1966 (decode_options): Add diagnostic_context parameter.
1967 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
1968 asm_file_name, flag_generate_lto, flag_gen_aux_info,
1969 aux_info_file_name, flag_shlib, flag_tls_default,
1970 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
1971 (toplev_main): Pass global_dc to decode_options.
1972 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
1973 aux_info_file_name, asm_file_name): Remove.
1974 * tree.h (flag_tls_default): Remove.
1976 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
1978 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
1979 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
1981 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
1983 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
1984 (x86_64-*-*): Likewise.
1985 * config/i386/cpuid.h: Define TBM bit.
1986 * config/i386/driver-i386.c (host_detect_local_cpu): Define
1988 * config/i386/i386-c.c (ix86_target_macros_internal): Check
1990 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
1991 (OPTION_MASK_ISA_TBM_UNSET): New.
1992 (ix86_handle_option): Handle -mtbm.
1993 (isa_opts): Add -mtbm.
1994 (enum pta_flags): Add PTA_TBM.
1995 (ix86_option_override_internal): Add TBM support.
1996 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
1997 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
1998 (IX86_BUILTIN_BEXTRI64): Likewise.
1999 (bdesc_args): Add TBM intrinsics.
2000 (ix86_expand_builtin): Add TBM specific case.
2001 * config/i386/i386.h (TARGET_TBM): New for TBM.
2002 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
2003 (tbm_bextri_<mode>): Likewise.
2004 (*tbm_blcfill_<mode>): Likewise.
2005 (*tbm_blci_<mode>): Likewise.
2006 (*tbm_blcic_<mode>): Likewise.
2007 (*tbm_blcmsk_<mode>): Likewise.
2008 (*tbm_blcs_<mode>): Likewise.
2009 (*tbm_blsfill_<mode>): Likewise.
2010 (*tbm_blsic_<mode>): Likewise.
2011 (*tbm_t1mskc_<mode>): Likewise.
2012 (*tbm_tzmsk_<mode>): Likewise.
2013 * config/i386/i386.opt: Add -mtbm.
2014 * config/i386/tbmintrin.h (__bextri_u32): New.
2015 (__blcfill_u32): Likewise.
2016 (__blci_u32): Likewise.
2017 (__blcic_u32): Likewise.
2018 (__blcmsk_u32): Likewise.
2019 (__blcs_u32): Likewise.
2020 (__blsfill_u32): Likewise.
2021 (__blsic_u32): Likewise.
2022 (__t1mskc_u32): Likewise.
2023 (__tzmsk_u32): Likewise.
2024 (__bextri_u64): Likewise.
2025 (__blcfill_u64): Likewise.
2026 (__blci_u64): Likewise.
2027 (__blcic_u64): Likewise.
2028 (__blcmsk_u64): Likewise.
2029 (__blcs_u64): Likewise.
2030 (__blsfill_u64): Likewise.
2031 (__blsic_u64): Likewise.
2032 (__t1mskc_u64): Likewise.
2033 (__tzmsk_u64): Likewise.
2034 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
2035 * doc/invoke.texi: Document -mtbm.
2036 * doc/extend.texi: Document TBM built-in functions.
2038 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2040 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
2041 (x86_64-*-*): Likewise.
2042 * config/i386/cpuid.h: Define BMI bit.
2043 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2045 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2047 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
2048 (OPTION_MASK_ISA_BMI_UNSET): New.
2049 (ix86_handle_option): Handle -mbmi.
2050 (isa_opts): Add -mbmi.
2051 (enum pta_flags): Add PTA_BMI.
2052 (ix86_option_override_internal): Add BMI support.
2053 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
2054 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
2055 (IX86_BUILTIN_BEXTR64): Likewise.
2056 (IX86_BUILTIN_CTZS): Likewise.
2057 (bdesc_args): Add BMI intrinsics.
2058 (ix86_expand_args_builtin): Add BMI specific cases.
2059 * config/i386/i386.h (TARGET_BMI): New for BMI.
2060 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2061 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
2062 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
2063 (UNSPEC_TZCNT): Likewise.
2064 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
2065 (bmi_andn_<mode>): New for BMI.
2066 (bmi_bextr_<mode>): Likewise.
2067 (bmi_blsi_<mode>): Likewise.
2068 (bmi_blsmsk_<mode>): Likewise.
2069 (bmi_blsr_<mode>): Likewise.
2070 * config/i386/i386.opt: Add -mbmi.
2071 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
2072 * config/i386/bmiintrin.h (__lzcnt_u16): New.
2073 (__tzcnt_u16): Likewise.
2074 (__andn_u32): Likewise.
2075 (__bextr_u32): Likewise.
2076 (__blsi_u32): Likewise.
2077 (__blsmsk_u32): Likewise.
2078 (__blsr_u32): Likewise.
2079 (__lzcnt_u32): Likewise.
2080 (__tzcnt_u32): Likewise.
2081 (__andn_u64): Likewise.
2082 (__bextr_u64): Likewise.
2083 (__blsi_u64): Likewise.
2084 (__blsmsk_u64): Likewise.
2085 (__blsr_u64): Likewise.
2086 (__lzcnt_u64): Likewise.
2087 (__tzcnt_u64): Likewise.
2088 * doc/invoke.texi: Document -mbmi and -mno-bmi.
2089 * doc/extend.texi: Document BMI built-in functions.
2091 2010-11-10 Jan Hubicka <jh@suse.cz>
2093 PR tree-optimize/46228
2094 * doc/invoke.texi (comdat-sharing-probability): Document.
2095 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
2096 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
2098 2010-11-10 Jan Hubicka <jh@suse.cz>
2100 PR tree-optimize/46228
2101 * cgraph.c (cgraph_propagate_frequency): Fix typo.
2103 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
2105 PR tree-optimization/46414
2106 * tree-inline.c (estimate_move_cost): Check preferred vector
2107 mode for vector type.
2109 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2111 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
2113 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
2115 PR tree-optimization/45971
2116 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
2117 for phi nodes analyzable by scev.
2119 2010-11-10 Richard Guenther <rguenther@suse.de>
2121 PR tree-optimization/44964
2122 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
2124 2010-11-10 Martin Jambor <mjambor@suse.cz>
2126 PR tree-optimization/46351
2127 PR tree-optimization/46377
2128 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
2129 aggregate bit-fields.
2131 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2133 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2134 * doc/tm.texi: Regenerate.
2135 * opts-common.c (tm.h): Don't include.
2136 (target_option_translations): Remove.
2137 (decode_cmdline_options_to_array): Don't handle translating options.
2138 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
2139 * config/darwin-driver.c: Don't condition includes on
2140 CROSS_DIRECTORY_STRUCTURE.
2141 (darwin_default_min_version): Make static.
2142 (darwin_driver_init): New. Call darwin_default_min_version if not
2143 CROSS_DIRECTORY_STRUCTURE.
2144 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2145 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
2146 (ASM_SPEC): Add %{static}.
2147 (darwin_default_min_version): Don't declare.
2148 (darwin_driver_init): Declare.
2149 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
2150 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
2151 * config/darwin.opt (all_load, allowable_client,
2152 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
2153 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
2154 exported_symbols_list, filelist, findirect-virtual-calls,
2155 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
2156 framework, fterminated-vtables, gfull, gused, image_base, init,
2157 install_name, multi_module, multiply_defined,
2158 multiply_defined_unused, no_dead_strip_inits_and_terms,
2159 seg_addr_table, seg_addr_table_filename, segaddr,
2160 segs_read_only_addr, segs_read_write_addr, single_module,
2161 umbrella, unexported_symbols_list, weak_reference_mismatches,
2162 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
2163 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
2164 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
2165 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
2166 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
2167 (ASM_SPEC): Add %{static}.
2168 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2169 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2170 (DRIVER_SELF_SPECS): Handle options formerly in
2171 TARGET_OPTION_TRANSLATE_TABLE.
2172 * config/mep/mep.opt (mfar): New.
2173 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2174 (DRIVER_SELF_SPECS): Define. Handle options formerly in
2175 TARGET_OPTION_TRANSLATE_TABLE.
2176 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
2177 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2178 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
2179 ffix-and-continue, findirect-data): New.
2180 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2181 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
2182 (mnofpu): Define mask and use Report here.
2184 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2186 * config/s390/s390.c (s390_emit_prologue): Report the stack
2187 size if -fstack-usage is used.
2189 2010-11-10 Richard Guenther <rguenther@suse.de>
2191 PR tree-optimization/46398
2192 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
2194 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
2197 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
2198 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
2199 GP_REG_OR_PSEUDO_STRICT_P.
2200 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
2201 unexpected alternative.
2202 (*movsf_internal): Likewise.
2203 (indirect_jump): Replace call to non-existant function with call to
2205 (tablejump): Likewise.
2206 * config/iq2000/iq2000.c: Include df.h .
2207 (iq2000_function_arg_advance): Use CONST_CAST2.
2208 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
2209 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
2210 a non-zero function address.
2211 (iq2000_initial_elimination_offset): Add gcc_unreachable for
2212 unexpected value of FROM.
2213 (symbolic_expression_p): Delete.
2214 (iq2000_function_value): Constify func.
2215 (expand_one_builtin): Use expand_normal.
2216 (iq2000_print_operand): Don't print VALUE if calculating it failed.
2218 PR rtl-optimization/44764
2219 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
2222 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
2223 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
2224 with ATTRIBUTE_UNUSED.
2225 (valid_psw_flag): Constify parameter which.
2226 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
2229 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
2230 (mmix_dbx_register_number): Likewise.
2231 * config/mmix/mmix.c: Include df.h .
2232 (mmix_local_alignment): Change argument basic_align and return type
2234 (mmix_dbx_register_number): Change argument and return type to
2236 (mmix_expand_prologue): Use add_reg_note.
2239 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
2240 (spu_split_store): Use aform.
2241 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
2243 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2246 * doc/gty.texi (GTY Options): Clarify that variable_size produces
2247 allocators taking size in bytes, compare with length option. Add
2248 size calculation example.
2249 (Invoking the garbage collector): Ensure that sentences are
2250 followed by two spaces. Describe that pointer fields must be
2251 initialized at ggc_collect call.
2252 (Troubleshooting): New section.
2254 2010-11-09 Jan Hubicka <jh@suse.cz>
2256 PR tree-optimization/40436
2257 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
2258 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
2259 normal instructions; be sure bultin is not implemented in this file;
2260 compute non-zero return cost.
2261 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
2262 * tree-inline.h (eni_weights_d): Add return cost.
2264 2010-11-09 Joseph Myers <joseph@codesourcery.com>
2266 * c-parser.c (c_parser_struct_declaration): Handle declaration
2267 specifiers followed by CPP_CLOSE_BRACE.
2269 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2271 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
2272 split occurs before reload, and we allocate memory at the time of
2273 the split, not during expansion. Add attributes.
2274 (floatsi<mode>2_lfiwax_mem): Ditto.
2275 (floatunssi<mode>2_lfiwzx): Ditto.
2276 (floatunssi<mode>2_lfiwzx_mem): Ditto.
2277 (floatsidf2): Ditto.
2278 (floatunssisf2): Ditto.
2279 (floatunssidf2): Ditto.
2280 (fix_trunc<mode>si2): Ditto.
2281 (fix_trunc<mode>si2_stfiwx): Ditto.
2282 (fix_trunc<mode>si2_internal): Ditto.
2283 (fix_trunc<mode>si2): Ditto.
2284 (fix_trunc<mode>di2): Ditto.
2285 (fixuns_trunc<mode>si2_stfiwx): Ditto.
2286 (floatsisf2): Ditto.
2287 (floatdidf2_mem): Ditto.
2288 (floatunsdidf2_mem): Ditto.
2289 (floatunsdidf2): Ditto.
2290 (floatdisf2_internal1): Ditto.
2291 (floatdisf2_mem): Ditto.
2292 (floatunsdisf2_mem): Ditto.
2293 (floatsi<mode>2_lfiwax_mem2): Delete.
2294 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2295 (fix_trunc<mode>si2_mem): Ditto.
2296 (fixuns_trunc<mode>si2_mem): Ditto.
2297 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
2298 type operations to reduce copying the values to multiple memory slots.
2299 (roundu32<mode>2_fprs): Ditto.
2301 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
2302 PRE_INC, PRE_DEC, PRE_MODIFY.
2303 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
2305 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
2308 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2311 * cfgexpand.c (partition_stack_vars): Call
2312 update_alias_info_with_stack_vars unconditionally.
2313 (update_alias_info_with_stack_vars): Allow unused
2314 unreferenced vars when not optimizing.
2316 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
2318 PR tree-optimization/46036
2319 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
2320 add_to_dst_predicate_list.
2322 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2325 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
2327 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
2328 argument, call dead_debug_reset when adding REG_UNUSED note.
2329 (dead_debug_reset): New function.
2330 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
2331 df_create_unused_note callers.
2333 2010-11-09 Anatoly Sokolov <aesok@post.ru>
2335 * config/fr30/fr30.c: Include "df.h".
2337 2010-11-09 Richard Guenther <rguenther@suse.de>
2339 PR tree-optimization/46355
2340 * tree-loop-distribution.c (tree_loop_distribution): Do not
2341 distribute loops without a single exit.
2343 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2345 PR rtl-optimization/46237
2346 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
2347 saved hard regs if they might get partially clobbered.
2349 2010-11-09 Paul Koning <ni1d@arrl.net>
2351 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
2353 2010-11-09 Richard Guenther <rguenther@suse.de>
2355 PR tree-optimization/46177
2356 * tree-loop-distribution.c (prop_phis): Remove.
2357 (generate_builtin): Re-use the old loop exit edge to avoid
2358 needing to update PHI nodes.
2360 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
2362 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
2363 type of args_size to unsigned HOST_WIDE_INT.
2366 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
2367 * config/t-pnt16-warn: New file.
2368 * config/picochip/picochip.c (picochip_emit_stack_allocate):
2370 (picochip_emit_save_register): Likewise.
2371 (picochip_emit_restore_register): Remove variable insn.
2372 (picochip_legitimize_address): Don't use C++ style comments.
2373 (picochip_legitimize_reload_address): Likewise.
2374 (reorder_var_tracking_notes): Remove variable vliw_start.
2375 (picochip_reorg): Cast first arguemnt to emit_note_after to
2377 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
2378 (picochip_expand_builtin_3op): Likewise.
2379 (picochip_expand_builtin_2opvoid): Likewise.
2380 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
2381 (picochip_expand_array_testport): Likewise.
2382 (picochip_init_builtins): Remove unused variables.
2383 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
2384 to unsigned long, and output it as such.
2385 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2386 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
2387 (schedType): Cast result of picochip_schedule_type to
2388 enum attr_schedType.
2391 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
2392 conditional to type of S.
2393 (mn10300_function_arg): Remove unused variable align.
2394 (mn10300_arg_partial_bytes): Likewise.
2395 * config/mn10300/mn10300.md (attribute cpu): Cast value to
2398 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
2401 * gengtype-parse.c (type): Call get_input_file_name to get file name.
2403 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
2405 * tree.h (contains_placeholder_p): Fix comment.
2406 (type_contains_placeholder_p): Adjust comment.
2407 * tree.c (contains_placeholder_p): Fix comment.
2408 (type_contains_placeholder_1): Do not recurse on pointed-to types and
2410 (type_contains_placeholder_p): Add comment.
2412 2010-11-09 Paul Koning <ni1d@arrl.net>
2414 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
2415 output of byte values.
2417 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2420 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
2423 2010-11-09 Richard Guenther <rguenther@suse.de>
2426 * varasm.c (compute_visible_aliases): New function.
2427 (remove_unreachable_alias_pairs): Aliases make a target available
2428 even though we reclaimed the cgraph node.
2429 (finish_aliases_1): Likewise.
2430 * Makefile.in (varasm.o): Add pointer-set.h dependency.
2432 2010-11-09 Nick Clifton <nickc@redhat.com>
2434 * config/mn10300/mn10300-modes.def: New file.
2436 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
2437 Jeremie Salvucci <jeremie.salvucci@free.fr>
2439 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
2440 (plugin_files, get_file_basename, get_file_realbasename)
2441 (get_file_langdir, error_at_line, gt_files, this_file)
2442 (system_h_file, read_input_list, create_field_all)
2443 (get_file_srcdir_relative_path, get_file_basename)
2444 (get_file_langdir, get_file_gtfilename)
2445 (get_output_file_with_visibility, get_output_file_name)
2446 (struct flist, put_mangled_filename, walk_type)
2447 (put_mangled_filename, finish_root_table, write_roots): Use
2449 (lang_dir_names, num_lang_dirs): Remove static.
2450 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
2451 (main): Use input_file-s.
2453 * gengtype.h: (struct input_file_st, input_file): New type.
2454 (struct fileloc): Use it.
2455 (gt_files, num_gt_files, this_file, system_h_file)
2456 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
2457 (get_input_file_name): New function.
2458 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
2460 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
2461 (get_output_file_name): Ditto.
2463 * gengtype-lex.l (yybegin): Use input_file.
2465 * gengtype-parse.c (parse_error): Use input_file.
2467 2010-11-08 Xinliang David Li <davidxl@google.com>
2469 PR tree-optimization/46316
2470 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
2471 * double-int.h (double_int_mul_with_sign): New function.
2472 * double-int.c (double_int_mul_with_sign): New function.
2474 2010-11-08 Paul Koning <ni1d@arrl.net>
2476 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
2478 2010-11-08 Paul Koning <ni1d@arrl.net>
2480 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
2482 2010-11-08 Paul Koning <ni1d@arrl.net>
2484 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
2487 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2490 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2491 turn on ISA 2.04 rounding instructions for power5.
2493 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
2497 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
2499 (movdi_low_st): Ditto.
2501 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
2502 Richard Henderson <rth@redhat.com>
2505 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
2506 (attribute acc_group): Cast value to enum attr_acc_group.
2507 (*movdi_nodouble+6): Use gen_int_mode.
2508 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
2509 if RTX_CODE is defined or not.
2510 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
2512 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
2513 (frv_frame_access, frv_expand_prologue): Remove unused variables.
2514 (frv_expand_block_clear): Likewise.
2515 (frv_trampoline_init): Use LCT_NORMAL.
2516 (struct frv_packet_group): New struct, broken out of type of
2518 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
2519 use cast in loop counter increment.
2520 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
2521 assigning to io->type.
2522 (bdesc_set): Use rtx_code UNKNOWN in initializer.
2523 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
2524 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
2525 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
2526 (frv_read_argument): Use expand_normal.
2529 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
2530 lm32_legitimate_constant_p.
2531 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2532 * config/lm32/lm32.c (gen_int_relational): Make new block for
2533 LE / LT / LEU / LTU case. Declare variables at start of block.
2534 (lm32_block_move_inline): Use XALLOCAVEC.
2536 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2538 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
2540 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
2542 * gengtype (get_output_file_for_structure): Ensure type is union
2544 (write_splay_tree_allocator_def): Use
2545 get_output_file_with_visibility.
2547 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2549 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
2550 to defined values in case of an error.
2551 (s390_option_override): Skip further processing if the -march
2552 parameter wasn't recognized.
2554 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
2556 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
2557 assert that REG is a hard register number before using it as an index.
2560 * config/i386/i386.c (ix86_expand_split_stack_prologue):
2561 Avoid warnings when HOST_WIDE_INT is 32 bit.
2563 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
2566 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
2567 (sparc_promote_prototypes): Likewise.
2568 (sparc_promote_function_mode): Promote in 32-bit mode as well.
2569 (sparc_return_in_memory): Remove superfluous parentheses.
2570 (sparc_struct_value_rtx): Fix long lines.
2571 (sparc_function_value_1): Promote in 32-bit mode as well.
2573 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
2575 PR rtl-optimization/45352
2576 * sel-sched.c (find_best_expr): Do not set pneed_stall when
2577 the variable_issue hook is not implemented.
2578 (fill_insns): Remove dead variable stall_iterations.
2579 (init_seqno_1): Force EBB start for resetting sched cycles on any
2580 successor blocks of the rescheduled region.
2581 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
2582 (reset_sched_cycles_in_current_ebb): Add debug printing.
2583 New variable issued_insns. Advance state when we have issued
2586 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
2588 * gengtype (main): Get here's position using POS_HERE macro for
2591 2010-11-07 Ian Lance Taylor <iant@google.com>
2594 * config/i386/i386.c (split_stack_fn_large): New static variable.
2595 (ix86_expand_split_stack_prologue): Handle large model.
2597 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
2599 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
2600 all possible addressing modes.
2602 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
2604 PR tree-optimization/46346
2605 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
2607 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
2609 * config/mips/mips.c: Revert previous patch.
2610 * config/mips/mips.md: Likewise.
2612 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
2614 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
2615 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
2616 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
2617 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
2618 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
2620 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
2621 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
2622 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
2623 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
2625 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
2628 * c-decl.c (lookup_label): Labels can only be referenced in a
2630 (store_parm_decls_oldstyle): Skip erroneous parameters.
2632 2010-11-06 Anatoly Sokolov <aesok@post.ru>
2634 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2635 LIBCALL_VALUE): Remove macros.
2636 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2637 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2638 (fr30_function_value_regno_p, fr30_function_value,
2639 fr30_libcall_value): New functions.
2641 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
2644 * target.def (generate_internal_label): New asm_out hook.
2645 * output.h (default_generate_internal_label): Declare.
2646 * varasm.c (default_generate_internal_label): Define.
2648 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2651 * doc/extend.tex (format): Document NSString extension.
2652 (format_arg): Likewise.
2653 (Darwin Format Checks): New section.
2654 * doc/tm.texi: Document string object hooks (generated).
2655 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
2656 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2657 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2658 * target.def (objc_construct_string_object): Rename, amend
2660 (string_object_ref_type_p): New hook.
2661 (check_string_object_format_arg): New hook.
2662 * c-parser.c (c_parser_attributes): Allow objective-c class names as
2663 attribute identifiers.
2664 * config/darwin-c.c (darwin_cfstring_ref_p): New.
2665 (darwin_check_cfstring_format_arg): New.
2666 (darwin_additional_format_types): New.
2667 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
2668 (darwin_check_cfstring_format_arg): New.
2669 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
2670 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2671 (TARGET_N_FORMAT_TYPES): New.
2672 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2674 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
2675 Pascal Obry <obry@adacore.com>
2677 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
2678 in 64-bit mode and 17 otherwise.
2680 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2683 * var-tracking.c (emit_note_insn_var_location): Make sure that
2684 call related var location notes come before the normal ones.
2686 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
2689 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
2692 2010-11-05 Ian Lance Taylor <iant@google.com>
2694 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
2696 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2699 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
2700 pointer_set_contains if DECL_NAME is NULL.
2702 2010-11-05 Ian Lance Taylor <iant@google.com>
2705 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
2706 request enough additional space for alignment, and force alignment.
2708 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
2710 * config/i386/i386.c (legitimate_pic_address_disp_p):
2711 Handle UNSPEC_PCREL.
2712 (ix86_legitimate_address_p): Likewise.
2713 (legitimize_pic_address): Likewise.
2714 (output_pic_addr_const): Likewise.
2715 (ix86_delegitimize_address): Likewise.
2716 (ix86_find_base_term): Likewise.
2717 (memory_address_length): Likewise.
2718 (x86_output_mi_thunk): Handle special case x64
2719 for non local binding.
2720 * config/i386/i386.md (UNSPEC_PCREL): New.
2721 * config/i386/winnt.c (i386_pe_binds_local_p):
2722 Allow weak symbol for x64 windows with non-local binding.
2724 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2727 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
2728 instead of EXPAND_NORMAL for base expansion.
2730 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
2732 * config.gcc: Support --with-fpmath=avx for x86.
2733 * config/i386/avxmath.h: New.
2734 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
2736 2010-11-05 Ian Lance Taylor <iant@google.com>
2738 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
2739 * gengtype.c (walk_type): Don't recognize descbits option.
2741 2010-11-05 Joseph Myers <joseph@codesourcery.com>
2743 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
2744 WORD_SWITCH_TAKES_ARG): Remove.
2745 * doc/options.texi (Args): Document.
2746 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
2747 * doc/tm.texi: Regenerate.
2748 * opt-functions.awk (switch_flags): Handle Args.
2749 * opts-common.c: Update comment on tm.h include.
2750 (decode_cmdline_option): Handle options with multiple arguments.
2751 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
2752 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
2753 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2754 CL_COMMON): Update values.
2755 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
2756 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
2757 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
2758 sectobjectsymbols, sectorder, segcreate, segprot): New.
2760 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
2761 Uros Bizjak <ubizjak@gmail.com>
2763 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
2764 256bit AVX register is used.
2765 (ix86_expand_vector_move_misalign): Likewise.
2766 (ix86_expand_vector_move): Replace use_avx256_p with
2767 VALID_AVX256_REG_MODE.
2769 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
2772 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
2773 change. Set $@-warn.o to -Wno-error.
2776 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
2777 comparing it to a signed value.
2780 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
2782 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
2786 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
2787 (m32c_function_arg). Add comma between arguments two and three.
2788 (m32c_promote_prototypes): Remove declaration.
2789 (current_function_special_page_vector): Likewise.
2790 (m32c_regno_reg_class): Change return type to enum reg_class.
2791 (m32c_pushm_popm): Use add_reg_note.
2792 (m32c_push_rounding): Change return type to unsigned int.
2793 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
2795 (m32c_insert_attributes): Constify variable name.
2796 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
2797 (m32c_prepare_shift): Remove variable lref.
2798 (m32c_expand_movcc): Remove variable cmp.
2799 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
2800 (m32c_compare_redundant): Remove variable op2.
2801 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
2802 (m32c_pragma_memregs): Assign the number to target_memregs.
2803 (m32c_pragma_address): Remove variable var_str.
2804 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
2806 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
2807 * config/m32c/bitops.md (andsi3): Add default case to switch.
2808 (iorsi3, xorsi3): Likewise.
2809 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
2810 * config/m32c/jump.md (call, call_value): Likewise.
2811 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
2812 (m32c_regno_reg_class): Likewise.
2813 (current_function_special_page_vector): Declare.
2815 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2817 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
2819 PR tree-optimization/46099
2820 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
2821 if it is NULL and uid wasn't found in the hash table. Just fold the
2822 result if it is NULL otherwise. Insert other potentially needed
2823 stmts right before current stmt instead of on the entry edge.
2824 (struct elv_data): Add gsi and reset fields.
2825 (eliminate_local_variables_1): Adjust caller. If take_address_of
2826 failed for debug stmt, set dta->reset and return.
2827 (eliminate_local_variables_stmt): Change STMT argument for GSI,
2828 pass GSI through to the callback, handle resetting of debug stmts.
2829 (eliminate_local_variables): Adjust caller. Process debug stmts
2833 * gimplify.c (gimplify_asm_expr): If a "m" input is a
2834 {pre,post}{in,de}crement, fail.
2837 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
2838 * tree-pretty-print.c (dump_generic_node): Likewise.
2839 (op_code_prio): Likewise.
2840 * cfgexpand.c (expand_debug_expr): Likewise.
2842 2010-11-04 Paul Koning <ni1d@arrl.net>
2844 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
2847 2010-11-04 Chao-ying Fu <fu@mips.com>
2849 * configure.ac: Test assembler support for DSP Rev1 mult.
2850 * configure: Regenerate.
2851 * config.in: Regenerate.
2852 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
2853 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
2854 (CODE_FOR_mips_multu): New define.
2855 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
2857 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
2858 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
2859 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
2860 New define_expand patterns.
2861 * config/mips/constraints.md (ka): Update the constraint to test
2862 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
2863 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
2864 mips_multu): Delete.
2865 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
2866 Change target constraint to "ka".
2867 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
2868 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
2869 Emit the accumulator destination when ISA_HAS_DSP_MULT.
2870 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
2871 Emit the accumulator destination when ISA_HAS_DSP_MULT.
2872 (<u>maddsidi4): Likewise.
2873 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
2874 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
2876 2010-11-04 Paul Koning <ni1d@arrl.net>
2878 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
2880 2010-11-04 Paul Koning <ni1d@arrl.net>
2882 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
2884 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2886 Fixed using the Objective-C 2.0 dot-syntax with class names.
2887 * c-parser.c (c_parser_next_token_starts_declspecs): In
2888 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
2889 (c_parser_next_token_starts_declaration): Same.
2890 (c_parser_postfix_expression): Parse the Objective-C 2.0
2891 dot-syntax with a class name.
2893 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
2895 * final.c (compute_alignments): Compute/free loop info all the time.
2896 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
2897 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
2898 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
2899 * config/rs6000/rs6000.c (cfgloop.h): Include.
2900 (can_override_loop_align): New.
2901 (rs6000_option_override_internal): Set it.
2902 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
2903 (rs6000_loop_align): New function.
2904 (rs6000_loop_align_max_skip): Likewise.
2906 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2909 * collect2.c (main): Print --help output to stdout. Do not
2910 exit right away, so ld --help is appended. Add empty lines
2911 to separate output suitably.
2913 2010-11-04 Jakub Jelinek <jakub@redhat.com>
2915 PR tree-optimization/46233
2916 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
2917 after calling analyze_function, not before.
2920 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
2921 instead of build_va_arg_indirect_ref.
2922 * config/spu/spu.c (spu_va_start): Likewise.
2923 * config/s390/s390.c (s390_va_start): Likewise.
2925 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
2928 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
2929 if the innermode is not vector mode, determine the mode of a subreg
2930 by using mode_for_size of inner_size.
2932 2010-11-04 Richard Guenther <rguenther@suse.de>
2934 PR rtl-optimization/46183
2935 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
2936 (execute_rtl_pre): Likewise.
2937 (execute_rtl_hoist): Likewise.
2939 2010-11-04 Richard Guenther <rguenther@suse.de>
2941 PR tree-optimization/46068
2942 * ipa-split.c (consider_split): Remove gcc_unreachable.
2944 2010-11-04 Richard Guenther <rguenther@suse.de>
2946 * tree-nested.c (build_addr): Use build_fold_addr_expr.
2948 2010-11-04 Richard Guenther <rguenther@suse.de>
2950 PR tree-optimization/45991
2951 * gimplify.c (force_gimple_operand_1): Use the provded test
2952 function in the initial test.
2954 2010-11-04 Jeff Law <law@redhat.com>
2956 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
2957 of readonly memory equivalances for const/pure calls.
2959 2010-11-04 Richard Guenther <rguenther@suse.de>
2961 PR tree-optimization/45733
2962 * tree-vect-stmts.c (reverse_vec_elements): Honor the
2963 permute builtins function return type.
2965 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
2968 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
2969 as an index, check it is not INVALID_REGNUM.
2972 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
2974 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
2977 * function.c (thread_prologue_and_epilogue_insns): Add
2978 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
2981 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
2984 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
2985 (pdp11_preferred_reload_class): Rename class to rclass.
2986 (pdp11_preferred_output_reload_class): Likewise.
2987 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
2989 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
2992 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
2993 iteration variables to enum machine_mode.
2996 * config/h8300/h8300.c: Include df.h.
2997 (push, pop): Use add_reg_note.
2998 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
2999 (compute_a_shift_cc): Likewise.
3000 (expand_a_shift): Argument code has type enum rtx_code.
3001 (struct shift_insn): Member cc_valid has type enum attr_cc.
3002 (struct shift_info) <cc_inline, cc_special>: Likewise.
3004 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
3005 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
3007 2010-11-04 Ira Rosen <irar@il.ibm.com>
3009 PR tree-optimization/46213
3010 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
3011 MINUS_EXPR only if the first operand is reduction operand.
3013 2010-11-04 Richard Guenther <rguenther@suse.de>
3014 Richard Henderson <rth@redhat.com>
3016 * tree.def (FMA_EXPR): New tree code.
3017 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
3018 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
3019 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
3020 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
3021 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3022 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
3023 (execute_optimize_widening_mul): Call it. Reorganize to allow
3024 dead stmt removal. Move TODO flags ...
3025 (pass_optimize_widening_mul): ... here.
3026 * flag-types.h (enum fp_contract_mode): New enum.
3027 * common.opt (flag_fp_contract_mode): New variable.
3028 (-ffp-contract): New option.
3029 * opts.c (common_handle_option): Handle it.
3030 * doc/invoke.texi (-ffp-contract): Document.
3031 * tree.h (fold_fma): Declare.
3032 * builtins.c (fold_fma): New function.
3033 (fold_builtin_fma): Likewise.
3034 (fold_builtin_3): Call it for fma.
3035 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
3036 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
3037 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
3039 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
3041 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
3042 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
3043 (fms_optab, fnma_optab, fnms_optab): New defines.
3044 * gimplify.c (gimplify_expr): Handle binary truth expressions
3045 explicitly. Handle FMA_EXPR.
3046 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
3049 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3050 Richard Guenther <rguenther@suse.de>
3052 * passes.c (init_optimization_passes): Move veclower after SSA.
3053 * tree-vect-generic.c (uniform_vector_p): New function.
3054 (expand_vector_operations_1): Handle conversion.
3055 (pass_lower_vector): Update SSA form.
3057 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
3059 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
3060 plugin capabilities.
3061 * configure: Regenerate.
3063 2010-11-03 Xinliang David Li <davidxl@google.com>
3066 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
3067 Adjust cbase if the use stmt is after iv update.
3069 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3071 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
3073 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3075 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
3076 comment. Pass true to the last argument of output_stack_adjust.
3078 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3081 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
3082 if 256bit AVX register is used.
3084 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3086 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
3087 xsmindp/xsmaxdp on VSX for single precision min/max.
3088 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
3089 (vsx_sminsf3): Ditto.
3091 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3093 * combine.c (try_combine): Fix formatting issues, improve comments and
3096 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3098 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
3099 of the result before building binary expressions.
3101 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3103 PR rtl-optimization/45865
3104 * Makefile.in (df-problems.o): Revert revision 164552.
3105 * basic-block.h (enum bb_flags): Likewise.
3106 * cfgcleanup.c (block_was_dirty): Likewise.
3107 (try_forward_edges): Likewise.
3108 (try_crossjump_bb): Likewise.
3109 (try_head_merge_bb): Likewise.
3110 (try_optimize_cfg): Likewise.
3111 (cleanup_cfg): Likewise.
3112 * df-core.c (df_set_bb_dirty): Likewise.
3113 * df-problems.c: Likewise.
3114 (df_simulate_find_uses): Likewise.
3115 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
3116 (find_memory, find_memory_store): Likewise.
3117 (can_move_insns_across): Likewise.
3118 * df.h (can_move_insns_across): Likewise.
3119 * ifcvt.c (find_memory): Likewise.
3120 (dead_or_predicable): Likewise.
3122 2010-11-03 Richard Guenther <rguenther@suse.de>
3125 * predict.c (strip_predict_hints): Simply DCE builtin expect if
3126 the result is unused.
3128 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3130 PR tree-optimization/46009
3131 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
3132 cond_if_else_store_replacement if bb1 and bb2 have the same
3134 (cond_store_replacement): Use gimple_assign_single_p, don't
3135 check if rhs is SSA_NAME or invariant. Call release_defs for
3137 (cond_if_else_store_replacement): New function.
3139 2010-11-03 Richard Guenther <rguenther@suse.de>
3141 * opts.c (finish_options): Properly check for all WHOPR
3142 flags before complaining about -flto-partition.
3144 2010-11-04 Alan Modra <amodra@gmail.com>
3146 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
3147 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
3149 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
3150 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
3151 on input, "r" on output.
3153 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3155 Implemented -fobjc-std=objc1 flag.
3156 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
3158 * doc/standards.texi (Standards): Updated the section on
3159 Objective-C; mention support for Objective-C 2.0 features and the
3160 new -fstd-objc=objc1 flag to disable them.
3162 2010-11-03 Richard Guenther <rguenther@suse.de>
3165 * dwarf2out.c (scope_die_for): Properly detect global scope.
3167 2010-11-03 Richard Guenther <rguenther@suse.de>
3169 PR tree-optimization/46190
3170 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3171 Properly compute peel iterations.
3173 2010-11-03 Richard Guenther <rguenther@suse.de>
3175 PR tree-optimization/46286
3176 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
3177 re-allocated vector data.
3179 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3182 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
3183 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
3186 2010-11-03 Richard Guenther <rguenther@suse.de>
3188 PR tree-optimization/46217
3189 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
3191 (execute_update_addresses_taken): Likewise.
3193 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
3196 * targhooks.c (targhook_words_big_endian): New function.
3197 (targhook_float_words_big_endian): Likewise.
3198 * targhooks.h (targhook_words_big_endian): Declare.
3199 (targhook_float_words_big_endian): Likewise.
3200 * target.def (words_big_endian, float_words_big_endian): New hooks.
3202 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3204 PR tree-optimization/46165
3205 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
3206 a normal call into noreturn call.
3208 2010-11-03 Richard Guenther <rguenther@suse.de>
3211 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
3214 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3216 PR tree-optimization/46107
3217 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
3218 if cfg_hook_duplicate_loop_to_header_edge failed.
3220 2010-11-03 Ian Lance Taylor <iant@google.com>
3223 * config.gcc: Don't set lto_binary_reader.
3224 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3225 (Configuration): Mention --disable-lto. Remove --with-libelf
3228 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3231 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
3233 * gcse.c (insert_insn_end_basic_block): Likewise.
3235 PR rtl-optimization/46034
3236 PR rtl-optimization/46212
3237 PR rtl-optimization/46248
3238 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
3239 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
3240 before i0dest -> i0src substitution and pass 1 instead of 0 as last
3241 argument to subst on i2pat.
3243 2010-11-02 Ian Lance Taylor <iant@google.com>
3245 * configure.ac: Use AC_SYS_LARGEFILE.
3246 * configure: Rebuild.
3247 * config.in: Rebuild.
3249 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
3251 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
3253 * c-typeck.c (build_function_call_vec): Likewise.
3254 * cfgexpand.c (expand_debug_expr): Likewise.
3255 * cgraphunit.c (assemble_thunk): Likewise.
3256 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
3257 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
3258 (fold_binary_loc, fold_ternary_loc): Likewise.
3259 * gimple-fold.c (get_symbol_constant_value): Likewise.
3260 * gimple-low.c (lower_builtin_setjmp): Likewise.
3261 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
3262 * gimplify.c (gimplify_init_constructor): Likewise.
3263 * lambda.h (build_linear_expr): Likewise.
3264 * omp-low.c (omp_reduction_init): Likewise.
3265 * tree-inline.c (remap_ssa_name): Likewise.
3266 * tree-object-size.c (compute_object_sizes): Likewise.
3267 * tree-sra.c (init_subtree_with_zero): Likewise.
3268 (sra_ipa_modify_assign): Likewise.
3269 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
3270 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
3271 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
3272 (undistribute_ops_list): Likewise.
3273 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
3274 * tree-vect-stmts.c (vectorizable_call): Likewise.
3275 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
3276 (build_zero_cst): Handle more cases directly. Update comment.
3278 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3280 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
3281 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
3283 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
3284 and call ix86_split_call_vzeroupper instead of
3285 ix86_split_call_pop_vzeroupper.
3286 (*call_pop_1_vzeroupper): Likewise.
3287 (*sibcall_pop_1_vzeroupper): Likewise.
3288 (*call_value_pop_0_vzeroupper): Likewise.
3289 (*call_value_pop_1_vzeroupper): Likewise.
3290 (*sibcall_value_pop_1_vzeroupper): Likewise.
3292 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3294 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
3296 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
3298 * basic-block.h (insert_insn_end_bb_new): Delete.
3299 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
3301 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
3302 H.J. Lu <hongjiu.lu@intel.com>
3304 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
3305 (ix86_split_call_pop_vzeroupper): Likewise.
3307 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
3308 (ix86_expand_call): Conditionally decorate calls with
3309 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
3310 (ix86_split_call_vzeroupper): New.
3311 (ix86_split_call_pop_vzeroupper): Likewise.
3313 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
3314 (*call_pop_0_vzeroupper): New insn_and_split pattern.
3315 (*call_pop_1_vzeroupper): Likewise.
3316 (*sibcall_pop_1_vzeroupper): Likewise.
3317 (*call_0_vzeroupper): Likewise.
3318 (*call_1_vzeroupper): Likewise.
3319 (*sibcall_1_vzeroupper): Likewise.
3320 (*call_1_rex64_vzeroupper): Likewise.
3321 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
3322 (*call_1_rex64_large_vzeroupper): Likewise.
3323 (*sibcall_1_rex64_vzeroupper): Likewise.
3324 (*call_value_pop_0_vzeroupper): Likewise.
3325 (*call_value_pop_1_vzeroupper): Likewise.
3326 (*sibcall_value_pop_1_vzeroupper): Likewise.
3327 (*call_value_0_vzeroupper): Likewise.
3328 (*call_value_0_rex64_vzeroupper): Likewise.
3329 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
3330 (*call_value_1_vzeroupper): Likewise.
3331 (*sibcall_value_1_vzeroupper): Likewise.
3332 (*call_value_1_rex64_vzeroupper): Likewise.
3333 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
3334 (*call_value_1_rex64_large_vzeroupper): Likewise.
3335 (*sibcall_value_1_rex64_vzeroupper): Likewise.
3337 2010-11-02 Ian Lance Taylor <iant@google.com>
3340 * config.gcc: Revert last patch: set lto_binary_reader.
3342 2010-11-02 Richard Guenther <rguenther@suse.de>
3344 PR tree-optimization/46149
3345 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
3346 non-indirect MEM_REF variants.
3348 2010-11-02 Richard Guenther <rguenther@suse.de>
3350 PR tree-optimization/46216
3351 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3352 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
3354 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3356 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
3357 (*-*-osf*): Likewise.
3358 * configure: Regenerate.
3360 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3362 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
3363 for Intel Core 2 and Core i7.
3365 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
3367 Model decoder of Core 2/i7 for multipass scheduling.
3369 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
3370 New type to hold target-specific data for multipass scheduling.
3371 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3372 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
3374 (core2i7_secondary_decoder_max_insn_size,)
3375 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
3376 New static variables.
3377 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
3378 ([_]ix86_first_cycle_multipass_data): New static variable.
3379 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
3380 Implement targetm.sched hooks.
3381 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
3383 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
3384 Implement new targetm.sched hooks.
3385 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
3386 targetm.sched hook to install multipass scheduling hooks on demand.
3388 * doc/tm.texi.in: Document new targetm.sched hooks.
3389 * doc/tm.texi: Regenerate.
3391 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3392 (first_cycle_multipass_data_t): New typedef.
3393 (struct choice_entry: target_data): New field.
3394 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
3395 to allow target model restrictions not represented in DFA.
3396 (choose_ready, schedule_block): Update.
3397 (sched_extend_ready_list, sched_finish_ready_list): Call new target
3398 hooks to initialize target-specific data for multipass scheduling.
3399 * sched-int.h (max_issue): Update declaration.
3400 * sel-sched.c (choose_best_insn): Update.
3401 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
3402 (first_cycle_multipass_{init, fini}): Define and document new
3403 targetm.sched hooks.
3405 2010-11-02 Richard Guenther <rguenther@suse.de>
3407 PR tree-optimization/46184
3408 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
3409 input vector type from the reduction operand as well.
3411 2010-11-02 Richard Guenther <rguenther@suse.de>
3413 PR tree-optimization/46177
3414 * tree-loop-distribution.c (prop_phis): Use
3415 mark_virtual_phi_result_for_renaming.
3417 2010-11-02 Martin Jambor <mjambor@suse.cz>
3420 * tree.c (get_binfo_at_offset): Bail out on artificial
3421 fields. Identify primary bases according to their offsets.
3423 2010-11-02 Martin Jambor <mjambor@suse.cz>
3425 PR tree-optimization/45875
3426 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
3427 (gimple_get_relevant_ref_binfo): Detect primary bases according to
3430 2010-11-02 Ian Lance Taylor <iant@google.com>
3432 * doc/install.texi (Configuration): Note in two places that Java
3433 is not enabled by default.
3435 2010-11-02 Ian Lance Taylor <iant@google.com>
3437 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3438 (Configuration): Mention --disable-lto. Remove --with-libelf
3441 2010-11-02 Ian Lance Taylor <iant@google.com>
3443 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
3444 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
3445 LIBELFINC. Remove HAVE_libelf.
3446 * config.gcc: Don't set lto_binary_reader.
3447 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
3448 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
3449 (LIBS): Remove $(LIBELFLIBS).
3450 (INCLUDES): Remove $(LIBELFINC).
3451 * configure: Rebuild.
3452 * config.in: Rebuild.
3454 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
3456 * config/microblaze/microblaze-protos.h (function_arg): Delete.
3457 (function_arg_advance): Delete.
3458 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
3459 (FUNCTION_ARG): Delete.
3460 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
3461 (microblaze_function_arg_advance): ...this. Make static. Take a
3462 const_tree and a bool.
3463 (function-arg): Rename to...
3464 (microblaze_function_arg): ...this. Make static. Take a const_tree
3466 (microblaze_expand_prologue): Call targetm.calls.function_arg and
3467 targetm.calls.function_arg_advance.
3468 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3470 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
3472 Merge from FSF "apple/trunk" branch.
3474 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
3475 * config/darwin.opt: .. to here.
3476 (matt-stubs): New option.
3477 * config/i386/darwin.opt: Delete.
3478 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
3479 (MACHO_DYNAMIC_NO_PIC_P): New.
3480 (MACHOPIC_INDIRECT): New.
3481 (MACHOPIC_PURE): New.
3482 * config/i386/darwin.h (DARWIN_X86) Define to 1.
3483 (MACHOPIC_ATT_STUB): New.
3484 (CC1_SPEC): Do not remove mdynamic-no-pic.
3485 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3486 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3487 (FUNCTION_PROFILER): Correct over-length line.
3488 (SUBTARGET_OVERRIDE_OPTIONS): New.
3489 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3490 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
3491 (legitimate_constant_p): Handle mdynamic-no-pic.
3492 (ix86_legitimate_address_p): Likewise.
3493 (ix86_legitimize_address): Likewise.
3494 (ix86_expand_move): Likewise.
3495 (machopic_output_stub): Update for ATT-style stubs and
3497 * config/darwin-protos.h (machopic_symbol_defined_p): New.
3498 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
3499 TARGET_DYNAMIC_NO_PIC: Remove.
3500 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3501 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3502 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
3503 Remove handling of mdynamic-no-pic.
3504 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
3506 (machopic_symbol_defined_p): Do not try to use current_function_decl
3507 when generating _get_pc thunks within stubs.
3508 (machopic_indirect_data_reference): Rework for direct conditionals
3509 rather than #ifdefs, add x86 mdynamic-no-pic
3510 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
3512 (darwin_override_options): Handle mdynamic-no-pic here.
3513 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
3514 (machopic_lazy_symbol_ptr3_section): New.
3515 (machopic_picsymbol_stub2_section): New.
3516 (machopic_picsymbol_stub3_section): New.
3517 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
3518 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3519 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3520 Moved common definition from x86 and rs6000.
3521 (MACHO_DYNAMIC_NO_PIC_P): Override value.
3522 (MACHOPIC_INDIRECT): Likewise.
3523 (MACHOPIC_PURE): Likewise.
3524 * config.gcc (x86-darwin-*): Remove darwin.opt.
3526 2010-11-02 Jakub Jelinek <jakub@redhat.com>
3529 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
3530 instead of gsi_last_bb.
3532 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3533 Maxim Kuvyrkov <maxim@codesourcery.com>
3535 * config/i386/i386.c (cpu_names): Add "corei7".
3536 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
3538 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3539 Maxim Kuvyrkov <maxim@codesourcery.com>
3541 Tune alignment for Intel Core i7
3543 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
3544 (enum processor_type): Update comment. Add entries for Core i7.
3545 * config/i386-c.c (ix86_target_macros_internal): Update.
3546 * config/i386.c (m_COREI7{_32,_64}): New macros.
3547 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
3548 (processor_target_table): Tune alignment for Core i7.
3549 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
3551 * doc/invoke.texi: Document "corei7" option value.
3553 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3554 Maxim Kuvyrkov <maxim@codesourcery.com>
3555 H.J. Lu <hjl.tools@gmail.com>
3557 Basic support for Intel Core i7
3559 * i386.c (ix86_option_override_internal): Add entry for corei7, use
3560 generic tuning. Use generic32 when compiling for 32-bit ABI.
3562 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
3564 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
3565 sections and call darwin_asm_dwarf_section() to handle them.
3566 (darwin_asm_dwarf_section): New.
3567 (darwin_file_start): Remove code emitting dwarf section symbols.
3569 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
3571 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
3572 explicitly disable stack protection when building libgcc.
3573 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
3575 2010-11-01 Jason Merrill <jason@redhat.com>
3577 * fold-const.c (fold_indirect_ref_1): Handle folding
3578 POINTER_PLUS_EXPR to ARRAY_REF.
3580 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
3582 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
3583 (sh_delegitimize_address): New function.
3585 2010-11-01 Joseph Myers <joseph@codesourcery.com>
3587 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
3588 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
3589 (CC1_SPEC): Don't handle -target.
3590 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
3592 * config/darwin.opt (Zallowable_client, Zbundle_loader,
3593 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
3594 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
3595 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
3596 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
3597 Zweak_reference_mismatches, client_name, compatibility_version,
3598 current_version, dylinker_install_name, pagezero_size,
3599 read_only_relocs, seg1addr, segs_read_only_addr,
3600 segs_read_write_addr, sub_library, sub_umbrella): New.
3601 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
3602 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
3603 * config/freebsd.opt: New.
3604 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
3605 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
3606 * config/rpath.opt: New.
3607 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
3608 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
3611 2010-11-01 Joseph Myers <joseph@codesourcery.com>
3613 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
3614 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
3615 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
3616 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
3617 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
3618 Document that options in .opt files do not need to be included.
3619 * doc/tm.texi: Regenerate.
3620 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
3621 * opts-common.c: Update comment on tm.h include.
3622 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
3623 * system.h (SWITCH_TAKES_ARG): Poison.
3624 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
3625 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
3627 (LINK_COMMAND_SPEC_A): Don't include %{x}.
3628 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3629 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
3630 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
3631 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3632 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
3633 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
3634 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
3635 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
3636 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3637 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
3638 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
3639 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
3640 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
3641 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
3642 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
3643 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
3644 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
3645 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
3646 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
3647 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
3648 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
3649 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
3650 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3652 2010-11-01 Paul Koning <ni1d@arrl.net>
3654 * config/pdp11/pdp11.md: Use iterators.
3655 (addqi3, subqi3, iorsi3, xorsi3): Delete.
3657 2010-11-01 Steve Ellcey <sje@cup.hp.com>
3659 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
3661 * libgcov.c (__gcov_indirect_call_profiler): Set
3662 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
3663 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
3665 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
3667 PR tree-optimization/46259
3670 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3671 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3672 build_vector_from_val.
3674 2010-11-01 DJ Delorie <dj@redhat.com>
3676 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
3677 as well as an assertion.
3679 2010-11-01 Paul Koning <ni1d@arrl.net>
3681 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
3682 complex modes in memory.
3684 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
3686 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
3688 2010-11-01 Jakub Jelinek <jakub@redhat.com>
3691 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
3692 (cfa_base_offset): New variable.
3693 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
3694 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
3696 (vt_init_cfa_base): Initialize cfa_base_offset.
3698 2010-11-01 Alan Modra <amodra@gmail.com>
3701 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
3702 and savres_strategy.
3703 (stack_info): New file scope var.
3704 (rs6000_init_machine_status): Init stack_info.
3705 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
3706 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3707 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
3708 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
3709 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
3710 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
3711 (rs6000_savres_strategy): Rewrite.
3712 (rs6000_stack_info): Use "stack_info" in place of local "info".
3713 Return cached stack info when reload_completed unless ENABLE_CHECKING
3714 in which case confirm newly calculated stack info matches old info.
3715 Delay calculation of lr_save_p, set it for out of line gp save/restore
3716 as well as fp. Call rs6000_savres_strategy from here..
3717 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
3718 (rs6000_output_function_prologue): Use info->savres_strategy to
3719 determine whether fp save/restore externs need to be emitted.
3721 2010-10-31 Jason Merrill <jason@redhat.com>
3723 * tree.h (EXPR_LOC_OR_HERE): New macro.
3724 * builtins.c (c_strlen): Use it.
3725 * c-decl.c (build_enumerator): Likewise.
3726 * gimplify.c (internal_get_tmp_var): Likewise.
3727 (shortcut_cond_expr): Likewise.
3728 (gimplify_one_sizepos): Likewise.
3730 2010-10-31 Richard Henderson <rth@redhat.com>
3732 * config/i386/cygming.h (TARGET_SEH): New.
3733 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
3734 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
3735 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
3736 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
3737 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
3738 (ASM_DECLARE_FUNCTION_SIZE): New.
3739 * config/i386/i386-protos.h: Update.
3740 * config/i386/i386.c (ix86_option_override_internal): Enable
3741 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
3742 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
3743 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
3744 (ix86_compute_frame_layout): For SEH, disable
3745 use_fast_prologue_epilogue, move frame pointer to the end of
3746 the frame. Initialize hfp_save_offset.
3747 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
3748 at end of prologue for SEH.
3749 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
3750 emit blockage at beginning of epilogue.
3751 (ix86_expand_binary_operator): After reload, emit LEA if needed.
3752 (ix86_output_call_insn): New.
3753 * config/i386/i386.h (TARGET_SEH): New.
3754 (struct machine_function): Add member seh.
3755 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
3756 * config/i386/winnt.c (struct seh_frame_state): New.
3757 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
3758 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
3759 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
3760 i386_pe_start_function, i386_pe_end_function): New.
3762 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
3763 as CFA_STORE in rules 12 and 13.
3765 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
3767 PR tree-optimization/46142
3768 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
3769 accommodate third function argument.
3771 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3773 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
3775 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3777 * fold-const.c (build_zero_vector): Use build_vector_from_val.
3778 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3779 (get_initial_def_for_reduction): Likewise.
3780 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3781 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3782 * tree.c (build_one_cst): Likewise.
3783 (build_vector_from_val): Use types_compatible_p for assert.
3785 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3787 * emit-rtl.c (mark_used_flags): New function.
3788 (set_used_flags, reset_used_flags): Call it.
3790 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
3793 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
3794 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
3796 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
3799 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
3800 (ix86_compat_aligned_value_p): This.
3801 (ix86_old_function_arg_boundary): Renamed to ...
3802 (ix86_compat_function_arg_boundary): This. Updated.
3803 (ix86_contains_aligned_value_p): New.
3804 (ix86_function_arg_boundary): Align long double parameters on
3805 stack to 4byte in 32bit.
3807 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3809 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3810 * c-parser.c (c_parser_objc_at_property_declaration): Removed
3811 parsing of RID_COPIES and RID_IVAR. Updated call to
3812 objc_add_property_declaration.
3813 * c-typecheck.c (build_component_ref): Call
3814 objc_maybe_build_component_ref instead of objc_build_setter_call.
3815 Use objc_is_property_ref to improve Objective-C checks.
3816 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
3817 of objc_build_getter_call.
3819 2010-10-29 Paul Koning <ni1d@arrl.net>
3821 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3822 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
3823 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
3824 (REG_OK_STRICT): Move description.
3826 2010-10-29 Paul Koning <ni1d@arrl.net>
3828 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
3830 2010-10-29 Paul Koning <ni1d@arrl.net>
3832 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
3834 2010-10-29 Paul Koning <ni1d@arrl.net>
3837 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
3839 2010-10-29 Richard Henderson <rth@redhat.com>
3842 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
3845 2010-10-29 Paul Koning <ni1d@arrl.net>
3847 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
3848 register to register move.
3850 2010-10-29 Paul Koning <ni1d@arrl.net>
3852 * config/pdp11/pdp11.c (print_operand_address): Correct handling
3853 of integer constant addresses, delete vax-only logic.
3855 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3857 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
3858 a conditional expression.
3860 2010-10-29 Paul Koning <ni1d@arrl.net>
3862 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
3863 instruction encoding.
3865 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3866 Andrew Pinski <pinskia@gmail.com>
3868 * tree.h (build_vector_from_val): Declare.
3869 * tree.c (build_vector_from_val): New function.
3870 * c-typeck.c (build_binary_op): Handle vector shifting.
3871 * doc/extend.texi: Description of the vector shifting operation.
3873 2010-10-29 Paul Koning <pkoning@equallogic.com>
3875 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
3876 pdp11_secondary_memory_needed): Declare.
3877 * config/pdp11/predicates.md (float_operand): New predicate.
3878 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
3879 (cbranchdf4, movdf): Change predicate.
3880 (movsf): Handle FPU register case.
3881 (truncdfsf2, extendsfdf2): Add FPU register case.
3882 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
3883 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
3884 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3885 (pdp11_register_move_cost): Update cost matrix.
3886 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
3887 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
3888 pdp11_secondary_memory_needed): New function.
3889 (pdp11_return_in_memory): Add other float types.
3890 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
3891 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
3892 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
3893 REGISTER_MOVE_COST): Delete.
3894 (BASE_RETURN_VALUE_REG): Add other float types.
3896 2010-10-29 Nick Clifton <nickc@redhat.com>
3898 * doc/invoke.texi: Document -mam34 and -mtune options.
3899 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
3900 (mn10300_tune_cpu): New variable.
3901 (mn10300_handle_option): Handle -mam34 and -mtune options.
3902 (mn10300_option_override): Convert tune string into tune cpu variable.
3903 (mn10300_legitimate_constant_p): Delete unused local variable.
3904 (is_load_insn): New function.
3905 (is_store_insn): New function.
3906 (mn10300_adjust_schedule_cost): New function.
3907 (TARGET_SCHED_ADJUST_COST): Define.
3908 * config/mn10300/mn10300.opt (mam34): New option.
3909 (mtune): New option.
3910 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
3911 (enum processor_type): Add AM34.
3912 (TARGET_AM34): Define.
3913 * config/mn10300/mn10300.md (attr cpu): Add am34.
3914 Add pipeline description.
3915 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
3916 Remove unneeded alternatives. Add timing attribute.
3917 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
3918 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
3919 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
3920 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
3921 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
3922 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
3923 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
3924 float_conditional_branch, jump, indirect_jump, tablejump,
3925 call_internal, call_value_internal, zero_extendqisi2_am33,
3926 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
3927 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
3928 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
3929 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
3930 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
3931 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
3932 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
3933 return_internal_regs, store_movm, return, call_next_insn):
3934 Add timing attribute.
3935 (am33_subsi3): Add missing clobber of CC_REG.
3936 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
3937 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
3938 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
3939 extendqisi2): Fix predicates.
3940 (call_internal, call_internal_value): Separate alternatives.
3941 * config/mn10300/t-mn10300: Add AM34 multilib.
3943 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
3945 * config/sh/sh.c (sh_promote_function_mode): Use
3946 default_promote_function_mode if !sh_promote_prototypes.
3948 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
3950 * recog.c (split_all_insns): Remove dead code.
3952 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3954 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3956 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3958 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3959 (FUNCTION_ARG_ADVANCE): Delete.
3960 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
3962 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
3963 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3964 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3966 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3968 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
3969 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3970 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
3971 Take a const_tree and a bool.
3972 (mcore_function_arg_advance): New function.
3973 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3975 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3977 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
3978 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3979 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
3980 Take a const_tree and a bool.
3981 (mcore_function_arg_advance): New function.
3982 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3984 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3986 * config/h8300/h8300-protos.h (function_arg): Delete.
3987 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3988 * config/h8300/h8300.c (function_arg): Rename to...
3989 (h8300_function_arg): ...this. Make static. Take a const_tree and
3991 (h8300_function_arg_advance): New function.
3992 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3994 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3996 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
3998 * config/arc/arc.c (arc_function_arg): ...here and...
3999 (arc_function_arg_advance): ...here. New functions.
4000 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4002 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4004 * config/crx/crx-protos.h (crx_function_arg): Delete.
4005 (crx_function_arg_advance): Delete.
4006 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4007 * config/crx/crx.c (crx_function_arg): Make static. Take a
4008 const_tree and a bool.
4009 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
4010 (enough_regs_for_param): Take a const_tree.
4011 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4013 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4015 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
4016 (m68hc11_function_arg_advance): Delete.
4017 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
4018 (FUNCTION_ARG_ADVANCE): Delete.
4019 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
4020 Take a const_tree and a bool.
4021 (m68hc11_function_arg_advance): Likewise.
4022 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4024 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4026 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
4027 (xstormy16_function_arg_advance): Delete.
4028 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
4029 (FUNCTION_ARG_ADVANCE): Delete.
4030 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
4031 Take a const_tree and a bool.
4032 (xstormy16_function_arg_advance): Likewise. Return void, updating
4033 the CUM parameter instead.
4034 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4036 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4038 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
4039 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4040 (MOXIE_FUNCTION_ARG_SIZE): Move to...
4041 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
4042 (moxie_function_arg): Make static. Take a const_tree and a bool.
4043 (moxie_function_arg_advance): New function.
4044 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4046 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4048 * config/mn10300/mn10300-protos.h (function_arg): Delete.
4049 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
4050 (FUNCTION_ARG_ADVANCE): Delete.
4051 * config/mn10300/mn10300.c (function_arg): Rename to...
4052 (mn10300_function_arg): ...this. Make static. Take a const_tree
4054 (mn10300_function_arg_advance): New function.
4055 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4057 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4059 * config/iq2000/iq2000-protos.h (function_arg): Delete.
4060 (function_arg_advance): Delete.
4061 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4062 * config/iq2000/iq2000.c (function_arg): Rename to...
4063 (iq2000_function_arg): ...this. Make static. Take a const_tree and
4065 (function_arg_advance): Rename to...
4066 (iq2000_function_arg_advance): ...this. Make static. Take a
4067 const_tree and a bool.
4068 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
4069 iq2000_function_arg.
4070 (iq2000_pass_by_reference): Call iq2000_function_arg).
4071 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4073 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4075 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
4076 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4077 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
4079 (fr30_function_arg): New function.
4080 (fr30_function_arg_advance): New function.
4081 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4083 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4085 * config/frv/frv-protos.h (frv_function_arg): Delete.
4086 (frv_function_arg_advance): Delete.
4087 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4088 * config/frv/frv.c (frv_function_arg): Rename to...
4089 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
4090 (frv_function_arg, frv_function_incoming_arg): New functions.
4091 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
4092 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4093 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4095 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
4098 * config/i386/sse.md (sse_movhlps_exp): Use destination
4099 returned from ix86_fixup_binary_operands to expand insn.
4100 (sse_movlhps_exp): Ditto.
4101 (sse_loadhps_exp): Ditto.
4102 (sse_loadlps_exp): Ditto.
4103 (sse2_loadhpd_exp): Ditto.
4104 (sse2_loadlpd_exp): Ditto.
4106 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
4108 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
4109 constants in thumb2.
4111 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
4113 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
4114 arithmetics in masking operations.
4115 (contains_muldiv): Likewise.
4116 (try_combine): Likewise.
4117 (find_split_point): Likewise.
4118 (combine_simplify_rtx): Likewise.
4119 (simplify_if_then_else): Likewise.
4120 (simplify_set): Likewise.
4121 (expand_compound_operation): Likewise.
4122 (expand_field_assignment): Likewise.
4123 (make_extraction): Likewise.
4124 (extract_left_shift): Likewise.
4125 (make_compound_operation): Likewise.
4126 (force_to_mode): Likewise.
4127 (make_field_assignment): Likewise.
4128 (reg_nonzero_bits_for_combine): Likewise.
4129 (simplify_shift_const_1): Likewise.
4130 (simplify_comparison): Likewise.
4132 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
4134 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
4135 (ia64_function_arg_advance): Delete.
4136 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4137 (FUNCTION_ARG_ADVANCE): Delete.
4138 * config/ia64/ia64.c (ia64_function_arg): Rename to...
4139 (ia64_function_arg_1): ...this. Make static. Take const_tree and
4141 (ia64_function_arg, ia64_function_incoming_arg): New functions.
4142 (ia64_function_arg_advance): Make static. Take a const_tree and
4144 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4145 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4147 2010-10-27 Steve Ellcey <sje@cup.hp.com>
4149 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
4150 (TARGET_GET_RAW_ARG_MODE): New.
4151 * doc/tm.texi: Regenerate.
4152 * target.def (get_raw_result_mode): New.
4153 (get_raw_arg_mode): New.
4154 * targhooks.c (default_get_reg_raw_mode): New.
4155 * targhooks.h (default_get_reg_raw_mode): New.
4156 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
4157 (apply_result_size): Ditto.
4158 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
4159 (TARGET_GET_RAW_RESULT_MODE): Define.
4160 (TARGET_GET_RAW_ARG_MODE): Ditto.
4162 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4164 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
4165 for newer Solaris 10 release.
4166 (sparc_fallback_frame_state): Likewise.
4168 2010-10-27 Jason Merrill <jason@redhat.com>
4170 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
4173 2010-10-27 Jie Zhang <jie@codesourcery.com>
4174 Maxim Kuvyrkov <maxim@codesourcery.com>
4176 * haifa-sched.c (ISSUE_POINTS): Remove.
4177 (max_issue): Don't issue more than issue_rate instructions.
4179 2010-10-27 Ian Lance Taylor <iant@google.com>
4182 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
4183 (split_stack_return): Replace UNSPEC_STACK_CHECK with
4184 UNSPECV_SPLIT_STACK_RETURN.
4186 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
4188 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
4190 * config/i386/i386.c (block_info): New.
4191 (BLOCK_INFO): Likewise.
4192 (call_avx256_state): Likewise.
4193 (check_avx256_stores): Likewise.
4194 (move_or_delete_vzeroupper_2): Likewise.
4195 (move_or_delete_vzeroupper_1): Likewise.
4196 (move_or_delete_vzeroupper): Likewise.
4197 (use_avx256_p): Likewise.
4198 (function_pass_avx256_p): Likewise.
4199 (flag_opts): Add -mvzeroupper.
4200 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
4201 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
4203 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
4204 generate vzeroupper.
4205 (init_cumulative_args): Add an int to indicate caller. Set
4206 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
4207 based on return type.
4208 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
4209 caller_pass_avx256_p based on argument type.
4210 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
4211 is used, but not returned by caller.
4212 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
4213 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
4215 (ix86_minimum_alignment): Likewise.
4216 (ix86_expand_special_args_builtin): Set target to
4217 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
4218 (ix86_reorg): Run the vzeroupper optimization if needed.
4220 * config/i386/i386.h (ix86_args): Add caller.
4221 (INIT_CUMULATIVE_ARGS): Updated.
4222 (machine_function): Add use_vzeroupper_p, use_avx256_p,
4223 caller_pass_avx256_p, caller_return_avx256_p,
4224 callee_pass_avx256_p and callee_return_avx256_p.
4226 * config/i386/i386.opt (-mvzeroupper): New.
4228 * config/i386/predicates.md (vzeroupper_operation): Removed.
4230 * config/i386/sse.md (avx_vzeroupper): Removed.
4231 (*avx_vzeroupper): Removed.
4232 (avx_vzeroupper): New.
4234 * doc/invoke.texi: Document -mvzeroupper.
4236 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4238 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
4239 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
4240 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
4242 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4243 Olivier Hainque <hainque@adacore.com>
4245 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
4246 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
4247 fs->signal_frame instead.
4249 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4251 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
4252 parsing of RID_COPIES and RID_IVAR.
4254 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4256 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
4257 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
4258 Do not use objc_set_property_attr, but use local variables
4259 instead. Detect repeated usage of setter, getter and ivar
4260 attributes. Improved error processing when a setter name does not
4261 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
4262 that the token is a keyword. Updated call to
4263 objc_add_property_declaration.
4265 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4267 * c-parser.c (c_parser_objc_at_property): Renamed to
4268 c_parser_objc_at_property_declaration. Updated calls to
4269 objc_add_property_variable, now objc_add_property_declaration.
4270 Code rewritten to be much more robust in recovering from syntax
4271 errors. Added comments.
4272 (c_parser_objc_property_attrlist): Removed.
4273 (c_parser_external_declaration): Updated calls to
4274 c_parser_objc_at_property, now
4275 c_parser_objc_at_property_declaration.
4276 (c_parser_objc_methodprotolist): Same change.
4278 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4280 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
4282 2010-10-26 Jan Hubicka <jh@suse.cz>
4284 * ipa.c (process_references): Enqueue all referenced nodes;
4285 mark as reachable only non-external nodes.
4286 (cgraph_remove_unreachable_nodes): All referenced nodes should
4287 be enqueued; remove bogues node->needed check.
4289 2010-10-26 Jan Hubicka <jh@suse.cz>
4291 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
4294 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4296 * config/i386/i386.md (split_stack_return): Replace
4297 unspec_volatile with unspec.
4299 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
4301 * doc/install.texi: Fix typo in --with-sysroot description.
4303 2010-10-26 Jan Hubicka <jh@suse.cz>
4305 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4306 Use info provided by linker plugin.
4308 2010-10-26 Jason Merrill <jason@redhat.com>
4310 * varasm.c (constructor_static_from_elts_p): Don't require a
4311 CONSTRUCTOR to have elements to be suitable for static
4312 initialization. Allow ARRAY_TYPE as well.
4314 2010-10-26 Jan Hubicka <jh@suse.cz>
4317 * cgraph.c (cgraph_set_readonly_flag): Rename to...
4318 (cgraph_set_const_flags) ... this one; get also looping argument;
4319 clear constructor/destructor flags.
4320 (cgraph_set_pure_flag): Likewise.
4321 (cgraph_set_looping_const_or_pure_flag): Remove.
4322 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
4323 to optimize away static ctors/dtors; it does not work on inline clones;
4324 external functions can always be rmeoved.
4325 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
4326 inline clones; in LTO external functions always can go.
4327 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
4328 (cgraph_mark_address_taken_node): Assert that we are not taking
4329 address of inline clone.
4330 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
4332 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
4334 (ipcp_initialize_node_lattices): Only local functions can be
4335 handled without cloning.
4336 * cgraph.h (cgraph_set_readonly_flag,
4337 cgraph_set_looping_const_or_pure_flag): Remove.
4338 (cgraph_set_const_flag): Declare.
4339 (cgraph_set_pure_flag): Update.
4340 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
4342 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
4343 look at inline clones; fix handling of external definitions.
4344 (cgraph_postorder): Do not look at inline clones in the first pass.
4345 (function_and_variable_visibility): Drop constructors/destructor
4346 flags at pure and const functions.
4347 * tree-profile.c (tree_profiling): Update.
4348 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
4349 address taken; external functions do not account to whole program size.
4350 (cgraph_decide_inlining): Likewise; do not try to inline
4351 functions already inlined.
4353 2010-10-26 Jie Zhang <jie@codesourcery.com>
4355 * doc/invoke.texi: Improve documentation of
4356 -fstrict-volatile-bitfields.
4358 2010-10-26 Ira Rosen <irar@il.ibm.com>
4360 PR tree-optimization/46167
4361 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
4362 is basic block for the statement.
4364 2010-10-26 Paul Koning <ni1d@arrl.net>
4366 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
4367 current definition of struct_real_format.
4369 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4372 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
4373 (ix86_function_arg_boundary): Always align parameters on stack
4374 in 64bit and align parameters with alignment >= 16byte on stack
4375 in 32bit. Warn alignment change.
4377 2010-10-26 Ian Lance Taylor <iant@google.com>
4380 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
4383 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
4385 Implement opaque-enum-specifiesr for C++0x
4386 * tree.h (ENUM_IS_OPAQUE): New.
4387 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
4389 2010-10-26 Jie Zhang <jie@codesourcery.com>
4391 * stor-layout.c (layout_decl): Use the field's type to
4392 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
4393 * config/arm/arm.c (arm_override_options): Default to
4394 -fstrict-volatile-bitfields.
4396 2010-10-25 Paul Koning <ni1d@arrl.net>
4398 * config/pdp11/pdp11.md: Add define_constants for register
4399 numbers, branch offset limits.
4400 * config/pdp11/pdp11.c: Use named constants instead of numbers.
4401 * config/pdp11.pdp11.h: Ditto.
4403 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
4405 * configure.ac: Use $cpu_type instead of $target to define the nop.
4406 * configure: Regenerate.
4408 2010-10-25 Jie Zhang <jie@codesourcery.com>
4410 * combine.c (try_combine): If insns need to be kept around, check that
4411 they can be copied in the merged instruction.
4413 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4415 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
4417 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
4418 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
4419 it has been modified.
4421 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4423 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
4425 2010-10-24 Paul Koning <ni1d@arrl.net>
4427 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
4428 * config/pdp11/pdp11.c (output_jump): Ditto.
4430 2010-10-24 Ian Lance Taylor <iant@google.com>
4432 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
4434 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4436 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
4437 least one insn with a locus corresponding to an edge's goto_locus,
4438 disregard non-fallthru edges to the exit block and merge the blocks
4439 created for the same goto_locus.
4441 2010-10-23 Joseph Myers <joseph@codesourcery.com>
4443 * gcc.c (n_switches_alloc_debug_check): New.
4444 (set_option_handlers): New.
4445 (process_command): Use set_option_handlers.
4446 (do_self_spec): Pass spec-generated options through option handlers.
4447 (main): Also save and restore n_switches_alloc when swapping
4450 2010-10-23 Richard Henderson <rth@redhat.com>
4453 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
4454 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
4455 Honor matching operands when splitting to XOR.
4457 2010-10-23 Ian Lance Taylor <iant@google.com>
4459 * tree-vrp.c (extract_range_from_binary_expr): If
4460 flag_non_call_exceptions don't eliminate division by zero.
4461 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4463 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
4465 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
4466 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
4467 __ORDER_PDP_ENDIAN__.
4468 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4469 (struct DWstruct): Define based on __BYTE_ORDER__.
4470 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4471 (struct INTstruct): Define based on __BYTE_ORDER__.
4472 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4473 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
4474 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
4475 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4476 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4477 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4478 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4479 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4480 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4481 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4482 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4483 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4484 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4485 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4486 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4487 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4488 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4489 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4490 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4491 * doc/tm.texi: Regenerate.
4492 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
4493 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
4495 2010-10-23 Jie Zhang <jie@codesourcery.com>
4497 PR rtl-optimization/37360
4498 * config/mips/mips.c (cached_can_issue_more): New local variable.
4499 (mips_sched_reorder_1): New.
4500 (mips_sched_reorder): Use mips_sched_reorder_1.
4501 (mips_sched_reorder2): New.
4502 (mips_variable_issue): Set cached_can_issue_more.
4503 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
4504 instead of mips_sched_reorder.
4507 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
4508 PR rtl-optimization/37360
4509 * haifa-sched.c (max_issue): Do not assert that we never issue more
4510 insns than issue_rate. Add comment.
4512 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
4514 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
4515 location info of the expression.
4517 2010-10-22 DJ Delorie <dj@redhat.com>
4519 * doc/extend.texi (Named Address Spaces): Document the M32C named
4522 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
4523 __far address space.
4524 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
4525 "__far" address space for R8C and M16C processor variants.
4526 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
4527 (far_addr_space_p): New.
4528 (encode_pattern_1): Add sign and zero extend support.
4529 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
4530 (m32c_extra_constraint_p2): Add SF constraint.
4531 (m32c_legitimate_address_p): Support __far addresses.
4532 (m32c_addr_space_pointer_mode): New.
4533 (m32c_addr_space_address_mode): New.
4534 (m32c_addr_space_legitimate_address_p): New.
4535 (m32c_addr_space_legitimize_address): New.
4536 (m32c_addr_space_subset_p): New.
4537 (m32c_addr_space_convert): New.
4538 (conversions): Add __far operand patterns.
4539 (m32c_prepare_move): Force constants into registers for __far moves.
4540 (m32c_split_move): __far moves are always split.
4541 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
4542 * config/m32c/mov.md (mov<mode>_far_op1): New.
4543 (mov<mode>_far_op2): New.
4544 (movqi_op): Add __far (SF) support.
4545 (movhi_op): Likewise.
4546 (movsi_splittable): Split A1A0 also.
4548 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4549 Andrew Pinski <pinskia@gmail.com>
4551 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
4552 * doc/extend.texi: New paragraph
4554 2010-10-22 Paul Koning <ni1d@arrl.net>
4556 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
4558 2010-10-22 DJ Delorie <dj@redhat.com>
4560 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
4562 2010-10-22 Paul Koning <ni1d@arrl.net>
4564 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
4566 2010-10-22 Richard Henderson <rth@redhat.com>
4568 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
4569 cases for __builtin_fma and __builtin_fmaf.
4571 2010-10-22 Richard Henderson <rth@redhat.com>
4573 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
4574 NEG+USE for vectors as well.
4575 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
4578 2010-10-22 Joseph Myers <joseph@codesourcery.com>
4580 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
4581 SWITCH_CURTAILS_COMPILATION): Remove.
4582 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
4583 * doc/tm.texi: Regenerate.
4584 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
4586 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
4588 * config/i386/bdver1.md: New file.
4589 * config/i386/i386.md (include "bdver1.md"): Invoke the
4590 pipeline description for bdver1.
4591 (x86_sahf_1): Add "bdver1_decode" attribute.
4592 (*cmpfp_i_mixed): Likewise.
4593 (*cmpfp_i_sse): Likewise.
4594 (*cmpfp_i_i387): Likewise.
4595 (*cmpfp_iu_mixed): Likewise.
4596 (*cmpfp_iu_sse): Likewise.
4597 (*cmpfp_iu_387): Likewise.
4598 (*swap<mode>,*swap<mode>_1): Likewise.
4599 (fixuns_trunc<mode>hi2): Likewise.
4600 (fix_trunc<mode>si_sse): Likewise.
4601 (x86_fnstcw_1): Likewise.
4602 (x86_fldcw_1): Likewise.
4603 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
4604 (*floatsi<mode>2_vector_mixed): Likewise.
4605 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
4606 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4607 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4608 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
4609 (*floatsi<mode>2_vector_sse): Likewise.
4610 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
4611 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4612 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4613 (*mul<mode>3_1): Likewise.
4614 (*mulsi3_1_zext): Likewise.
4615 (*mulhi3_1): Likewise.
4616 (*mulqi3_1): Likewise.
4617 (*<u>mul<mode><dwi>3_1): Likewise.
4618 (*<u>mulqihi3_1): Likewise.
4619 (*<s>muldi3_highpart_1): Likewise.
4620 (*<s>mulsi3_highpart_1): Likewise.
4621 (*<s>mulsi3_highpart_zext): Likewise.
4622 (x86_64_shld): Likewise.
4623 (x86_shld): Likewise.
4624 (x86_64_shrd): Likewise.
4625 (x86_shrd): Likewise.
4626 (sqrtxf2): Likewise.
4627 (sqrt_extend<mode>xf2_i387): Likewise.
4628 (*sqrt<mode>2_sse): Likewise.
4629 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
4630 (sse_cvtsi2ssq): Likewise.
4631 (sse_cvtss2si): Likewise.
4632 (sse_cvtss2si_2): Likewise.
4633 (sse_cvtss2siq): Likewise.
4634 (sse_cvtss2siq_2): Likewise.
4635 (sse_cvttss2si): Likewise.
4636 (sse_cvttss2siq): Likewise.
4637 (sse2_cvtpi2pd): Likewise.
4638 (sse2_cvttpd2pi): Likewise.
4639 (sse2_cvtsi2sd): Likewise.
4640 (sse2_cvtsi2sdq): Likewise.
4641 (sse2_cvtsd2si): Likewise.
4642 (sse2_cvtsd2si_2): Likewise.
4643 (sse2_cvtsd2siq): Likewise.
4644 (sse2_cvtsd2siq_2): Likewise.
4645 (sse2_cvttsd2si): Likewise.
4646 (sse2_cvttsd2siq): Likewise.
4647 (*sse2_cvtpd2dq): Likewise.
4648 (*sse2_cvttpd2dq): Likewise.
4649 (sse2_cvtsd2ss): Likewise.
4650 (sse2_cvtss2sd): Likewise.
4651 (*sse2_cvtpd2ps): Likewise.
4652 (sse2_cvtps2pd): Likewise.
4654 2010-10-22 Richard Guenther <rguenther@suse.de>
4657 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
4658 remove the virtual operands if they are not needed.
4660 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
4662 * config/i386/i386.c (processor_costs bdver1_cost): Update
4663 insn costs and architectural parameters for bdver1.
4665 2010-10-22 Richard Guenther <rguenther@suse.de>
4667 * gimple.h (gimple_register_canonical_type): Declare.
4668 * gimple.c (gimple_canonical_types): New global hashtable.
4669 (struct gimple_type_leader_entry_s): New type.
4670 (gimple_type_leader): New global cache.
4671 (gimple_lookup_type_leader): New function.
4672 (gtc_visit): Query the proper cache.
4673 (gimple_types_compatible_p): Likewise.
4674 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
4675 (gimple_canonical_type_eq): New function.
4676 (gimple_register_canonical_type): Likewise.
4677 (print_gimple_types_stats): Adjust for gimple_canonical_types.
4678 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
4679 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
4680 gimple_types_compatible_p for LTO.
4682 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
4685 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
4686 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
4687 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
4688 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
4689 (<sse>_movu<ssemodesuffix>): New expander.
4690 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
4691 (avx_movdqu<avxmodesuffix>): New expander.
4692 (*sse2_movdqu): Rename from sse2_movdqu.
4693 (sse2_movdqu): New expander.
4695 2010-10-22 Richard Guenther <rguenther@suse.de>
4697 PR tree-optimization/45720
4698 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
4699 Handle negative step.
4700 (vect_enhance_data_refs_alignment): Likewise.
4701 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
4702 (vect_create_cond_for_align_checks): Likewise.
4703 (vect_create_cond_for_alias_checks): Likewise.
4705 2010-10-22 Ira Rosen <irar@il.ibm.com>
4707 PR tree-optimization/46126
4708 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
4709 vectorizable_shift in case of basic block vectorization.
4711 2010-10-22 Joseph Myers <joseph@codesourcery.com>
4713 * target.h (enum opt_levels, struct default_options): New.
4714 * target.def (handle_ofast): Remove hook.
4715 (target_option.optimization): Change to
4716 target_option.optimization_table.
4717 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
4718 TARGET_OPTION_OPTIMIZATION_TABLE.
4719 (CAN_DEBUG_WITHOUT_FP): Remove.
4720 * doc/tm.texi: Regenerate.
4721 * opts.c (maybe_default_option, maybe_default_options,
4722 default_options_table): New.
4723 (default_options_optimization): Take extra parameters. Don't
4724 assert that global_options and global_options_set are in use. Use
4725 maybe_default_options.
4726 (decode_options): Pass extra parameters to
4727 default_options_optimization.
4728 * common.opt (falign-loops): Use value 0 with Var.
4729 (frerun-cse-after-loop, ftree-ter): Remove Init.
4730 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
4731 TARGET_OPTION_OPTIMIZATION): Remove.
4732 * targhooks.c (empty_optimization_table): New.
4733 * targhooks.h (empty_optimization_table): Declare.
4734 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
4735 * config/alpha/alpha.c (alpha_option_optimization_table,
4736 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4737 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
4738 * config/arm/arm.c (arm_option_optimization: Change to
4739 arm_option_optimization_table.
4740 (TARGET_OPTION_OPTIMIZATION): Change to
4741 TARGET_OPTION_OPTIMIZATION_TABLE.
4742 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
4743 * config/avr/avr.c (avr_option_optimization_table,
4744 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4745 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
4746 * config/cris/cris.c (cris_option_optimization): Change to
4747 cris_option_optimization_table.
4748 (TARGET_OPTION_OPTIMIZATION): Change to
4749 TARGET_OPTION_OPTIMIZATION_TABLE.
4750 * config/crx/crx.c (crx_option_optimization): Change to
4751 crx_option_optimization_table.
4752 (TARGET_OPTION_OPTIMIZATION): Change to
4753 TARGET_OPTION_OPTIMIZATION_TABLE.
4754 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4755 * config/fr30/fr30.c (fr30_option_optimization_table,
4756 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4757 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
4758 * config/frv/frv.c (frv_option_optimization_table,
4759 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4760 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
4761 * config/h8300/h8300.c (h8300_option_optimization): Change to
4762 h8300_option_optimization_table.
4763 (TARGET_OPTION_OPTIMIZATION): Change to
4764 TARGET_OPTION_OPTIMIZATION_TABLE.
4765 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4766 * config/i386/i386.c (ix86_option_optimization): Change to
4767 ix86_option_optimization_table.
4768 (TARGET_OPTION_OPTIMIZATION): Change to
4769 TARGET_OPTION_OPTIMIZATION_TABLE.
4770 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4772 * config/ia64/ia64.c (ia64_option_optimization): Change to
4773 ia64_option_optimization_table.
4774 (TARGET_OPTION_OPTIMIZATION): Change to
4775 TARGET_OPTION_OPTIMIZATION_TABLE.
4776 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
4777 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
4779 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4780 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4781 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4782 * config/lm32/lm32.c (lm32_option_optimization_table,
4783 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4784 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
4785 * config/m32r/m32r.c (m32r_option_optimization): Change to
4786 m32r_option_optimization_table.
4787 (TARGET_OPTION_OPTIMIZATION): Change to
4788 TARGET_OPTION_OPTIMIZATION_TABLE.
4789 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
4790 CAN_DEBUG_WITHOUT_FP): Remove.
4791 * config/mcore/mcore.c (mcore_option_optimization): Change to
4792 mcore_option_optimization_table.
4793 (TARGET_OPTION_OPTIMIZATION): Change to
4794 TARGET_OPTION_OPTIMIZATION_TABLE.
4795 * config/mep/mep.c (mep_option_optimization): Change to
4796 mep_option_optimization_table.
4797 (TARGET_OPTION_OPTIMIZATION): Change to
4798 TARGET_OPTION_OPTIMIZATION_TABLE.
4799 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
4800 * config/microblaze/microblaze.c
4801 (microblaze_option_optimization_table,
4802 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4803 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
4804 * config/mips/mips.c (mips_option_optimization_table,
4805 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4806 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
4807 * config/mmix/mmix.c (mmix_option_optimization): Change to
4808 mmix_option_optimization_table.
4809 (TARGET_OPTION_OPTIMIZATION): Change to
4810 TARGET_OPTION_OPTIMIZATION_TABLE.
4811 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
4812 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4813 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4814 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4815 * config/pa/pa.c (pa_option_optimization_table,
4816 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4817 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4818 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
4819 pdp11_option_optimization_table.
4820 (TARGET_OPTION_OPTIMIZATION): Change to
4821 TARGET_OPTION_OPTIMIZATION_TABLE.
4822 * config/picochip/picochip.c (picochip_option_optimization_table,
4823 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4824 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
4825 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
4826 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4827 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4828 * config/rx/rx.c (rx_option_optimization_table,
4829 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4830 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4831 * config/s390/s390.c (s390_option_optimization): Change to
4832 s390_option_optimization_table.
4833 (s390_option_override): Update comment.
4834 (TARGET_OPTION_OPTIMIZATION): Change to
4835 TARGET_OPTION_OPTIMIZATION_TABLE.
4836 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
4837 * config/score/score.c (score_option_optimization_table,
4838 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4839 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
4840 * config/sh/sh.c (sh_option_optimization): Change to
4841 sh_option_optimization_table.
4842 (TARGET_OPTION_OPTIMIZATION): Change to
4843 TARGET_OPTION_OPTIMIZATION_TABLE.
4844 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
4845 (sh_option_override, expand_block_move, multcosts, find_barrier,
4846 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
4847 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
4848 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
4849 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
4850 instead of TARGET_SMALLCODE.
4851 * config/sh/sh.opt (mspace): Make into an alias for -Os.
4852 * config/sparc/sparc.c (sparc_option_optimization_table,
4853 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4854 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
4855 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4856 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4857 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
4858 * config/v850/v850.c (v850_option_optimization): Change to
4859 v850_option_optimization_table.
4860 (TARGET_OPTION_OPTIMIZATION): Change to
4861 TARGET_OPTION_OPTIMIZATION_TABLE.
4862 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
4863 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
4864 xtensa_option_optimization_table.
4865 (TARGET_OPTION_OPTIMIZATION): Change to
4866 TARGET_OPTION_OPTIMIZATION_TABLE.
4867 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4869 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
4871 Based on the CFString implementation in FSF apple/trunk branch.
4873 * target.def (objc_construct_string): New Hook.
4874 * doc/tm.texi (objc_construct_string): Document.
4875 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
4876 * config/t-darwin: Amend build rules for darwin.o.
4877 * config/darwin.opt: Add cfstrings flags.
4878 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
4879 (darwin_objc_construct_string): New.
4880 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
4881 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
4882 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
4883 (darwin_fold_builtin): Likewise.
4884 (darwin_build_constant_cfstring): Likewise.
4885 (darwin_objc_construct_string): Likewise.
4886 (darwin_cfstring_p): Likewise.
4887 (darwin_enter_string_into_cfstring_table): Likewise.
4888 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
4889 * config/darwin.c (darwin_running_cxx): New var.
4890 (machopic_select_section): Return cfstring_constant_object_section.
4891 (darwin_override_options): Set darwin_running_cxx.
4892 (add_builtin_field_decl): New.
4893 (darwin_init_cfstring_builtins): New.
4894 (darwin_build_constant_cfstring): New.
4895 (darwin_fold_builtin): New.
4896 (cfstring_hash): New.
4898 (darwin_enter_string_into_cfstring_table): New.
4899 * config/darwin-sections.def (cfstring_constant_object_section): New.
4900 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
4901 (TARGET_OBJC_CONSTRUCT_STRING): Define.
4903 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4905 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
4906 TYPE_STUB_DECL instead of TREE_CHAIN.
4907 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
4908 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
4909 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
4910 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
4911 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
4912 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
4914 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
4916 2010-10-22 Jie Zhang <jie@codesourcery.com>
4918 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
4919 (copy_blkmode_from_reg): Likewise.
4920 (read_complex_part): Likewise.
4921 (expand_expr_real_1): Calculate packedp and pass it to
4923 * expr.h (extract_bit_field): Update declaration.
4924 * calls.c (store_unaligned_arguments_into_pseudos): Update call
4925 to extract_bit_field.
4926 * expmed.c (extract_fixed_bit_field): Update calls to
4927 extract_fixed_bit_field.
4928 (store_split_bit_field): Likewise.
4929 (extract_bit_field_1): Add new argument packedp.
4930 (extract_bit_field): Add new argument packedp.
4931 (extract_fixed_bit_field): Add new argument packedp and let
4932 packed attribute override volatile.
4933 * stmt.c (expand_return): Update call to extract_bit_field.
4935 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4937 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
4939 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4941 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
4942 of gcc_checking_assert.
4943 * sel-sched.c (code_motion_process_successors): Likewise.
4945 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
4947 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
4948 when stopping because of a different locus on edge or insn.
4949 (try_optimize_cfg): Add comment.
4950 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
4951 block is a forwarder block, propagate locus on the edge.
4952 (cfg_layout_merge_blocks): Likewise.
4954 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
4957 * config/i386/i386.md (*pushti2): New insn pattern.
4958 (pushti2 splitter): New insn splitter.
4959 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
4962 2010-10-21 Paul Koning <ni1d@arrl.net>
4964 * config/pdp11/pdp11-protos.md (arith_operand,
4965 const_immediate_operand, expand_shift_operand,
4966 immediate15_operand): Delete
4967 * config/pdp11/pdp11.c: Ditto.
4968 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
4969 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
4970 EXTRA_CONSTRAINT): Delete.
4971 * config/pdp11/pdp11.md (various): Use standard constraints
4972 instead of removed ones.
4973 * config/pdp11/constraints.md: New file.
4974 * config/pdp11/predicates.md: New file.
4976 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
4979 * alias.c (true_dependence_1): Remove obsolete check for QImode.
4980 (may_alias_p): Ditto.
4982 2010-10-21 Martin Jambor <mjambor@suse.cz>
4984 PR tree-optimization/45875
4985 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
4987 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4989 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
4991 (create_new_def_for): Likewise.
4993 2010-10-21 Nick Clifton <nickc@redhat.com>
4995 * config/mn10300/mn10300.c: Fold code to 80-character width.
4996 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
4997 MEM, CONST_INT and CONST_DOUBLE.
4998 (targetm): Move initialization to end of file.
4999 (print_operand): Rename to mn10300_print_operand.
5000 (print_operand_address): Rename to mn10300_print_operand_address.
5001 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
5002 (expand_prologue): Rename to mn10300_expand_prologue.
5003 (expand_epilogue): Rename to mn10300_expand_epilogue.
5004 (initial_offset): Rename to mn10300_initial_offset.
5005 (function_arg): Rename to mn10300_function_arg.
5006 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
5007 (symbolic_operand): Rename to mn10300_symbolic_operand.
5008 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
5009 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
5010 * config/mn10300/mn10300-protos.h: Update prototypes.
5011 * config/mn10300/mn10300.h: Fold code to 80-character width.
5012 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5013 MEM, CONST_INT and CONST_DOUBLE.
5014 (CPP_SPEC): Move to...
5015 (TARGET_CPU_CPP_BUILTINS): ... here.
5016 * config/mn10300/mn10300.md: Fold code to 80-character width.
5017 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5018 MEM, CONST_INT and CONST_DOUBLE.
5020 2010-10-21 Ira Rosen <irar@il.ibm.com>
5022 PR tree-optimization/46049
5023 PR tree-optimization/46052
5024 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
5025 (vect_get_slp_defs): Add arguments.
5026 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
5027 operands to vect_get_slp_defs.
5028 (vectorizable_reduction): Fix comment, pass scalar operands to
5030 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
5031 type to determine number of units in the created vector.
5032 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
5033 (vectorizable_conversion): Fix comment.
5034 (vectorizable_shift): New function.
5035 (vectorizable_operation): Move code that handles shifts to
5037 (vectorizable_type_demotion): Fix comment, pass scalar operands to
5039 (vectorizable_type_promotion, vectorizable_store): Likewise.
5040 (vectorizable_condition): Fix comment.
5041 (vect_analyze_stmt): Call vectorizable_shift.
5042 (vect_transform_stmt): Likewise.
5043 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
5044 Use it as the operand to create vectors for, except reduction
5045 initial definition and store. Use operands type.
5046 (vect_get_slp_defs): Add new arguments. Pass them to
5047 vect_get_constant_vectors.
5049 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5051 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
5052 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
5053 * cfghooks.c (fixup_reorder_chain): Likewise.
5054 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
5055 * cgraph.c (cgraph_add_thunk): Likewise.
5056 (cgraph_create_edge_1): Likewise.
5057 (cgraph_create_virtual_clone): Likewise.
5058 * ddg.c (add_cross_iteration_register_deps): Likewise.
5059 * dwarf2out.c (modified_type_die): Likewise.
5060 * emit-rtl.c (set_mem_alias_set): Likewise.
5061 * ggc-zone.c (zone_allocate_marks): Likewise.
5062 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
5063 * gimple.c (iterative_hash_gimple_type): Likewise.
5064 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
5065 (create_single_exit_edge): Likewise.
5066 * haifa-sched.c (choose_ready): Likewise.
5067 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5068 * passes.c (execute_todo): Likewise.
5069 * sched-ebb.c (begin_schedule_ready): Likewise.
5070 * sel-sched.c (code_motion_process_successors): Likewise.
5071 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
5072 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
5073 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
5074 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
5075 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
5076 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
5077 (ssa_conflicts_add): Likewise.
5078 * tree-ssa-copy.c (replace_exp): Likewise.
5079 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
5080 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
5081 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5082 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
5083 (compute_antic): Likewise.
5084 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
5085 (add_dependence): Likewise.
5086 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
5087 * tree-vrp.c (supports_overflow_infinity): Likewise.
5088 (make_overflow_infinity, negative_overflow_infinity): Likewise.
5089 (avoid_overflow_infinity, register_new_assert_for): Likewise.
5090 (process_assert_insertions_for): Likewise.
5091 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
5092 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
5093 (intersect_loc_chains, variable_merge_over_cur): Likewise.
5095 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5097 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
5098 * reload1.c (has_nonexceptional_receiver): Likewise.
5099 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
5100 (create_new_def_for): Likewise.
5101 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
5102 (merge_phi_nodes): Likewise.
5103 (has_abnormal_incoming_edge_p): Delete.
5105 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
5107 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
5109 2010-10-21 Richard Guenther <rguenther@suse.de>
5110 Michael Matz <matz@suse.de>
5112 PR tree-optimization/45764
5113 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5114 Adjust initial misalignment for negative DR_STEP.
5115 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
5116 do not have the same alignment over the whole iteration domain.
5118 2010-10-21 Richard Guenther <rguenther@suse.de>
5120 PR tree-optimization/46111
5121 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
5123 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5125 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
5127 2010-10-21 Tristan Gingold <gingold@adacore.com>
5129 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
5130 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
5132 2010-10-21 Tristan Gingold <gingold@adacore.com>
5134 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
5136 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
5138 2010-10-21 Tristan Gingold <gingold@adacore.com>
5140 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
5141 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
5143 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5145 * basic-block.h (find_fallthru_edge): Define.
5146 * cfgcleanup.c (merge_blocks_move): Use it.
5147 (try_crossjump_bb): Likewise.
5148 * cfglayout.c (fixup_reorder_chains): Likewise.
5149 (fixup_fallthru_exit_predecessor): Likewise.
5150 * cfgrtl.c (rtl_split_edge): Likewise.
5151 (rtl_verify_flow_info): Likewise.
5152 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5153 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
5154 * ifcvt.c (block_fallthru): Likewise.
5155 * reload1.c (fixup_abnormal_edges): Likewise.
5156 * sched-ebb.c (being_schedule_ready): Likewise.
5157 (schedule_ebb): Likwise.
5158 * sched-rgn.c (find_single_block_region): Likewise.
5159 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
5160 * tree-complex.c (expand_complex_move): Likewise.
5161 * sched-int.h (find_fallthru_edge): Rename to...
5162 (find_fallthru_edge_from): ...this.
5163 * haifa-sched.c (find_fallthru_edge): Rename to...
5164 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
5165 (init_before_recovery): Call find_fallthru_edge_from.
5166 * sel-sched-ir.c (merge_fences): Likewise.
5167 * sel-sched.c (in_fallthru_bb_p): Likewise.
5168 (move_cond_jump): Likewise.
5170 2010-10-20 Paul Koning <ni1d@arrl.net>
5172 * config/pdp11/pdp11.md (various): Fix conditions on a number of
5173 insn to check for target 11/40 or higher.
5175 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5177 * parser.c (c_parser_objc_method_type): Mark inline. Return a
5178 bool instead of a tree.
5179 (c_parser_objc_method_decl): Added bool argument. Updated call to
5180 objc_build_method_signature.
5181 (c_parser_objc_method_definition): Do not call
5182 objc_set_method_type. Updated calls to c_parser_objc_method_type,
5183 c_parser_objc_method_decl and objc_start_method_definition.
5184 (c_parser_objc_methodproto): Do not call objc_set_method_type.
5185 Updated calls to c_parser_objc_method_type,
5186 c_parser_objc_method_decl and objc_add_method_declaration.
5188 2010-10-20 Jakub Jelinek <jakub@redhat.com>
5190 PR tree-optimization/45919
5191 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
5194 PR tree-optimization/46066
5195 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
5196 instead of gsi_last_bb.
5198 2010-10-20 DJ Delorie <dj@redhat.com>
5200 * config/m32c/m32c.c (m32c_option_override): Always disable
5201 function-cse in 16-bit mode. Indirect calls are always worse than
5202 direct calls as there is no 16-bit indirect call opcode.
5203 (m32c_override_options_after_change): New, likewise.
5205 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5207 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
5208 emitting the conditional move in the inner mode of the SUBREG.
5210 2010-10-20 Anatoly Sokolov <aesok@post.ru>
5212 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
5213 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
5214 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5215 (ia64_preferred_reload_class): Make static. Change rclass argument
5216 and result types from enum reg_class to reg_class_t.
5218 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
5220 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
5221 call for single operand expression.
5223 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
5225 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
5226 if there is a call statement to pure or const function in the block.
5228 2010-10-20 Paul Koning <pkoning@equallogic.com>
5230 Fix several build errors for pdp11 target.
5231 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
5232 (cbranchdf4): Conditional on TARGET_FPU.
5233 (movdf): Ditto; correct alternatives check.
5234 (movmemhi): Fix predicate and constraint.
5235 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
5237 2010-10-20 Richard Guenther <rguenther@suse.de>
5240 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
5241 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
5242 (verify_gimple_assign_single): Disable ADDR_EXPR type check
5245 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
5248 * ira-emit.c (store_can_be_removed_p): Return false instead of
5251 2010-10-20 Dmitry Melnik <dm@ispras.ru>
5253 * fold-const.c (fold_binary_loc): New transformation.
5255 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
5258 * config/i386/sse.md (reduc_splus_v8sf): Updated.
5259 (reduc_splus_v4df): Likewise.
5261 2010-10-20 Richard Guenther <rguenther@suse.de>
5263 PR tree-optimization/45860
5264 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
5265 conditional store replacement for non-register type stores.
5267 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
5269 * stor-layout.c (skip_simple_constant_arithmetic): New function.
5270 (self_referential_size): Use it instead of skip_simple_arithmetic.
5272 2010-10-20 Olivier Hainque <hainque@adacore.com>
5274 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
5275 If the current function calls eh_return, claim live all registers
5276 that we need to check for liveness otherwise.
5278 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5280 * c-decl.c (c_write_global_declarations): Call
5281 objc_write_global_declarations when compiling Objective-C.
5282 * c-lang.c (finish_file): Removed.
5284 2010-10-19 DJ Delorie <dj@redhat.com>
5286 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
5287 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
5288 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5289 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5290 * doc/tm.texi: Regenerate.
5291 * targhooks.h (default_label_align_after_barrier_max_skip,
5292 default_loop_align_max_skip, default_label_align_max_skip,
5293 default_jump_align_max_skip): Declare.
5294 * target.def (label_align_after_barrier_max_skip): New.
5295 (loop_align_max_skip): New.
5296 (label_align_max_skip): New.
5297 (jump_align_max_skip): New.
5298 * system.h (poison): Add those macros to the list.
5299 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
5300 (LOOP_ALIGN_MAX_SKIP): Remove.
5301 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
5302 (JUMP_ALIGN_MAX_SKIP): Remove.
5303 (default_label_align_after_barrier_max_skip): New.
5304 (default_loop_align_max_skip): New.
5305 (default_label_align_max_skip): New.
5306 (default_jump_align_max_skip): New.
5307 (compute_alignments): Use the new hooks.
5308 (shorten_branches): Likewise.
5310 2010-10-19 Richard Henderson <rth@redhat.com>
5312 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
5313 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
5314 (fma4i_fmadd_<mode>): New.
5315 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
5316 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
5317 standard fma patterns.
5318 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
5320 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5321 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5322 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
5324 2010-10-19 Paul Koning <pkoning@equallogic.com>
5326 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
5327 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
5329 2010-10-19 Richard Henderson <rth@redhat.com>
5331 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
5332 (fmadf4, *fmsdf4, *nfmadf4): New.
5333 (fmaxf4, *fmsxf4, *nfmaxf4): New.
5335 2010-10-19 Michael Eager <eager@eagercon.com>
5337 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
5338 Use sjlj unwind info for exceptions.
5340 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
5343 * dwarf2out.c (add_calling_convention_attribute): Flag main
5344 Fortran subroutine with DW_AT_main_subprogram.
5346 2010-10-19 Nick Clifton <nickc@redhat.com>
5348 * config/rx/rx.c (rx_function_value): Small integer types are
5350 (rx_promote_function_mode): New function.
5351 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5353 2010-10-19 Nick Clifton <nickc@redhat.com>
5355 * config/mep/mep.c (mep_print_operand): Use
5356 targetm.strip_name_encoding.
5357 (mep_output_aligned_common): Likewise.
5359 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
5361 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
5363 2010-10-18 Richard Henderson <rth@redhat.com>
5365 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
5366 (fma (neg a) (neg b) c) and (fma a (neg b) c).
5368 2010-10-18 Richard Henderson <rth@redhat.com>
5370 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
5371 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
5372 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
5373 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
5374 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
5375 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
5376 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
5377 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
5378 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
5379 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
5380 (bdesc_multi_arg): Remove the corresponding builtins.
5381 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
5382 (UNSPEC_FMA4_FMSUBADD): Remove.
5383 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
5384 * config/i386/sse.md (FMA4MODEF4): Remove.
5386 (fma<mode>4): New expander.
5387 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
5388 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
5389 (*fma4i_fmsub_<mode>): Similarly.
5390 (*fma4i_fnmadd_<mode>): Similarly.
5391 (*fma4i_fnmsub_<mode>): Similarly.
5392 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
5393 with the first operand.
5394 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
5395 of explicit arithmetic. Macroize with AVXMODEF2P.
5396 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
5397 (xop_frcz<mode>2): Macroize with FMAMODE.
5398 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
5400 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
5402 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
5403 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
5404 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
5405 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
5406 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
5407 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
5408 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
5409 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
5411 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
5413 PR rtl-optimization/45966
5414 * combine.c (try_combine): If added_sets_2, deal with the case
5415 where i0 feeds i1 and i1 feeds i2.
5417 2010-10-18 Jan Hubicka <jh@suse.cz>
5419 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
5420 preserve flags before trying to guess on visibility.
5421 (varpool_externally_visible_p): New function.
5422 (function_and_variable_visibility): Use it.
5424 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5426 Implemented parsing @synthesize and @dynamic for Objective-C.
5427 * c-parser.c (c_parser_external_declaration): Recognize
5428 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5429 (c_parser_objc_at_synthesize_declaration): New.
5430 (c_parser_objc_at_dynamic_declaration): New.
5432 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5434 * c-parser.c (c_parser_objc_class_declaration): After finding an
5435 error, parse the whole declaration then reset parser->error.
5437 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5440 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
5441 * builtins.c (mode_has_fma): Ditto.
5443 2010-10-18 Steve Ellcey <sje@cup.hp.com>
5447 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
5449 2010-10-18 Joseph Myers <joseph@codesourcery.com>
5451 * config/i386/i386.c (ix86_option_override_internal): Define and
5452 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
5454 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5455 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
5457 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5459 Merge from 'apple/trunk' branch on FSF servers.
5460 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
5461 following Objective-C change:
5463 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
5466 * c-parse.in (objc_quals): Build objc qualifier list same way
5469 2010-10-18 Jan Hubicka <jh@suse.cz>
5471 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
5472 function_and_variable_visibility): Revert accidental commit.
5474 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5476 Merge from 'apple/trunk' branch on FSF servers.
5477 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
5478 the following Objective-C change:
5480 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
5483 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
5484 'volatilized' type used in a typeof operator.
5486 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
5488 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
5489 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
5490 rewrite modelled on gimple_purge_dead_eh_edges.
5491 (gimple_purge_all_dead_abnormal_call_edges): New function.
5492 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
5493 directly instead of through gimple_purge_dead_abnormal_call_edges.
5494 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
5495 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
5496 removed AB side-effects from one of its statements.
5497 (init_pre): Initialize need_ab_cleanup.
5498 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
5499 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
5501 2010-10-18 Jakub Jelinek <jakub@redhat.com>
5504 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
5505 on computed goto argument.
5507 2010-10-18 Richard Guenther <rguenther@suse.de>
5509 PR tree-optimization/45967
5510 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
5511 (could_have_pointers): Likewise.
5512 (handle_rhs_call, handle_const_call, handle_pure_call,
5513 find_func_aliases, intra_create_variable_infos): Remove calls to them.
5514 (struct fieldoff): Add must_have_pointers field.
5515 (type_must_have_pointers): New function.
5516 (field_must_have_pointers): Likewise.
5517 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
5518 Adjust field merging.
5519 (create_function_info_for): May-have-pointers of varinfo is
5521 (create_variable_info_for_1): Likewise.
5523 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
5525 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
5526 of operands to vec_concat.
5528 2010-10-18 Richard Guenther <rguenther@suse.de>
5531 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
5532 also clear references to entries of it.
5534 2010-10-18 Andi Kleen <ak@linux.intel.com>
5537 * gccbug.in: Remove.
5538 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
5539 (doc, distclean, install-common): Remove reference to gccbug.
5540 * configure: Regenerate.
5541 * configure.ac (all_outputs): Remove gccbug.
5542 * doc/configfiles.texi: Remove references to gccbug.
5543 * doc/sourcebuild.texi: Dito.
5545 2010-10-18 Jakub Jelinek <jakub@redhat.com>
5548 * fold-const.c (fold_binary_loc): If integer_pow2p has
5549 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
5551 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
5552 Jeremie Salvucci <jeremie.salvucci@free.fr>
5554 * gengtype.c (verbosity_level): Add variable.
5555 (set_gc_used): Count variables for verbosity.
5556 (close_output_files): Backing up files, counting written ones
5558 (write_types): Count emitted functions for verbosity. Added
5560 (write_enum_defn): Count structures for verbosity. Added debug
5562 (gengtype_long_options): Add "verbose" & "backupdir".
5563 (print_usage): Ditto.
5564 (main): Verbose display of parsed files.
5566 * gengtype.h (verbosity_level): Add declaration.
5568 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
5570 * gengtype.c (parse_program_options): Add allocation of
5571 plugin_files, and correct test on nb_plugin_files.
5573 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5575 Merge from 'apple/trunk' branch on FSF servers.
5577 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5580 * c-decl.c (undeclared_variable): Issue diagnostic on
5581 private 'ivar' access.
5583 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
5586 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
5587 generated sequence to match *avx_vperm2f128<mode>_nozero.
5588 (vec_interleave_lowv4df): Ditto.
5589 (vec_interleave_highv8sf): Ditto.
5590 (vec_interleave_lowv8sf): Ditto.
5592 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
5594 * libgcov.c (create_file_directory): Enable it for win32 case.
5595 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
5596 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
5597 (GCOV_PREFIX_SKIP): Likewise.
5599 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5601 * doc/objc.texi (GNU Objective-C runtime API): New section.
5602 (Modern GNU Objective-C runtime API): New section.
5603 (Traditional GNU Objective-C runtime API): New section.
5604 (Executing code before main): Mention that this section is
5605 specific to the GNU Objective-C runtime.
5606 (Garbage Collection): Same.
5608 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
5610 * c-parser.c (c_parser_for_statement): Move initialization of
5611 cond and incr before if.
5613 2010-10-17 Anatoly Sokolov <aesok@post.ru>
5615 * target.def (preferred_output_reload_class): New hook.
5616 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
5617 * doc/tm.texi: Regenerate.
5618 * targhooks.c (default_preferred_output_reload_class): New function.
5619 * targhooks.h (default_preferred_output_reload_class): Declare.
5620 * reload.c (find_dummy_reload): Change rclass argument type from
5621 enum reg_class to reg_class_t. Change this_alternative array type
5622 from enum reg_class to reg_class_t.
5623 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5624 (push_reload): Change preferred_class variable type to reg_class_t.
5625 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5626 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
5627 argument type from enum reg_class to reg_class_t. Use
5628 HARD_REGISTER_NUM_P predicate.
5629 * recog.h (reg_fits_class_p): Update prototype.
5631 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5632 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
5634 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
5635 static. Change regclass argument and result types from enum reg_class
5637 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5639 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5641 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
5642 visibility enum, and handle @package.
5644 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5646 * doc/objc.texi (What you can and what you cannot do in +load):
5647 Document that sending messages to constant string objects in +load
5648 is not guaranteed to work.
5650 2010-10-16 Jan Hubicka <jh@suse.cz>
5653 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
5654 existence of refrences before removing the function.
5656 2010-10-16 Jan Hubicka <jh@suse.cz>
5658 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
5659 only_called_at_startup and only_called_at_exit.
5660 (cgraph_propagate_frequency): Compute only_called_at_startup and
5661 only_called_at_exit.
5662 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
5663 only_called_at_exit.
5664 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
5666 * predict.c (compute_function_frequency): Initialize the new flags.
5668 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
5670 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
5671 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
5672 on the bounds of its domain.
5673 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
5675 2010-10-16 Anatoly Sokolov <aesok@post.ru>
5677 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
5678 * config/avr/avr-protos.h (preferred_reload_class): Remove.
5679 * config/avr/avr.c (preferred_reload_class): Remove.
5680 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
5681 * config/pa/pa.c (emit_move_sequence): Update comment
5682 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
5683 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
5684 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
5685 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
5686 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
5687 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
5688 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
5689 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
5690 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
5691 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
5692 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
5693 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
5694 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
5696 2010-10-16 Joseph Myers <joseph@codesourcery.com>
5698 * opts.c (set_fast_math_flags,
5699 set_unsafe_math_optimizations_flags): Make static.
5700 * toplev.h (set_fast_math_flags,
5701 set_unsafe_math_optimizations_flags): Remove prototypes.
5703 2010-10-16 Joseph Myers <joseph@codesourcery.com>
5705 * config/arm/arm.c (arm_option_optimization): Set
5706 flag_section_anchors to 1 not 2.
5707 * config/i386/i386.c (ix86_option_override_internal): Check
5708 global_options_set.x_flag_zee and
5709 global_options_set.x_flag_omit_frame_pointer.
5710 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
5712 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5713 global_options_set.x_flag_omit_frame_pointer.
5714 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
5715 opts->x_flag_section_anchors to 1 not 2.
5716 * config/sh/sh.c (sh_option_optimization): Don't set
5717 flag_schedule_insns to 2.
5718 (sh_option_override): Check
5719 global_options_set.x_flag_schedule_insns.
5720 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
5722 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
5724 * configure.ac: Make sure inhibit_libc remains false for mingw targets
5726 * configure: Regenerated.
5728 2010-10-15 Xinliang David Li <davidxl@google.com>
5730 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
5732 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
5733 into a recursive function.
5735 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
5737 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
5738 (*movdfcc_1): ditto.
5740 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5742 * target.def (target_option.init_struct): New hook.
5743 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
5744 * doc/tm.texi: Regenerate.
5745 * hooks.c (hook_void_gcc_optionsp): New.
5746 * hooks.h (hook_void_gcc_optionsp): Declare.
5747 * langhooks-def.h (lhd_init_options_struct): Remove.
5748 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
5749 * langhooks.c (lhd_init_options_struct): Remove.
5750 * opts.c (init_options_struct): Also call
5751 targetm.target_option.init_struct.
5752 * config/i386/i386.c (ix86_option_init_struct,
5753 TARGET_OPTION_INIT_STRUCT): New.
5754 (ix86_option_optimization): Move some settings to
5755 ix86_option_init_struct.
5756 * config/pdp11/pdp11.c (pdp11_option_init_struct,
5757 TARGET_OPTION_INIT_STRUCT): New.
5758 (pdp11_option_optimization): Move some settings to
5759 pdp11_option_init_struct.
5760 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
5761 rs6000_option_init_struct. Use options structure pointer.
5762 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5763 * config/s390/s390.c (s390_option_init_struct,
5764 TARGET_OPTION_INIT_STRUCT): New.
5765 (s390_option_optimization): Don't set
5766 flag_asynchronous_unwind_tables here.
5767 * config/sh/sh.c (sh_option_init_struct,
5768 TARGET_OPTION_INIT_STRUCT): New.
5769 (sh_option_optimization): Don't set flag_finite_math_only here.
5770 * config/spu/spu.c (spu_option_optimization): Replace by
5771 spu_option_optimization. Use options structure pointer.
5772 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5774 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5776 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
5778 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
5779 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
5780 (Standard names): Document fma.
5782 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
5783 __FP_FAST_FMAF, __FP_FAST_FMAL.
5785 * builitns.c (expand_builtin_mathfn_ternary): New function for
5786 expanding ternary math functions, like fma.
5787 (expand_builtin): Call it for the fma builtins.
5789 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
5792 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
5793 vectorizable functions to support vectorizing fma.
5795 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5796 Handle fma builtins.
5798 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
5799 (UNSPEC_VSX_MSUB): Ditto.
5800 (UNSPEC_VSX_NMADD): Ditto.
5801 (UNSPEC_VSX_NMSUB): Ditto.
5802 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
5803 of UNSPEC. Renumber combiner patterns.
5804 (vsx_fmsub<mode>4*): Ditto.
5805 (vsx_fnmadd<mode>4*): Ditto.
5806 (vsx_fnmsub<mode>4*): Ditto.
5808 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
5809 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
5810 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
5811 (altivec_vmaddfp_1): Ditto.
5812 (altivec_vmaddfp_2): Ditto.
5813 (atlivec_mulv4sf3): Ditto.
5814 (altivec_vnmsubfp): Ditto.
5815 (altivec_vnmsubfp_1): Ditto.
5816 (altivec_vnmsubfp_2): Ditto.
5817 (altivec_vnmsubfp_3): Delete.
5819 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
5820 (fmasf4_fpr): Ditto.
5821 (fmssf4_fpr): Ditto.
5822 (fnmasf4_fpr): Ditto.
5823 (fnmssf4_fpr): Ditto.
5825 (fmadf4_fpr): Ditto.
5826 (fmsdf4_fpr): Ditto.
5827 (fnmadf4_fpr): Ditto.
5828 (fnmsdf4_fpr): Ditto.
5830 * optabs.h (OTI_fma): Add fma optab.
5833 * genopinit.c (optabs): Set fma optab.
5835 * rtl.def (FMA): Add FMA rtl.
5837 * tree.h (mode_has_fma): New function to return if MODE supports a
5838 fast multiply and add instruction.
5839 * builtins.c (mode_has_fma): Ditto.
5841 2010-10-15 Jan Hubicka <jh@suse.cz>
5843 * lto-streamer-out.c (write_symbol): Use pointer set of seen
5844 objects instead of bitmap.
5845 (produce_symtab): Likewise; output defined symbols first.
5847 2010-10-15 Jie Zhang <jie@codesourcery.com>
5849 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
5850 Option Summary and Index.
5852 2010-10-15 Richard Guenther <rguenther@suse.de>
5854 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
5855 for automatic variables again.
5857 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5859 * doc/extend.texi (Variable Length): Don't refer to VLAs not
5862 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5864 * config/rx/rx.c (rx_option_optimization): Change to
5865 rx_override_options_after_change. Don't change
5866 flag_lto_compression_level. Don't check for changes to whether
5867 FPU instructions can be used. Check and set only
5868 flag_finite_math_only, not other fast-math flags.
5869 (rx_option_override): Call rx_override_options_after_change.
5870 (TARGET_OPTION_OPTIMIZATION): Remove.
5871 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5873 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5875 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
5876 disable section anchors for lang_hooks.name[4] != 'O'.
5878 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5880 * config/frv/frv.c (frv_option_optimization,
5881 TARGET_OPTION_OPTIMIZATION): Remove.
5882 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
5884 2010-10-15 Michael Matz <matz@suse.de>
5886 * cgraphunit.c (clone_of_p): Define unconditionally.
5888 2010-10-15 Richard Guenther <rguenther@suse.de>
5891 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
5893 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
5895 * ifcvt.c (find_active_insn_before): New function.
5896 (find_active_insn_after): New function.
5897 (cond_exec_process_if_block): Use new functions to replace
5898 prev_active_insn() and next_active_insn().
5900 2010-10-14 Yao Qi <yao@codesourcery.com>
5903 * config/arm/arm.c (arm_build_builtin_va_list): Assign
5904 va_list_name to TYPE_STUB_DECL (va_list_type).
5906 2010-10-14 Jan Hubicka <jh@suse.cz>
5909 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
5910 redirected to clone, be happy.
5911 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
5912 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
5913 former_clone_of unconditionally.
5915 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5917 Merge from FSF apple 'trunk' branch.
5918 2006 Fariborz Jahanian <fjahanian@apple.com>
5920 Radars 4436866, 4505126, 4506903, 4517826
5921 * c-parser.c (c_parser, objc_property_attr_context) New flag.
5922 (c_lex_one_token): Handle property attributes.
5923 (c_parser_external_declaration): Handle @property.
5924 (c_parser_declaration_or_fndef): Warn on invalid attributes before
5925 @alias, @class, @end and @property objc keywords.
5926 (c_parser_objc_methodprotolist): Handle @property.
5927 (c_parser_objc_property_attrlist): New.
5928 (c_parser_objc_at_property): New.
5929 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
5930 (build_modify_expr): Likewise.
5932 2010-10-14 Jakub Jelinek <jakub@redhat.com>
5934 PR tree-optimization/46008
5935 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
5937 2010-10-14 Richard Guenther <rguenther@suse.de>
5939 PR tree-optimization/44913
5940 * tree-data-ref.c (disjoint_objects_p): Remove.
5941 (dr_may_alias_p): Simplify. Only hand the base object to
5943 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5944 some more trees, bail out instead of asserting.
5945 (ptr_derefs_may_alias_p): Likewise. Export.
5946 (refs_may_alias_p_1): Handle STRING_CSTs.
5947 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
5949 2010-10-14 Joseph Myers <joseph@codesourcery.com>
5952 * c-typeck.c (build_binary_op): Don't try to compute a semantic
5953 type with excess precision for boolean operations.
5955 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
5956 Basile Starynkevitch <basile@starynkevitch.net>
5958 * gengtype.c: Include getopt.h and version.h.
5960 (lang_bitmap, struct outf, outf_p)
5961 (get_output_file_with_visibility, oprintf): Definitions moved to
5963 (output_files, header_file, srcdir, srcdir_len, this_file)
5964 (do_dump): No more static variables.
5966 (dbgprint_count_type_at): Added new function.
5967 (gengtype_long_options): New.
5968 (print_usage, print_version, parse_program_options): New.
5969 (main): Call parse_program_options, and removed old option
5970 handling code. Added some debug output.
5972 * gengtype.h: Updated copyright year.
5973 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
5974 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
5975 Moved from gengtype.c to here.
5976 (do_debug, read_state_filename, write_state_filename): New variables.
5977 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
5980 (REVISION): Always defined.
5981 (version.o): Removed ifdef REVISION_c.
5982 (s-gtype): Pass arguments to build/gengtype program.
5983 (build/version.o): Added building rule.
5984 (build/gengtype$(build_exeext)): Added build/version.o.
5986 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5988 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
5989 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
5992 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
5994 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
5995 may_trap_or_fault_p instead of may_trap_p predicate.
5996 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
5997 (substitute_placeholder_in_expr): Likewise.
5998 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
5999 flag on MEM_REF nodes.
6000 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
6001 flags on INDIRECT_REF nodes.
6003 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
6005 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
6006 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
6007 (arm*-*-eabi*) <tm_file>: Likewise.
6008 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
6009 (frv-*-*linux*) <tm_file>: Likewise.
6010 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
6011 and associated helper macros.
6012 * config/frv/frv-abi.h: Delete.
6014 2010-10-14 Richard Guenther <rguenther@suse.de>
6017 * tree.def (NULLPTR_TYPE): New tree code.
6018 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
6019 * dwarf2out.c (is_base_type): Likewise.
6020 (gen_type_die_with_usage): Likewise.
6021 * sdbout.c (plain_type_1): Likewise.
6022 * tree.c (build_int_cst_wide): Likewise.
6023 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
6025 2010-10-14 Joseph Myers <joseph@codesourcery.com>
6027 * params.c (params_finished): New.
6028 (add_params): Assert !params_finished.
6029 (finish_params): New.
6030 (set_param_value_internal): Take params and params_set
6031 parameters. Assert params_finished.
6032 (set_param_value, maybe_set_param_value): Take params and
6033 params_set parameters. Update calls to set_param_value_internal.
6034 (set_default_param_value): Assert !params_finished. Don't use
6035 set_param_value_internal.
6036 (default_param_value, init_param_values): New.
6037 * params.h (struct param_info): Change value to default_value.
6039 (set_param_value, maybe_set_param_value): Add params and
6040 params_set parameters.
6041 (PARAM_VALUE): Get parameters from global_options.
6042 (PARAM_SET_P): Remove.
6043 (finish_params, default_param_value, init_param_values): New.
6044 * common.opt (param_values): New Variable.
6045 * config/arm/arm.c (arm_option_override): Pass extra arguments to
6046 maybe_set_param_value.
6047 * config/i386/i386.c (ix86_option_override_internal): Pass extra
6048 arguments to maybe_set_param_value.
6049 * config/picochip/picochip.c (picochip_option_override): Pass
6050 extra arguments to maybe_set_param_value.
6051 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
6052 extra arguments to maybe_set_param_value.
6053 * config/s390/s390.c (s390_option_override): Use
6054 maybe_set_param_value instead of set_param_value. Pass extra
6055 arguments to maybe_set_param_value.
6056 * config/sparc/sparc.c (sparc_option_override): Pass extra
6057 arguments to maybe_set_param_value.
6058 * config/spu/spu.c (spu_option_override): Pass extra arguments to
6059 maybe_set_param_value.
6060 * opts.c (handle_param): Take opts and opts_set parameters.
6061 Update call to set_param_value.
6062 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
6063 initial_loop_invariant_max_bbs_in_loop): Remove.
6064 (init_options_once): Don't set them.
6065 (init_options_struct): Initialize parameters structures.
6066 (default_options_optimization): Use default_param_value when
6067 restoring defaults. Update calls to maybe_set_param_value.
6068 (finish_options): Update calls to maybe_set_param_value.
6069 (common_handle_option): Update calls to handle_param and
6071 * toplev.c (DEFPARAM): Update definition for changes to param_info.
6072 (general_init): Call finish_params.
6074 2010-10-14 Nick Clifton <nickc@redhat.com>
6076 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
6077 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
6078 (FIRST_PSEUDO_REGISTER): Increase by one.
6079 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
6080 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
6081 (MODES_TIEABLE): Call mn10300_modes_tieable.
6082 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
6083 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
6084 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
6085 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
6086 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
6087 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6088 (mn10300_cc_status_mdep): Delete.
6089 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
6090 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
6091 the combine-stack-adjust pass.
6092 (print_operand): Use the mode of the comparison operation to
6093 select the comparison suffix.
6094 (notice_update_cc): Delete.
6095 (mn10300_secondary_reload_class): Remove test for stack pointer
6097 (output_tst): Rename to mn10300_output_cmp.
6098 (impossible_plus_operand): Move into predicates.md.
6099 (mn10300_legitimize_address): Make static.
6100 (mn10300_legitimate_address_p): Make static. Only allow SI sized
6101 constant pic operands.
6102 (mn10300_legitimate_constant_p): New function.
6103 (mn10300_case_values_threshold): Make static.
6104 (mn10300_hard_regno_mode_ok): New function.
6105 (mn10300_modes_tieable): New function.
6106 (mn10300_select_cc_mode): New function.
6107 * config/mn10300/predicates.md (impossible_plus_operand): Define.
6108 * config/mn10300/mn10300-protos.h: Tidy.
6109 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
6110 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
6111 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
6112 with clobbers or sets of CC_REG.
6114 (mov*): Remove use of CLR instruction.
6115 (cbranch_si4_<code>): New pattern/split.
6116 (integer_conditional_branch): New pattern.
6117 (cbranch_sf4_<code>): New pattern/split.
6118 (float_conditional_branch): New pattern.
6119 (casesi): Use addsi3 pattern instead of movsi pattern to add and
6120 move a value at the same time.
6121 (cc0 peepholes): Remove.
6123 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6125 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
6126 on RTX_FRAME_RELATED_P insns and the insn to which
6127 NOTE_INSN_EPILOGUE_BEG is attached.
6128 * sched-vis.c (print_value): Allow NULL value.
6130 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6132 PR rtl-optimization/45570
6133 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
6134 assert that we are pipelining outer loops. Allow returning
6137 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6139 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
6140 (tidy_control_flow): Tidy vertical space.
6141 (sel_remove_bb): New variable idx. Use it to remember the basic
6142 block index before deleting the block.
6143 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
6144 (sel_merge_blocks): ... here.
6145 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
6147 2010-10-14 Jakub Jelinek <jakub@redhat.com>
6149 * cse.c (is_dead_reg): Change into inline function that is not
6150 called through for_each_rtx.
6151 (set_live_p): Adjust caller.
6152 (insn_live_p): Don't reset DEBUG_INSNs here.
6153 (struct dead_debug_insn_data): New data.
6154 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
6155 (delete_trivially_dead_insns): If there is just one setter for the
6156 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
6157 and add DEBUG_INSN for it right before the removed setter and
6158 use the DEBUG_EXPR instead of the dead pseudo.
6160 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
6162 * et-forest.c (et_nca): Return NULL immediately when
6163 the dominance forest has disjoint components.
6165 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
6167 * ira.c (setup_class_hard_regs): Fix typo in indexing
6168 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
6170 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
6172 * graph.c (inbb): New variable.
6173 (start_bb): Set inbb to 1 if output is inside of a building block.
6174 (end_bb): Check if output is inside of a building block.
6176 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
6178 PR rtl-optimization/45912
6179 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
6180 regno of registers instead of their index to compute the alignment.
6182 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
6184 * config/i386/i386.c (ix86_build_const_vector): Check vector
6185 mode instead of scalar mode.
6186 (ix86_build_signbit_mask): Likewise.
6187 (ix86_expand_fp_absneg_operator): Updated.
6188 (ix86_expand_copysign): Likewise.
6189 (ix86_expand_int_vcond): Likewise.
6190 (ix86_emit_swdivsf): Likewise.
6191 (ix86_sse_copysign_to_positive): Likewise.
6192 (ix86_expand_sse_fabs): Likewise.
6193 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
6194 * config/i386/sse.md (copysign<mode>3): Likewise.
6195 (sse2_cvtudq2ps): Likewise.
6196 (vec_unpacku_float_hi_v4si): Likewise.
6197 (vec_unpacku_float_lo_v4si): Likewise.
6199 * config/i386/i386.c (ix86_builtins): Add
6200 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
6201 (bdesc_args): Likewise.
6202 (ix86_builtin_vectorized_function): Support
6203 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
6204 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
6205 and IX86_BUILTIN_CVTPS2DQ256.
6206 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
6208 * config/i386/sse.md (STORENT_MODE): New.
6209 (VEC_FLOAT_MODE): Likewise.
6210 (VEC_EXTRACT_MODE): Likewise.
6211 (*avx_cvtdq2pd256_2): Likewise.
6212 (vec_pack_trunc_v4df): Likewise.
6213 (vec_interleave_highv8sf): Likewise.
6214 (vec_interleave_lowv8sf): Likewise.
6215 (storent<mode>): Macroized.
6216 (<code><mode>2: absneg): Likewise.
6217 (copysign<mode>3): Likewise.
6218 (vec_extract<mode>): Likewise.
6221 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
6224 2010-10-13 Richard Guenther <rguenther@suse.de>
6225 H.J. Lu <hongjiu.lu@intel.com>
6227 * config/i386/sse.md (reduc_splus_v8sf): Add.
6228 (reduc_splus_v4df): Likewise.
6229 (vec_unpacks_hi_v8sf): Likewise.
6230 (vec_unpacks_lo_v8sf): Likewise.
6231 (*avx_cvtps2pd256_2): Likewise.
6232 (vec_unpacks_float_hi_v8si): Likewise.
6233 (vec_unpacks_float_lo_v8si): Likewise.
6234 (vec_interleave_highv4df): Likewise.
6235 (vec_interleave_lowv4df): Likewise.
6237 2010-10-13 Richard Guenther <rguenther@suse.de>
6240 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
6241 alone if there are no virtual methods.
6243 2010-10-13 Richard Henderson <rth@redhat.com>
6245 * expr.c (build_personality_function): Take parameter LANG instead
6246 of parameter NAME. Build the name based on the lang prefix and the
6247 unwind method in use.
6248 * tree.c (lhd_gcc_personality): Update call to
6249 build_personality_function.
6251 2010-10-13 Richard Guenther <rguenther@suse.de>
6254 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
6256 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
6258 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
6259 Canonicalize input operands of ASM_OPERANDS insns.
6261 2010-10-13 Richard Guenther <rguenther@suse.de>
6263 PR tree-optimization/45788
6264 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
6265 EH update until fixup-cfg.
6267 2010-10-13 Julian Brown <julian@codesourcery.com>
6269 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
6270 from CORE_REGS and GENERAL_REGS classes.
6271 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
6272 final constraint for register preferencing.
6274 2010-10-13 Richard Guenther <rguenther@suse.de>
6276 PR tree-optimization/45970
6277 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
6278 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
6279 (stmt_kills_ref_p): Likewise.
6280 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
6282 2010-10-13 Richard Guenther <rguenther@suse.de>
6284 PR tree-optimization/45982
6285 * tree-ssa-structalias.c (make_constraints_to): New function.
6286 (make_constraint_to): Implement in terms of make_constraints_to.
6287 (find_func_aliases): Properly make return values of pure/const
6288 functions escape if they assign to sth that is not a pointer.
6290 2010-10-13 Richard Guenther <rguenther@suse.de>
6293 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6294 Fixup the CFG when EH was fixed up.
6296 2010-10-13 Ira Rosen <irar@il.ibm.com>
6298 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
6299 Use operand's type for POINTER_PLUS_EXPR.
6301 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
6303 * c-parser.c (c_parser_for_statement): Initialize incr.
6305 2010-10-12 Xinliang David Li <davidxl@google.com>
6307 PR tree-optimization/45972
6308 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
6309 with too many arguments.
6311 2010-10-12 Jakub Jelinek <jakub@redhat.com>
6314 * tree-ssa-forwprop.c: Include expr.h.
6315 (constant_pointer_difference, simplify_builtin_call): New functions.
6316 (tree_ssa_forward_propagate_single_use_vars): Call
6317 simplify_builtin_call on builtin calls.
6319 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
6321 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
6322 (*adddi3_extend_sp32): Likewise.
6323 (*subdi3_insn_sp32): Likewise.
6324 (*subdi3_extend_sp32): Likewise.
6325 (*negdi2_sp32): Use negative test for consistency.
6327 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
6329 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
6330 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6331 * config/fixed-bit.h: Likewise.
6332 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6333 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6334 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
6335 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
6336 (DF_SIZE): Likewise.
6337 * doc/tm.texi: Regenerate.
6339 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
6341 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
6342 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
6343 (*isel_reversed_unsigned_<mode>): New.
6344 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
6345 as valid comparisons and adjust operands and output appropriately.
6346 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
6348 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
6350 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
6351 DATA_ALIGNMENT and add COND parameter. Update comments above.
6352 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
6353 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
6355 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
6358 * exec-tool.in: Support '-plugin' as the second option to the linker.
6360 2010-10-12 Richard Henderson <rth@redhat.com>
6363 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
6364 (expand_stack_vars): Assert large base allocated when used.
6366 2010-10-12 Richard Guenther <rguenther@suse.de>
6368 * tree-ssa-structalias.c (get_constraint_for_1): Constants
6369 only point to nonlocal, not anything.
6371 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6373 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
6374 unwind info for exceptions.
6376 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6379 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
6380 Document optional target selector.
6382 2010-10-12 Joseph Myers <joseph@codesourcery.com>
6384 * flag-types.h: New.
6385 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
6386 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
6388 (OPTIONS_H): Define.
6389 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
6391 * configure.ac (tm_include_list): Include options.h not flags.h.
6392 * configure: Regenerate.
6393 * flags.h: Include flag-types.h. Include options.h at top of file
6395 (enum debug_info_type, enum debug_info_level, enum
6396 debug_info_usage, enum symbol_visibility, struct visibility_flags,
6397 enum ira_algorithm, enum ira_region, enum excess_precision, enum
6398 graph_dump_types, enum stack_check_type,
6399 enum warn_strict_overflow_code): Move to flag-types.h
6400 * opth-gen.awk: Include flag-types.h in options.h.
6402 2010-10-12 Jakub Jelinek <jakub@redhat.com>
6404 * expr.c (store_expr): Share code for STRING_CST and
6405 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
6406 check if target is a MEM.
6408 * rtl.h: Include hashtab.h.
6409 (iterative_hash_rtx): New prototype.
6410 * rtl.c (iterative_hash_rtx): New function.
6411 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
6412 (output_loc_list): Return immediately if emitted is set, set it.
6413 (hash_loc_operands, hash_locs, hash_loc_list,
6414 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
6415 optimize_location_lists_1, optimize_location_lists): New function.
6416 (dwarf2out_finish): Call optimize_location_lists.
6417 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
6419 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6423 * Makefile.in ($(lang_checks_parallel))
6424 ($(lang_checks_parallelized)): Use single quotes for
6425 $(RUNTESTFLAGS), to allow passing quoted content.
6427 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6429 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
6430 actual_oldval. Use __builtin_expect.
6431 (SUBWORD_VAL_CAS): Likewise.
6433 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
6435 * recog.c (nonmemory_operand): Call immediate_operand for
6436 CONSTANT_P operands.
6438 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
6440 * config/i386/i386.md (movmem<mode>): Macroize expander from
6441 movmem{si,di} using SWI48 mode iterator.
6442 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
6443 *strmovsi_rex_1 using P mode iterator.
6444 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
6445 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
6446 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
6447 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
6448 (setmem<mode>): Macroize expander from setmem{si,di} using
6449 SWI48 mode iterator.
6450 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
6451 *strsetsi_rex_1 using P mode iterator.
6452 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
6453 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
6454 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
6455 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
6456 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
6457 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
6458 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
6460 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
6461 *strlenqi_rex_1 using P mode iterator.
6463 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
6466 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
6468 (mark_ref_live, mark_ref_dead): Use them.
6469 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
6470 Save the original reg, and use the new functions.
6471 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
6473 (check_and_make_def_conflict): Save the original reg.
6475 2010-10-11 Martin Jambor <mjambor@suse.cz>
6478 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
6481 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6483 * Makefile.in ($(lang_checks_parallel))
6484 ($(lang_checks_parallelized)): Use single quotes for
6485 $(RUNTESTFLAGS), to allow passing quoted content.
6488 * opt-functions.awk (BEGIN): New section.
6489 (lower, upper, digit, alnum): New variables.
6490 (static_var, opt_sanitized_name): Use alnum instead of character
6491 classes, for non-C locale.
6492 * optc-gen.awk: Likewise.
6493 * opth-gen.awk: Likewise.
6495 2010-10-11 Anatoly Sokolov <aesok@post.ru>
6497 * target.def (preferred_reload_class): New hook.
6498 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
6499 * doc/tm.texi: Regenerate.
6500 * targhooks.c (default_preferred_reload_class): New function.
6501 * targhooks.h (default_preferred_reload_class): Declare.
6502 * reload.c (find_dummy_reload): Change preferred_class variable type
6503 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
6505 (find_reloads): Change goal_alternative array type from int to
6506 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
6507 (push_reload, find_reloads_address_part): Use
6508 TARGET_PREFERRED_RELOAD_CLASS target hook.
6509 * reload1.c (emit_input_reload_insns): Ditto.
6510 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
6511 hook. Change rclass argument and secondary_class variable types from
6512 'enum reg_class' to reg_class_t.
6514 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
6515 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
6516 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
6517 Change regclass argument and result types from enum reg_class to
6519 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6521 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
6523 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
6524 in masking operations.
6525 (simplify_const_unary_operation): Likewise.
6526 (simplify_binary_operation_1): Likewise.
6527 (simplify_const_binary_operation): Likewise.
6528 (simplify_const_relational_operation): Likewise.
6529 (simplify_ternary_operation): Likewise.
6530 (simplify_immed_subreg): Likewise.
6532 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6535 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
6536 (TARGET_SUPPORTS_WEAK): New.
6537 * doc/tm.texi: Regenerate.
6538 * defaults.h (SUPPORTS_WEAK): Update comment.
6539 (TARGET_SUPPORTS_WEAK): New.
6540 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
6541 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
6543 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
6544 make_decl_one_only): Likewise.
6545 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
6546 TARGET_SUPPORTS_WEAK.
6547 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
6548 instead of SUPPORTS_WEAK.
6550 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6552 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
6554 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
6556 * vec.h (VEC_qsort): Define.
6557 * dbxout.c (output_used_types): Use it.
6558 * df-scan.c (df_sort_and_compress_refs): Likewise.
6559 (df_sort_and_compress_mws): Likewise.
6560 * genautomata.c (uniq_sort_alt_states): Likewise.
6561 (evaluate_equiv_classes): Likewise.
6562 (output_trans_table): Likewise.
6563 (output_state): Likewise.
6564 * gimplify.c (compare_case_labels): Likewise.
6565 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
6566 * ipa.c (build_cdtor_fns): Likewise.
6567 * lto.c (lto_wpa_write_files): Likewise.
6568 * sel-sched.c (fill_vec_av_set): Likewise.
6569 * tree-predcom.c (determine_roots_comp): Likewise.
6570 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
6571 (splice_param_accesses): Likewise.
6572 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
6573 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6574 (reassociate_bb): Likewise.
6575 * tree-ssa-sccvn.c (sort_scc): Likewise.
6576 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
6578 2010-10-11 Ian Lance Taylor <iant@google.com>
6580 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
6581 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
6582 TREE_THIS_NOTRAP when appropriate.
6583 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
6584 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
6585 newly created MEM_REF.
6587 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6589 Nathan Froyds patch to hooks FUNCTION_ARG etc.
6590 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
6591 (picochip_incoming_function_arg): Delete.
6592 (picochip_arg_advance): Delete.
6593 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
6594 (FUNCTION_INCOMING_ARG): Delete.
6595 (FUNCTION_ARG_ADVANCE): Delete.
6596 * config/picochip/picochip.c (picochip_function_arg): Take a
6597 const_tree and a bool.
6598 (picochip_incoming_function_arg): Likewise.
6599 (picochip_arg_advance): Likewise.
6600 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6601 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6603 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6606 * ipa.c (build_cdtor): Delete endless loop.
6608 2010-10-07 Andi Kleen <ak@linux.intel.com>
6610 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
6612 (checksum-options): Add.
6613 (cc1-dummy): Remove.
6614 (cc1-checksum): Change to run checksum over object files
6616 * dummy-checksum.c: Remove.
6617 * genchecksum.c: Update copyright.
6618 (usage): Allow multiple arguments.
6620 (dosum): Change for incremental checksum. Remove C output.
6621 (main): Iterate over all argument files. Add C output.
6623 2010-10-11 Joseph Myers <joseph@codesourcery.com>
6625 * params.c (set_param_value_internal): New.
6626 (set_param_value): Use set_param_value_internal.
6627 (maybe_set_param_value, set_default_param_value): New.
6628 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
6629 (maybe_set_param_value, set_default_param_value): Declare.
6630 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
6631 * config/i386/i386.c (ix86_option_override_internal): Use
6632 maybe_set_param_value.
6633 * config/ia64/ia64.c (ia64_option_default_params,
6634 TARGET_OPTION_DEFAULT_PARAMS): New.
6635 (ia64_option_optimization): Move some code to
6636 ia64_option_default_params.
6637 * config/picochip/picochip.c (picochip_option_override): Use
6638 maybe_set_param_value.
6639 * config/rs6000/rs6000.c (rs6000_option_default_params,
6640 TARGET_OPTION_DEFAULT_PARAMS): New.
6641 (rs6000_option_override_internal): Use maybe_set_param_value.
6642 (rs6000_option_optimization): Move some code to
6643 rs6000_option_default_params.
6644 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
6645 * config/sh/sh.c (sh_option_default_params,
6646 TARGET_OPTION_DEFAULT_PARAMS): New.
6647 (sh_option_optimization): Move some code to sh_option_default_params.
6648 * config/sparc/sparc.c (sparc_option_override): Use
6649 maybe_set_param_value.
6650 * config/spu/spu.c (spu_option_default_params,
6651 TARGET_OPTION_DEFAULT_PARAMS): New.
6652 (spu_option_optimization): Move some code to spu_option_default_params.
6653 (spu_option_override): Use maybe_set_param_value.
6654 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
6655 * doc/tm.texi: Regenerate.
6656 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
6657 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
6659 (default_options_optimization): Use maybe_set_param_value.
6660 (finish_options): Use maybe_set_param_value.
6661 * target.def (target_option.default_params): New hook.
6662 * toplev.c (general_init): Call targetm.target_option.default_params.
6664 2010-10-11 Ira Rosen <irar@il.ibm.com>
6666 PR tree-optimization/45902
6667 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
6668 vector type for constants, unless it's a pointer.
6670 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6672 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
6674 2010-10-11 Jakub Jelinek <jakub@redhat.com>
6677 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
6678 (ix86_delegitimize_address): Use it.
6680 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
6682 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
6684 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
6686 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
6687 to cum struct in the call to function_arg_advance.
6688 (alpha_function_arg_advance): Mark named as unused.
6690 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
6692 * config/mips/mips.c (mips_handle_option): Make "value" with
6695 2010-10-09 Richard Henderson <rth@redhat.com>
6698 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
6699 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
6700 required_align, tidy the code a bit. Emit split_stack code in the
6701 right place. Mark the return value with the alignment properly.
6702 * expr.h (allocate_dynamic_stack_space): Update decl.
6703 * builtins.c (expand_builtin_apply): Update call to
6704 allocate_dynamic_stack_space.
6705 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
6706 * calls.c (initialize_argument_information): Update call to
6707 allocate_dynamic_stack_space.
6708 (expand_call): Likewise.
6710 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
6711 Don't update_stack_alignment here.
6712 (alloc_stack_frame_space): Make ALIGN unsigned.
6713 (stack_var_cmp): Sort by alignment too.
6714 (partition_stack_vars): Don't merge large and small alignment vars.
6715 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
6716 Take care when BASE is not virtual_stack_vars_rtx.
6717 (expand_stack_vars): Allocate dynamic stack space for large
6718 alignment variables.
6719 (expand_one_stack_var): Update all to expand_one_stack_var_at.
6720 (defer_stack_allocation): True for large alignment vars.
6721 (update_stack_alignment): Merge into ...
6722 (expand_one_var): ... here.
6723 (gimple_expand_cfg): Place code from expand_stack_vars.
6725 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6727 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6728 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
6729 (pdp11_function_arg_advance): New function.
6730 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6732 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6734 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
6735 * libgcc2.c: Likewise.
6737 2010-10-09 Richard Guenther <rguenther@suse.de>
6740 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
6741 Properly check if a decl is an automatic var.
6743 2010-10-09 Richard Guenther <rguenther@suse.de>
6746 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
6748 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6750 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
6751 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6752 * config/mmix/mmix.c (mmix_function_arg): Rename to...
6753 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
6755 (mmix_function_arg): New function.
6756 (mmix_function_incoming_arg): New function.
6757 (mmix_function_arg_advance): New function.
6758 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6759 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6761 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6763 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6764 * config/vax/vax.c (vax_function_arg): New function.
6765 (vax_function_arg_advance): New function.
6766 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6768 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6770 * config/pa/pa-protos.h (function_arg): Delete.
6771 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6772 * config/pa/pa.c (function_arg): Rename to...
6773 (pa_function_arg): ...this. Make static. Take a const_tree and
6775 (pa_function_arg_advance): New function.
6776 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6778 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6780 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6781 * config/m68k/m68k.c (m68k_function_arg): New function.
6782 (m68k_function_arg_advance): New function.
6783 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6785 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6787 * config/avr/avr-protos.h (function_arg): Delete.
6788 (function_arg_advance): Delete.
6789 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6790 * config/avr/avr.c (function_arg): Rename to...
6791 (avr_function_arg): ...this. Make static. Take a const_tree and
6793 (function_arg_advance): Rename to...
6794 (avr_function_arg_advance): ...this. Make static. Take a
6795 const_tree and a bool.
6796 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6798 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6800 * config/alpha/alpha-protos.h (function_arg): Delete.
6801 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6802 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
6803 * config/alpha/alpha.c (function_arg): Rename to...
6804 (alpha_function_arg): ...this. Make static. Take a const_tree and
6805 a bool. Delete TARGET_ABI_UNICOSMK code.
6806 (alpha_function_arg_advance): New function.
6807 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6809 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6811 * config/mep/mep-protos.h (mep_function_arg): Delete.
6812 (mep_function_arg_advance): Delete.
6813 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6814 * config/mep/mep.c (mep_function_arg): Make static. Take a
6815 const_tree and a bool.
6816 (mep_function_arg_advance): Likewise.
6817 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6819 2010-10-09 Richard Guenther <rguenther@suse.de>
6821 PR tree-optimization/45945
6822 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
6824 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
6826 PR tree-optimization/45612
6827 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
6828 Test LABEL_DECLs as well. Fix formatting issues.
6829 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
6830 whose label is present in NON_SSA_VARS.
6831 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
6832 as well. Fix formatting issues.
6833 (visit_bb): Fix typos and formatting issue.
6835 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6837 PR tree-optimization/45950
6838 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
6839 before initializing vno->op.
6841 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
6843 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
6844 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
6846 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
6849 * config/i386/i386.c (ix86_binary_operator_ok): Support
6850 "andhi/andsi/anddi" as a zero-extending move.
6852 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6854 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
6855 into a temporary array.
6857 2010-10-08 Jakub Jelinek <jakub@redhat.com>
6859 PR tree-optimization/45903
6860 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
6861 of {A,L}SHIFTRT of MEM.
6863 2010-10-08 Richard Guenther <rguenther@suse.de>
6865 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6866 Re-construct BLOCK_VARS.
6867 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
6868 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6869 * tree.c (free_lang_data_in_block): Remove.
6870 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
6871 Do not touch the BLOCK tree.
6872 * expr.c (expand_expr_real_1): Allow externals.
6874 2010-10-08 Richard Guenther <rguenther@suse.de>
6876 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
6877 Do not output BLOCK_SUBBLOCKS.
6878 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
6879 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
6880 Re-construct BLOCK_SUBBLOCKS of parent block.
6881 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
6882 for BINFO_BASE_ACCESSES.
6884 2010-10-08 Joseph Myers <joseph@codesourcery.com>
6886 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
6887 (TREE_H): Include $(FLAGS_H) instead of options.h.
6888 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
6889 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6890 * common.opt (flag_complex_method, flag_evaluation_order,
6891 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
6892 Variable declarations.
6893 * configure.ac (tm_include_list): Include flags.h instead of options.h.
6894 * configure: Regenerate.
6895 * flags.h: Condition out contents for target libraries. Include
6896 options.h at end of file.
6897 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
6898 flag_evaluation_order, flag_warn_unused_result): Remove.
6899 * gcc.c (main): Intialize global_options with global_options_init.
6900 * langhooks-def.h (lhd_init_options_struct): Declare.
6901 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6902 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
6903 * langhooks.c (lhd_init_options_struct): New.
6904 * langhooks.h (struct lang_hooks): Add init_options_struct.
6905 Update comment on init_options.
6906 * optc-gen.awk: Generate initializer for global_options_init, not
6908 * opth-gen.awk: Condition out structure declarations for target
6909 libraries. Declare global_options_init.
6910 * opts-common.c: Include flags.h instead of options.h.
6911 * opts.c (flag_warn_unused_result): Remove.
6912 (read_cmdline_options): Take gcc_options parameters. Pass them to
6913 read_cmdline_option.
6914 (initial_lang_mask, initial_min_crossjump_insns,
6915 initial_max_fields_for_field_sensitive,
6916 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
6917 (init_options_once): New. Split out of decode_options.
6918 (init_options_struct): New. Split out of decode_options.
6919 (decode_cmdline_options_to_array_default_mask): New.
6920 (default_options_optimization): New. Split out of decode_options.
6921 (decode_options): Move most code to other functions. Update call
6922 to read_cmdline_options.
6923 (finish_options): New. Split out of decode_options.
6924 * opts.h (decode_options): Add gcc_options parameters.
6925 (init_options_once, init_options_struct,
6926 decode_cmdline_options_to_array_default_mask): New.
6927 * toplev.c (flag_complex_method, flag_ira_algorithm,
6928 flag_ira_region, flag_evaluation_order): Remove.
6929 (general_init): Use global_options_init for initial flag values
6931 (toplev_main): Call init_options_once, init_options_struct,
6932 lang_hooks.init_options_struct,
6933 decode_cmdline_options_to_array_default_mask and
6934 lang_hooks.init_option before decode_options. Update arguments to
6936 * tree.h: Include flags.h instead of options.h.
6938 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6940 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6942 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6944 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
6946 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
6947 (FUNCTION_INCOMING_ARG): Delete.
6948 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
6949 (function_arg_slotno): Likewise. Take bool arguments.
6950 (sparc_arg_partial_bytes): Update call to it.
6951 (function_arg): Rename to...
6952 (sparc_function_arg_1): ...this. Take bool arguments.
6953 (sparc_function_arg, sparc_function_incoming_arg): New functions.
6954 (function_arg_advance): Rename to...
6955 (sparc_function_arg_advance): ...this. Take bool argument.
6956 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
6957 (TARGET_FUNCTION_INCOMING_ARG): Define.
6959 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6961 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
6963 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6964 * config/bfin/bfin.c (function_arg_advance): Rename to...
6965 (bfin_function_arg_advance): ...this. Make static. Take const_tree
6967 (function_arg): Rename to...
6968 (bfin_function_arg): ...this. Make static. Take const_tree and bool
6970 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6972 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6974 * config/score/score-protos.h (score_function_arg): Delete.
6975 (score_function_arg_advance): Delete.
6976 * config/score/score3.h (score3_function_arg_advance): Take a
6977 const_tree and a bool.
6978 (score3_function_arg): Likewise.
6979 * config/score/score7.h (score7_function_arg_advance): Likewise.
6980 (score7_function_arg): Likewise.
6981 * config/score/score3.c (score3_classify_arg): Likewise.
6982 (score3_function_arg_advance, score3_function_arg): Likewise.
6983 * config/score/score7.c (score7_classify_arg): Likewise.
6984 (score7_function_arg_advance, score7_function_arg): Likewise.
6985 * config/score/score.c (score_function_arg_advance): Likewise.
6986 (score_function_arg): Likewise. De-const-ify `cum' argument.
6987 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6989 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6991 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
6992 (s390_function_arg): Delete.
6993 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6994 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
6995 (s390_function_arg_integer): Likewise.
6996 (s390_function_arg_advance): Make static. Take a const_tree and
6998 (s390_function_arg): Likewise.
6999 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7001 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7003 * config/spu/spu-protos.h (spu_function_arg): Delete.
7004 * config/spu/spu.h (FUNCTION_ARG): Delete.
7005 (FUNCTION_ARG_ADVANCE): Move code to ...
7006 * config/spu/spu.c (spu_function_arg_advance): New function.
7007 (spu_function_arg): Make static. Take a const_tree and a bool.
7008 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
7009 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7011 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7013 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7015 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7017 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
7018 (init_vn_nary_op_from_op): New function.
7019 (init_vn_nary_op_from_stmt): New function.
7020 (vn_nary_op_lookup_1): New function.
7021 (sizeof_vn_nary_op): New function.
7022 (alloc_vn_nary_op_noinit): New function.
7023 (alloc_vn_nary_op): New function.
7024 (vn_nary_op_insert_into): New function.
7025 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
7026 (vn_nary_op_lookup): Likewise.
7027 (vn_nary_op_lookup_stmt): Likewise.
7028 (vn_nary_op_insert_pieces): Likewise.
7029 (vn_nary_op_insert): Likewise.
7030 (vn_nary_op_insert_stmt): Likewise.
7031 (copy_nary): Likewise.
7032 (set_value_id_for_result): New function.
7033 (set_hashtable_value_ids): Call it.
7035 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7037 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7038 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
7040 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7042 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
7043 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7045 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7048 * cse.c (cse_extended_basic_block): Preserve cc0 info across
7049 debug isnsn. Skip them when searching for cc0 setter.
7050 (set_live_p): Skip debug insns when searching for cc0 user.
7052 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7058 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
7059 type of MEM_REFs to INTEGER_CSTs.
7061 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7063 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
7064 m68hc11_print_operand_address.
7066 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7068 * builtins.c (rewrite_call_expr): Move code to...
7069 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
7070 (rewrite_call_expr_array): New function.
7071 (fold_builtin_sprintf_chk_1): New function.
7072 (fold_builtin_sprintf_chk): Call it.
7073 (gimple_fold_builtin_sprintf_chk): Likewise.
7074 (fold_builtin_snprintf_chk_1): New function.
7075 (fold_builtin_snprintf_chk): Call it.
7076 (gimple_fold_builtin_snprintf_chk): Likewise.
7077 (gimple_rewrite_call_expr): Delete.
7079 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7081 * config.host: Update copyright year.
7083 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7085 * config.host (host_lto_plugin_soname): New shell variable.
7086 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
7087 * config.in: Regenerate.
7088 * configure: Regenerate.
7089 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
7090 LTO plugin shared library.
7092 2010-10-07 Richard Henderson <rth@redhat.com>
7094 * target.h (enum unwind_info_type): Move ...
7095 * coretypes.h: ... here.
7097 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
7099 * doc/objc.texi (Fast enumeration protocol): Mention that
7100 'unsigned int' can also be used instead of 'unsigned long' in
7101 countByEnumeratingWithState:objects:count:.
7103 2010-10-07 Martin Jambor <mjambor@suse.cz>
7105 * tree-sra.c (struct access): New field grp_assignment_write.
7106 (dump_access): Dump grp_assignment_write.
7107 (build_accesses_from_assign): Set grp_assignment_write.
7108 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
7109 (mark_read_status): Renamed to mark_rw_status, individual values
7111 (analyze_access_subtree): Changed type of mark_write to
7112 mark_read_status. Fixed propagating of mark_read and
7113 mark_write. Changed benefit estimate. Updated comment.
7115 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7118 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
7119 check for vectype_out returned by get_vectype_for_scalar_type().
7121 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7124 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
7125 constraint, add register specifier in instruction template.
7126 (neon_vec_pack_trunc_<mode>): Likewise.
7127 (neon_vec_<US>mult_<mode>): Add register specifier to
7128 instruction template.
7130 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7132 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
7134 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
7135 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
7136 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
7137 (cygwin2.o): Likewise.
7138 * config/i386/cygwin1.c: Delete file.
7139 * config/i386/cygwin2.c: Likewise.
7140 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
7141 make all {%!mno-cygwin} ones unconditional.
7142 (STARTFILE_SPEC): Likewise.
7143 (REAL_LIBGCC_SPEC): Likewise.
7144 (LIB_SPEC): Likewise.
7145 (CXX_WRAP_SPEC): Likewise.
7146 (LINK_SPEC): Likewise.
7147 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
7148 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
7149 (cygwin_gplusplus_include_dir): Delete now-unused array.
7150 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
7151 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
7152 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
7153 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
7154 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
7155 (cygwin_local_include_dir): Delete now-unused array.
7156 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
7157 (cygwin_cross_include_dir): Delete now-unused array.
7158 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
7159 (cygwin_tool_include_dir): Delete now-unused array.
7160 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
7161 (cygwin_standard_include_dir): Delete now-unused array.
7162 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
7163 (GEN_CVT_ARRAY): Delete now-unused macro definition.
7164 (cvt_to_mingw): Delete now-unused array.
7165 (mingw_scan): Remove prototype of deleted function.
7166 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
7167 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
7168 * doc/invoke.texi (-mcygwin): Don't document removed option.
7169 (-mno-cygwin): Likewise.
7171 2010-10-07 Richard Guenther <rguenther@suse.de>
7173 * machmode.h (mode_for_vector): Declare.
7174 * stor-layout.c (mode_for_vector): New function, split out from ...
7175 (layout_type): ... here.
7176 * tree-vectorizer.h (current_vector_size): Declare.
7177 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
7178 mask vector type is available.
7179 (get_vectype_for_scalar_type): Rename to ...
7180 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
7182 (get_vectype_for_scalar_type): New wrapper around
7183 get_vectype_for_scalar_type_and_size using current_vector_size.
7184 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
7185 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
7186 of vect_analyze_loop here.
7187 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
7188 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
7190 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
7191 V8SF to V8SI conversion builtin.
7193 2010-10-07 Richard Guenther <rguenther@suse.de>
7195 * target.def (autovectorize_vector_sizes): New target hook.
7196 * targhooks.c (default_autovectorize_vector_sizes): New function.
7197 * targhooks.h (default_autovectorize_vector_sizes): Declare.
7198 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
7200 * doc/tm.texi: Update.
7201 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
7202 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7204 2010-10-07 Richard Guenther <rguenther@suse.de>
7206 * target.def (units_per_simd_word): Rename to ...
7207 (preferred_simd_mode): ... this. Return mode instead of size.
7208 * targhooks.c (default_units_per_simd_word): Rename to ...
7209 (default_preferred_simd_mode): ... this. Return word_mode.
7210 * targhooks.h (default_preferred_simd_mode): Declare.
7211 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
7212 (arm_preferred_simd_mode): ... this. Re-implement.
7213 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
7214 (ix86_preferred_simd_mode): ... this. Re-implement.
7215 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
7216 (sparc_preferred_simd_mode): ... this. Re-implement.
7217 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
7218 (mips_preferred_simd_mode): ... this. Re-implement.
7219 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
7220 (rs6000_preferred_simd_mode): ... this. Re-implement.
7221 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
7222 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
7223 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
7224 * doc/tm.texi: Update.
7226 2010-10-07 Richard Guenther <rguenther@suse.de>
7229 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
7232 2010-10-07 Alan Modra <amodra@gmail.com>
7234 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
7235 rather than sign extension by hand.
7237 2010-10-07 Jan Hubicka <jh@suse.cz>
7240 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
7242 2010-10-07 Richard Guenther <rguenther@suse.de>
7245 * configure.ac: Fix typo.
7246 * configure: Regenerated.
7248 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7250 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
7251 define_builtin_std where it's unnecessary.
7252 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
7254 2010-10-06 Anatoly Sokolov <aesok@post.ru>
7256 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
7257 * doc/tm.texi.in: Regenerate.
7258 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
7259 * targhooks.c (default_class_likely_spilled_p): Don't use the
7260 CLASS_LIKELY_SPILLED_P macro.
7262 * config/arm/arm.md: Update comment.
7264 2010-10-06 Jan Hubicka <jh@suse.cz>
7266 * ipa.c (cgraph_remove_unreachable_nodes): External references can
7268 (cgraph_externally_visible_p): We can not bring local comdats that
7269 are known to linker; fix handling of internal visibility.
7270 (function_and_variable_visibility): Likewise.
7272 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
7274 PR rtl-optimization/45394
7275 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
7276 (struct rtx_subst_pair): Remove AFTER field.
7277 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
7278 (propagate_for_debug): Remove MOVE parameter and adjust.
7279 (try_combine): In the special case where I2 is a PARALLEL, combine only
7280 destinations of SETs and set I2SRC to the I2 source.
7281 Adjust calls to propagate_for_debug throughout.
7282 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
7285 2010-10-06 Olivier Hainque <hainque@adacore.com>
7287 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
7288 switch on insn codes as sequence of ifs.
7290 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
7292 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
7293 be UI_NONE for picochip.
7294 (picochip_option_override): Do not disable exception flags.
7295 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
7298 2010-10-06 Richard Guenther <rguenther@suse.de>
7300 * Makefile.in (regmove.o): Depend on $(TARGET_H).
7302 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7304 Implemented fast enumeration for Objective-C.
7305 * c-parser.c (objc_could_be_foreach_context): New.
7306 (c_lex_one_token): Recognize RID_IN keyword in a potential
7307 Objective-C foreach context.
7308 (c_parser_declaration_or_fndef): Added parameter. Accept
7309 Objective-C RID_IN keyword as terminating a declaration; in that
7310 case, return the declaration in the new parameter.
7311 (c_parser_extenral_declaration): Updated calls to
7312 c_parser_declaration_or_fndef.
7313 (c_parser_declaration_or_fndef): Same change.
7314 (c_parser_compound_statement_nostart): Same change.
7315 (c_parser_label): Same change.
7316 (c_parser_objc_methodprotolist): Same change.
7317 (c_parser_omp_for_loop): Same change.
7318 (c_parser_for_statement): Detect and parse Objective-C foreach
7320 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
7321 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
7322 fast enumeration parsing code to turn off the c99 error but still
7323 perform checks on the loop declarations.
7324 * c-tree.h (check_for_loop_decls): Updated declaration.
7325 * doc/objc.texi: Document fast enumeration.
7327 2010-10-06 Nick Clifton <nickc@redhat.com>
7329 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
7330 (MDR_REGNUM): Define.
7331 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
7332 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
7333 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
7334 (REGISTER_NAMES): Add MDR.
7335 (DWARF2_DEBUGGING_INFO): Define to 1.
7336 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7337 (F): New function. Sets RTX_FRAME_RELATED_P.
7338 (mn10300_gen_multiple_store): Use F.
7339 (expand_prologue): Use F. Use gen_movsf() to push floating
7341 (expand_epilogue): Use gen_movsf() to pop floating point registers.
7342 (mn10300_option_override): Disable combine stack adjust pass.
7344 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
7347 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
7348 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
7350 2010-10-06 Jakub Jelinek <jakub@redhat.com>
7352 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
7353 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
7354 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
7355 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
7356 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
7357 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
7358 BUILT_IN_TOUPPER): Mark as leaf.
7361 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7362 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7363 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7364 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7365 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
7366 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
7367 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
7369 2010-10-05 Anatoly Sokolov <aesok@post.ru>
7371 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
7372 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7373 (m68hc11_class_likely_spilled_p): New function.
7375 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
7377 * c-parser.c (c_parser_objc_method_definition): Updated comment.
7379 2010-10-05 Jan Hubicka <jh@suse.cz>
7381 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
7383 * opts.c (decode_options): Handle lto partitions.
7384 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
7385 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
7387 2010-10-05 Jan Hubicka <jh@suse.cz>
7389 * cgraphunit.c (assemble_function): Output thunks and aliases before
7390 the function itself.
7392 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
7394 * config/picochip/picochip.c (picochip_option_override): Disable
7395 exception flags for picochip.
7397 2010-10-05 Joseph Myers <joseph@codesourcery.com>
7399 * opts-common.c (handle_option, handle_generated_option,
7400 read_cmdline_option, set_option): Add diagnostic_context
7401 parameter. Update calls among these functions.
7402 (set_option): Don't use global_dc.
7403 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
7404 (decode_options): Pass global_dc to enable_warning_as_error.
7405 (common_handle_option): Pass global_dc to enable_warning_as_error.
7406 (enable_warning_as_error): Add diagnostic_context parameter.
7407 Document parameters. Don't use global_dc. Pass
7408 diagnostic_context parameter to handle_generated_option.
7409 * opts.h (set_option, handle_option, handle_generated_option,
7410 read_cmdline_option, enable_warning_as_error): Add
7411 diagnostic_context parameter.
7412 * Makefile.in (lto-opts.o): Update dependencies.
7413 * coretypes.h (struct diagnostic_context, diagnostic_context):
7415 * diagnostic.h (diagnostic_context): Don't declare typedef here.
7416 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
7417 * langhooks-def.h (struct diagnostic_context): Don't declare here.
7418 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
7419 using diagnostic_context typedef.
7420 * langhooks.c (lhd_initialize_diagnostics): Declare using
7421 diagnostic_context typedef.
7422 * langhooks.h (struct diagnostic_context): Don't declare here.
7423 (initialize_diagnostics, print_error_function): Declare using
7424 diagnostic_context typedef.
7425 * lto-opts.c: Include diagnostic.h.
7426 (lto_reissue_options): Pass global_dc to set_option. Pass
7427 DK_UNSPECIFIED not 0.
7428 * plugin.c (plugins_internal_error_function): Declare using
7429 diagnostic_context typedef.
7430 * plugin.h (struct diagnostic_context): Don't declare here.
7431 (plugins_internal_error_function): Declare using
7432 diagnostic_context typedef.
7434 2010-10-05 Olivier Hainque <hainque@adacore.com>
7435 Nicolas Roche <roche@adacore.com>
7437 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
7438 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
7440 2010-10-05 Ira Rosen <irar@il.ibm.com>
7442 PR tree-optimization/45752
7443 * tree-vect-slp.c (vect_get_mask_element): Remove static
7444 variables, make them function arguments.
7445 (vect_transform_slp_perm_load): Pass new arguments to
7446 vect_get_mask_element.
7448 2010-10-05 Richard Guenther <rguenther@suse.de>
7450 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
7451 (gimple_mod_pow2): Likewise.
7452 (gimple_mod_subtract): Likewise.
7453 (gimple_ic): Likewise.
7454 (gimple_stringop_fixed_value): Likewise.
7455 * tree-profile.c (tree_init_edge_profiler): Mark profile
7456 functions nothrow and leaf.
7457 (add_abnormal_goto_call_edges): Remove.
7458 (tree_gen_edge_profiler): Work on SSA form.
7459 (tree_gen_ic_profiler): Likewise. Simplify.
7460 (do_tree_profiling): Update SSA form.
7461 (pass_tree_profile): Remove.
7462 (do_tree_profiling): Likewise.
7463 (gate_tree_profile_ipa): New function.
7464 (pass_ipa_tree_profile): New.
7465 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
7466 state of instrumented functions.
7467 * passes.c (init_optimization_passes): Remove early non-SSA
7468 inlining. Move profiling after early optimizations.
7469 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
7470 (pass_ipa_early_inline): Likewise.
7471 * tree-pass.h (pass_ipa_early_inline): Remove.
7472 (pass_tree_profile): Likewise.
7473 (pass_ipa_tree_profile): Declare.
7475 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7476 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
7478 * config/s390/s390.c (z196_cost): New.
7479 (s390_handle_arch_option): Add -march=z196.
7480 (s390_option_override): Use the new cost function and use the z10
7481 defaults also for z196.
7482 (legitimate_reload_constant_p): Adjust comment.
7483 (legitimate_reload_fp_constant_p): New function.
7484 (s390_preferred_reload_class): Distingiush between FP and Int constants.
7485 (preferred_la_operand_p): Avoid la with index on z196.
7486 (s390_adjust_priority): Trigger also for z196.
7487 (s390_issue_rate): Issue rate for z196 is 3.
7488 (s390_z10_fix_long_loop_prediction): Rename to ...
7489 (s390_fix_long_loop_prediction): ... this.
7490 (s390_reorg): Apply the z10 adjustments also for z196.
7491 (s390_loop_unroll_adjust): Do this also for z196.
7492 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
7493 (enum processor_flags): Add PF_Z196.
7494 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
7495 (TARGET_CPU_Z196, TARGET_Z196): New macros.
7496 * config.gcc: Enable z196 for --with-arch.
7497 * config/s390/2817.md: New file.
7498 * config/s390/2084.md: New type for multiply and add.
7499 * config/s390/2097.md: Likewise.
7500 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
7501 (UNSPECV_ATOMIC_OP): New constants.
7502 (fmadddf, fmaddsf): New values for type attribute.
7503 (z196prop): New insn attribute.
7504 (cpu, cpu_facility): Add z196.
7505 (ATOMIC_Z196): New code iterator.
7506 (noxa): New code attribute.
7507 (gk): New mode attribute.
7508 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
7509 Support load zero for fp constants.
7510 (fixuns_truncdddi2, fixuns_trunctddi2)
7511 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
7513 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
7514 (popcounthi2, popcountqi2): New expander.
7515 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
7516 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
7517 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
7519 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
7520 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
7521 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
7522 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
7523 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
7524 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
7525 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
7526 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
7527 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
7528 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
7529 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
7530 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
7531 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
7532 Support new z196 instructions.
7534 2010-10-05 Richard Guenther <rguenther@suse.de>
7537 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
7538 case where gimplification optimizes away the stmt.
7540 2010-10-04 Jakub Jelinek <jakub@redhat.com>
7543 * var-tracking.c (strip_pointer_flags): New function.
7544 (emit_note_insn_var_location): If rtx_equal_p check failed,
7545 retry on locations simplified with simplify_replace_fn_rtx
7546 and strip_pointer_flags as its callback.
7548 2010-10-04 Jan Hubicka <jh@suse.cz>
7550 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
7551 (can_refer_decl_in_current_unit_p): ... this one; reverse return
7552 value; handle comdats too.
7553 (canonicalize_constructor_val): Use it; handle function_decls
7555 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7556 * gimple.c (get_base_address): Accept all kinds of decls.
7558 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7560 * flags.h (g_switch_value, g_switch_set): Remove.
7561 * opts.c (g_switch_value, g_switch_set): Remove.
7562 * config/g.opt (G): Add Var(g_switch_value).
7563 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
7564 (alpha_option_override): Check global_options_set.x_g_switch_value
7565 instead of g_switch_set.
7566 (alpha_in_small_data_p): Remove cast in comparison with
7568 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7569 g_switch_value to unsigned HOST_WIDE_INT.
7570 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
7571 with g_switch_value.
7572 (frv_handle_option): Don't handle -G here.
7573 (frv_option_override): Check global_options_set.x_g_switch_value
7574 instead of g_switch_set. Don't modify g_switch_set.
7575 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
7576 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
7577 g_switch_value to unsigned HOST_WIDE_INT.
7578 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
7579 (ia64_option_override): Check global_options_set.x_g_switch_value
7580 instead of g_switch_set.
7581 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
7583 (lm32_in_small_data_p): Remove cast in comparison with
7585 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
7586 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
7588 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
7589 (m32r_init): Check global_options_set.x_g_switch_value instead of
7591 (m32r_in_small_data_p): Remove cast in comparison with
7593 (m32r_file_start): Format g_switch_value with %d.
7594 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
7595 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
7596 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
7598 (microblaze_option_override): Check
7599 global_options_set.x_g_switch_value instead of g_switch_set.
7600 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
7601 (mips_option_override): Check global_options_set.x_g_switch_value
7602 instead of g_switch_set.
7603 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
7604 (rs6000_file_start): Format g_switch_value with %d.
7605 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
7606 comparisons with g_switch_value.
7607 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7608 global_options_set.x_g_switch_value instead of g_switch_set.
7609 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7610 global_options_set.x_g_switch_value instead of g_switch_set.
7611 * config/score/score.c (score_handle_option): Don't handle -G here.
7612 * config/score/score3.c (score3_option_override): Check
7613 global_options_set.x_g_switch_value instead of g_switch_set.
7614 * config/score/score7.c (score7_option_override): Check
7615 global_options_set.x_g_switch_value instead of g_switch_set.
7617 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7619 * common.opt (fira-coalesce): Remove.
7621 * doc/invoke.texi (flag_ira_coalesce): Remove.
7623 * ira-color.c (allocno_coalesced_p): Move before
7624 copy_freq_compare_func.
7625 processed_coalesced_allocno_bitmap): Ditto.
7626 (update_conflict_hard_regno_costs): Don't use
7627 ALLOCNO_FIRST_COALESCED_ALLOCNO.
7628 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
7629 (assign_hard_reg): Assume no coalesced allocnos.
7630 (get_coalesced_allocnos_attributes): Remove.
7631 (bucket_allocno_compare_func): Assume no coalesced allocnos.
7632 (push_allocno_to_stack): Ditto.
7633 (remove_allocno_from_bucket_and_push): Use
7634 ira_print_expanded_allocno instead of print_coalesced_allocno.
7635 (push_allocnos_to_stack): Assume uncoalesced allocnos.
7636 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
7637 all_conflicting_hard_regs.
7638 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
7639 (setup_allocno_left_conflicts_size): Ditto.
7640 (put_allocno_into_bucket): Ditto.
7641 (copy_freq_compare_func): Remove.
7642 (copy_freq_compare_func, merge_allocnos): Move before
7643 coalesced_pseudo_reg_freq_compare.
7644 coalesced_allocno_conflict_p): Ditto.
7645 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
7646 parameter. Assume it true.
7647 (color_allocnos): Assume uncoalesced allocnos. Use
7648 ira_print_expanded_allocno instead of print_coalesced_allocno.
7649 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
7652 * ira.c: Remove comment about coalescing.
7654 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7656 * config/mips/mips.h (target_flags_explicit): Declare for
7659 2010-10-04 Andi Kleen <ak@linux.intel.com>
7661 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
7662 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
7664 2010-10-04 Matthias Klose <doko@ubuntu.com>
7666 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
7667 multilib osdirname if it exists.
7668 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
7670 2010-10-04 Jakub Jelinek <jakub@redhat.com>
7673 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
7674 arg0's type or its unsigned counterpart as utype. Convert
7675 arg1 to utype unconditionally.
7677 2010-10-04 Julian Brown <julian@codesourcery.com>
7679 * expr.c (expand_assignment): Add assertion to prevent emitting
7680 null rtx for movmisalign pattern.
7681 (expand_expr_real_1): Likewise.
7682 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
7683 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
7684 (arm_vector_alignment_reachable): New.
7685 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
7686 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
7687 (arm_print_operand): Include alignment qualifier in %A.
7688 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
7689 (movmisalign<mode>): New expander.
7690 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
7693 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7695 * optc-gen.awk: Define global_options_set. Don't define
7696 target_flags_explicit.
7697 * opth-gen.awk: Declare global_options_set. Define
7698 target_flags_explicit as macro.
7699 * opts-common.c (handle_option): Take opts_set and generated_p
7701 (handle_generated_option, read_cmdline_option, set_option): Take
7703 (set_option): Use opts_set instead of hardcoding target_flags and
7704 target_flags_explicit.
7705 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
7706 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
7707 flag_value_profile_transformations_set, flag_peel_loops_set,
7708 flag_branch_probabilities_set, flag_inline_functions_set,
7709 flag_ipa_cp_set, flag_ipa_cp_clone_set,
7710 flag_predictive_commoning_set, flag_unswitch_loops_set,
7711 flag_gcse_after_reload_set): Remove.
7712 (common_handle_option, lang_handle_option, target_handle_option):
7713 Take opts_set parameter. Assert that it is &global_options_set.
7714 (common_handle_option): Don't set _set variables. Check opts_set
7715 instead of such variables.
7716 (enable_warning_as_error): Pass &global_options_set to
7717 handle_generated_option.
7718 * opts.h (cl_option_handler_func.handler, set_option,
7719 handle_option, handle_generated_option, read_cmdline_option): Add
7720 opts_set parameters.
7721 (handle_option): Add generated_p parameter.
7722 * config/i386/i386.c (ix86_function_specific_save,
7723 ix86_function_specific_restore): Updat for renaming of
7724 target_flags_explicit field.
7725 * config/i386/i386.opt (target_flags_explicit): Rename to
7726 ix86_target_flags_explicit.
7727 * config/ia64/ia64.c (ia64_override_options_after_change): Check
7728 global_options_set.x_flag_selective_scheduling and
7729 global_options_set.x_flag_selective_scheduling2, not
7730 sel_sched_switch_set.
7731 * flags.h (sel_sched_switch_set,
7732 flag_speculative_prefetching_set): Remove.
7733 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
7734 that it is &global_options_set.
7735 (process_command): Pass &global_options_set to read_cmdline_option.
7736 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
7738 * toplev.c (target_flags_explicit): Remove.
7740 2010-10-04 Jan Hubicka <jh@suse.cz>
7743 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
7744 use get_ref_base_and_offset to handle references.
7745 (fold_const_aggregate_ref): Update.
7747 2010-10-04 Martin Jambor <mjambor@suse.cz>
7749 PR tree-optimization/45572
7750 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
7751 ipa_check_create_node_params.
7752 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
7754 2010-10-04 Yao Qi <yao@codesourcery.com>
7756 * doc/passes.texi: Clean up.
7758 2010-10-03 Ian Lance Taylor <iant@google.com>
7760 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
7761 referring to a field using a typedef name.
7762 (find_anonymous_field_with_type): New static function.
7763 (convert_to_anonymous_field): New static function.
7764 (convert_for_assignment): If -fplan9-extensions, permit converting
7765 pointer to struct to pointer to anonymous field.
7766 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
7767 (is_duplicate_field): New static function.
7768 (detect_field_duplicates_hash): If -fplan9-extensions, check for
7769 typedef names duplicating field names.
7770 (detect_field_duplicates): Likewise.
7771 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
7772 (C Dialect Options): Document -fplan9-extensions.
7773 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
7775 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
7777 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
7779 (vect_create_data_ref_ptr): Likewise.
7780 * tree-vect-stmts.c (vectorizable_store): Likewise.
7781 (perm_mask_for_reverse): Likewise.
7782 (reverse_vec_elements): Likewise.
7783 (vectorizable_load): Likewise.
7785 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7787 * cppbuiltin.c: New file.
7788 * cppbuiltin.h: New file.
7789 * Makefile.in: Take into account cppbuiltin.{h,c}.
7791 2010-10-03 Andi Kleen <ak@linux.intel.com>
7793 * lto-cgraph.c (input_cgraph): Check for missing sections.
7795 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
7797 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
7798 to nonimmediate_operand. Force operand 2 to register when allowed.
7799 (*<shiftrt_insn><mode>3_mask): Ditto.
7800 (*<rotate_insn><mode>3_mask): Ditto.
7802 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
7804 PR tree-optimization/45720
7805 PR tree-optimization/45764
7806 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7807 Don't accept backwards consecutive accesses.
7808 (vect_create_data_ref_ptr): Disallow negative steps.
7810 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
7811 (perm_mask_for_reverse): Removed.
7812 (reverse_vec_elements): Likewise.
7813 (vectorizable_load): Don't handle negative steps.
7815 2010-10-02 Jan Hubicka <jh@suse.cz>
7817 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
7818 call destination is known.
7820 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7823 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
7826 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7828 * doc/install.texi (Configuration): Document build_configargs,
7829 host_configargs, target_configargs.
7831 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
7833 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
7834 (*<shiftrt_insn><mode>3_mask): Ditto.
7835 (*<rotate_insn><mode>3_mask): Ditto.
7837 2010-10-01 Steve Ellcey <sje@cup.hp.com>
7839 PR tree-optimization/44716
7840 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7841 (HOT_TEXT_SECTION_NAME): Define.
7843 2010-10-01 Nick Clifton <nickc@redhat.com>
7845 * common.opt: Add -fcombine-stack-adjustments.
7846 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
7847 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
7848 flag_combine_stack_adjustments.
7849 * doc/invoke.texi: Document the new option.
7851 2010-10-01 Richard Guenther <rguenther@suse.de>
7853 PR tree-optimization/45854
7854 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
7856 2010-10-01 Anthony Green <green@moxielogic.com>
7858 * config.gcc: Fix moxie-*-rtems* configuration.
7860 2010-10-01 Richard Guenther <rguenther@suse.de>
7862 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
7863 (gen_decl_die): Likewise.
7865 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7867 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
7868 to the function code for SPU MD builtins.
7869 (spu_expand_builtin): Update.
7870 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
7872 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7874 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
7875 sjlj_except_unwind_info.
7877 2010-10-01 Tristan Gingold <gingold@adacore.com>
7879 * configure.ac: Define the nop insn for avr*-*-*
7880 * configure: Regenerate.
7882 2010-10-01 Alan Modra <amodra@gmail.com>
7885 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
7886 extend toc_restore_insn.
7888 2010-09-30 Richard Guenther <rguenther@suse.de>
7890 PR tree-optimization/43959
7891 * function.c (gimplify_parameters): Use create_tmp_reg instead of
7894 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
7896 * config/sh/sh.c (sh_expand_prologue): Set
7897 current_function_static_stack_size.
7899 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7901 * configure.ac: Check for Solaris 8 ld with .hidden support.
7902 * configure: Regenerate.
7904 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7907 * graphite.c (graphite_initialize): Call scev_reset.
7909 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7911 * sese.h (scev_analyzable_p): Return false for real or floating
7912 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
7914 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7916 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
7918 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
7920 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
7921 Do not allocate ub_expr, it is passed in initialized.
7923 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7925 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
7926 (build_cloog_prog): Dump CLooG input file when
7927 flag_graphite_dump_cloog is set. This is disabled on trunk.
7928 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
7930 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7932 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
7933 verify_dominators for CDI_POST_DOMINATORS.
7934 * sese.h: Remove comment about CDI_POST_DOMINATORS.
7935 (recompute_all_dominators): Remove call to free_dominance_info
7936 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
7937 for CDI_POST_DOMINATORS.
7939 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7941 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
7942 over pbb_dim_iter_domain.
7944 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7946 * graphite-flattening.c: Fix comments.
7948 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7950 * Makefile.in (OBJS-common): Add graphite-flattening.o.
7951 (graphite-flattening.o): New rule.
7952 * common.opt (floop-flatten): New flag.
7953 * doc/invoke.texi (-floop-flatten): Documented.
7954 * graphite-flattening.c: New.
7955 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
7956 * graphite-poly.h (flatten_all_loops): Declared.
7957 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
7958 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
7959 is set, also set flag_graphite.
7961 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7963 * graphite-poly.c (cloog_checksum): New.
7964 * graphite-poly.h (cloog_checksum): Declared.
7966 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7968 * graphite-poly.c (pbb_number_of_iterations): Removed.
7969 (pbb_number_of_iterations_at_time): Correctly compute the number
7970 of iterations in the transformed loop.
7971 * graphite-poly.h (pbb_number_of_iterations): Removed.
7973 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7975 * graphite-poly.h (lst_update_scattering_seq): Removed.
7976 (lst_update_scattering): Correctly handle outermost loop dewey
7979 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7981 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
7982 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
7983 * graphite-poly.h (lst_niter_for_loop): New.
7985 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7987 * graphite-poly.c (apply_poly_transforms): Do not abort when the
7988 transform read from disk is not legal. Call fatal_error instead.
7990 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7992 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
7993 (print_scop_header): Removed. Inlined in the only call place...
7994 (print_scop): ... here.
7996 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7998 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
8000 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8002 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
8004 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8006 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
8007 (dot_deps_stmt): Same.
8008 * graphite-poly.c (dot_lst): Same.
8010 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8012 * graphite-blocking.c (scop_do_strip_mine): Do not call
8013 graphite_legal_transform.
8014 (scop_do_block): Same.
8016 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8018 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
8021 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8023 * tree-scalar-evolution.c (instantiate_array_ref): New.
8024 (instantiate_scev_r): Also handle ARRAY_REFs.
8026 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8028 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8029 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
8030 RESULT_DECL, and FIELD_DECL. Return false for an
8031 SSA_NAME_IS_DEFAULT_DEF.
8032 (compute_scalar_evolution_in_loop): Do not further analyze the
8033 scalar evolution when no_evolution_in_loop_p returns true.
8035 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8037 * tree-chrec.h (evolution_function_is_affine_p): Do not check
8038 whether CHREC_LEFT is invariant. A function is affine when
8039 CHREC_RIGHT is invariant.
8041 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8043 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
8045 (rewrite_degenerate_phi): Same.
8046 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
8048 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8050 * graphite-scop-detection.c (graphite_can_represent_scev,
8051 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
8052 graphite_can_represent_loop): Remove outermost_loop.
8054 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8057 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
8058 handle GIMPLE_CALLs with no LHS.
8060 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8062 * graphite-poly.c (init_graphite_out_file): New.
8063 (init_graphite_in_file): New.
8064 (apply_poly_transforms): Updated to enable reading and writing of
8065 multiple scop files.
8067 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
8069 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
8072 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8074 * graphite-clast-to-gimple.c (precision_for_value): Adjust
8075 computation of precision by 1.
8077 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8079 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
8080 (openscop_read_polyhedron_matrix): New.
8081 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
8082 (openscop_read_N_int): Same.
8083 * graphite-poly.c (openscop_read_N_int): New.
8084 (openscop_read_one_int): New.
8085 (openscop_read_N_string): New.
8086 (openscop_read_one_string): New.
8087 (openscop_read_powerset_matrix): New.
8088 (graphite_read_transforms): Remove.
8089 (graphite_read_scatt): New.
8090 (graphite_read_scop_file): New.
8091 (apply_poly_transforms): Updated to call graphite_read_scop_file.
8093 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8095 * graphite-poly.c: Change include order.
8097 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8099 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
8100 (cloog_matrix_nrows): New.
8102 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8104 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
8106 * graphite-poly.c (openscop_print_scattering_function_1): Same.
8107 (print_scattering_function_1): Same.
8108 (openscop_print_pbb_domain): Same.
8109 (openscop_print_scop_context): Same.
8110 (print_scop_context): Same.
8112 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
8114 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
8115 (openscop_print_pdr_polyhedron): Print pph.
8117 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8119 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
8120 priority signed types.
8122 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8124 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
8125 the call to lang_hooks.types.type_for_size. Call
8126 build_nonstandard_integer_type.
8128 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8130 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
8131 (openscop_print_polyhedron_matrix): New.
8132 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
8133 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
8134 (openscop_print_pdr_powerset): New.
8135 (openscop_print_powerset_matrix): New.
8136 (openscop_print_scattering_function_1): New.
8137 (print_scattering_function): Add support for scattering names and
8139 (graphite_write_transforms): Remove.
8140 (print_pdr_access_layout): Updated to support OpenScop format.
8142 (openscop_print_pbb_domain): New.
8143 (print_pbb_body): Added a parameter to allow indicating that pbb_body
8145 (print_pbb): Updated to call the new print_pbb_body.
8146 (openscop_print_scop_context): New.
8147 (print_scop_header): New.
8148 (print_scop): Updated to call print_scop_header.
8149 * graphite-poly.h: Document OpenScop format.
8151 2010-09-30 Anatoly Sokolov <aesok@post.ru>
8153 * config/cris/m32c.c (cris_memory_move_cost): New.
8154 (cris_register_move_cost): Make static. Change arguments type from
8155 enum reg_class to reg_class_t.
8156 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8157 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8158 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
8160 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8163 * config/i386/i386.c (ix86_gimplify_va_arg): Use
8164 INTVAL (XEXP (slot, 1)) as prev_size.
8166 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8169 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
8170 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
8172 * config/rs6000/option-defaults.h (toplevel): Change #if
8173 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
8174 global option changes.
8176 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8178 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
8180 PR tree-optimization/31261
8181 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
8182 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
8184 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8187 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
8188 special-casing for generators and turn into ...
8189 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
8190 rule, for better error messages in case of toplevel dependency errors.
8191 (genprog): Add hooks, rename to ...
8192 (genprogerr): ... this, and let genprog also contain check,
8194 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
8195 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
8196 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
8198 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
8199 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8201 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
8202 for GMP, MPFR and MPC.
8204 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8206 * config/sparc/sparc.opt (mimpure-text): Move ...
8207 * config/sol2.opt: ... here. Correct description.
8208 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
8209 * doc/invoke.texi (Option Summary, SPARC Options): Move
8210 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
8211 (Option Summary, Solaris 2 Options): ... here.
8212 (Submodel Options, Solaris 2 Options): New menu entry.
8213 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
8214 (Solaris 2 Options): ... here.
8216 2010-09-30 Michael Eager <eager@eagercon.com>
8218 * extend.texi (interrupt_handler): Add MicroBlaze to list.
8219 (save_volatiles): Describe option for MicroBlaze.
8220 * invoke.texi: Add MicroBlaze Options.
8221 * contrib.texi: Add acknowledgment.
8222 * md.texi: Add MicroBlaze d and z constraints.
8223 * install.texi: Add microblaze-*-elf.
8224 * configure.ac: Add microblaze-*-* to target list.
8225 * configure: Regenerate.
8226 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
8227 * config/microblaze/microblaze-protos.h: New.
8228 * config/microblaze/crti.s: New.
8229 * config/microblaze/predicates.md: New.
8230 * config/microblaze/linux.h: New.
8231 * config/microblaze/microblaze.md: New.
8232 * config/microblaze/constraints.md: New.
8233 * config/microblaze/crtn.s: New.
8234 * config/microblaze/microblaze.opt: New.
8235 * config/microblaze/microblaze-c.c: New.
8236 * config/microblaze/t-microblaze: New.
8237 * config/microblaze/microblaze.c: New.
8238 * config/microblaze/microblaze.h: New.
8240 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8242 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
8243 parse @optional/@required and set the flags as appropriate.
8245 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
8247 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
8249 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8251 * opt-functions.awk (static_var): Update comment.
8252 (var_ref): Return offsetof expression or -1, not variable address.
8253 * optc-gen.awk: Generate structure field initializers instead of
8254 static variables. Expect -1 for missing variables instead of null
8255 pointer. Add gcc_options parameters to generated functions.
8256 * opth-gen.awk: Generate structure fields for static variables.
8257 Add gcc_options parameters to generated functions.
8258 * common.opt (optimize, optimize_size): Add variables.
8259 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
8260 &global_options to cl_target_option_restore.
8261 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
8262 &global_options to cl_optimization_restore, cl_target_option_save
8263 and cl_target_option_restore.
8264 (ix86_set_current_function): Pass &global_options to
8265 cl_target_option_restore.
8266 * config/pdp11/pdp11.h (optimize): Remove.
8267 * config/rs6000/rs6000.h (optimize): Remove.
8268 * config/sh/sh.h (optimize): Remove.
8269 * config/xtensa/xtensa.h (optimize): Remove.
8270 * coretypes.h (struct gcc_options): Declare.
8271 * diagnostic.c (diagnostic_initialize): Initialize
8272 context->option_state.
8273 (diagnostic_report_diagnostic): Pass option_state to
8274 option_enabled hook.
8275 * diagnostic.h (diagnostic_context.option_enabled): Add void *
8277 (diagnostic_context.option_state): New field.
8278 * final.c (final_start_function, final, final_scan_insn): Rename
8279 optimize parameter to optimize_p.
8280 * flags.h (optimize, optimize_size): Remove.
8281 * function.c (invoke_set_current_function_hook): Pass
8282 &global_options to cl_optimization_restore.
8283 * gcc.c (driver_handle_option): Take gcc_options parameter.
8284 Assert that it is &global_options.
8285 (process_command): Pass &global_options to read_cmdline_option.
8286 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
8288 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
8289 &global_options to set_option.
8290 * opts-common.c (handle_option, handle_generated_option,
8291 read_cmdline_option, set_option): Take explicit gcc_options
8292 parameters. Use option_flag_var.
8293 (option_flag_var): New.
8294 * opts.c (common_handle_option, lang_handle_option,
8295 target_handle_option): Take gcc_options parameter. Assert that it
8297 (read_cmdline_options): Pass &global_options to read_cmdline_option.
8298 (print_filtered_help): Use option_flag_var. Pass &global_options
8300 (common_handle_option): Use option_flag_var.
8301 (option_enabled): Take opts parameter. Use option_flag_var.
8302 (get_option_state): Take gcc_options parameter. Use
8303 option_flag_var. Pass gcc_options parameter to option_enabled.
8304 (enable_warning_as_error): Pass &global_options to
8305 handle_generated_option.
8306 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
8307 (cl_option_handler_func.handler): Take gcc_options parameter.
8308 (option_enabled, get_option_state, set_option, handle_option,
8309 handle_generated_option, read_cmdline_option): Take gcc_options
8311 * toplev.c (optimize, optimize_size): Remove.
8312 (print_switch_values): Pass &global_options to option_enabled.
8313 (option_affects_pch_p): Use option_flag_var. Pass &global_options
8314 to get_option_state.
8315 (general_init): Initialize global_dc->option_state.
8316 * tree.c (build_optimization_node): Pass &global_options to
8317 cl_optimization_save.
8318 (build_target_option_node): Pass &global_options to
8319 cl_target_option_save.
8321 2010-09-30 Martin Jambor <mjambor@suse.cz>
8323 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
8324 zero sized bit-fields.
8326 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8328 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
8329 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
8330 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
8331 (c_parser_objc_class_declaration): Same change.
8332 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
8333 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8334 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
8335 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
8336 and RID_AT_PUBLIC instead of RID_PUBLIC.
8337 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
8338 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8340 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
8342 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
8343 Add links to current providers of packages for Solaris and IRIX.
8345 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8347 Merge from 'apple/trunk' branch on FSF servers.
8348 * c-parser.c: Applied change originally in c-parse.in.
8350 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8353 * c-decl.c (start_decl): Check for redeclaration of class name.
8354 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
8356 2010-09-29 Steve Ellcey <sje@cup.hp.com>
8358 * config/ia64/ia64.c (ia64_builtin_decl): New.
8359 (TARGET_BUILTIN_DECL): Define.
8360 (ia64_builtins): New.
8361 (ia64_init_builtins): Save decls in ia64_builtins.
8363 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
8366 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
8367 (move2add_use_add3_insn): Likewise.
8368 (reload_cse_move2add): Likewise.
8369 * rtlanal.c (get_full_rtx_cost): New function.
8370 * rtl.h (struct full_rtx_costs): New.
8371 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
8372 costs_add_n_insns): New inline functions.
8373 (get_full_rtx_cost): Declare.
8376 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
8377 invariants. Check for reg_equiv_invariant.
8378 (reload): Assert that spilled_pseudos is empty when returning.
8380 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
8382 * config/i386/mingw32.h (TARGET_64BIT): replaced by
8383 TARGET_64BIT_DEFAULT in #if check.
8385 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
8387 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
8389 2010-09-29 Mike Stump <mikestump@comcast.net>
8391 * config/darwin.h (flag_mkernel): Remove.
8392 (flag_apple_kext): Likewise.
8394 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8395 Jack Howarth <howarth@bromo.med.uc.edu>
8397 * config/darwin.opt (undefined): Add.
8399 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
8402 * configure.ac: Add --enable-indirect-function option.
8403 * config.gcc: Add default_gnu_indirect_function.
8404 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
8405 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
8406 * varasm.c (do_assemble_alias): Adjust for macro name change.
8407 * configure: Rebuilt.
8408 * doc/install.texi: Document --enable-indirect-function.
8410 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8412 * doc/options.texi (Variable, Var, Init): Update documentation
8413 without reference to VarExists.
8414 (VarExists): Remove.
8415 * common.opt, config/i386/i386.opt, config/linux.opt,
8416 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
8417 Don't use VarExists.
8419 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8421 * optc-gen.awk: Generate global_options initializer instead of
8422 individual variables. Add x_ prefix to names of structure members.
8423 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
8424 names of structure members.
8425 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8426 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
8427 * doc/tm.texi: Regenerate.
8428 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8429 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8430 * c-parser.c (disable_extension_diagnostics,
8431 restore_extension_diagnostics): Update names of cpp_options members.
8432 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8433 * common.opt (fcompare-debug-second): Don't use Var.
8434 * config/alpha/alpha.h (target_flags): Remove.
8435 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8436 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8437 * config/bfin/bfin.h (target_flags): Remove.
8438 * config/cris/cris.h (target_flags): Remove.
8439 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
8440 cl_target_option members.
8441 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
8442 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
8443 ix86_can_inline_p): Update names of cl_target_option members.
8444 * config/i386/i386.h (ix86_isa_flags): Remove.
8445 * config/lm32/lm32.h (target_flags): Remove.
8446 * config/mcore/mcore.h (mcore_stack_increment): Remove.
8447 * config/mcore/mcore.md (addsi3): Remove extern declaration of
8448 flag_omit_frame_pointer.
8449 * config/mep/mep.h (target_flags): Remove.
8450 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8451 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8452 * config/mmix/mmix.h (target_flags): Remove.
8453 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
8454 flag_expensive_optimizations): Remove.
8455 * config/s390/s390.h (flag_pic): Remove.
8456 * config/score/score-conv.h (target_flags): Remove.
8457 * config/sh/sh.h (sh_fixed_range_str): Remove.
8458 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
8459 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8460 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8461 * diagnostic.c (diagnostic_initialize): Update names of
8462 diagnostic_context members.
8463 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
8464 warn_system_headers.
8465 (diagnostic_report_warnings_p): Update for new names.
8466 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8467 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
8468 HARD_FRAME_POINTER_IS_ARG_POINTER.
8469 * flags.h (flag_compare_debug): Declare.
8470 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8471 * opts.c (flag_compare_debug): Define.
8472 (common_handle_option): Update names of diagnostic_context
8473 members. Handle -fcompare-debug-second.
8474 (fast_math_flags_struct_set_p): Update names of cl_optimization
8476 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8477 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8478 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8479 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8480 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8481 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8482 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
8483 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8484 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8486 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
8488 * config/picochip/picochip.c (picochip_output_internal_label):
8489 This function can now be called for debug CFI labels, which can come
8490 in the middle of a vliw instruction. Postpone until end of vliw.
8492 2010-09-29 Richard Guenther <rguenther@suse.de>
8494 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
8495 (DECL_FILE_SCOPE_P): Use it.
8496 (TYPE_FILE_SCOPE_P): New macro.
8498 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8500 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
8501 a CPP_NAME which is a reserved word, clearly separate cases for
8502 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
8504 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8506 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
8507 token->value with the canonical spelling. Do exactly like C and
8508 C++ and leave it as it is.
8510 2010-09-28 Richard Henderson <rth@redhat.com>
8512 * config/alpha/alpha.c (alpha_builtins): New.
8513 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
8514 (alpha_builtin_function): New.
8515 (alpha_add_builtins, alpha_init_builtins): Use it.
8517 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
8519 * doc/standards.texi (Standards): Expanded the section on
8520 Objective-C and Objective-C++.
8522 2010-09-28 DJ Delorie <dj@redhat.com>
8525 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
8528 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8530 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
8531 attributes on methods.
8532 (c_parser_objc_method_definition): Handle attributes.
8533 (c_parser_objc_methodproto): Likewise.
8534 (c_parser_objc_maybe_method_attributes): New.
8535 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
8536 missing definition, similar to that in ObjC++.
8538 2010-09-28 Richard Henderson <rth@redhat.com>
8540 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
8541 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8542 (CONFIG_SJLJ_EXCEPTIONS): Remove.
8543 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
8544 (STACK_CHECK_PROTECT): Likewise.
8545 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
8546 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
8547 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
8548 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
8549 (dwarf2out_assembly_start): Likewise.
8550 * except.c (init_eh): Use targetm.except_unwind_info.
8551 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
8552 (output_one_function_exception_table): Likewise.
8553 * final.c: Unconditionally include dwarf2out.h.
8554 (final_start_function): Unconditionally call dwarf2out routines.
8555 (final_end_function, final_scan_insn): Likewise.
8556 * function.c (expand_function_end): Use targetm.except_unwind_info.
8557 * opts.c (decode_options): Use targetm.except_unwind_info.
8558 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
8559 * target.def (debug_unwind_info, except_unwind_info): New.
8560 * target.h (enum unwind_info_type): New.
8561 * targhooks.c (default_debug_unwind_info): New.
8562 (default_except_unwind_info): New.
8563 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
8564 * targhooks.h: Declare them.
8565 * tree-tailcall.c: Include "target.h"
8566 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
8567 * Makefile.in (tree-tailcall.o): Update.
8568 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
8569 (lhd_gcc_personality): Likewise.
8571 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
8572 (TARGET_EXCEPT_UNWIND_INFO): New.
8573 (DWARF2_UNWIND_INFO): Update.
8574 (TARGET_DEBUG_UNWIND_INFO): New.
8575 * doc/tm.texi: Rebuild.
8577 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
8578 targetm.except_unwind_info.
8580 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
8581 (arm_except_unwind_info): New.
8582 (arm_compute_func_type): Use it.
8583 (arm_expand_prologue, thumb_pushpop): Likewise.
8584 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
8585 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
8586 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
8587 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
8588 (DWARF2_UNWIND_INFO): Remove.
8589 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8590 (ARM_EABI_UNWIND_TABLES): Remove.
8592 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
8593 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
8594 (ia64_except_unwind_info): New.
8595 (ia64_output_function_prologue): Use it.
8596 (ia64_add_bundle_selector_before): Likewise.
8597 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
8598 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
8599 (TARGET_UNWIND_INFO): Remove.
8601 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
8603 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8605 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
8606 (c_parser_objc_protocol_definition): Likewise.
8607 (c_parser_external_declaration): Provide dummy attribute arguments.
8608 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
8609 (c_parser_objc_class_definition): Handle attributes.
8610 (c_parser_objc_protocol_definition): Likewise.
8612 2010-09-28 Tobias Burnus <burnus@net-b.de>
8616 * toplev.h (save_decoded_options, save_decoded_options_count):
8617 New global variables.
8618 * toplev.c (save_decoded_options, save_decoded_options_count):
8621 2010-09-28 Ian Lance Taylor <iant@google.com>
8623 * config/i386/i386.c (ix86_supports_split_stack): Test
8624 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
8626 2010-09-28 Ian Lance Taylor <iant@google.com>
8629 * opts.c (decode_options): Don't test whether the target supports
8630 split stack if flag_split_stack == 0.
8632 2010-09-28 Jan Hubicka <jh@suse.cz>
8634 * builtin-attrs.def (ATTR_LEAF): New attribute.
8635 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
8636 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
8637 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
8638 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
8639 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
8640 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
8641 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
8642 * sync-builtins.def: Annotate all builtins by leaf.
8643 * omp-builtins.def: Annotate all builtins by leaf.
8644 * builtins.def: Annotate relevant builtins with leaf attribute.
8645 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8646 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
8649 2010-09-28 Jan Hubicka <jh@suse.cz>
8651 * tree-ssa-ccp.c (fold_ctor_reference): New function.
8652 (fold_const_aggregate_ref): Use it.
8653 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
8654 into external static.
8656 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8659 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
8660 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
8661 (ix86_solaris_return_in_memory): Remove.
8662 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
8663 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8664 (TARGET_SUBTARGET_DEFAULT): Redefine.
8665 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
8666 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8667 (TARGET_SUBTARGET_DEFAULT): Redefine.
8668 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
8670 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
8672 2010-09-29 Alan Modra <amodra@gmail.com>
8675 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
8676 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
8677 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
8679 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
8680 (rs6000_emit_prologue): Don't just create frame save info for r2,
8683 2010-09-28 Richard Henderson <rth@redhat.com>
8685 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
8686 when 8 bytes are requested.
8688 2010-09-28 Tristan Gingold <gingold@adacore.com>
8690 * config/avr/avr.c (expand_prologue): Set
8691 current_function_static_stack_size.
8693 2010-09-28 Tristan Gingold <gingold@adacore.com>
8695 * config/alpha/alpha.md: Change the initial condition of the
8698 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
8700 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
8701 Split from *avx_<maxmin:code><mode>3.
8702 (*avx_<smaxmin:code><mode>3): Ditto.
8703 * config/i386/i386.md (maxmin): Remove code iterator.
8705 2010-09-27 Ian Lance Taylor <iant@google.com>
8707 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
8708 requires assembler support for CFI directives.
8710 2010-09-27 Richard Henderson <rth@redhat.com>
8712 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
8714 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
8716 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
8717 that AFTER is not in the range FROM..TO, inclusive.
8719 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
8720 Bernd Schmidt <bernds@codesourcery.com>
8722 PR rtl-optimization/45792
8723 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
8724 If not all insns are to be merged, for each edge, stash the
8725 next candidate after the to-be-merged insns before doing the
8726 merge, and use them for the retry at the new insertion point.
8727 Handle CC0 targets when retrying.
8729 2010-09-27 Ian Lance Taylor <iant@google.com>
8731 * common.opt (fsplit-stack): New option.
8732 * opts.c (decode_options): Set flag_split_stack to final value.
8733 * target.def (supports_split_stack): New hook.
8734 * gcc.c (STACK_SPLIT_SPEC): Define.
8735 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
8736 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
8737 (Code Gen Options): Document -fsplit-stack.
8738 * doc/extend.texi (Function Attributes): Mention no_split_stack.
8739 (Function Attributes): Document no_split_stack.
8740 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
8741 TARGET_SUPPORTS_SPLIT_STACK.
8742 * doc/tm.texi: Rebuild.
8743 * function.c (thread_prologue_and_epilogue_insns): If
8744 flag_split_stack, add split stack prologue.
8745 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
8746 * varasm.c (saw_no_split_stack): New static variable.
8747 (assemble_start_function): Set saw_no_split_stack if the function
8748 has the no_split_stack attribute.
8749 (file_end_indicate_split_stack): New function.
8750 * output.h (file_end_indicate_split_stack): Declare.
8751 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
8753 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
8755 * config/i386/i386.c (ix86_option_override_internal): Don't set
8756 expand_builtin_va_start to NULL if -fsplit-stack.
8757 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
8759 (ix86_va_start): If -fsplit-stack, get overflow pointer from
8760 scratch register set by prologue.
8761 (ix86_code_end): If -fsplit-stack, call
8762 file_end_indicate_split_stack.
8763 (ix86_supports_split_stack): New static function.
8764 (SPLIT_STACK_AVAILABLE): Define.
8765 (split_stack_prologue_scratch_regno): New static function.
8766 (split_stack_fn): New static variable.
8767 (ix86_expand_split_stack_prologue): New function.
8768 (ix86_live_on_entry): New static function.
8769 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
8770 (output_pic_addr_const): Likewise.
8771 (i386_asm_output_addr_const_extra): Likewise.
8772 (ix86_expand_call): Change return type to rtx. Return the new
8774 (TARGET_SUPPORTS_SPLIT_STACK): Define.
8775 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
8776 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
8777 (split_stack_prologue, split_stack_return): New insns.
8778 (split_stack_space_check): New insn.
8779 * config/i386/i386.h (struct machine_function): Add
8780 split_stack_varargs_pointer field.
8781 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
8782 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8783 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8784 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8785 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
8787 (ix86_expand_call): Update declaration.
8789 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8791 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
8792 code. Added byref, which was missing in the list of codes.
8793 Explain that enumeration values are encoded as the integer type
8794 that the compiler uses to store them. Explain and make examples
8795 of how 'const' interacts with pointers, and the complication of
8796 the encoding of 'const char *'.
8797 (Legacy type encoding): New subsection, explaining that GCC emits
8798 incorrect type encodings for the NeXT runtime for compatibility
8800 (@@encode): New subsection, explaining @encode and particularly
8801 that protocol qualifiers are not recognized inside an @encode()
8803 (Method signatures): New subsection, explaining how method
8804 signatures are encoded.
8806 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8808 Merge from 'apple/trunk' branch on FSF servers. Removed small
8809 change in build_conditional_expr that had been added when fixing
8810 PR objc/27377 and which did the same check in a less complete way.
8812 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8815 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
8816 looking for objective-c common pointer types.
8818 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8821 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
8822 use their ObjC common type.
8824 2010-09-27 Richard Guenther <rguenther@suse.de>
8826 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
8828 2010-09-27 Jie Zhang <jie@codesourcery.com>
8830 * print-tree.c (print_node): Print in-constant-pool.
8832 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
8834 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
8835 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
8836 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
8837 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
8839 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
8841 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
8842 from pro_epilogue_adjust_stack_<mode>_{1,2}.
8843 (pro_epilogue_adjust_stack_<mode>_add): Rename from
8844 pro_epilogue_adjust_stack_<mode>_3.
8845 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
8846 renamed pro_epilogue_adjust_stack_{si,di}_add.
8847 (ix86_expand_prologue): Use indirect functions. Update for renamed
8848 pro_epilogue_adjust_stack_{si,di}_sub.
8850 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
8852 * config/i386/i386.md (movmsk_df): New insn.
8853 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
8854 sequence for TARGET_SSE_MATH.
8856 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
8858 * config/mips/mips.c (mips_builtin_decls): Declare.
8859 (mips_init_builtins): Store function declarations in
8861 (mips_builtin_decl): New function.
8862 (TARGET_BUILTIN_DECL): Define.
8864 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
8865 Richard Henderson <rth@redhat.com>
8867 * config/i386/cygwin.asm: Include auto-host.h.
8868 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
8869 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
8870 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
8871 alignment code from the 64-bit path. Use gas local labels.
8872 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
8873 from _di_2. Remove the useless constant integer argument.
8874 (pro_epilogue_adjust_stack_<mode>_3): New.
8875 (allocate_stack_worker_probe_<mode>): Macroize from
8876 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
8877 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
8878 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
8879 (__chkstk_ms): New function.
8880 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
8881 * config/i386/t-interix: Likewise.
8882 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
8883 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
8884 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
8885 * configure, config.in: Rebuild.
8887 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
8889 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
8890 statements because of the return slot optimization.
8892 2010-09-25 Anatoly Sokolov <aesok@post.ru>
8894 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
8895 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
8896 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8897 (class_likely_spilled_p): Rename to...
8898 (avr_class_likely_spilled_p): ...this. Make static. Change argument
8899 type to reg_class_t.
8901 2010-09-24 Jan Hubicka <jh@suse.cz>
8903 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
8904 (lto_symtab_resolve_symbols): Set it.
8905 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
8906 store resolution field in cgraph/varpool.
8907 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
8908 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
8909 (cgraph_dump_node): Drop used_from_object_file.
8910 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
8911 (cgraph_function_body_availability): Use decl_replaceable_p.
8912 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
8913 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
8914 cgraph_used_from_object_file_p.
8915 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
8916 cgraph_used_from_object_file_p.
8917 (resolution_used_from_other_file_p): New functoin.
8918 (cgraph_used_from_object_file_p): New predicate.
8919 * cgraph.h: Include plugin-api.h
8920 (struct cgraph_local_info): Remove used_from_object_file.
8921 (struct cgraph_node): Add resolution field.
8922 (struct varpool_node): Likewise; remove used_from_object_file;
8923 reove const_value_known.
8924 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
8925 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
8926 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8927 varpool_used_from_object_file_p): Declare.
8928 (varpool_get_node, varpool_extra_name_alias): Update prototype.
8929 * tree.h (DECL_REPLACEABLE_P): Remove.
8930 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
8931 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
8932 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8933 input_overwrite_node, input_node, input_varpool_node): Stream
8935 * expr.c (expand_expr_real_1): Use const_value_known_p
8936 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
8938 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
8939 (function_and_variable_visibility): Set resolution for local vars
8940 and functions; use varpool_used_from_object_file_p.
8941 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
8943 (default_binds_local_p_1): Use resolutoin info.
8944 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
8945 * varpool.c (varpool_get_node): Constify.
8946 (const_value_known_p): Do not use vnode->const_value_known;
8947 use decl_replaceable_p.
8948 (varpool_finalize_decl): Do not set const_value_known.
8949 (cgraph_variable_initializer_availability): Use decl_replaceable_p
8950 (varpool_extra_name_alias): Return new node.
8951 (varpool_used_from_object_file_p): New function.
8953 2010-09-24 Richard Henderson <rth@redhat.com>
8955 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
8956 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
8957 (do_spill): Use REG_CFA_OFFSET.
8958 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
8960 (ia64_expand_epilogue): Likewise.
8961 (process_set): Split into ...
8962 (process_cfa_adjust_cfa): this,
8963 (process_cfa_register): this,
8964 (process_cfa_offset): and this new function.
8965 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
8966 instead of REG_FRAME_RELATED_EXPR.
8968 2010-09-24 Olivier Hainque <hainque@adacore.com>
8970 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
8972 2010-09-24 Jan Hubicka <jh@suse.cz>
8974 * doc/extend.texi: (attribute leaf): Document.
8975 * tree.c (local_define_builtin): Handle ECF_LEAF.
8976 (build_common_builtin_nodes): Set ECF_LEAF where needed.
8977 * tree.h (ECF_LEAF): New.
8978 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
8979 overwrittable and unavailable functions.
8980 (ipa_init): Put all_module_statics into optimization_summary_obstack.
8981 (copy_global_bitmap): Do not copy all_module_statics.
8982 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
8983 (propagate): Handle overwritable and unavailable leaf functions;
8984 initialize global info for overwritable and unavailable leaf functions;
8985 do not free all module statics.
8986 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
8988 * calls.c (flags_from_decl_or_type): Handle leaf.
8989 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
8992 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
8994 * gengtype.c: Reindented.
8995 * gengtype.h: Reindented.
8996 * gengtype-parse.c: Reindented.
8998 2010-09-24 Jan Hubicka <jh@suse.cz>
9000 PR tree-optimization/45738
9001 PR tree-optimization/45741
9002 * expr.c (string_constant): Allow CONST_DECL too;
9003 check that DECL_INITIAL is set.
9004 * varpool.c (const_value_known_p): Only look into VAR_DECL
9007 2010-09-24 Joseph Myers <joseph@codesourcery.com>
9009 * common.opt (undef): New.
9011 2010-09-24 Jakub Jelinek <jakub@redhat.com>
9014 * rtl.h (enum global_rtl_index): Add
9015 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
9016 (LAST_VIRTUAL_POINTER_REGISTER): Define.
9017 (virtual_preferred_stack_boundary_rtx,
9018 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
9019 (LAST_VIRTUAL_REGISTER): Increase by one.
9020 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
9021 instead of LAST_VIRTUAL_REGISTER.
9022 * function.c (instantiate_new_reg): Handle
9023 virtual_preferred_stack_boundary_rtx.
9024 * emit-rtl.c (init_virtual_regs): Handle
9025 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9026 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
9027 * explow.c (round_push): If crtl->preferred_stack_boundary
9028 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
9029 virtual_preferred_stack_boundary_rtx alignment instead of
9030 crtl->preferred_stack_boundary alignment.
9031 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
9032 macros. Never decrease crtl->preferred_stack_boundary,
9033 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
9034 instead of PREFERRED_STACK_BOUNDARY. Don't modify
9035 stack_pointer_delta in dynamic allocation, even when size
9037 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
9039 * print-rtl.c (print_rtx): Handle
9040 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9041 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
9042 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
9043 * config/frv/frv.c (frv_emit_movsi): Likewise.
9044 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
9045 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
9049 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9052 * calls.c (expand_call): Make sure that all variable sized
9053 adjustments are multiple of preferred stack boundary after
9056 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
9057 Dominique Dhumieres <dominiq@lps.ens.fr>
9060 * config/darwin-driver.c (darwin_default_min_version):
9061 Adjust size passed to memcpy in two places.
9063 2010-09-24 Richard Guenther <rguenther@suse.de>
9065 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
9066 Make sure to not call set_type_context with error_mark_node.
9067 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
9069 2010-09-24 Richard Guenther <rguenther@suse.de>
9071 * Makefile.in (OBJS-onestep): Remove.
9072 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
9073 (libbackend.a): Remove onestep support.
9074 (libbackend.o): Remove.
9075 * configure.ac (--enable-intermodule): Remove.
9076 * configure: Regenerate.
9078 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
9080 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
9081 reaching the end of a block if it occurs at a DEBUG_INSN.
9083 2010-09-09 Tristan Gingold <gingold@adacore.com>
9086 * config/vms/vms-crt0-64.c: Removed.
9087 * config/vms/vms-crt0.c: Removed.
9088 * config/vms/vms-psxcrt0-64.c: Removed.
9089 * config/vms/vms-psxcrt0.c: Removed.
9090 * config/vms/vms-ucrt0.c: New file.
9091 * config/vms/t-vms64: Removed.
9092 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
9093 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
9094 * config.gcc (alpha-dec-vms): Use t-vms.
9096 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9098 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
9099 underfull hbox in DVI output.
9100 (-fobjc-class-cxx-cdtors): Same change.
9101 (-fobjc-exceptions): Tidied up documentation. Explain what the
9102 option does, but moved the (lenghty) description of the exception
9103 syntax into objc.texi.
9104 (-fobjc-gc): Explain that the option is not useful with the GNU
9106 (-fzero-link): Explain that the GNU runtime always works in
9108 * doc/objc.texi: All sections: simplified @node declarations
9109 removing specification of next, previous, up node.
9110 (Objective-C): Updated introduction.
9111 (Garbage Collection): Updated. The bohem-gc library is now
9112 included in gcc itself. Mention that this section only applies to
9113 the GNU Objective-C runtime.
9114 (compatibility_alias): Small tidy up.
9115 (Exceptions): New section mostly containing text previously in the
9116 description of the -fobjc-exception command-line option.
9117 (Synchronization): Same.
9119 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
9121 * config/i386/i386.md (ix86_code_end): Move the initialization of
9122 xops array near the consumer. Use AX_REG and SP_REG instead of
9123 numerical constants.
9125 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9127 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
9128 method [methodname]' for an Objective-C method instead of the less
9129 satisfactory 'too many arguments to function' (with no method name).
9131 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
9133 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
9134 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
9135 (execute_update_addresses_taken): Remove parameter. Execute the
9136 optimization unconditionally.
9137 * passes.c (execute_function_todo): Call execute_update_addresses_taken
9138 unconditionally if TODO_rebuild_alias is set, else only when optimizing
9139 if TODO_update_address_taken is set.
9141 2010-09-23 Anatoly Sokolov <aesok@post.ru>
9143 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9144 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
9145 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9146 (arm_output_addr_const_extra): Make static.
9148 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
9150 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
9151 define as unspec_volatile.
9152 ("nops"): Define as unspec_volatile. Use fputs to write to
9153 asm_out_file directly. Output NOPs on separate lines using while loop.
9154 * config/i386/i386.c (ix86_code_end): Use fputs to write to
9155 asm_out_file directly. Output NOPs on separate lines using while loop.
9157 2010-09-23 Richard Guenther <rguenther@suse.de>
9159 PR tree-optimization/45565
9160 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9161 Make sure to adjust the fndecl before replacing the stmt.
9163 2010-09-23 Richard Guenther <rguenther@suse.de>
9166 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
9167 gimplifying MEM_REF.
9169 2010-09-23 Alan Modra <amodra@gmail.com>
9171 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
9172 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
9174 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
9176 PR rtl-optimization/44374
9177 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
9178 * df-core.c (df_set_bb_dirty): Set it.
9179 * ifcvt.c (find_memory): Remove function.
9180 (dead_or_predicable): Use can_move_insns_across.
9181 * df.h (can_move_insns_across): Declare function.
9182 * cfgcleanup.c (block_was_dirty): New static variable.
9183 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
9184 than df_get_bb_dirty.
9185 (try_head_merge_bb): New static function.
9186 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
9188 * df-problems.c: Include "target.h"
9189 (df_simulate_find_uses): New static function.
9190 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
9191 (find_memory, find_memory_store): New static functions.
9192 (can_move_insns_across): New function.
9193 * Makefile.in (df-problems.o): Update dependencies.
9195 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
9198 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
9199 is specified and the suffix of the file isn't ".c".
9200 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9202 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9204 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
9205 * doc/cppopts.texi: Fix markup of index entry.
9206 * doc/extend.texi (Constructing Calls): Fix markup of
9207 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
9208 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
9209 (Vague Linkage, C++ Attributes): Fix markup of index entries and
9211 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
9213 (C Dialect Options, C++ Dialect Options, Warning Options)
9214 (Debugging Options, Spec Files, Darwin Options)
9215 (i386 and x86-64 Options, MIPS Options)
9216 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
9217 index entries, avoid abbreviations, allow URLs to wrap, avoid
9218 long lines, avoid overlong pages from long @itemx lists.
9219 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
9220 * doc/standards.texi (Standards): Likewise.
9221 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
9223 2010-09-22 Joseph Myers <joseph@codesourcery.com>
9225 * opts-common.c (prune_options): Make static. Work with decoded
9227 (decode_cmdline_options_to_array): Call prune_options. Don't
9228 resize option array here.
9229 * opts.h (prune_options): Remove prototype.
9230 * gcc.c (process_command): Take decoded options; don't call
9231 decode_cmdline_options_to_array here. Use decoded options for argv[0].
9232 (main): Call decode_cmdline_options_to_array here instead of
9233 prune_options. Update call to process_command.
9234 * config/darwin-driver.c: Include opts.h.
9235 (darwin_default_min_version): Work with decoded options. Don't
9236 handle -b or -V here.
9237 * config/darwin.h (darwin_default_min_version): Update prototype.
9238 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
9239 darwin_default_min_version.
9240 * config/i386/cygwin.h (mingw_scan): Update prototype.
9241 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
9242 * config/i386/cygwin1.c: Include opts.h.
9243 (mingw_scan): Work with decoded options.
9244 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
9245 * config/t-darwin (darwin-driver.o): Update dependencies.
9247 2010-09-22 Joseph Myers <joseph@codesourcery.com>
9249 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
9250 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
9251 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
9252 -force-link, -force-link=, -language, -language=,
9253 -library-directory, -library-directory=, -no-canonical-prefixes,
9254 -no-standard-libraries, -no-warnings, -optimize, -output,
9255 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
9256 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
9257 -print-file-name=, -print-libgcc-file-name,
9258 -print-multi-directory, -print-multi-lib,
9259 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
9260 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
9261 -profile, -save-temps, -shared, -specs, -specs=, -static,
9262 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
9264 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
9265 * gcc.c (A Short Introduction to Adding a Command-Line Option):
9267 (cc1_options): Correct specs for passing down --help,
9268 --target-help and --help=*. Add spec for passing down --version.
9269 (struct option_map, option_map, target_option_translations,
9270 translate_options): Remove.
9271 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
9272 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
9273 OPT_fhelp_ and OPT_ftarget_help.
9274 (process_command): Don't call translate_options. Call
9275 decode_cmdline_options_to_array before checking for
9276 -no-canonical-prefixes using decoded options.
9277 * opts-common.c (tm.h): Update comment on #include.
9278 (find_opt): Allow abbreviations of long options.
9279 (struct option_map, option_map): New.
9280 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
9282 (target_option_translations): New.
9283 (decode_cmdline_options_to_array): Handle
9284 TARGET_OPTION_TRANSLATE_TABLE in driver.
9285 * opts.c (common_handle_option): Don't handle OPT_fhelp,
9286 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
9288 2010-09-22 Richard Guenther <rguenther@suse.de>
9290 * tree-inline.c (optimize_inline_calls): Schedule cleanups
9291 only if we inlined something. Block compaction and conditional
9292 folding are done by cfg cleanup. Schedule update-address-taken.
9293 (tree_function_versioning): Remove redundant call to number_blocks.
9294 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
9295 folding is done by cfg cleanup.
9296 * passes.c (init_optimization_passes): Remove update-address-taken
9297 pass after IPA inlining.
9299 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9301 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
9302 to update conditions. Fix reg_mode[] check.
9304 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
9306 * config/picochip/picochip.md (movhicc): Use expand to check whether
9307 movhicc is available and split it after reload.
9309 2010-09-22 Richard Guenther <rguenther@suse.de>
9311 * tree-ssanames.c (release_dead_ssa_names): Do not remove
9313 * passes.c (init_optimization_passes): Remove early CFG cleanup.
9314 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
9315 (pass_cleanup_cfg): Likewise.
9316 (execute_fixup_cfg): Cleanup.
9317 * tree-pass.h (pass_cleanup_cfg): Remove.
9319 2010-09-22 Martin Jambor <mjambor@suse.cz>
9321 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
9322 builtins if it is true.
9323 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
9326 2010-09-22 Martin Jambor <mjambor@suse.cz>
9328 * tree-sra.c (struct access): New field grp_no_warning.
9329 (create_access_replacement): Set TREE_NO_WARNING according to
9331 (create_artificial_child_access): Use build_ref_for_model and set
9332 grp_no_warning if build_user_friendly_ref_for_offset fails.
9333 (propagate_subaccesses_across_link): Likewise.
9335 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
9338 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
9341 2010-09-22 Tristan Gingold <gingold@adacore.com>
9343 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
9345 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
9347 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
9348 * config/i386/i386.c (decide_alg): Update for rename.
9350 2010-09-22 Jakub Jelinek <jakub@redhat.com>
9352 PR rtl-optimization/45739
9353 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
9354 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
9356 2010-09-21 Anatoly Sokolov <aesok@post.ru>
9358 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
9359 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
9361 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
9362 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9364 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9367 * c-parser.c (c_parser_objc_method_definition): Check the return
9368 value of objc_start_method_definition and if false is returned,
9369 parse the method definition but emit no code.
9371 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9374 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
9375 call objc_get_interface_ivars ().
9377 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
9380 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
9381 static chain-register is used for 64-bit.
9383 2010-09-21 Richard Guenther <rguenther@suse.de>
9385 * dwarf2out.c (is_cu_die): New function.
9386 (add_pubtype): Use it.
9387 (gen_subprogram_die): Likewise.
9388 (gen_struct_or_union_type_die): Likewise.
9389 (dwarf2out_finish): Likewise.
9390 (comp_unit_die): Rename to ...
9391 (single_comp_unit_die): ... this.
9392 (comp_unit_die): New function lazily constructing and
9393 returning single_comp_unit_die.
9394 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
9395 base_type_die, subrange_type_die, modified_type_die,
9396 lower_bound_default, add_bound_info, add_prototyped_attribute,
9397 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
9398 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
9399 force_decl_die, gen_namespace_die, dwarf2out_decl,
9400 dwarf2out_start_source_file, dwarf2out_end_source_file,
9401 prune_unused_types, dwarf2out_finish): Use it.
9402 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
9403 the global list of translation-unit decls.
9404 (dwarf2out_init): Do not create single_comp_unit_die here.
9405 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
9407 2010-09-21 Richard Guenther <rguenther@suse.de>
9409 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
9412 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
9414 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
9415 (qhs_extenddi_cstr): Likewise.
9416 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
9417 them for the source operand.
9419 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
9421 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
9422 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
9423 (ix86_split_ashr): Ditto.
9424 (ix86_split_lshr): Ditto.
9426 2010-09-21 Richard Guenther <rguenther@suse.de>
9428 PR tree-optimization/45580
9429 * tree-ssa-propagate.c (substitute_and_fold): Always replace
9431 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
9432 virtuals fold the call into a regular indirect one.
9434 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
9436 PR rtl-optimization/42775
9437 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
9438 scheduling is enabled.
9440 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9442 PR rtl-optimization/45728
9443 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
9444 gen_lowpart_common first and if that fails, force_reg first
9445 before calling gen_lowpart.
9448 * cfgexpand.c (expand_one_stack_var_at): Use
9449 crtl->max_used_stack_slot_alignment as max_align, instead
9450 of maximum of that and PREFERRED_STACK_BOUNDARY.
9451 Don't call update_stack_alignment.
9453 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
9455 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
9456 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
9457 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
9458 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
9459 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
9460 (build_nonstandard_integer_type): Likewise.
9461 (build_range_type_1): New function, built from...
9462 (build_range_type): ...this. Call build_range_type_1.
9463 (build_nonshared_range_type): New function.
9464 (build_array_type_1): New function, built from...
9465 (build_array_type: ...this. Call build_array_type_1.
9466 (build_nonshared_array_type): New function.
9467 * tree.h (build_nonshared_range_type): Declare.
9468 (build_nonshared_array_type): Likewise.
9470 2010-09-20 Anatoly Sokolov <aesok@post.ru>
9472 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
9473 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9474 (arm_class_likely_spilled_p): New function.
9476 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
9478 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
9480 (ix86_split_ashl): Ditto.
9481 (ix86_split_ashr): Ditto.
9482 (ix86_split_lshr): Ditto.
9483 (ix86_adjust_counter): Ditto.
9485 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
9487 * c-family/c-common.h (constant_string_class): Documented with
9488 comment identical to the one already in c-common.c.
9490 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9492 * dwarf2out.c (any_cfis_emitted): New static variable.
9493 (add_fde_cfi): Set it.
9494 (dwarf2out_frame_debug): Clear it before processing,
9495 if it is set afterwards, flush any queued reg saves.
9498 * dwarf2out.c (add_accessibility_attribute): Assume
9499 DW_ACCESS_private as the default for dwarf_version > 2
9500 and DW_TAG_class_type parent.
9501 (gen_inheritance_die): Assume DW_ACCESS_public as the default
9502 for dwarf_version > 2 and parent other than DW_TAG_class_type.
9504 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
9507 * arm.md (arm_movt): Only enable on machines with MOVT.
9509 2010-09-20 Jie Zhang <jie@codesourcery.com>
9511 * config/arm/arm.c (arm_address_offset_is_imm): New.
9512 (arm_early_store_addr_dep): New.
9513 (arm_early_load_addr_dep): New.
9514 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
9515 (arm_early_load_addr_dep): Declare.
9516 (arm_address_offset_is_imm): Declare.
9517 * config/arm/cortex-m4.md: New file.
9518 * config/arm/cortex-m4-fpu.md: New file.
9519 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
9520 (attr generic_sched): Exclude cortexm4.
9521 (attr generic_vfp): Exclude cortexm4.
9523 2010-09-20 Richard Guenther <rguenther@suse.de>
9526 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
9528 2010-09-20 Jan Hubicka <jh@suse.cz>
9530 PR tree-optimize/45605
9531 * cgraph.h (const_value_known_p): Declare.
9532 (varpool_decide_const_value_known): Remove.
9533 * tree-ssa-ccp.c (get_base_constructor): Use it.
9534 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
9535 * expr.c (string_constant): Likewise.
9536 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
9537 * ipa.c (ipa_discover_readonly_nonaddressable_var,
9538 function_and_variable_visibility): Likewise.
9539 * gimplify.c (gimplify_call_expr): Likewise.
9540 * gimple-fold.c (get_symbol_constant_value): Likewise.
9541 * varpool.c (varpool_decide_const_value_known): Replace by...
9542 (const_value_known_p): ... this one; handle other kinds of DECLs
9543 too and work for automatic vars.
9544 (varpool_finalize_decl): Use const_value_known_p.
9546 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
9549 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
9551 2010-09-20 Richard Guenther <rguenther@suse.de>
9553 PR tree-optimization/45705
9554 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
9556 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9558 PR rtl-optimization/45695
9559 * combine.c (try_combine): When splitting a two set pattern,
9560 make sure the pattern which will be put into i2 doesn't use REGs
9561 or MEMs set by insns in between i2 and i3.
9563 2010-09-19 Jan Hubicka <jh@suse.cz>
9566 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
9567 processing same node twice.
9569 2010-09-19 Anatoly Sokolov <aesok@post.ru>
9571 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
9572 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9573 (bfin_class_likely_spilled_p): New function
9575 2010-09-19 Ira Rosen <irar@il.ibm.com>
9577 PR tree-optimization/45714
9578 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
9579 created in vectorizable_call instead of the original statement in
9582 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
9584 * config/i386/i386-protos.h (split_double_mode): New prototype.
9585 (split_di, split_ti): Remove prototypes.
9586 * config/i386/i386.c (split_double_mode): New function.
9587 (split_di, split_ti): Remove.
9588 (ix86_expand_branch): Use split_double_mode.
9589 (ix86_split_to_parts): Ditto.
9590 (ix86_split_ashl): Ditto.
9591 (ix86_split_ashr): Ditto.
9592 (ix86_split_lshr): Ditto.
9593 (ix86_force_to_memory): Ditto.
9594 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
9596 2010-09-18 Jan Hubicka <jh@suse.cz>
9598 PR tree-optimization/45453
9599 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
9600 virtual functions are reachable.
9601 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
9602 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9603 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
9604 when modifying function.
9606 2010-09-18 Jan Hubicka <jh@suse.cz>
9608 PR tree-optimization/45605
9609 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
9610 * gimple-fold.c (static_object_in_other_unit_p): New function.
9611 (canonicalize_constructor_val): Use it.
9612 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
9614 (gimple_fold_obj_type_ref_known_binfo): Use
9615 static_object_in_other_unit_p.
9617 2010-09-18 Richard Guenther <rguenther@suse.de>
9619 PR tree-optimization/45709
9620 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
9621 insertions until after all PHI nodes of the block are processed.
9623 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
9625 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
9627 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
9629 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
9631 2010-09-18 Richard Guenther <rguenther@suse.de>
9633 PR tree-optimization/45709
9634 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
9636 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
9638 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
9639 (dot_deps_stmt): Same.
9640 * graphite-poly.c (dot_lst): Same.
9641 * graphite-scop-detection.c (dot_all_scops): Same.
9644 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
9647 2009-12-16 Ben Elliston <bje@au.ibm.com>
9649 * tree-data-ref.c (dot_rdg_1): Added back.
9650 (dot_rdg): Same. Added "#if 0" around system call.
9652 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9653 Richard Henderson <rth@redhat.com>
9655 * config/i386/i386.c (initial_ix86_tune_features): Add
9656 X86_TUNE_PAD_SHORT_FUNCTION.
9657 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
9658 (ix86_count_insn): New.
9659 (ix86_pad_short_function): Likewise.
9660 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
9662 * config/i386/i386.h (ix86_tune_indices): Add
9663 X86_TUNE_PAD_SHORT_FUNCTION.
9664 (TARGET_PAD_SHORT_FUNCTION): New.
9666 * config/i386/i386.md (UNSPEC_NOPS): New.
9669 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9672 * calls.c (expand_call): Make sure that all variable sized
9673 adjustments are multiple of preferred stack boundary after
9676 2010-09-17 DJ Delorie <dj@redhat.com>
9678 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
9679 passed an invalid value, print an error instead of ICEing.
9680 (valid_psw_flag): New.
9681 (rx_expand_builtin): Call it for setpsw/clrpsw.
9682 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
9684 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
9685 (bitclr_in_memory): Likewise.
9686 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
9688 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9691 * cfgexpand.c (update_stack_alignment): New.
9692 (get_decl_align_unit): Use it.
9693 (expand_one_stack_var_at): Call update_stack_alignment.
9695 2010-09-17 Richard Guenther <rguenther@suse.de>
9697 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
9698 Properly copy the read string.
9700 2010-09-17 Joseph Myers <joseph@codesourcery.com>
9702 * doc/options.texi (Variable): Document.
9703 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
9704 generate target_flags declarations explicitly. Don't define
9705 VarExists variables for the driver.
9706 * common.opt (target_flags): New Variable record.
9707 (flag_dump_unnumbered, flag_dump_unnumbered_links,
9708 flag_var_tracking, flag_var_tracking_assignments,
9709 flag_var_tracking_assignments_toggle): Don't mark variables with
9711 * config/i386/i386.c (ix86_isa_flags): Don't define here.
9712 * config/i386/i386.opt (ix86_isa_flags): Define here.
9713 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
9714 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
9716 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
9717 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
9718 Only define for generator programs.
9719 * rtlanal.c (target_flags): Remove.
9720 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
9721 flag_var_tracking_assignments_toggle): Remove.
9723 2010-09-17 Michael Matz <matz@suse.de>
9725 PR tree-optimization/43432
9726 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9727 Accept backwards consecutive accesses.
9728 (vect_create_data_ref_ptr): If step is negative generate
9730 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
9731 (perm_mask_for_reverse, reverse_vec_elements): New functions.
9732 (vectorizable_load): Handle loads with negative steps when easily
9735 2010-09-03 Jan Hubicka <jh@suse.cz>
9737 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
9739 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
9741 * config/v850/v850.c (v850_function_value_regno_p): Make static.
9742 Adjust comments. Declare.
9743 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9744 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
9746 2010-09-17 Richard Guenther <rguenther@suse.de>
9748 * common.opt (combine): Remove.
9749 * gcc.c (default_compilers): Remove specs testing combine.
9750 The C compilers no longer can combine.
9751 (option_map): Remove -combine.
9752 (display_help): Remove -combine.
9753 (driver_handle_option): Remove OPT_combine handling.
9754 (compile_input_file_p): Remove.
9755 (do_spec): Remove code concerning combine.
9757 * doc/invoke.texi: Remove traces of -combine.
9758 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
9760 2010-09-17 Richard Guenther <rguenther@suse.de>
9763 * builtins.c (fold_builtin_memory_op): Always properly adjust
9764 alignment of memory accesses.
9766 2010-09-16 Jan Hubicka <jh@suse.cz>
9768 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
9771 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
9773 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
9775 * config/i386/i386.c (predict_jump): Add prototype.
9776 (flag_opts): Add -m8bit-idiv.
9777 (ix86_split_idivmod): New.
9779 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
9780 Add 2 splitters for SI/DI mode divide.
9781 (divmod<mode>4_1): New pattern.
9782 (udivmod<mode>4_1): Likewise.
9783 (testdi_ccno_1): Likewise.
9785 * config/i386/i386.opt (m8bit-idiv): New.
9787 * doc/invoke.texi: Document -m8bit-idiv.
9789 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
9792 * config/i386/i386.c (min_insn_size): Moved out of the
9793 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
9795 2010-09-16 Jan Hubicka <jh@suse.cz>
9797 * lto-cgraph.c (lto_output_node): Fix handling of clones.
9798 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
9799 unreachable clones with reachable clones.
9800 * tree-inline.c (copy_bb): Fix sanity checking when producing
9803 2010-09-16 Anatoly Sokolov <aesok@post.ru>
9805 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
9806 (TARGET_MEMORY_MOVE_COST): Define.
9807 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
9809 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
9811 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
9812 maybe_tidy_empty_bb.
9815 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
9816 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9818 2010-09-16 Joseph Myers <joseph@codesourcery.com>
9820 * target.def (target_option.optimization): New hook.
9821 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
9822 TARGET_OPTION_OPTIMIZATION hook.
9823 * doc/tm.texi: Regenerate.
9824 * hooks.c (hook_void_int_int): New.
9825 * hooks.h (hook_void_int_int): Declare.
9826 * opts.c: Don't include tm_p.h.
9827 (decode_options): Use targetm.target_option.optimization instead
9828 of OPTIMIZATION_OPTIONS.
9829 * system.h (OPTIMIZATION_OPTIONS): Poison.
9830 * config/arm/arm-protos.h (arm_optimization_options): Remove.
9831 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
9832 (arm_optimization_options): Rename to arm_option_optimization.
9834 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
9835 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
9836 (cris_option_optimization): New.
9837 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
9838 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
9839 (crx_option_optimization): New.
9840 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
9841 * config/frv/frv-protos.h (frv_optimization_options): Remove.
9842 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
9843 (frv_optimization_options): Rename to frv_option_optimization.
9845 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
9846 * config/h8300/h8300.c (h8300_option_optimization): New.
9847 (TARGET_OPTION_OPTIMIZATION): Define.
9848 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
9849 * config/i386/i386-protos.h (optimization_options): Remove.
9850 * config/i386/i386.c (optimization_options): Rename to
9851 ix86_option_optimization. Make static.
9852 (TARGET_OPTION_OPTIMIZATION): Define.
9853 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
9854 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
9855 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
9856 (ia64_optimization_options): Rename to ia64_option_optimization.
9857 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
9858 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
9859 commented-out definition.
9860 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
9861 instead of OPTIMIZATION_OPTIONS.
9862 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
9863 (m32r_option_optimization): New.
9864 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
9865 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
9867 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
9868 (mcore_option_optimization): New.
9869 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
9870 * config/mep/mep-protos.h (mep_optimization_options): Remove.
9871 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
9872 (mep_optimization_options): Rename to mep_option_optimization.
9873 Make static. Take unused level and size parameters.
9874 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
9875 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
9876 (mmix_option_optimization): New.
9877 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
9878 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
9879 (pdp11_option_optimization): New.
9880 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
9881 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
9882 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
9883 (optimization_options): Rename to rs6000_option_optimization.
9885 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
9886 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
9887 * config/rx/rx.c (rx_set_optimization_options): Rename to
9888 rx_option_optimization. Make static. Take unused level and size
9890 (TARGET_OPTION_OPTIMIZATION): Define.
9891 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
9892 * config/s390/s390-protos.h (optimization_options): Remove.
9893 * config/s390/s390.c (optimization_options): Rename to
9894 s390_option_optimization. Make static. Don't mark size parameter
9896 (TARGET_OPTION_OPTIMIZATION): Define.
9897 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
9898 * config/sh/sh-protos.h (sh_optimization_options): Remove.
9899 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
9900 (sh_optimization_options): Rename to sh_option_optimization. Make
9901 static. Don't mark parameters unused.
9902 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
9903 * config/spu/spu-protos.h (spu_optimization_options): Remove.
9904 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
9905 (spu_optimization_options): Rename to spu_option_optimization.
9907 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
9908 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
9909 (v850_option_optimization): New.
9910 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
9911 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
9912 (xtensa_option_optimization): New.
9913 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
9915 2010-09-16 Joseph Myers <joseph@codesourcery.com>
9917 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
9918 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
9919 * doc/tm.texi: Regenerate.
9920 * system.h (OVERRIDE_OPTIONS): Poison.
9921 * target.def (override): Default to hook_void_void.
9922 * targhooks.c (default_target_option_override): Remove.
9923 * genmodes.c, machmode.def: Update comments mentioning
9925 * config/alpha/alpha-modes.def: Update comment mentioning
9926 alpha_override_options.
9927 * config/alpha/alpha-protos.h (override_options): Remove.
9928 * config/alpha/alpha.c (override_options): Rename to
9929 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
9930 (TARGET_OPTION_OVERRIDE): Define.
9931 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
9932 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
9933 of OVERRIDE_OPTIONS.
9934 * config/arc/arc-protos.h (arc_init): Remove.
9935 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
9936 (arc_init): Rename to arc_option_override. Make static.
9937 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
9938 (OVERRIDE_OPTIONS): Remove.
9939 * config/arm/arm-protos.h (arm_override_options): Remove.
9940 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
9941 (arm_override_options): Rename to arm_option_override. Make
9942 static. Call SUBTARGET_OVERRIDE_OPTIONS.
9943 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
9944 * config/arm/arm.md: Update comment referring to arm_override_options.
9945 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9946 instead of OVERRIDE_OPTIONS.
9947 * config/avr/avr-protos.h (avr_override_options): Remove.
9948 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
9949 (avr_override_options): Rename to avr_option_override. Make static.
9950 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
9951 * config/bfin/bfin-protos.h (override_options): Remove (twice).
9952 * config/bfin/bfin.c (override_options): Rename to
9953 bfin_option_override. Make static.
9954 (TARGET_OPTION_OVERRIDE): Define.
9955 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
9956 * config/cris/cris-protos.h (cris_override_options): Remove.
9957 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
9958 (cris_override_options): Rename to cris_option_override. Make static.
9959 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
9960 * config/frv/frv-protos.h (frv_override_options): Remove.
9961 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
9962 (frv_override_options): Rename to frv_option_override. Make static.
9963 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
9964 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
9965 * config/h8300/h8300.c (h8300_init_once): Rename to
9966 h8300_option_override. Make static.
9967 (TARGET_OPTION_OVERRIDE): Define.
9968 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
9969 * config/i386/i386-protos.h (override_options): Remove.
9970 * config/i386/i386.c (override_options): Rename to
9971 ix86_option_override_internal. Make static. Comments referring
9972 to this function and callers changed.
9973 (ix86_option_override): New.
9974 (TARGET_OPTION_OVERRIDE): Define.
9975 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
9976 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
9977 * config/ia64/ia64.c (ia64_file_start): Update comment referring
9978 to ia64_override_options.
9979 * config/iq2000/iq2000-protos.h (override_options): Remove.
9980 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
9981 (override_options): Rename to iq2000_option_override. Make static.
9982 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
9983 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
9984 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
9985 (lm32_override_options): Rename to lm32_option_override. Make static.
9986 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
9987 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
9988 (m32r_option_override): New.
9989 (m32r_init): Update comment.
9990 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
9991 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
9992 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
9993 (m68hc11_override_options): Rename to m68hc11_option_override.
9994 Make static. Return void.
9995 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
9996 * config/m68k/m68k-protos.h (override_options): Remove.
9997 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
9998 (override_options): Rename to m68k_option_override. Make static.
9999 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
10000 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
10001 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
10002 (mcore_override_options): Rename to mcore_option_override. Make
10004 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
10005 * config/mep/mep-protos.h (mep_override_options): Remove.
10006 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
10007 (mep_override_options): Rename to mep_option_override. Make static.
10008 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
10009 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
10010 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
10011 (mmix_override_options): Rename to mmix_option_override. Make static.
10012 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
10013 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
10014 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
10015 (mn10300_override_options): Rename to mn10300_option_override.
10017 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
10018 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
10019 * config/moxie/moxie.c (moxie_override_options): Rename to
10020 moxie_option_override. Make static.
10021 (TARGET_OPTION_OVERRIDE): Define.
10022 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
10023 * config/picochip/picochip-protos.h (picochip_override_options):
10024 Remove. Update comment referring to picochip_override_options.
10025 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
10026 (picochip_override_options): Rename to picochip_option_override.
10027 Make static. Update comment and definition of
10028 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
10029 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
10030 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10031 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10032 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10033 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10034 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10035 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
10036 instead of OVERRIDE_OPTIONS.
10037 * config/rs6000/rs6000-modes.def: Update comment referring to
10038 rs6000_override_options.
10039 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
10040 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
10041 (rs6000_override_options): Rename to
10042 rs6000_option_override_internal. Make static. Commented
10043 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
10044 (rs6000_option_override): New.
10045 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
10046 instead of OVERRIDE_OPTIONS.
10047 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10048 * config/s390/s390-protos.h (override_options): Remove.
10049 * config/s390/s390.c (override_options): Rename to
10050 s390_option_override. Make static.
10051 (TARGET_OPTION_OVERRIDE): Define.
10052 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
10053 * config/score/score-protos.h (score_override_options): Remove.
10054 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
10055 (score_override_options): Rename to score_option_override. Make
10057 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
10058 Update comment referring to override_options.
10059 * config/score/score3.c (score3_override_options): Rename to
10060 score3_option_override.
10061 * config/score/score3.h (score3_override_options): Rename to
10062 score3_option_override.
10063 * config/score/score7.c (score7_override_options): Rename to
10064 score7_option_override.
10065 * config/score/score7.h (score7_override_options): Rename to
10066 score7_option_override.
10067 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
10068 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
10069 (sparc_override_options): Rename to sparc_option_override. Make
10070 static. Call SUBTARGET_OVERRIDE_OPTIONS.
10071 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
10072 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10073 instead of OVERRIDE_OPTIONS.
10074 * config/spu/spu-protos.h (spu_override_options): Remove.
10075 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
10076 (spu_override_options): Rename to spu_option_override. Make
10078 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
10079 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
10081 * config/vax/vax-protos.h (override_options): Remove.
10082 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
10083 (override_options): Rename to vax_option_override. Make static.
10084 Call SUBTARGET_OVERRIDE_OPTIONS.
10085 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
10086 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
10087 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
10088 * config/xtensa/xtensa-protos.h (override_options): Remove.
10089 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
10090 (override_options): Rename to xtensa_option_override. Make static.
10091 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
10093 2010-09-16 Richard Guenther <rguenther@suse.de>
10095 PR tree-optimization/45623
10096 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
10097 (get_constraint_for_component_ref): If computing a constraint
10098 for the rhs handle type punning through unions.
10099 (get_constraint_for_address_of): Adjust.
10100 (get_constraint_for_1): Likewise.
10101 (get_constraint_for): Likewise.
10102 (get_constraint_for_rhs): New function.
10103 (do_structure_copy): Adjust.
10104 (make_constraint_to): Likewise.
10105 (handle_const_call): Likewise.
10106 (find_func_aliases): Likewise.
10107 (process_ipa_clobber): Likewise.
10108 (create_variable_info_for): Likewise.
10110 2010-09-16 Ira Rosen <irar@il.ibm.com>
10112 * tree-vectorizer.c: Fix documentation.
10113 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
10114 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
10115 is_pattern_stmt_p, is_loop_header_bb_p,
10116 stmt_vinfo_set_inside_of_loop_cost,
10117 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
10118 known_alignment_for_access_p): Likewise.
10119 * tree-vect-loop.c: Fix documentation.
10120 (vect_get_cost): Start function name from new line.
10121 * tree-vect-data-refs.c: Fix documentation.
10122 * tree-vect_stmts.c: Likewise.
10123 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
10124 (vectorizable_store): Free vec_oprnds if allocated.
10125 (vectorizable_condition): Initialize several variables to avoid
10127 * tree-vect-slp.c: Fix documentation.
10129 2010-09-16 Richard Guenther <rguenther@suse.de>
10131 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
10132 is TS_TRANSLATION_UNIT_DECL.
10133 (initialize_tree_contains_struct): Adjust.
10134 (all_translation_units): New global vector.
10135 (build_translation_unit_decl): New function.
10136 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
10137 (struct tree_translation_unit_decl): New.
10138 (all_translation_units): Declare.
10139 (union tree_node): Add translation_unit_decl member.
10140 (build_translation_unit_decl): Declare.
10141 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
10142 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
10144 (pack_value_fields): Call it.
10145 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
10146 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
10147 (lto_output_tree_pointers): Call it.
10148 * lto-streamer-in.c (lto_input_tree_ref): Handle references
10149 to TRANSLATION_UNIT_DECL.
10150 (unpack_ts_translation_unit_decl_value_fields): New function.
10151 (unpack_value_fields): Call it.
10152 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
10153 (lto_input_tree_pointers): Call it.
10154 * lto-streamer.c (check_handled_ts_structures): Adjust.
10155 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
10156 * c-decl.c (all_translation_units): Remove.
10157 (pop_scope): Use build_translation_unit_decl.
10158 (collect_all_refs): Adjust.
10159 (for_each_global_decl): Likewise.
10160 (c_write_global_declarations): Likewise.
10162 2010-09-16 Jakub Jelinek <jakub@redhat.com>
10165 * fold-const.c (fold_checksum_tree): Change slot from const void **
10166 to void **, use CONST_CAST_TREE to store into *slot.
10168 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10170 * config/i386/i386.md: Remove unneeded empty conditions and
10171 preparation statements from expanders.
10172 * config/i386/mmx.md: Ditto.
10173 * config/i386/sse.md: Ditto.
10175 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10177 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
10179 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
10181 PR rtl-optimization/45593
10182 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
10183 insns that were in delay slots as stand-alone insns.
10185 2010-09-15 Ian Lance Taylor <iant@google.com>
10187 * incpath.c (remove_duplicates): If name is not a directory, issue
10188 a warning rather than an error.
10190 2010-09-15 Martin Jambor <mjambor@suse.cz>
10192 PR middle-end/45644
10193 * tree-sra.c (create_access): Check for bit-fields directly.
10195 2010-09-15 Jakub Jelinek <jakub@redhat.com>
10197 PR tree-optimization/45633
10198 * tree-cfg.c (verify_gimple_assign_binary): Allow
10199 MINUS_EXPR with lhs and rhs1 pointer vector and
10200 rhs2 sizetype vector.
10201 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
10202 or vector pointer use TER to optimize pointer subtraction.
10204 2010-09-15 Jie Zhang <jie@codesourcery.com>
10206 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
10209 2010-09-15 Ian Lance Taylor <iant@google.com>
10211 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
10213 2010-09-15 Ian Lance Taylor <iant@google.com>
10215 * function.c (get_arg_pointer_save_area): Set
10216 arg_pointer_save_area_init to true.
10218 2010-09-15 Martin Jambor <mjambor@suse.cz>
10220 * tree-sra.c (generate_subtree_copies): Updated comment.
10221 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
10222 obtained from the statement iterator instead.
10223 (load_assign_lhs_subreplacements): Removed parameters lhs and
10224 right_offset, which is obtained from top_racc instead. Parameter lacc
10225 is now expected to be the root of the processed tree rather than root's
10226 first child. Updated all callers.
10228 2010-09-15 Joseph Myers <joseph@codesourcery.com>
10230 * config/pdp11/pdp11.c (register_move_cost): Rename to
10231 pdp11_register_move_cost.
10232 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
10233 pdp11_register_move_cost.
10234 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
10235 pdp11_register_move_cost instead of register_move_cost.
10237 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
10239 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
10240 pattern for vmovn. Expansion in case of non
10241 -mvectorize-with-neon-quad.
10242 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
10243 non- -mvectorize-with-neon-quad case.
10244 (move_lo_quad_<mode>): New expansion to vmov into low part.
10245 (move_hi_quad_<mode>): New expansion to vmov into high part.
10246 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
10247 (move_lo_quad_v4sf): Likewise.
10248 (move_lo_quad_v8hi): Likewise.
10249 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
10251 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
10253 * config/arm/iterators.md (ANY128): New mode iterator.
10254 (V_narrow_pack): New mode attribute.
10255 (V_HALF): Add attribute.
10256 (V_DOUBLE): Add attribute.
10257 (V_mode_nunits): Add attribute.
10259 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
10261 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
10262 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
10264 2010-09-15 Olivier Hainque <hainque@adacore.com>
10265 Jose Ruiz <ruiz@adacore.com>
10267 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
10268 * config/alpha/osf5-unwind.h: New file.
10270 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10273 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
10274 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10275 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10277 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10279 * c-lang.h (struct lang_type): Add variable_size GTY option.
10281 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10284 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10286 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10288 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
10289 result isn't used in memory address.
10291 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10293 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
10294 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
10295 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
10296 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
10297 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
10298 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
10300 * target.def: Add units_per_simd_word to vectorize.
10302 * targhooks.c (default_units_per_simd_word): New.
10303 * targhooks.h (default_units_per_simd_word): Likewise.
10304 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
10305 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10306 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
10307 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10308 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10309 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10310 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10311 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10313 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
10314 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
10316 * tree-vect-stmts.c: Don't include "tm_p.h".
10317 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
10318 with targetm.vectorize.units_per_simd_word.
10320 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
10322 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
10324 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
10325 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10327 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
10328 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
10330 * doc/tm.texi: Regenerated.
10332 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10334 * tree-vect-stmts.c: Include "tm_p.h".
10336 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
10339 2010-09-14 Martin Jambor <mjambor@suse.cz>
10341 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
10342 location of generated statement. Changed all callers.
10343 (build_ref_for_model): New parameter loc which used to set location of
10344 all generated expressions. Changed all callers.
10345 (generate_subtree_copies): Likewise.
10346 (init_subtree_with_zero): Likewise.
10347 (sra_modify_expr): Set locations of all generated statements and
10348 expressions to the location the original statement.
10349 (handle_unscalarized_data_in_subtree): Likewise.
10350 (load_assign_lhs_subreplacements): Likewise.
10351 (sra_modify_constructor_assign): Likewise.
10352 (sra_modify_assign): Likewise.
10354 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
10359 * doc/install.texi (sparc*-*-*): New section.
10360 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
10362 2010-09-14 Jakub Jelinek <jakub@redhat.com>
10364 PR middle-end/45567
10365 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
10366 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
10367 (expand_builtin): Adjust caller.
10368 (expand_builtin_unop): Only use subtarget if it has the right mode.
10370 2010-09-14 Tristan Gingold <gingold@adacore.com>
10372 * configure.ac (plugins): Fix typos.
10373 * configure: Regenerate.
10375 2010-09-14 Jakub Jelinek <jakub@redhat.com>
10378 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
10379 gen_type_die for function/method return type.
10381 2010-09-14 Ira Rosen <irar@il.ibm.com>
10383 PR tree-optimization/45470
10384 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10385 can throw an exception.
10386 * tree-vect-stmts.c (vectorizable_call): Likewise.
10388 2010-09-14 DJ Delorie <dj@redhat.com>
10391 * config/mep/mep-protos.h (mep_save_register_info,
10392 mep_reinit_regs, mep_init_regs): Declare.
10394 * config/mep/mep.c: Move all target definitions to the end of the
10395 file to avoid the need for duplicate declarations.
10396 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
10397 (mep_reorg_erepeat): Remove unused variables.
10398 (mep_expand_builtin): Likewise.
10400 * config/mep/mep-pragma.c: Don't include rtl.h.
10401 (INVALID_REGNUM): New.
10402 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
10404 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
10405 Avoid enum/integer math.
10407 2010-09-13 Joseph Myers <joseph@codesourcery.com>
10410 * config/mep/t-mep (GTM_H): Add insn-constants.h.
10411 * config/mep/mep.c (mep_conditional_register_usage): Take no
10413 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
10415 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
10416 call to mep_conditional_register_usage.
10418 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
10421 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
10424 2010-09-13 Jakub Jelinek <jakub@redhat.com>
10426 PR rtl-optimization/45617
10427 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
10428 even if low N bits of X aren't known to be zero.
10430 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
10432 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
10434 * config/i386/i386.c (initial_ix86_tune_features): Add
10435 X86_TUNE_VECTORIZE_DOUBLE.
10436 (ix86_units_per_simd_word): New.
10438 * config/i386/i386.h (ix86_tune_indices): Add
10439 X86_TUNE_VECTORIZE_DOUBLE.
10440 (TARGET_VECTORIZE_DOUBLE): New.
10441 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
10443 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
10445 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
10446 (new_temp_expr_table): Allocate call_cnt vector.
10447 (free_temp_expr_table): Free it.
10448 (process_replaceable): Add call_cnt parm and set in vector.
10449 (find_replaceable_in_bb): Skip replacement if def/use span a call.
10450 (debug_ter): Dump call_cnt value, remove stderr uses.
10452 2010-09-13 Jan Hubicka <jh@suse.cz>
10454 * tree.c (build_zero_cst): New.
10455 * tree.h (build_zero_cst): Declare.
10456 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
10457 (get_base_constructor): Break out from ...
10458 (fold_const_aggregate_ref): Here; handle empty constructors.
10460 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10462 * config/arm/arm.md: (define_attr "conds"): Update comment.
10463 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
10464 conds attribute to clob.
10465 (arm_sync_compare_and_swapsi): Likewise.
10466 (arm_sync_compare_and_swap<mode>): Likewise.
10467 (arm_sync_lock_test_and_setsi): Likewise.
10468 (arm_sync_lock_test_and_set<mode>): Likewise.
10469 (arm_sync_new_<sync_optab>si): Likewise.
10470 (arm_sync_new_nandsi): Likewise.
10471 (arm_sync_new_<sync_optab><mode>): Likewise.
10472 (arm_sync_new_nand<mode>): Likewise.
10473 (arm_sync_old_<sync_optab>si): Likewise.
10474 (arm_sync_old_nandsi): Likewise.
10475 (arm_sync_old_<sync_optab><mode>): Likewise.
10476 (arm_sync_old_nand<mode>): Likewise.
10478 2010-09-13 Olivier Hainque <hainque@adacore.com>
10480 * fwprop.c (forward_propagate_and_simplify): Only attach a
10481 REG_EQUAL note to an insn if the destination is a register.
10482 * gcse.c (try_replace_reg): Likewise.
10484 2010-09-13 Richard Guenther <rguenther@suse.de>
10486 PR tree-optimization/45611
10487 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
10488 (copy_ref_info): Likewise.
10490 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
10495 * tree-pretty-print.c (dump_generic_node): Disregard top-level
10496 types of MEM_REF pointer types to the same type.
10498 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
10500 PR rtl-optimization/41087
10501 * ifcvt.c (noce_get_condition): Don't allow conditions with
10504 2010-09-12 Anatoly Sokolov <aesok@post.ru>
10506 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10507 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
10508 * config/frv/frv.c (frv_register_move_cost): Make static. Change
10509 arguments type to reg_class_t. Add mode argument.
10510 (frv_memory_move_cost): New.
10511 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
10513 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
10515 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
10516 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
10518 2010-09-10 Jan Hubicka <jh@suse.cz>
10520 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
10522 2010-09-10 Richard Guenther <rguenther@suse.de>
10524 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
10525 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
10526 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
10527 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
10528 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
10530 2010-09-10 Richard Guenther <rguenther@suse.de>
10532 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
10533 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
10534 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
10535 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
10537 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
10539 PR middle-end/45634
10540 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
10541 of string folding is of integral type.
10543 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
10545 * doc/invoke.texi (-x): Fix typo.
10547 2010-09-10 Richard Guenther <rguenther@suse.de>
10550 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
10551 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10552 Output DECL_DEBUG_EXPR.
10553 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10554 Input DECL_DEBUG_EXPR.
10556 2010-09-10 Richard Guenther <rguenther@suse.de>
10558 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
10559 (build_index_type): Implement in terms of build_range_type.
10560 (build_range_type): Do not allow NULL_TREE type, improve
10561 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
10563 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
10564 create a distinct copy of the type.
10566 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
10568 * configure: Regenerated.
10569 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
10571 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10573 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
10574 * config/arm/cortex-a9-neon.md: New and partially generated.
10575 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
10577 2010-09-10 Richard Guenther <rguenther@suse.de>
10579 * tree.h (build_index_2_type): Remove.
10580 * tree.c (build_index_2_type): Remove.
10582 2010-09-10 Jakub Jelinek <jakub@redhat.com>
10585 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
10586 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
10587 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
10589 2010-09-10 Martin Jambor <mjambor@suse.cz>
10591 PR tree-optimization/44972
10592 * tree-sra.c: Include toplev.h.
10593 (build_ref_for_offset): Entirely reimplemented.
10594 (build_ref_for_model): New function.
10595 (build_user_friendly_ref_for_offset): New function.
10596 (analyze_access_subtree): Removed build_ref_for_offset check.
10597 (propagate_subaccesses_across_link): Likewise.
10598 (create_artificial_child_access): Use
10599 build_user_friendly_ref_for_offset.
10600 (propagate_subaccesses_across_link): Likewise.
10601 (ref_expr_for_all_replacements_p): Removed.
10602 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
10603 (sra_modify_expr): Use build_ref_for_model.
10604 (load_assign_lhs_subreplacements): Likewise.
10605 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
10606 checks for return values of build_ref_for_offset.
10607 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
10608 build_ref_for_offset.
10609 * ipa-prop.h: Include gimple.h
10610 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
10611 (ipa_analyze_indirect_call_uses): Update comment.
10612 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
10613 (IPA_PROP_H): Likewise.
10615 2010-09-10 Martin Jambor <mjambor@suse.cz>
10617 PR tree-optimization/44972
10618 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
10619 calling build_ref_for_offset.
10621 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10623 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
10624 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
10625 * config/arm/arm-tune.md: Regenerate.
10626 * doc/invoke.texi (ARM Options): Document it.
10628 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
10630 * config/i386/i386.c: Include sched-int.h.
10631 (TARGET_SCHED_DISPATCH): Defined.
10632 (TARGET_SCHED_DISPATCH_DO): Defined.
10633 (DISPATCH_WINDOW_SIZE): Defined.
10634 (MAX_DISPATCH_WINDOWS): Defined.
10635 (MAX_INSN): Defined.
10636 (MAX_IMM): Defined.
10637 (MAX_IMM_SIZE): Defined.
10638 (MAX_IMM_32): Defined.
10639 (MAX_IMM_64): Defined.
10640 (MAX_LOAD): Defined.
10641 (MAX_STORE): Defined.
10643 (dispatch_group): New.
10644 (num_allowable_groups): New.
10646 (sched_insn_info_s): New.
10647 (dispatch_windows_s): New.
10649 (dispatch_window_list): New.
10650 (dispatch_window_list1): New.
10651 (get_mem_group): New.
10653 (dispatch_violation): New.
10655 (is_prefetch): New.
10656 (init_window): New.
10657 (allocate_window): New.
10658 (init_dispatch_sched): New.
10659 (is_end_basic_block): New.
10660 (process_end_window): New.
10661 (allocate_next_window): New.
10662 (find_constant_1): New.
10663 (find_constant): New.
10664 (get_num_immediates): New.
10665 (has_immediate): New.
10666 (get_insn_path): New.
10667 (get_insn_group): New.
10668 (count_num_restricted): New.
10669 (fits_dispatch_window): New.
10670 (add_insn_window): New.
10671 (add_to_dispatch_window): New.
10672 (debug_dispatch_window_file): New.
10673 (debug_dispatch_window): New.
10674 (debug_insn_dispatch_info_file): New.
10675 (debug_ready_dispatch): New.
10676 (do_dispatch): New.
10677 (has_dispatch): New.
10678 * config/i386/i386.h (debug_ready_dispatch): Declared.
10679 (debug_dispatch_window): Declared.
10680 * config/i386/i386.opt (mdispatch-scheduler): New flag.
10681 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
10682 (TARGET_SCHED_DISPATCH_DO): New.
10683 * doc/tm.texi: Regererated.
10684 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
10685 ready_remove_first_dispatch
10686 (schedule_block): Call targetm.sched.dispatch and
10687 targetm.sched.dispatch_do.
10688 (sched_init): Call targetm.sched.dispatch and
10689 targetm.sched.dispatch_do.
10690 (ready_remove_first_dispatch): New.
10691 (number_in_ready): New.
10692 (get_ready_element): New.
10693 * hooks.c (hook_bool_rtx_int_false): New.
10694 (hook_void_rtx_int): New.
10695 * hooks.h (hook_bool_rtx_int_false): Declared.
10696 (hook_void_rtx_int): Declared.
10697 * sched-int.h (IS_DISPATCH_ON): Defined.
10699 (DISPATCH_VIOLATION): Defined.
10700 (FITS_DISPATCH_WINDOW): Defined.
10701 (DISPATCH_INIT): Defined.
10702 (ADD_TO_DISPATCH_WINDOW): Defined.
10703 (get_ready_element): Declared.
10704 (number_in_ready): Declared.
10705 * target.def (dispatch): Defined.
10706 (dispatch_do): Defined.
10708 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10710 PR middle-end/45312
10711 * reload1.c (merge_assigned_reloads): Remove.
10712 (reload_as_needed): Don't call it.
10714 2010-09-09 Anatoly Sokolov <aesok@post.ru>
10716 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
10717 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10718 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10720 2010-09-09 Matthias Klose <doko@ubuntu.com>
10723 * configure.ac (--enable-plugin): Enhance for cross builds.
10724 * configure: Regenerate.
10726 2010-09-09 Jan Hubicka <jh@suse.cz>
10728 PR tree-optimization/45598
10729 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
10730 string folding is of integral type.
10732 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
10734 * configure.ac (gnu_indirect_function): New test.
10735 * configure: Rebuilt.
10736 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
10737 * defaults.h (IFUNC_ASM_TYPE): Provide default.
10739 * doc/extend.texi (Function Attributes): Document ifunc.
10740 * varasm.c (do_assemble_alias): Deal with ifuncs too.
10742 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10744 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
10745 epilogue instruction move.
10747 2010-09-09 Jan Hubicka <jh@suse.cz>
10749 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
10750 command line to allow more partitions than input files.
10752 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10754 PR middle-end/44554
10755 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
10757 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10759 PR middle-end/40386
10760 * ira.c (pseudo_for_reload_consideration_p): Don't use
10761 flag_ira_share_spill_slots.
10763 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10765 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
10766 point zero operands that fit into a single GPR.
10767 (s390_preferred_reload_class): Ensure we only return general-purpose
10769 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
10770 floating-point zero operands into GPRs.
10771 ("*mov<mode>_64"): Likewise.
10772 ("mov<mode>"): Likewise using lhi.
10774 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10776 * config/s390/s390.c (s390_symref_operand_p): Return false for
10777 literal pool references.
10778 (s390_check_qrst_address): Update caller.
10780 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
10782 * config/i386/predicates.md (ext_register_operand): Check that
10783 SUBREG_REG is really a register before looking for REGNO.
10784 (reg_not_xmm0_operand): Handle SUBREGs correctly.
10785 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
10787 2010-09-09 Jakub Jelinek <jakub@redhat.com>
10789 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
10790 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
10791 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
10792 * print-rtl.c (print_rtx): Likewise.
10793 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10794 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
10795 for ADDR_EXPR with non-addressable object.
10796 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
10797 (struct dw_val_struct): Add v.val_decl_ref.
10798 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
10799 Handle DW_OP_GNU_implicit_pointer.
10800 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
10801 (get_ref_die_offset_label): New function.
10802 (implicit_ptr_descriptor): New function.
10803 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
10804 (loc_descriptor): Likewise.
10805 (gen_variable_die): Put even definitions into decl_die_table.
10806 (resolve_addr_in_expr): Resolve still unresolved
10807 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
10809 (dwarf2out_finish): Call output_location_lists after outputting
10810 .debug_info and .debug_abbrev instead of before.
10812 2010-09-09 Roland McGrath <roland@redhat.com>
10814 * dwarf2out.c (DWARF_REF_SIZE): Define.
10815 (size_of_loc_descr): Use it for DW_OP_call_ref.
10817 2010-09-09 Alan Modra <amodra@gmail.com>
10819 * doc/invoke.text: Reinstate mcmodel=medium.
10820 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10821 CMODEL_MEDIUM as default.
10822 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
10823 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
10824 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
10825 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
10827 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10830 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
10831 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
10832 (builtin_longjmp): Likewise.
10833 (allocate_stack): Use hard_frame_pointer_rtx instead of
10835 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
10836 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
10837 (pa_can_eliminate): Likewise.
10838 (TARGET_INTERNAL_ARG_POINTER): Define.
10839 (TARGET_CAN_ELIMINATE): Define.
10840 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
10842 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
10843 (pa_internal_arg_pointer, pa_can_eliminate,
10844 pa_initial_elimination_offset): New.
10845 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
10846 (HARD_FRAME_POINTER_REGNUM): Set to register three.
10847 (INITIAL_FRAME_POINTER_OFFSET): Delete.
10848 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
10850 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
10851 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
10852 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
10853 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
10854 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
10855 new soft frame pointer.
10856 * config/pa/pa64-regs.h: Likewise.
10858 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
10860 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
10861 numerical constant.
10862 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
10864 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
10867 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
10869 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
10873 * tree-pretty-print.c (dump_generic_node): Disregard top-level
10874 qualifiers in otherwise equal MEM_REF pointer types.
10875 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
10876 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
10878 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10881 * config/arm/arm.md (bswapsi2): Handle condition correctly
10882 for armv6 and optimize_size.
10884 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10887 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
10889 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
10891 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
10892 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
10893 ix86_expand_strlen, legitimate_pic_address_disp_p,
10894 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
10895 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
10896 ix86_check_movabs, ix86_secondary_memory_needed): Change function
10898 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
10899 return_in_memory_ms_64, ix86_check_movabs,
10900 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
10901 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
10902 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
10903 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
10904 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
10905 ix86_secondary_memory_needed): Change to bool. Return
10906 "true" and "false" values.
10907 * config/i386/i386.md: Return "true" and "false" values.
10909 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10911 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10912 run_expensive_tests.
10914 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10916 * toplev.c (output_stack_usage): Use lbasename instead of basename.
10918 2010-09-08 Martin Jambor <mjambor@suse.cz>
10921 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
10924 2010-09-08 Richard Guenther <rguenther@suse.de>
10926 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
10928 (iterative_hash_gimple_type): Likewise.
10929 (gimple_type_hash): Likewise.
10930 (gimple_register_type): Likewise.
10931 (print_gimple_types_stats): Likewise.
10932 (free_gimple_type_tables): Likewise.
10934 2010-09-08 Michael Matz <matz@suse.de>
10936 PR tree-optimization/43430
10937 * tree-vect-stmts.c (vectorizable_condition): Support multiple
10938 copies for conditional statements if it's not part of a reduction.
10940 2010-09-08 Michael Matz <matz@suse.de>
10942 PR tree-optimization/33244
10943 * tree-ssa-sink.c (statement_sink_location): Don't sink into
10944 empty loop latches.
10946 2010-09-08 Richard Guenther <rguenther@suse.de>
10948 PR tree-optimization/45578
10949 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
10950 Be more careful when transfering alignment information to
10951 the new induction variable.
10952 (copy_ref_info): Likewise.
10954 2010-09-08 Richard Guenther <rguenther@suse.de>
10956 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
10957 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
10959 2010-09-08 Arnaud Charlet <charlet@adacore.com>
10961 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
10962 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
10964 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
10967 * doc/md.texi: Fixed modes on several standard pattern names.
10969 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
10971 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
10972 (ashl<mode>3): ...this.
10973 (loongson_psra<V_suffix>): Rename to...
10974 (ashr<mode>3): ...this.
10975 (loongson_psrl<V_suffix>): Rename to...
10976 (lshr<mode>3): ...this.
10977 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
10978 (CODE_FOR_loongson_psllw): Define.
10979 (CODE_FOR_loongson_psrlh): Define.
10980 (CODE_FOR_loongson_psrlw): Define.
10981 (CODE_FOR_loongson_psrah): Define.
10982 (CODE_FOR_loongson_psraw): Define.
10984 2010-09-07 Richard Henderson <rth@redhat.com>
10986 * tree-vect-data-refs.c: Include tm_p.h.
10987 * Makefile.in (tree-vect-data-refs.o): Update deps.
10988 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
10989 Move delarations outside #ifdef RTX_CODE.
10991 2010-09-07 Richard Henderson <rth@redhat.com>
10993 * final.c (rest_of_handle_final): Unconditionally do
10994 output_function_exception_table before assemble_end_function.
10996 2010-09-07 Jan Hubicka <jh@suse.cz>
10998 * tree-inline.c (tree_inlinable_function_p): Do not test
10999 DECL_REPLACEABLE_P.
11000 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
11001 update_callee_keys, cgraph_decide_inlining): Test function availability.
11002 * cif-code.def (OVERWRITABLE): New code.
11004 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
11005 Jack Howarth <howarth@bromo.med.uc.edu>
11010 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
11011 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
11012 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
11015 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11017 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
11018 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
11020 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11022 * config.gcc: Don't append t-android for Android targets.
11024 * config/t-android: Removed.
11026 2010-09-07 Richard Henderson <rth@redhat.com>
11028 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
11029 * doc/tm.texi.in: Add doc marker.
11030 * doc/tm.texi: Rebuild.
11031 * except.c (switch_to_exception_section): Always build.
11032 (output_one_function_exception_table): Move section switch,
11033 personality output, and label output ...
11034 (output_function_exception_table): ... here. Use the new
11037 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
11038 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
11039 TARGET_ASM_INIT_SECTIONS): New.
11040 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
11042 (TARGET_ASM_UNWIND_EMIT): Update to match.
11043 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
11045 * config/arm/arm.c (arm_asm_emit_except_personality): New.
11046 (arm_asm_init_sections): New.
11047 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
11049 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11051 * config/arm/arm.md: Remove unused variable.
11053 2010-09-07 Anatoly Sokolov <aesok@post.ru>
11055 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11056 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
11057 (m32r_memory_move_cost): New function.
11059 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11061 * config.gcc: Append t-android for Android targets.
11063 * config/t-android: New.
11065 2010-09-07 Richard Henderson <rth@redhat.com>
11067 * target.def (unwind_emit_before_insn): New hook.
11068 * doc/tm.texi.in: Add @hook marker for it.
11069 * doc/tm.texi: Rebuild.
11070 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
11072 2010-09-07 Martin Jambor <mjambor@suse.cz>
11075 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
11076 are any type attributes.
11078 2010-09-07 Jan Hubicka <jh@suse.cz>
11080 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
11081 array_ref_low_bound in string access folding.
11083 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
11086 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
11087 eh_return fixup sequence.
11089 2010-09-07 Jan Hubicka <jh@suse.cz>
11091 * gimple-fold.c (maybe_fold_reference): Verify that operand is
11092 gimple_min_invariant.
11094 2010-09-07 Richard Guenther <rguenther@suse.de>
11096 PR middle-end/45569
11097 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
11098 nor CONSTRUCTOR can trap.
11099 * tree-complex.c (update_complex_assignment): Update EH info.
11101 2010-09-07 Richard Guenther <rguenther@suse.de>
11103 PR middle-end/45569
11104 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
11105 * passes.c (execute_function_todo): Do not verify anything if
11108 2010-09-07 Richard Guenther <rguenther@suse.de>
11110 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
11112 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
11115 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
11116 New define_mode_attrs.
11117 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
11118 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
11119 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
11120 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
11121 Remove pool_range attribute.
11122 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
11123 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
11124 pool_range and neg_pool_range attributes.
11125 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
11126 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
11127 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
11129 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11131 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
11134 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
11137 * config/i386/mmx.md (*mov<mode>_internal_rex64,
11138 *mov<mode>_internal_avx, *mov<mode>_internal,
11139 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
11140 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
11142 2010-09-06 Mark Mitchell <mark@codesourcery.com>
11144 * c-typeck.c (do_warn_double_promotion): Remove.
11145 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
11148 2010-09-06 Anatoly Sokolov <aesok@post.ru>
11150 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
11151 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
11152 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
11153 argument type to reg_class_t. Change result type to bool.
11154 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11156 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
11159 * gthr-posix.h (__gthread_objc_thread_detach): Use
11160 _objc_thread_attribs when detaching a thread.
11161 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
11163 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11166 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
11167 * configure: Regenerated.
11169 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11171 * combine.c (try_combine): Set subst_low_luid to i0.
11173 2010-09-06 Richard Guenther <rguenther@suse.de>
11175 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
11176 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
11177 (build_aligned_type): Declare.
11178 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
11179 (check_aligned_type): New function.
11180 (build_aligned_type): Likewise.
11181 * expr.c (expand_assignment): Handle misaligned stores via
11182 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
11183 (expand_expr_real_1): Likewise.
11184 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
11185 * tree-vect-stmts.c (vectorizable_store): Do not build
11186 MISALIGNED_INDIRECT_REF but initialize alignment information.
11187 (vectorizable_load): Likewise.
11188 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
11190 * cfgexpand.c (expand_debug_expr): Likewise.
11191 * dwarf2out.c (loc_list_from_tree): Likewise.
11192 * fold-const.c (maybe_lvalue_p): Likewise.
11193 (operand_equal_p): Likewise.
11194 (build_fold_addr_expr_with_type_loc): Likewise.
11195 * gimplify.c (gimplify_addr_expr): Likewise.
11196 (gimplify_expr): Likewise.
11197 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11198 (verify_gimple_assign_single): Likewise.
11199 * tree-dump.c (dequeue_and_dump): Likewise.
11200 (tree_could_trap_p): Likewise.
11201 * tree-predcom.c (ref_at_iteration): Likewise.
11202 * tree-pretty-print.c (dump_generic_node): Likewise.
11203 (op_code_prio): Likewise.
11204 (op_symbol_code): Likewise.
11205 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11206 * tree-ssa-loop-im.c (for_each_index): Likewise.
11207 (gen_lsm_tmp_name): Likewise.
11208 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11209 (find_interesting_uses_address): Likewise.
11210 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11211 * tree-ssa-operands.c (get_expr_operands): Likewise.
11212 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11213 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11214 (ao_ref_init_from_vn_reference): Likewise.
11215 * tree.c (staticp): Likewise.
11216 (build1_stat): Likewise.
11217 (reference_alias_ptr_type): Likewise.
11218 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11219 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
11220 MISALIGNED_INDIRECT_REF handling.
11222 2010-09-06 Richard Guenther <rguenther@suse.de>
11224 PR tree-optimization/45534
11225 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
11226 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
11228 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
11229 valid on the target.
11231 2010-09-06 Andreas Schwab <schwab@redhat.com>
11233 * configure.ac: Quote argument of AC_MSG_WARN.
11234 * configure: Regenerate.
11236 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
11238 * sel-sched.c (move_cond_jump): Correct arguments to
11239 maybe_tidy_empty_bb.
11240 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11242 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
11244 PR rtl-optimization/44919
11245 * sel-sched.c (move_cond_jump): Remove assert, check that
11246 the several blocks case can only happen with mutually exclusive
11247 insns instead. Rewrite the movement code to support moving through
11248 several basic blocks.
11250 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
11252 * config/i386/i386.md (iptrsize): New mode attribute.
11254 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
11256 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
11257 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
11258 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
11259 (stack_tls_protect_set_<mode>): Ditto from
11260 stack_tls_protect_set_{si,di}. Use %@ to output segment register
11261 of thread base pointer load.
11262 (stack_tls_protect_test_<mode>): Ditto from
11263 stack_tls_protect_test_{si,di}. Use %@ to output segment register
11264 of thread base pointer load.
11265 (stack_protect_set): Rewrite using indirect functions.
11266 (stack_protect_test): Ditto.
11267 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
11268 (ix86_print_operand): Handle '@'.
11270 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
11272 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
11275 2010-09-05 Mark Mitchell <mark@codesourcery.com>
11277 * doc/invoke.texi: Document -Wdouble-promotion.
11278 * c-typeck.c (convert_arguments): Check for implicit conversions
11279 from float to double.
11280 (do_warn_double_promotion): New function.
11281 (build_conditional_expr): Use it.
11282 (build_binary_op): Likewise.
11284 2010-09-05 Richard Guenther <rguenther@suse.de>
11286 PR tree-optimization/45535
11287 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
11288 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
11290 (indirect_refs_may_alias_p): Likewise.
11292 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
11294 * config/sh/sh.c (sh_option_override): Make static.
11295 Adjust comments. Declare.
11296 (sh_function_value_regno_p): Likewise.
11297 (sh_register_move_cost): Modify the arguments, make static.
11298 Adjust comments. Declare.
11299 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
11300 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11301 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
11302 REGISTER_MOVE_COST): Delete.
11303 * config/sh/sh-protos.h (sh_override_options): Delete.
11304 (sh_register_move_cost): Delete.
11305 (sh_function_value_regno_p): Delete.
11307 2010-09-04 Anatoly Sokolov <aesok@post.ru>
11309 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
11310 m32r_function_value_regno_p): New functions.
11311 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11312 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
11313 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
11314 FUNCTION_VALUE_REGNO_P): Remove.
11316 2010-09-04 Jan Hubicka <jh@suse.cz>
11318 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
11319 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
11320 fold_read_from_constant_string.
11322 * gimple.h (canonicalize_constructor_val): Declare.
11323 * gimple-fold.c (canonicalize_constructor_val): New function.
11324 (get_symbol_constant_value):Use it.
11325 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11327 2010-09-04 Jan Hubicka <jh@suse.cz>
11329 * tree-switch-conversion.c (build_one_array): Set constructor to be
11331 * varpool.c (varpool_finalize_decl): Compute const_value_known.
11333 2010-09-04 Richard Guenther <rguenther@suse.de>
11336 * tree-flow.h (force_gimple_operand_1): Declare.
11337 (force_gimple_operand_gsi_1): Likewise.
11338 * gimplify.c (force_gimple_operand_1): New worker taking a
11339 gimple predicate for ...
11340 (force_gimple_operand): ... which now wraps it.
11341 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
11342 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
11344 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
11345 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
11346 (create_mem_ref): Likewise.
11348 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
11350 * config/i386/predicates.md (sse_reg_operand): New predicate.
11351 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
11352 predicate for operand 1.
11353 (XFmode push splitter): Use fp_register_operand predicate
11355 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
11356 (SF-DF float_extend push splitter): Add reload_completed insn
11358 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
11359 MODEF mode macro. Add reload_completed insn predicate.
11361 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
11363 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
11364 (struct df_extract_ref): Remove.
11365 (union df_ref_d): Remove extract_ref member.
11366 (df_ref_create): Remove last three arguments.
11367 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
11368 * df-scan.c (df_ref_record): Remove last three arguments, do not
11369 pass them to df_ref_create_structure.
11370 (df_uses_record): Remove first and last three arguments. Replace
11371 first argument with DF_REF_REGULAR, adjust calls to remove the
11372 width, offset and mode. Always call recursively on the second
11373 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
11374 (df_ref_create_structure): Remove first argument.
11375 (struct df_scan_problem_data): Remove ref_extract_pool.
11376 (df_scan_free_internal): Do not free it.
11377 (df_scan_alloc): Do not allocate it.
11378 (df_ref_create): Remove last three arguments, do not pass them to
11379 df_ref_create_structure.
11380 (df_free_ref): Remove DF_REF_EXTRACT case.
11381 (df_notes_rescan): Adjust call to df_uses_record.
11382 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
11383 Remove DF_REF_EXTRACT case.
11384 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
11385 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
11386 and SUBREG definitions.
11387 (df_get_conditional_uses): Remove references to width/offset/mode,
11388 adjust call to df_ref_create_structure.
11389 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11390 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
11391 calls to df_uses_record and df_ref_record.
11392 * fwprop.c (update_df): Remove references to width/offset/mode,
11393 adjust call to df_ref_create.
11395 2010-09-03 Jan Hubicka <jh@suse.cz>
11397 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
11398 (build_cdtor_fns): Update use of build_cdtor.
11400 2010-09-03 Joseph Myers <joseph@codesourcery.com>
11402 * doc/options.texi (SeparateAlias): Document.
11403 * opt-functions.awk (switch_flags): Handle SeparateAlias.
11404 * opth-gen.awk: Generate enumeration names for options marked
11405 SeparateAlias, but not for those marked Ignore.
11406 * opts-common.c (generate_canonical_option): Don't output separate
11407 argument for options marked CL_SEPARATE_ALIAS.
11408 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
11409 * opts.h (CL_SEPARATE_ALIAS): New.
11410 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11411 CL_COMMON): Adjust definitions.
11412 * config/i386/darwin.opt, config/mips/sde.opt: New.
11413 * common.opt (fdump-final-insns): New.
11414 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11416 (mips*-sde-elf*): Add mips/sde.opt.
11417 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
11418 -mno-data-in-code and -mcode-xonly here.
11419 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
11420 * gcc.c (option_map): Add "j" to --dump entry.
11421 (translate_options): Don't translate -d to -foutput-class-dir= here.
11423 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
11425 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
11427 (compute_all_dependences): Same.
11428 (create_rdg_edge_for_ddr): Same.
11429 * tree-data-ref.h (DR_IS_WRITE): New.
11430 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
11431 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
11432 (write_memrefs_written_at_least_once): Same.
11433 * tree-predcom.c (suitable_component_p): Same.
11434 (determine_roots_comp): Same.
11435 (execute_load_motion): Same.
11436 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
11437 (vect_enhance_data_refs_alignment): Same.
11438 (vect_analyze_group_access): Same.
11440 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
11443 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
11444 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
11446 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
11448 * dwarf2out.c (file scope): Remove #if0'd code.
11449 (gen_subprogram_die): Same.
11451 2010-09-03 Jakub Jelinek <jakub@redhat.com>
11453 PR middle-end/45484
11454 * dwarf2out.c (flush_queued_reg_saves): Rename to...
11455 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
11456 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
11457 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
11458 * config/i386/i386.c (output_set_got): Call it.
11460 2010-09-03 Michael Matz <matz@suse.de>
11462 PR middle-end/45415
11463 * tree-sra.c (sra_modify_assign): If we modify the statement,
11466 * tree-ssa.c (verify_ssa): Check number of operands and links
11467 per statement to agree.
11469 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
11470 Iain Sandoe <iains@gcc.gnu.org>
11473 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
11474 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
11475 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11477 2010-09-03 Richard Guenther <rguenther@suse.de>
11479 * lto-streamer-out.c (output_function): Output function
11480 start and end loci.
11481 * lto-streamer-in.c (input_function): Input function start
11484 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11486 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
11487 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
11488 * configure: Regenerate.
11489 * aclocal.m4: Regenerate.
11491 2010-09-03 Jan Hubicka <jh@suse.cz>
11494 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
11495 on functions/variables in other partition.
11497 2010-09-03 Jan Hubicka <jh@suse.cz>
11499 * cgraph.h (struct varpool_node): Add const_value_known.
11500 (varpool_decide_const_value_known): Declare.
11501 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
11502 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
11503 (input_varpool_node): Restore const_value_known.
11504 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
11505 initializer folding.
11506 * ipa.c (ipa_discover_readonly_nonaddressable_var,
11507 function_and_variable_visibility): Compute const_value_known.
11508 * gimple-fold.c (get_symbol_constant_value): Use varpool for
11509 initializer folding.
11510 * varpool.c (varpool_decide_const_value_known): New function.
11512 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
11514 * config/i386/i386.md: Remove empty preparation statements
11517 2010-09-03 Jan Hubicka <jh@suse.cz>
11519 * passes.c (rest_of_decl_compilation): Do not add local vars into
11521 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
11522 static or extern vars are in varpool.
11523 (varpool_finalize_decl): Sanity check that only static vars are
11526 2010-09-03 Jakub Jelinek <jakub@redhat.com>
11529 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
11530 not just generic vectors with BLKmode.
11532 2010-09-03 Richard Guenther <rguenther@suse.de>
11534 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
11535 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
11536 * tree.h (TMR_SYMBOL): Remove.
11537 (TMR_BASE, TMR_OFFSET): Adjust.
11539 * alias.c (ao_ref_from_mem): Use TMR_BASE.
11540 * builtins.c (get_object_alignment): Merge TMR_BASE and
11541 TMR_SYMBOL handling.
11542 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
11543 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
11544 handling. Also allow TARGET_MEM_REF as base address.
11545 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
11546 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
11547 base. Gimplify TMR_INDEX2.
11548 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
11549 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11550 (get_addr_base_and_unit_offset): Likewise.
11551 * tree-eh.c (tree_could_trap_p): Likewise.
11552 * tree-pretty-print.c (dump_generic_node): Likewise.
11553 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
11554 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
11556 (get_address_description): Reconstruct addres description
11557 from merged TMR_BASE and TMR_INDEX2.
11558 (maybe_fold_tmr): Fold propagated addresses.
11559 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
11560 MEM_REF and TARGET_MEM_REF paths.
11561 (indirect_refs_may_alias_p): Likewise.
11562 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
11563 instead of TMR_SYMBOL.
11564 * tree-ssa-operands.c (get_tmr_operands): Simplify.
11565 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
11566 according to changes ...
11567 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
11568 Split TARGET_MEM_REF into two fields plus the base.
11569 * tree.c (mem_ref_offset): Simplify.
11570 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
11571 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
11572 Strip NOPs when folding MEM_REF addresses.
11573 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
11574 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
11575 (fold_gimple_assign): ... not here.
11577 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
11579 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
11580 * config/mips/mips.c (mips_shift_truncation_mask): New function.
11581 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11583 2010-09-02 Richard Henderson <rth@redhat.com>
11585 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
11586 instead of readelf in the test.
11587 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
11588 in the .debug_frame section for coff targets.
11589 * configure: Rebuild.
11591 2010-09-02 Anatoly Sokolov <aesok@post.ru>
11593 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
11594 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
11595 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11596 (m32c_class_likely_spilled_p): Make static. Change argument type to
11597 reg_class_t. Change result type to bool.
11599 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11601 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
11602 to convert (double)(long) into a single FRIZ instruction or not
11603 when -ffast-math is used.
11605 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
11606 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
11607 or FRIZ instruction if -ffast-math.
11608 * config/rs6000/rs6000.md (friz): Ditto.
11610 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
11612 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11614 * opth-gen.awk (quote, comma): Remove unused variables.
11616 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
11618 * arm.c (arm_override_options): Correct fall-back code to use
11619 SUBTARGET_CPU_DEFAULT.
11621 2010-09-02 Julian Brown <julian@codesourcery.com>
11623 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
11625 (vcond<mode>, vcondu<mode>): New expanders.
11626 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
11627 comparisons with zero.
11628 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
11629 * config/arm/constraints.md (Dz): New constraint.
11631 2010-09-02 Anatoly Sokolov <aesok@post.ru>
11633 * target.def (class_likely_spilled_p): New hook.
11634 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
11635 * doc/tm.texi: Regenerate.
11636 * targhooks.c (default_class_likely_spilled_p): New function.
11637 * targhooks.h (default_class_likely_spilled_p): Declare.
11638 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
11639 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
11640 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
11641 Use fixed_reg_set instead of fixed_regs.
11642 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11643 * calls.c (avoid_likely_spilled_reg): Ditto.
11644 * ira-conflicts.c (ira_build_conflicts): Ditto.
11645 * ira.c (update_equiv_regs): Ditto.
11646 * mode-switching.c (create_pre_exit): Ditto.
11647 * regmove.c (find_matches): Ditto.
11648 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11649 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
11650 (small_register_class_p): New inline function.
11651 (push_secondary_reload, find_reusable_reload, find_reloads): Use
11652 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
11654 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
11655 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
11656 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11658 2010-09-02 Richard Guenther <rguenther@suse.de>
11660 PR tree-optimization/44937
11661 PR tree-optimization/45412
11662 * ipa-split.c (split_function): Properly remove PHI nodes.
11664 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11666 * opts.h (struct cl_option): Add warn_message field.
11667 (struct cl_decoded_option): Add warn_message field.
11668 * doc/options.texi (Ignore, Warn): Document.
11669 * opt-functions.awk (needs_state_p): Don't consider aliases or
11670 ignored options to need state saved.
11671 * optc-gen.awk: Handle Warn and Ignore.
11672 * opth-gen.awk: Output OPT_SPECIAL_ignore.
11673 * opts-common.c (decode_cmdline_option): Set warn_message field.
11674 Handle ignored options.
11675 (decode_cmdline_options_to_array, generate_option,
11676 generate_option_input_file): Set warn_message field.
11677 (read_cmdline_option): Generate warnings from warn_message field.
11678 Handle ignored options.
11679 * common.opt (Wunreachable-code, fargument-alias,
11680 fargument-noalias, fargument-noalias-global,
11681 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
11682 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
11683 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
11684 ftree-salias): Mark Ignore.
11685 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
11686 -mintel-syntax and -mno-intel-syntax here.
11687 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
11689 * opts.c (common_handle_option): Don't handle options marked as
11691 (enable_warning_as_error): Handle ignored options.
11693 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11696 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
11697 alias_target fields.
11698 * opt-functions.awk (opt_sanitized_name): Don't handle
11699 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
11700 * optc-gen.awk: Generate alias fields.
11701 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
11702 Don't generate such constants for aliases.
11703 * opts-common.c (generate_canonical_option): New.
11704 (decode_cmdline_option): Handle aliases. Use
11705 generate_canonical_option for known options instead of copying the
11707 * doc/options.texi (Alias): Document.
11708 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
11709 fstack-check, specs): Mark as aliases.
11710 * gcc.c (driver_handle_option): Canonicalize -L options to joined
11712 (driver_handle_option): Don't handle OPT_specs.
11713 * opts.c (common_handle_option): Don't handle options marked as
11715 (enable_warning_as_error): Handle aliases.
11716 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
11717 OPT_Wlarger_than_eq.
11718 * tree-optimize.c (tree_rest_of_compilation): Use
11719 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
11721 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
11723 * config/i386/i386.md (nonmemory_operand): New mode attribute.
11724 (push memory peephole2): Macroize peepholes using SWI mode iterator.
11725 (move immediate to memory peephole2): Macroize peepholes using
11726 SWI124 mode iterator.
11727 (non-pairable NOT peephole2): Macroize peepholes using SWI124
11729 (simple lea add peephole2): Macroize peepholes using SWI48
11731 (simple lea mult peephole2): Ditto.
11732 (imul by 3,5,9 to lea peephole2): Ditto.
11733 (mov $-1, reg peephole2): Macroize peepholes using SWI248
11735 (imul $32bit_imm,mem,reg peephole2): Ditto.
11736 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
11738 2010-09-02 Ian Bolton <ian.bolton@arm.com>
11740 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
11742 2010-09-02 Olivier Hainque <hainque@adacore.com>
11744 PR middle-end/44763
11745 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
11746 (allocno_priority_compare_func): Use it instead of a straight
11747 difference computation over priorities.
11749 2010-09-02 Andi Kleen <ak@linux.intel.com>
11751 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
11753 2010-09-02 Ira Rosen <irar@il.ibm.com>
11755 * tree-vectorizer.h (get_later_stmt): New function.
11756 (vect_analyze_data_ref_dependences): Add argument.
11757 * tree-vect-loop.c (vect_analyze_loop): Update call to
11758 vect_analyze_data_ref_dependences.
11759 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
11761 (vect_analyze_data_ref_dependence): Add argument for basic block
11762 dependencies. Check dependencies in basic block vectorization.
11763 (vect_analyze_data_ref_dependences): Add argument and update call to
11764 vect_analyze_data_ref_dependences.
11765 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
11766 (vect_bb_vectorizable_with_dependencies): New.
11767 (vect_slp_analyze_bb): Check dependencies in basic block.
11768 (vect_schedule_slp_instance): Insert stores before the last store in
11771 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
11774 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
11775 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11777 2010-09-01 Jakub Jelinek <jakub@redhat.com>
11779 PR middle-end/45458
11780 * bb-reorder.c (add_labels_and_missing_jumps): Treat
11781 bbs ending with throwing insns like blocks ending with a call.
11782 (fix_up_fall_thru_edges): Likewise.
11784 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
11786 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
11787 (m32c_function_arg_advance): Delete.
11788 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11789 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
11790 comments. Take a const_tree and a bool. Declare.
11791 (m32c_function_arg_advance): Likewise.
11792 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11794 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11797 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
11798 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
11799 * config/i386/mingw32.h: ... here.
11801 2010-09-01 Andi Kleen <ak@linux.intel.com>
11804 * lto-streamer-in.c (lto_input_ts_target_option): Add.
11805 (lto_input_tree_pointers): Call lto_input_ts_target_option.
11806 * lto-streamer-out (lto_output_ts_target_option): Add.
11807 (lto_output_tree_pointers): Call lto_output_ts_target_option.
11809 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
11812 * config/i386/cygwin.h: Change order of specified import libraries.
11813 * config/i386/mingw32.h: Likewise.
11814 * config/i386/t-cygwin: Likewise.
11815 * config/i386/t-mingw32: Likewise.
11816 * config/i386/t-mingw-w32: Likewise.
11817 * config/i386/t-mingw-w64: Likewise.
11819 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11821 * config/arm/neon-schedgen.ml (core): New type.
11822 (allCores): List of supported cores.
11823 (availability_table): Add supported cores.
11824 (collate_bypasses): Accept core as a parameter.
11825 (worst_case_latencies_and_bypasses): Accept core as a parameter.
11826 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
11827 and coreStr to get tune attribute and prefix for functional units.
11828 (emit_bypasses): Accept core name and use it.
11829 (calculate_per_core_availability_table): New.
11830 (filter_core): New.
11831 (calculate_core_availability_table): New.
11832 (main): Use calculate_core_availablity_table.
11833 * config/arm/cortex-a8-neon.md: Update copyright year.
11834 Regenerated from ml file and merged in.
11835 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
11836 cortex_a8_neon_mrc.
11838 2010-09-01 Ian Bolton <ian.bolton@arm.com>
11840 * Makefile.in (tree-switch-conversion.o): Update dependencies.
11842 2010-09-01 Richard Guenther <rguenther@suse.de>
11844 * alias.c (ao_ref_from_mem): Adjust.
11845 * builtins.c (get_object_alignment): Likewise.
11846 * cfgexpand.c (expand_debug_expr): Likewise.
11847 * gimple.c (get_base_address): Likewise.
11848 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11849 (get_addr_base_and_unit_offset): Likewise. Fix for
11850 both TMR_SYMBOL and TMR_BASE being set.
11851 * tree-eh.c (tree_could_trap_p): Likewise.
11852 * gimplify.c (gimplify_expr): Do not attempt to gimplify
11853 TMR_SYMBOL. Always gimplify TMR_BASE.
11854 * tree-cfg.c (verify_types_in_gimple_reference): Verify
11855 TMR_BASE if there is a TMR_SYMBOL.
11856 * tree-pretty-print.c (dump_generic_node): Adjust.
11857 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
11858 (tree_mem_ref_addr): Likewise.
11859 (create_mem_ref_raw): Likewise.
11860 (move_fixed_address_to_symbol): Likewise.
11861 (create_mem_ref): Likewise.
11862 (dump_mem_address): Likewise.
11863 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
11864 Fix for both TMR_SYMBOL and TMR_BASE being set.
11865 (indirect_refs_may_alias_p): Likewise.
11866 * tree-ssa-operands.c (get_tmr_operands): Adjust.
11867 * tree.def (TARGET_MEM_REF): Adjust documentation.
11869 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11871 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
11872 Rename from X86_TUNE_ADD_ESP_4.
11873 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
11874 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
11875 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
11876 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
11877 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
11878 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
11879 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
11880 * config/i386/i386.c (initial_ix86_tune_features)
11881 <X86_TUNE_SINGLE_POP>: Invert members.
11882 <X86_TUNE_DOUBLE_POP>: Ditto.
11883 <X86_TUNE_SINGLE_PUSH>: Ditto.
11884 <X86_TUNE_DOUBLE_PUSH>: Ditto.
11885 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
11886 No longer exported.
11887 (push peephole2 patterns): Macroize peepholes using P mode iterator.
11888 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
11889 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
11890 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
11892 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
11894 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
11895 a volatile LHS if the constructor has only one element.
11897 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
11900 * tree.c (stdarg_p): Make fntype parameter const.
11901 * tree.h (stdarg_p): Likewise.
11902 (function_args_iterator): Remove unused fntype field.
11903 (function_args_iter_init): Do not initialize fntype
11904 field. Make fntype parameter const.
11906 2010-09-01 Richard Guenther <rguenther@suse.de>
11908 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
11910 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
11911 (execute_vrp): Compute number of iteration estimates.
11912 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
11913 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
11914 * tree-data-ref.c (estimated_loop_iterations): Adjust.
11915 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
11916 Infer loop bounds from undefined behavior based on a new parameter.
11917 (estimate_numbers_of_iterations): Likewise.
11918 (scev_probably_wraps_p): Adjust.
11919 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
11921 2010-09-01 Nick Clifton <nickc@redhat.com>
11923 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
11925 (xstormy16_legitimate_address_p): Use true and false instead of 1
11927 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
11928 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
11930 (xstormy16_expand_call): Fix comment at start of function.
11932 2010-09-01 Nick Clifton <nickc@redhat.com>
11934 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
11935 when pushing accumulator register.
11936 (rx_get_stack_layout): Always save call clobbered registers inside
11937 interrupt handlers.
11938 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
11940 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11942 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
11943 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11945 * libgcc-std.ver (GCC_4.6.0): Define version.
11947 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
11949 * tree-nested.c (convert_all_function_calls): Iterate until after the
11950 sum of static chains in the nest doesn't change.
11952 2010-08-31 Anatoly Sokolov <aesok@post.ru>
11954 * config/m32c/m32c.c (classes_intersect): Remove.
11955 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
11956 reg_classes_intersect_p instead of classes_intersect.
11957 (class_can_hold_mode): Change arguments type from enum reg_class to
11958 reg_class_t. Use reg_class_contents instead of class_contents.
11959 (m32c_register_move_cost): Make static. Change arguments type from
11960 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
11961 classes_intersect. Use reg_class_contents instead of class_contents.
11962 (m32c_memory_move_cost): Make static. Change arguments type from
11963 enum reg_class to reg_class_t.
11964 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11965 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11966 * config/m32c/m32c-protos.h (m32c_register_move_cost,
11967 m32c_memory_move_cost): Remove.
11969 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11971 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
11972 (arm_function_arg): Delete.
11973 (arm_needs_doubleword_align): Take a const_tree.
11974 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11975 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
11976 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
11977 (arm_function_arg): Make static. Take a const_tree and a bool.
11978 (arm_function_arg_advance): Likewise.
11979 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11981 2010-08-31 Andi Kleen <ak@linux.intel.com>
11983 * common.opt (fwhopr=): Update for -fwhopr=jobserver
11984 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
11985 * lto-wrapper.c (run_gcc): Add jobserver mode.
11986 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
11989 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
11991 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
11993 (*popdi1_epilogue): Ditto.
11994 (*popsi1_epilogue): Ditto.
11995 (popsi, popdi peephole2 patterns): Update peepholes for changed
11996 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
11998 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
11999 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
12001 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
12002 (override_options): Do not initialize removed ix86_gen_pop1.
12003 (gen_pop): New static function.
12004 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
12005 (release_scratch_register_on_entry): Ditto.
12006 (ix86_restore_reg_using_pop): Ditto.
12007 (ix86_expand_epilogue): Ditto.
12009 2010-08-31 Jakub Jelinek <jakub@redhat.com>
12011 PR middle-end/45461
12012 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
12014 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12016 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
12019 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12021 * doc/extend.texi: Fix documentation of the return value of
12022 __builtin_choose_expr.
12024 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12026 * config/v850/v850-protos.h (function_arg): Delete.
12027 * config/v850/v850.h (FUNCTION_ARG): Delete.
12028 (FUNCTION_ARG_ADVANCE): Move code to...
12029 * config/v850/v850.c (v850_function_arg_advance): ...here.
12030 (v850_function_arg): Make static. Take a const_tree and a bool.
12031 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12033 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12035 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
12037 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12039 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
12041 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12043 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12045 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12047 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
12049 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12050 * config/rx/rx.c (rx_function_arg_size): Make static.
12051 (rx_function_arg): Likewise.
12052 (rx_function_arg_advance): New function.
12053 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12055 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
12057 * config/arm/arm.c (arm_override_options): Remove superfluous test.
12060 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
12062 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
12063 (dwarf2out_decl) <CONST_DECL>: Likewise.
12065 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
12067 Stack usage support
12068 * common.opt (-fstack-usage): New option.
12069 * doc/invoke.texi (Debugging options): Document it.
12070 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
12071 allocate_dynamic_stack_space.
12072 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
12073 and propagate it to allocate_dynamic_stack_space.
12074 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
12075 * calls.c (initialize_argument_information): Pass TRUE as 4th
12076 argument to allocate_dynamic_stack_space.
12077 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
12078 to 1 when pushing a variable-sized argument onto the stack. Pass
12079 TRUE as 4th argument to allocate_dynamic_stack_space.
12080 Update current_function_pushed_stack_size.
12081 (emit_library_call_value_1): Likewise.
12082 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
12083 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
12084 attempt to find an upper bound. Remove redundant code for the
12085 SETJMP_VIA_SAVE_AREA case.
12086 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
12087 * function.h (struct stack_usage): New structure.
12088 (current_function_static_stack_size): New macro.
12089 (current_function_dynamic_stack_size): Likewise.
12090 (current_function_pushed_stack_size): Likewise.
12091 (current_function_dynamic_alloc_count): Likewise.
12092 (current_function_has_unbounded_dynamic_stack_size): Likewise.
12093 (current_function_allocates_dynamic_stack_space): Likewise.
12094 (struct function): Add new field 'su'.
12095 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
12096 add the value of the dynamic offset to the dynamic stack usage.
12097 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
12098 for variable-sized objects.
12099 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
12100 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
12101 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
12102 BUILT_IN_ALLOCA for variable-sized objects.
12103 * output.h (output_stack_usage): Declare.
12104 * toplev.c (stack_usage_file): New file pointer.
12105 (output_stack_usage): New function.
12106 (open_auxiliary_file): Likewise.
12107 (lang_dependent_init): Open file if flag_stack_usage is set.
12108 (finalize): Close file if stack_usage_file is not null.
12109 * tree.h (ALLOCA_FOR_VAR_P): New macro.
12110 * config/alpha/alpha.c (compute_frame_size): New function.
12111 (alpha_expand_prologue): Use it.
12112 (alpha_start_function): Likewise.
12113 (alpha_expand_epilogue): Likewise. Set stack usage info.
12114 * config/i386/i386.c (ix86_expand_prologue): Likewise.
12115 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12116 * config/mips/mips.c (mips_expand_prologue): Likewise.
12117 * config/pa/pa.c (hppa_expand_prologue): Likewise.
12118 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12119 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12121 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
12123 PR tree-optimization/45427
12124 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
12125 Handle the case that the exit is never taken correctly.
12126 (number_of_iterations_ne): Pass exit_must_be_taken to
12127 number_of_iterations_ne_max.
12129 2010-08-30 Catherine Moore <clm@codesourcery.com>
12131 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
12132 Infer -mdspr2 for the the 74K.
12134 2010-08-30 Jakub Jelinek <jakub@redhat.com>
12137 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
12139 PR middle-end/45423
12140 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
12141 and TRUTH_{AND,OR,XOR}_EXPR.
12142 * c-parser.c (c_parser_omp_atomic): Handle boolean
12143 {PRE,POST}_{INC,DEC}REMENT.
12145 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
12147 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
12148 (function_arg): Delete.
12149 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12150 (FUNCTION_INCOMING_ARG): Delete.
12151 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
12152 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
12154 (function_arg): Rename to...
12155 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
12157 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
12158 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12159 (TARGET_FUNCTION_INCOMING_ARG): Define.
12161 2010-08-30 Richard Guenther <rguenther@suse.de>
12163 PR tree-optimization/21602
12164 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
12165 using points-to information.
12167 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
12169 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
12171 2010-08-30 Richard Guenther <rguenther@suse.de>
12173 PR tree-optimization/45449
12174 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
12177 2010-08-30 Joseph Myers <joseph@codesourcery.com>
12179 * opts.h (CL_ERR_NEGATIVE): Define.
12180 * opts.c (unknown_option_callback): Don't postpone warnings for
12181 options marked with CL_ERR_NEGATIVE.
12182 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
12183 for negative versions of CL_REJECT_NEGATIVE options.
12185 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
12187 * config/i386/i386.md (zero_extendsidi2_1): Rename from
12188 zero_extendsidi2_32.
12189 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
12190 using SWI12 mode iterator.
12191 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
12192 to define_insn_and_split pattern.
12193 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
12194 using SWI24 mode iterator.
12195 (*zero_extendqi<mode>2_and): Macroize insn from
12196 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
12197 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
12198 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
12199 SWI24 mode iterator.
12200 (*zero_extendqi<mode>2_movzbl): Ditto from
12201 *zero_extendqi{hi,si}2_movzbl.
12202 (extendsidi2_1): Rename from extendsidi2_32.
12203 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
12204 SWI12 mode iterator.
12206 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
12208 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
12209 general purpose registers.
12210 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
12211 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
12212 with general purpose registers and memory operands. Add associated
12213 CCImode post-reload splitter.
12214 * config/ia64/div.md: Change BImode to CCImode throughout.
12216 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
12218 * config/ia64/ia64.md (cstorebi4): Fix thinko.
12220 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
12222 * config/picochip/picochip.c (reorder_var_tracking_notes): This
12223 function was dropping debug insns which caused PR45299.
12225 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
12227 * config/i386/sse.md (extsuffix): New code attribute.
12228 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
12229 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
12230 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
12231 and sse4_1_zero_extendv4qiv4si2.
12232 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
12233 and sse4_1_zero_extendv2qiv2di2.
12234 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
12235 and sse4_1_zero_extendv4hiv4si2.
12236 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
12237 and sse4_1_zero_extendv2hiv2di2.
12238 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
12239 and sse4_1_zero_extendv2siv2di2
12241 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
12242 using any_extend code iterator.
12243 (*avx_<s>mulv8hi3_highpart): Macroize insn from
12244 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
12245 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
12247 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
12248 gen_sse4_1_sign_extend* functions.
12249 (struct builtin_description bdesc_args): Ditto.
12251 2010-08-27 Xinliang David Li <davidxl@google.com>
12254 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
12255 (iv_ca_set_no_cp): Update used inv expr count.
12256 (iv_ca_set_cp): Ditto.
12257 (iv_ca_new): Initialize new member.
12258 (iv_ca_free): Free memory.
12260 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12262 * config/sh/sh-protos.h (sh_function_arg): Delete.
12263 (sh_function_arg_advance): Delete.
12264 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12265 (PASS_IN_REG_P): Eliminate cast.
12266 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
12267 const_tree and a bool.
12268 (sh_function_arg): Likewise.
12269 (sh_output_mi_thunk): Call sh_function_arg_advance) and
12271 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12273 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
12274 Kaz Kojima <kkojima@gcc.gnu.org>
12276 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
12278 (sh_expand_epilogue): Likewise.
12279 * config/sh/sh.md (movml_push_banked): New insn.
12280 (movml_pop_banked): Likewise.
12282 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
12284 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
12285 gen_regexp_oneof, gen_regexp_sequence): Use the string found
12286 in vector element 0 rather than the original string when there's
12288 (gen_regexp): Remove extra semicolon.
12290 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
12291 thumb2_movsf_vfp): Set attribute "insn".
12292 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
12293 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
12294 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
12295 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
12296 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
12297 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
12298 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
12299 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
12300 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
12301 if_not_arith, if_arith_not, cond_move_not): Likewise.
12303 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12305 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
12307 (rs6000_allocate_stack_temp): Ditto.
12308 (rs6000_expand_convert_si_to_sfdf): Ditto.
12310 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
12311 line. Update the options set if power6 or power7 server/embedded
12312 type options are used. If we give a warning for no vsx under
12313 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
12314 (rs6000_allocate_stack_temp): New function to allocate a stack
12315 tempoary and adjust the address so it meets either REG+OFFSET or
12316 REG+REG addressing requirements.
12317 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
12318 that they can be used with the LFIWAX/LFIWZX instrucitons.
12319 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
12320 converting signed/unsigned SImode to either SFmode/DFmode.
12322 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
12323 whether certain instructions can be generated.
12324 (TARGET_FCTIDZ): Ditto.
12325 (TARGET_STFIWX): Ditto.
12326 (TARGET_LFIWAX): Ditto.
12327 (TARGET_LFIWZX): Ditto.
12328 (TARGET_FCFIDS): Ditto.
12329 (TARGET_FCFIDU): Ditto.
12330 (TARGET_FCFIDUS): Ditto.
12331 (TARGET_FCTIDUZ): Ditto.
12332 (TARGET_FCTIWUZ): Ditto.
12334 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
12335 (UNSPEC_FCTID): Ditto.
12336 (UNSPEC_LFIWAX): Ditto.
12337 (UNSPEC_LFIWZX): Ditto.
12338 (UNSPEC_FCTIWUZ): Ditto.
12339 (rreg): Use correct constraints.
12340 (SI_CONVERT_FP): New mode attribute for floating point conversion
12342 (E500_CONVERT): Ditto.
12343 (lfiwax): New insns for converting from integer to floating point
12344 utilizing newer instructions. Attempt to optimize conversions
12345 that come from memory so that we don't load the value into a GPR,
12346 spill it to the stack and reload it into a FPR.
12347 (floatsi<mode>2_lfiwax): Ditto.
12348 (floatsi<mode>2_lfiwax_mem): Ditto.
12349 (floatsi<mode>2_lfiwax_mem2): Ditto.
12351 (floatunssi<mode>2_lfiwzx): Ditto.
12352 (floatunssi<mode>2_lfiwzx_mem): Ditto.
12353 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
12354 (floatdidf2_mem): Ditto.
12355 (floatunsdidf2_fcfidu): Ditto.
12356 (floatunsdidf2_mem): Ditto.
12357 (floatunsdisf2): Ditto.
12358 (floatunsdisf2_fcfidus): Ditto.
12359 (floatunsdisf2_mem): Ditto.
12360 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
12361 Use FCFID on 32-bit hosts that support it.
12362 (floatsidf2_internal): Ditto.
12363 (floatunssisf2): Ditto.
12364 (floatunssidf2): Ditto.
12365 (floatunssidf2_internal): Ditto.
12366 (floatsisf2): Ditto.
12367 (floatdidf2): Ditto.
12368 (floatdidf2_fpr): Ditto.
12369 (floatunsdidf2): Ditto.
12370 (floatdisf2): Ditto.
12371 (floatdisf2_fcfids): Ditto.
12372 (floatdisf2_internal1): Ditto.
12373 (fixuns_truncsfsi2): Delete, merge into common pattern for both
12374 SF/DF. Add power7 support.
12375 (fix_truncsfsi2): Ditto.
12376 (fixuns_truncdfsi2): Ditto.
12377 (fixuns_truncdfdi2): Ditto.
12378 (fix_truncdfsi2): Ditto.
12379 (fix_truncdfsi2_internal): Ditto.
12380 (fix_truncdfsi2_internal_gfxopt): Ditto.
12381 (fix_truncdfsi2_mfpgpr): Ditto.
12383 (btruncdf2): Ditto.
12384 (btruncdf2_fpr): Ditto.
12385 (btructsf2): Ditto.
12387 (ceildf2_fpr): Ditto.
12390 (floordf2_fpr): Ditto.
12393 (rounddf2_fpr): Ditto.
12395 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
12396 (fix_trunc<mode>di2): Ditto.
12397 (fixuns_trunc<mode>si2): Ditto.
12398 (fixuns_trunc<mode>di2): Ditto.
12399 (fctiwz_<mode>): Ditto.
12400 (btrunc<mode>2): Ditto.
12401 (btrunc<mode>2_fpr): Ditto.
12402 (ceil<mode>2): Ditto.
12403 (ceil<mode>2_fpr): Ditto.
12404 (floor<mode>2): Ditto.
12405 (float<mode>2_fpr): Ditto.
12406 (round<mode>2): Ditto.
12407 (round<mode>2_fpr): Ditto.
12408 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
12409 (fixuns_trunc<mode>si2_stfiwx): Ditto.
12410 (fix_truncdfsi2_internal): Ditto.
12411 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
12412 converted value on stack, loaded into GPR, and then stored into
12413 the final destination.
12414 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
12416 (lrint<mode>di2): New insn, provide the lrint builtin functions.
12417 (ftruncdf2): Delete, unused.
12418 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
12420 * config/rs6000/vsx.md (toplevel): Update copyright year.
12421 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
12424 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
12425 Jeremie Salvucci <jeremie.salvucci@free.fr>
12427 * gengtype.c (output_type_enum): Test the right union member.
12429 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
12432 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
12433 operands for operand 1.
12434 (sse4_1_extendv4qiv4si2): Ditto.
12435 (sse4_1_extendv2qiv2di2): Ditto.
12436 (sse4_1_extendv4hiv4si2): Ditto.
12437 (sse4_1_extendv2hiv2di2): Ditto.
12438 (sse4_1_extendv2siv2di2): Ditto.
12439 (sse4_1_zero_extendv8qiv8hi2): Ditto.
12440 (sse4_1_zero_extendv4qiv4si2): Ditto.
12441 (sse4_1_zero_extendv2qiv2di2): Ditto.
12442 (sse4_1_zero_extendv4hiv4si2): Ditto.
12443 (sse4_1_zero_extendv2hiv2di2): Ditto.
12444 (sse4_1_zero_extendv2siv2di2): Ditto.
12445 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
12446 (*sse4_1_extendv4qiv4si2): Ditto.
12447 (*sse4_1_extendv2qiv2di2): Ditto.
12448 (*sse4_1_extendv4hiv4si2): Ditto.
12449 (*sse4_1_extendv2hiv2di2): Ditto.
12450 (*sse4_1_extendv2siv2di2): Ditto.
12451 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
12452 (*sse4_1_zero_extendv4qiv4si2): Ditto.
12453 (*sse4_1_zero_extendv2qiv2di2): Ditto.
12454 (*sse4_1_zero_extendv4hiv4si2): Ditto.
12455 (*sse4_1_zero_extendv2hiv2di2): Ditto.
12456 (*sse4_1_zero_extendv2siv2di2): Ditto.
12458 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12460 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
12461 (mips_function_arg): Delete.
12462 (mips_function_arg_boundary): Take a const_tree.
12463 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
12464 (mips_arg_info): Likewise.
12465 (mips_setup_incoming_varargs): Call mips_function_arg_advance
12466 instead of FUNCTION_ARG_ADVANCE.
12467 (mips_function_arg_advance): Adjust prototype. Make static.
12468 (mips_function_arg): Likewise.
12469 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12470 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
12472 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12474 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12475 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
12476 (function_arg): Delete.
12477 (function_arg_boundary): Take a const_tree.
12478 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
12479 (rs6000_spe_function_arg): Likewise.
12480 (rs6000_parm_start): Likewise.
12481 (rs6000_arg_size): Likewise.
12482 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
12483 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
12484 (rs6000_mixed_function_arg): Likewise.
12485 (function_arg): Rename to...
12486 (rs6000_function_arg): ...this.
12487 (function_arg_advance): Rename to...
12488 (rs6000_function_arg_advance_1): ...this
12489 (rs6000_function_arg_advance): New function. Call it.
12490 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
12491 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
12492 (rs6000_function_value): Likewise.
12493 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12495 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12497 * config/arm/arm.md (enabled): Test the value of arch_enabled
12498 rather than just using it.
12500 2010-08-27 Olivier Hainque <hainque@adacore.com>
12501 Eric Botcazou <ebotcazou@adacore.com>
12503 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
12504 cover all the possible offsets from this base.
12505 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
12507 2010-08-26 Jakub Jelinek <jakub@redhat.com>
12509 PR tree-optimization/44485
12510 * calls.c (flags_from_decl_or_type): For const or pure
12511 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
12512 together with ECF_CONST resp. ECF_PURE.
12513 * builtins.c (expand_builtin): Use flags_from_decl_or_type
12514 instead of querying flags directly.
12515 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
12516 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
12518 2010-08-26 Richard Guenther <rguenther@suse.de>
12520 PR tree-optimization/45255
12521 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
12522 and externals are also invariant.
12524 2010-08-25 Jakub Jelinek <jakub@redhat.com>
12526 PR rtl-optimization/44858
12527 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
12528 newi2pat, make sure they don't affect newpat.
12530 PR rtl-optimization/45400
12531 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
12532 SUBREG_REG if both modes are of MODE_INT class.
12534 2010-08-25 Julian Brown <julian@codesourcery.com>
12536 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
12537 * config/arm/arm.md (generic_sched): No for Cortex-A5.
12538 (generic_vfp): Likewise.
12539 (cortex-a5.md): Include.
12540 * config/arm/cortex-a5.md: New.
12542 2010-08-25 Richard Guenther <rguenther@suse.de>
12544 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
12545 * gimple.c (gimple_get_alias_set): Remove special handling
12548 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
12550 PR middle-end/45355
12551 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
12552 dead_or_set_p when computing i0_feeds_i2_n.
12554 * combine.c (find_split_point): Undo canonicalization of multiply-add
12555 to (minus x (mult)) when it seems likely that this will increase the
12556 chances of a split.
12558 2010-08-25 Richard Guenther <rguenther@suse.de>
12561 * lto-streamer.c (lto_record_common_node): Do not mess with
12562 TYPE_CANONICAL when not in lto.
12563 * gimple.c (gimple_register_type): Likewise.
12565 2010-08-25 Richard Guenther <rguenther@suse.de>
12567 PR tree-optimization/45316
12568 * tree-ssa-pre.c (eliminate): Properly clean EH info.
12570 2010-08-25 Richard Guenther <rguenther@suse.de>
12572 PR tree-optimization/45393
12573 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
12574 and clean EH info. Avoid SSA update.
12575 (execute_cse_sincos): Cleanup the CFG if it has changed.
12577 2010-08-25 Richard Guenther <rguenther@suse.de>
12579 PR middle-end/45379
12580 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
12581 TARGET_MEM_REF in alignment computation.
12583 2010-08-25 Jakub Jelinek <jakub@redhat.com>
12585 PR tree-optimization/45059
12586 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
12587 type conversions from newop{1,2}. Assert t is a comparison and
12588 newop{1,2} after the stripping are gimple vals.
12590 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
12592 * config/arm/iterators.md (VU, SE, V_widen_l): New.
12593 (V_unpack, US): New.
12594 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
12595 (vec_unpack<US>_lo_<mode>): Likewise.
12596 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
12597 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12598 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
12599 (vec_widen_<US>mult_hi_<mode>): Likewise.
12600 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
12601 (neon_vec_<US>mult_hi_<mode>"): Likewise.
12602 (neon_unpack<US>_<mode>): Widening move intermediate step for
12603 vectorizing without -mvectorize-with-neon-quad.
12604 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
12605 for vectorizing without -mvectorize-with-neon-quad.
12606 * config/arm/predicates.md (vect_par_constant_high): Check for
12607 high-half lanes of a vector.
12608 (vect_par_constant_low): Check for low-half lanes of a vector.
12610 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12612 * tree-if-conv.c (struct ifc_dr): New.
12614 (DR_WRITTEN_AT_LEAST_ONCE): New.
12615 (DR_RW_UNCONDITIONALLY): New.
12616 (memref_read_or_written_unconditionally): Use the cached values
12618 (write_memref_written_at_least_once): Same.
12619 (if_convertible_loop_p): Initialize and free DR->aux fields.
12621 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12623 * gimple.c (gimple_could_trap_p_1): Not static anymore.
12624 Pass an extra bool parameter include_mem.
12625 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
12626 (gimple_assign_rhs_could_trap_p): Same.
12627 * gimple.h (gimple_could_trap_p_1): Declared.
12628 * tree-data-ref.h (same_data_refs_base_objects): New.
12629 (same_data_refs): New.
12630 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
12631 (write_memrefs_written_at_least_once): New.
12632 (ifcvt_memrefs_wont_trap): New.
12633 (operations_could_trap): New.
12634 (ifcvt_could_trap_p): New.
12635 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
12636 Gets a vector of data refs.
12637 (if_convertible_stmt_p): Same.
12638 (if_convertible_loop_p_1): New.
12639 (if_convertible_loop_p): Call if_convertible_loop_p_1.
12641 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12643 * common.opt (ftree-loop-if-convert-stores): New flag.
12644 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
12645 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
12646 the created statement before GSI.
12647 (if_convertible_phi_p): Allow virtual phi nodes when
12648 flag_loop_if_convert_stores is set.
12649 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
12650 Do not handle types that do not match is_gimple_reg_type.
12651 Remove loop and bb parameters. Call gimple_could_trap_p instead of
12652 when flag_loop_if_convert_stores is set, as LHS can contain
12654 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
12655 to if_convertible_gimple_assign_stmt_p.
12656 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
12657 (replace_phi_with_cond_gimple_assign_stmt): Renamed
12658 predicate_scalar_phi. Do not handle virtual phi nodes.
12659 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
12660 Call predicate_scalar_phi.
12661 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
12662 just after the labels for flag_loop_if_convert_stores, otherwise
12663 insert the predicate in the end of the BB.
12664 (predicate_mem_writes): New.
12665 (combine_blocks): Call predicate_all_scalar_phis. When
12666 flag_loop_if_convert_stores is set, call predicate_mem_writes.
12667 (tree_if_conversion): Call mark_sym_for_renaming when
12668 flag_loop_if_convert_stores is set.
12669 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
12670 flag_loop_if_convert_stores is set.
12672 2010-08-24 Anatoly Sokolov <aesok@post.ru>
12674 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
12675 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
12676 (pa_function_value): Make static.
12677 (override_options): Rename to...
12678 (pa_option_override): ...this. Make static.
12679 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
12680 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
12681 TARGET_OPTION_OVERRIDE): Define.
12682 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
12683 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
12685 * config/pa/pa-protos.h (override_options): Remove.
12687 2010-08-24 Richard Guenther <rguenther@suse.de>
12689 PR middle-end/45379
12690 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
12691 if addr->index is NULL or zero.
12692 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
12693 TARGET_MEM_REF more properly.
12694 (indirect_ref_may_alias_decl_p): Likewise.
12695 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
12696 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
12698 2010-08-23 Anatoly Sokolov <aesok@post.ru>
12700 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
12701 (m32c_override_options): Rename to...
12702 (m32c_option_override): ...this. Make static.
12703 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
12704 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
12706 * config/m32c/m32c-protos.h (m32c_override_options,
12707 m32c_function_value_regno_p): Remove.
12709 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
12711 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
12712 Fix a typo in a previous commit.
12714 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
12716 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
12717 Pre-initialize innerloop_iters to one.
12719 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
12721 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
12722 existing static function global.
12724 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
12725 is changed to global.
12727 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
12728 may_be_nonaddressable_p on base, and don't collect this reference
12729 if the address of the base could not be taken.
12731 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12733 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
12734 enable the compiler to autovectorize mathmetical functions for
12735 power7 using the Mathematical Acceleration Subsystem library.
12737 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
12738 handle which vector math library we have.
12739 (rs6000_override_options): Add -mveclibabi=mass support.
12740 (rs6000_builtin_vectorized_libmass): New function to handle auto
12741 vectorizing math functions that are in the MASS library.
12742 (rs6000_builtin_vectorized_function): Call it.
12744 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12747 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12750 * gthr-posix.h (__gthread_active_init): Delete.
12751 (__gthread_active_p): Do activity check here.
12752 Don't include errno.h on hppa-hpux. Update comment.
12753 * gthr-posix95.h (__gthread_active_init): Delete.
12754 (__gthread_active_p): Do activity check here.
12755 Don't include errno.h on hppa-hpux. Update comment.
12756 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
12757 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
12758 add -lpthread when -mt or -pthread is specified.
12759 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
12760 (LINK_GCC_C_SEQUENCE_SPEC): Define.
12761 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
12762 (stublib.c, pthread_default_stacksize_np-stub.o,
12763 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
12764 $(T)libgcc_stub.a): Add methods.
12765 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
12766 (stublib.c, pthread_default_stacksize_np-stub.o,
12767 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
12768 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12769 pthread_mutex_unlock): New stubs.
12771 2010-08-22 Joseph Myers <joseph@codesourcery.com>
12773 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
12774 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
12776 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
12777 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
12778 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
12779 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
12780 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
12782 * cppspec.c: Include opts.h.
12783 (lang_specific_driver): Use cl_decoded_option structures.
12784 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
12785 * doc/tm.texi: Regenerate.
12786 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
12787 (driver_handle_option): Allow driver options needing no special
12789 (process_command): Decode options before call to
12790 lang_specific_driver. Pass decoded options to
12791 lang_specific_driver.
12792 * gcc.h (lang_specific_driver): Update prototype.
12793 * gccspec.c: Include opts.h.
12794 (lang_specific_driver): Use cl_decoded_option structures.
12795 * opts-common.c (option_ok_for_language, generate_option,
12796 generate_option_input_file): New.
12797 (decode_cmdline_option): Use option_ok_for_language.
12798 (decode_cmdline_options_to_array): Use generate_option_input_file.
12799 (handle_generated_option): Use generate_option.
12800 * opts.h (generate_option, generate_option_input_file): Declare.
12802 2010-08-22 Anatoly Sokolov <aesok@post.ru>
12804 * config/mips/mips.c (mips_override_options): Rename to...
12805 (mips_option_override): ...this. Make static.
12806 (TARGET_OPTION_OVERRIDE): Define.
12807 (mips_in_small_data_p): Update comment.
12808 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
12809 (FIXED_REGISTERS): Update comment.
12810 * config/mips/mips-protos.h (mips_override_options): Remove.
12812 2010-08-21 Olivier Hainque <hainque@adacore.com>
12814 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
12816 2010-08-21 Olivier Hainque <hainque@adacore.com>
12818 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
12819 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
12821 2010-08-20 Jan Hubicka <jh@suse.cz>
12823 * tree-pass.h (pass_ipa_cdtor_merge): New function.
12824 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
12826 (record_cdtor_fn): Move to ipa.c; do not test for
12828 (build_cdtor): Move to ipa.c; add code avoiding construction
12829 when target have ctors/dtors and there is only one ctor/dtor at given
12831 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
12832 sort; reverse order of constructors.
12833 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
12834 (cgraph_finalize_function): Do not call record_cdtor_fn.
12835 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
12836 (cgraph_build_static_cdtor): Move to ipa.c.
12837 * ipa.c: Include target.h and tree-iterator.h.
12838 (cgraph_build_static_cdtor, static_ctors, static_dtors,
12839 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
12840 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
12841 pass_ipa_cdtor_merge): New.
12842 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
12843 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
12846 2010-08-20 Jan Hubicka <jh@suse.cz>
12850 * cgraph.h (cgraph_only_called_directly_p,
12851 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
12853 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
12855 (cgraph_finalize_function): Static cdtors are reachable.
12856 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
12858 2010-08-20 Jan Hubicka <jh@suse.cz>
12860 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
12862 * lto-streamer-out.c (lto_output): Likewise.
12863 * passes.c (ipa_write_optimization_summaries): Initialize statement
12866 2010-08-20 Olivier Hainque <hainque@adacore.com>
12868 * tree.h (alias_diag_flags): New enum.
12869 (alias_pair): Add an 'emitted_diags' field.
12870 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
12871 (assemble_alias): Initialize emitted_diags of new pairs.
12873 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
12875 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12876 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12877 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12878 (STACK_CHECK_PROTECT): Define.
12879 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
12880 (output_probe_stack_range): Likewise.
12881 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
12882 builtin stack checking is enabled.
12883 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
12884 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12885 (probe_stack_range): New insn.
12887 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
12890 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
12893 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
12896 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12899 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
12900 to cover zero extension into 64-bit register.
12901 (*sse2_pextrw): Likewise.
12902 (*sse4_1_pextrd_zext): New insn.
12904 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
12906 revert r163410, partially revert r163267.
12907 * config/rs6000/darwin.h (LIB_SPEC): Remove.
12908 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
12911 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12913 PR middle-end/44974
12914 * builtins.c (expand_builtin): Don't optimize away
12915 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
12917 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
12919 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
12920 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
12921 alternative 1 of operand 2.
12923 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12924 Paolo Bonzini <bonzini@gnu.org>
12926 * simplify-rtx.c (simplify_unary_operation_1): Optimize
12927 (sign_extend (zero_extend (...)) and
12928 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
12930 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12932 PR rtl-optimization/45353
12933 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
12934 after bb_note is a BARRIER.
12936 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
12938 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
12941 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12942 Michael Matz <matz@suse.de>
12944 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
12946 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12948 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
12949 (ggc_mark_roots): ...here.
12951 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12953 * vec.h (FOR_EACH_VEC_ELT): Define.
12954 * c-decl.c: Use it.
12955 * cfgloop.c: Likewise.
12956 * cfgloopmanip.c: Likewise.
12957 * cgraph.c: Likewise.
12958 * cgraphunit.c: Likewise.
12959 * combine.c: Likewise.
12960 * config/bfin/bfin.c: Likewise.
12961 * config/mips/mips.c: Likewise.
12962 * config/rs6000/rs6000.c: Likewise.
12963 * dbxout.c: Likewise.
12964 * df-scan.c: Likewise.
12965 * dominance.c: Likewise.
12967 * dwarf2out.c: Likewise.
12968 * except.c: Likewise.
12969 * expr.c: Likewise.
12970 * function.c: Likewise.
12971 * gcse.c: Likewise.
12972 * genattr.c: Likewise.
12973 * ggc-common.c: Likewise.
12974 * gimplify.c: Likewise.
12975 * graphite-blocking.c: Likewise.
12976 * graphite-clast-to-gimple.c: Likewise.
12977 * graphite-dependences.c: Likewise.
12978 * graphite-interchange.c: Likewise.
12979 * graphite-poly.c: Likewise.
12980 * graphite-scop-detection.c: Likewise.
12981 * graphite-sese-to-poly.c: Likewise.
12982 * graphite.c: Likewise.
12983 * haifa-sched.c: Likewise.
12984 * ifcvt.c: Likewise.
12985 * implicit-zee.c: Likewise.
12986 * ipa-prop.c: Likewise.
12987 * ipa-struct-reorg.c: Likewise.
12989 * ira-build.c: Likewise.
12990 * ira-color.c: Likewise.
12991 * ira-emit.c: Likewise.
12992 * lambda-code.c: Likewise.
12993 * loop-invariant.c: Likewise.
12994 * loop-unroll.c: Likewise.
12995 * lower-subreg.c: Likewise.
12996 * lto-cgraph.c: Likewise.
12997 * lto-opts.c: Likewise.
12998 * lto-streamer-in.c: Likewise.
12999 * lto-streamer-out.c: Likewise.
13000 * lto-streamer.c: Likewise.
13001 * lto-symtab.c: Likewise.
13002 * matrix-reorg.c: Likewise.
13003 * opts.c: Likewise.
13004 * predict.c: Likewise.
13005 * print-tree.c: Likewise.
13006 * sdbout.c: Likewise.
13007 * sel-sched-dump.c: Likewise.
13008 * sel-sched-ir.c: Likewise.
13009 * sel-sched.c: Likewise.
13010 * sese.c: Likewise.
13011 * stor-layout.c: Likewise.
13012 * tree-cfg.c: Likewise.
13013 * tree-cfgcleanup.c: Likewise.
13014 * tree-chrec.c: Likewise.
13015 * tree-data-ref.c: Likewise.
13016 * tree-emutls.c: Likewise.
13017 * tree-inline.c: Likewise.
13018 * tree-into-ssa.c: Likewise.
13019 * tree-loop-distribution.c: Likewise.
13020 * tree-loop-linear.c: Likewise.
13021 * tree-mudflap.c: Likewise.
13022 * tree-outof-ssa.c: Likewise.
13023 * tree-parloops.c: Likewise.
13024 * tree-predcom.c: Likewise.
13025 * tree-pretty-print.c: Likewise.
13026 * tree-scalar-evolution.c: Likewise.
13027 * tree-ssa-live.c: Likewise.
13028 * tree-ssa-loop-im.c: Likewise.
13029 * tree-ssa-loop-ivcanon.c: Likewise.
13030 * tree-ssa-loop-ivopts.c: Likewise.
13031 * tree-ssa-loop-manip.c: Likewise.
13032 * tree-ssa-loop-niter.c: Likewise.
13033 * tree-ssa-loop-prefetch.c: Likewise.
13034 * tree-ssa-phiprop.c: Likewise.
13035 * tree-ssa-pre.c: Likewise.
13036 * tree-ssa-reassoc.c: Likewise.
13037 * tree-ssa-sccvn.c: Likewise.
13038 * tree-ssa-structalias.c: Likewise.
13039 * tree-ssa.c: Likewise.
13040 * tree-vect-data-refs.c: Likewise.
13041 * tree-vect-loop-manip.c: Likewise.
13042 * tree-vect-loop.c: Likewise.
13043 * tree-vect-patterns.c: Likewise.
13044 * tree-vect-slp.c: Likewise.
13045 * tree-vect-stmts.c: Likewise.
13046 * tree-vrp.c: Likewise.
13047 * tree.c: Likewise.
13048 * value-prof.c: Likewise.
13049 * var-tracking.c: Likewise.
13050 * varasm.c: Likewise.
13051 * vmsdbgout.c: Likewise.
13053 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
13054 Richard Guenther <richard.guenther@gmail.com>
13056 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
13057 copy the src value and return a copy.
13058 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
13059 (C++ Volatiles): Adjust to describe C++ semantics only.
13061 2010-08-20 Joseph Myers <joseph@codesourcery.com>
13063 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
13064 be zero or nonzero.
13065 * doc/tm.texi: Regenerate.
13066 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
13067 * df-scan.c (df_get_exit_block_use_set), reginfo.c
13068 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
13069 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
13070 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
13073 2010-08-20 Olivier Hainque <hainque@adacore.com>
13075 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
13076 an extra nop past a sibling call at the very end.
13078 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13081 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
13084 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13086 * target.def (function_arg, function_incoming_arg): Remove const
13087 qualifier on CUMULATIVE_ARGS parameter.
13088 * targhooks.h (default_function_arg, default_function_incoming_arg):
13090 * targhooks.c (default_function_arg, default_function_incoming_arg):
13092 * config/i386/i386.c (ix86_function_arg): Likewise.
13094 2010-08-19 Jakub Jelinek <jakub@redhat.com>
13097 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
13098 SIGN_EXTENDs or ZERO_EXTENDs.
13100 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13103 * combine.c (combine_validate_cost): New arg I0. All callers changed.
13104 Take its cost into account if nonnull.
13105 (insn_a_feeds_b): New static function.
13106 (combine_instructions): Look for four-insn combinations.
13107 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
13108 them into account when computing all_adjacent and looking for other
13110 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
13111 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
13112 (try_combine): New arg I0. Handle four-insn combinations.
13113 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
13116 2010-08-19 Jason Merrill <jason@redhat.com>
13119 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
13121 (gimplify_modify_expr_rhs): Adjust.
13123 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13125 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
13127 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
13128 * dominance.c (iterate_fix_dominators): Likewise.
13129 * dse.c (set_usage_bits): Likewise.
13130 (set_position_unneeded, record_store): Likewise.
13131 * gimple-fold.c (get_maxval_strlen): Likewise.
13132 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
13133 * ipa-inline.c (update_caller_keys): Likewise.
13134 * ipa-split.c (verify_non_ssa_vars): Likewise.
13135 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
13136 (close_type_exposed_parameter, close_type_full_escape): Likewise.
13137 (close_addressof_down): Likewise.
13138 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
13139 (setup_allocno_left_conflicts_size): Likewise.
13140 (ira_reassign_conflict_allocnos): Likewise.
13141 (ira_reassign_pseudos): Likewise.
13142 * ira-emit.c (change_loop): Likewise.
13143 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
13144 * lto-streamer-out.c (write_symbol): Likewise.
13145 * predict.c (expr_expected_value_1): Likewise.
13146 * regstat.c (regstat_bb_compute_ri): Likewise.
13147 * sel-sched.c (create_block_for_bookkeeping): Likewise.
13148 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
13149 * stmt.c (expand_case): Likewise.
13150 * tree-eh.c (emit_eh_dispatch): Likewise.
13151 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
13152 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
13154 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
13155 (rdg_build_components): Likewise.
13156 * tree-object-size.c (collect_object_sizes_for): Likewise.
13157 * tree-sra.c (convert_callers): Likewise.
13158 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
13159 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
13160 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
13162 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13164 * config/i386/i386.md (*lea_1): Use P mode iterator.
13165 (lea add splitter): Also handle DImode operands.
13166 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
13167 predicate. Do not use ix86_lea_for_add_ok.
13168 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
13169 (lea ashift splitter): Also handle DImode operands.
13170 (DImode lea ashift splitter): Remove splitter.
13172 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13174 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
13175 ix86_binary_operator_ok.
13177 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
13179 PR rtl-optimization/44691
13180 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
13183 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13186 * config/arm/arm.c (arm_output_epilogue): Ensure that return
13187 value of size 1-3 is handled correctly.
13189 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13191 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
13192 type for the conditional has wide enough range.
13194 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13197 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
13198 ix86_binary_operator_ok.
13200 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13202 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
13203 <default>: Swap operands 1 and 2 for alternative 2 to use existing
13204 code to output insn mnemonic. Fix comment.
13205 (*addsi_1_zext): Add r-r-0 alternative 1.
13206 <TYPE_LEA>: Split insn to lea.
13207 <default>: Handle alternative 1.
13208 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
13209 multi-level if_then_else RTX to set "type" attribute.
13210 <default>: Handle alternative 2.
13211 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
13212 Use cond RTX instead of multi-level if_then_else RTX to set
13214 <default>: Handle alternatives 2 and 4.
13215 (lea splitters): Update calls to ix86_lea_for_add_ok.
13217 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
13219 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
13221 2010-08-18 Richard Guenther <rguenther@suse.de>
13223 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
13224 use operand helpers.
13226 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
13228 PR middle-end/45292
13229 * optabs.c (expand_bool_compare_and_swap): Expand pending
13230 pops before trying the optab.
13232 2010-08-18 Yao Qi <yao@codesourcery.com>
13235 * config/arm/arm.c (output_move_double): Fix typo generating
13236 instructions ('ldr'->'str').
13238 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13240 PR rtl-optimization/42575
13241 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
13244 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
13246 * config/arm/arm-protos.h (arm_expand_sync): New.
13247 (arm_output_memory_barrier, arm_output_sync_insn): New.
13248 (arm_sync_loop_insns): New.
13249 * config/arm/arm.c (FL_ARCH7): New.
13250 (FL_FOR_ARCH7): Include FL_ARCH7.
13252 (arm_print_operand): Support %C markup.
13253 (arm_legitimize_sync_memory): New.
13254 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
13255 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
13256 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
13257 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
13258 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
13259 (arm_process_output_sync_insn, arm_output_sync_insn): New.
13260 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
13261 * config/arm/arm.h (struct arm_sync_generator): New.
13262 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
13263 (TARGET_HAVE_MEMORY_BARRIER): New.
13264 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
13265 * config/arm/arm.md: Include sync.md.
13266 (UNSPEC_MEMORY_BARRIER): New.
13267 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
13268 (VUNSPEC_SYNC_OP):New.
13269 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
13270 (sync_result, sync_memory, sync_required_value): New attributes.
13271 (sync_new_value, sync_t1, sync_t2): Likewise.
13272 (sync_release_barrier, sync_op): Likewise.
13273 (length): Add logic to length attribute defintion to call
13274 arm_sync_loop_insns when appropriate.
13275 * config/arm/sync.md: New file.
13277 2010-08-17 Jakub Jelinek <jakub@redhat.com>
13279 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
13280 ENABLE_TREE_CHECKING.
13281 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
13284 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
13286 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
13287 or optimizing for size, always avoid lea if possible.
13289 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
13291 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
13293 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
13294 Dunmmy function with NULL return unless the target is
13295 OSX >= 10.6 (Darwin10).
13297 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
13299 * gcc.c (spec_function): Add remove-outfile.
13300 (remove_outfile_spec_function): New function.
13301 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
13302 * invoke.texi (replace-outfile): Document.
13304 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
13307 * reginfo.c (globalize_reg): Reject stack registers.
13309 2010-08-17 Richard Guenther <rguenther@suse.de>
13311 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
13312 list of conditional equivalences.
13313 (free_all_edge_infos): Adjust.
13314 (record_equivalences_from_incoming_edge): Likewise.
13315 (record_cond): Likewise.
13316 (build_and_record_new_cond): Likewise.
13317 (record_conditions): Likewise.
13318 (dom_opt_leave_block): Likewise.
13320 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
13322 * doc/invoke.texi (ms-extension): Add documentation.
13324 2010-08-17 Richard Guenther <rguenther@suse.de>
13326 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
13328 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
13331 * c-decl.c (diagnose_uninitialized_cst_member): New function.
13332 (finish_decl): Use it to issue a -Wc++-compat warning about
13333 uninitialized const field in struct or union.
13335 (finish_struct): Use strip_array_types.
13337 2010-08-17 Jakub Jelinek <jakub@redhat.com>
13339 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
13341 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
13342 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
13343 call block_nreverse here.
13344 (blocks_nreverse): Rename decl temporary to block.
13346 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
13348 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
13349 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
13350 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
13351 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
13352 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
13353 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
13354 thumb2_iorsi3): Delete.
13355 (orsi_notsi_si): No longer a named pattern.
13356 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
13357 * config/arm/predicates.md (shift_amount_operand): New.
13358 (mult_operator): New.
13359 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
13360 attr enabled): New.
13361 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
13363 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
13364 (not_shiftsi_compare0): Likewise, renamed from
13365 arm_notsi_shiftsi_compare0.
13366 (not_shiftsi_compare0_scratch): Likweise, renamed from
13367 arm_notsi_shiftsi_compare0_scratch.
13368 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
13369 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
13370 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
13371 so that the register alternative is disabled when the shift_operator
13372 is MULT. Use "M" as the constraint for constants.
13373 (arith_shiftsi splitter): Enable for TARGET_32BIT.
13374 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
13375 constraint for constants.
13376 (arith_shiftsi_compare0_scratch): Likewise.
13377 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
13378 Handle Thumb2 alternative.
13380 2010-08-16 Joseph Myers <joseph@codesourcery.com>
13382 * doc/options.texi (NoDriverArg): Document.
13383 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
13385 * opt-functions.awk (switch_flags): Handle NoDriverArg.
13386 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
13387 marking for CL_NO_DRIVER_ARG options when in the driver.
13388 * opts.h (CL_NO_DRIVER_ARG): Define.
13389 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13390 CL_COMMON): Update values.
13392 2010-08-16 Joseph Myers <joseph@codesourcery.com>
13394 * common.opt: Add driver options.
13395 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
13396 * doc/options.texi (Driver, RejectDriver): Document.
13397 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
13398 print_prog_name, print_multi_directory, print_sysroot,
13399 print_multi_os_directory, print_multi_lib,
13400 print_sysroot_headers_suffix, report_times, combine_flag,
13401 use_pipes, wrapper_string): Remove.
13402 (save_switch, driver_unknown_option_callback,
13403 driver_wrong_lang_callback, driver_post_handling_callback,
13404 driver_handle_option): New.
13405 (spec_lang, last_language_n_infiles): Make file-scope static
13406 instead of local to process_command.
13407 (process_command): Use decode_cmdline_options_to_array and
13408 read_cmdline_option for option processing. Compute have_c in
13409 prescan of decoded options.
13410 * opt-functions.awk (switch_flags): Handle Driver and
13412 (var_type, var_type_struct): Handle Separate options as generating
13413 const char * variables.
13414 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
13415 CL_TARGET to be passed by caller if required.
13416 (decode_cmdline_options_to_array): Update comment.
13417 * opts.c (complain_wrong_lang): Handle options only valid for the
13419 (decode_options): Update call to decode_cmdline_options_to_array.
13420 (print_filtered_help): Ignore driver-only options.
13421 (print_specific_help): Ignore CL_DRIVER.
13422 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
13423 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
13424 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
13427 2010-08-16 Richard Guenther <rguenther@suse.de>
13429 * tree-cfg.c (verify_types_in_gimple_reference): Verify
13430 TARGET_MEM_REF a bit.
13431 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
13432 (create_mem_ref_raw): Always create TMR_OFFSET, store the
13433 alias pointer type via it.
13434 (copy_mem_ref_info): Adjust.
13435 (maybe_fold_tmr): Likewise.
13436 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
13437 (reference_alias_ptr_type): Likewise.
13438 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
13439 adjust documentation of TMR_OFFSET operand.
13440 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
13441 use the alias pointer type.
13442 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
13443 initialize mem attrs but the TMR itself.
13444 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
13445 similar to MEM_REF.
13446 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
13447 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
13448 (unshare_and_remove_ssa_names): Likewise.
13449 (copy_ref_info): Adjust.
13450 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
13451 TARGET_MEM_REF case.
13452 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
13454 * tree.h (TMR_ORIGINAL): Remove.
13455 * gimple.c (get_base_address): For TARGET_MEM_REF with a
13456 symbol return that.
13457 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
13459 (get_addr_base_and_unit_offset): Likewise.
13460 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
13462 (indirect_ref_may_alias_decl_p): Likewise.
13463 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
13465 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
13467 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
13468 with GCC version 4.6, the default setting (when not optimizing
13469 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
13470 been changed to -fomit-frame-pointer.
13472 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
13474 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
13475 Darwin10. Do not link libgcc.a for Darwin >= 9.
13477 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
13479 * doc/invoke.texi (Warning Options): Fix terminology and markup
13480 in the description of how unknown warning options are handled.
13482 2010-08-15 Ira Rosen <irar@il.ibm.com>
13484 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
13486 (vect_supportable_dr_alignment): Check alignment for basic blocks.
13487 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
13489 (vect_bb_vectorization_profitable_p): New function.
13490 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
13491 check if it's worthwhile to vectorize the basic block.
13493 2010-08-14 Anatoly Sokolov <aesok@post.ru>
13495 * reload.h (register_move_cost, memory_move_secondary_cost,
13496 secondary_reload_class): Adjust prototype.
13497 * rtl.h (reg_class_subset_p): Adjust prototype.
13498 * reload.c (secondary_reload_class): Change arguments type from
13499 enum reg_class to reg_class_t. Change result type to reg_class_t.
13500 * reginfo.c (register_move_cost, reg_class_subset_p): Change
13501 arguments type from enum reg_class to reg_class_t.
13502 (memory_move_secondary_cost): Change arguments type from
13503 enum reg_class to reg_class_t. Change type of saved_flags to
13506 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13508 (mips_cost): Remove.
13509 (struct mips_rtx_cost_data): Moved to mips.c.
13510 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
13511 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
13512 (mips_cost): Make static.
13513 (mips_canonicalize_move_class): Change argument type to reg_class_t.
13514 Change result type to reg_class_t.
13515 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
13516 type from enum reg_class to reg_class_t.
13517 (mips_register_move_cost): Make static. Change arguments
13518 type from enum reg_class to reg_class_t.
13519 (mips_memory_move_cost): New function.
13520 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13522 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
13524 PR rtl-optimization/43358
13525 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
13526 of a single hard register, using simplify_subreg_regno to decide
13527 what that register should be.
13529 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
13531 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
13532 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
13533 (loongson_pmull<V_suffix>): Rename to...
13534 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
13536 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
13538 * configure.ac: Enable -fomit-frame-pointer on darwin
13539 which support dwarf2.
13540 * config/i386/i386.c (override_options): Same.
13542 2010-08-13 Jie Zhang <jie@codesourcery.com>
13544 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
13546 2010-08-12 Joseph Myers <joseph@codesourcery.com>
13548 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
13551 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
13553 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
13554 up dot_prod pattern searching if a stmt is outside the loop.
13556 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
13557 Uros Bizjak <ubizjak@gmail.com>
13559 * config.gcc: Handle --enable-frame-pointer.
13561 * configure.ac: Add --enable-frame-pointer.
13562 * configure: Regenerated.
13564 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
13565 (override_options): If not configured with --enable-frame-pointer,
13566 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
13567 optimizing for size), -fasynchronous-unwind-tables and
13568 -maccumulate-outgoing-args by default.
13570 2010-08-12 Jakub Jelinek <jakub@redhat.com>
13572 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
13574 PR middle-end/45262
13575 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
13576 -a overflows. Normalize the range.
13578 2010-08-12 Richard Guenther <rguenther@suse.de>
13580 PR tree-optimization/45232
13581 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
13582 for types with undefined overflow.
13583 (reassociate_bb): Allow re-associating of bit and min/max
13584 operations for types with undefined overflow.
13585 * tree-ssa-forwprop.c (associate_plusminus): New function.
13586 (tree_ssa_forward_propagate_single_use_vars): Call it.
13588 2010-08-12 Richard Guenther <rguenther@suse.de>
13590 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
13591 * tree-ssa-alias.c (get_ptr_info): Move ...
13592 * tree-ssanames.c (get_ptr_info): ... here. Initialize
13593 align and misalign fields conservatively.
13594 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
13595 derive alignment information.
13596 (evaluate_stmt): Derive alignment information from memory
13597 allocation functions.
13598 * tree.h (get_pointer_alignment): Make unsigned.
13599 * builtins.c (get_object_alignment): Use alignment information we
13600 have computed for pointers.
13601 (get_pointer_alignment): Likewise. Make conservative, return
13602 and unsigned value.
13603 (expand_builtin_strlen): Adjust.
13604 (expand_builtin_memcmp): Likewise.
13605 (expand_builtin_strcmp): Likewise.
13606 (expand_builtin_strncmp): Likewise.
13607 (get_builtin_sync_mem): Use at least mode alignment.
13608 (fold_builtin_memset): Adjust.
13609 (fold_builtin_memory_op): Likewise.
13610 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
13611 information also dump pointer alignment knowledge.
13612 (dump_gimple_stmt): Likewise.
13614 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
13616 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
13617 (EMPTY_FIELD_BOUNDARY): Remove.
13618 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
13620 2010-08-12 Jakub Jelinek <jakub@redhat.com>
13623 * caller-save.c (save_call_clobbered_regs): Only swap notes with
13624 DEBUG_INSNs if n_regs_saved.
13626 2010-08-12 Wei Guozhi <carrot@google.com>
13629 * config/arm/arm.md (andsi3): Change to zero extension if possible.
13630 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
13632 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
13634 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
13636 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
13638 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13640 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
13641 the case removed in the previous patch, when the only phi argument
13642 is defined in the same loop as the phi node itself. Handle it
13643 separately from the invariant case by both propagating it outside
13644 the region and replacing the phi node with an assign.
13646 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13648 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
13649 constant phi nodes with one argument are is_gimple_min_invariant
13650 and SSA_NAME_IS_DEFAULT_DEF.
13652 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13654 * graphite-cloog-util.c (oppose_constraint):
13655 Extend loop counter's value range (CLOOG_ORG).
13656 (cloog_matrix_to_ppl_constraint): Same.
13657 (new_Constraint_System_from_Cloog_matrix): Same.
13658 * graphite-cloog-compat.h (matrix_num_type): New.
13660 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13662 * graphite.c (graphite_initialize): Do not initialize
13663 CLooG and initialize the Parma Polyhedra Library
13664 manually when using CLOOG_ORG.
13665 (graphite_finalize): Do not finalize CLooG and finalize
13666 the Parma Polyhedra Library manually when using CLOOG_ORG.
13667 * graphite-cloog-compat.h (cloog_initialize): Hide function
13668 when using CLOOG_ORG.
13669 (cloog_finalize): Same.
13671 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13673 * graphite-clast-to-gimple.c (free_scattering): Change
13674 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
13676 (build_cloog_prog): Same.
13677 * graphite-cloog-compat.h (cloog_domain): Removed.
13678 (cloog_scattering): New.
13679 (cloog_set_domain): Removed.
13680 (cloog_set_scattering): New.
13681 (cloog_next_domain): Removed.
13682 (cloog_next_scattering): New.
13683 (cloog_set_next_domain): Removed.
13684 (cloog_set_next_scattering): New.
13685 (CloogScatteringList): New.
13686 (CloogScattering): New.
13687 (cloog_scattering_free): New.
13688 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
13689 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
13692 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13694 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
13696 (set_cloog_options): Same.
13697 (print_clast_stmt): Same.
13698 (scop_to_clast): Same.
13699 (print_generated_program): Same.
13701 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
13702 (scop_to_clast): Extend with CloogState.
13703 * graphite-cloog-util.c: Include graphite-cloog-compat.h
13704 (new_Cloog_Domain_from_ppl_Polyhedron):
13705 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
13706 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
13707 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13708 * graphite-cloog-util.h (build_cloog_prog): Same.
13709 * graphite-cloog-copat.h (build_cloog_prog): New.
13711 (cloog_state_malloc): New.
13712 (cloog_state_free): New.
13713 (cloog_loop_malloc): New.
13714 (cloog_options_malloc): New.
13715 (cloog_statement_alloc): New.
13716 (cloog_domain_from_cloog_matrix): New.
13717 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
13718 (new_Cloog_Domain_from_ppl_Polyhedron): New.
13720 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13722 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
13723 type of NAME now depends on used CLooG version.
13724 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
13725 (gcc_type_for_clast_expr): Same.
13726 (print_clast_stmt): Replace pprint with clast_pprint.
13727 * graphite-cloog-compat.h: Provide compatibility macros for
13729 (clast_name_p): New.
13730 (clast_expr_term): New.
13731 (clast_expr_red): New.
13732 (clast_expr_bin): New.
13733 (clast_pprint): New.
13735 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13737 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
13738 compatible to newer CLooG releases (CLOOG_ORG).
13739 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
13740 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
13741 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
13742 (build_cloog_prog) : New.
13743 (cloog_program_extract_scalars): New.
13744 (cloog_program_scatter): New.
13746 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13748 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
13749 conditionally (CLOOG_ORG).
13750 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
13751 (cloog_statement_usr): New.
13752 (cloog_domain): Same.
13753 (cloog_set_domain): Same.
13754 (cloog_next_domain): Same.
13755 (cloog_set_next_domain): Same.
13756 (cloog_program_nb_scattdims): Same.
13757 (cloog_program_set_nb_scattdims): Same.
13758 (cloog_program_names): Same.
13759 (cloog_program_set_names): Same.
13760 (cloog_program_set_context): Same.
13761 (cloog_program_set_loop): Same.
13762 (cloog_program_blocklist): Same.
13763 (cloog_program_set_blocklist): Same.
13764 (cloog_program_scaldims): Same.
13765 (cloog_program_set_scaldims): Same.
13766 (cloog_names_nb_parameters): Same.
13767 (cloog_names_set_nb_parameters): Same.
13768 (cloog_names_parameters): Same.
13769 (cloog_names_set_parameters): Same.
13770 (cloog_names_set_nb_iterators): Same.
13771 (cloog_names_set_iterators): Same.
13772 (cloog_names_set_nb_scattering): Same.
13773 (cloog_names_set_scattering): Same.
13774 (cloog_statement_set_usr): Same.
13775 (cloog_loop_set_next): Same.
13776 (cloog_loop_set_domain): Same.
13777 (cloog_loop_set_block): Same.
13778 (cloog_block_list_next): Same.
13779 (cloog_block_list_set_next):
13780 (cloog_block_list_set_block): Same.
13782 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13784 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
13786 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
13787 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
13788 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
13789 when something has been changed.
13790 (rewrite_commutative_reductions_out_of_ssa): Same.
13792 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13794 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
13795 handle the case when def is in the sese region.
13796 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
13797 for invariant expressions.
13798 (rewrite_cross_bb_phi_deps): Removed.
13799 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
13800 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
13801 rewrite_cross_bb_phi_deps.
13803 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13805 * graphite-sese-to-poly.c
13806 (rewrite_commutative_reductions_out_of_ssa_loop): Call
13807 scev_analyzable_p only on is_gimple_reg
13809 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13811 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
13812 (rewrite_close_phi_out_of_ssa): Propagate constant values or
13813 parametric expressions outside the scop region.
13814 (rewrite_cross_bb_scalar_deps): Same.
13815 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
13817 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13819 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
13820 SSA_NAME_DEF_STMT only on SSA_NAMEs.
13822 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13824 * tree-scalar-evolution.c (instantiate_scev_name): Do not
13825 instantiate default definitions.
13827 2010-08-11 Vladimir Kargov <kargov@gmail.com>
13828 Sebastian Pop <sebastian.pop@amd.com>
13830 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
13831 (loop_exits_from_bb_p): New.
13832 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
13833 (loop_exits_from_bb_p): Declared.
13834 * graphite-scop-detection.c (scopdet_basic_block_info): Call
13835 loop_exits_to_bb_p.
13837 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13839 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
13840 extra parameter for the region. Call scev_analyzable_p.
13841 (rewrite_reductions_out_of_ssa): Update call to
13842 rewrite_close_phi_out_of_ssa.
13843 (rewrite_cross_bb_phi_deps): Same.
13844 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
13845 parameter for the region. Call scev_analyzable_p.
13846 (rewrite_commutative_reductions_out_of_ssa): Update call to
13847 rewrite_commutative_reductions_out_of_ssa_loop.
13849 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13851 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
13853 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13855 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
13856 SSA scalar phi nodes that can be scev_analyzable_p.
13858 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13860 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
13861 handle SSA_NAME_IS_DEFAULT_DEF.
13863 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13865 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
13867 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13869 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
13870 case non close-phi nodes with one argument.
13872 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13874 * sese.h (scev_analyzable_p): Scevs could be expressions without
13875 chrecs and still be scev_analyzable_p.
13877 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13879 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13881 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13883 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
13884 * cfgloop.h (struct loop): Remove single_iv field.
13885 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
13886 (scop_canonicalize_loops): Removed.
13887 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
13888 over all the loop phi nodes in loop->header.
13889 (build_poly_scop): Remove use of scop_canonicalize_loops.
13891 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13893 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
13894 handle GIMPLE_CALL.
13896 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13898 * tree-chrec.c (chrec_apply): Should only apply to the specified
13899 variable. Also handle multivariate chains of recurrences that
13900 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
13902 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13904 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
13905 (debug_clast_name_indexes_1): Removed.
13906 (debug_clast_name_indexes): Removed.
13907 (pbb_to_depth_to_oldiv): Removed.
13908 (build_iv_mapping): Replace the use of rename_map with iv_map.
13909 (translate_clast_user): Remove uses of rename_map. Allocate and
13911 (translate_clast_for_loop): Remove uses of rename_map.
13912 (translate_clast_for): Same.
13913 (translate_clast_guard): Same.
13914 (translate_clast): Same.
13916 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
13917 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
13918 * sese.c (set_rename): Now static.
13919 (rename_variables_in_stmt): Removed.
13920 (rename_uses): New.
13921 (is_parameter): Removed.
13923 (expand_scalar_variables_call): Removed.
13924 (expand_scalar_variables_ssa_name): Removed.
13925 (expand_scalar_variables_expr): Removed.
13926 (expand_scalar_variables_stmt): Removed.
13927 (expand_scalar_variables): Removed.
13928 (rename_variables): Removed.
13929 (remove_condition): Removed.
13930 (get_true_edge_from_guard_bb): Removed.
13931 (get_false_edge_from_guard_bb): Removed.
13932 (struct igp): Removed.
13933 (default_before_guard): Removed.
13934 (convert_for_phi_arg): Removed.
13935 (add_guard_exit_phis): Removed.
13936 (insert_guard_phis): Removed.
13937 (graphite_copy_stmts_from_block): Now also uses iv_map and a
13938 region. Do not copy conditions. Do not copy induction variables.
13940 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
13941 the translated statement. Use the iv_map for the induction
13943 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13944 (set_rename): Removed declaration.
13945 (scev_analyzable_p): ...here.
13946 * tree-chrec.c (chrec_apply_map): New.
13947 * tree-chrec.h (chrec_apply_map): Declared.
13949 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13951 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
13952 insert_loop_close_phis.
13953 * sese.c (name_defined_in_loop_p): Removed.
13954 (expr_defined_in_loop_p): Removed.
13955 (alive_after_loop): Removed.
13956 (close_phi_not_yet_inserted_p): Removed.
13957 (struct alep): Removed.
13958 (add_loop_exit_phis): Removed.
13959 (insert_loop_close_phis): Removed.
13961 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13963 * graphite-cloog-util.c
13964 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
13966 (psct_scattering_dim_for_loop_depth): Same.
13968 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13970 * graphite-cloog-util.h: Added cloog.h.
13971 * graphite-blocking.c: Removed cloog.h.
13972 * graphite-dependences.c: Same.
13973 * graphite-interchange.c: Same.
13974 * graphite-poly.c: Same.
13975 * graphite-ppl.c: Same.
13976 * graphite-scop-detection.c: Same.
13977 * graphite-sese-to-poly.c:
13979 Removed graphite-clast-to-gimple.h.
13980 (check_poly_representation): Removed (unused).
13981 * graphite-sese-to-poly.h
13982 (check_poly_representation): Removed (unused).
13984 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13986 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
13987 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
13988 (graphite-cloog-util.o): New.
13989 (graphite-ppl.o): Added graphite-cloog-util.h.
13990 * graphite-clast-to-gimple.c:
13991 Added graphite-cloog-util.h to include statements.
13992 * graphite-cloog-util.c: New.
13993 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
13994 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13995 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13996 (new_C_Polyhedron_from_Cloog_Matrix): Same.
13997 (insert_constraint_into_matrix): Same.
13998 (ppl_Constrain_System_number_of_constraints): Same.
13999 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14000 (oppose_constraint): Same.
14001 (cloog_matrix_to_ppl_constraint): Same.
14002 (new_Constraint_System_from_Cloog_Matrix): Same.
14003 * graphite-cloog-util.h: New.
14004 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
14005 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14006 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14007 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14008 (insert_constraint_into_matrix): Same.
14010 Added graphite-cloog-util.h to include statements.
14011 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
14012 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14013 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14014 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14015 (insert_constraint_into_matrix): Same.
14016 (ppl_Constrain_System_number_of_constraints): Same.
14017 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14018 (oppose_constraint): Same.
14019 (cloog_matrix_to_ppl_constraint): Same.
14020 (new_Constraint_System_from_Cloog_Matrix): Same.
14022 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
14023 graphite-cloog-util.h.
14024 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14025 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14026 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14027 (insert_constraint_into_matrix): Same.
14029 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14031 * graphite-clast-to-gimple.c
14032 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
14033 (precision_for_interval): Same.
14034 (gcc_type_for_interval): Same.
14035 (compute_type_for_level): Same.
14036 * graphite-interchange.c
14037 (lst_interchange_profitable_p): Same.
14039 (psct_scattering_dim_for_loop_depth): Same.
14041 (ppl_max_for_le_pointset): Same.
14042 (ppl_min_for_le_pointset): Same.
14044 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14046 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
14047 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
14049 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14051 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
14052 rewrite_close_phi_out_of_ssa.
14054 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14056 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
14058 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14060 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
14062 * sese.c (debug_rename_map): Same.
14063 (get_rename): Same.
14064 (set_rename): Same.
14065 (rename_variables_in_stmt): Same.
14066 (expand_scalar_variables_call): Same.
14067 (expand_scalar_variables_ssa_name): Same.
14068 (expand_scalar_variables_expr): Same.
14069 (expand_scalar_variables_stmt): Same.
14070 (expand_scalar_variables): Same.
14071 (rename_variables): Same.
14072 (graphite_copy_stmts_from_block): Same.
14073 (copy_bb_and_scalar_dependences): Same.
14075 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14077 * graphite-clast-to-gimple.c (copy_renames): Removed.
14078 (translate_clast_for): Do not call copy_renames.
14079 (translate_clast_guard): Same.
14081 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14083 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
14084 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
14085 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
14086 before rewrite_cross_bb_scalar_deps.
14088 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14090 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
14091 Early return in when flag_associative_math is not set.
14093 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14095 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
14096 of SSA copies on edges except for loop->latch.
14098 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14100 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
14101 Split out of rewrite_reductions_out_of_ssa.
14102 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
14104 * graphite.c (graphite_transform_loops): Call it.
14106 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14108 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
14110 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
14112 * dbgcnt.def (graphite_scop): New counter.
14113 * graphite.c: Include dbgcnt.h.
14114 (graphite_transform_loops): Use new counter to limit transformations.
14115 * Makefile.in (graphite.o): Depend on DBGCNT_H.
14117 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14119 * passes.c (init_optimization_passes): Add pass_graphite.
14120 Schedule a pass_copy_prop before pass_graphite_transforms.
14121 * timevar.def (TV_GRAPHITE): Declared.
14122 * tree-pass.h (pass_graphite): Declared.
14123 * tree-ssa-loop.c (pass_graphite): New.
14125 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14127 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
14128 Remove calls to rename_nb_iterations and rename_sese_parameters.
14129 * graphite-clast-to-gimple.h (gloog): Update declaration.
14130 * graphite.c (graphite_transform_loops): Update call to gloog.
14131 * sese.c (rename_variables_in_expr): Removed.
14132 (rename_nb_iterations): Removed.
14133 (rename_sese_parameters): Removed.
14134 * sese.h (rename_nb_iterations): Removed.
14135 (rename_sese_parameters): Removed.
14137 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14139 * graphite-clast-to-gimple.c (gloog): Remove call to
14140 sese_adjust_liveout_phis.
14141 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
14142 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
14143 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
14144 rewrite_phi_out_of_ssa.
14145 * sese.c (get_vdef_before_sese): Removed.
14146 (sese_adjust_vphi): Removed.
14147 (sese_adjust_liveout_phis): Removed.
14148 * sese.h (sese_adjust_liveout_phis): Removed.
14150 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14152 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
14153 argument for the place after which to insert the out of SSA copy.
14154 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
14155 (rewrite_phi_out_of_ssa): Same.
14156 (rewrite_cross_bb_scalar_deps): Same.
14157 (insert_copyout): Removed.
14158 (insert_copyin): Removed.
14159 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
14160 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
14163 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14165 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
14166 (rewrite_reductions_out_of_ssa): Same.
14167 (rewrite_commutative_reductions_out_of_ssa): Same.
14168 (build_poly_scop): Do not call these functions.
14169 * graphite-sese-to-poly.h (build_poly_scop): Declared.
14170 (rewrite_reductions_out_of_ssa): Declared.
14171 (rewrite_commutative_reductions_out_of_ssa): Declared.
14172 * graphite.c (graphite_transform_loops): Call on every scop
14173 rewrite_commutative_reductions_out_of_ssa before calling
14174 rewrite_reductions_out_of_ssa and build_scop_bbs.
14176 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14178 * graphite-dependences.c (dot_deps): Make system call to dotty run
14180 (dot_deps_stmt): Same.
14181 * graphite-poly.c (dot_lst): Same.
14183 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14185 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
14186 phi_arg_in_outermost_loop.
14187 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
14188 (remove_invariant_phi): Same.
14190 2010-08-11 Anatoly Sokolov <aesok@post.ru>
14192 * target.def (output_addr_const_extra): New hook.
14193 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
14194 * doc/tm.texi: Regenerate.
14195 * targhooks.c (default_asm_output_addr_const_extra): New function.
14196 * targhooks.h (default_asm_output_addr_const_extra): Declare.
14197 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
14200 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14201 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
14202 * config/i386/i386.h (output_addr_const_extra): Rename to...
14203 (i386_asm_output_addr_const_extra): ...this. Make static.
14204 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14206 2010-08-11 Richard Henderson <rth@redhat.com>
14208 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
14210 2010-08-11 Nick Clifton <nickc@redhat.com>
14212 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
14213 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
14214 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14215 stormy16-lib2-cmpsi.c.
14217 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
14220 2010-08-11 Joseph Myers <joseph@codesourcery.com>
14222 * opts.h (struct cl_option_handler_func): Make handler take
14223 cl_decoded_option structure as parameter, not individual elements.
14224 (struct cl_option_handlers): Make callbacks take cl_decoded_option
14225 structure as parameter, not individual elements.
14226 (handle_option): Take cl_decoded_option structure as parameter,
14227 not individual elements.
14228 (handle_generated_option): Declare.
14229 * opts-common.c (handle_option): Take cl_decoded_option structure
14230 as parameter, not individual elements. Update calls to callback
14231 and handler functions.
14232 (handle_generated_option): New.
14233 (read_cmdline_option): Update calls to callback functions and
14235 * opts.c (common_handle_option, complain_wrong_lang,
14236 unknown_option_callback, post_handling_callback,
14237 lang_handle_option, target_handle_option): Take cl_decoded_option
14238 structure as parameter, not individual elements.
14239 (lang_handle_option, target_handle_option, common_handle_option):
14240 Assert option has at most one argument.
14241 (enable_warning_as_error): Call handle_generated_option instead of
14242 handle_option. Do not pass -Werror argument as argument of
14245 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14247 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14248 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14249 (SUBWORD_BOOL_CAS): Likewise.
14250 (SUBWORD_SYNC_OP): Likewise.
14251 (SUBWORD_TEST_AND_SET): Likewise.
14252 (FETCH_AND_OP_WORD): Parenthesise INF_OP
14253 (SUBWORD_SYNC_OP): Likewise.
14254 (OP_AND_FETCH_WORD): Likewise.
14256 2010-08-10 Xinliang David Li <davidxl@google.com>
14258 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
14259 compute max/min offset in address.
14261 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
14263 * ira-live.c: Include sbitmap.h.
14264 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
14265 Compress live ranges even more.
14267 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14269 * coverage.c (ctr_labels): Delete.
14271 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
14274 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
14275 test here from arm_gen_load_multiple_1.
14276 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
14277 multiple_operation_profitable_p.
14279 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14281 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
14282 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
14284 2010-08-10 Richard Henderson <rth@redhat.com>
14286 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
14287 after saving registers. Assert that SSE registers are only saved
14288 with a sufficiently aligned frame.
14289 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
14290 remove stack_realign_fp handling.
14291 (ix86_expand_prologue): Save int registers before stack_realign_fp,
14292 and do not mark the stack alignment as frame related.
14293 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
14295 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
14296 saves when re-aligning the stack.
14298 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14300 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
14301 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
14302 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
14304 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14306 * dwarf2out.c (struct die_struct): Move die_tag to the end.
14308 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
14310 * config/arm/iterators.md: New file.
14311 * config/arm/arm.md: Include iterators.md.
14312 (QHSI): Move to new file.
14313 (LTUGEU, cnb, optab, ior_xor): Likewise.
14314 * config/arm/iwmmxt.md (VMMX): Move to new file.
14315 (VSHFT, MMX_char): Likewise.
14316 * config/arm/neon.md (VD): Move to new file.
14317 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
14318 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
14319 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
14320 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
14321 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
14322 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
14323 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
14324 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
14325 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
14326 (Is_d_reg, V_mode_nunits): Likewise.
14327 * config/arm/vec-common.md (VALL): Move to new file.
14328 (VALLW, VINT, VINTW): Likewise.
14330 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
14332 PR middle-end/45182
14333 * combine.c (make_compound_operation): Don't try to convert
14334 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
14336 2010-08-10 Richard Guenther <rguenther@suse.de>
14338 * tree.h (get_object_alignment): Adjust prototype.
14339 * builtins.c (get_object_alignment): Return unsigned int,
14340 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
14341 and TARGET_MEM_REF properly.
14342 (get_pointer_alignment): Adjust.
14343 * emit-rtl.c (get_mem_align_offset): Adjust comment.
14344 (set_mem_attributes_minus_bitpos): Adjust.
14345 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
14347 2010-08-10 Richard Guenther <rguenther@suse.de>
14349 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
14350 (copy_prop_visit_assignment): Simplify.
14351 (copy_prop_visit_stmt): Also visit assignments from
14353 (copy_prop_visit_phi_node): Use operand_equal_p.
14355 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14357 * ipa-split.c (find_split_points): Free stack.
14359 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14361 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
14362 * tree.c (tree_node_kind): Delete corresponding entries.
14364 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
14366 * alias.c (may_alias_p): Remove unused ret.
14368 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
14370 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
14371 alias_sets_conflict_p.
14372 (walk_mems_1): Moved from alias.c.
14373 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
14375 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
14376 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
14377 * alias.c (walk_mems_2): Moved to ddg.c.
14378 (walk_mems_1): Ditto.
14379 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
14381 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
14383 *(may_alias_p): New function to check whether two memory expression
14384 may alias or not. Currently used in buidling inter-iteration memory
14386 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
14387 (insn_alias_sets_conflict_p): Removed
14388 *rtl.h (may_alias_p): New function prototype.
14390 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14392 * tree.c (nreverse): Assert that we don't have a BLOCK.
14394 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14396 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
14397 * config/arm/arm.c (arm_get_pcs_model): Likewise.
14398 * config/avr/avr.c (init_cumulative_args): Likewise.
14399 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14400 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14401 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
14402 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14403 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14404 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14405 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
14406 * dwarf2out.c (gen_subprogram_die): Likewise.
14407 * function.c (allocate_struct_function): Likewise.
14408 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
14409 (deserves_ellipsis): Delete.
14411 2010-08-09 Richard Guenther <rguenther@suse.de>
14413 * tree-ssa-copy.c (cached_last_copy_of): Remove.
14414 (valueize_val): New function.
14415 (get_last_copy_of): Remove.
14416 (set_copy_of_val): Simplify.
14417 (dump_copy_of): Likewise.
14418 (copy_prop_visit_cond_stmt): Use valueize_val.
14419 (copy_prop_visit_phi_node): Properly handle unvisited names.
14420 Drop code managing copy-of chains.
14421 (init_copy_prop): Adjust.
14422 (fini_copy_prop): Likewise.
14423 (execute_copy_prop): Remove obsolete comment.
14425 2010-08-09 Richard Guenther <rguenther@suse.de>
14427 PR middle-end/44632
14428 * function.c (gimplify_parameters): Do not clear addressable
14429 bit of the original parameter.
14431 2010-08-09 Richard Guenther <rguenther@suse.de>
14433 PR middle-end/45212
14434 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
14435 alignment from MEM_REF offset only if we took it from the
14438 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
14440 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
14442 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14444 * c-tree.h (build_arg_info): Declare.
14445 * c-decl.c (build_arg_info): Define.
14446 (get_parm_info): Call it. Delete initialization code.
14447 * c-parser.c (c_parser_parms_declarator): Likewise.
14448 (c_parser_parms_list_declaractor): Likewise.
14450 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14452 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
14453 (struct c_arg_info): Change type of tags field.
14454 * c-decl.c (grokdeclarator): Update for changed type of tags field.
14455 (get_parm_info): Likewise.
14456 (store_parm_decls_newstyle): Likewise.
14458 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14460 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
14461 (branch_island_list): Delete.
14462 (branch_islands): Declare.
14463 (add_compiler_branch_island): Adjust for branch_islands instead of
14464 branch_island_list.
14465 (macho_branch_islands): Likewise.
14466 (no_previous_def): Likewise.
14467 (get_prev_label): Likewise.
14469 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14472 * gthr-posix.h (__gthread_start): Delete.
14473 (__gthread_active_init): Use pthread_default_stacksize_np instead of
14474 pthread_create to determine if hpux pthreads are active.
14475 * gthr-posix95.h (__gthread_start): Delete.
14476 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
14478 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
14480 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
14481 _WIN64 not expanded.
14483 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
14484 H.J. Lu <hongjiu.lu@intel.com>
14487 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
14488 to output 32bit SFmode immediate as 8 byte sign extended value.
14490 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14492 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14493 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14494 (SUBWORD_BOOL_CAS): Likewise.
14495 (SUBWORD_SYNC_OP): Likewise.
14496 (SUBWORD_TEST_AND_SET): Likewise.
14497 (FETCH_AND_OP_WORD): Parenthesise INF_OP
14498 (SUBWORD_SYNC_OP): Likewise.
14499 (OP_AND_FETCH_WORD): Likewise.
14501 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14503 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
14504 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
14505 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
14506 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
14508 (cortex_a9_sched_adjust_cost): New function.
14509 (xscale_sched_adjust_cost): New function.
14510 * config/arm/arm-protos.h (struct tune_params): New field
14512 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
14514 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
14517 * config/sparc/sparc.c (function_arg_advance): Always take into account
14518 the padding, if any.
14520 2010-08-06 Richard Guenther <rguenther@suse.de>
14522 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
14523 (dump_lattice_value): Dump it.
14524 (get_default_value): Adjust.
14525 (get_constant_value): Likewise.
14526 (set_value_varying): Likewise.
14527 (set_lattice_value): Make sure to not go up the lattice
14528 with bitwise constant values.
14529 (get_value_for_expr): Handle ADDR_EXPRs.
14530 (value_to_double_int): New function.
14531 (get_value_from_alignment): Likewise.
14532 (do_dbg_cnt): Adjust.
14533 (ccp_lattice_meet): Handle partially constant values.
14534 (bit_value_unop_1): New function.
14535 (bit_value_binop_1): Likewise.
14536 (bit_value_unop): Likewise.
14537 (bit_value_binop): Likewise.
14538 (evaluate_stmt): Track partially constant values if
14539 flag_tree_bit_ccp is set.
14540 (ccp_fold_stmt): Dump if we folded a predicate.
14541 (ccp_visit_stmt): Adjust.
14542 * common.opt (ftree-bit-ccp): New flag.
14543 * doc/invoke.texi (ftree-bit-ccp): Document.
14544 * opts.c (decode_options): Enable bit-CCP at -O1.
14546 2010-08-06 Alan Modra <amodra@gmail.com>
14548 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
14549 and -mrelocatable-lib description.
14551 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
14553 From Martin Thuresson <martint@google.com>
14554 * postreload.c (reload_cse_simplify_operands): Use
14555 SET_REGNO_RAW instead of SET_REGNO.
14556 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
14558 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
14559 instead of SET_REGNO.
14560 * rtl.h (SET_REGNO_RAW): New macro.
14562 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
14564 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
14565 computations. Fix formatting issues.
14566 (num_sign_bit_copies1): Likewise.
14567 (canonicalize_condition): Likewise.
14569 2010-08-05 Richard Henderson <rth@redhat.com>
14571 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
14572 (floor_log2): Use clz_hwi.
14573 (exact_log2): Use ctz_hwi.
14574 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
14575 * builtins.c (fold_builtin_bitop): Use them.
14576 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14577 * combine.c (get_pos_from_mask): Use ctz_hwi.
14578 * double-int.c (double_int_ctz): Likewise.
14579 * explow.c (force_reg): Likewise.
14580 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
14582 2010-08-05 Richard Henderson <rth@redhat.com>
14585 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
14586 the alignment constant is properly sign-extended.
14588 2010-08-05 Richard Guenther <rguenther@suse.de>
14590 * expr.c (store_expr): Use emit_block_move only if both
14591 source and target are MEMs. Use store_bit_field if only
14592 the target is a MEM.
14594 2010-08-05 Richard Henderson <rth@redhat.com>
14597 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
14598 (INCOMING_RETURN_ADDR_RTX): Likewise.
14599 (dwarf2out_do_frame): Remove conditional compilation.
14600 (dwarf2out_frame_init): Likewise.
14602 2010-08-05 Nicolas Setton <setton@adacore.com>
14604 * gcov.c (flag_display_progress): New static variable.
14605 (main): Display progress info on standard output if requested.
14606 (options): Add -d/--display-progress.
14607 (print_usage): Print them.
14608 (process_args): Handle them.
14609 * doc/gcov.texi: Document them.
14611 2010-08-05 Martin Jambor <mjambor@suse.cz>
14613 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
14614 (ipcp_insert_stage): Redirect only edges not flagged with
14615 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
14616 discovered constants.
14618 2010-08-05 Martin Jambor <mjambor@suse.cz>
14620 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
14621 (struct ipa_param_descriptor): New fields types and
14622 cannot_devirtualize.
14623 (ipa_param_cannot_devirtualize_p): New function.
14624 (ipa_param_types_vec_empty): Likewise.
14625 (ipa_make_edge_direct_to_target): Declare.
14626 * ipa-cp.c: Fixed first stage driver name in initial comment,
14627 described devirtualization there too.
14628 (ipcp_analyze_node): Call ipa_analyze_params_uses.
14629 (ipcp_print_all_lattices): Print devirtualization info.
14630 (ipa_set_param_cannot_devirtualize): New function.
14631 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
14633 (ipcp_init_stage): Merged into...
14634 (ipcp_generate_summary): ...its caller.
14635 (ipcp_change_tops_to_bottom): Also process type lists.
14636 (ipcp_add_param_type): New function.
14637 (ipcp_copy_types): Likewise.
14638 (ipcp_propagate_types): Likewise.
14639 (ipcp_propagate_stage): Also propagate types.
14640 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
14641 Also return true if propagated types require it.
14642 (ipcp_update_callgraph): Dump redirection info.
14643 (ipcp_process_devirtualization_opportunities): New function.
14644 (ipcp_const_param_count): Include known type information.
14645 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
14646 on new node. Fixed formatting.
14647 * ipa-prop.c (make_edge_direct_to_target): Renamed to
14648 ipa_make_edge_direct_to_target and changed all callers. Made
14649 externally visible.
14650 (ipa_node_duplication_hook): Duplicate types vector.
14651 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
14652 redirect outgoing calls for which we can't get a decl from the
14653 statement. Check that we can get a decl from the call statement.
14654 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14655 ipa_analyze_params_uses only when ipa-cp is disabled.
14656 * tree-inline.c (get_indirect_callee_fndecl): Removed.
14657 (expand_call_inline): Do not call get_indirect_callee_fndecl.
14658 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
14659 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
14661 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
14663 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
14664 temporary. Emit move from temporary to accum, so REG_EQUAL note will
14665 be attached to this insn in correct mode.
14667 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
14669 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
14670 using REGNO of base_reg directly.
14672 2010-08-05 Jie Zhang <jie@codesourcery.com>
14674 PR tree-optimization/45144
14675 * tree-sra.c (type_consists_of_records_p): Return false
14676 if the record contains bit-field.
14678 2010-08-04 Richard Henderson <rth@redhat.com>
14680 * config/i386/i386.c (struct ix86_frame): Remove padding and
14681 to_allocate members.
14682 (ix86_compute_frame_layout): Don't store them.
14683 (ix86_can_use_return_insn_p): Use a more direct and more obviously
14684 correct condition for the position of the stack pointer.
14685 (ix86_expand_prologue): Compute remaining stack allocation based
14686 on the ultimate stack pointer offset.
14687 (ix86_expand_epilogue): Use more obvious expressions testing for
14688 the stack pointer already pointing to the saved registers.
14690 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
14691 duplication deconstructing the frame pointer. Simplify
14692 deallocation of the local stack frame.
14694 * reg-notes.def (CFA_EXPRESSION): New.
14695 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14696 (dwarf2out_frame_debug_cfa_expression): New.
14697 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
14699 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
14700 * config/i386/i386.c (ix86_expand_prologue): Set it.
14701 (ix86_expand_epilogue): Clear it.
14702 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
14703 context, add REG_CFA_EXPRESSION notes.
14705 * config/i386/i386.h (struct machine_frame_state): Rename from
14706 machine_cfa_state. Add members tracking SP and FP regardless
14707 of the current CFA register.
14708 (ix86_cfa_state): Remove.
14709 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
14710 and sse_reg_save_offset members.
14711 (ix86_compute_frame_layout): Set them.
14712 (gen_push): Increment sp_offset too.
14713 (choose_baseaddr_len, choose_baseaddr): New.
14714 (ix86_emit_save_reg_using_mov): New.
14715 (ix86_emit_save_regs_using_mov): Use it.
14716 (ix86_emit_save_sse_regs_using_mov): Likewise.
14717 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
14718 compare vs the saved red_zone_offset.
14719 (pro_epilogue_adjust_stack): Adjust sp_offset.
14720 (ix86_adjust_stack_and_probe): Likewise.
14721 (ix86_expand_prologue): Set up, use, and validate the new
14722 frame_state_info members. Use gen_frame_mem.
14723 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
14724 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
14725 new frame_state_info members.
14726 (ix86_emit_leave): Likewise.
14727 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
14728 out-of-range stack pointer offsets here.
14729 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14730 (ix86_expand_epilogue): Use and validate the new frame_state_info
14731 members. Break up and simplify the logic selecting the
14732 restore_regs_via_mov code path. Ensure that there will be no
14733 out-of-range stack pointer offsets.
14735 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
14737 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
14738 argument name to reflect the expected tree; fix indentation.
14739 (ix86_asm_output_function_label): Output the entire 32-bit
14740 ms_hook here as bytes ...
14741 (ix86_expand_prologue): ... not here as insns. Attach the
14742 unwind info for the ms_hook to a blockage insn.
14743 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
14744 (ix86_ms_bitfield_layout_p): Fix indentation.
14745 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
14747 * config/i386/i386.c (ix86_using_red_zone): New.
14748 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
14749 ix86_expand_prologue, ix86_force_to_memory): Use it.
14751 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
14752 saving the int registers.
14754 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
14755 and DWARF2_UNWIND_INFO conditional compilation.
14757 2010-08-04 Richard Henderson <rth@redhat.com>
14760 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
14761 an is_naming_typedef_decl.
14763 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
14765 PR rtl-optimization/45162
14766 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
14767 * dce.c (word_dce_process_block): Likewise.
14769 2010-08-04 Steve Ellcey <sje@cup.hp.com>
14772 * config/ia64/constraints.md (Z): New.
14773 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
14774 (xfreg_or_signed_fp01_operand): New.
14775 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
14776 with fr_reg_or_signed_fp01_operand and constraint G with Z.
14781 (adddf3_trunc): Ditto.
14783 (*subdf3_trunc): Ditto.
14785 (*madddf4_trunc): Ditto.
14787 (*msubdf4_trunc): Ditto.
14788 (addxf3): Replace xfreg_or_fp01_operand with
14789 xfreg_or_signed_fp01_operand and constraint G with Z.
14790 (*addxf3_truncsf): Ditto.
14791 (*addxf3_truncdf): Ditto.
14793 (*subxf3_truncsf): Ditto.
14794 (*subxf3_truncdf): Ditto.
14796 (*maddxf4_truncsf): Ditto.
14797 (*maddxf4_truncdf): Ditto.
14799 (*msubxf4_truncsf): Ditto.
14800 (*msubxf4_truncdf): Ditto.
14802 2010-08-04 Richard Guenther <rguenther@suse.de>
14804 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
14805 if either alias-set is zero.
14807 2010-08-04 Richard Guenther <rguenther@suse.de>
14809 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
14810 * tree-ssa-ccp.c: ... here.
14811 * tree-ssa-copy.c: ... and here.
14812 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
14813 value_range_t): Move ...
14814 * tree-vrp.c: ... here.
14815 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
14816 (substitute_and_fold): Adjust prototype.
14817 * tree-ssa-propagate.c (replace_uses_in): Adjust.
14818 (replace_phi_args_in): Likewise.
14819 (substitute_and_fold): Take callback to query lattice instead
14820 of pointer to lattice. Replace SSA name defs with lattice
14822 * tree-ssa-ccp.c (ccp_finalize): Adjust.
14823 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
14824 (get_value): New function.
14825 (fini_copy_prop): Adjust.
14826 * tree-vrp.c (vrp_finalize): Adjust.
14828 2010-08-04 Richard Guenther <rguenther@suse.de>
14830 PR middle-end/45176
14831 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
14832 points-to set for original MEM_REF.
14834 2010-08-04 Richard Guenther <rguenther@suse.de>
14836 * tree-ssa-ccp.c (get_constant_value): New function.
14837 (get_rhs_assign_op_for_ccp): Remove.
14838 (valueize_op): New function.
14839 (ccp_fold): Use get_constant_value and valueize_op.
14840 (fold_const_aggregate_ref): Likewise.
14841 (ccp_fold_stmt): Likewise.
14842 (visit_assignment): Simplify.
14844 2010-08-04 Richard Guenther <rguenther@suse.de>
14846 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
14847 * double-int.h (double_int_ctz): Declare.
14848 * double-int.c (double_int_ctz): New function.
14850 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
14852 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
14854 picochip_expand_movmemhi : Expand movmem pattern.
14855 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
14857 * config/picochip/picochip.md (movmemhi) : New pattern.
14859 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
14861 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
14863 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
14865 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
14866 NEG as operand of a MULT by merging it with the other operand.
14867 * combine.c (make_compound_operation): Use trunc_int_for_mode when
14868 generating a MULT with constant. Canonicalize PLUS and MINUS involving
14870 * config/arm/constraints.md (M): Examine only 32 bits of a
14872 * config/arm/predicates.md (power_of_two_operand): Likewise.
14874 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14876 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
14879 2010-08-03 Jan Hubicka <jh@suse.cz>
14881 * ipa-split.c (struct split_point): Add split_part_set_retval.
14882 (find_retval): Forward declare.
14883 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
14884 (consider_split): Compute current->split_part_set_retval.
14885 (visit_bb): Do not look into return value.
14886 (split_function): Handle !split_part_set_retval
14888 2010-08-03 Martin Jambor <mjambor@suse.cz>
14890 * tree-sra.c (completely_scalarize_record): New parameter REF, create
14891 its own access->expr intead of using build_ref_for_offset.
14893 2010-08-03 Joseph Myers <joseph@codesourcery.com>
14895 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
14896 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
14897 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
14898 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
14899 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
14900 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
14901 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
14902 DEFAULT_SWITCH_TAKES_ARG.
14903 * config/rx/rx.opt (-patch=): Remove option.
14904 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
14905 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
14906 * doc/invoke.texi (RX Options): Remove -patch=.
14907 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
14908 (option_map): Remove --profile-blocks, --quiet and --silent.
14910 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
14912 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
14913 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
14914 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
14915 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14916 Update calls to ix86_expand_compare and ix86_expand_branch.
14917 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
14918 ix86_expand_compare.
14919 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
14920 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14922 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
14923 and ix86_compare_op1. Update calls to ix86_expand_compare.
14924 (ix86_expand_int_movcc): Ditto.
14925 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
14926 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
14927 (ix86_expand_setcc): Ditto.
14928 (ix86_expand_compare): Remove prototype.
14929 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
14930 ix86_compare_op0 and ix86_compare_op1. Update calls
14931 to ix86_expand_branch to directly pass operands[1] and operands[2].
14932 (cbranchxf4): Ditto.
14933 (cbranch<MODEF:mode>4): Ditto.
14934 (cbranchcc4): Ditto.
14935 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
14936 Update calls to ix86_expand_setcc to directly pass operands[2] and
14938 (cstorexf4): Ditto.
14939 (cstore<MODEF:mode>4): Ditto.
14940 (cstorecc4): Ditto.
14942 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
14945 * caller-save.c (save_call_clobbered_regs): Remove regs from
14946 hard_regs_saved when they are set.
14948 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14951 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14954 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
14956 * common.opt (ftree-loop-distribute-patterns): New.
14957 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
14958 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
14960 * tree-data-ref.c (stores_zero_from_loop): New.
14961 * tree-data-ref.h (stores_zero_from_loop): Declared.
14962 * tree-loop-distribution.c (tree_loop_distribution): Call
14963 stores_zero_from_loop.
14964 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
14966 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
14968 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
14971 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
14972 * config/arm/arm.c (thumb1_code): New variable.
14973 (arm_override_options): Set it.
14974 (thumb1_final_prescan_insn): Keep track of condition code status.
14975 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
14976 jumps that depend on them.
14977 * config/arm/arm.h (thumb1_code): Declare variable.
14978 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
14979 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
14981 (CC_STATUS_INIT): New macro.
14982 * config/arm/constraints.md (Pd): New constraint.
14983 * config/arm/predicates.md (noov_comparison_operator): New predicate.
14984 * config/arm/arm.md (is_thumb1): New define_attr.
14985 (conds): Set default to "clob" when generating Thumb1 code.
14986 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
14987 code are set. Use two-operand assembly syntax.
14988 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
14990 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
14991 codes are set. Use two-operand assembly syntax.
14992 (zero_extendhisi splitter): Remove constraints.
14993 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
14994 thumb1_movsf_insn): Set conds attribute as appropriate.
14995 (cbranchsi4_insn): Use condition code status from struct
14996 machine_function to determine whether the comparison can be eliminated.
14997 Discourage the alternative using high registers.
14998 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
14999 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
15000 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
15001 subsi3_cbranch): Delete.
15002 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
15003 one subtract and one cbranch insn.
15005 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
15006 thumb2_movdf_soft_insn): Delete patterns.
15007 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
15008 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
15009 (pool_range, neg_pool_range): Use them to define defaults.
15010 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
15011 and allow for TARGET_32BIT.
15014 * config/arm/arm.h (arm_regs_in_sequence): Declare.
15015 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
15016 load_multiple_sequence, store_multiple_sequence): Delete
15018 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
15020 * config/arm/ldmstm.md: New file.
15021 * config/arm/arm.c (arm_regs_in_sequence): New array.
15022 (load_multiple_sequence): Now static. New args SAVED_ORDER,
15023 CHECK_REGS. All callers changed.
15024 If SAVED_ORDER is nonnull, copy the computed order into it.
15025 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
15026 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
15027 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
15028 If SAVED_ORDER is nonnull, copy the computed order into it.
15029 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
15030 like REGS. Handle Thumb mode.
15031 (arm_gen_load_multiple_1): New function, broken out of
15032 arm_gen_load_multiple.
15033 (arm_gen_store_multiple_1): New function, broken out of
15034 arm_gen_store_multiple.
15035 (arm_gen_multiple_op): New function, with code from
15036 arm_gen_load_multiple and arm_gen_store_multiple moved here.
15037 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
15038 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
15040 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
15041 * config/arm/predicates.md (commutative_binary_operator): New.
15042 (load_multiple_operation, store_multiple_operation): Handle more
15043 variants of these patterns with different starting offsets. Handle
15045 * config/arm/arm.md: Include "ldmstm.md".
15046 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
15047 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
15048 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
15049 peepholes): Delete.
15050 * config/arm/ldmstm.md: New file.
15051 * config/arm/arm-ldmstm.ml: New file.
15053 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
15054 if statement which adds extra costs to frame-related expressions.
15056 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15058 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
15060 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
15063 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
15065 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
15066 split V4SI operands.
15068 2010-08-01 Anatoly Sokolov <aesok@post.ru>
15070 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15071 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
15072 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
15073 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15075 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
15077 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
15080 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
15082 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
15083 used in the call to optab_for_tree_code. Fix the second
15084 is_widening_mult_p call. Check that both unwidened operands
15085 have the same sign.
15087 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
15089 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
15091 2010-07-31 Anatoly Sokolov <aesok@post.ru>
15093 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15095 2010-07-30 DJ Delorie <dj@redhat.com>
15097 * config/rx/predicates.md (rx_constshift_operand): New.
15098 * config/rx/rx.md (zs_cond): New.
15099 (cbranchsi4): Remove mode.
15100 (*cbranchsi4_<code>): Likewise.
15101 (*tstbranchsi4_<code>): New.
15102 (*tstbranchsi4r_<code>): New.
15103 (*tstbranchsi4m_eq): New.
15104 (*tstbranchsi4m_ne): New.
15105 (cbranchsf4): Remove mode.
15106 (*cbranchsf4_<code>): Likewise.
15108 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
15110 * rtlanal.c (simplify_subreg_regno): Don't treat
15111 HARD_FRAME_POINTER_REGNUM specially.
15113 2010-07-30 Joseph Myers <joseph@codesourcery.com>
15115 * common.opt (-G): Don't define option here.
15116 * config/g.opt: New.
15117 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
15118 rs6000/powerpc and score targets.
15119 * opts.c (common_handle_option): Don't handle -G here.
15120 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
15121 * config/frv/frv.c (frv_handle_option): Handle -G.
15122 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
15123 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
15124 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
15125 * config/mips/mips.c (mips_handle_option): Handle -G.
15126 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
15127 * config/score/score.c (score_handle_option): Handle -G.
15129 2010-07-30 Anatoly Sokolov <aesok@post.ru>
15131 * config/mmix/mmix.c: Include basic-block.h.
15133 2010-07-30 Jakub Jelinek <jakub@redhat.com>
15136 PR rtl-optimization/45137
15137 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
15139 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
15141 * combine.c (next_nonnote_nondebug_insn): Removed.
15142 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
15143 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
15144 * sched-deps.c (sched_analyze_insn): Likewise.
15145 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
15146 * rtlanal.c (canonicalize_condition): Likewise.
15147 * postreload.c (reload_combine_recognize_pattern): Likewise.
15148 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
15150 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
15152 * config/i386/i386.md (int_cond): Remove code iterator.
15154 (cbranch<mode>4): Use ordered_comparison_operator predicate
15156 (cstore<mode>4): Ditto for operator1.
15157 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
15158 (add<mode>cc): ditto.
15160 2010-07-30 Richard Guenther <rguenther@suse.de>
15162 PR middle-end/45141
15163 * expr.c (expand_expr_real_1): Check for not handled base address.
15165 2010-07-30 Richard Guenther <rguenther@suse.de>
15167 * ipa-prop.c (ipa_modify_formal_parameters): Use
15168 build_distinct_type_copy.
15170 2010-07-30 Anthony Green <green@moxielogic.com>
15172 * config/moxie/rtems.h: New file.
15173 * config.gcc: Add moxie-rtems support.
15175 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
15177 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
15178 df flags as in run_fast_df_dce.
15180 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15183 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15185 * rtl.def (NOTE): Swap operands 4 and 5.
15186 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
15187 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
15188 Adjust accordingly.
15189 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
15191 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15194 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
15195 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
15196 (gen_subprogram_die): Likewise. Remove it when removing declaration's
15198 (gen_decl_die): Change return type to dw_die_ref, return what
15199 gen_formal_parameter_die returned.
15201 2010-07-29 Martin Jambor <mjambor@suse.cz>
15203 * dbgcnt.def (eipa_sra): New counter.
15204 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
15206 2010-07-29 Xinliang David Li <davidxl@google.com>
15209 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
15210 in revision 162652.
15212 2010-07-29 Richard Guenther <rguenther@suse.de>
15214 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
15215 (TV_TREE_STORE_CCP): Likewise.
15216 (TV_TREE_REDPHI): Likewise.
15218 2010-07-29 Richard Guenther <rguenther@suse.de>
15220 * double-int.h (double_int_and_not): New function.
15221 * combine.c (try_combine): Use it.
15222 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
15224 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
15226 PR rtl-optimization/42575
15227 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
15228 Argument AU removed. All callers changed. Ignore artificial refs.
15229 Use return value of df_word_lr_simulate_defs to decide whether an insn
15231 (fast_dce): Rename arg to WORD_LEVEL.
15232 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
15234 (pass_fast_rtl_byte_dce): Delete.
15235 * dce.h (run_word_dce): Declare.
15236 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
15237 All callers changed. Simplify code to only deal with two-word regs.
15238 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
15239 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
15240 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
15241 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
15242 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
15243 (df_word_lr_mark_ref): Declare.
15244 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
15245 df_word_lr_simulate_uses): Declare or rename from byte variants.
15246 (df_byte_lr_simulate_artificial_refs_at_top,
15247 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15248 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
15250 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
15251 (enum df_mm): Delete.
15252 * df-byte-scan.c: Delete file.
15253 * df-problems.c (df_word_lr_problem_data): Renamed from
15254 df_byte_lr_problem_data, all members deleted except for
15255 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
15256 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
15257 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15258 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
15259 df_byte_lr_confluence_0): Delete functions.
15260 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
15262 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
15263 Don't initialize members that were deleted, don't try to discover data
15264 about registers. Ignore hard regs.
15265 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
15266 (df_word_lr_mark_ref): New function.
15267 (df_word_lr_bb_local_compute): Renamed from
15268 df_byte_bb_lr_local_compute; all callers changed. Use
15269 df_word_lr_mark_ref. Assert that artificial refs don't include
15270 pseudos. Ignore hard registers.
15271 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
15272 Assert that exit block uses don't contain pseudos.
15273 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
15274 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
15275 callers changed. Ignore hard regs.
15276 (df_word_lr_transfer_function): Renamed from
15277 df_byte_lr_transfer_function; all callers changed.
15278 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
15279 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
15281 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
15283 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
15284 confluence operator 0 set to NULL.
15285 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
15287 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
15288 Return bool, true if bitmap changed or insn otherwise necessary.
15289 All callers changed. Simplify using df_word_lr_mark_ref.
15290 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
15291 all callers changed. Simplify using df_word_lr_mark_ref.
15292 * lower-subreg.c: Include "dce.h"
15293 (decompose_multiword_subregs): Call run_word_dce if df available.
15294 * Makefile.in (lower-subreg.o): Adjust dependencies.
15295 (df-byte-scan.o): Delete.
15296 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
15298 2010-07-29 Richard Guenther <rguenther@suse.de>
15300 * tree.c (build_vector): Assert that the vector constant
15301 has enough elements.
15302 (build_vector_from_ctor): Pad with trailing zeros.
15304 2010-07-29 Richard Guenther <rguenther@suse.de>
15306 PR tree-optimization/45120
15307 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15308 Handle offset in DEREFs properly.
15309 (get_constraint_for_1): Handle MEM_REF offset properly.
15311 2010-07-29 Richard Guenther <rguenther@suse.de>
15313 PR middle-end/45034
15314 * convert.c (convert_to_integer): Always use an unsigned
15315 type for narrowed negate and bitwise not.
15317 2010-07-29 Ira Rosen <irar@il.ibm.com>
15319 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
15320 to outer loop when creating reduction epilogue for double reduction,
15321 and switch back to the inner loop when updating the phi nodes.
15322 Update uses of outer loop exit phi nodes in double reduction (instead
15323 of uses of reduction).
15325 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15327 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
15328 popcount on power7 and parity on power6 systems.
15329 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
15330 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
15333 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
15334 (UNSPEC_PARITY): Ditto.
15335 (SFDF): New iterator for SF/DF.
15336 (rreg2): New mode attribute for floating register constraint.
15337 (TARGET_FLOAT): New mode attribute for whether single/double float
15339 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
15341 (parity<mode>2_cmpb): New insn for parity on power6 and newer
15343 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
15344 pattern. Add support for fcpsgn instruction added in power6.
15345 (copysignsf3): Delete.
15346 (copysigndf3): Delete.
15347 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
15348 instead of if_then_else in RTL to avoid problems with -0.
15350 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
15351 of if_then_else to mirror scalar code.
15352 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
15355 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
15356 instead of if_then_else.
15358 2010-07-28 Xinliang David Li <davidxl@google.com>
15360 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
15361 (dump_cand): Dump var_before/after.
15362 (htab_inv_expr_eq): New function.
15363 (htab_inv_expr_hash): New function.
15364 (tree_ssa_iv_optimize_init): Support pseudo invariants.
15365 (add_candidate_1): consider base type precision.
15366 (set_use_iv_cost): New parameter.
15367 (adjust_setup_cost): Use profile information.
15368 (get_address_cost): Do not hard code width in computing address
15370 (compare_aff_trees): New function.
15371 (get_loop_invariant_expr_id): New function.
15372 (get_computation_cost_at): New parameter and use profile information.
15373 (get_computation_cost): New parameter.
15374 (determine_use_iv_cost_generic): Pass new parameter.
15375 (determine_use_iv_cost_address): Ditto.
15376 (determine_use_iv_cost_condition): Ditto.
15377 (autoinc_possible_for_pair): Ditto.
15378 (determine_use_iv_costs): More dumps.
15379 (iv_ca_get_num_inv_exprs): New function.
15380 (iv_ca_recount_cost): Consider loop invariants in register pressure
15382 (iv_ca_add_use): New parameter.
15383 (iv_ca_dump): Better dumping.
15384 (iv_ca_extend): New parameter.
15385 (try_add_cand_for): Attempt to get better partial solution.
15386 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
15387 (create_new-ivs): More dumps.
15388 (rewrite_use_compare): Ditto.
15389 (free_loop_data): More cleanup.
15390 (treee_ssa_iv_optimize_finalize): Ditto.
15392 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
15394 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
15395 * config/i386/i386.c (ix86_profile_before_prologue): New.
15396 (override_options): Add special handling for -mfentry.
15397 (ix86_function_regparm): Likewise.
15398 (ix86_function_sseregparm): Likewise.
15399 (ix86_frame_pointer_required): Likewise.
15400 (ix86_expand_prologue): Check for ms_hook_prologue.
15401 (x86_function_profiler): Adjust mcount output.
15402 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
15403 * config/i386/i386.opt (mfentry): New.
15404 * doc/invoke.texi (mfentry): Add documentation.
15405 * doc/tm.texi: Regenerated..
15406 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
15407 * final.c (final_start_function): Replace macro
15408 PROFILE_BEFORE_PROLOGUE by target hook.
15409 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15410 * target.def (profile_before_prologue): New hook.
15411 * targhooks.c (default_profile_before_prologue): New.
15412 * targhooks.h (default_profile_before_prologue): New.
15414 2010-07-28 Jakub Jelinek <jakub@redhat.com>
15417 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
15420 * dwarf2out.c (dwarf2out_var_location): Always consider
15421 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
15423 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
15425 PR rtl-optimization/45107
15426 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
15428 2010-07-28 Richard Guenther <rguenther@suse.de>
15430 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
15431 (set_lattice_value): Do not query an old default value.
15432 (get_value_for_expr): New function. Properly canonicalize
15434 (ccp_visit_phi_node): Use it.
15436 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
15438 * config/arm/arm.c (arm_pcs_default): Remove static.
15439 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
15440 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
15441 (arm_pcs_default): Declare.
15443 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
15445 * config/rs6000/rs6000.c (rs6000_override_options):
15446 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
15447 ... to darwin_rs6000_override_options.
15448 (rs6000_return_in_memory): Update preceding comment for darwin
15449 64 bit ABI. Use TARGET_MACHO inline.
15450 (rs6000_darwin64_struct_check_p): New.
15451 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
15452 (function_arg): Likewise.
15453 (rs6000_arg_partial_bytes): Likewise.
15454 (rs6000_function_value): Likewise.
15456 2010-07-28 Andi Kleen <ak@linux.intel.com>
15458 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
15460 2010-07-28 Richard Guenther <rguenther@suse.de>
15462 PR middle-end/44903
15463 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
15464 targets try harder to not generate unaligned accesses.
15466 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
15468 PR rtl-optimization/45101
15469 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
15472 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
15474 PR tree-optimization/44885
15475 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
15476 with non-aliased component.
15478 2010-07-28 Joseph Myers <joseph@codesourcery.com>
15480 * config/darwin-driver.c (SWITCH_TAKES_ARG,
15481 WORD_SWITCH_TAKES_ARG): Remove.
15482 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
15483 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
15484 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
15485 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
15486 definitions from gcc.c.
15487 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
15489 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
15490 Move to defaults.h.
15491 * opts-common.c: Include tm.h.
15492 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
15493 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
15494 Handle more than one argument. Set canonical_option_num_elements.
15495 (decode_cmdline_options_to_array): Set
15496 canonical_option_num_elements and trailing elements of
15498 * opts.h (struct cl_decoded_option): Allow four elements in
15499 canonical_option. Add field canonical_option_num_elements.
15500 * Makefile.in (opts-common.o): Update dependencies.
15502 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
15504 PR middle-end/44790
15505 PR middle-end/44993
15506 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
15507 sure the base has address_mode before adding the offset.
15509 2010-07-27 Xinliang David Li <davidxl@google.com>
15511 * tree-flow.h (create_mem_ref): Add one new parameter.
15512 * tree-ssa-address.c (create_mem_ref): New parameter.
15513 (addr_to_parts): Ditto.
15514 (move_variant_to_index): New function.
15515 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
15517 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15519 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
15521 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
15522 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
15523 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
15524 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
15525 CODE_LABELs and NOTEs.
15526 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
15527 * combine.c (try_combine): Likewise.
15528 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15529 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
15531 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15533 * coretypes.h (struct cl_option_handlers): Declare.
15534 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
15535 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
15536 * langhooks-def.h (lhd_handle_option): Declare.
15537 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
15538 * langhooks.c (lhd_handle_option): New.
15539 * langhooks.h (struct lang_hooks): Update prototype and return
15540 value type of handle_option hook.
15541 * optc-gen.awk: Generate target_flags_explicit definition for the
15543 * opts-common.c: Include diagnostic.h.
15544 (handle_option): Move from opts.c. Update prototype and return
15545 value type. Use handlers structure.
15546 (read_cmdline_option): Move from opts.c. Update prototype. Use
15547 handlers structure.
15548 (set_option): Move from opts.c.
15549 * opts.c (common_handle_option): Update prototype and return value
15550 type. Update calls to handle_option and enable_warning_as_error.
15551 (unknown_option_callback, post_handling_callback,
15552 lang_handle_option, target_handle_option): New.
15553 (handle_option, read_cmdline_option): Move to opts-common.c.
15554 (read_cmdline_options): Update prototype. Update call to
15555 read_cmdline_option.
15556 (decode_options): Initialize and use handlers structure.
15557 (set_option): Move to opts-common.c.
15558 (enable_warning_as_error): Update prototype. Update call to
15560 * opts.h (struct cl_option_handler_func, struct
15561 cl_option_handlers): New.
15562 (handle_option, enable_warning_as_error): Update prototypes.
15563 (read_cmdline_option): Declare.
15564 * Makefile.in (opts-common.o): Update dependencies.
15566 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15568 * config/arm/arm.c (params.h): Include.
15569 (arm_override_options): Tune gcse-unrestricted-cost.
15570 * config/arm/t-arm (arm.o): Define dependencies.
15572 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15575 PR middle-end/42574
15576 * basic-block.h (get_dominated_to_depth): Declare.
15577 * dominance.c (get_dominated_to_depth): New function, use
15578 get_all_dominated_blocks as a base.
15579 (get_all_dominated_blocks): Use get_dominated_to_depth.
15581 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
15582 (hoist_exprs): Remove.
15583 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
15584 (compute_code_hoist_vbeinout): Add debug print outs.
15585 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
15587 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
15588 quadratic behavior.
15589 * params.h (MAX_HOIST_DEPTH): New macro.
15590 * doc/invoke.texi (max-hoist-depth): Document.
15592 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15594 PR rtl-optimization/40956
15595 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
15598 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15601 PR middle-end/42574
15602 * config/arm/arm.c (legitimize_pic_address): Use
15603 gen_calculate_pic_address pattern to emit calculation of PIC address.
15604 (will_be_in_index_register): New function.
15605 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
15606 (thumb1_legitimate_address_p): Use it provided !strict_p.
15607 * config/arm/arm.md (calculate_pic_address): New expand and split.
15609 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15612 PR middle-end/42574
15613 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
15614 * config/arm/arm.md (define_split "J", define_split "K"): Make
15615 IRA/reload friendly.
15617 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15619 * gcse.c (insert_insn_end_basic_block): Update signature, remove
15621 (pre_edge_insert, hoist_code): Update.
15623 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15626 PR middle-end/42574
15627 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
15629 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15631 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
15633 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15635 PR rtl-optimization/40956
15637 PR middle-end/42574
15638 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
15640 (hoist_code): Count occurences in current block too.
15642 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15644 * gcse.c (struct expr:max_distance): New field.
15645 (doing_code_hoisting_p): New static variable.
15646 (want_to_gcse_p): Change signature. Allow constrained hoisting of
15647 simple expressions, don't change behavior for PRE. Set max_distance.
15648 (insert_expr_in_table): Set new max_distance field.
15649 (hash_scan_set): Update.
15650 (hoist_expr_reaches_here_p): Stop search after max_distance
15652 (find_occr_in_bb): New static function. Use it in ...
15653 (hoist_code): Calculate sizes of basic block before any changes are
15654 done. Pass max_distance to hoist_expr_reaches_here_p.
15655 (one_code_hoisting_pass): Set doing_code_hoisting_p.
15657 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
15658 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
15659 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
15661 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
15664 2010-07-27 Jeff Law <law@redhat.com>
15665 Maxim Kuvyrkov <maxim@codesourcery.com>
15667 * gcse.c (compute_transpout, transpout): Remove, move logic
15668 to prune_expressions.
15669 (compute_pre_data): Move pruning of trapping expressions ...
15670 (prune_expressions): ... here. New static function.
15671 (compute_code_hoist_data): Use it.
15672 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
15674 2010-07-27 Xinliang David Li <davidxl@google.com>
15676 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
15677 (rewrite_use_address): Adjust iv update position when needed.
15679 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15681 * dbgcnt.def (hoist_insn): New debug counter.
15682 * gcse.c (hoist_code): Use it.
15684 2010-07-27 Xinliang David Li <davidxl@google.com>
15686 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
15687 (niter_for_single_dom_exit): Passes additional parameter.
15688 (iv_period): Fix comments.
15689 (may_eliminate_iv): Handles multiple exit loops properly.
15690 (free_tree_niter_desc): New function.
15691 (free_loop_data): Frees up loop iteration descriptors.
15693 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15696 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
15697 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
15698 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
15699 (expand_one_var): Don't consider DECL_ALIGN for variables for
15700 which expand_one_stack_var_at has been already called.
15703 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
15704 constraints on IA-64.
15706 2010-07-27 Jie Zhang <jie@codesourcery.com>
15710 2010-07-23 Jie Zhang <jie@codesourcery.com>
15712 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15713 false if ! tree_versionable_function_p.
15715 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15717 * dwarf2out.c (add_data_member_location_attribute): Use
15718 add_AT_unsigned instead of add_AT_int if offset is non-negative.
15720 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15722 * postreload.c (try_replace_in_use): New static function.
15723 (reload_combine_recognize_const_pattern): Use it here. Allow
15724 substituting into a final add insn, and substituting into a memory
15725 reference in an insn that sets the reg.
15727 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15729 * common.opt (o): Add MissingArgError.
15730 * doc/options.texi (MissingArgError): Document.
15731 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
15732 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
15733 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
15734 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
15735 * langhooks.h (struct lang_hooks): Remove missing_argument.
15736 * optc-gen.awk: Handle MissingArgError and output new structure
15737 field initializers.
15738 * opts.c (read_cmdline_option): Use missing_argument_error field
15739 instead of missing_argument langhook.
15740 * opts.h (struct cl_option): Add missing_argument_error field.
15741 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
15743 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
15746 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
15747 Darwin64 ABI, for zero-sized objects.
15749 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
15754 Merge from Apple local 4.2.1.
15755 2005-05-11 Stan Shebs <shebs@apple.com>
15756 Fix 64-bit varargs for Darwin (Radar 4028089).
15757 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
15758 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
15759 Add argument, add case for 8-byte register half-filled with a float.
15760 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
15761 single-precision floats specially.
15763 2010-07-27 Ira Rosen <irar@il.ibm.com>
15765 PR tree-optimization/44152
15766 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
15767 complex numbers for further check.
15768 (vect_supported_load_permutation_p): Check nodes with
15771 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15773 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
15774 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
15775 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
15776 (LANG_HOOKS_INITIALIZER): Add new hooks.
15777 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
15778 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
15779 and complain_wrong_lang_p. Update init_options prototype.
15780 * c-objc-common.c (c_initialize_diagnostics): First call
15781 c_common_initialize_diagnostics.
15782 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
15783 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
15784 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
15785 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
15786 (hook_uint_void_0): New.
15787 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
15788 (hook_uint_void_0): New.
15789 * opts-common.c (decode_cmdline_option,
15790 decode_cmdline_options_to_array): Also fill in canonical_option field.
15791 * opts.c (complain_wrong_lang): Use langhook to determine whether
15792 to complain instead of special-casing LTO.
15793 (decode_options): Separate lang_mask determination with
15794 option_lang_mask hook from call of init_options hook.
15795 * opts.h (struct cl_decoded_option): Add canonical_option.
15797 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15799 PR tree-optimization/45083
15800 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
15802 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15804 * postreload.c (reload_combine_recognize_const_pattern): Move test
15805 for limiting the insn movement to the right scope.
15807 PR rtl-optimization/45051
15808 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
15809 than reg_mentioned_p.
15811 2010-07-26 Richard Henderson <rth@redhat.com>
15814 * tree-emutls.c: New file.
15815 * Makefile.in (OBJS-common): Add it.
15816 * tree-pass.h (pass_ipa_lower_emutls): Declare.
15817 * passes.c (init_optimization_passes): Add it.
15819 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
15820 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
15821 * expr.c (emutls_var_address): Delete.
15822 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
15823 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
15824 (emutls_finish): Delete.
15825 * toplev.c (compile_file): Don't call it.
15826 * tree.h (emutls_decl): Delete.
15827 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
15828 (emutls_finish, emutls_finalize_control_var): Delete.
15829 (emutls_object_type): Move to tree-emutls.c.
15830 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
15831 default_emutls_var_fields, get_emutls_object_type,
15832 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
15833 default_emutls_var_init): Likewise.
15834 (get_variable_section): Don't special case emutls.
15835 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
15836 default_elf_select_section, default_unique_section,
15837 default_encode_section_info): Likewise.
15838 * varpool.c (decide_is_variable_needed): Likewise.
15839 * gimple-iterator.c (update_call_edge_frequencies): New
15840 (gsi_insert_on_edge_immediate): Use it.
15841 (gsi_insert_seq_on_edge_immediate): Likewise.
15842 (gsi_commit_one_edge_insert): Likewise.
15844 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
15845 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
15846 (x86_64_elf_unique_section): Likewise.
15848 2010-07-26 Jan Hubicka <jh@suse.cz>
15850 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
15853 2010-07-26 Anatoly Sokolov <aesok@post.ru>
15855 * target.def (output_source_filename): New hook.
15856 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
15857 * doc/tm.texi: Regenerate.
15858 * toplev.c (output_file_directive) Remove function.
15859 * toplev.h (output_file_directive) Remove.
15860 * output.h (default_asm_output_source_filename,
15861 output_file_directive): Declare.
15862 * varasm.h (default_asm_output_source_filename,
15863 output_file_directive): New functions.
15865 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15866 * config/mips/mips-protos.h (mips_output_filename): Remove.
15867 * config/mips/mips.c (mips_output_filename): Make Static.
15868 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15870 2010-07-26 Richard Guenther <rguenther@suse.de>
15872 PR tree-optimization/43784
15873 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
15874 if the destination is used by the call.
15876 2010-07-26 Richard Guenther <rguenther@suse.de>
15878 PR middle-end/45073
15879 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
15880 SSA updating on being in SSA form.
15882 2010-07-26 Richard Guenther <rguenther@suse.de>
15884 PR middle-end/45056
15885 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
15887 2010-07-26 Richard Guenther <rguenther@suse.de>
15889 PR tree-optimization/45071
15890 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
15893 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
15895 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
15896 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
15897 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
15898 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
15899 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
15900 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
15901 save_r31, return_r31, save_interrupt, return_interrupt,
15902 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
15903 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
15904 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
15905 new ABI requirements.
15906 (save_r6_r9, L_callt_save_r6_r9): Remove.
15907 * config/v850/predicates.md (even_reg_operand, disp23_operand,
15908 const_float_1_operand const_float_0_operand): New Predicates.
15909 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
15910 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
15911 * config/v850/t-v850: Update multilibs for new target variants.
15912 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
15913 * config/v850/t-v850e: Likewise.
15914 * config/v850/v850.c (v850_issue_rate): New.
15915 (v850_strict_argument_naming): New.
15916 (function_arg): Modify to generate a different ABI.
15917 (print_operand): Update case 'z' to support float modes.
15918 (output_move_single): Modify to generate appropriate and better
15920 (v850_float_z_comparison_operator, v850_select_cc_mode,
15921 v850_float_nz_comparison_operator, v850_gen_float_compare,
15922 v850_gen_compare): New functions to support comparison of float values.
15923 (ep_memory_offset): Add support for V850E2 targets.
15924 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
15925 (INTERRUPT_REGPARM_NUM): Remove.
15926 (compute_register_save_size): Add extra case to save/restore long call.
15927 (use_prolog_function): New function to support prologue.
15928 (expand_prologue): Add support for V850E2 targets and modified
15929 as per the current ABI requirements.
15930 (expand_epilogue): Likewise.
15931 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
15932 (construct_save_jarl): Likewise.
15933 (construct_dispose_instruction): Update as per the current ABI
15935 (construct_prepare_instruction): Likewise.
15936 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
15937 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
15938 (CPP_SPEC): Updated to support v850e2 targets.
15939 (STRICT_ALIGNMENT): Modified.
15940 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
15941 (FIXED_REGISTERS): Likewise.
15942 (CALL_USED_REGISTERS): Likewise.
15943 (CONDITIONAL_REGISTER_USAGE): Updated.
15944 (HARD_REGNO_MODE_OK): Updated.
15945 (reg_class): Updated to add even registers.
15946 (REG_CLASS_NAMES): Likewise.
15947 (REG_CLASS_CONTENTS): Likewise.
15948 (REGNO_REG_CLASS): Updated for CC registers.
15949 (REG_CLASS_FROM_LETTER): Added support for even registers.
15950 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
15951 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
15952 ARG_POINTER_REGNUM): Updated.
15953 (FUNCTION_ARG_ADVANCE): Define.
15954 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
15955 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
15956 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
15957 (GO_IF_LEGITIMATE_ADDRESS): Updated.
15958 (SELECT_CC_MODE): Define.
15959 (REGISTER_NAMES): Updated to add psw and fcc registers.
15960 (ADDITIONAL_REGISTER_NAMES): Updated.
15961 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
15962 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
15963 * config/v850/v850.md (define_constants): Define new constants.
15964 (type): Update store,bit1,macc,div,fpu and single attributes.
15965 (cpu): New attribute.
15966 (cc): Add set_z attribute.
15967 (unsign23byte_load, sign23byte_load, unsign23hword_load,
15968 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
15969 23word_store): New instructions for 23-bit displacement load and store.
15970 (movqi_internal, movhi_internal): Update the attributes.
15971 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
15972 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
15974 (v850_tst1): Modified using CC_REGNUM.
15976 (cmpsi): Modified as define_expand from define_insn.
15977 (cmpsi_insn, cmpsf, cmpdf): New instructions.
15978 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
15979 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
15980 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
15981 one_cmplsi2): Clobber the CC_REGNUM register.
15982 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
15983 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
15984 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
15985 (setf_insn, set_z_insn, set_nz_insn): New instructions for
15987 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
15988 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
15990 (sasf_1, sasf_2): Remove.
15991 (sasf): New instruction.
15992 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
15993 targets. CC_REGNUM register is clobbered and attributes are
15995 (branch_z_normal, branch_z_invert, branch_nz_normal,
15996 branch_nz_invert): New branch related instructions.
15997 (jump): Updated the attributes.
15998 (switch): Update to support new targets. CC_REGNUM register is
15999 clobbered and attributes are updated.
16000 (call_internal_short, call_internal_long, call_value_internal_short,
16001 call_value_internal_long): Updated the attributes.
16002 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
16003 clobbered and attributes are updated.
16004 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
16005 Update to support new targets. CC_REGNUM register is clobbered.
16006 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
16008 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
16010 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
16011 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
16012 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
16013 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
16014 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
16015 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
16016 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
16017 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
16018 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
16019 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
16020 point instructions defined for V850e2v3 target.
16021 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
16022 Add support for V850E2 targets and CC_REGNUM register is clobbered.
16023 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
16024 support for new targets.
16025 * config/v850/v850-modes.def: New file.
16026 * config/v850/v850.opt(mstrict-align): Remove.
16027 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
16028 mv850e2v3): New command line options for V850.
16029 * config.gcc: Update the newly added files.
16030 * doc/invoke.texi: Update the newly added command line options for
16033 2010-07-26 Richard Guenther <rguenther@suse.de>
16035 PR tree-optimization/45052
16036 * ipa-pure-const.c (check_stmt): Check volatileness.
16038 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16041 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
16042 * config/sparc/sparc.c: Include reload.h.
16043 (legitimize_tls_address): Rename into...
16044 (sparc_legitimize_tls_address): ...this.
16045 (legitimize_pic_address): Rename into...
16046 (sparc_legitimize_pic_address): ...this.
16047 (sparc_expand_move): Adjust to above renaming.
16048 (sparc_tls_referenced_p): Likewise.
16049 (sparc_legitimize_tls_address): Likewise.
16050 (sparc_legitimize_pic_address): Likewise.
16051 (sparc_legitimize_address): Likewise.
16052 (sparc_output_mi_thunk): Likewise.
16053 (sparc_legitimize_reload_address): New global function. Recognize
16054 (lo_sum (high ...) ...) patterns generated by earlier passes.
16055 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
16057 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16060 * config/sparc/predicates.md (memory_reg_operand): Delete.
16061 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
16062 (*sync_compare_and_swap): Encode the address form in the pattern.
16063 (*sync_compare_and_swapdi_v8plus): Likewise.
16065 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
16067 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
16068 Streamline paragraph on compatibility with the system compiler.
16070 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
16072 PR middle-end/45035
16073 * alias.c (true_dependence_1): Fix thinko in merge of old
16074 true_dependence and canon_true_dependence.
16076 2010-07-23 Jan Hubicka <jh@suse.cz>
16078 * lto-streamer-out.c (write_symbol): Fix visibilities of external
16081 2010-07-23 Le-Chun Wu <lcwu@google.com>
16083 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
16084 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
16085 and an unnecessary assignment.
16086 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
16087 self-assign warning.
16088 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
16089 unnecessary self-init.
16091 2010-07-23 Richard Guenther <rguenther@suse.de>
16094 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
16095 for -flto and -fwhopr.
16097 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
16100 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
16101 (stmp-int-hdrs): Prefix/postfix headers by include_next.
16102 * config.gcc (user_headers_inc_next_pre): New.
16103 (user_headers_inc_next_post): Likewise.
16104 (*-w64-mingw*): Use for float.h post-fixing, and for
16105 stddef.h/stdarg.h pre-fixing by include_next.
16106 * configure.ac (user_headers_inc_next_post): New.
16107 (user_headers_inc_next_pre): New.
16108 * configure: Regenerated.
16110 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16112 * configure.ac: Don't disable TLS on Solaris 8/9 by default
16113 Set tga_func for Solaris 2/x86 resp. SPARC.
16114 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
16115 (LIB_THREAD_LDFLAGS_SPEC): Define.
16116 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
16117 * configure: Regenerate.
16118 * config.in: Regenerate.
16119 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
16120 -pthread, -threads, LIB_TLS_SPEC with -pthread.
16121 * doc/install.texi (Specific, *-*-solaris2*): Document use of
16122 alternate thread libraries on Solaris 8.
16123 Document TLS patch requirements.
16124 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
16128 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
16131 2010-07-23 Jakub Jelinek <jakub@redhat.com>
16133 * tree.h (struct tree_base): Add nameless_flag bitfield.
16134 (TYPE_NAMELESS, DECL_NAMELESS): Define.
16135 * omp-low.c (create_omp_child_function, scan_omp_parallel,
16136 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
16137 DECL_ARTIFICIAL where needed.
16138 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
16139 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
16140 has DECL_NAMELESS set.
16142 2010-07-23 Martin Jambor <mjambor@suse.cz>
16144 PR tree-optimization/44915
16145 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
16146 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
16147 (analyze_function): Likewise.
16149 2010-07-23 Martin Jambor <mjambor@suse.cz>
16151 PR tree-optimization/44914
16152 * tree-sra.c (sra_modify_function_body): Return true if CFG was
16153 changed, add purging dead eh edges.
16154 (ipa_sra_modify_function_body): Return true if CFG was changed,
16155 simplify purging dead eh edges.
16156 (modify_function): Return true if CFG was changed.
16157 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
16159 (ipa_early_sra): Likewise.
16161 2010-07-23 Jie Zhang <jie@codesourcery.com>
16164 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
16166 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16167 false if ! tree_versionable_function_p.
16169 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
16171 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
16172 * ipa-pure-const.c (special_builtlin_state): Remove
16173 BUILT_IN_ARGS_INFO case.
16174 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16175 * builtins.c (expand_builtin): Likewise.
16176 (expand_builtin_args_info): Remove.
16177 * doc/tm.texi (__builtin_args_info): Remove.
16178 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
16179 * doc/tm.text.in: Likewise.
16181 2010-07-23 Richard Guenther <rguenther@suse.de>
16183 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
16184 (lto_symtab_merge_decls_2): Likewise.
16185 * tree-ssa.c (useless_type_conversion_p): Likewise.
16186 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16187 * gimple.c (gtc_visited2, gtc_ob2): Remove.
16188 (struct type_pair_d): Make same_p an array indexed by mode.
16190 (lookup_type_pair): Update initialization.
16191 (struct sccs): Adjust same_p type.
16192 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
16194 (print_gimple_types_stats): Likewise.
16195 * gimple.h (enum gtc_mode): New.
16196 (gimple_types_compatible_p): Adjust prototype.
16198 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
16200 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
16201 again after processing insn.
16203 2010-07-23 Jie Zhang <jie@codesourcery.com>
16205 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
16206 proper words when !tree_versionable_function_p.
16208 2010-07-23 Richard Guenther <rguenther@suse.de>
16210 PR tree-optimization/45037
16211 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
16213 2010-07-23 Jie Zhang <jie@codesourcery.com>
16215 * doc/extend.texi: Remove IP2K from the description of naked attribute.
16218 2010-07-10 Andi Kleen <ak@linux.intel.com>
16221 * lto-opts.c (lto_write_options): Add NULL file_data argument to
16222 lto_get_section_name.
16223 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16224 * lto-streamer-out.c (produce_asm): Likewise.
16225 (copy_function): Likewise.
16226 (produce_symtab): Likewise.
16227 (produce_asm_for_decls): Likewise.
16228 * lto-streamer.c (lto_get_section_name): Add file_data argument.
16229 Rewrite to add random postfix to LTO sections.
16230 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
16231 (lto_get_section_name): Add file_data argument to prototype.
16233 2010-07-10 Andi Kleen <ak@linux.intel.com>
16235 * lto-section-in.c (lto_section_name): Synchronize names
16236 with lto_get_section_name.
16238 2010-07-10 Andi Kleen <ak@linux.intel.com>
16240 * lto-opts.c (lto_read_file_options): Check for missing section.
16242 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16244 * ira.c (check_allocation): Correctly handle the case where an allocno
16245 with two objects was allocated to a single reg.
16247 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
16249 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
16250 (is_widening_mult_p): Likewise.
16251 (convert_to_widen): Use them.
16252 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
16253 well as integer ones.
16255 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
16257 * alias.c (true_dependence_1): New function, merged version of
16258 true_dependence and canon_true_dependence.
16259 (true_dependence): Simplify.
16260 (canon_true_dependence): Simplify.
16262 2010-07-22 Richard Henderson <rth@redhat.com>
16265 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
16266 of V4SFmode for the SSE saves; increase stack alignment if needed.
16267 (ix86_gimplify_va_arg): Don't increase stack alignment here.
16269 2010-07-22 Jakub Jelinek <jakub@redhat.com>
16272 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
16273 call cprop_find_used_regs again via note_uses.
16275 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
16277 * alias.c (get_alias_set): Fix formatting issues.
16279 2010-07-22 Steve Ellcey <sje@cup.hp.com>
16281 PR middle-end/44878
16282 * stmt.c (expand_value_return): Call promote_function_mode with
16283 a for_return argument of 2 when returning by reference.
16285 2010-07-22 Dodji Seketeli <dodji@redhat.com>
16288 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
16289 unit DIE if we can find the scope DIE.
16291 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16293 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
16294 changed. Initialize OBJECT_SUBWORD.
16295 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
16296 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
16297 all callers changed.
16298 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
16299 (finish_allocno): Likewise.
16300 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
16301 (remove_low_level_allocnos): Likewise.
16302 (update_bad_spill_attribute): Likewise.
16303 (setup_min_max_allocno_live_range_point): Likewise.
16304 (sort_conflict_id_map): Likewise.
16305 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
16306 (ior_hard_reg_conflicts): New function.
16307 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
16308 (compress_conflict_vecs): Iterate over objects, not allocnos.
16309 (ira_add_live_range_to_object): New function.
16310 (object_range_compare_func): Renamed from allocno_range_compare_func.
16311 All callers changed.
16312 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
16313 subobjects, widen the min/max range of the lowest-order object to
16314 potentially include all other such low-order objects.
16315 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
16316 (check_allocation): Likewise. Use more fine-grained tests for register
16318 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
16319 allocno subobjects.
16320 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
16321 choices about which bits to set in each set. Don't use
16322 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
16323 using the multiple sets we computed.
16324 (push_allocno_to_stack): Iterate over allocno subobjects.
16325 (all_conflicting_hard_regs_coalesced): New static function.
16326 (setup_allocno_available_regs_num): Use it.
16327 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
16329 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
16330 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16331 by ALLOCNO_NUM_OBJECTS.
16332 (calculate_spill_cost): Likewise.
16333 (color_pass): Express if statement in a more normal way.
16334 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
16335 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
16336 (setup_slot_coalesced_allocno_live_ranges): Likewise.
16337 (allocno_reload_assign): Likewise.
16338 (ira_reassign_pseudos): Likewise.
16339 (fast_allocation): Likewise.
16340 * ira-conflicts.c (build_conflict_bit_table): Likewise.
16341 (print_allocno_conflicts): Likewise.
16342 (ira_build_conflicts): Likewise.
16343 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
16344 callers changed. Test subword 0 of each allocno for conflicts.
16345 (build_object_conflicts): Renamed from build_allocno_conflicts. All
16346 callers changed. Iterate over allocno subobjects.
16347 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
16348 * ira-int.h (struct ira_allocno): New member: num_objects.
16349 Rename object to objects and change it into an array.
16350 (ALLOCNO_OBJECT): Add new argument N.
16351 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
16352 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
16353 (ior_hard_reg_conflicts): Declare.
16354 (ira_add_live_range_to_object): Declare.
16355 (ira_allocno_object_iterator): New.
16356 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
16357 (FOR_EACH_ALLOCNO_OBJECT): New macro.
16358 * ira-lives.c (objects_live): Renamed from allocnos_live; all
16360 (allocnos_processed): New sparseset.
16361 (make_object_born): Renamed from make_allocno_born; take an
16362 ira_object_t argument. All callers changed.
16363 (make_object_dead): Renamed from make_allocno_dead; take an
16364 ira_object_t argument. All callers changed.
16365 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
16366 All callers changed.
16367 (mark_pseudo_regno_live): Iterate over allocno subobjects.
16368 (mark_pseudo_regno_dead): Likewise.
16369 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
16371 (mark_ref_live): Detect subword accesses and call
16372 mark_pseudo_regno_subword_live as appropriate.
16373 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
16374 (process_bb_nodes_live): Deal with object-related updates first; set
16375 and test bits in allocnos_processed to avoid computing allocno
16376 statistics more than once.
16377 (create_start_finish_chains): Iterate over objects, not allocnos.
16378 (print_object_live_ranges): New function.
16379 (print_allocno_live_ranges): Use it.
16380 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
16383 2010-07-22 Richard Guenther <rguenther@suse.de>
16386 * gimple.c (gtc_next_dfs_num): New global.
16387 (struct sccs): Make value a union, add integer same_p member.
16388 (gtc_visit): New function.
16389 (gimple_types_compatible_p_1): New function, split out from ...
16390 (gimple_types_compatible_p): ... here. Start a DFS walk here.
16391 (iterative_hash_gimple_type): Adjust for sccs change.
16393 2010-07-22 Martin Jambor <mjambor@suse.cz>
16395 PR tree-optimization/44891
16396 * tree-sra.c: Include gimple-pretty-print.h.
16397 (replace_uses_with_default_def_ssa_name): Renamed to
16398 get_repl_default_def_ssa_name, return the new SSA name instead of
16399 replacing the old one.
16400 (sra_modify_assign): Dump a message when removing a load, if the LHS
16401 is an SSA_NAME, do not do any propagation, just set the RHS to a
16402 default definition SSA NAME, type convert if necessary.
16403 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
16405 2010-07-22 Richard Guenther <rguenther@suse.de>
16407 PR tree-optimization/45017
16408 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
16409 TYPE_PRECISION of integral types in addition to size.
16411 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
16413 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
16414 when no C library is specified.
16416 2010-07-22 Martin Jambor <mjambor@suse.cz>
16418 * ipa-prop.h (struct ipa_node_params): Updated comment.
16419 (struct ipa_edge_args): Likewise.
16420 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
16422 2010-07-22 Martin Jambor <mjambor@suse.cz>
16424 * cgraphunit.c (verify_edge_count_and_frequency): New function.
16425 (verify_cgraph_node): Verify frequencies of indirect edges.
16426 * tree-inline.c (tree_function_versioning): Update frequencies of
16429 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16432 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
16433 Set *arm_rev to be predicable.
16435 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
16437 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
16438 (LINK_COMMAND_SPEC_A): New.
16440 (DSYMUTIL_SPEC): New.
16441 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
16442 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
16444 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
16446 * calls.c (load_register_parameters): Move check for zero
16447 sized items so that only the call to
16448 mem_overlaps_already_clobbered_arg_p () is protected.
16450 2010-07-22 Jan Hubicka <jh@suse.cz>
16452 * ipa-pure-const.c (varying_state): Break out from ...
16453 (get_function_state): ... here; always return varying_state
16454 when state would be NULL otherwise.
16455 (remove_node_data): Do not free varying state.
16457 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16460 PR middle-end/45009
16461 * postreload.c: Include "target.h".
16462 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
16464 (fixup_debug_insns): Don't copy the rtx.
16465 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
16466 Don't copy when replacing. Call fixup_debug_insns in the case where
16467 we merged one add with another.
16468 (reload_combine_recognize_pattern): Fail if there aren't any uses.
16469 Try harder to determine whether we're picking a valid index register.
16470 Don't set store_ruid for an insn we're going to scan in the
16472 (reload_combine): Remove unused code.
16473 (reload_combine_note_use): When updating use information for
16474 an old insn, ignore a use that occurs after store_ruid.
16475 * Makefile.in (postreload.o): Update dependencies.
16477 * function.c (record_hard_reg_sets): Restrict the previous change
16478 to cases where the incoming nominal mode is the same as the
16479 incoming promoted mode and everything happens in MODE_INT.
16481 2010-07-21 Jakub Jelinek <jakub@redhat.com>
16484 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
16485 ASM_OPERANDS_OUTPUT_IDX.
16486 (adjust_insn): For inline asm with multiple sets ensure first
16487 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
16490 2010-07-21 Richard Henderson <rth@redhat.com>
16492 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
16493 comparison for avoiding xmm register saves. Emit the xmm register
16495 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
16496 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
16497 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
16498 Remove patterns and the associated splitters.
16500 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
16502 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
16503 and imagine parts of a complex, so that they can have the same
16504 base and fall into the same group.
16506 2010-07-21 Richard Guenther <rguenther@suse.de>
16509 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
16510 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
16511 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
16513 2010-07-21 Martin Jambor <mjambor@suse.cz>
16515 PR tree-optimization/44900
16516 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
16517 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
16519 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
16521 PR middle-end/44738
16522 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
16524 2010-07-21 Richard Guenther <rguenther@suse.de>
16526 PR middle-end/45013
16527 * tree-ssa.c (useless_type_conversion_p): Dispatch to
16528 gimple_types_compatible_p only when in lto.
16529 * gimple.c (gimple_types_compatible_p): Use canonical types
16530 to speed up comparison.
16532 2010-07-21 Richard Guenther <rguenther@suse.de>
16534 * tree-flow.h (referenced_var): Move define ...
16535 * tree-flow-inline.h (referenced_var): ... here as an inline
16536 function. Assert here ...
16537 * tree-dfa.c (referenced_var_lookup): ... instead of here.
16538 * tree-ssa.c (maybe_optimize_var): Check if the variable
16539 is in referenced vars.
16540 (execute_update_addresses_taken): Remove old broken check.
16541 * gimple-pretty-print.c (pp_points_to_solution): Use
16542 referenced_var_lookup.
16543 * tree-into-ssa.c (dump_decl_set): Likewise.
16545 2010-07-21 Jakub Jelinek <jakub@redhat.com>
16548 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
16549 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
16552 2010-07-20 Richard Henderson <rth@redhat.com>
16554 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
16556 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
16558 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
16559 computing the sum of the stack pointer and a large constant.
16560 * config/arm/constraints.md (M): Remove superfluous parentheses.
16561 (Pc): New constraint.
16563 2010-07-20 Jakub Jelinek <jakub@redhat.com>
16566 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
16567 operand's type if exp is tcc_unary class tree.
16569 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
16571 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
16572 Reverse sense of if_then_else condition.
16574 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
16576 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
16577 * config/rs6000/rs6000.c (rs6000_override_options): Set
16578 rs6000_block_move_inline_limit appropriately.
16579 (expand_block_move): Use rs6000_block_move_inline_limit.
16580 * doc/invoke.texi (mblock-move-inline-limit): Document.
16582 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
16584 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
16585 FROM and TO. All callers changed. Don't look for tracked uses,
16586 just scan the RTL for DEBUG_INSNs and substitute.
16587 (reload_combine_recognize_pattern): Call fixup_debug_insns.
16588 (reload_combine): Ignore DEBUG_INSNs.
16590 2010-07-20 Jakub Jelinek <jakub@redhat.com>
16592 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
16596 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
16597 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
16598 instead of the result's type.
16600 2010-07-20 Richard Guenther <rguenther@suse.de>
16602 PR tree-optimization/44977
16603 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
16606 2010-07-20 Richard Guenther <rguenther@suse.de>
16608 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
16609 (lto_symtab_merge_decls_2): Likewise.
16610 * gimple.h (gimple_types_compatible_p): Declare.
16611 * gimple.c (gimple_queue_type_fixup): Remove.
16612 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
16613 (gimple_compatible_complete_and_incomplete_type_p): New function.
16614 (gimple_types_compatible_p): Adjust.
16615 (gimple_register_type): Remove type fixup code.
16616 (print_gimple_types_stats): Adjust.
16617 (free_gimple_type_tables): Likewise.
16618 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
16619 * tree-ssa.c (useless_type_conversion_p): Likewise.
16621 2010-07-20 Richard Guenther <rguenther@suse.de>
16623 PR middle-end/44971
16624 PR middle-end/44988
16625 * tree-ssa.c (maybe_optimize_var): New function split out from ...
16626 (execute_update_addresses_taken): ... here.
16627 (non_rewritable_mem_ref_base): Likewise.
16628 (execute_update_addresses_taken): Do not iterate over all referenced
16629 vars but just all local decls and parms.
16630 Properly check call and asm arguments and rewrite call arguments.
16632 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
16634 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
16636 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
16638 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
16640 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
16642 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
16644 * gengtype.c (start_root_entry): New function, split out from
16645 write_root. Check whether V is null and raise an error if so.
16646 (write_field_root): Check for V being null. Don't raise an error here;
16647 set V to null instead.
16648 (write_root): Update comment above function. Use start_root_entry.
16650 2010-07-19 Xinliang David Li <davidxl@google.com>
16653 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
16655 (find_uninit_use): Add dump.
16656 (is_use_properly_guarded): Ditto.
16657 (warn_uninitialized_phi): Ditto.
16658 (execute_late_warn_uninitialized): Ditto.
16660 2010-07-19 Richard Guenther <rguenther@suse.de>
16662 PR middle-end/44941
16663 * expr.c (emit_block_move_hints): Move zero size check first.
16664 Move asserts to more useful places.
16665 * calls.c (load_register_parameters): Check for zero size.
16667 2010-07-19 Richard Henderson <rth@redhat.com>
16669 * tree-optimize.c (execute_all_early_local_passes): New. Change
16670 cgraph_state here ...
16671 (execute_early_local_optimizations): ... not here. Remove.
16672 (pass_early_local_passes, pass_all_early_optimizations): Update.
16674 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
16676 * postreload.c (reload_combine_closest_single_use): Ignore the
16677 number of uses for DEBUG_INSNs.
16678 (fixup_debug_insns): New static function.
16679 (reload_combine_recognize_const_pattern): Use it. Don't let the
16680 main loop be affected by DEBUG_INSNs.
16681 Really disallow moving adds past a jump insn.
16682 (reload_combine_recognize_pattern): Don't update use_ruid here.
16683 (reload_combine_note_use): Do it here.
16684 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
16686 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
16688 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
16690 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
16692 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
16694 * config/i386/darwin.h: Define darwin_emit_branch_islands.
16695 (TARGET_MACHO_BRANCH_ISLANDS): New.
16696 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
16697 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
16699 * config/i386/i386.c (output_pic_addr_const): Do not emit
16700 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
16701 (x86_output_mi_thunk): Adjust symbol creation.
16702 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
16703 Remove out of date comment.
16704 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
16705 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16706 (DARWIN_GENERATE_ISLANDS): Ditto.
16707 (output_call): Do not emit branch islands unless
16708 darwin_emit_branch_islands is set.
16709 * config/darwin.c: Declare darwin_emit_branch_islands.
16710 (machopic_indirect_data_reference): Do not emit unless
16711 darwin_emit_branch_islands is set.
16712 (darwin_override_options): Set darwin_emit_branch_islands
16713 where it is needed.
16714 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16716 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16718 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16719 sse_runtime, sse2_runtime.
16721 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
16723 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
16724 low half of a single-register SCmode return value before ORing
16725 it with the high half.
16726 * config/mips/mips16.S (MERGE_GPRf): Likewise.
16728 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16731 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
16734 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
16737 * postreload.c (reload_cse_move2add): Return bool, true if anything.
16738 changed. All callers changed.
16739 (move2add_use_add2_insn): Likewise.
16740 (move2add_use_add3_insn): Likewise.
16741 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
16743 (RELOAD_COMBINE_MAX_USES): Bump to 16.
16744 (last_jump_ruid): New static variable.
16745 (struct reg_use): New members CONTAINING_MEM and RUID.
16746 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
16747 (reload_combine_split_one_ruid, reload_combine_split_ruids,
16748 reload_combine_purge_insn_uses, reload_combine_closest_single_use
16749 reload_combine_purge_reg_uses_after_ruid,
16750 reload_combine_recognize_const_pattern): New static functions.
16751 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
16752 is true for our reg and that we have available index regs.
16753 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
16754 callers changed. Use them to initialize fields in struct reg_use.
16755 (reload_combine): Initialize last_jump_ruid. Be careful when to
16756 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
16757 Call reload_combine_recognize_const_pattern.
16758 (reload_combine_note_store): Update REAL_STORE_RUID field.
16760 2010-07-16 Jason Merrill <jason@redhat.com>
16762 * Makefile.in (opts-common.o): Depend on options.h.
16764 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
16766 * tree.c (build_common_builtin_nodes): Use build_function_type_list
16767 instead of build_function_type.
16768 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
16769 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16771 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
16773 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
16775 (rs6000_emit_int_cmove): Use function pointers for insn generation.
16776 Don't force values into registers unnecessarily.
16777 (output_isel): Assert that we're not given conditions we can't handle.
16778 Delete corresponding code.
16779 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
16780 scc_comparison_operator constraint. Permit 0 for the consequent
16781 operand. Permit any GPR for the alternative operand.
16782 (isel_unsigned_<mode>): Likewise.
16784 2010-07-16 Jakub Jelinek <jakub@redhat.com>
16787 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
16788 argument to const_tree.
16789 * config/i386/i386.c (function_arg_advance): If padding needs to be
16790 inserted before argument, increment cum->words by number of padding
16792 (contains_aligned_value_p): Change argument to const_tree.
16793 (ix86_function_arg_boundary): Change second argument to const_tree.
16795 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
16798 * function.c (record_hard_reg_sets): New static function.
16799 (assign_parm_setup_reg): If an optab for extending exists and the
16800 generated code clobbbers no hard regs, emit the insn directly and
16801 create a REG_EQUIV note.
16803 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16805 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
16807 * c-typeck.c (push_init_level): Likewise.
16808 (process_init_element): Likewise.
16810 2010-07-15 Anatoly Sokolov <aesok@post.ru>
16812 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
16813 (integer_three_node): Add.
16814 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
16815 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
16816 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
16817 of call build_int_cst.
16818 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
16819 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
16820 (find_interesting_uses_address): Ditto.
16821 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
16822 * tree-eh.c (lower_eh_constructs_2): Ditto.
16823 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
16824 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
16825 * expmed.c (expand_divmod): Ditto.
16826 * tree-mudflap.c (mx_register_decls): Ditto.
16827 * varasm.c (array_size_for_constructor): Ditto.
16828 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
16829 * c-parser.c (c_parser_postfix_expression): Ditto.
16831 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
16833 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
16834 New static variables.
16835 (reload_combine_recognize_pattern): New static function, broken out
16837 (reload_combine): Use it. Only initialize first_index_reg and
16838 last_index_reg once.
16840 2010-07-15 Richard Henderson <rth@redhat.com>
16842 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
16845 2010-07-15 Jan Hubicka <jh@suse.cz>
16847 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
16848 comdats for broken gold.
16849 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
16851 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16853 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
16855 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16857 * tree.h (DECL_CHAIN): Define.
16858 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
16859 * c-decl.c: Likewise.
16860 * c-parser.c: Likewise.
16861 * c-typeck.c: Likewise.
16862 * cfgexpand.c: Likewise.
16863 * cgraph.c: Likewise.
16864 * cgraphunit.c: Likewise.
16865 * combine.c: Likewise.
16866 * config/alpha/alpha.c: Likewise.
16867 * config/arm/arm.c: Likewise.
16868 * config/frv/frv.c: Likewise.
16869 * config/i386/i386.c: Likewise.
16870 * config/i386/winnt-cxx.c: Likewise.
16871 * config/ia64/ia64.c: Likewise.
16872 * config/iq2000/iq2000.c: Likewise.
16873 * config/mep/mep.c: Likewise.
16874 * config/mips/mips.c: Likewise.
16875 * config/pa/som.h: Likewise.
16876 * config/rs6000/rs6000.c: Likewise.
16877 * config/s390/s390.c: Likewise.
16878 * config/sh/sh.c: Likewise.
16879 * config/sh/symbian-cxx.c: Likewise.
16880 * config/sparc/sparc.c: Likewise.
16881 * config/spu/spu.c: Likewise.
16882 * config/stormy16/stormy16.c: Likewise.
16883 * config/vxworks.c: Likewise.
16884 * config/xtensa/xtensa.c: Likewise.
16885 * coverage.c: Likewise.
16886 * dbxout.c: Likewise.
16887 * dwarf2out.c: Likewise.
16888 * emit-rtl.c: Likewise.
16889 * expr.c: Likewise.
16890 * function.c: Likewise.
16891 * gimple-low.c: Likewise.
16892 * gimple-pretty-print.c: Likewise.
16893 * gimplify.c: Likewise.
16894 * integrate.c: Likewise.
16895 * ipa-inline.c: Likewise.
16896 * ipa-prop.c: Likewise.
16897 * ipa-split.c: Likewise.
16898 * ipa-struct-reorg.c: Likewise.
16899 * ipa-type-escape.c: Likewise.
16900 * langhooks.c: Likewise.
16901 * lto-cgraph.c: Likewise.
16902 * omp-low.c: Likewise.
16903 * stor-layout.c: Likewise.
16904 * tree-cfg.c: Likewise.
16905 * tree-complex.c: Likewise.
16906 * tree-dfa.c: Likewise.
16907 * tree-dump.c: Likewise.
16908 * tree-inline.c: Likewise.
16909 * tree-mudflap.c: Likewise.
16910 * tree-nested.c: Likewise.
16911 * tree-object-size.c: Likewise.
16912 * tree-pretty-print.c: Likewise.
16913 * tree-sra.c: Likewise.
16914 * tree-ssa-live.c: Likewise.
16915 * tree-ssa-loop-niter.c: Likewise.
16916 * tree-ssa-math-opts.c: Likewise.
16917 * tree-ssa-reassoc.c: Likewise.
16918 * tree-ssa-sccvn.c: Likewise.
16919 * tree-ssa-structalias.c: Likewise.
16920 * tree-tailcall.c: Likewise.
16921 * tree-vrp.c: Likewise.
16922 * tree.c: Likewise.
16923 * var-tracking.c: Likewise.
16924 * varasm.c: Likewise.
16926 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16929 * config/spu/spu.c (spu_expand_builtin_1): Allow references
16930 (as well as pointers) as argument to mask_for_load builtins.
16932 2010-07-15 Richard Guenther <rguenther@suse.de>
16934 PR tree-optimization/44946
16935 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
16936 with accessing only padding properly.
16938 2010-07-15 Jan Hubicka <jh@suse.cz>
16940 * ipa.c (function_and_variable_visibility): Variables marked as used
16941 should not be localized.
16943 2010-07-15 Jan Hubicka <jh@suse.cz>
16945 * cgraph.c: Include lto-streamer.h
16946 (change_decl_assembler_name): Work when assembler name hash is at place.
16947 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
16948 be sure to rename it to avoid name clash.
16949 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
16950 Localize hidden symbols only when locally defined.
16952 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
16954 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
16956 2010-07-15 Magnus Granberg <zorry@gentoo.org>
16957 Kevin F. Quinn <kevquinn@gentoo.org>
16959 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
16960 * common.opt: Add -Wtrampolines.
16961 * doc/invoke.texi: Add -Wtrampolines.
16963 2010-07-15 Jie Zhang <jie@codesourcery.com>
16965 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
16966 cortex_a8_issue_ls.
16968 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
16970 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
16971 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
16973 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16975 * config/spu/spu.c (reg_names): Remove prototype.
16976 (call_used_regs): Likewise.
16978 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
16980 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
16981 "unused" with attribute "used".
16982 (__JCR_END__): Likewise.
16983 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
16985 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
16987 2010-07-14 Richard Guenther <rguenther@suse.de>
16989 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
16990 (maybe_fixup_decls): Likewise.
16991 (input_gimple_stmt): Do not fixup anything.
16992 * lto-streamer-out.c (output_gimple_stmt): Make sure all
16993 non-automatic variable uses are wrapped inside a MEM_REF.
16995 2010-07-14 Richard Henderson <rth@redhat.com>
16997 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
16999 * varasm.c (assemble_variable): Remove early exit for functions;
17000 assert that we're given a variable.
17002 2010-07-14 Jie Zhang <jie@codesourcery.com>
17004 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
17005 cortex_a8_default when neon_type is not none.
17007 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17009 * lower-subreg.c (subreg_context): New static bitmap.
17010 (decompose_multiword_subregs): Allocate and free it.
17011 (find_decomposable_subregs): Set a bit in it for a register that
17012 occurs in a subreg that changes mode but not size.
17013 (can_decompose_p): Test it instead of non_decomposable_context.
17015 2010-07-14 Richard Guenther <rguenther@suse.de>
17017 PR tree-optimization/44824
17018 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
17019 is_gimple_mem_ref_addr.
17020 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
17021 non-decl_address_invariant_p addresses.
17023 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17025 * reload.c (find_reloads): Revert code to penalize small register
17026 classes that was brought in with the IRA merge.
17028 2010-07-14 Richard Guenther <rguenther@suse.de>
17030 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
17031 as base of ARRAY_REFs.
17033 2010-07-14 Richard Guenther <rguenther@suse.de>
17035 PR middle-end/44930
17036 * tree-pretty-print.c (do_niy): Do not print a newline.
17038 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17040 * ira-int.h (struct ira_object): New.
17041 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
17042 (struct ira_allocno): Remove members min, max,
17043 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
17044 conflict_allocnos_num and conflict_vec_p. Add new member object.
17045 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
17046 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
17047 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
17048 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
17049 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
17050 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
17051 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
17052 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
17053 an ira_object_t rather than ira_allocno_t. All uses changed.
17054 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17055 contains a vector of ira_object_t; all uses changed.
17056 (ira_objects_num): Declare variable.
17057 (ira_create_allocno_object): Declare function.
17058 (ira_conflict_vector_profitable_p): Adjust prototype.
17059 (ira_allocate_conflict_vec): Renamed from
17060 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
17061 (ira_allocate_object_conflicts): Renamed from
17062 ira_allocate_allocno_conflicts; first arg now ira_object_t.
17063 (struct ira_object_iterator): New.
17064 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
17065 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
17066 to conflict_vec_p. All uses changed.
17067 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
17068 Changed to take into account that conflicts are now tracked for
17070 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
17071 Args changed to accept ira_object_t. All uses changed.
17072 (allocnos_conflict_p): New static function.
17073 (collected_conflict_objects): Renamed from collected_allocno_objects;
17074 now a vector of ira_object_t. All uses changed.
17075 (build_conflict_bit_table): Changed to take into account that
17076 conflicts are now tracked for objects.
17077 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
17078 (print_allocno_conflicts, ira_build_conflicts): Likewise.
17079 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
17080 setup_allocno_left_conflicts_size, allocno_reload_assign,
17081 fast_allocation): Likewise.
17082 * ira-lives.c (make_hard_regno_born, make_allocno_born)
17083 process_single_reg_class_operands, process_bb_node_lives): Likewise.
17084 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
17086 * ira-build.c (ira_objects_num): New variable.
17087 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17088 contains a vector of ira_object_t; all uses changed.
17089 (ira_object_id_map_vec): Corresponding change.
17090 (object_pool): New static variable.
17091 (initiate_allocnos): Initialize it.
17092 (finish_allocnos): Free it.
17093 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
17095 (ira_create_allocno): Don't set members that were removed.
17096 (ira_set_allocno_cover_class): Don't change conflict hard regs.
17097 (merge_hard_reg_conflicts): Changed to take into account that
17098 conflicts are now tracked for objects.
17099 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
17100 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
17101 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
17102 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
17103 setup_min_max_conflict_allocno_ids, ): Likewise.
17104 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
17105 to ira_object_t; all callers changed.
17106 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
17107 to ira_object_t, all callers changed.
17108 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
17109 to ira_object_t, all callers changed.
17110 (conflict_check, curr_conflict_check_tick): Renamed from
17111 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
17113 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
17114 arg changed to ira_object_t, all callers changed.
17115 (create_cap_allocno): Call ira_create_allocno_object.
17116 (finish_allocno): Free the corresponding object.
17117 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
17118 callers changed. Adjusted for dealing with objects.
17119 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
17120 dealing with objects.
17121 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
17123 * ira-int.h (struct live_range): Rename allocno member to object
17124 and change type to ira_object_t.
17125 (struct ira_object): New member live_ranges.
17126 (struct ira_allocno): Remove member live_ranges.
17127 (ALLOCNO_LIVE_RANGES): Remove.
17128 (OBJECT_LIVE_RANGES): New macro.
17129 (ira_create_live_range, ira_copy_live_range_list,
17130 ira_merge_live_range_list, ira_live_ranges_intersect_p,
17131 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
17132 * ira-build.c (ira_create_object): Initialize live ranges here.
17133 (ira_create_allocno): Not here.
17134 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
17135 changed to ira_object_t, all callers changed.
17136 (copy_live_range): Rename from copy_allocno_live_range, all callers
17138 (ira_copy_live_range_list): Rename from
17139 ira_copy_allocno_live_range_list, all callers changed.
17140 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
17141 all callers changed.
17142 (ira_live_ranges_intersect_p): Rename from
17143 ira_allocno_live_ranges_intersect_p, all callers changed.
17144 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
17146 (ira_finish_live_range_list): Rename from
17147 ira_finish_allocno_live_range_list, all callers changed.
17148 (change_object_in_range_list): Rename from change_allocno_in_range_list,
17149 last arg changed to ira_object_t, all callers changed.
17150 (finish_allocno): Changed to expect live ranges in the allocno's object.
17151 (move_allocno_live_ranges, copy_allocno_live_ranges,
17152 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
17153 ira_flattening, ira_build): Likewise.
17154 * ira-color.c (allocnos_have_intersected_live_ranges_p,
17155 slot_coalesced_allocno_live_ranges_intersect,
17156 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
17157 * ira-conflicts.c (build_conflict_bit_table): Likewise.
17158 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
17159 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
17160 make_allocno_dead, create_start_finish_chains,
17161 remove_some_program_points_and_update_live_ranges,
17162 ira_debug_live_range_list): Likewise.
17164 * ira-int.h (ira_object_conflict_iterator): Rename from
17165 ira_allocno_conflict_iterator.
17166 (ira_object_conflict_iter_init): Rename from
17167 ira_allocno_conflict_iter_init, second arg changed to
17168 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
17169 FOR_EACH_ALLOCNO_CONFLICT.
17170 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
17171 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
17172 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
17173 * ira-conflicts.c (print_allocno_conflicts): Likewise.
17175 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
17178 * tree-dump.c (dump_options): Add enumerate_locals entry.
17179 Add TDF_NOID exclusion to all entry.
17180 * tree-dump.h (dump_enumerated_decls): Declare.
17181 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
17182 Don't display type uid.
17183 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
17184 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
17185 * tree-ssa-live.c: Include gimple.h.
17186 (numbered_tree_d): New struct.
17187 (numbered_tree): New typedef.
17188 (DEF_VEC_O (numbered_tree): New.
17189 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
17190 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
17191 (dump_enumerated_decls): Likewise.
17192 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
17193 debug info and flag_dump_final_insns, call dump_enumerated_decls.
17194 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
17195 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
17197 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
17199 * expmed.h (MAX_BITS_PER_WORD): Move to...
17200 * defaults.h (MAX_BITS_PER_WORD): ...here.
17202 2010-07-13 DJ Delorie <dj@redhat.com>
17204 * config/h8300/h8300.c (h8300_init_once): Default to
17205 -fstrict_volatile_bitfields.
17207 * config/sh/sh.c (sh_override_options): Default to
17208 -fstrict_volatile_bitfields.
17210 * config/rx/rx.c (rx_option_override): New.
17212 * config/m32c/m32c.c (m32c_override_options): Default to
17213 -fstrict_volatile_bitfields.
17215 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
17217 * tree.h (build_function_call_expr): Delete.
17218 (build_call_expr_loc_array): New function.
17219 (build_call_expr_loc_vec): New function.
17220 * tree-flow.h (struct omp_region): Change type of ws_args field
17222 * builtins.c (build_function_call_expr): Delete.
17223 (build_call_expr_loc_array): New function.
17224 (build_call_expr_loc): Call it. Use XALLOCAVEC.
17225 (build_call_expr): Likewise.
17226 (build_call_expr_loc_vec): New function.
17227 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
17228 build_function_call_expr.
17229 * expr.c (emutls_var_address): Likewise.
17230 * varasm.c (emutls_common_1): Likewise.
17231 * omp-low.c (expand_omp_atomic_mutex): Likewise.
17232 (expand_omp_taskreg): Adjust for new type of region->ws_args.
17233 (get_ws_args_for): Return a VEC instead of a tree.
17234 (expand_parallel_call): Call build_call_expr_loc_vec instead of
17235 build_function_call_expr.
17236 * stor-layout.c (self_referential_size): Likewise.
17238 2010-07-13 Jakub Jelinek <jakub@redhat.com>
17241 * recog.c (constrain_operands): Allow side-effects in memory
17242 operands if either < or > constraint is used, rather than if
17243 both < and > is used.
17245 2010-07-13 Richard Guenther <rguenther@suse.de>
17247 PR middle-end/44911
17248 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
17249 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
17252 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
17255 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
17256 to variable emited.
17257 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
17258 * config/sh/sh.md (symGOT_load): Likewise.
17259 (symDTPOFF2reg): Likewise.
17260 (symTPOFF2reg): Likewise.
17262 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17264 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
17265 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
17267 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17269 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
17271 Find ucontext_t * on Solaris 11.
17272 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
17273 Handle new Solaris 11 __sighndlr patterns.
17275 2010-07-13 Jakub Jelinek <jakub@redhat.com>
17278 * vec.h (VEC_block_remove): Fix comment.
17279 * tree-ssa-live.c (remove_unused_locals): Don't use
17280 VEC_unordered_remove on local_decls, instead replace a single
17281 vector element in each iteration if at least one element had
17282 to be removed and VEC_truncate at the end.
17283 * omp-low.c (expand_omp_taskreg): Likewise.
17285 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
17287 * c-decl.c (finish_function): Fix typo in comment.
17289 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
17292 * postreload.c (move2add_use_add3_insn): Silence gcc warning
17295 2010-07-12 Jakub Jelinek <jakub@redhat.com>
17297 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
17298 (simplify_stmt_using_ranges): Use it.
17300 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17302 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
17303 member. Do not mark as GTY(()).
17304 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
17305 (spu_builtin_decls): New static variable.
17306 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
17307 (spu_init_builtins): Likewise.
17308 (spu_builtin_mul_widen_even): Likewise.
17309 (spu_builtin_mul_widen_odd): Likewise.
17310 (spu_builtin_mask_for_load): Likewise.
17311 (spu_builtin_vec_perm): Likewise.
17312 * config/spu/spu-c.c: Include "target.h".
17313 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
17314 of using spu_builtins[].fndecl.
17316 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17318 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
17319 imply -minterlink-mips16.
17321 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17323 * config/mips/mips.h (mips16_globals): Declare.
17324 (SWITCHABLE_TARGET): Define.
17325 * config/mips/mips.c: Include target-globals.h.
17326 (mips16_globals): New variable.
17327 (mips_set_mips16_mode): Use save_target_globals and
17328 restore_target_globals instead of target_reinit.
17330 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17332 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
17333 to say that the function can be called more than once.
17334 * target-globals.c (save_target_globals): Call init_reg_sets.
17336 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17338 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
17339 * bb-reorder.h: New file.
17340 * bb-reorder.c (default_target_bb_reorder): New variable.
17341 (this_target_bb_reorder): New conditional variable.
17342 (uncond_jump_length): Redefine as a macro.
17343 * target-globals.h (this_target_bb_reorder): Declare.
17344 (target_globals): Add a bb_reorder field.
17345 (restore_target_globals): Copy the bb_reorder field to
17346 this_target_bb-reorder.
17347 * target-globals.c: Include bb-reorder.h.
17348 (default_target_globals): Initialize the bb_reorder field.
17349 (save_target_globals): Likewise.
17351 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17353 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
17354 * gcse.h: New file.
17355 * gcse.c: Include gcse.h.
17356 (default_target_gcse): New variable.
17357 (this_target_gcse): New conditional variable.
17358 (can_copy): Redefine as a macro.
17359 (can_copy_init_p): New macro.
17360 (can_copy_p): Remove can_copy_init_p.
17361 * target-globals.h (this_target_gcse): Declare.
17362 (target_globals): Add a gcse field.
17363 (restore_target_globals): Copy the gcse field to this_target_gcse.
17364 * target-globals.c: Include gcse.h.
17365 (default_target_globals): Initialize the gcse field.
17366 (save_target_globals): Likewise.
17368 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17370 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
17371 and x_ira_prohibited_mode_move_regs_initialized_p.
17372 (ira_prohibited_mode_move_regs): Redefine as a macro.
17373 * ira.c (ira_prohibited_mode_move_regs): Delete.
17374 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
17376 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17378 * reload.h (target_reload): Add x_cached_reg_save_code and
17379 x_cached_reg_restore_code.
17380 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
17381 Redefine as macros.
17383 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17385 * Makefile.in (target-globals.o): Depend on builtins.h.
17386 * builtins.h: New file.
17387 * builtins.c: Include builtins.h.
17388 (default_target_builtins): New variable.
17389 (this_target_builtins): New conditional variable.
17390 (apply_args_mode, apply_result_mode): Redefine as macros.
17391 * target-globals.h (this_target_builtins): Declare.
17392 (target_globals): Add a builtins field.
17393 (restore_target_globals): Copy the builtins field to
17394 this_target_builtins.
17395 * target-globals.c: Include builtins.h.
17396 (default_target_globals): Initialize the builtins field.
17397 (save_target_globals): Likewise.
17399 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17401 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
17402 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
17404 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
17405 (alg_hash, alg_hash_used_p): New macros.
17406 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
17407 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
17408 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
17410 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17412 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
17413 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
17414 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
17415 (this_op_costs, costs_classes): Redefine as macros.
17416 (record_reg_classes): Don't take op_costs as a parameter.
17417 (record_operand_costs): Likewise. Update calls to record_reg_classes.
17418 (scan_one_insn): Update call to record_operand_costs.
17420 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17422 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
17423 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
17424 (target_ira_int): New structure.
17425 (default_target_ira_int): Declare.
17426 (this_target_ira_int): Declare as a variable or define as a macro.
17427 (ira_reg_mode_hard_regset, ira_register_move_cost)
17428 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
17429 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
17430 (prohibited_class_mode_regs, ira_important_classes_num)
17431 (ira_important_classes, ira_reg_class_intersect)
17432 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
17433 (ira_reg_class_union): Redefine as macros.
17434 * ira.h (target_ira): New structure.
17435 (default_target_ira): Declare.
17436 (this_target_ira): Declare as a variable or define as a macro.
17437 (ira_available_class_regs, ira_hard_regno_cover_class)
17438 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
17439 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
17440 (ira_class_hard_regs_num): Redefine as macros.
17441 * ira.c (default_target_ira, default_target_ira_int): New variables.
17442 (this_target_ira, this_target_ira_int): New conditional variables.
17443 (ira_reg_mode_hard_regset, ira_memory_move_cost)
17444 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
17445 (ira_class_subset_p): Delete.
17446 (no_unit_alloc_regs): Redefine as a macro.
17447 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
17448 (ira_class_hard_regs_num, ira_class_hard_reg_index)
17449 (ira_available_class_regs): Delete.
17450 (alloc_reg_class_subclasses): Redefine as a macro.
17451 (ira_reg_class_cover_size, ira_reg_class_cover)
17452 (ira_important_classes_num, ira_important_classes)
17453 (ira_important_class_nums, ira_class_translate): Delete.
17454 (cover_class_order): Document the variable's lifetime.
17455 (reorder_important_classes): Don't set ira_important_class_nums.
17456 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
17457 (ira_reg_class_super_classes, ira_reg_class_union)
17458 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
17460 (setup_reg_class_nregs): Don't set ira_max_regs.
17461 (prohibited_class_mode_regs): Delete.
17462 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
17463 (target_globals): Add ira and ira_int fields.
17464 (restore_target_globals): Copy the ira field to this_target_ira
17465 and the ira_int field to this_target_ira_int.
17466 * target-globals.c: Include ira-int.h.
17467 (default_target_globals): Initialize the ira and ira_int fields.
17468 (save_target_globals): Likewise.
17470 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17472 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
17473 * cfgloop.h (target_cfgloop): New structure.
17474 (default_target_cfgloop): Declare.
17475 (this_target_cfgloop): Declare as a variable or define as a macro.
17476 (target_avail_regs, target_clobbered_regs, target_res_regs)
17477 (target_reg_cost, target_spill_cost): Redefine as macros.
17478 * cfgloopanal.c (default_target_cfgloop): New variable.
17479 (this_target_cfgloop): New conditional variable.
17480 (target_avail_regs, target_clobbered_regs, target_res_regs)
17481 (target_reg_cost, target_spill_cost): Delete.
17482 * target-globals.h (this_target_cfgloop): Declare.
17483 (target_globals): Add a cfgloop field.
17484 (restore_target_globals): Copy the cfgloop field to
17485 this_target_cfgloop.
17486 * target-globals.c: Include cfgloop.h.
17487 (default_target_globals): Initialize the cfgloop field.
17488 (save_target_globals): Likewise.
17490 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17492 * regs.h (target_regs): Add x_direct_load, x_direct_store and
17493 x_float_extend_from_mem.
17494 (direct_load, direct_store, float_extend_from_mem): New macros.
17495 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
17497 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17499 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
17500 (target-globals.o): Depend on $(LIBFUNCS_H).
17501 * libfuncs.h: Include hashtab.h.
17502 (libfunc_entry): Moved from optabs.c.
17503 (target_libfuncs): New structure.
17504 (default_target_libfuncs): Declare.
17505 (this_target_libfuncs): Declare as a variable or define as a macro.
17506 (libfunc_table): Redefine as a macro.
17507 * optabs.c (default_target_libfuncs): New variable.
17508 (this_target_libfuncs): New conditional variable.
17509 (libfunc_table): Delete.
17510 (libfunc_entry): Moved to optabs.h.
17511 (libfunc_hash): Redefine as a macro.
17512 (hash_libfunc, eq_libfunc): Fix comments.
17513 (init_optabs): Use libfunc_hash to detect cases where the function
17514 has already been called. Clear the hash table instead of
17516 * target-globals.h (this_target_libfuncs): Declare.
17517 (target_globals): Add a libfuncs field.
17518 (restore_target_globals): Copy the libfuncs field to
17519 this_target_libfuncs.
17520 * target-globals.c: Include libfuncs.h.
17521 (default_target_globals): Initialize the libfuncs field.
17522 (save_target_globals): Likewise.
17524 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17526 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
17527 in all dependency lists.
17529 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17531 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
17532 * optabs.h (target_optabs): New structure.
17533 (default_target_optabs): Declare.
17534 (this_target_optabs): Declare as a variable or define as a macro.
17535 (optab_table, convert_optab_table, direct_optab_table): Redefine
17537 * optabs.c (default_target_optabs): New variable.
17538 (this_target_optabs): New conditional variable.
17539 (optab_table, convert_optab_table, direct_optab_table): Delete.
17540 * target-globals.h (this_target_optabs): Declare.
17541 (target_globals): Add a optabs field.
17542 (restore_target_globals): Copy the optabs field to
17543 this_target_optabs.
17544 * target-globals.c: Include expr.h and optabs.h.
17545 (default_target_globals): Initialize the optabs field.
17546 (save_target_globals): Likewise.
17548 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17550 * flags.h (target_flagstate): Add x_flag_excess_precision.
17551 (flag_excess_precision): Redefine as a macro.
17552 * toplev.c (flag_excess_precision): Delete.
17554 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17556 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
17557 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
17558 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
17559 (no_caller_save_reg_set): Redefine as a macro.
17560 * reload.h (target_reload): Add x_caller_save_initialized_p and
17562 (caller_save_initialized_p): Redefine as a macro.
17563 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
17564 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
17565 (regno_save_mode): Redefine as a macro.
17567 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17569 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
17570 * expmed.h: New file.
17571 * expmed.c (default_target_costs): New variable.
17572 (this_target_costs): New conditional variable.
17573 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
17574 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
17575 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
17576 * target-globals.h (this_target_expmed): Declare.
17577 (target_globals): Add a expmed field.
17578 (restore_target_globals): Copy the expmed field to
17579 this_target_expmed.
17580 * target-globals.c: Include expmed.h.
17581 (default_target_globals): Initialize the expmed field.
17582 (save_target_globals): Likewise.
17584 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17586 * Makefile.in (target-globals.o): Depend on reload.h.
17587 * reload.h (target_reload): New structure.
17588 (default_target_reload): Declare.
17589 (this_target_reload): Declare as a variable or define as a macro.
17590 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
17591 * reload1.c (default_target_reload): New variable
17592 (this_target_reload): New conditional variable.
17593 (indirect_symref_ok, double_reg_address_ok): Delete.
17594 (spill_indirect_levels): Redefine as a macro.
17595 * target-globals.h (this_target_reload): Declare.
17596 (target_globals): Add a reload field.
17597 (restore_target_globals): Copy the reload field to
17598 this_target_reload.
17599 * target-globals.c: Include hard-reg-set.h.
17600 (default_target_globals): Initialize the reload field.
17601 (save_target_globals): Likewise.
17603 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17605 * rtl.h (target_rtl): Add x_static_reg_base_value.
17606 * alias.c (static_reg_base_value): Redefine as a macro.
17608 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17610 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
17611 (GTFILES): Remove reginfo.c.
17612 * rtl.h (target_rtl): Add x_top_of_stack.
17613 (top_of_stack): New macro.
17614 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
17615 (top_of_stack): Delete.
17617 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17619 * regs.h (target_regs): Add x_hard_regs_of_mode,
17620 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
17621 x_may_move_out_cost and x_last_mode_for_init_move_cost.
17622 (have_regs_of_mode, contains_reg_of_mode, move_cost)
17623 (may_move_in_cost, may_move_out_cost): Redefine as macros.
17624 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
17625 (may_move_in_cost, may_move_out_cost): Delete.
17626 (last_mode_for_init_move_cost): Redefine as a macro.
17628 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17630 * hard-reg-set.h (target_hard_regs): New structure.
17631 (default_target_hard_regs): Declare.
17632 (this_target_hard_regs): Declare as a variable or define as a macro.
17633 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
17634 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
17635 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
17636 (reg_class_size, reg_class_subclasses, reg_class_subunion)
17637 (reg_class_superunion, reg_names): Redefine as macros.
17638 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
17639 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
17640 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
17641 (reg_class_contents, reg_class_size, reg_class_subclasses)
17642 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
17643 (default_target_hard_regs): New variable
17644 (this_target_hard_regs, initial_call_really_used_regs)
17645 (initial_reg_alloc_order): New conditional variables.
17646 (initial_reg_names): New variable.
17647 (init_reg_sets): Assert that initial_call_really_used_regs,
17648 initial_reg_alloc_order and initial_reg_names
17649 are all the same size as their variable counterparts. Use them to
17650 initialize those counterparts.
17651 * target-globals.h (this_target_hard_regs): Declare.
17652 (target_globals): Add a hard_regs field.
17653 (restore_target_globals): Copy the hard_regs field to
17654 this_target_hard_regs.
17655 * target-globals.c: Include hard-reg-set.h.
17656 (default_target_globals): Initialize the hard_regs field.
17657 (save_target_globals): Likewise.
17659 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17661 * Makefile.in (target-globals.o): Depend on $(RTL_H).
17662 * rtl.h (target_rtl): New structure.
17663 (default_target_rtl): Declare.
17664 (this_target_rtl): Declare as a variable or define as a macro.
17665 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
17666 Redefine as macros.
17667 * emit-rtl.c (default_target_rtl): New variable.
17668 (this_target_rtl): New conditional variable.
17669 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
17670 (return_address_pointer_rtx): Delete.
17671 (initial_regno_reg_rtx): New macro.
17672 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
17673 (init_emit_regs): Likewise.
17674 * target-globals.h (this_target_rtl): Declare.
17675 (target_globals): Add a rtl field.
17676 (restore_target_globals): Copy the rtl field to this_target_rtl.
17677 * target-globals.c: Include rtl.h.
17678 (default_target_globals): Initialize the rtl field.
17679 (save_target_globals): Likewise.
17681 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17683 * Makefile.in (target-globals.o): Depend on $(REGS_H).
17684 * regs.h (target_reg_modes): New structure.
17685 (default_target_reg_modes): Declare.
17686 (this_target_reg_modes): Declare as a variable or define as a macro.
17687 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
17688 * reginfo.c (default_target_reg_modes): New variable.
17689 (this_target_reg_modes): New conditional variable.
17690 (hard_regno_nregs, reg_raw_mode): Delete.
17691 * target-globals.h (this_target_regs): Declare.
17692 (target_globals): Add a regs field.
17693 (restore_target_globals): Copy the regs field to this_target_regs.
17694 * target-globals.c: Include regs.h.
17695 (default_target_globals): Initialize the regs field.
17696 (save_target_globals): Likewise.
17698 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17700 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
17701 * doc/tm.texi: Regenerate.
17702 * Makefile.in (OBJS-common): Add target-globals.o.
17703 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
17704 and target-globals.h.
17705 (target-globals.o): New rule.
17706 (GTFILES): Include $(srcdir)/target-globals.h.
17707 * defaults.h (SWITCHABLE_TARGET): Define.
17708 * gengtype.c (open_base_files): Add target-globals.h to the
17710 * target-globals.h: New file.
17711 * target-globals.c: Likewise.
17713 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
17714 * flags.h (target_flag_state): New structure.
17715 (default_target_flag_state): Declare.
17716 (this_target_flag_state): Declare as a variable or define as a macro.
17717 (align_loops_log): Redefine as a macro.
17718 (align_loops_max_skip, align_jumps_log): Likewise.
17719 (align_jumps_max_skip, align_labels_log): Likewise.
17720 (align_labels_max_skip, align_functions_log): Likewise.
17721 * toplev.c (default_target_flag_state): New variable.
17722 (this_target_flag_state): New conditional variable.
17723 (align_loops_log): Delete.
17724 (align_loops_max_skip, align_jumps_log): Likewise.
17725 (align_jumps_max_skip, align_labels_log): Likewise.
17726 (align_labels_max_skip, align_functions_log): Likewise.
17727 * target-globals.h (this_target_flag_state): Declare.
17728 (target_globals): Add a flag_state field.
17729 (restore_target_globals): Copy the flag_state field to
17730 this_target_flag_state.
17731 * target-globals.c: Include flags.h.
17732 (default_target_globals): Initialize the flag_state field.
17733 (save_target_globals): Likewise.
17735 2010-07-12 Jie Zhang <jie@codesourcery.com>
17737 * postreload.c (reg_symbol_ref[]): New.
17738 (move2add_use_add2_insn): New.
17739 (move2add_use_add3_insn): New.
17740 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
17741 (move2add_note_store): Likewise.
17743 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
17745 PR rtl-optimization/44752
17746 * genautomata.c (main): Don't emit an empty file even if there
17749 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17751 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
17752 ix86_solaris_return_in_memory.
17753 * config/i386-protos.h: Reflect this.
17754 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17755 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17757 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
17759 2010-07-12 Jie Zhang <jie@codesourcery.com>
17761 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
17762 align the stack when it's going to be saved.
17764 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17767 * config/host-solaris.c (mmap_fixed): New function.
17768 (sol_gt_pch_get_address): Use it.
17769 (sol_gt_pch_use_address): Likewise.
17771 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17773 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
17774 pentiumpro on Solaris 8 and 9/x86.
17775 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
17776 Document SSE/SSE2 support.
17777 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
17779 2010-07-12 Andi Kleen <ak@linux.intel.com>
17781 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
17782 instead of gcc_assert to print better error message for multiple
17785 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
17787 * config/i386/i386.c (ix86_asm_output_function_label): Change format
17788 string placeholder from 0x%x to %#x.
17789 (ix86_code_end): Use putc to output '\n'.
17790 (ix86_print_operand) <case ';'>: Use putc to output ';'.
17792 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
17794 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
17795 in directive -export.
17797 2010-07-10 Anatoly Sokolov <aesok@post.ru>
17799 * reginfo.h (reg_classes_intersect_p): Change arguments type to
17801 * rtl.h (reg_classes_intersect_p): Adjust prototype.
17803 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17805 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
17806 rs6000_memory_move_cost): Remove
17807 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
17808 TARGET_MEMORY_MOVE_COST): Define.
17809 (rs6000_register_move_cost): Make static. Change arguments type from
17810 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
17811 (rs6000_memory_move_cost): Make static. Change arguments type from
17812 'enum reg_class' to reg_class_t.
17814 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
17816 PR middle-end/42505
17817 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
17818 lookup code into....
17819 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
17821 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
17822 * cfgloopanal.c (target_clobbered_regs): Define.
17823 (init_set_costs): Initialize target_clobbered_regs.
17824 (estimate_reg_pressure_cost): Add call_p argument. When true,
17825 adjust the number of available registers to exclude the
17826 call-clobbered registers.
17827 * cfgloop.h (target_clobbered_regs): Declare.
17828 (estimate_reg_pressure_cost): Adjust declaration.
17829 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
17830 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
17831 (determine_set_costs): Dump target_clobbered_regs.
17832 (loop_body_includes_call): New function.
17833 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
17834 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
17835 call_p flag through.
17836 (best_gain_for_invariant): Likewise.
17837 (find_invariants_to_move): Likewise.
17838 (move_single_loop_invariants): Likewise, using already-computed
17841 2010-07-10 Richard Guenther <rguenther@suse.de>
17842 Joern Rennecke <joern.rennecke@embecosm.com>
17845 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
17846 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
17847 unless they have DECL_IGNORED_P set.
17849 2010-07-10 Richard Guenther <rguenther@suse.de>
17852 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
17854 (gimple_types_compatible_p): Similar to pointed-to
17855 types allow and merge a mix of complete and incomplete aggregate.
17856 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
17857 (iterative_hash_gimple_type): Adjust for that.
17859 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
17861 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
17863 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
17866 * config/darwin.c (output_objc_section_asm_op): Save and restore
17867 section when outputting ObjC section list.
17869 2010-07-09 Jan Hubicka <jh@suse.cz>
17871 * lto-streamer-out.c (produce_symtab): Do not write alias
17872 cgraph/varpool nodes.
17874 2010-07-09 Jan Hubicka <jh@suse.cz>
17876 * tree-inline.c (declare_return_variable): Fix ICE while
17877 inlining DECL_BY_VALUE function not in SSA form
17879 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
17881 PR tree-optimization/44576
17882 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
17883 New. Pull out from is_loop_prefetching_profitable to implement
17884 the trip count to ahead ratio heuristic.
17885 (mem_ref_count_reasonable_p): New. Pull out from
17886 is_loop_prefetching_profitable to implement the instruction to
17887 memory reference ratio heuristic. Also consider not reasonable if
17888 the memory reference count is above a threshold (to avoid
17889 explosive compilation time.
17890 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
17891 is_loop_prefetching_profitable to implement the instruction to
17892 prefetch ratio heuristic.
17893 (is_loop_prefetching_profitable): Removed.
17894 (loop_prefetch_arrays): Distribute the cost analysis across the
17895 function to allow early exit of the prefetch analysis.
17896 is_loop_prefetching_profitable is splitted into three functions,
17897 with each one called as early as possible.
17898 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
17899 number of memory references in a loop is considered too many.
17901 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
17903 * reload.c (find_reloads): Don't clear badop if we have a winreg
17904 alternative, but not win, and the class only has fixed regs.
17905 * hard-reg-set.h (class_only_fixed_regs): Declare.
17906 * reginfo.c (class_only_fixed_regs): New array.
17907 (init_reg_sets_1): Initialize it.
17908 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
17909 discourage alternatives using the stack pointer.
17911 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
17913 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
17915 * config/arm/arm.md (cbranchqi4): Fix array size.
17916 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
17917 calculating length.
17919 2010-07-09 Richard Guenther <rguenther@suse.de>
17921 * gimple.c (struct type_fixup_s): New struct and VEC type.
17922 (gimple_register_type_fixups): New static global.
17923 (gimple_queue_type_fixup): New function.
17924 (gimple_types_compatible_p): Queue type fixups instead of
17925 applying them here.
17926 (gimple_register_type): Apply queued fixups for the
17927 canonical type. Empty the type fixup queue.
17929 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17931 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
17932 * configure: Regenerate.
17933 * config.in: Ditto.
17935 2010-07-09 Jakub Jelinek <jakub@redhat.com>
17936 Denys Vlasenko <dvlasenk@redhat.com>
17937 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17939 PR tree-optimization/28632
17940 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
17941 (extract_range_from_binary_expr): Further optimize
17942 BIT_AND_EXPR and BIT_IOR_EXPR.
17944 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
17946 * tree-if-conv.c (fold_or_predicates): New.
17947 (add_to_predicate_list): Call it.
17949 2010-07-09 Richard Guenther <rguenther@suse.de>
17951 PR middle-end/44890
17952 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
17953 if base is a pointer.
17954 * tree-cfg.c (verify_expr): Update MEM_REF checking.
17956 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17959 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
17960 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
17961 builtin mask for load/store builtins.
17963 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17965 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
17967 * configure: Regenerate.
17968 * config/i386/i386.c (ix86_print_operand) <case ';'>:
17969 Remove TARGET_MACHO.
17971 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
17973 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
17975 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
17977 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
17979 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
17981 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
17983 * config/picochip/picochip.md (commsTestPort): Emit more
17984 efficient sequence for tstport instruction.
17986 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17988 * config/i386/i386.c (ix86_veclib_handler): Make static.
17990 2010-07-09 Richard Guenther <rguenther@suse.de>
17992 PR tree-optimization/44852
17993 * tree-ssa-alias.c: Include toplev.h for exact_log2.
17994 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
17996 (indirect_refs_may_alias_p): Likewise.
17997 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
17999 2010-07-09 Richard Guenther <rguenther@suse.de>
18001 PR tree-optimization/44882
18002 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
18004 (vectorizable_load): Likewise.
18006 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
18009 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
18010 All callers changed.
18011 Handle the case when we're called for the epilogue.
18012 (thumb_unexpanded_epilogue): Use it.
18013 (thumb1_expand_epilogue): Likewise.
18015 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18017 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
18018 both ranges are range_int_cst_p with non-negative minimum,
18019 try harder to derive smaller range.
18021 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18023 * genrecog.c: Include diagnostic-core.h before toplev.h.
18024 * genoutput.c: Likewise.
18025 * genextract.c: Likewise.
18026 * genautomata.c: Likewise.
18027 * genemit.c: Likewise.
18028 * genpeep.c: Likewise.
18029 * genattrtab.c: Likewise.
18030 * genconditions.c: Likewise.
18031 * genpreds.c: Likewise.
18033 2010-07-08 Andi Kleen <ak@linux.intel.com>
18035 * lto-section-in.c (lto_section_name): Add missing comma.
18037 2010-07-08 Anatoly Sokolov <aesok@post.ru>
18039 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
18040 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
18041 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
18042 (ia64_override_options): Rename to...
18043 (ia64_option_override): ... this one. Make static.
18045 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18047 PR middle-end/44843
18048 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
18049 pointed-to type of the offset in a MEM_REF to compute the alignment.
18051 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
18053 * final.c (final_scan_insn): Replace
18054 TARGET_UNWIND_INFO macro check by unwind_emit
18056 * targhooks.c (default_unwind_emit): Removed.
18057 * targhooks.h (default_unwind_emit): Likewise.
18058 * target.def (unwind_emit): Set default value to NULL.
18060 * config/i386/i386-protos.h (ix86_asm_output_function_label):
18062 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
18063 for NULL fntype argument and allow 64-bit targets.
18064 (ix86_asm_output_function_label): New function.
18065 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
18066 (ix86_handle_fndecl_attribute): Likewise.
18067 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
18068 * doc/doc/tm.texi: Regenerated.
18069 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
18070 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
18071 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
18072 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
18073 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18074 * config/elfos.h: Likewise.
18075 * config/i386/cygming.h: Likewise.
18076 * config/netbsd-aout.h: Likewise.
18077 * config/openbsd.h: Likewise.
18078 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
18079 by ix86_asm_output_function_label function call.
18080 * varasm.c (assemble_start_function): Use
18081 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18083 2010-07-08 Jan Hubicka <jh@suse.cz>
18085 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
18087 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
18089 * ipa-cp.c (ipcp_estimate_growth): Use it.
18090 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
18093 2010-07-08 Jan Hubicka <jh@suse.cz>
18095 * tree-inline.c (declare_return_variable): Allocate annotation for new
18098 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18100 PR tree-optimization/44710
18101 * tree-if-conv.c (parse_predicate): New.
18102 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
18103 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
18105 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18107 * common.opt (ftree-loop-if-convert): New flag.
18108 * doc/invoke.texi (ftree-loop-if-convert): Documented.
18109 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
18110 when flag_tree_loop_if_convert is set.
18112 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
18114 * config/i386/i386.c: Use short syntax for function calls
18115 through function pointers.
18116 * config/i386/i386.md: Ditto.
18118 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18120 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
18122 2010-07-08 Richard Guenther <rguenther@suse.de>
18124 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
18125 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
18127 2010-07-08 Jakub Jelinek <jakub@redhat.com>
18129 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
18130 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
18131 (loc_list_from_tree): Likewise.
18132 (output_loc_operands): Handle outputting DW_OP_const[48]u
18133 with loc->dtprel set.
18134 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
18136 2010-07-08 Jan Hubicka <jh@suse.cz>
18138 * ipa.c: Include pointer-set.h
18139 (cgraph_externally_visible_p): New attribute ALIASED;
18140 when in LTO, hidden symbols are local unless they are aliased.
18141 (function_and_variable_visibility): Compute aliased nodes;
18142 handle LTO and hidden symbol on functions and vars.
18143 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
18144 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
18146 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18148 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18149 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18150 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18151 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18152 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18153 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
18154 (ix86_gen_probe_stack_range): Likewise.
18155 (override_options): Set them.
18156 (ix86_target_stack_probe): New function.
18157 (ix86_compute_frame_layout): Force use of push instructions to
18158 save registers if stack checking with probes is enabled.
18159 (get_scratch_register_on_entry): New function.
18160 (release_scratch_register_on_entry): Likewise.
18161 (ix86_adjust_stack_and_probe): Likewise.
18162 (output_adjust_stack_and_probe): Likewise.
18163 (ix86_emit_probe_stack_range): Likewise.
18164 (output_probe_stack_range): Likewise.
18165 (ix86_expand_prologue): Emit stack checking code if static built-in
18166 stack checking is enabled.
18167 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
18168 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
18169 (output_adjust_stack_and_probe): Likewise.
18170 (output_probe_stack_range): Likewise.
18171 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18172 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
18173 TARGET_STACK_PROBE.
18174 (allocate_stack_worker_64): Likewise.
18175 (allocate_stack): Likewise.
18176 (adjust_stack_and_probe): New insn.
18177 (probe_stack_range): Likewise.
18179 2010-07-08 Richard Guenther <rguenther@suse.de>
18181 PR tree-optimization/44831
18182 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
18183 a MEM_REF preserving TBAA info of the original dereference.
18184 Dereference the original pointer if the address is not invariant.
18185 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
18186 at least one invariant address that we are going to dereference.
18188 2010-07-08 Richard Guenther <rguenther@suse.de>
18190 PR tree-optimization/44861
18191 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
18192 information when building MEM_REFs.
18193 (vectorizable_load): Likewise.
18194 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18196 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18198 * config/sol2-c.c: Do not include diagnostic-core.h.
18200 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18203 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
18204 with respect to current_function_decl. Pass decl of the function.
18205 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
18206 * ipa-inline.c (compute_inline_parameters): Pass decl to
18207 estimated_stack_frame_size.
18209 2010-07-08 Richard Guenther <rguenther@suse.de>
18211 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18213 (valueize_refs): Call it.
18215 2010-07-08 Richard Guenther <rguenther@suse.de>
18217 PR rtl-optimization/44838
18218 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
18219 SSA form do not use pointer equivalence.
18221 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18223 * dwarf2out.c (AT_linkage_name): Delete.
18224 (add_linkage_attr): New function.
18225 (add_linkage_name): Call it to emit the linkage attribute.
18226 (dwarf2out_finish): Likewise.
18227 (move_linkage_attr): Explicitly accept both attribute variants.
18229 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18231 * toplev.h: Do not include diagnostic-core.h.
18232 Include diagnostic-core.h in every file that includes toplev.h.
18233 * c-tree.h: Do not include toplev.h.
18234 * pretty-print.h: Update comment.
18235 * Makefile.in: Update dependencies.
18236 * alias.c: Include diagnostic-core.h in every file that includes
18238 * attribs.c: Likewise.
18239 * auto-inc-dec.c: Likewise.
18240 * bb-reorder.c: Likewise.
18241 * bt-load.c: Likewise.
18242 * caller-save.c: Likewise.
18243 * calls.c: Likewise.
18245 * cfganal.c: Likewise.
18246 * cfgbuild.c: Likewise.
18247 * cfgcleanup.c: Likewise.
18248 * cfghooks.c: Likewise.
18249 * cfgloop.c: Likewise.
18250 * combine.c: Likewise.
18251 * config/alpha/alpha.c: Likewise.
18252 * config/arc/arc.c: Likewise.
18253 * config/arm/arm.c: Likewise.
18254 * config/arm/pe.c: Likewise.
18255 * config/avr/avr.c: Likewise.
18256 * config/bfin/bfin.c: Likewise.
18257 * config/cris/cris.c: Likewise.
18258 * config/crx/crx.c: Likewise.
18259 * config/darwin-c.c: Likewise.
18260 * config/darwin.c: Likewise.
18261 * config/fr30/fr30.c: Likewise.
18262 * config/frv/frv.c: Likewise.
18263 * config/h8300/h8300.c: Likewise.
18264 * config/host-darwin.c: Likewise.
18265 * config/i386/i386.c: Likewise.
18266 * config/i386/netware.c: Likewise.
18267 * config/i386/nwld.c: Likewise.
18268 * config/i386/winnt-cxx.c: Likewise.
18269 * config/i386/winnt-stubs.c: Likewise.
18270 * config/i386/winnt.c: Likewise.
18271 * config/ia64/ia64-c.c: Likewise.
18272 * config/ia64/ia64.c: Likewise.
18273 * config/iq2000/iq2000.c: Likewise.
18274 * config/lm32/lm32.c: Likewise.
18275 * config/m32c/m32c-pragma.c: Likewise.
18276 * config/m32c/m32c.c: Likewise.
18277 * config/m32r/m32r.c: Likewise.
18278 * config/m68hc11/m68hc11.c: Likewise.
18279 * config/m68k/m68k.c: Likewise.
18280 * config/mcore/mcore.c: Likewise.
18281 * config/mep/mep-pragma.c: Likewise.
18282 * config/mep/mep.c: Likewise.
18283 * config/mmix/mmix.c: Likewise.
18284 * config/mn10300/mn10300.c: Likewise.
18285 * config/moxie/moxie.c: Likewise.
18286 * config/pa/pa.c: Likewise.
18287 * config/pdp11/pdp11.c: Likewise.
18288 * config/picochip/picochip.c: Likewise.
18289 * config/rs6000/rs6000-c.c: Likewise.
18290 * config/rs6000/rs6000.c: Likewise.
18291 * config/rx/rx.c: Likewise.
18292 * config/s390/s390.c: Likewise.
18293 * config/score/score.c: Likewise.
18294 * config/score/score3.c: Likewise.
18295 * config/score/score7.c: Likewise.
18296 * config/sh/sh.c: Likewise.
18297 * config/sh/symbian-base.c: Likewise.
18298 * config/sh/symbian-c.c: Likewise.
18299 * config/sh/symbian-cxx.c: Likewise.
18300 * config/sol2-c.c: Likewise.
18301 * config/sol2.c: Likewise.
18302 * config/sparc/sparc.c: Likewise.
18303 * config/spu/spu.c: Likewise.
18304 * config/stormy16/stormy16.c: Likewise.
18305 * config/v850/v850-c.c: Likewise.
18306 * config/v850/v850.c: Likewise.
18307 * config/vax/vax.c: Likewise.
18308 * config/vxworks.c: Likewise.
18309 * config/xtensa/xtensa.c: Likewise.
18310 * convert.c: Likewise.
18312 * cselib.c: Likewise.
18313 * dbgcnt.c: Likewise.
18314 * dbxout.c: Likewise.
18316 * dominance.c: Likewise.
18317 * emit-rtl.c: Likewise.
18318 * explow.c: Likewise.
18319 * expmed.c: Likewise.
18320 * fixed-value.c: Likewise.
18321 * fold-const.c: Likewise.
18322 * fwprop.c: Likewise.
18323 * gcse.c: Likewise.
18324 * ggc-common.c: Likewise.
18325 * ggc-page.c: Likewise.
18326 * ggc-zone.c: Likewise.
18327 * gimple-low.c: Likewise.
18328 * gimplify.c: Likewise.
18329 * graph.c: Likewise.
18330 * haifa-sched.c: Likewise.
18331 * ifcvt.c: Likewise.
18332 * implicit-zee.c: Likewise.
18333 * integrate.c: Likewise.
18334 * ira-build.c: Likewise.
18335 * ira-color.c: Likewise.
18336 * ira-conflicts.c: Likewise.
18337 * ira-costs.c: Likewise.
18338 * ira-lives.c: Likewise.
18340 * lists.c: Likewise.
18341 * loop-doloop.c: Likewise.
18342 * loop-iv.c: Likewise.
18343 * lto-opts.c: Likewise.
18344 * lto-symtab.c: Likewise.
18345 * main.c: Likewise.
18346 * modulo-sched.c: Likewise.
18347 * optabs.c: Likewise.
18348 * params.c: Likewise.
18349 * plugin.c: Likewise.
18350 * postreload-gcse.c: Likewise.
18351 * postreload.c: Likewise.
18352 * predict.c: Likewise.
18353 * profile.c: Likewise.
18354 * real.c: Likewise.
18355 * regcprop.c: Likewise.
18356 * reginfo.c: Likewise.
18357 * regmove.c: Likewise.
18358 * reorg.c: Likewise.
18359 * resource.c: Likewise.
18361 * rtlanal.c: Likewise.
18362 * sched-deps.c: Likewise.
18363 * sched-ebb.c: Likewise.
18364 * sched-rgn.c: Likewise.
18365 * sdbout.c: Likewise.
18366 * sel-sched-dump.c: Likewise.
18367 * sel-sched-ir.c: Likewise.
18368 * simplify-rtx.c: Likewise.
18369 * stmt.c: Likewise.
18370 * stor-layout.c: Likewise.
18371 * store-motion.c: Likewise.
18372 * targhooks.c: Likewise.
18373 * tree-cfg.c: Likewise.
18374 * tree-cfgcleanup.c: Likewise.
18375 * tree-dump.c: Likewise.
18376 * tree-eh.c: Likewise.
18377 * tree-inline.c: Likewise.
18378 * tree-nomudflap.c: Likewise.
18379 * tree-object-size.c: Likewise.
18380 * tree-optimize.c: Likewise.
18381 * tree-outof-ssa.c: Likewise.
18382 * tree-phinodes.c: Likewise.
18383 * tree-profile.c: Likewise.
18384 * tree-ssa-ccp.c: Likewise.
18385 * tree-ssa-coalesce.c: Likewise.
18386 * tree-ssa-live.c: Likewise.
18387 * tree-ssa-loop-niter.c: Likewise.
18388 * tree-ssa-loop-prefetch.c: Likewise.
18389 * tree-ssa-loop.c: Likewise.
18390 * tree-ssa-structalias.c: Likewise.
18391 * tree-ssa-uninit.c: Likewise.
18392 * tree-ssa.c: Likewise.
18393 * tree-vect-data-refs.c: Likewise.
18394 * tree-vect-loop-manip.c: Likewise.
18395 * tree-vect-loop.c: Likewise.
18396 * tree-vect-patterns.c: Likewise.
18397 * tree-vect-stmts.c: Likewise.
18398 * tree-vrp.c: Likewise.
18399 * varasm.c: Likewise.
18402 * xcoffout.c: Likewise.
18404 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
18406 * gengtype.c (write_field_root): New function.
18407 (write_root): Use it.
18409 2010-07-07 Wei Guozhi <carrot@google.com>
18411 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18412 of lowest bits to lshift/compare): Add a missing line.
18414 2010-07-07 Wei Guozhi <carrot@google.com>
18416 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18417 of lowest bits to lshift/compare): New.
18419 2010-07-07 Tom Tromey <tromey@redhat.com>
18421 * doc/tm.texi: Update.
18422 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
18424 * target.def (want_debug_pub_sections): New hook.
18425 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
18426 * dwarf2out.c (add_pubname_string): Check
18427 targetm.want_debug_pub_sections.
18428 (add_pubname): Likewise.
18429 (add_pubtype): Likewise.
18431 2010-07-07 Jie Zhang <jie@codesourcery.com>
18433 * genautomata.c (output_automata_list_min_issue_delay_code):
18434 Correctly decompress min_issue_delay.
18436 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
18438 PR rtl-optimization/44404
18439 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
18440 possible, use reg_overlap_mentioned_p instead.
18442 2010-07-07 Duncan Sands <baldrick@free.fr>
18444 PR middle-end/41355
18445 * tree.c (build_function_type_skip_args): Copy the original type using
18446 build_distinct_type_copy rather than copy_node.
18448 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
18451 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
18453 (ix86_expand_prologue): Likewise.
18454 (ix86_handle_fndecl_attribute): Likewise.
18455 (ix86_asm_declare_function_name): Likewise.
18456 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18457 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18458 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
18459 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
18460 * doc/extend.texi: Likewise.
18462 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
18465 * config/i386/i386.md (rdrand<mode>): Changed to expand to
18466 retry if the carry flag isn't valid.
18467 (rdrand<mode>_1): New.
18469 2010-07-07 Richard Guenther <rguenther@suse.de>
18471 PR middle-end/44790
18472 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
18473 for expanding the constant offset for MEM_REFs.
18475 2010-07-07 Richard Guenther <rguenther@suse.de>
18477 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
18478 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
18479 * gimple.h (is_gimple_operand): Remove.
18480 * gimple.c (is_gimple_operand): Likewise.
18481 (walk_gimple_op): Fix wi->val_only setting for calls.
18482 * tree-cfg.c (verify_gimple_call): Fix argument validation.
18483 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
18484 invalid gimple calls.
18486 2010-07-06 Jan Hubicka <jh@suse.cz>
18488 * lto-cgraph.c (output_cgraph): Add missing declaration.
18490 2010-07-06 Jan Hubicka <jh@suse.cz>
18492 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
18495 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
18497 * doc/gimple.texi (GIMPLE_DEBUG): Document.
18498 * doc/rtl.texi (Debug Information): New node.
18499 (NOTE_INSN_VAR_LOCATION): Document.
18500 (debug_insn): Likewise.
18501 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
18503 2010-07-07 Jan Hubicka <jh@suse.cz>
18505 With parts by Richard Guenther.
18507 PR middle-end/44813
18508 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
18509 for functions passed by reference.
18510 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
18511 in memory when passed by reference.
18512 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
18514 * ipa-split.c (split_function): Cleanup way return value is passed;
18515 handle SSA DECL_BY_REFERENCE retvals.
18516 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
18517 DECL_BY_REFERENCE is set.
18518 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
18519 find_what_p_points_to): Handle RESULT_DECL.
18520 * tree-inline.c (declare_return_variable): Get new entry_block argument;
18521 when passing by reference ensure that RESULT_DECL is gimple_val.
18522 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
18523 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
18525 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
18527 PR rtl-optimization/44787
18528 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
18529 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
18531 2010-07-06 Jan Hubicka <jh@suse.cz>
18533 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
18534 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
18535 with body can prevail.
18536 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
18537 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
18538 * cgraph.c (cgraph_get_node_or_alias): New function.
18539 * cgraph.h (cgraph_get_node_or_alias): Declare.
18541 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
18543 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
18545 (ix86_expand_prologue): Likewise.
18546 (ix86_handle_fndecl_attribute): Likewise.
18547 (ix86_asm_declare_function_name): New function for
18548 ASM_DECLARE_FUNCTION_NAME.
18549 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
18550 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
18551 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
18552 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
18553 * doc/extend.texi: Adjust documentation about ms_hook_prologue
18556 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18558 * config/i386/i386.md (immediate_operand): New mode attribute.
18560 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
18561 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
18562 using P mode iterator.
18563 (pro_epilogue_adjust_stack_di_2): Rename from
18564 pro_epilogue_adjust_stack_rex64_2.
18566 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
18568 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18570 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
18571 through gen_mov_insv_1 function pointer.
18572 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
18573 gen_truncxf<mode>2 through gen_truncxf function pointer.
18574 (remainder<mode>3): Ditto.
18575 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
18576 (allocate_stack): Call gen_allocate_stack_worker_64 or
18577 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
18579 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
18582 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18584 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
18585 operand constraint instead of <r><i>m.
18587 2010-07-06 Richard Guenther <rguenther@suse.de>
18589 PR middle-end/44828
18590 * convert.c (convert_to_integer): Watch out for overflowing
18593 2010-07-05 Jan Hubicka <jh@suse.cz>
18595 * lto-streamer.c (write_symbol_vec): Rename to ...
18596 (write_symbol) ... this one; write only symbol given and when
18597 present in cache. Sanity check that what is defined is present
18598 in cgraph/varpool with body/finalized decl.
18599 (write_symbols_of_kind): Remove.
18600 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
18601 pairs to produce symtab.
18602 (produce_asm_for_decls): Update call of produce_symtab; don't do so
18603 when doing WPA streaming.
18605 2010-07-05 Jan Hubicka <jh@suse.cz>
18607 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
18608 function is still available to fold into.
18610 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18612 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
18613 * function.h (struct_function): Change type of local_decls field
18615 (add_local_decl): New function.
18616 (FOR_EACH_LOCAL_DECL): New macro.
18617 * cfgexpand.c (init_vars_expansion): Adjust for new type of
18619 (estimated_stack_frame_size): Likewise.
18620 (expand_used_vars): Likewise.
18621 * cgraphbuild.c (build_cgraph_edges): Likewise.
18622 * function.c (instantiate_decls_1): Likewise.
18623 * ipa-struct-reorg.c (build_data_structure): Likewise.
18624 * ipa-type-escape.c (analyze_function): Likewise.
18625 * lto-streamer-in.c (input_function): Likewise.
18626 * lto-streamer-out.c (output_function): Likewise.
18627 * tree-ssa-live.c (remove_unused_locals): Likewise.
18628 * tree.c (free_lang_data_in_decl): Likewise.
18629 (find_decls_types_in_node): Likewise.
18630 * omp-low.c (remove_exit_barrier): Likewise.
18631 (expand_omp_taskreg): Likewise.
18632 (list2chain): Rename to...
18633 (vec2chain): ...this. Adjust.
18634 * cgraphunit.c (assemble_thunk): Call add_local_decl.
18635 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
18636 * gimple-low.c (record_vars_into): Likewise.
18637 * tree-inline.c (remap_decls): Likewise.
18638 (declare_return_variable): Likewise.
18639 (declare_inline_vars): Likewise.
18640 (copy_forbidden): Adjust for new type of cfun->local_decls.
18641 (add_local_variables): New function.
18642 (expand_call_inline): Call it.
18643 (tree_function_versioning): Likewise.
18645 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
18647 AVX Programming Reference (June, 2010)
18648 * config/i386/cpuid.h (bit_F16C): New.
18649 (bit_RDRND): Likewise.
18650 (bit_FSGSBASE): Likewise.
18652 * config/i386/i386-builtin-types.def: Add
18653 "DEF_FUNCTION_TYPE (UINT16)", function types for
18654 float16 <-> float conversions and
18655 "DEF_FUNCTION_TYPE (VOID, UINT64)".
18657 * config/i386/i386-c.c (ix86_target_macros_internal): Support
18658 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
18659 OPTION_MASK_ISA_F16C.
18661 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
18662 (OPTION_MASK_ISA_RDRND_SET): Likewise.
18663 (OPTION_MASK_ISA_F16C_SET): Likewise.
18664 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
18665 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
18666 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
18667 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
18668 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
18669 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
18670 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
18671 (override_options): Handle them.
18672 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
18673 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
18674 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
18675 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
18676 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
18677 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
18678 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
18679 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
18680 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
18681 (bdesc_args): Likewise.
18682 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
18683 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
18684 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
18685 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
18686 Handle non-memory store.
18688 * config/i386/i386.h (TARGET_FSGSBASE): New.
18689 (TARGET_RDRND): Likewise.
18690 (TARGET_F12C): Likewise.
18692 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
18693 (UNSPEC_VCVTPS2PH): Likewise.
18694 (UNSPECV_RDFSBASE): Likewise.
18695 (UNSPECV_RDGSBASE): Likewise.
18696 (UNSPECV_WRFSBASE): Likewise.
18697 (UNSPECV_WRGSBASE): Likewise.
18698 (UNSPECV_RDRAND): Likewise.
18699 (rdfsbase<mode>): Likewise.
18700 (rdgsbase<mode>): Likewise.
18701 (wrfsbase<mode>): Likewise.
18702 (wrgsbase<mode>): Likewise.
18703 (rdrand<mode>): Likewise.
18705 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
18707 * config/i386/immintrin.h (_rdrand_u16): New.
18708 (_rdrand_u32): Likewise.
18709 (_readfsbase_u32): Likewise.
18710 (_readfsbase_u64): Likewise.
18711 (_readgsbase_u32): Likewise.
18712 (_readgsbase_u64): Likewise.
18713 (_writefsbase_u32): Likewise.
18714 (_writefsbase_u64): Likewise.
18715 (_writegsbase_u32): Likewise.
18716 (_writegsbase_u64): Likewise.
18717 (_rdrand_u64): Likewise.
18718 (_cvtsh_ss): Likewise.
18719 (_mm_cvtph_ps): Likewise.
18720 (_mm256_cvtph_ps): Likewise.
18721 (_cvtss_sh): Likewise.
18722 (_mm_cvtps_ph): Likewise.
18723 (_mm256_cvtps_ph): Likewise.
18725 * config/i386/sse.md (vcvtph2ps): New.
18726 (*vcvtph2ps_load): Likewise.
18727 (vcvtph2ps256): Likewise.
18728 (vcvtps2ph): Likewise.
18729 (*vcvtps2ph): Likewise.
18730 (*vcvtps2ph_store): Likewise.
18731 (vcvtps2ph256): Likewise.
18733 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
18735 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
18737 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
18740 * genenums.c (main): Output include of insn-constants.h
18741 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
18743 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
18745 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
18746 (override_options): Initialize it.
18747 (ix86_expand_prologue): Use it.
18749 2010-07-05 Jakub Jelinek <jakub@redhat.com>
18751 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
18753 2010-07-05 Anatoly Sokolov <aesok@post.ru>
18755 * double-int.h (fit_double_type): Remove declaration.
18756 * double-int.c (fit_double_type): Remove function.
18757 * tree.h (int_fits_type_p): Adjust prototype.
18758 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
18759 instead of fit_double_type.
18760 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
18761 instead of fit_double_type and build_int_cst_wide.
18762 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
18763 instead of fit_double_type and build_int_cst_wide.
18764 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
18765 of fit_double_type.
18767 2010-07-05 Jan Hubicka <jh@suse.cz>
18769 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
18770 in_other_partition.
18771 * lto-cgraph.c (referenced_from_other_partition_p,
18772 reachable_from_other_partition_p): Use in_other_partition flags.
18773 (output_node, output_varpool_node): COMDAT nodes always have private
18774 copies and thus are never used from other partition.
18776 2010-07-05 Anatoly Sokolov <aesok@post.ru>
18778 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18779 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
18780 * config/ia64/ia64.c Include reload.h.
18781 (ia64_memory_move_cost): New function.
18782 (TARGET_MEMORY_MOVE_COST): Define.
18783 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
18786 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
18788 PR middle-end/42505
18789 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
18790 comments about cost model.
18791 (try_add_cand_for): Add second strategy for choosing initial set
18792 based on original IVs, controlled by ORIGINALP argument.
18793 (get_initial_solution): Add ORIGINALP argument.
18794 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
18795 (find_optimal_iv_set): Try two different strategies for choosing
18796 the IV set, and return the one with lower cost.
18798 2010-07-05 Richard Guenther <rguenther@suse.de>
18800 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
18802 2010-07-05 Richard Guenther <rguenther@suse.de>
18804 * tree.c (reference_alias_ptr_type): New function.
18805 * tree.h (reference_alias_ptr_type): Declare.
18806 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
18807 allow non-TARGET_MEM_REF new refs.
18808 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
18809 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
18810 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
18811 (create_mem_ref): Get alias pointer type. Adjust calls to
18812 create_mem_ref_raw.
18813 (maybe_fold_tmr): Likewise.
18814 * tree-flow.h (create_mem_ref): Adjust prototype.
18816 2010-07-05 Jakub Jelinek <jakub@redhat.com>
18819 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
18820 *from_p is VAR_DECL.
18822 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18824 * tree.h (build_call_list): Remove.
18825 * tree.c (build_call_list): Remove.
18827 2010-07-05 Richard Guenther <rguenther@suse.de>
18829 * double-int.h (double_int_sub): Declare.
18830 * double-int.c (double_int_sub): New function.
18831 * dwarf2out.c (field_byte_offset): Use it.
18832 * fixed-value.c (do_fixed_add): Likewise.
18833 (do_fixed_multiply): Likewise.
18834 (do_fixed_divide): Likewise.
18835 * tree-predcom.c (add_ref_to_chain): Likewise.
18836 (determine_roots_comp): Likewise.
18837 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18839 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18841 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
18844 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
18846 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
18847 * arm-modes.def (CC_NOTB): Don't define.
18848 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
18849 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
18850 (LTUGEU): New code_iterator.
18851 (cnb, optab): New corresponding code_attrs.
18852 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
18853 to canonical form. Operands 1 and 2 are commutative. Parametrize
18855 (addsi3_carryin_shift_<optab>): Likewise.
18856 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
18857 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
18858 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
18859 (subsi3_compare): Renamed from subsi3_compare0_c.
18860 Change CC_NOTB to CC.
18861 (arm_subsi3_insn): Allow constants for operand 0.
18862 (compare_scc peephole for eq case): New.
18863 (compare_scc splitters): Change CC_NOTB to CC.
18865 2010-07-05 Richard Guenther <rguenther@suse.de>
18867 * tree-ssa-loop-im.c (for_each_index): Do not handle
18868 ALIGN_INDIRECT_REF.
18869 (gen_lsm_tmp_name): Likewise.
18870 * tree-dump.c (dequeue_and_dump): Likewise.
18871 * tree-pretty-print.c (dump_generic_node): Likewise.
18872 (op_code_prio): Likewise.
18873 (op_symbol_code): Likewise.
18874 * tree.c (staticp): Likewise.
18875 (build1_stat): Likewise.
18876 * tree.h (INDIRECT_REF_P): Likewise.
18877 * fold-const.c (maybe_lvalue_p): Likewise.
18878 (operand_equal_p): Likewise.
18879 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18880 (ao_ref_init_from_vn_reference): Likewise.
18881 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
18882 (find_interesting_uses_address): Likewise.
18883 * dwarf2out.c (loc_list_from_tree): Likewise.
18884 * gimplify.c (gimplify_expr): Likewise.
18885 * tree-eh.c (tree_could_trap_p): Likewise.
18886 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18887 * cfgexpand.c (expand_debug_expr): Likewise.
18888 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18889 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
18890 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
18891 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
18892 * tree-ssa-operands.c (get_expr_operands): Likewise.
18893 * expr.c (safe_from_p): Likewise.
18894 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
18895 * tree-vect-data-refs.c (vect_setup_realignment): Build
18896 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
18897 * tree-vect-stmts.c (vectorizable_load): Likewise.
18898 * tree.def (ALIGN_INDIRECT_REF): Remove.
18900 2010-07-05 Richard Guenther <rguenther@suse.de>
18902 PR tree-optimization/44784
18903 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
18904 for inserted stmts.
18905 (find_or_generate_expression): Fix SCCVN insertion check.
18907 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
18909 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
18910 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
18911 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
18914 2010-07-05 Ira Rosen <irar@il.ibm.com>
18916 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
18917 statements that are not vectorized.
18918 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
18921 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
18924 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
18926 2010-07-05 Richard Guenther <rguenther@suse.de>
18928 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
18929 RESULT_DECLs properly.
18931 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
18933 PR rtl-optimization/44695
18934 * config/i386/i386.md (extract_code): Removed.
18935 (<u>divmodqi4): Likewise.
18937 (udivmodqi4): Likewise.
18938 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
18939 (udivmodhiqi3): Likewise.
18941 2010-07-04 Jan Hubicka <jh@suse.cz>
18943 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
18945 2010-07-04 Jan Hubicka <jh@suse.cz>
18947 * cgraphunit.c (init_cgraph): Only initialize dump file if it
18948 is not already initialized.
18950 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
18952 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
18953 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
18954 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
18955 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
18956 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
18957 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
18958 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
18959 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
18960 (sync_new_nand_optab): Redefine as macros.
18961 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
18963 (direct_optab_index): New enum.
18964 (direct_optab_d): New structure.
18965 (direct_optab): New typedef.
18966 (direct_optab_table): Declare.
18967 (direct_optab_handler, set_direct_optab_handler): New functions.
18968 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
18969 (sync_lock_release_optab): New macros.
18970 * optabs.c (direct_optab_table): New variable.
18971 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
18972 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
18973 cmpstr_optab and cmpstrn_optab.
18974 (emit_conditional_move): Likewise for movcc_optab.
18975 (can_conditionally_move_p): Likewise for movcc_gen_code.
18976 (init_insn_codes): Clear direct_optab_table.
18977 (init_optabs): Don't initialize the new "direct optabs" here.
18978 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
18980 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
18981 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
18982 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
18983 (expand_sync_operation): Likewise other sync_*_optabs.
18984 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
18985 to sync_compare_and_swap_optab.
18986 (expand_sync_lock_test_and_set): Use direct_optab_handler for
18987 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
18988 to the names of both.
18989 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
18990 cmpstr_optab and cmpstrn_optab.
18991 (expand_builtin_lock_release): Likewise sync_lock_release.
18992 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
18993 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
18994 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
18995 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
18996 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
18997 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
18998 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
18999 (sync_lock_test_and_set, sync_lock_release): Delete.
19000 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
19001 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
19002 * genopinit.c (optabs): Use set_direct_optab_handler for the new
19004 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
19005 the "optab" local variable. Use direct_optab_handler for optab and
19006 sync_compare_and_swap_optab.
19007 * reload1.c (reload_in_optab, reload_out_optab): Delete.
19008 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
19009 reload_in_optab and reload_out_optab.
19010 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19011 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
19012 * config/pa/pa.c (pa_secondary_reload): Likewise.
19013 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
19014 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
19015 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
19016 (VMSupportsCS8_builtin): Likewise.
19018 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19020 * optabs.h (optab_handlers): Change type of insn_code to int.
19021 (optab_handler, set_optab_handler, convert_optab_handler)
19022 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
19024 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
19025 (init_insn_codes): Zero both the above arrays.
19026 (init_optabs): Never call init_insn_codes first time around.
19028 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19030 * optabs.h (optab_handler, convert_optab_handler): Turn into
19031 inline functions that return an insn code.
19032 (set_optab_handler, set_convert_optab_handler): New functions.
19033 * builtins.c: Replace optab_handler(X)->insn_code with
19034 optab_handler or set_optab_handler thoughout. Likewise
19035 convert_optab_handler(X)->insn_code with convert_optab_handler
19036 and set_convert_optab_handler.
19037 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
19038 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
19039 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
19040 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
19041 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
19042 config/spu/spu.c: Likewise.
19044 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
19047 * config.gcc (sh*-*-*): Use regular expressions instead of
19048 the 'i' modifier for sed substitutions.
19050 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
19052 * gimple.c (gimple_body): Comments added.
19054 2010-07-04 Richard Guenther <rguenther@suse.de>
19056 PR middle-end/44809
19057 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
19058 of an INDIRECT_REF.
19060 2010-07-04 Richard Guenther <rguenther@suse.de>
19062 PR tree-optimization/44479
19063 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
19064 extra SSA name copy statements which preserves points-to
19066 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19067 Copy points-to information for all pointers. Properly handle
19069 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
19071 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
19074 2010-07-04 Richard Guenther <rguenther@suse.de>
19076 PR middle-end/44785
19077 * tree-inline.c (initialize_inlined_parameters): Do not
19078 re-use pointer-map slot over remap_type call.
19080 2010-07-04 Richard Guenther <rguenther@suse.de>
19082 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
19084 2010-07-04 Richard Guenther <rguenther@suse.de>
19086 PR tree-optimization/44656
19087 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
19088 again after value-replacing in the defintions lhs.
19090 2010-07-04 Ira Rosen <irar@il.ibm.com>
19091 Revital Eres <eres@il.ibm.com>
19093 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
19094 Document new arguments.
19095 * doc/tm.texi: Regenerate.
19096 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
19097 Handle unaligned store.
19098 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
19099 * target.def (builtin_vectorization_cost): Add new arguments.
19100 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
19101 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
19102 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
19103 (vect_vfa_segment_size): Fix indentation.
19104 * tree-vectorizer.h (struct _vect_peel_info): New.
19105 (struct _vect_peel_extended_info): New.
19106 (struct _loop_vec_info): Add new field for peeling hash table and a
19107 macro for its access.
19108 (VECT_MAX_COST): Define.
19109 (vect_get_load_cost): Declare.
19110 (vect_get_store_cost, vect_get_known_peeling_cost,
19111 vect_get_single_scalar_iteraion_cost): Likewise.
19112 (vect_supportable_dr_alignment): Add new argument.
19113 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
19115 (destroy_loop_vec_info): Free peeling hash table.
19116 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
19117 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
19118 vect_analyze_slp. Fix indentation.
19119 (vect_get_single_scalar_iteraion_cost): New function.
19120 (vect_get_known_peeling_cost): Likewise.
19121 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
19122 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
19123 statement. Move outside cost calculation inside unknown peeling case.
19124 Call vect_get_known_peeling_cost for known amount of peeling.
19125 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
19126 reference to the print message of forced alignment.
19127 (vect_verify_datarefs_alignment): Update call to
19128 vect_supportable_dr_alignment.
19129 (vect_get_data_access_cost): New function.
19130 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
19131 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
19132 vect_peeling_hash_choose_best_peeling): Likewise.
19133 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
19134 to store all the accesses in the loop and find best possible access to
19135 align using peeling for known alignment case. For unknown alignment
19136 check if stores are preferred or if peeling is worthy.
19137 (vect_find_same_alignment_drs): Analyze pairs of loads too.
19138 (vect_supportable_dr_alignment): Add new argument and check aligned
19139 accesses according to it.
19140 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
19141 (cost_for_stmt): Call vect_get_stmt_cost.
19142 (vect_model_simple_cost): Likewise.
19143 (vect_model_store_cost): Call vect_get_stmt_cost. Call
19144 vect_get_store_cost to calculate the cost of the statement.
19145 (vect_get_store_cost): New function.
19146 (vect_model_load_cost): Call vect_get_stmt_cost. Call
19147 vect_get_load_cost to calculate the cost of the statement.
19148 (vect_get_load_cost): New function.
19149 (vectorizable_store): Update call to vect_supportable_dr_alignment.
19150 (vectorizable_load): Likewise.
19151 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
19152 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
19153 arguments. Handle unaligned store.
19154 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
19155 (rs6000_builtin_support_vector_misalignment): Return true for word and
19156 double word alignments for VSX.
19157 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
19158 vect_supportable_dr_alignment and builtin_vectorization_cost.
19160 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19163 * config/pa/predicates.md (prefetch_cc_operand): Remove.
19164 (prefetch_nocc_operand): Likewise.
19165 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
19166 (prefetch_20): New insn.
19167 (prefetch_cc): Remove.
19168 (prefetch_nocc): Likewise.
19170 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19172 * expr.c (vector_mode_valid_p): Move to c-common.c.
19173 * expr.h (vector_mode_valid_p): Do not declare here.
19174 * system.h: Poison GCC_EXPR_H in front-ends.
19175 * Makefile.in: Update dependencies.
19177 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19180 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
19182 2010-07-03 Jan Hubicka <jh@suse.cz>
19184 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
19185 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
19186 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
19187 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
19190 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
19192 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
19193 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
19194 TV_IPA_LTO_DECL_OUT): New.
19195 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
19197 2010-07-03 Jan Hubicka <jh@suse.cz>
19199 * ipa-inline.c (update_edge_key): Break out from ...
19200 update_callers_keys): ... here;
19201 (update_callee_keys): Update only the edges from caller to callee.
19202 (update_all_calle_keys): Do what update_calle_keys did.
19203 (decide_inlining_of_small_functions): Avoid recomputing of all
19204 callees when badness increase.
19206 2010-07-03 Jie Zhang <jie@codesourcery.com>
19208 * config/arm/arm.c (arm_attr_length_move_neon): New.
19209 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
19210 * config/arm/neon.md (define_mode_attr V_slen): Remove.
19211 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
19212 to compute length attribute.
19214 2010-07-03 Jie Zhang <jie@codesourcery.com>
19216 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
19217 as predicate for operand 1 and remove its constraint.
19218 * config/arm/predicates.md (vfp_register_operand): New.
19219 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
19220 (*push_fp_multi): Likewise.
19222 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
19224 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
19226 2010-07-03 Jan Hubicka <jh@suse.cz>
19228 * config/i386/i386.c (override_options): Revert accidental commit.
19230 2010-07-02 Le-Chun Wu <lcwu@google.com>
19233 * doc/invoke.texi: Update documentation of -Wshadow.
19235 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19236 Julian Brown <julian@codesourcery.com>
19237 Sandra Loosemore <sandra@codesourcery.com>
19239 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
19240 comparisons. Adjust to take both operands.
19241 (arm_select_cc_mode): Handle DImode comparisons.
19242 (arm_gen_compare_reg): Generate a scratch register for DImode
19243 comparisons which require one. Use xor for Thumb equality checks.
19244 (arm_const_double_by_immediates): New.
19245 (arm_print_operand): Allow 'Q' and 'R' for constants.
19246 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
19247 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
19248 arm_canonicalize_comparison.
19249 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
19250 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
19252 (arm_const_double_by_immediates): Declare.
19253 * config/arm/constraints.md (Di): New constraint.
19254 * config/arm/predicates.md (arm_immediate_di_operand)
19255 (arm_di_operand, cmpdi_operand): New.
19256 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
19257 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
19258 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
19259 (cstoredi4): Handle non-Cirrus also.
19261 2010-07-02 Julian Brown <julian@codesourcery.com>
19262 Sandra Loosemore <sandra@codesourcery.com>
19265 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
19266 (smax<mode>3): Disable for NEON float modes when
19267 flag_unsafe_math_optimizations is false.
19268 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
19270 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
19271 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
19272 for NEON float modes when flag_unsafe_math_optimizations is false.
19273 (quad_halves_<code>v4sf): Only enable if
19274 flag_unsafe_math_optimizations is true.
19275 * doc/invoke.texi (ARM Options): Add note about floating point
19276 vectorization requiring -funsafe-math-optimizations.
19278 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19279 Julian Brown <julian@codesourcery.com>
19281 * config/arm/neon.md (UNSPEC_VABA): Delete.
19282 (UNSPEC_VABAL): Delete.
19283 (UNSPEC_VABS): Delete.
19284 (UNSPEC_VMUL_N): Delete.
19285 (adddi3_neon): New.
19286 (subdi3_neon): New.
19287 (mul<mode>3add<mode>_neon): Make the pattern named.
19288 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19289 (neon_vadd<mode>): Replace with define_expand, and move the remaining
19291 (neon_vadd<mode>_unspec): ...to this.
19292 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
19293 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
19294 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
19295 (neon_vaba<mode>): Rewrite in terms of vabd.
19296 (neon_vabal<mode>): Rewrite in terms of vabdl.
19297 (neon_vabs<mode>): Rewrite without unspec.
19298 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
19299 (*arm_subdi3): Likewise.
19300 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
19301 No_op attribute to disable assembly output checks.
19302 * config/arm/arm_neon.h: Regenerated.
19303 * doc/arm-neon-intrinsics.texi: Regenerated.
19305 2010-07-02 Jan Hubicka <jh@suse.cz>
19307 * ipa-split.c (split_function): For aggregate values, set the return
19308 slot optimization bit. When passing DECL_BY_REFERENCE, produce
19309 *<retval> = fncall.part ().
19310 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
19312 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19314 * config/arm/neon.md (UNSPEC_VAND): Delete.
19315 (UNSPEC_VBIC): Delete.
19316 (UNSPEC_VCLZ): Delete.
19317 (UNSPEC_VCNT): Delete.
19318 (UNSPEC_VEOR): Delete.
19319 (UNSPEC_VORN): Delete.
19320 (UNSPEC_VORR): Delete.
19321 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
19322 core registers too.
19323 (anddi3_neon): Likewise.
19324 (orndi3_neon): Likewise.
19325 (bicdi3_neon): Likewise.
19326 (xordi3_neon): Likewise.
19327 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
19328 rid of unspec and handle unused operand.
19329 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
19330 * config/arm/predicates.md (imm_for_neon_logic_operand):
19331 Require TARGET_NEON.
19332 (imm_for_neon_inv_logic_operand): Likewise.
19333 * config/arm/arm.md (define_split for logical_binary_operator):
19334 Disable for NEON registers.
19335 (anddi3): Add new define_expand, and rename the insn. Disable
19336 this insn for NEON, where anddi3_neon now applies.
19337 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
19338 (iordi3): As for anddi3.
19339 (xordi3): Likewise.
19340 * config/arm/neon.ml (Vand): Split DImode variants and mark them
19341 as No_op to disable testing for exact instruction match.
19346 * config/arm/arm_neon.h: Regenerated.
19347 * doc/arm-neon-intrinsics.texi: Regenerated.
19349 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
19351 * expr.h (emit_stack_probe): Declare.
19352 * explow.c (emit_stack_probe): Make global.
19353 (anti_adjust_stack_and_probe): Fix comments.
19354 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19355 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19356 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19357 * config/sparc/sparc.c: Include except.h.
19358 (sparc_emit_probe_stack_range): New function.
19359 (output_probe_stack_range): Likewise.
19360 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
19361 built-in stack checking is enabled.
19362 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
19363 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19364 (probe_stack_range): New insn.
19366 2010-07-02 Richard Guenther <rguenther@suse.de>
19369 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
19370 for argument alignment.
19372 2010-07-02 Jan Hubicka <jh@suse.cz>
19374 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
19375 walk backwards from entry_bb to check only those basic block of header
19376 that might lead to execution of split part.
19377 (consider_split) ... here.
19378 (find_return_bb): Allow assignment in return BB.
19379 (find_retval): New.
19380 (split_function): Fix name of cloned function; take care of updating
19381 return value in return_bb containing move.
19383 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
19386 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
19387 used variable insn.
19389 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
19391 * implicit-zee.c (combine_reaching_defs): Fix long lines.
19392 (is_set_with_extension_DI): Delete.
19393 (struct zero_extend_info): New structure.
19394 (add_removable_zero_extend): New function.
19395 (find_removable_zero_extends): Use note_stores to find SETs.
19396 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
19398 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
19400 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
19401 is_miss_rate_acceptable. Pull total_positions computation
19402 out of the loops. Early return if miss_positions exceeds
19403 the acceptable threshold.
19404 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
19405 is_miss_rate_acceptable after renaming of compute_miss_rate.
19407 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
19409 PR middle-end/44576
19410 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
19411 of 1000) for miss rate if the address diference is greater than or
19412 equal to the cache line size (the two reference will never hit the
19415 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
19418 * config/arm/arm-modes.def (CC_NOTB): New mode.
19419 * config/arm/arm.c (get_arm_condition_code): Handle it.
19420 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
19421 * config/arm/arm.md (subsi3_compare0_c): New pattern.
19422 (compare_scc): Now a define_and_split. Add a number of extra
19423 splitters before it.
19426 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
19428 (arm_rtx_costs_1): Likewise.
19429 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
19430 * config/arm/arm.md (is_arch6): New attribute.
19431 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
19432 extendqisi2): Tighten the code somewhat, avoiding invalid
19433 RTL to occur in the expander patterns.
19434 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
19435 (thumb1_zero_extendhisi2_v6): Delete.
19436 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
19437 (thumb1_extendhisi2_v6): Delete.
19438 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
19439 (thumb1_extendqisi2_v6): Delete.
19440 (zero_extendhisi2 for register input splitter): New.
19441 (zero_extendqisi2 for register input splitter): New.
19442 (thumb1_extendhisi2 for register input splitter): New.
19443 (extendhisi2 for register input splitter): New.
19444 (extendqisi2 for register input splitter): New.
19445 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
19446 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
19447 and add support for a register alternative requiring a split.
19448 (thumb1_zero_extendqisi2): Likewise.
19449 (arm_zero_extendqisi2): Likewise.
19450 (arm_extendhisi2): Likewise.
19451 (arm_extendqisi2): Likewise.
19453 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19455 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
19456 instead of an unspec.
19457 (neon_expand_vector_init): Likewise.
19458 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
19459 (UNSPEC_VDUP_LANE): Delete.
19460 (UNSPEC VDUP_N): Delete.
19461 (UNSPEC_VGET_HIGH): Delete.
19462 (UNSPEC_VGET_LANE): Delete.
19463 (UNSPEC_VGET_LOW): Delete.
19464 (UNSPEC_VMVN): Delete.
19465 (UNSPEC_VSET_LANE): Delete.
19466 (V_double_vector_mode): New.
19467 (vec_set<mode>_internal): Make code emitted match that for the
19468 corresponding intrinsics.
19469 (vec_setv2di_internal): Likewise.
19470 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
19471 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
19472 (neon_vset_lane<mode>): Combine double and quad patterns and
19473 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
19474 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
19475 (neon_vdup_n<mode>): Rewrite RTL without unspec.
19476 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
19477 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
19478 with neon_vdup_lanev2di, adjusting the pattern from the latter
19479 to be predicable for consistency.
19480 (neon_vdup_lane<mode>_internal): New.
19481 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
19482 to avoid using an unspec.
19483 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
19484 (neon_vdup_lanev2di): Turn into a define_expand.
19485 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
19486 (neon_vget_high<mode>): Replace with....
19487 (neon_vget_highv16qi): New pattern using canonical RTL.
19488 (neon_vget_highv8hi): Likewise.
19489 (neon_vget_highv4si): Likewise.
19490 (neon_vget_highv4sf): Likewise.
19491 (neon_vget_highv2di): Likewise.
19492 (neon_vget_low<mode>): Replace with....
19493 (neon_vget_lowv16qi): New pattern using canonical RTL.
19494 (neon_vget_lowv8hi): Likewise.
19495 (neon_vget_lowv4si): Likewise.
19496 (neon_vget_lowv4sf): Likewise.
19497 (neon_vget_lowv2di): Likewise.
19499 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
19500 test for this emitting vmov.
19501 (Vset_lane): Likewise.
19502 (Vdup_n): Likewise.
19503 (Vmov_n): Likewise.
19505 * doc/arm-neon-intrinsics.texi: Regenerated.
19507 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19509 * config/arm/neon.md (vec_extractv2di): Correct error in register
19510 numbering to reconcile with neon_vget_lanev2di.
19512 2010-07-02 Richard Guenther <rguenther@suse.de>
19514 * tree-ssa-structalias.c (pt_solution_set_var): New function.
19515 * tree-ssa-alias.h (pt_solution_set_var): Declare.
19516 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
19517 points-to information.
19519 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
19521 * config/s390/s390.c (override_options): Adopt prefetching
19522 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
19524 2010-07-02 Jan Hubicka <jh@suse.cz>
19526 * df-problems.c (df_kill_notes): Do not collect dead notes.
19527 (df_set_note): Just call add_reg_note.
19528 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
19529 df_create_unused_note): Do not deal with lists of old notes.
19530 (df_note_bb_compute): Likewise.
19532 2010-07-02 Richard Guenther <rguenther@suse.de>
19534 * tree-ssa-structalias.c (find_func_aliases): Handle
19535 pointer alignment via BIT_AND_EXPR.
19536 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
19538 2010-07-02 Richard Guenther <rguenther@suse.de>
19540 * tree-data-ref.c (initialize_data_dependence_relation): Handle
19541 mismatching number of dimensions properly.
19543 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19546 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
19547 (lo_sum (high ...) ...) patterns generated by earlier passes.
19549 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19551 * doc/install.texi (Prerequisites): Document Perl requirement on
19553 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
19555 2010-07-02 Richard Guenther <rguenther@suse.de>
19557 PR middle-end/44777
19558 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
19560 2010-07-02 Jan Hubicka <jh@suse.cz>
19562 PR middle-end/44706
19563 * predict.c (predict_paths_for_bb): Handle case when control dependence
19564 BB has only abnormal edges.
19566 2010-07-02 Richard Guenther <rguenther@suse.de>
19568 PR tree-optimization/44748
19569 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
19570 the embedded conversion in MEM_REFs.
19572 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
19574 * reload.c: Include toplev.h.
19575 * recog.c: Likewise.
19576 * Makefile.in: Adjust dependencies.
19578 2010-07-01 Jakub Jelinek <jakub@redhat.com>
19581 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
19582 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
19584 2010-07-01 Richard Guenther <rguenther@suse.de>
19586 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
19589 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
19592 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
19593 Fix argument types.
19595 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
19598 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19599 Make sure operand 0 dies.
19601 2010-07-01 Richard Guenther <rguenther@suse.de>
19603 PR middle-end/42834
19604 PR middle-end/44468
19605 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
19606 * doc/generic.texi (References to storage): Document MEM_REF.
19607 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
19608 (print_call_name): Likewise.
19609 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
19610 (build_simple_mem_ref_loc): New function.
19611 (mem_ref_offset): Likewise.
19612 * tree.h (build_simple_mem_ref_loc): Declare.
19613 (build_simple_mem_ref): Define.
19614 (mem_ref_offset): Declare.
19615 * fold-const.c: Include tree-flow.h.
19616 (operand_equal_p): Handle MEM_REF.
19617 (build_fold_addr_expr_with_type_loc): Likewise.
19618 (fold_comparison): Likewise.
19619 (fold_unary_loc): Fold
19620 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
19621 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
19622 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
19623 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
19624 (ptr_deref_may_alias_ref_p_1): Likewise.
19625 (ao_ref_base_alias_set): Properly differentiate base object for
19627 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
19628 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
19629 (indirect_refs_may_alias_p): Likewise.
19630 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
19632 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
19633 (call_may_clobber_ref_p_1): Likewise.
19634 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
19635 * expr.c (expand_assignment): Handle MEM_REF.
19636 (store_expr): Handle MEM_REFs from STRING_CSTs.
19637 (store_field): If expanding a MEM_REF of a non-addressable
19638 decl use bitfield operations.
19639 (get_inner_reference): Handle MEM_REF.
19640 (expand_expr_addr_expr_1): Likewise.
19641 (expand_expr_real_1): Likewise.
19642 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
19643 * alias.c (ao_ref_from_mem): Handle MEM_REF.
19644 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
19645 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
19646 (dr_analyze_indices): Likewise.
19647 (dr_analyze_alias): Likewise.
19648 (object_address_invariant_in_loop_p): Likewise.
19649 * gimplify.c (mark_addressable): Handle MEM_REF.
19650 (gimplify_cond_expr): Build MEM_REFs.
19651 (gimplify_modify_expr_to_memcpy): Likewise.
19652 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
19653 (gimple_fold_indirect_ref): Adjust.
19654 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
19655 * tree.def (MEM_REF): New tree code.
19656 * tree-dfa.c: Include toplev.h.
19657 (get_ref_base_and_extent): Handle MEM_REF.
19658 (get_addr_base_and_unit_offset): New function.
19659 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
19660 * gimple-fold.c (may_propagate_address_into_dereference): Handle
19662 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
19663 accesses if the array has just one dimension. Remove always true
19664 parameter. Do not require type compatibility here.
19665 (maybe_fold_offset_to_component_ref): Remove.
19666 (maybe_fold_stmt_indirect): Remove.
19667 (maybe_fold_reference): Remove INDIRECT_REF handling.
19668 Fold back to non-MEM_REF.
19669 (maybe_fold_offset_to_address): Simplify. Deal with type
19671 (maybe_fold_reference): Likewise.
19672 (maybe_fold_stmt_addition): Likewise. Also handle
19673 &ARRAY + I in addition to &ARRAY[0] + I.
19674 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
19675 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
19676 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
19677 * tree-ssa.c (useless_type_conversion_p): Make most pointer
19678 conversions useless.
19679 (warn_uninitialized_var): Handle MEM_REF.
19680 (maybe_rewrite_mem_ref_base): New function.
19681 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
19683 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
19684 INDIRECT_REF handling.
19685 (copy_tree_body_r): Handle MEM_REF.
19686 * gimple.c (is_gimple_addressable): Adjust.
19687 (is_gimple_address): Likewise.
19688 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
19689 invariant base are invariant.
19690 (is_gimple_min_lval): Adjust.
19691 (is_gimple_mem_ref_addr): New function.
19692 (get_base_address): Handle MEM_REF.
19693 (count_ptr_derefs): Likewise.
19694 (get_base_loadstore): Likewise.
19695 * gimple.h (is_gimple_mem_ref_addr): Declare.
19696 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
19697 * tree-cfg.c (verify_address): New function, split out from ...
19698 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
19699 the address operand of MEM_REFs. Verify MEM_REFs. Reject
19701 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
19702 INDIRECT_REF. Allow conversions.
19703 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
19704 a register does not change its size.
19705 (verify_types_in_gimple_reference): Verify MEM_REF.
19706 (verify_gimple_assign_single): Disallow INDIRECT_REF.
19708 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
19710 (mark_address_taken): Handle MEM_REF.
19711 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
19712 (get_asm_expr_operands): Pass opf_not_non_addressable.
19713 (get_expr_operands): Handle opf_[not_]non_addressable.
19714 Handle MEM_REF. Remove INDIRECT_REF handling.
19715 * tree-vrp.c (check_array_ref): Handle MEM_REF.
19716 (search_for_addr_array): Likewise.
19717 (check_array_bounds): Likewise.
19718 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
19719 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
19720 (ref_always_accessed_p): Likewise.
19721 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
19722 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
19724 * cgraphbuild.c (mark_load): Properly check for NULL result
19725 from get_base_address.
19726 (mark_store): Likewise.
19727 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
19728 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
19729 handling for MEM_REF.
19730 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
19731 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
19732 * builtins.c (stabilize_va_list_loc): Use the function ABI
19733 valist type if we couldn't canonicalize the argument type.
19734 Always dereference with the canonical va-list type.
19735 (maybe_emit_free_warning): Handle MEM_REF.
19736 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
19738 * builtins.c (fold_builtin_memory_op): Use ref-all types
19739 for all memcpy foldings.
19740 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
19741 (build_outer_var_ref): Likewise.
19742 (scan_omp_1_op): Likewise.
19743 (lower_rec_input_clauses): Likewise.
19744 (lower_lastprivate_clauses): Likewise.
19745 (lower_reduction_clauses): Likewise.
19746 (lower_copyprivate_clauses): Likewise.
19747 (expand_omp_atomic_pipeline): Likewise.
19748 (expand_omp_atomic_mutex): Likewise.
19749 (create_task_copyfn): Likewise.
19750 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
19751 Remove old union trick. Initialize constant offsets.
19752 (ao_ref_init_from_vn_reference): Likewise. Do not handle
19753 INDIRECT_REF. Init base_alias_set properly.
19754 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
19755 (vn_reference_fold_indirect): Adjust for MEM_REFs.
19756 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
19758 (may_insert): Remove.
19759 (visit_reference_op_load): Do not test may_insert.
19760 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
19761 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
19762 a field to store the constant offset this op applies.
19763 (run_scc_vn): Adjust prototype.
19764 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
19765 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
19766 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
19767 bother about volatile qualifiers on pointers.
19768 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
19769 * tree-ssa-loop-ivopts.c
19770 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
19771 (strip_offset_1): Likewise.
19772 (find_interesting_uses_address): Replace INDIRECT_REF handling with
19774 (get_computation_cost_at): Likewise.
19775 * ipa-pure-const.c (check_op): Handle MEM_REF.
19776 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
19777 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
19779 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
19780 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
19781 (eliminate_local_variables_1): Likewise.
19782 (create_call_for_reduction_1): Likewise.
19783 (create_loads_for_reductions): Likewise.
19784 (create_loads_and_stores_for_name): Likewise.
19785 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
19786 (ssa_accessed_in_tree): Handle MEM_REF.
19787 (ssa_accessed_in_assign_rhs): Likewise.
19788 (update_type_size): Likewise.
19789 (analyze_accesses_for_call_stmt): Likewise.
19790 (analyze_accesses_for_assign_stmt): Likewise.
19791 (transform_access_sites): Likewise.
19792 (transform_allocation_sites): Likewise.
19793 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
19794 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
19795 not handle INDIRECT_REF.
19796 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
19797 (cond_store_replacement): Likewise.
19798 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
19799 MEM_REF, no not handle INDIRECT_REFs.
19800 (insert_into_preds_of_block): Properly initialize avail.
19801 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
19802 for ARRAY_REFs. Properly handle reference lookups that
19803 require a bit re-interpretation.
19804 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
19805 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
19806 (build_ref_for_offset_1): Remove.
19807 (build_ref_for_offset): Build MEM_REFs.
19808 (gate_intra_sra): Disable for now.
19809 (sra_ipa_modify_expr): Handle MEM_REF.
19810 (ipa_early_sra_gate): Disable for now.
19811 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
19813 (disqualify_base_of_expr): Likewise.
19814 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
19816 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
19817 Use mem_ref_offset. Remove bogus folding.
19818 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
19819 (make_fancy_name_1): Add support for MEM_REF.
19820 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
19821 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
19822 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
19823 (compute_complex_ancestor_jump_func): Likewise.
19824 (ipa_analyze_virtual_call_uses): Likewise.
19825 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
19826 INDIRECT_REF folding with more generalized MEM_REF folding.
19827 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
19828 (forward_propagate_addr_into_variable_array_index): Also handle
19829 &ARRAY + I in addition to &ARRAY[0] + I.
19830 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
19831 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
19832 creates assignments with overlap.
19833 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
19834 (get_frame_field): Likewise.
19835 (get_nonlocal_debug_decl): Likewise.
19836 (convert_nonlocal_reference_op): Likewise.
19837 (struct nesting_info): Add mem_refs pointer-set.
19838 (create_nesting_tree): Allocate it.
19839 (convert_local_reference_op): Insert to be folded mem-refs.
19840 (fold_mem_refs): New function.
19841 (finalize_nesting_tree_1): Perform defered folding of mem-refs
19842 (free_nesting_tree): Free the pointer-set.
19843 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
19844 (vectorizable_load): Likewise.
19845 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
19846 (propagate_with_phi): Likewise.
19847 * tree-object-size.c (addr_object_size): Handle MEM_REFs
19848 instead of INDIRECT_REFs.
19849 (compute_object_offset): Handle MEM_REF.
19850 (plus_stmt_object_size): Handle MEM_REF.
19851 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
19853 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
19854 (symbol_marked_for_renaming): Likewise.
19855 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
19856 (fold-const.o): Add $(TREE_FLOW_H).
19857 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
19858 (find_func_clobbers): Likewise.
19859 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
19860 (decompose_access): Likewise.
19861 (replace_field_acc): Likewise.
19862 (replace_field_access_stmt): Likewise.
19863 (insert_new_var_in_stmt): Likewise.
19864 (get_stmt_accesses): Likewise.
19865 (reorg_structs_drive): Disable.
19866 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
19867 (ix86_canonical_va_list_type): Likewise.
19869 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
19872 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
19873 * target.def (struct gcc_target): Replace enum reg_class with
19874 reg_class_t in hook argument / return types.
19875 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
19876 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
19877 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
19878 * targhooks.h (default_branch_target_register_class): Likewise.
19879 (default_ira_cover_classes, default_secondary_reload): Likewise.
19880 (default_memory_move_cost, default_register_move_cost): Likewise.
19881 * targhooks.c (default_branch_target_register_class): Likewise.
19882 (default_ira_cover_classes, default_secondary_reload): Likewise.
19883 (default_memory_move_cost, default_register_move_cost): Likewise.
19884 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
19885 * bt-load.c (branch_target_load_optimize): Likewise.
19886 * ira.c (setup_cover_and_important_classes): Likewise.
19887 * ira-costs.c (copy_cost): Likewise.
19888 * reload1.c (emit_input_reload_insns): Likewise.
19889 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19890 * config/frv/frv.c (frv_secondary_reload): Likewise.
19891 * config/s390/s390.c (s390_secondary_reload): Likewise.
19892 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
19893 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
19894 (ix86_register_move_cost): Likewise.
19895 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
19896 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
19897 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
19898 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
19899 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
19900 (rs6000_ira_cover_classes): Likewise.
19901 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
19902 * config/picochip/picochip-protos.h (picochip_secondary_reload):
19904 * config/pa/pa.c (pa_secondary_reload): Likewise.
19905 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
19906 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
19907 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
19908 * doc/tm.texi: Regenerate.
19910 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
19912 PR bootstrrap/44726
19913 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
19915 (build_alias_set_optimal_p): Likewise.
19916 (build_base_obj_set_for_drs): Likewise.
19918 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
19920 * target.def: Remove comment about licensing problems of function
19923 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
19924 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
19925 * doc/tm.texi: Regenerate.
19927 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
19928 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
19930 * target.def (enum_va_list_p): Use DEFHOOK.
19931 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
19932 Rename ptype to ptree.
19933 * doc/tm.texi: Regenerate.
19935 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
19936 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
19937 * doc/tm.texi: Regenerate.
19939 * target.def (memory_move_cost): Use DEFHOOK.
19940 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
19941 Rename regclass AKA class to rclass.
19942 * doc/tm.texi: Regenerate.
19944 * target.def (pragma_parse): Use DEFHOOK.
19945 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
19946 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
19947 * doc/tm.texi: Regenerate.
19949 * target.def (pass_by_reference): Use DEFHOOK.
19950 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
19951 * doc/tm.texi: Regenerate.
19953 * target.def (resolve_overloaded_builtin): Rename params to arglist.
19955 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
19956 * doc/tm.texi: Regenerate.
19958 * target.def (return_pops_args): Use DEFHOOK.
19959 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
19960 Rename stack-size to size.
19961 * doc/tm.texi: Regenerate.
19963 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
19964 last-sched_cycle to last_clock, cur_cycle to clock.
19965 * doc/tm.texi.in: Use @hook.
19966 * doc/tm.texi: Regenerate.
19968 * target.def (print_operand, print_operand_address): Update comment.
19969 (print_operand_punct_valid_p): Likewise.
19971 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
19973 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
19975 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
19976 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
19977 * rtl-error.h: New.
19978 * regrename.c: Do not include toplev.h. Include rtl-error.h.
19979 * rtl-error.c: Likewise.
19980 * reload.c: Likewise.
19981 * recog.c: Likewise.
19982 * sel-sched.c: Likewise.
19983 * function.c: Likewise.
19984 * reg-stack.c: Likewise.
19985 * cfgrtl.c: Likewise.
19986 * reload1.c: Likewise.
19987 * final.c: Include rtl-error.
19988 * Makefile.in: Adjust dependencies.
19990 2010-06-30 Jan Hubicka <jh@suse.cz>
19992 PR middle-end/PR44706
19993 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
19994 to return the value.
19996 2010-06-30 Michael Matz <matz@suse.de>
19999 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
20000 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
20001 a gimple reg, attach the original VDEF to the last store in the
20004 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
20007 * config/darwin.c (darwin_override_options): Use renamed
20008 targetm.asm_out.emit_unwind_label.
20010 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20012 PR tree-optimization/39799
20013 * tree-inline.c (remap_ssa_name): Initialize variable only if
20014 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20016 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
20018 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
20020 2010-06-30 Richard Guenther <rguenther@suse.de>
20023 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
20024 against oscillation with reverse peephole2.
20026 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
20029 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20032 2010-06-30 Nick Clifton <nickc@redhat.com>
20034 * config/rx/rx-modes.def: New file.
20035 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
20036 (CC_REGNUM): Define.
20037 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
20039 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
20040 (SELECT_CC_MODE): Define.
20041 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
20042 (reg:CC CC_REG) instead of (cc0).
20043 (attr "cc"): Delete.
20044 (cbranchsi4): Do not split compare and branch here. Instead move
20046 (cbranchsi4_<code>): ... here. New patterns.
20047 (cmpsi): Call rx-compare_redundant to find out if it is necessary
20048 to emit the compare instruction.
20049 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
20051 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
20052 FIRST_PSEUDO_REGNUM.
20053 (rx_expand_prologue, rx_expand_epilogue): Likewise.
20054 (rx_notice_update_cc): Delete.
20055 (rx_cc_modes_compatible): New function.
20056 (flags_needed_for_conditional): New function.
20057 (flags_from_mode): New function.
20058 (rx_compare_redundant): New function - scans backwards through
20059 insn list to find out if condition flags are already set correctly.
20060 (TARGET_CC_MODES_COMPATIBLE): Define.
20061 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
20063 * config/rx/rx.h (BRANCH_COST): Define.
20064 (REGISTER_MOVE_COST): Define.
20065 * config/rx/predicates (rx_source_operand): Allow all constant types.
20066 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
20067 (tstsi4): New pattern.
20068 * config/rx/rx.c (rx_memory_move_cost): Define.
20069 (TARGET_MEMORY_MOVE_COST): Define.
20071 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
20073 * tree.h (block_may_fallthru): Declare here.
20074 * tree-flow.h (block_may_fallthru): Do not declare here.
20075 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
20077 * Makefile.in (c-typeck.o): Update dependencies.
20079 2010-06-30 Jakub Jelinek <jakub@redhat.com>
20082 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
20083 * cselib.c (cfa_base_preserved_regno): New static variable.
20084 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
20085 of REGNO (cfa_base_preserved_val->locs->loc).
20086 (cselib_preserve_cfa_base_value): Add regno argument, set
20087 cfa_base_preserved_regno to it.
20088 (cselib_invalidate_regno): Allow removal of registers other than
20089 cfa_base_preserved_regno from cfa_base_preserved_val.
20090 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
20091 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
20092 of MEM addresses, if not on LHS.
20093 (reverse_op): Don't add reverse ops for cfa_base_rtx.
20094 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
20096 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20098 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
20100 (peep2_buf_position): New static function.
20101 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
20102 peephole2_optimize): Use it.
20103 (peep2_attempt, peep2_update_life): New static functions, broken out
20104 of peephole2_optimize.
20105 (peep2_fill_buffer): New static function.
20106 (peephole2_optimize): Change the main loop to try to fill the buffer
20107 with the maximum number of insns before matching them against
20108 peepholes. Use a forward scan. Remove special case for targets with
20109 conditional execution.
20110 * genrecog.c (change_state): Delete dead code.
20111 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20112 Rewrite so as not to expect the second insn to have had a peephole
20115 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20117 * genhooks.c (emit_findices): Cast field precision to int.
20118 (emit_documentation): Likewise.
20120 2010-06-29 Jakub Jelinek <jakub@redhat.com>
20122 PR tree-optimization/43801
20123 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
20124 if old_decl was DECL_ONE_ONLY.
20127 * dwarf2out.c (add_accessibility_attribute): New function.
20128 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
20129 instead of adding DW_AT_accessibility manually.
20130 (gen_enumeration_type_die, gen_struct_or_union_type_die,
20131 gen_typedef_die): Use it.
20133 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20135 * vmsdbgout.c (full_name): Just output the file name if not native.
20137 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20139 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
20140 (funcnam_table): New static table.
20141 (funcnum_table): New static table.
20142 (write_rtnbeg): Write value saved in funcnum_table.
20143 (write_rtnend): Write value saved in funcnum_table.
20144 (vmsdbgout_begin_function): Save current function info in
20145 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
20146 (vmsdbgout_finish): Iterate over funcnum_table.
20148 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20150 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
20151 (vmsdbgout_type_decl): Declare
20152 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
20153 (FUNC_EPILOGUE_LABEL): New macro
20154 (vmsdbgout_begin_epilogue): New function.
20155 (vmsdbgout_type_decl): New function.
20157 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20159 * vmsdbg.h: Update copyright.
20161 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20163 * vmsdbg.h (DST_K_TBG): New DST constant.
20164 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
20165 (write_modbeg): Cast module_language to avoid warning.
20166 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
20168 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
20171 * target.def, doc/tm.texi.in, genhooks.c: New files.
20172 * target.h: Instead of defining individual hook members,
20173 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
20174 include target.def.
20175 * target-def.h: Instead of defining individual hook initializers,
20176 include target-hooks-def.h.
20177 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
20178 targetm.live_on_entry -> targetm.extra_live_on_entry
20179 targetm.sched.md_finish ->targetm.sched.finish
20180 targetm.sched.md_init -> targetm.sched.init
20181 targetm.sched.md_init_global -> targetm.sched.init_global
20182 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
20183 targetm.asm_out.except_table_label ->
20184 targetm.asm_out.emit_except_table_label
20185 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
20186 targetm.target_help -> targetm.help
20187 targetm.vectorize.builtin_support_vector_misalignment ->
20188 targetm.vectorize.support_vector_misalignment
20189 targetm.file_start_app_off -> targetm.asm_file_start_app_off
20190 targetm.file_start_file_directive ->
20191 targetm.asm_file_start_file_directive
20192 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
20193 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
20194 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
20195 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
20196 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
20197 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
20198 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
20199 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
20200 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
20201 * Makefile.in (TARGET_H): Depend on target.def.
20202 (TARGET_DEF_H): Depend on target-hooks-def.h.
20203 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
20204 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
20205 * doc/tm.texi: Regenerate.
20207 * Makefile.in (s-tm-texi): Remove stray tab / rule.
20209 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
20210 (targetm.sched.init): Likewise.
20212 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20215 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
20216 (function_arg_advance_32): Const-ify TYPE parameter.
20217 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
20218 (ix86_function_arg_advance): Change type of NAMED to bool.
20219 (function_arg_32): Const-ify CUM and TYPE parameters.
20220 (function_arg_64): Likewise. Change type of NAMED to bool.
20221 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
20223 (ix86_function_arg): Change type of NAMED to bool.
20224 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
20225 last argument as a bool.
20227 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
20229 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
20230 (OVERRIDE_OPTIONS): Add note of obsolescence.
20231 Replace references with references to TARGET_OPTION_OVERRIDE.
20232 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
20234 * targhooks.c (default_target_option_override): New function.
20235 * targhooks.h (default_target_option_override): Declare.
20236 * target.h (struct gcc_target): Add override member to
20237 target_option member.
20238 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
20239 targetm.target_option.override call.
20240 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
20241 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
20243 2010-06-29 Jan Hubicka <jh@suse.cz>
20245 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
20247 2010-06-29 Jan Hubicka <jh@suse.cz>
20249 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
20251 (rebuild_frequencies): New function.
20252 * predict.h (rebuild_frequencies): Declare.
20253 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
20254 entry block and edge reaching new_entry.
20255 (tree_function_versioning): When doing partial cloning, rebuild
20256 frequencies when done.
20257 * passes.c (execute_function_todo): Use rebild_frequencies.
20259 2010-06-29 Richard Guenther <rguenther@suse.de>
20261 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
20262 * tree-flow.h (enum noalias_state): Remove.
20263 (struct var_ann_d): Remove noalias_state member.
20265 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
20268 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
20269 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
20270 (maddhidi4): Likewise.
20272 Revert parts of the change for PR25130.
20273 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
20276 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20278 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
20279 targetm.calls.function_incoming_arg, and
20280 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
20281 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
20282 * target.h (struct gcc_target): Add function_arg_advance,
20283 function_arg, and function_incoming_arg fields.
20284 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
20285 (TARGET_FUNCTION_INCOMING_ARG): Define.
20286 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
20287 and TARGET_FUNCTION_INCOMING_ARG.
20288 * targhooks.h (default_function_arg_advance): Declare.
20289 (default_function_arg, default_function_incoming_arg): Declare.
20290 * targhooks.c (default_function_arg_advance): New function.
20291 (default_function_arg, default_function_incoming_arg): New function.
20292 * config/i386/i386.c (function_arg_advance): Rename to...
20293 (ix86_function_arg_advance): ...this. Make static.
20294 (function_arg): Rename to...
20295 (ix86_function_arg): ...this. Make static.
20296 (TARGET_FUNCTION_ARG_ADVANCE): Define.
20297 (TARGET_FUNCTION_ARG): Define.
20298 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
20299 (FUNCTION_ARG): Delete.
20300 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
20301 (function_arg): Delete prototype.
20303 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20305 * reginfo.c (init_reg_sets_1): Adjust comments.
20306 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
20307 * calls.c (prepare_call_address): Likewise.
20308 (emit_call_1): Use targetm.calls.return_pops_args.
20309 (expand_call): Likewise.
20310 * function.c (assign_parms): Likewise.
20311 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
20312 * target.h (struct gcc_target) [struct calls]: Add
20313 return_pops_args field.
20314 * targhooks.h (default_return_pops_args): Declare.
20315 * targhooks.c (default_return_pops_args): Define.
20316 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
20317 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
20318 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
20319 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
20321 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
20322 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
20323 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
20324 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
20325 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
20326 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
20327 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
20328 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
20329 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
20330 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
20331 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
20332 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
20333 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
20334 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
20335 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
20336 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
20337 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
20338 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
20339 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
20340 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
20341 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
20342 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
20343 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
20344 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
20345 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
20346 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
20347 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
20348 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
20349 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
20350 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
20351 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
20352 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
20353 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
20354 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
20355 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
20356 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
20357 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
20358 * config/i386/i386.c (ix86_return_pops_args): Make static.
20359 Constify arguments.
20360 (TARGET_RETURN_POPS_ARGS): Define.
20361 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
20362 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
20363 (TARGET_RETURN_POPS_ARGS): Define.
20364 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
20365 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
20366 (TARGET_RETURN_POPS_ARGS): Define.
20368 2010-06-29 Richard Guenther <rguenther@suse.de>
20370 PR middle-end/44667
20371 * tree-inline.c (initialize_inlined_parameters): Make sure
20372 to remap the inlined parameter variable substitutions types.
20374 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
20376 PR rtl-optimization/44659
20377 * combine.c (make_compound_operation) <SUBREG>: Do not return the
20378 result of force_to_mode if it partially re-expanded the compound.
20380 2010-06-28 Jan Hubicka <jh@suse.cz>
20382 PR middle-end/44671
20383 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
20386 2010-06-28 Anatoly Sokolov <aesok@post.ru>
20388 * double-int.h (force_fit_type_double): Remove declaration.
20389 * double-int.c (force_fit_type_double): Move to tree.c.
20390 * tree.h (force_fit_type_double): Declare.
20391 * tree.h (force_fit_type_double): Moved from double-int.c. Use
20392 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
20393 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
20394 * convert.c (convert_to_pointer): Adjust call to
20395 force_fit_type_double.
20396 * tree-vrp.c (extract_range_from_assert,
20397 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
20398 * fold-const.c: Update comment.
20399 (int_const_binop, fold_convert_const_int_from_int,
20400 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
20401 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
20402 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
20403 round_up_loc): Adjust call to force_fit_type_double.
20405 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20407 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
20409 2010-06-28 Martin Jambor <mjambor@suse.cz>
20411 * tree-sra.c (convert_callers): New parameter, change fndecls of
20413 (modify_function): Pass the old decl to convert_callers.
20415 2010-06-28 Martin Jambor <mjambor@suse.cz>
20417 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
20418 ipa_check_create_node_params and ipa_initialize_node_params with
20419 checking asserts they are not necessary.
20421 2010-06-28 Jan Hubicka <jh@suse.cz>
20423 PR tree-optimization/44687
20424 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
20426 2010-06-28 Martin Jambor <mjambor@suse.cz>
20429 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
20430 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
20431 instead of BINFO_BASE_BINFO.
20433 2010-06-28 Michael Matz <matz@suse.de>
20435 PR middle-end/44592
20436 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
20437 proper VDEF chain for intermediate stores in the sequence.
20439 2010-06-28 Jan Hubicka <jh@suse.cz>
20441 PR tree-optimization/44357
20442 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
20443 uninlinable functions.
20445 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20447 * config.gcc (powerpc*-*-*): Handle titan.
20448 * config/rs6000/rs6000.c (titan_cost): New costs.
20449 (rs6000_override_options): Add "titan" to processor_target_table.
20450 Add Titan to branch alignment logic.
20451 Correctly set rs6000_cost for titan.
20452 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
20453 * config/rs6000/titan.md: New file.
20454 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
20456 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
20458 * tree-browser.c (TB_history_stack): Convert to a VEC.
20459 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
20460 (TB_history_prev): Likewise.
20462 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
20464 * vec.h (vec_heap_free): Add parentheses around free.
20466 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
20468 * system.h: Poison GCC_EXCEPT_H for front-end files.
20470 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
20472 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
20473 Define to NULL by default.
20474 * except.h: Define GCC_EXCEPT_H.
20475 (doing_eh): Remove prototype.
20476 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
20477 (lang_protect_cleanup_actions): Remove.
20478 * except.c (lang_protect_cleanup_actions): Remove.
20479 (doing_eh): Remove.
20480 (gen_eh_region): Don't check doing_eh here.
20481 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
20482 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
20483 instead of lang_protect_cleanup_actions.
20484 * omp-low.c (maybe_catch_exception): Likewise.
20485 * Makefile.in: Update dependencies.
20487 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
20489 * cgraph.h (struct varpool_node): new used_from_object_file flag.
20490 (struct cgraph_local_info): new used_from_object_file flag.
20491 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
20492 (cgraph_clone_node): initialize used_from_object_file.
20493 (cgraph_create_virtual_clone): initialize used_from_object_file.
20494 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
20495 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
20496 when compiling with -fwhole-program.
20497 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
20499 * ipa.c (function_and_variable_visibility): Set externally_visible
20500 flag of varpool_node if used_from_object_file flag is set.
20501 (cgraph_externally_visible_p): check used_from_object_file flag.
20502 * doc/invoke.texi (-fwhole-program option): Change description of
20503 externally_visible attribute accordingly.
20504 * doc/extend.texi (externally_visible): Ditto.
20506 2010-06-27 Jan Hubicka <jh@suse.cz>
20508 * params.def (max-inline-insns-auto): Default to 40.
20509 * doc/invoke.texi (max-inline-insns-auto): Document the change.
20511 2010-06-27 Jan Hubicka <jh@suse.cz>
20513 PR middle-end/44671
20514 PR middle-end/44686
20515 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
20517 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
20518 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
20520 2010-06-27 Anatoly Sokolov <aesok@post.ru>
20522 * target.h (struct gcc_target): Add register_move_cost field.
20523 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
20524 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
20525 * targhooks.c (default_register_move_cost): New function.
20526 * targhooks.h (default_register_move_cost): Declare function.
20527 * defaults.h (REGISTER_MOVE_COST): Delete.
20528 * ira-int.h (ira_register_move_cost): Update comment.
20529 * ira.c (ira_register_move_cost): Update comment.
20530 * reload.h (register_move_cost): Declare.
20531 * reginfo.c (register_move_cost): New function.
20532 (move_cost): Update comment.
20533 (init_move_cost, memory_move_secondary_cost): Replace
20534 REGISTER_MOVE_COST with register_move_cost.
20535 * postreload.c (reload_cse_simplify_set): (Ditto.).
20536 * reload.c (find_valid_class, find_reloads): (Ditto.).
20537 * reload1.c (choose_reload_regs): (Ditto.).
20538 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
20539 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
20540 * doc/md.texi (can_create_pseudo_p): Update documentation.
20542 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20543 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20544 * config/i386/i386.h (ix86_memory_move_cost): Make static.
20545 (TARGET_MEMORY_MOVE_COST): Define.
20547 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20548 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
20549 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
20550 (TARGET_MEMORY_MOVE_COST): Define.
20552 2010-06-27 Richard Guenther <rguenther@suse.de>
20554 PR tree-optimization/44683
20555 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
20556 false edge from the inverted condition.
20558 2010-06-27 Richard Guenther <rguenther@suse.de>
20560 PR middle-end/44684
20561 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
20562 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
20563 for register LHS. Or non-store assignments.
20565 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
20567 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
20568 (sparc_emit_set_const64): Likewise. Remove disabled code.
20569 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
20570 (sparc_emit_set_const64): Likewise.
20572 2010-06-26 Catherine Moore <clm@codesourcery.com>
20574 * config/mips/mips.md (alu_type): New attribute.
20575 (type): Infer type from alu_type.
20576 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
20577 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
20578 *subsi3_extended, negsi2, negdi2, *low<mode>,
20579 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
20580 xor<mode>3, *nor<mode>3,
20581 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
20582 *zero_extendhi_truncqi): Set alu_type instead of type.
20584 2010-06-26 Douglas B Rupp <rupp@gnat.com>
20586 * config/alpha/alpha.c (alpha_need_linkage): Adjust
20587 splay_tree_new_ggc call.
20588 (alpha_use_linkage): Likewise.
20590 2010-06-26 Joseph Myers <joseph@codesourcery.com>
20592 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
20593 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
20594 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
20595 (static_specs): Remove switches_need_spaces.
20596 (process_command, do_self_spec): Hardcode handling "-o" instead of
20597 checking switches_need_spaces.
20598 * system.h (SWITCHES_NEED_SPACES): Poison.
20600 2010-06-26 Richard Guenther <rguenther@suse.de>
20602 PR tree-optimization/44393
20603 * tree-loop-distribution.c (generate_loops_for_partition): Fix
20604 stmt removal and VOP renaming.
20605 (generate_memset_zero): Remove redundant stmt updating.
20606 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
20607 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
20609 2010-06-26 Jan Hubicka <jh@suse.cz>
20611 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
20612 edges comming from header are equivalent.
20613 (visit_bb): Handle PHIs correctly.
20614 * tree-inline.c (copy_phis_for_bb): Be able to copy
20615 PHI from entry edge.
20616 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
20618 2010-06-26 Richard Guenther <rguenther@suse.de>
20620 PR middle-end/44674
20621 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
20622 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
20624 2010-06-26 Joseph Myers <joseph@codesourcery.com>
20626 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
20627 add_infile, alloc_switch): New.
20628 (process_command): Remove variable lang_n_infiles. Process
20629 options in a single pass. Use new functions for allocating
20630 infiles and switches arrays. Properly skip operands of
20631 -Xpreprocessor and -Xassembler.
20633 2010-06-26 Jan Hubicka <jh@suse.cz>
20635 PR middle-end/44671
20636 * cgraphunit.c (cgraph_function_versioning): Remove wrong
20637 cgraph_make_decl_local call; fix typo copying RTL data.
20639 2010-06-25 DJ Delorie <dj@redhat.com>
20641 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
20642 (m32c_output_aligned_common): Likewise.
20643 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20644 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20645 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
20646 (m32c_register_pragmas): Register it.
20647 * config/m32c/m32c.c (m32c_get_pragma_address): New.
20648 (m32c_insert_attributes): Set #pragma address decls volatile.
20649 (pragma_entry_eq): New.
20650 (pragma_entry_hash): New.
20651 (m32c_note_pragma_address): New.
20652 (m32c_get_pragma_address): New.
20653 (m32c_output_aligned_common): New.
20654 * doc/extend.texi: Document the new pragma.
20656 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
20658 * config/m32c/predicates.md (m32c_any_operand): Check the code
20659 instead of memory_operand so as to allow matching volatile MEMs.
20660 (m32c_nonimmediate_operand): Likewise.
20661 (mra_operand): Allow volatiles.
20663 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
20666 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
20667 address if the offset is unknown.
20669 2010-06-25 Douglas B Rupp <rupp@gnat.com>
20671 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
20672 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
20673 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
20674 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
20675 to ia64_start_function. Invoke it.
20676 * config/ia64/ia64.c (ia64_start_function): Call new function
20677 dwarf2out_vms_debug_main_pointer.
20679 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20681 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
20682 statements computing the true predicate.
20684 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20686 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
20687 to boolean_true_node.
20688 (reset_bb_predicate): New.
20689 (predicate_bbs): Call reset_bb_predicate.
20691 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20693 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
20694 (tree_if_conversion): Returns true when something has been changed.
20695 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
20698 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20700 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
20701 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
20702 * tree-if-conv.c: Include dbgcnt.h.
20703 (tree_if_conversion): Use if_conversion_tree to count the number of
20704 if-convertible loops.
20706 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
20708 * common.opt (fprefetch-loop-arrays): Re-define
20709 -fprefetch-loop-arrays as a tri-state option with the initial
20711 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
20712 pass only when flag_prefetch_loop_arrays > 0.
20713 * toplev.c (process_options): Note that, with tri-states,
20714 flag_prefetch_loop_arrays>0 means prefetching is enabled.
20715 * config/i386/i386.c (override_options): Enable prefetching at -O3
20716 for a set of CPUs that sw prefetching is helpful.
20717 (software_prefetching_beneficial_p): New. Return TRUE if software
20718 prefetching is beneficial for the given CPU.
20720 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
20722 PR rtl-optimization/44326
20723 * implicit-zee.c (find_removable_zero_extends): Replace
20724 INSN_P with NONDEBUG_INSN_P.
20726 2010-06-25 Martin Jambor <mjambor@suse.cz>
20728 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
20729 (struct ipa_node_params): Removed the modification_analysis_done flag.
20730 (ipa_is_param_modified): Removed.
20731 (ipa_analyze_node): Declare.
20732 (ipa_compute_jump_functions): Remove declaration.
20733 (ipa_count_arguments): Likewise.
20734 (ipa_detect_param_modifications): Likewise.
20735 (ipa_analyze_params_uses): Likewise.
20736 * ipa-prop.c (struct param_analysis_info): New type.
20737 (visit_store_addr_for_mod_analysis): Removed.
20738 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
20739 moved down in the file.
20740 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
20741 (ipa_count_arguments): Made static.
20742 (mark_modified): New function.
20743 (is_parm_modified_before_call): New function.
20744 (compute_pass_through_member_ptrs): New parameter parms_info, call
20745 is_parm_modified_before_call instead of ipa_is_param_modified.
20746 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
20747 it to compute_pass_through_member_ptrs.
20748 (ipa_compute_jump_functions): New parameter parms_info, pass it to
20749 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
20750 on the callee if it is analyzed. Made static.
20751 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
20752 is_parm_modified_before_call instead of ipa_is_param_modified.
20753 (ipa_analyze_call_uses): New parameter parms_info, pass it to
20754 ipa_analyze_indirect_call_uses.
20755 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
20756 ipa_analyze_call_uses.
20757 (ipa_analyze_params_uses): New parameter parms_info, pass it to
20758 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
20759 (ipa_analyze_node): New function.
20760 (ipa_print_node_params): Do not dump the modified flag.
20761 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
20762 it. Do not stream the modified parameter flag.
20763 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
20764 it. Do not stream the modified parameter flag.
20765 * ipa-cp.c (ipcp_analyze_node): Removed.
20766 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
20767 with only a call to ipa_analyze_node.
20768 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
20769 node with only a call to ipa_analyze_node.
20771 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
20773 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
20775 2010-06-25 Jan Hubicka <jh@suse.cz>
20777 * tree-pass.h (pass_split_functions): Declare.
20778 * opts.c (decode_options): Enable function splitting at -O2
20779 * timevar.def (TV_IPA_FNSPLIT): New macro.
20780 * ipa-split.c: New file.
20781 * common.opt (-fpartial-inlining): New flag.
20782 * Makefile.in (ipa-split.o): New object file.
20783 * passes.c (init_optimization_passes): Add ipa-split.
20784 * params.def (partial-inlining-entry-probability): New parameters.
20785 * doc/invoke.texi (-fpartial-inlining): New.
20787 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
20790 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
20791 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
20792 (gimplify_expr): Likewise.
20794 2010-06-25 Martin Jambor <mjambor@suse.cz>
20796 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
20797 statements instead of bailing out on them.
20798 (ipa_analyze_indirect_call_uses): Do not require that loads from the
20799 parameter are in the same BB as the condition. Update comments.
20801 2010-06-25 Jakub Jelinek <jakub@redhat.com>
20803 PR middle-end/43866
20804 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
20805 true or always false, return NULL_TREE.
20806 (tree_unswitch_single_loop): Optimize conditions even when reaching
20807 max-unswitch-level parameter. If num > 0, optimize first all conditions
20808 using entry checks, then do still reachable block discovery and consider
20809 only conditions in still reachable basic blocks in the loop.
20811 PR tree-optimization/44539
20812 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
20813 the call doesn't have LHS, but has VDEF.
20815 2010-06-25 Joseph Myers <joseph@codesourcery.com>
20817 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
20818 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
20819 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
20820 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
20821 * system.h (MODIFY_TARGET_NAME): Poison.
20823 2010-06-25 Alan Modra <amodra@gmail.com>
20825 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
20826 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
20827 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
20828 CMODEL_LARGE as default.
20829 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
20830 (offsettable_ok_by_alignment): Delete.
20831 (rs6000_emit_move): Remove mcmodel=medium optimization.
20833 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
20835 With large parts from Jim Wilson:
20837 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
20838 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20839 * optabs.c (optab_for_tree_code): Likewise.
20840 (expand_widen_pattern_expr): Likewise.
20841 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
20842 out of execute_optimize_widening_mul.
20843 (convert_plusminus_to_widen): New function.
20844 (execute_optimize_widening_mul): Use the two new functions.
20845 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
20846 Remove code to generate widening multiply-accumulate. Add support
20847 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20848 * gimple-pretty-print.c (dump_ternary_rhs): New function.
20849 (dump_gimple_assign): Call it when appropriate.
20850 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
20851 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
20852 (expand_gimple_stmt_1): Likewise.
20853 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
20854 WIDEN_MULT_MINUS_EXPR.
20855 * tree-ssa-operands.c (get_expr_operands): Likewise.
20856 * tree-inline.c (estimate_operator_cost): Likewise.
20857 * gimple.c (extract_ops_from_tree_1): Renamed from
20858 extract_ops_from_tree. Add new arg for a third operand; fill it.
20859 (gimple_build_assign_stat): Support operations with three operands.
20860 (gimple_build_assign_with_ops_stat): Likewise.
20861 (gimple_assign_set_rhs_from_tree): Likewise.
20862 (gimple_assign_set_rhs_with_ops_1): Renamed from
20863 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
20864 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
20865 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
20866 WIDEN_MULT_MINUS_EXPR.
20867 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
20868 (extract_ops_from_tree_1): Adjust declaration.
20869 (gimple_assign_set_rhs_with_ops_1): Likewise.
20870 (gimple_build_assign_with_ops): Pass NULL for last operand.
20871 (gimple_build_assign_with_ops3): New macro.
20872 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
20873 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
20875 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
20876 (verify_gimple_assign): Call it.
20877 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
20878 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
20879 functions for dealing with three-operand statements.
20880 * tree.c (commutative_ternary_tree_code): New function.
20881 * tree.h (commutative_ternary_tree_code): Declare it.
20882 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
20883 ternary statements.
20884 (gimple_assign_nonzero_warnv_p): Likewise.
20885 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
20886 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
20887 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
20888 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
20889 (struct hashtable_expr): New member ternary in the union.
20890 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
20891 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
20892 (iterative_hash_hashable_expr): Likewise.
20893 (print_expr_hash_elt): Handle EXPR_TERNARY.
20894 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
20895 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
20896 statements. Handle GIMPLE_TERNARY_RHS.
20898 2010-06-25 Jan Hubicka <jh@suse.cz>
20900 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
20902 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
20905 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
20906 parameters are not good.
20907 (c_parser_parameter_declaration): Error unknown type name if the type
20908 name can't start declaration specifiers.
20910 2010-06-25 Joseph Myers <joseph@codesourcery.com>
20912 * gcc.c (translate_options): Don't mention +e in comment.
20913 (process_command): Don't handle +e specially.
20915 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
20917 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
20919 * ira-build.c (merge_hard_reg_conflicts): New function.
20920 (create_cap_allocno, copy_info_to_removed_store_destinations,
20921 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
20922 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
20923 (remove_unnecessary_allocnos, remove_low_level_allocnos)
20924 copy_nifo_to_removed_store_destination): Use them.
20925 * ira-lives.c (make_hard_regno_born): New function, split out of
20927 (make_allocno_born): Likewise.
20928 (make_hard_regno_dead): New function, split out of make_regno_dead.
20929 (make_allocno_dead): Likewise.
20930 (inc_register_pressure): New function, split out of set_allocno_live.
20931 (dec_register_pressure): New function, split out of clear_allocno_live.
20932 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
20933 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
20934 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
20935 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
20936 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
20937 mark_pseudo_regno_live.
20938 (process_bb_node_lives): Use mark_pseudo_regno_live,
20939 make_hard_regno_born and make_allocno_dead.
20940 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
20941 set_allocno_live, clear_allocno_live): Delete functions.
20943 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
20944 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
20946 (ira_flattening): Use ira_parent_allocno.
20947 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
20948 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
20950 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
20953 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
20954 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
20955 minmax_set_iter_cond, minmax_set_iter_next,
20956 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
20957 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
20958 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
20959 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
20962 * ira-int.h (struct live_range, live_range_t): Renamed from struct
20963 ira_allocno_live_range and allocno_live_range_t; all uses changed.
20964 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
20967 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
20969 * thumb2.md (thumb2_tlobits_cbranch): Delete.
20970 (peephole2 to convert zero_extract/compare of single bit to
20971 lshift/compare): New.
20973 2010-06-24 Anatoly Sokolov <aesok@post.ru>
20975 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
20976 recursive call and call to 'int_const_binop'.
20977 (build_range_check, fold_cond_expr_with_comparison, unextend,
20978 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
20979 multiple_of_p): Adjust call to const_binop.
20981 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
20983 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
20984 determine size of XFmode operand.
20985 (XFmode extended DFmode push splitter): Ditto.
20986 (XFmode extended SFmode push splitter): Ditto.
20988 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
20991 * config/i386/i386.md (extract_code): New.
20992 (<u>divmodqi4): Likewise.
20993 (divmodhiqi3): Likewise.
20994 (udivmodhiqi3): Likewise.
20995 (<u>divqi3): Remvoved.
20997 2010-06-24 Jakub Jelinek <jakub@redhat.com>
20999 PR middle-end/44492
21000 * recog.h (struct recog_data): Add is_asm field.
21001 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
21002 present in constraints of inline-asm operand and memory operand
21003 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
21004 (extract_insn): Initialize recog_data.is_asm.
21005 * doc/md.texi (Constraints): Document operand side-effect rules.
21007 2010-06-24 Andi Kleen <ak@linux.intel.com>
21009 * c-parser.c (c_parser_conditional_expression): Call
21010 warn_for_omitted_condop.
21011 * doc/invoke.texi: Document omitted condop warning.
21013 2010-06-24 Nick Clifton<nickc@redhat.com>
21015 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
21016 insn in the sequence is a jump insn before setting its label.
21018 2010-06-24 Alan Modra <amodra@gmail.com>
21020 * collect2.c (main): Match exactly --version and --help.
21022 2010-06-24 DJ Delorie <dj@redhat.com>
21024 * config/m32c/m32c-pragma.c: Don't include rtl.h.
21026 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
21028 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
21029 using X87MODEF mode iterator.
21030 (pushsf splitter): Macroize splitter using P mode iterator.
21031 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
21034 (*movxf_internal): Rename from *movxf_integer.
21035 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
21036 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
21037 (*movdf_internal): Rename from *movdf_integer.
21038 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
21039 (*movsf_internal): Rename from *movdf_1.
21041 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
21043 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
21044 (const_gimple_seq_node): Removed typedefs.
21046 * gimple.h (gimple_seq_node_d, gimple_seq_node)
21047 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
21049 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
21051 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
21052 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
21053 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
21054 and CODE_FOR_vec_extract_lo_v4df.
21056 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
21057 Changed to define_insn_and_split.
21058 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
21059 (vec_extract_lo_v16hi): Likewise.
21060 (vec_extract_lo_v32qi): Likewise.
21061 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
21062 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
21064 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
21067 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
21068 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
21069 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
21070 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
21071 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
21074 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
21077 * df-core.c (struct df): Rename to df_d.
21078 * df.h (struct df): Likewise.
21079 * dse.h (struct df): Remove forward declaration.
21080 * recog.h (struct insn_data): Rename to:
21081 (struct_insn_data_d). Adjusted all users.
21083 2010-06-23 Arnaud Charlet <charlet@adacore.com
21086 * doc/install.texi: Update requirements to build GNAT.
21088 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
21090 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
21092 (m68k_sched_attr_opx_type): Remove unreachable return.
21093 (m68k_sched_attr_opy_type): Likewise.
21094 (m68k_sched_attr_size): Likewise.
21095 (sched_get_opxy_mem_type): Likewise.
21096 (m68k_sched_attr_op_mem): Likewise.
21098 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
21100 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
21101 new statement and adjust VDEF only if necessary. Remove superfluous
21102 call to maybe_clean_or_replace_eh_stmt.
21103 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
21105 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
21106 * tree-inline.c (copy_bb): ...and not there.
21108 2010-06-22 Cary Coutant <ccoutant@google.com>
21110 * dwarf2out.c (is_nested_in_subprogram): New function.
21111 (should_move_die_to_comdat): Use it.
21112 (copy_ancestor_tree): Don't mark DIEs here.
21113 (copy_decls_walk): Start walk from root of newly-added tree;
21114 mark DIEs here instead.
21116 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
21118 * config/i386/i386.md (unit): Also check sseishft1.
21120 2010-06-22 Jan Hubicka <jh@suse.cz>
21122 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
21125 2010-06-22 Jan Hubicka <jh@suse.cz>
21127 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
21128 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
21129 Return true if something changed.
21130 * df.h (df_confluence_function_n): Return bool.
21131 * df-core.c (df_worklist_propagate_forward,
21132 df_worklist_propagate_backward): Track changes and ages.
21133 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
21135 * dse.c (dse_confluence_n): Return always true.
21137 2010-06-22 Jan Hubicka <jh@suse.cz>
21139 * bitmap.c (bitmap_clear_bit): Micro optimize.
21141 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
21143 * config/i386/i386.md (SWI1248x): New mode iterator.
21148 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
21149 SWI1248x mode iterator.
21150 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
21151 using SWI124 mode iterator.
21152 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
21154 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
21155 *pushdi2_prologue_rex64 using P mode iterator.
21156 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
21157 using SWI48 mode iterator.
21158 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
21159 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
21160 using SWI1248x mode iterator.
21161 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
21162 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
21163 SWI48 mode iterator.
21164 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
21166 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
21167 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
21168 SWI12 mode iterator.
21169 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
21170 SWI12 mode iterator.
21171 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
21172 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
21173 SWI24 mode iterator.
21174 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
21175 SWI48 mode iterator.
21176 (mov<mode>_insn_1): New expander.
21177 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
21178 using SWI48x mode iterator.
21180 (*movoi_internal_avx): Rename from *movoi_internal.
21181 (*movti_internal_rex64): Rename from *movti_rex64.
21182 (*movti_internal_sse): Rename from *movti_sse.
21183 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
21184 (*movdi_internal): Rename from *movdi_2.
21185 (*movsi_internal): Rename from *movsi_1.
21186 (*movhi_internal): Rename from *movhi_1.
21187 (*movqi_internal): Rename from *movqi_1.
21189 (insv): Update the call to gen_movsi_insv_1 for rename.
21190 * config/i386/i386.c (promote_duplicated_reg): Ditto.
21192 2010-06-22 Jan Hubicka <jh@suse.cz>
21194 * passes.c (execute_function_todo): Move call of statistics_fini_pass
21196 (execute_todo) ... this one.
21198 2010-06-22 Alan Modra <amodra@gmail.com>
21201 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21202 * caller-save.c (insert_restore, insert_save): Use non-validate
21203 form of adjust_address.
21205 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21208 * config/pa/pa.c (override_options): Disable
21209 -freorder-blocks-and-partition.
21211 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
21214 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
21216 * config/i386/i386.md (type): Add sseishft1
21218 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
21219 (ppro_insn_load): Likewise.
21220 (ppro_insn_store): Likewise.
21221 (ppro_insn_both): Likewise.
21223 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
21224 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
21226 (*vec_extractv2di_1_avx): Likewise.
21227 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
21228 type. Remove atom_unit.
21229 (*vec_extractv2di_1_sse2): Likewise.
21231 2010-06-21 DJ Delorie <dj@redhat.com>
21233 * diagnostic.h (diagnostic_classification_change_t): New.
21234 (diagnostic_context): Add history and push/pop list.
21235 (diagnostic_push_diagnostics): Declare.
21236 (diagnostic_pop_diagnostics): Declare.
21237 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
21238 from pragmas in a history chain instead of the global table.
21239 (diagnostic_push_diagnostics): New.
21240 (diagnostic_pop_diagnostics): New.
21241 (diagnostic_report_diagnostic): Scan history chain to find state
21242 of diagnostics as of the diagnostic location.
21243 * opts.c (set_option): Pass UNKNOWN_LOCATION to
21244 diagnostic_classify_diagnostic.
21245 (enable_warning_as_error): Likewise.
21246 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
21247 use in the history chain.
21248 * doc/extend.texi: Document pragma GCC diagnostic changes.
21250 2010-06-21 Jakub Jelinek <jakub@redhat.com>
21252 * dwarf2out.c (add_linkage_name): New function. Don't add
21253 anything to DW_TAG_member DIEs.
21254 (add_name_and_src_coords_attributes): Use it.
21255 (gen_variable_die): Call it for C++ static data members if
21256 specification is DW_TAG_member.
21258 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
21259 C++ char16_t and char32_t.
21261 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
21262 * genattrtab.c: Include vecprim.h.
21263 (cached_attrs, cached_attr_count, attrs_seen_once,
21264 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
21265 attrs_cached_after): New variables.
21266 (find_attrs_to_cache): New function.
21267 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
21268 (write_test_expr): Add attrs_cached argument, return it too,
21269 attempt to cache non-const attributes used more than once in
21270 a single case handling.
21271 (write_attr_get): Use find_attrs_to_cache, for caching candidates
21272 emit cached_* variables. Adjust write_attr_set callers.
21273 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
21274 to find attributes that should be cached in this block. Adjust
21275 write_test_expr callers.
21276 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
21278 (make_automaton_attrs): Adjust write_test_expr caller.
21280 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
21281 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
21282 (make_automaton_attrs): If find_tune_attr returns non-NULL,
21283 write separate internal_dfa_insn_code_* and insn_default_latency_*
21284 functions for each attribute's value and emit init_sched_attrs
21285 function and function pointers.
21286 * genattr.c (const_attrs, reservations): New variables.
21287 (gen_attr): Add const attributes to const_attrs vector.
21288 (check_tune_attr, find_tune_attr): New functions.
21289 (main): Add reservations to reservations vector. If find_tune_attr
21290 returns true, add prototype for init_sched_attrs and make
21291 internal_dfa_insn_code and insn_default_latency function pointers,
21292 otherwise define init_sched_attrs as dummy macro.
21293 * cfgexpand.c: Include insn-attr.h.
21294 (gimple_expand_cfg): Call init_sched_attrs.
21296 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
21299 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
21300 va_arg from a set of register save slots into a temporary,
21301 if the container is bigger than type size, do the copying
21302 using smaller mode or using memcpy.
21305 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
21307 (sel_print_to_dot): Remove macro.
21308 (sel_print): Likewise. New prototype.
21309 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
21310 (sel_print): New function.
21312 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21314 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
21315 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
21317 2010-06-21 Nick Clifton <nickc@redhat.com>
21319 * config/rx/rx.h (PTRDIFF_TYPE): Define.
21320 (SMALL_REGISTER_CLASS): Define (to zero).
21321 (PRINT_OPERAND): Delete.
21322 (PRINT_OPERAND_ADDRESS): Delete.
21323 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
21324 (rx_print_operand_address): Delete prototype.
21325 * config/rx/rx.c (rx_print_operand): Make static.
21326 Allow %H and %L to handle CONST_DOUBLEs.
21327 (rx_print_operand_address): Make static.
21328 (rx_gen_move_template): Rename local variable 'template' to
21330 (rx_function_arg): Do not pass unknown sized objects in registers.
21331 (TARGET_PRINT_OPERAND): Define.
21332 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21334 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
21336 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
21338 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
21340 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
21341 stack-alignment for simple leaf-functions.
21343 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
21345 * doc/install.texi: Document bootstrap-lto.
21347 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
21350 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
21351 (input_function): Drop them here, if VTA is disabled.
21353 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
21356 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
21358 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
21359 ix86_swapped_fp_comparsion_operator instead of
21360 ix86_fp_comparison_operator.
21362 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
21363 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
21364 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
21365 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
21366 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
21367 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
21369 2010-06-20 Joseph Myers <joseph@codesourcery.com>
21372 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
21373 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
21374 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
21375 (decode_cmdline_option): Update for this return value. Set
21376 orig_option_with_args_text field. Set arg field for unknown
21377 options. Make static.
21378 (decode_cmdline_options_to_array): New.
21379 (prune_options): Update handling of find_opt return value.
21380 * opts.c (read_cmdline_option): Take decoded option. Return void.
21381 (read_cmdline_options): Take decoded options.
21382 (decode_options): Add parameters for decoded options. Use
21383 decode_cmdline_options_to_array. Use decoded options for -O
21384 scan. Use integral_argument for -O parameters. Update call to
21385 read_cmdline_options.
21386 (enable_warning_as_error): Update handling of find_opt return value.
21387 * opts.h: Update comment on unknown options.
21388 (struct cl_decoded_option): Update comments on opt_index and arg.
21389 Add orig_option_with_args_text.
21390 (decode_cmdline_option): Remove.
21391 (decode_cmdline_options_to_array): Declare.
21392 (decode_options): Update prototype.
21393 * toplev.c (save_argv): Remove.
21394 (save_decoded_options, save_decoded_options_count): New.
21395 (read_integral_parameter): Remove.
21396 (print_switch_values): Use decoded options.
21397 (toplev_main): Don't set save_argv. Update call to decode_options.
21398 * toplev.h (read_integral_parameter): Remove.
21399 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
21401 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
21404 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
21406 * constraints.md (Pw, Px): New constraints.
21407 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
21409 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
21411 * config/i386/sse.md (fma4modesuffixf4): Removed.
21412 (ssemodesuffixf2s): Likewise.
21413 (ssemodesuffixf4): Likewise.
21414 (ssemodesuffixf2c): Likewise.
21415 (ssescalarmodesuffix2s): Likewise.
21416 (avxmodesuffixf2c): Likewise.
21417 (ssemodesuffix): New.
21418 (ssescalarmodesuffix): Likewise.
21419 Update patterns with ssemodesuffix and ssescalarmodesuffix.
21421 2010-06-19 Philip Herron <herron.philip@googlemail.com>
21423 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
21425 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
21427 * stor-layout.c (debug_rli): Remove unused local variables.
21429 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
21431 PR rtl-optimization/40900
21432 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
21433 original expression for later reuse.
21434 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
21435 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
21437 2010-06-18 Anatoly Sokolov <aesok@post.ru>
21439 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
21440 double_int_fits_in_uhwi_p): Implement as static inline.
21441 (double_int_xor): New inline function.
21442 (double_int_lrotate, double_int_rrotate, double_int_max,
21443 double_int_umax, double_int_smax, double_int_min, double_int_umin,
21444 double_int_smin): Declare.
21445 (lrotate_double, rrotate_double): Remove declaration.
21446 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
21447 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
21448 (double_int_lrotate, double_int_rrotate, double_int_max,
21449 double_int_umax, double_int_smax, double_int_min, double_int_umin,
21450 double_int_smin): New function.
21451 * fold-const.c (int_const_binop): Clean up, use double_int_*
21453 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
21454 double_int_* and immed_double_int_const functions.
21456 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
21458 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
21459 * function.c (types_used_by_cur_var_decl): Likewise.
21460 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
21462 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
21464 * tree.h (record_layout_info): Change type of pending_statics field
21466 * stor-layout.c (start_record_layout): Store NULL into
21468 (debug_rli): Call debug_vec_tree instead of debug_tree.
21469 (place_field): Likewise.
21470 (finish_record_layout): Likewise.
21472 2010-06-18 Alan Modra <amodra@gmail.com>
21474 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
21476 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21479 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
21480 for SET source operand from SET destination operand.
21482 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
21484 PR rtl-optimization/39871
21485 * reload1.c (init_eliminable_invariants): For flag_pic, disable
21486 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
21487 (function_invariant_p): Rule out a plus of frame or arg pointer with
21489 * ira.c (find_reg_equiv_invariant_const): Likewise.
21491 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
21493 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
21494 print_operand_address and puts to output the operand for CONST.
21496 2010-06-17 Jakub Jelinek <jakub@redhat.com>
21499 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
21502 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21504 * v850-protos.h (print_operand): Delete.
21505 (print_operand_address): Delete.
21506 * v850.h (PRINT_OPERAND): Delete.
21507 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21508 (PRINT_OPERAND_ADDRESS): Delete.
21509 * v850.c (print_operand_address): Rename to...
21510 (v850_print_operand_address): ...this. Make static. Call
21511 v850_print_operand.
21512 (print_operand): Rename to...
21513 (v850_print_operand): ...this. Make static. Call
21514 v850_print_operand_address.
21515 (v850_print_operand_punct_valid_p): New function.
21516 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21517 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21519 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21521 * config/sh/sh-protos.h (print_operand): Delete.
21522 (print_operand_address): Delete.
21523 * config/sh/sh.h (PRINT_OPERAND): Delete.
21524 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21525 (PRINT_OPERAND_ADDRESS): Delete.
21526 * config/sh/sh.c (sh_print_operand_address): Make static.
21527 (sh_print_operand): Make static. Call sh_print_operand_address
21528 and sh_print_operand.
21529 (sh_print_operand_punct_valid_p): New function.
21530 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21531 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21533 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21535 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
21536 (mcore_print_operand_address): Delete.
21537 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
21538 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21539 (PRINT_OPERAND_ADDRESS): Delete.
21540 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
21541 (mcore_print_operand): Make static.
21542 (mcore_print_operand_punct_valid_p): New function.
21543 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
21544 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21546 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21548 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
21549 (print_operand_address): Delete.
21550 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
21551 (PRINT_OPERAND_ADDRESS): Delete.
21552 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
21554 (m68hc11_print_operand): Make static.
21555 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21557 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21559 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
21560 (m32r_print_operand_address): Delete.
21561 * config/m32r/m32r.h (m32r_punct_chars): Delete.
21562 (PRINT_OPERAND): Delete.
21563 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21564 (PRINT_OPERAND_ADDRESS): Delete.
21565 * config/m32r/m32r.c (m32r_punct_chars): Make static.
21566 (m32r_print_operand_address): Make static.
21567 (m32r_print_operand): Make static.
21568 (m32r_print_operand_punct_valid_p): New function.
21569 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21570 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21572 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21574 * config/iq2000/iq2000-protos.h (print_operand): Delete.
21575 (print_operand_address): Delete.
21576 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
21577 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21578 (PRINT_OPERAND_ADDRESS): Delete.
21579 (iq2000_print_operand_punct): Delete.
21580 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
21581 (iq2000_print_operand_address): Make static.
21582 (iq2000_print_operand): Make static.
21583 (iq2000_print_operand_punct_valid_p): New function.
21584 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21585 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21587 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21589 * config/frv/frv-protos.h (frv_print_operand): Delete.
21590 (frv_print_operand_address): Delete.
21591 * config/frv/frv.h (PRINT_OPERAND): Delete.
21592 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21593 (PRINT_OPERAND_ADDRESS): Delete.
21594 * config/frv/frv.c (frv_print_operand_address): Make static.
21595 (frv_print_operand): Make static.
21596 (frv_print_operand_punct_valid_p): New function.
21597 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21598 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21600 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21602 * tree.h (vec_member): Declare.
21603 * tree.c (vec_member): Define.
21605 2010-06-17 Richard Guenther <rguenther@suse.de>
21607 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
21608 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
21610 2010-06-17 Richard Guenther <rguenther@suse.de>
21612 * tree-inline.c (declare_return_variable): Remove bogus code.
21614 2010-06-17 Richard Guenther <rguenther@suse.de>
21616 * gimplify.c (gimplify_bind_expr): Always promote complex
21617 and vector variables to registers if possible.
21619 2010-06-17 Richard Guenther <rguenther@suse.de>
21621 * expr.c (get_inner_reference): Use double_int for bit_offset
21624 2010-06-16 DJ Delorie <dj@redhat.com>
21626 * common.opt (-fstrict-volatile-bitfields): new.
21627 * doc/invoke.texi: Document it.
21628 * fold-const.c (optimize_bit_field_compare): For volatile
21629 bitfields, use the field's type to determine the mode, not the
21631 * expr.c (expand_assignment): Likewise.
21632 (get_inner_reference): Likewise.
21633 (expand_expr_real_1): Likewise.
21634 * expmed.c (store_fixed_bit_field): Likewise.
21635 (extract_bit_field_1): Likewise.
21636 (extract_fixed_bit_field): Likewise.
21638 2010-06-16 Richard Guenther <rguenther@suse.de>
21640 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
21642 2010-06-16 Douglas B Rupp <rupp@gnat.com>
21644 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
21645 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
21646 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
21647 * debug.c: Likewise.
21648 * sdbout.c: Likewise.
21649 * vmsdbgout.c: Likewise.
21650 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
21651 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
21652 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
21653 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
21654 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
21655 * dwarf2out.c (dw_fde_struct): New fields
21656 dw_fde_vms_{end,begin}_prologue.
21657 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
21658 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
21659 (dwarf2out_vms_end_prologue): New function.
21660 (dwarf2out_vms_begin_epilogue): New function.
21661 (dw_val_struct): New value dw_val_class_vms_delta.
21662 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
21663 begin_epilogue for VMS.
21664 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
21665 new static functions.
21666 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
21667 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
21669 (print_die): New case dw_val_class_vms_delta.
21670 (attr_checksum): Likewise.
21671 (same_dw_val_p: Likewise.
21672 (size_of_die): Likewise.
21673 (value_format): Likewise.
21674 (output_die): Likewise.
21675 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
21676 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
21677 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
21678 dwarf2out_cfi_begin_epilogue
21679 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
21681 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
21683 * config/cris/cris-protos.h (cris_print_operand): Delete.
21684 (cris_print_operand_address): Delete.
21685 * config/cris/cris.h (PRINT_OPERAND): Delete.
21686 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21687 (PRINT_OPERAND_ADDRESS): Delete.
21688 * config/cris/cris.c (cris_print_operand_address): Make static.
21689 (cris_print_operand): Make static.
21690 (cris_print_operand_punct_valid_p): New function.
21691 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21692 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21694 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
21696 * config/arm/arm-protos.h (arm_print_operand): Delete.
21697 (arm_print_operand_address): Delete.
21698 * config/arm/arm.h (PRINT_OPERAND): Delete.
21699 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21700 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
21701 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
21702 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
21703 (arm_print_operand): Make static.
21704 (arm_print_operand_punct_valid_p): New function.
21705 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21706 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21708 2010-06-16 Nick Clifton <nickc@redhat.com>
21710 * config/rx/constraints.md (NEGint4): New constraint.
21711 * config/rx/rx.md (attr cc): Add set_zsc.
21712 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
21715 (call_internal): Clobber the cc0 register.
21716 (call_value_internal): Likewise.
21717 (cstoresi4): Likewise.
21718 (movsieq): Likewise.
21719 (movsine): Likewise.
21720 (addsi3): Add alternative to handle small negative constants.
21721 (sunsi3): Likewise.
21722 (addsi3): Do not set the O bit in the cc0 register.
21723 (adddi3): Likewise.
21724 (subsi3): Likewise.
21725 (subdi3): Likewise.
21726 (andsi3): Reorder alternatives to prefer shorter forms.
21727 (mulsi3): Likewise.
21728 (iorsi3): Likewise.
21729 (negsi2): Note that the cc0 flags are set.
21730 (rotlsi3): Note that only the Z and S bits are set in cc0.
21731 (lshrsi3): Likewise.
21732 (ashlsi3): Likewise.
21733 (subsf3): Use %Q for the MEM operand.
21734 (fix_truncsfsi2): Likewise.
21735 (floatsisf2): Likewise.
21736 (bitset): Remove early clobber from destination.
21737 (bitset_in_memory): Likewise.
21738 (lrintsf2): Clobber the cc0 register.
21739 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
21740 (rx_print_operand): Handle %N.
21742 2010-06-16 Jan Hubicka <jh@suse.cz>
21744 * df-core.c (df_compact_blocks): Free problem_temps vector.
21746 2010-06-16 Martin Jambor <mjambor@suse.cz>
21748 PR tree-optimization/43905
21749 * tree-sra.c: Include tree-inline.h.
21750 (create_abstract_origin): Removed.
21751 (modify_function): Version the call graph node instead of creating
21752 abstract origins and dealing with same_body aliases.
21753 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
21754 function is versionable.
21755 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
21757 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
21759 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
21760 (CHOOSE_DYNAMIC_LINKER): Update.
21762 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
21764 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
21765 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
21766 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
21767 *prefetch_3dnow_rex.
21769 2010-06-15 Anatoly Sokolov <aesok@post.ru>
21771 * target.h (struct asm_out):Add declare_constant_name field.
21772 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21773 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
21774 * output.h (default_asm_declare_constant_name): Declare.
21775 (assemble_label): Update prototype.
21776 * varasm.c (assemble_constant_contents): Use
21777 targetm.asm_out.declare_constant_name target hook.
21778 (assemble_label): Add 'file' argument.
21779 (default_asm_declare_constant_name): New function.
21780 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
21781 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
21782 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
21784 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
21785 * config/darwin.c (darwin_asm_declare_constant_name): New function.
21786 (machopic_output_indirection): Update assemble_label argument list.
21787 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
21788 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21790 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
21792 PR middle-end/44391
21793 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21794 size_one_node for pointer types. Do not call gmp_cst_to_tree.
21796 2010-06-15 Richard Guenther <rguenther@suse.de>
21798 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
21800 2010-06-15 Paul Brook <paul@codesourcery.com>
21802 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
21805 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
21807 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
21808 don't get a vector type for output.
21810 2010-06-15 Jakub Jelinek <jakub@redhat.com>
21813 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
21814 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
21815 (LANG_HOOKS_DECLS): Add it.
21816 * gimplify.c (omp_notice_variable): Call
21817 lang_hooks.decls.omp_report_decl.
21819 2010-06-15 Martin Jambor <mjambor@suse.cz>
21822 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
21823 on the newly dead SSA name.
21825 2010-06-15 Alan Modra <amodra@gmail.com>
21827 * doc/invoke.texi: Add mcmodel to powerpc options.
21828 * configure.ac: Add HAVE_LD_LARGE_TOC test.
21829 * configure: Regenerate.
21830 * config.in: Regenerate.
21831 * config/rs6000/linux64.opt (mcmodel): New.
21832 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
21833 (TARGET_CMODEL, SET_CMODEL): Define.
21834 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
21835 select CMODEL_MEDIUM default.
21836 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
21837 (TARGET_CMODEL): Define default.
21838 * config/rs6000/rs6000.c (cmodel): New variable.
21839 (rs6000_explicit_options): Add cmodel field.
21840 (rs6000_handle_option): Handle -mcmodel.
21841 (create_TOC_reference): Add largetoc_reg param. Generate high,
21842 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
21843 (rs6000_delegitimize_address): Recognise new toc reference rtl
21844 and minimal-toc rtl.
21845 (rs6000_legitimize_reload_address): Handle new toc references.
21846 (print_operand_address): Handle legitimate_constant_pool_address_p
21847 match before lo_sum.
21848 (rs6000_eliminate_indexed_memrefs): Tidy.
21849 (rs6000_emit_move): Tweak threshold for inlining constants.
21850 Keep rs6000_emit_allocate_stack large stack frame offsets
21851 loaded into r0 inline.
21852 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
21853 (tocrel_base, tocrel_offset): New variables.
21854 (toc_relative_expr_p): Set them here.
21855 (print_operand_address): Skip over any offset on constant pool address.
21856 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
21857 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
21858 (offsettable_ok_by_alignment): New function.
21859 (rs6000_emit_move): Address suitably aligned local symbol_refs
21860 relative to the toc pointer for -mcmodel=medium.
21861 (legitimate_constant_pool_address_p): Make param const_rtx. Add
21862 strict param. Allow lo_sum version of addressing. Verify reg
21863 used for -mminimal-toc and -mcmodel != small. Update all callers.
21864 * config/rs6000/constraints.md: Update for above change.
21865 * config/rs6000/predicates.md: Likewise.
21866 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
21868 (tls_gd): Split for -mcmodel=medium/large.
21869 (tls_gd_high, tls_gd_low): New.
21870 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
21871 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
21872 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
21873 (largetoc_high, largetoc_low): New.
21874 (cmptf_internal2): Add clobber.
21875 * config/rs6000/rs6000-protos.h: Update.
21877 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
21879 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
21880 true if no prefetch is going to be generated for a given group.
21881 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
21882 estimate the prefetch_count.
21883 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
21884 prefetch count by considering the unroll_factor and prefetch_mod
21885 for is_loop_prefetching_profitable.
21887 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
21889 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
21890 anything if the argument is not a MEM.
21892 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
21897 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
21899 (canonicalize_loop_ivs): Likewise.
21901 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
21904 * haifa-sched.c (setup_insn_reg_pressure_info,
21905 update_register_pressure): Reject debug insns.
21906 (ready_sort): Don't setup reg pressure for debug insns.
21907 (schedule_insn): Don't update reg pressure for debug insns.
21909 2010-06-14 Richard Guenther <rguenther@suse.de>
21911 * lto-streamer.c (cached_bp): Remove.
21912 (bitpack_delete): Likewise.
21913 (bitpack_create): Likewise.
21914 (bp_get_next_word): Likewise.
21915 (bp_pack_value, bp_unpack_value): Move ...
21916 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
21918 (struct bitpack_d): Likewise.
21919 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
21920 New inline functions.
21921 * lto-streamer-out.c (lto_output_bitpack): Remove.
21922 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
21923 (pack_value_fields): Adjust.
21924 (lto_write_tree): Likewise.
21925 (output_gimple_stmt): Likewise.
21926 (output_function): Likewise.
21927 * lto-streamer-in.c (input_gimple_stmt): Adjust.
21928 (input_function): Likewise.
21929 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
21930 (lto_input_bitpack): Remove.
21931 (lto_materialize_tree): Adjust.
21932 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
21933 * lto-cgraph.c (lto_output_edge): Adjust.
21934 (lto_output_node): Likewise.
21935 (lto_output_varpool_node): Likewise.
21936 (lto_output_ref): Likewise.
21937 (input_node): Likewise.
21938 (input_varpool_node): Likewise.
21939 (input_ref): Likewise.
21940 (input_edge): Likewise.
21941 (output_node_opt_summary): Likewise.
21942 (input_node_opt_summary): Likewise.
21943 * ipa-pure-const.c (pure_const_write_summary): Likewise.
21944 (pure_const_read_summary): Likewise.
21945 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
21946 (ipa_read_indirect_edge_info): Likewise.
21947 (ipa_write_node_info): Likewise.
21948 (ipa_read_node_info): Likewise.
21950 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
21953 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
21954 (vec_extract_lo_v16hi): Likewise.
21955 (vec_extract_lo_v32qi): Likewise.
21957 2010-06-14 Jakub Jelinek <jakub@redhat.com>
21960 * tree.h (build_call_expr): Don't define as vararg macro, instead
21962 * builtins.c (build_call_nofold): Remove.
21963 (expand_builtin_int_roundingfn, expand_builtin_pow,
21964 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
21965 expand_builtin_memset_args, expand_builtin_strcmp,
21966 expand_builtin_strncmp, expand_builtin_memory_chk): Use
21967 build_call_nofold_loc instead of build_call_nofold.
21968 (build_call_expr): New function.
21970 PR tree-optimization/44508
21971 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
21972 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
21973 don't eliminate trivially dead stmts.
21974 * tree-vrp.c (vrp_finalize): Pass false as last argument
21975 to substitute_and_fold.
21976 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
21977 to substitute_and_fold.
21978 * tree-ssa-ccp.c (ccp_finalize): Likewise.
21981 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
21983 2010-06-14 Ira Rosen <irar@il.ibm.com>
21985 PR tree-optimization/44507
21986 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
21987 to build initial vector for BIT_AND_EXPR.
21988 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
21990 2010-06-14 Jakub Jelinek <jakub@redhat.com>
21992 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
21993 adjust z10prop set_attr.
21995 2010-06-13 Jan Hubicka <jh@suse.cz>
21997 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
21998 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
21999 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
22000 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
22001 datastructure checks into checking asserts.
22002 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
22003 * tree-ssa-sccvn.c (VN_INFO): Likewise.
22004 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
22005 df_ref_create_structure): Likewise.
22006 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
22007 pool_free): Use gcc_checking_assert.
22008 * alias.c (get_alias_set): Likewise.
22009 * var-tracking.c (variable_htab_free, shared_hash_copy,
22010 canonicalize_values_mark, variable_merge_over_cur): Likewise.
22011 * lto-streamer.c (bp_unpack_value): Likewise.
22013 2010-06-13 Richard Guenther <rguenther@suse.de>
22015 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
22016 Do not stream but initialize TYPE_CANONICAL to NULL.
22017 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
22018 * gimple.c (gimple_types_compatible_p): Disregard
22019 TYPE_STRUCTURAL_EQUALITY_P.
22020 (gimple_register_type): Use TYPE_CANONICAL as cache.
22021 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
22022 before registering common types.
22023 * config/i386/i386.c (ix86_function_arg_boundary): Do not
22024 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
22025 * tree.h (TYPE_CANONICAL): Clarify documentation.
22027 2010-06-13 Anatoly Sokolov <aesok@post.ru>
22029 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22030 LIBCALL_VALUE): Remove macros.
22031 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
22032 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22033 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22034 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
22035 (ia64_function_value): Make static. Handle receiving the function
22036 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
22038 2010-06-12 Jan Hubicka <jh@suse.cz>
22040 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
22043 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
22045 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
22047 2010-06-12 Jan Hubicka <jh@suse.cz>
22049 * df-core.c (df_clear_bb_info): New function.
22050 (df_set_blocks): bb_info is always allocated.
22051 (df_get_bb_info): Use block_info_elt_size.
22052 (df_set_bb_info): Likewise.
22053 (df_compact_blocks): Update for new block_info.
22054 (grow_bb_info): New function.
22055 * df-problems.c (df_grow_bb_info): Move to df-core.c
22056 (df_rd_set_bb_info): Remove.
22057 (df_rd_free_bb_info): Do not free block pool.
22058 (df_rd_alloc): Do not create pool, use check for
22059 obstack presence instead of NULL pointer for new blocks.
22060 (df_rd_free): DO not free alloc pool; clear block_info.
22061 (problem_RD): Add size of block info structure.
22062 (df_lr_set_bb_info): Remove.
22063 (df_lr_free_bb_info): Do not free block pool.
22064 (df_lr_alloc): Do not create pool, use check for
22065 obstack presence instead of NULL pointer for new blocks.
22066 (df_lr_free): DO not free alloc pool; clear block_info.
22067 (problem_LR): Add size of block info structure.
22068 (df_live_set_bb_info): Remove.
22069 (df_live_free_bb_info): Do not free block pool.
22070 (df_live_alloc): Do not create pool, use check for
22071 obstack presence instead of NULL pointer for new blocks.
22072 (df_live_free): DO not free alloc pool; clear block_info.
22073 (problem_LIVE): Add size of block info structure.
22074 (problem_CHAIN): Add size of block info structure.
22075 (df_byte_lr_set_bb_info): Remove.
22076 (df_byte_lr_free_bb_info): Do not free block pool.
22077 (df_byte_lr_alloc): Do not create pool, use check for
22078 obstack presence instead of NULL pointer for new blocks.
22079 (df_byte_lr_free): DO not free alloc pool; clear block_info.
22080 (problem_BYTE_LR): Add size of block info structure.
22081 (problem_NOTE): Add size of block info structure.
22082 (df_byte_MD_set_bb_info): Remove.
22083 (df_byte_MD_free_bb_info): Do not free block pool.
22084 (df_byte_MD_alloc): Do not create pool, use check for
22085 obstack presence instead of NULL pointer for new blocks.
22086 (df_byte_MD_free): DO not free alloc pool; clear block_info.
22087 (problem_BD): Add size of block info structure.
22088 * df-scan.c (df_scan_free_internal): Free block pool.
22089 (df_scan_set_bb_info): Remove.
22090 (df_scan_free_bb_info): Check for artificial_defs instead
22091 of bb_info being non-NULL.
22092 (df_scan_alloc): DO not create df_scan_block pool.
22093 (problem_SCAN): Set size of block info.
22094 (df_bb_refs_record): Do not allocate bb_info.
22095 * df.h (df_problem): Add block_info_elt_size.
22096 (struct dataflow): Change block_info to void *.
22097 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
22098 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
22099 in-line structures.
22101 2010-06-12 Jan Hubicka <jh@suse.cz>
22103 PR tree-optimize/44485
22104 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
22105 containing use of return value of noreturn function.
22107 2010-06-12 Anatoly Sokolov <aesok@post.ru>
22109 * targhooks.c (default_function_value): Don't use
22110 FUNCTION_OUTGOING_VALUE.
22111 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
22112 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
22114 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
22116 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
22117 Add crtfastmath.o to extra_parts.
22118 * config/mips/crtfastmath.c: New.
22119 * config/mips/linux.h (ENDFILE_SPEC): New.
22121 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
22123 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
22124 old_type in parameter.
22125 (gcc_type_for_value): Update call to gcc_type_for_interval.
22126 (compute_type_for_level_1): Renamed compute_type_for_level.
22127 Update call to gcc_type_for_interval.
22129 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22131 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
22132 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
22134 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22136 * opts-common.c: Include options.h.
22137 (integral_argument): Move from opts.c.
22138 (decode_cmdline_option): New. Based on read_cmdline_option.
22139 * opts.c (integral_argument): Move to opts-common.c.
22140 (read_cmdline_option): Move most contents to
22141 decode_cmdline_option. Use %qs in diagnostics.
22142 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
22143 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
22144 decode_cmdline_option): New.
22146 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22149 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
22150 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
22151 (partiysi2_cmp): Ditto.
22152 (*partiyhi2_cmp): Ditto.
22153 (*parityqi2_cmp): Remove.
22155 2010-06-11 Jan Hubicka <jh@suse.cz>
22157 * bitmap.h (bmp_iter_next_bit): New.
22158 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
22160 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
22161 Eric Botcazou <ebotcazou@adacore.com>
22163 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
22166 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22168 * config/i386/i386.md (unspec): New define_c_enum.
22171 2010-06-10 Jakub Jelinek <jakub@redhat.com>
22173 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
22175 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
22177 PR middle-end/44483
22178 * tree-if-conv.c (bb_predicate_s): New struct.
22179 (bb_predicate_p): New.
22180 (bb_has_predicate): New.
22181 (bb_predicate): New.
22182 (set_bb_predicate): New.
22183 (bb_predicate_gimplified_stmts): New.
22184 (set_bb_predicate_gimplified_stmts): New.
22185 (add_bb_predicate_gimplified_stmts): New.
22186 (init_bb_predicate): New.
22187 (free_bb_predicate): New.
22188 (is_predicated): Use bb_predicate.
22189 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
22190 (predicate_bbs): Same. Gimplify the condition of the basic blocks
22191 before processing their successors.
22192 (clean_predicate_lists): Removed.
22193 (find_phi_replacement_condition): Use bb_predicate.
22194 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
22196 (insert_gimplified_predicates): New.
22197 (combine_blocks): Call insert_gimplified_predicates.
22198 (tree_if_conversion): Call free_bb_predicate instead of
22199 clean_predicate_lists.
22201 2010-10-11 Paul Brook <paul@codesourcery.com>
22203 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
22204 * config/arm/arm.c (all_architectures): Change v7e-m default to
22206 * config/arm/arm-cores.def: Add cortex-m4.
22207 * config/arm/arm-tune.md: Regenerate.
22209 2010-06-11 Jan Hubicka <jh@suse.cz>
22211 * ipa-pure-const.c (special_builtlin_state): New function.
22212 (check_call): Use it instead of special casign BUILT_IN_RETURN.
22213 (propagate_pure_const): Use it.
22215 2010-06-11 Jan Hubicka <jh@suse.cz>
22217 * df-problems.c (df_live_scratch): Convert to bitmap_head.
22218 (df_live_alloc): Initialize df_live_scratch when initializing
22220 (df_live_transfer_function): Update uses of df_live_scratch.
22221 (df_live_free): Free problem_data; clear df_live_scratch before
22222 releasing the obstack.
22223 (df_md_free): Free problem data.
22225 2010-06-11 Jan Hubicka <jh@suse.cz>
22227 * doc/invoke.texi (Wsuggest-attribute): Document.
22228 (Wmissing-noreturn): Remove.
22229 * ipa-pure-const.c (warn_function_noreturn): New function.
22230 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
22231 warn_missing_noreturn.
22232 * common.opt (Wsuggest-attribute=noreturn): New.
22233 * tree-flow.h (warn_function_noreturn): Declare.
22234 * tree-cfg.c (execute_warn_function_noreturn): Use
22235 warn_function_noreturn.
22236 (gate_warn_function_noreturn): New.
22237 (pass_warn_function_noreturn): Update.
22239 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
22241 * c-typeck.c (handle_warn_cast_qual): Add loc
22242 parameter. Improve warning message.
22243 (build_c_cast): Pass location to handle_warn_cast_qual.
22245 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22247 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
22248 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
22250 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
22252 2010-06-10 Dodji Seketeli <dodji@redhat.com>
22254 Fix bootstap on mips
22255 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
22256 be naming typedefs.
22258 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
22260 * system.h (helper_const_non_const_cast): New inline for
22261 gcc version <= 4.0.
22262 (CONST_CAST2): For gcc version <= 4.0 use
22263 new helper to do const/non-const casting.
22265 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22267 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
22268 * Makefile.in (OBJS-common): Include insn-enums.o.
22269 (insn-enums.o): New rule.
22270 (simple_generated_c): Add insn-enums.c.
22271 (build/genenums.o): New rule.
22272 (genprogmd): Add "enums".
22273 * genconstants.c (print_enum_type): Declare a C string array
22275 * genenums.c: New file.
22276 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
22277 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
22278 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
22280 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22282 * doc/md.texi (define_enum_attr): Document.
22283 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
22284 * read-md.h (lookup_enum_type): Declare.
22285 * read-md.c (lookup_enum_type): New function.
22286 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
22287 * genattrtab.c (attr_desc): Add an enum_name field.
22288 (evaluate_eq_attr): Take the associated attribute as argument.
22289 Get the enum prefix from the enum_name field, if defined.
22290 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
22291 (simplify_test_exp): Pass attr to evaluate_eq_attr.
22292 (add_attr_value): New function, split out from...
22293 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
22294 (write_test_expr): Pass attr to evaluate_eq_attr.
22295 (write_attr_get): Use the enum_name as the enum tag, if defined.
22296 (write_attr_valueq): Use the enum_name as a prefix, if defined.
22297 (find_attr): Initialize enum_name.
22298 (main): Handle DEFINE_ENUM_ATTR.
22299 * gensupport.c (process_rtx): Likewise.
22300 * config/mips/mips.h (mips_tune_attr): Delete.
22301 * config/mips/mips.md (cpu): Use define_attr_enum.
22303 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22305 * doc/md.texi (define_c_enum, define_enum): Document.
22306 * read-md.h (md_constant): Add a parent_enum field.
22307 (enum_value, enum_type): New structures.
22308 (upcase_string, traverse_enum_types): Declare.
22309 * read-md.c (enum_types): New variable.
22310 (upcase_string, add_constant): New functions.
22311 (handle_constants): Don't create the hash table here.
22313 (traverse_md_constants): Don't check for a null md_constants.
22314 (decimal_string, handle_enum, traverse_enum_types): New functions.
22315 (read_md_files): Initialize md_constants and md_enums.
22316 * genconstants.c (print_md_constant): Ignore info argument.
22317 Only print constants that belong to no enum.
22318 (print_enum_type): New function.
22319 (main): Don't pass stdout to print_md_constant. Call print_enum_type
22320 for each defined enum type.
22321 * config/mips/mips.md (processor): New define_enum.
22322 (unspec): New define_c_enum.
22323 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
22324 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
22325 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
22326 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
22327 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
22328 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
22329 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
22330 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
22331 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
22332 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
22333 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
22334 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
22335 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
22336 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
22337 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
22338 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
22339 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
22340 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
22341 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
22342 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
22343 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
22344 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
22345 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22346 (UNSPEC_RDDSP): Move to mips-dsp.md.
22347 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
22348 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
22349 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
22350 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
22351 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
22352 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
22353 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
22354 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
22355 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
22356 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
22357 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
22358 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
22359 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
22360 Moved to mips-dspr2.md.
22361 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
22362 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
22363 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
22364 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
22365 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
22366 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
22367 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22368 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22369 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22370 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22371 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22372 UNSPEC_LOONGSON_PSADBH)
22373 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22374 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22375 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
22376 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22377 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22378 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22379 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
22380 (cpu): Update comment.
22381 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
22382 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
22383 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
22384 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
22385 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
22386 UNSPEC_LOONGSON_PCMPEQ)
22387 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
22388 UNSPEC_LOONGSON_PINSR_0)
22389 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22390 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22391 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22392 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22393 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22394 UNSPEC_LOONGSON_PSADBH)
22395 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22396 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22397 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
22398 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22399 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22400 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22401 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
22402 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
22403 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
22404 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
22405 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
22406 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
22407 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
22408 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
22409 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
22410 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
22411 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
22412 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
22413 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
22414 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
22415 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
22416 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
22417 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
22418 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
22419 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
22420 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
22421 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22422 (UNSPEC_RDDSP): Moved from mips.md.
22423 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
22424 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
22425 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
22426 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
22427 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
22428 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
22429 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
22430 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
22431 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
22432 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
22433 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
22434 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
22435 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
22436 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
22437 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
22438 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
22439 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
22440 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
22441 (UNSPEC_SCC): Moved from mips.md.
22442 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
22443 "processor_type" to "processor".
22444 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
22445 * config/mips/mips.h (processor_type): Delete.
22446 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
22447 "processor_type" to "processor".
22449 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22451 * configure.ac (tm_include_list): Add insn-constants.h.
22452 * configure: Regenerate.
22453 * Makefile.in (GTM_H): Move insn-constants.h here from...
22455 * mkconfig.sh: Remove special handling for insn-constants.h.
22457 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22459 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
22460 (BUILD_MD): ...this new variable.
22461 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
22462 that include the old contents of simple_generated_h and
22463 simple_generated_c.
22464 (simple_generated_h, simple_generated_c): Include them. Add
22466 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
22467 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
22468 Remove these dependencies from the main rule and include
22469 insn-conditions.md in the command line only if it appears
22470 in the dependency list.
22471 (insn-constants.h, s-constants): Delete.
22472 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
22474 (build/genmddeps.o): Likewise.
22475 (genprogrtl): New variable that contains everything from genprogmd
22476 except mddeps and constants.
22477 (genprogmd): Redefine in terms of genprogrtl. Make these programs
22478 depend on $(BUILD_MD)
22479 (genprog): New variable. Make these programs depend on
22481 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
22482 (main): Use read_md_files instead of init_rtx_reader_args.
22483 * genconstants.c: As for genmddeps.c.
22484 * read-md.h (read_skip_construct): Declare.
22485 * read-md.c (read_skip_construct): New function.
22486 (handle_file): Allow a null handle_directive, skipping the
22488 (parse_include): Update the comment accordingly.
22490 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22492 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
22493 * genmddeps.c: Include read-md.h.
22494 (main): Call init_rtx_reader_args instead of init_md_reader_args.
22495 * genattr.c (main): Likewise.
22496 * genattrtab.c (main): Likewise.
22497 * genautomata.c (main): Likewise.
22498 * gencodes.c (main): Likewise.
22499 * genconditions.c (main): Likewise.
22500 * genconfig.c (main): Likewise.
22501 * genconstants.c (main): Likewise.
22502 * genemit.c (main): Likewise.
22503 * genextract.c (main): Likewise.
22504 * genflags.c (main): Likewise.
22505 * genopinit.c (main): Likewise.
22506 * genoutput.c (main): Likewise.
22507 * genpeep.c (main): Likewise.
22508 * genrecog.c (main): Likewise.
22509 * genpreds.c (main): Likewise.
22510 * gensupport.h (in_fname): Move to read-md.h.
22511 (init_md_reader_args_cb): Rename to...
22512 (init_rtx_reader_args_cb): ...this and return a bool.
22513 (init_md_reader_args): Rename to...
22514 (init_rtx_reader_args): ...this and return a bool.
22515 (include_callback): Move to read-md.h.
22516 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
22517 (file_name_list, first_dir_md_include): Move to read-md.c
22518 (first_bracket_include): Delete unused variable.
22519 (last_dir_md_include): Move to read-md.c.
22520 (process_include): Delete, moving code to read-md.c:handle_include.
22521 (process_rtx): Don't handle INCLUDE.
22522 (save_string): Delete.
22523 (rtx_handle_directive): New function.
22524 (init_md_reader_args_cb): Rename to...
22525 (init_rtx_reader_args_cb): ...this and return a boolean success value.
22527 (init_md_reader_args): Rename to...
22528 (init_rtx_reader_args): ...this and return a boolean success value.
22529 * rtl.def (INCLUDE): Delete.
22530 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
22532 * read-rtl.c (read_conditions): Don't gobble ')' here.
22533 (read_mapping): Likewise.
22534 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
22535 Handle top-level non-rtx constructs here rather than in read_rtx_1.
22536 Store the whole queue in *X. Remove call to init_md_reader.
22537 (read_rtx_1): Rename to...
22538 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
22539 Don't handle top-level non-rtx constructs here. Don't handle (nil)
22541 (read_nested_rtx): New function. Handle (nil) here rather than
22543 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
22545 * read-md.h (directive_handler_t): New type.
22546 (in_fname, include_callback): Moved from read-md.h.
22547 (read_constants, init_md_reader): Delete.
22548 (read_md_files): Declare.
22549 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
22550 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
22552 (read_constants): Rename to...
22553 (handle_constants): ...this. Don't gobble ')' here.
22554 (handle_include, handle_file, handle_toplevel_file)
22555 (parse_include): New functions, mostly taken from gensupport.c.
22556 (init_md_reader): Subsume into...
22557 (read_md_files): ...this new function.
22559 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22561 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
22562 (unread_char): Decrement read_md_lineno after putting back '\n'.
22563 * read-md.c (fatal_with_file_and_line): Push back any characters
22564 that we decide not to add to the context.
22565 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
22566 fatal_expected_char in cases where '/' ends a line (for example).
22567 (read_name): Don't increment read_md_lineno here.
22568 (read_escape): Likewise.
22569 (read_quoted_string): Likewise.
22570 (read_braced_string): Likewise.
22572 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22574 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
22575 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
22576 * genconstants.c: Include read-md.h.
22577 * read-rtl.c (md_constants): Move to read-md.c.
22578 (md_name): Move to read-md.h.
22579 (initialize_iterators): Use leading_string_hash instead of def_hash
22580 and leading_string_eq_p instead of def_name_eq_p.
22581 (read_name): Move to read-md.c.
22582 (def_hash, def_name_eq_p): Delete.
22583 (read_constants, traverse_md_constants): Move to read-md.c.
22584 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
22585 * read-md.h: Include hashtab.h.
22586 (md_name): Moved from read-rtl.c.
22587 (md_constant): Moved from read-md.h.
22588 (leading_string_hash, leading_string_eq_p, read_name)
22589 (read_constants, traverse_md_constants): Declare.
22590 * read-md.c (md_constants): Moved from read-rtl.c.
22591 (leading_string_hash, leading_string_eq_p): New functions.
22592 (read_name, read_constants, traverse_md_constants): Moved from
22595 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22597 * read-rtl.c (md_name): New structure.
22598 (read_name): Take an md_name instead of a buffer pointer.
22599 Use the "string" field instead of strcpy when expanding constants.
22600 (read_constants): Remove the tmp_char argument. Update the calls
22601 to read_name, using two local name buffers instead of the tmp_char
22602 argument. Merge the constant-creation code.
22603 (read_conditions): Remove the tmp_char argument. Update the calls
22604 to read_name, using a local name buffer instead of the tmp_char
22606 (read_mapping): Replace tmp_char variable with a local name buffer.
22607 Update the calls to read_name.
22608 (read_rtx_1): Likewise. Update the calls to read_constants and
22611 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22613 * Makefile.in (build/read-md.o): Depend on errors.h.
22614 * read-md.h (error_with_line): Declare.
22615 * read-md.c: Include errors.h.
22616 (message_with_line_1): New function, extracted from...
22617 (message_with_line): ...here.
22618 (error_with_line): New function.
22619 * genattrtab.c: If a call to message_with_line is followed by
22620 "have_error = 1;", replace both statements with a call to
22622 * genoutput.c: Likewise.
22623 * genpreds.c: Likewise.
22624 * genrecog.c: If a call to message_with_line is followed by
22625 "error_count++;", replace both statements with a call to
22627 (errorcount): Delete.
22628 (main): Don't check it.
22629 * gensupport.c: If a call to message_with_line is followed by
22630 "errors = 1;", replace both statements with a call to error_with_line.
22632 (process_define_cond_exec): Check have_error instead of errors.
22633 (init_md_reader_args_cb): Likewise. Don't set errors.
22635 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22637 * read-md.h (read_md_file): Declare.
22638 (read_char, unread_char): New functions.
22639 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22640 (read_quoted_string, read_string): Remove FILE * argument.
22641 * read-md.c (read_md_file): New variable.
22642 (read_md_filename, read_md_lineno): Update comments and remove
22643 unnecessary initialization.
22644 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22645 (read_escape, read_quoted_string, read_braced_string, read_string):
22646 Remove FILE * argument. Update calls accordingly, using read_char
22647 and unread_char instead of getc and ungetc.
22648 * rtl.h (read_rtx): Remove FILE * argument.
22649 * read-rtl.c (iterator_group): Remove FILE * argument from
22651 (iterator_traverse_data): Remove "infile" field.
22652 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
22653 (add_mapping, read_name, read_constants, read_conditions)
22654 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
22655 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
22656 Remove file arguments from all calls, using read_char and unread_char
22657 instead of getc and ungetc.
22658 * gensupport.c (process_include): Preserve read_md_file around
22659 the include. Set read_md_file to the handle of the included file.
22660 Update call to read_rtx.
22661 (init_md_reader_args_cb): Set read_md_file to the handle of the file
22662 and remove local FILE *. Update calls to read_rtx.
22664 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22666 * read-md.h (read_rtx_lineno): Rename to...
22667 (read_md_lineno): ...this.
22668 (read_rtx_filename): Rename to...
22669 (read_md_filename): ...this.
22670 (copy_rtx_ptr_loc): Rename to...
22671 (copy_md_ptr_loc): ...this.
22672 (print_rtx_ptr_loc): Rename to...
22673 (print_md_ptr_loc): ...this.
22674 * read-md.c: Likewise. Update references after renaming.
22675 (string_obstack): Replace RTL with MD in comment.
22676 (set_rtx_ptr_loc): Rename to...
22677 (set_md_ptr_loc): ...this.
22678 (get_rtx_ptr_loc): Rename to...
22679 (get_md_ptr_loc): ...this.
22680 * genconditions.c: Update references after renaming.
22681 * genemit.c: Likewise.
22682 * genoutput.c: Likewise.
22683 * genpreds.c: Likewise.
22684 * gensupport.c: Likewise.
22685 * read-rtl.c: Likewise.
22687 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22689 * Makefile.in (READ_MD_H): New variable.
22690 (BUILD_RTL): Add build/read-md.o.
22691 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
22692 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
22693 (build/genattrtab.o, build/genconditions.o build/genemit.o)
22694 (build/genextract.o, build/genflags.o, build/genoutput.o)
22695 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
22696 (build/read-md.o): New rule.
22697 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
22698 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
22699 * coretypes.h: ...here.
22700 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
22701 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
22702 * genattr.c: Include read-md.h.
22703 * genattrtab.c: Likewise.
22704 * genconditions.c: Likewise.
22705 * genemit.c: Likewise.
22706 * genextract.c: Likewise.
22707 * genflags.c: Likewise.
22708 * genoutput.c: Likewise.
22709 * genpreds.c: Likewise.
22710 * genrecog.c: Likewise.
22711 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
22712 (join_c_conditions, print_c_condition, read_rtx_filename)
22713 (read_rtx_lineno): Move to read-md.h.
22714 * read-rtl.c: Include read-md.h.
22715 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
22716 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
22717 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
22718 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
22719 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
22720 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
22721 (read_braced_string, read_string): Move to read-md.c.
22722 (read_rtx): Move some initialization to init_md_reader and call
22723 init_md_reader here.
22724 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
22726 * gensupport.c: Include read-md.h.
22727 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
22728 * read-md.h, read-md.c: New files.
22730 2010-06-10 Anatoly Sokolov <aesok@post.ru>
22732 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22733 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22734 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
22735 * config/moxie/moxie.c (moxie_function_value): Make static.
22736 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
22737 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22739 2010-06-10 Martin Jambor <mjambor@suse.cz>
22741 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
22742 * dbgcnt.def (tree_sra): New counter.
22743 * tree-sra.c: Include dbgcnt.h.
22744 (gate_intra_sra): Check tree_sra debug counter.
22746 2010-06-10 Martin Jambor <mjambor@suse.cz>
22748 PR tree-optimization/44258
22749 * tree-sra.c (build_access_subtree): Return false iff there is a
22751 (build_access_trees): Likewise.
22752 (analyze_all_variable_accesses): Disqualify candidates if
22753 build_access_trees returns true for them.
22755 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
22758 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
22759 tail-recurse into canonical node. Fast-forward over
22760 non-canonical VALUEs.
22762 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
22765 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
22766 (*addsi_1_zext) <TYPE_LEA>: Likewise.
22767 (add lea splitter): Likewise.
22768 (add_zext lea splitter): Likewise.
22770 2010-06-10 Joseph Myers <joseph@codesourcery.com>
22772 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
22774 2010-06-10 Jan Hubicka <jh@suse.cz>
22776 * df-problems.c (df_live_problem_data): Add live_bitmaps.
22777 (df_live_alloc): Initialize problem data and live_osbtacks.
22778 (df_live_finalize): Remove obstack, problem data; do not
22780 (df_live_top_dump, df_live_bottom_dump): Do not dump old
22781 data when not allocated.
22782 (df_live_verify_solution_start): Do not allocate problem data.
22783 (df_live_verify_solution_end): Check if out is allocated.
22784 (struct df_md_problem_data): New structure.
22785 (df_md_alloc): Allocate problem data.
22786 (df_md_free): Free problem data; do not clear bitmaps.
22788 2010-06-10 Jan Beulich <jbeulich@novell.com>
22791 * configure.ac: Replace $() with ${} when intending to expand
22792 variables rather than invoking commands.
22793 * configure: Re-generate.
22795 2010-06-10 Jan Hubicka <jh@suse.cz>
22797 PR rtl-optimization/44460
22798 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
22799 TYPE_NEEDS_CONSTRUCTING sanity check.
22801 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
22803 * doc/include/fdl.texi: Move to GFDL version 1.3.
22805 * doc/cpp.texi: Move to GFDL version 1.3.
22806 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
22807 * doc/gccint.texi: Move to GFDL version 1.3.
22808 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
22809 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
22810 * doc/invoke.texi: Move to GFDL version 1.3.
22812 2010-06-09 Jan Hubicka <jh@suse.cz>
22814 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
22816 (propagate) ... here; swap the order.
22818 2010-06-09 Jan Hubicka <jh@suse.cz>
22820 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
22821 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
22822 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
22823 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
22825 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22827 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
22828 Do not the gather memory reference in the outer loop if the step
22831 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22833 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
22834 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
22835 8 to 4. Minor change of the related comments.
22837 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22839 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
22840 the scev analysis when the variable is not used outside the loop
22841 in a close phi node: call compute_overall_effect_of_inner_loop.
22843 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22845 * graphite-sese-to-poly.c (single_pred_cond): Renamed
22846 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
22847 (build_sese_conditions_before): Renamed call to single_pred_cond.
22848 (build_sese_conditions_after): Same.
22850 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22852 * graphite-poly.h: Fix comments and indentation.
22853 * graphite-sese-to-poly.c: Same.
22854 (build_sese_conditions_before): Compute stmt and gbb only when needed.
22855 * tree-chrec.c: Fix comments and indentation.
22856 (tree-ssa-loop-niter.c): Same.
22858 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
22860 PR rtl-optimization/42461
22861 * dce.c (deletable_insn_p): Return true for const or pure calls again.
22862 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
22864 2010-06-09 Jan Hubicka <jh@suse.cz>
22866 * bitmap.c (bitmap_and): Walk array forward.
22867 (bitmap_and_compl_into): Likewise.
22868 (bitmap_xor): Likewise.
22869 (bitmap_xor_into): Likewise.
22870 (bitmap_equal_p): Likewise.
22871 (bitmap_intersect_p): Likewise.
22872 (bitmap_intersect_compl_p): Likewise.
22873 (bitmap_ior_and_into): Likewise.
22874 (bitmap_elt_copy): Likewise.
22875 (bitmap_and_compl): Likewise.
22876 (bitmap_elt_ior): Likewise.
22878 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
22880 * opts-common.c (prune_options): Ensure replacement argv array
22881 is correctly terminated by a NULL entry.
22883 2010-06-09 Jan Hubicka <jh@suse.cz>
22885 * cgraph.h (varpool_first_static_initializer,
22886 varpool_next_static_initializer): Make checking only when
22888 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
22889 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
22890 gcc_assert to gcc_checking_assert.
22891 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
22892 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
22893 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
22894 op_iter_init_phiuse, op_iter_init_phidef,
22895 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
22896 gcc_checking_assert.
22897 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
22898 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
22899 partition_is_global, live_on_entry, live_on_exit,
22900 live_merge_and_clear): Likewise.
22901 * system.h (gcc_checking_assert): New macro.
22902 * gimple.h (set_bb_seq): Use gcc_checking_assert.
22904 2010-06-09 Jason Merrill <jason@redhat.com>
22906 * Makefile.in (TAGS): Collect tags info from c-family.
22908 2010-06-09 Jan Hubicka <jh@suse.cz>
22910 * gimple.h (gcc_gimple_checking_assert): New macro.
22911 (gimple_set_def_ops, gimple_set_use_ops,
22912 gimple_set_vuse, gimple_set_vdef,
22913 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
22914 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
22915 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
22916 gimple_asm_output_op, gimple_asm_output_op_ptr,
22917 gimple_asm_set_output_op, gimple_asm_clobber_op,
22918 gimple_asm_set_clobber_op, gimple_asm_label_op,
22919 gimple_asm_set_label_op, gimple_try_set_kind,
22920 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
22921 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
22922 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
22923 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
22924 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
22925 gimple_omp_for_set_initial, gimple_omp_for_final,
22926 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
22927 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
22928 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
22929 conditional with ENABLE_GIMPLE_CHECKING.
22930 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
22932 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
22934 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
22935 (get_computation_cost_at): Use it.
22936 (determine_use_iv_cost_condition): Likewise.
22937 (determine_iv_cost): Likewise.
22939 2010-06-09 Richard Guenther <rguenther@suse.de>
22941 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
22944 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
22946 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
22948 2010-06-09 Martin Jambor <mjambor@suse.cz>
22950 PR tree-optimization/44423
22951 * tree-sra.c (dump_access): Dump also grp_assignment_read.
22952 (analyze_access_subtree): Pass negative allow_replacements to children
22953 if the current type is scalar.
22955 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
22958 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
22959 * doc/plugins.texi (Plugin license check): Update information
22960 on type of plugin_is_GPL_compatible.
22961 * Makefile.in (PLUGINCC): Define as $(COMPILER).
22962 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
22964 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
22966 * config/arm/arm.c (thumb2_reorg): New function.
22967 (arm_reorg): Call it.
22968 * config/arm/thumb2.md (define_peephole2 for flag clobbering
22969 arithmetic operations): Delete.
22971 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
22974 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
22977 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
22980 * gcc-plugin.h: Encapsulate all declarations in extern "C".
22982 2010-06-08 Jan Hubicka <jh@suse.cz>
22984 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
22985 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
22987 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
22989 PR tree-optimization/39874
22990 PR middle-end/28685
22991 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
22993 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
22994 same_bool_result_p): New.
22995 (and_var_with_comparison, and_var_with_comparison_1,
22996 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
22997 (or_var_with_comparison, or_var_with_comparison_1,
22998 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
22999 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
23000 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
23001 of combine_comparisons.
23002 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
23004 2010-06-08 Anatoly Sokolov <aesok@post.ru>
23006 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23007 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23008 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
23009 pdp11_function_value_regno_p): New functions.
23010 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23011 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23013 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
23015 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
23016 Thumb-2 in the MINUS case.
23018 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23020 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
23022 * doc/gty.texi (GTY Options): Document typed GC allocation and
23023 variable_size GTY option.
23025 * ggc-internal.h: New.
23027 * ggc.h: Update copyright year.
23028 (digit_string): Move to stringpool.c.
23029 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
23030 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
23031 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
23032 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
23033 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
23034 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
23035 (ggc_force_collect, ggc_get_size, ggc_statistics)
23036 (ggc_print_common_statistics): Move to ggc-internal.h.
23037 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
23038 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
23039 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
23040 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
23041 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
23042 (ggc_alloc_zone_pass_stat): Remove.
23043 (ggc_internal_alloc_stat, ggc_internal_alloc)
23044 (ggc_internal_cleared_alloc_stat): New.
23045 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
23046 (ggc_internal_vec_alloc_stat)
23047 (ggc_internal_cleared_vec_alloc_stat)
23048 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
23049 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
23050 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
23051 (ggc_cleared_alloc_ptr_array_two_args): New.
23052 (htab_create_ggc, splay_tree_new_ggc): Redefine.
23053 (ggc_splay_alloc): Change the type of the first argument to
23054 enum gt_types_enum.
23055 (ggc_alloc_string): Make macro.
23056 (ggc_alloc_string_stat): New.
23057 (ggc_strdup): Redefine.
23058 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
23059 (ggc_alloc_rtvec_sized): New.
23060 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
23061 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
23062 (ggc_internal_cleared_alloc_zone_stat)
23063 (ggc_internal_zone_alloc_stat)
23064 (ggc_internal_zone_cleared_alloc_stat)
23065 (ggc_internal_zone_vec_alloc_stat)
23066 (ggc_alloc_zone_rtx_def_stat)
23067 (ggc_alloc_zone_tree_node_stat)
23068 (ggc_alloc_zone_cleared_tree_node_stat)
23069 (ggc_alloc_cleared_gimple_statement_d_stat): New.
23071 * ggc-common.c: Include ggc-internal.h.
23072 (ggc_internal_cleared_alloc_stat): Rename from
23073 ggc_alloc_cleared_stat.
23074 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
23075 (ggc_calloc): Remove.
23076 (ggc_cleared_alloc_htab_ignore_args): New.
23077 (ggc_cleared_alloc_ptr_array_two_args): New.
23078 (ggc_splay_alloc): Add obj_type parameter.
23079 (init_ggc_heuristics): Formatting fixes.
23081 * ggc-none.c: Update copyright year.
23082 (ggc_alloc_stat): Rename to ggc_alloc_stat.
23083 (ggc_alloc_cleared_stat): Rename to
23084 ggc_internal_cleared_alloc_stat.
23085 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23087 * ggc-page.c: Update copyright year. Include ggc-internal.h.
23088 Remove references to ggc_alloc in comments.
23089 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
23090 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
23091 (new_ggc_zone, destroy_ggc_zone): Remove.
23092 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23094 * ggc-zone.c: Include ggc-internal.h. Remove references to
23095 ggc_alloc in comments.
23096 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
23097 (ggc_internal_alloc_zone_pass_stat): New.
23098 (ggc_internal_cleared_alloc_zone_stat): New.
23099 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
23100 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
23101 (new_ggc_zone, destroy_ggc_zone): Remove.
23103 * stringpool.c: Update copyright year. Include ggc-internal.h
23104 (digit_vector): Make static.
23105 (digit_string): Moved from ggc.h.
23106 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
23107 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
23109 * Makefile.in (GGC_INTERNAL_H): New.
23110 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
23111 $(GGC_INTERNAL_H) to dependencies.
23113 * gentype.c: Update copyright year.
23114 (walk_type): Accept variable_size GTY option.
23115 (USED_BY_TYPED_GC_P): New macro.
23116 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
23117 whitespace at the end of strings.
23118 (get_type_specifier, variable_size_p): New functions.
23119 (alloc_quantity, alloc_zone): New enums.
23120 (write_typed_alloc_def): New function.
23121 (write_typed_struct_alloc_def): Likewise.
23122 (write_typed_typed_typedef_alloc_def): Likewise.
23123 (write_typed_alloc_defns): Likewise.
23124 (output_typename, write_splay_tree_allocator_def): Likewise.
23125 (write_splay_tree_allocators): Likewise.
23126 (main): Call write_typed_alloc_defns and
23127 write_splay_tree_allocators.
23129 * lto-streamer.h (lto_file_decl_data_ptr): New.
23131 * passes.c (order): Define using cgraph_node_ptr.
23133 * strinpool.c (struct string_pool_data): Declare nested_ptr using
23136 * gimple.h (union gimple_statement_d): Likewise.
23138 * rtl.h (struct rtx_def): Likewise.
23139 (struct rtvec_def): Likewise.
23141 * tree.h (union tree_node): Likewise.
23143 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
23145 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
23147 * tree-scalar-evolution.c (scev_initialize): Likewise.
23149 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
23151 * dwarf2asm.c (dw2_force_const_mem): Likewise.
23153 * omp-low.c (lower_omp_critical): Likewise.
23155 * bitmap.h (struct bitmap_head_def): Update comment to not
23156 reference ggc_alloc.
23158 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
23160 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
23162 * ipa-prop.c (duplicate_ggc_array): Rename to
23163 duplicate_ipa_jump_func_array. Use typed GC allocation.
23164 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
23166 * gimple.c (gimple_alloc_stat): Use
23167 ggc_alloc_cleared_gimple_statement_d_stat.
23169 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
23171 * tree.c (make_node_stat): Use
23172 ggc_alloc_zone_cleared_tree_node_stat.
23173 (make_tree_vec_stat): Likewise.
23174 (build_vl_exp_stat): Likewise.
23175 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
23176 (make_tree_binfo_stat): Likewise.
23177 (tree_cons_stat): Likewise.
23179 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
23180 (shallow_copy_rtx_stat): Likewise.
23181 (make_node_stat): Likewise.
23183 * lto-symtab.c: Fix comment.
23185 * tree-cfg.c (create_bb): Update comment to not reference
23187 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
23189 * varpool.c (varpool_node): Use typed GC allocation.
23190 (varpool_extra_name_alias): Likewise.
23192 * varasm.c (emutls_decl): Likewise.
23193 (get_unnamed_section): Likewise.
23194 (get_noswitch_section): Likewise.
23195 (get_section): Likewise.
23196 (get_block_for_section): Likewise.
23197 (build_constant_desc): Likewise.
23198 (create_constant_pool): Likewise.
23199 (force_const_mem): Likewise.
23201 * tree.c (build_vl_exp_stat): Likewise.
23202 (build_real): Likewise.
23203 (build_string): Likewise.
23204 (decl_debug_expr_insert): Likewise.
23205 (decl_value_expr_insert): Likewise.
23206 (type_hash_add): Likewise.
23207 (build_omp_clause): Likewise.
23209 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
23211 * tree-ssa.c (init_tree_ssa): Likewise.
23213 * tree-ssa-structalias.c (heapvar_insert): Likewise.
23215 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23217 * tree-ssa-loop-niter.c (record_estimate): Likewise.
23219 * tree-ssa-alias.c (get_ptr_info): Likewise.
23221 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23223 * tree-phinodes.c (allocate_phi_node): Likewise.
23225 * tree-iterator.c (tsi_link_before): Likewise.
23226 (tsi_link_after): Likewise.
23228 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23230 * tree-dfa.c (create_var_ann): Likewise.
23232 * tree-cfg.c (create_bb): Likewise.
23234 * toplev.c (alloc_for_identifier_to_locale): Likewise.
23235 (general_init): Likewise.
23237 * stringpool.c (stringpool_ggc_alloc): Likewise.
23238 (gt_pch_save_stringpool): Likewise.
23240 * sese.c (if_region_set_false_region): Likewise.
23242 * passes.c (do_per_function_toporder): Likewise.
23244 * optabs.c (set_optab_libfunc): Likewise.
23245 (set_conv_libfunc): Likewise.
23247 * lto-symtab.c (lto_symtab_register_decl): Likewise.
23249 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23250 (input_eh_region): Likewise.
23251 (input_eh_lp): Likewise.
23252 (make_new_block): Likewise.
23253 (unpack_ts_real_cst_value_fields): Likewise.
23255 * lto-section-in.c (lto_new_in_decl_state): Likewise.
23257 * lto-cgraph.c (input_node_opt_summary): Likewise.
23259 * loop-init.c (loop_optimizer_init): Likewise.
23261 * lambda.h (lambda_vector_new): Likewise.
23263 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
23265 * ira.c (update_equiv_regs): Likewise.
23267 * ipa.c (cgraph_node_set_new): Likewise.
23268 (cgraph_node_set_add): Likewise.
23269 (varpool_node_set_new): Likewise.
23270 (varpool_node_set_add): Likewise.
23272 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
23273 (duplicate_ipa_jump_func_array): Likewise.
23274 (ipa_read_node_info): Likewise.
23276 * ipa-cp.c (ipcp_create_replace_map): Likewise.
23278 * integrate.c (get_hard_reg_initial_val): Likewise.
23280 * gimple.c (gimple_alloc_stat): Likewise.
23281 (gimple_build_omp_for): Likewise.
23282 (gimple_seq_alloc): Likewise.
23283 (gimple_copy): Likewise.
23285 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
23286 (gsi_insert_after_without_update): Likewise.
23288 * function.c (add_frame_space): Likewise.
23289 (insert_temp_slot_address): Likewise.
23290 (assign_stack_temp_for_type): Likewise.
23291 (allocate_struct_function): Likewise.
23292 (types_used_by_var_decl_insert): Likewise.
23294 * except.c (init_eh_for_function): Likewise.
23295 (gen_eh_region): Likewise.
23296 (gen_eh_region_catch): Likewise.
23297 (gen_eh_landing_pad): Likewise.
23298 (add_call_site): Likewise.
23300 * emit-rtl.c (get_mem_attrs): Likewise.
23301 (get_reg_attrs): Likewise.
23302 (start_sequence): Likewise.
23303 (init_emit): Likewise.
23305 * dwarf2out.c (new_cfi): Likewise.
23306 (queue_reg_save): Likewise.
23307 (dwarf2out_frame_init): Likewise.
23308 (new_loc_descr): Likewise.
23309 (find_AT_string): Likewise.
23310 (new_die): Likewise.
23311 (add_var_loc_to_decl): Likewise.
23312 (clone_die): Likewise.
23313 (clone_as_declaration): Likewise.
23314 (break_out_comdat_types): Likewise.
23315 (new_loc_list): Likewise.
23316 (loc_descriptor): Likewise.
23317 (add_loc_descr_to_each): Likewise.
23318 (add_const_value_attribute): Likewise.
23319 (tree_add_const_value_attribute): Likewise.
23320 (add_comp_dir_attribute): Likewise.
23321 (add_name_and_src_coords_attributes): Likewise.
23322 (lookup_filename): Likewise.
23323 (store_vcall_insn): Likewise.
23324 (dwarf2out_init): Likewise.
23326 * dbxout.c (dbxout_init): Likewise.
23328 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23330 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23332 * config/score/score7.c (score7_output_external): Likewise.
23334 * config/score/score3.c (score3_output_external): Likewise.
23336 * config/s390/s390.c (s390_init_machine_status): Likewise.
23338 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23339 (rs6000_init_machine_status): Likewise.
23340 (output_toc): Likewise.
23342 * config/pa/pa.c (pa_init_machine_status): Likewise.
23343 (get_deferred_plabel): Likewise.
23345 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23347 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23349 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23351 * config/mep/mep.c (mep_init_machine_status): Likewise.
23352 (mep_note_pragma_flag): Likewise.
23354 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23356 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23358 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23360 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23361 (i386_pe_maybe_record_exported_symbol): Likewise.
23363 * config/i386/i386.c (get_dllimport_decl): Likewise.
23364 (ix86_init_machine_status): Likewise.
23365 (assign_386_stack_local): Likewise.
23367 * config/frv/frv.c (frv_init_machine_status): Likewise.
23369 * config/darwin.c (machopic_indirection_name): Likewise.
23371 * config/cris/cris.c (cris_init_machine_status): Likewise.
23373 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23375 * config/avr/avr.c (avr_init_machine_status): Likewise.
23377 * config/arm/arm.c (arm_init_machine_status): Likewise.
23379 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23380 (alpha_need_linkage): Likewise.
23381 (alpha_use_linkage): Likewise.
23383 * cgraph.c (cgraph_allocate_node): Likewise.
23384 (cgraph_create_edge_1): Likewise.
23385 (cgraph_create_indirect_edge): Likewise.
23386 (cgraph_add_asm_node): Likewise.
23388 * cfgrtl.c (init_rtl_bb_info): Likewise.
23390 * cfgloop.c (alloc_loop): Likewise.
23391 (rescan_loop_exit): Likewise.
23393 * cfg.c (init_flow): Likewise.
23394 (alloc_block): Likewise.
23395 (unchecked_make_edge): Likewise.
23397 * c-parser.c (c_parse_init): Likewise.
23398 (c_parse_file): Likewise.
23400 * c-decl.c (bind): Likewise.
23401 (record_inline_static): Likewise.
23402 (push_scope): Likewise.
23403 (make_label): Likewise.
23404 (lookup_label_for_goto): Likewise.
23405 (finish_struct): Likewise.
23406 (finish_enum): Likewise.
23407 (c_push_function_context): Likewise.
23409 * bitmap.c (bitmap_element_allocate): Likewise.
23410 (bitmap_gc_alloc_stat): Likewise.
23412 * alias.c (record_alias_subset): Likewise.
23413 (init_alias_analysis): Likewise.
23415 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
23417 * fold-const.c (fold_comparison): Remove redundant parenthesis.
23418 * tree-inline.c (expand_call_inline): Pass translated return value of
23419 cgraph_inline_failed_string to diagnostic function.
23421 2010-06-08 Andrew Pinski <pinskia@gmail.com>
23422 Shujing Zhao <pearly.zhao@oracle.com>
23425 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
23426 implicit bad conversions is initialization.
23427 (error_init): Use gmsgid instead of msgid for argument name and change
23428 the call for error.
23429 (pedwarn_init): Use gmsgid instead of msgid for argument name and
23430 change the call for pedwarn.
23431 (warning_init): Use gmsgid instead of msgid for argument name and
23432 change the call for warning.
23434 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
23436 * config/mips/mips-protos.h (mips_print_operand): Delete.
23437 (mips_print_operand_address): Delete.
23438 * config/mips/mips.h (mips_print_operand_punct): Delete.
23439 (PRINT_OPERAND): Delete.
23440 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23441 (PRINT_OPERAND_ADDRESS): Delete.
23442 * config/mips/mips.c (mips_print_operand_punct): Make static.
23443 (mips_print_operand_address): Make static.
23444 (mips_print_operand): Make static. Call
23445 mips_print_operand_punct_valid_p.
23446 (mips_print_operand_punct_valid_p): New function.
23447 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23448 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23450 2010-06-07 Jan Hubicka <jh@suse.cz>
23452 PR middle-end/44454
23453 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
23456 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
23458 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
23461 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23463 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23464 attributes): Document gas.
23466 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
23468 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
23469 <TYPE_LEA>: Split instruction.
23470 <default>: Remove alternative 2 handling.
23471 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
23472 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
23473 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
23475 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
23476 (ashift_zext lea splitter): Use DImode for multiplication.
23478 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
23479 to generate addition.
23481 2010-06-07 Joseph Myers <joseph@codesourcery.com>
23483 * common.opt (fira-verbose): Use Var.
23484 (fpcc-struct-return): Use Init instead of VarExists.
23485 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
23487 * flags.h (flag_signed_char, flag_short_enums,
23488 flag_pcc_struct_return, flag_ira_verbose,
23489 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
23490 * toplev.c (flag_detailed_statistics, flag_signed_char,
23491 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
23492 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
23493 * toplev.h (flag_crossjumping, flag_if_conversion,
23494 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
23495 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
23496 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
23497 flag_cprop_registers, time_report, flag_ira_loop_pressure,
23498 flag_ira_coalesce, flag_ira_move_spills,
23499 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
23501 2010-06-07 Jan Hubicka <jh@suse.cz>
23503 * df-core.c (df_analyze_problem): Do verification after allocation.
23505 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
23506 (df_lr_alloc): Initialize problem data; move bitmaps to
23507 lr_bitmaps obstack.
23508 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
23509 (df_lr_verify_solution_start): Do not initialize problem data;
23510 allocate bitmaps in lr_bitmaps.
23511 (df_lr_verify_solution_end): Do not free problem data.
23513 2010-06-07 Jan Hubicka <jh@suse.cz>
23515 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
23516 if caller is noreturn.
23517 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
23518 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
23519 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
23520 * ipa-pure-const.c (check_decl): Add IPA parameter.
23521 (state_from_flags): New function.
23522 (better_state, worse_state): New functions.
23523 (check_call): When in IPA mode, do not care about callees.
23524 (check_load, check_store): Update.
23525 (check_ipa_load, check_ipa_store): New.
23526 (check_stmt): When in IPA mode, use IPA checkers.
23527 (analyze_function): Use state_from_flags.
23528 (propagate): Check indirect edges and references.
23530 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
23532 PR rtl-optimization/44404
23533 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
23534 of count_occurrences to see if it's safe to modify mem_insn.
23536 2010-06-07 Richard Guenther <rguenther@suse.de>
23538 * gimplify.c (gimplify_cleanup_point_expr): For empty body
23539 and EH-only cleanup drop the cleanup instead of inserting it
23542 2010-06-07 Ira Rosen <irar@il.ibm.com>
23544 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
23546 * targhooks.c (default_builtin_vectorization_cost): New function.
23547 * targhooks.h (default_builtin_vectorization_cost): Declare.
23548 * target.h (enum vect_cost_for_stmt): Define.
23549 (builtin_vectorization_cost): Change argument and comment.
23550 * tree-vectorizer.h: Remove cost model macros.
23551 * tree-vect-loop.c: Include target.h.
23552 (vect_get_cost): New function.
23553 (vect_estimate_min_profitable_iters): Replace cost model macros with
23554 calls to vect_get_cost.
23555 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
23556 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
23557 default implementation.
23558 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
23559 calls to target hook builtin_vectorization_cost.
23560 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
23562 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
23563 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
23564 implementation to return costs.
23565 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
23566 * config/spu/spu.h: Remove vectorizer cost model macros.
23567 * config/i386/i386.h: Likewise.
23568 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
23569 a call to target hook builtin_vectorization_cost.
23571 2010-06-06 Sriraman Tallam <tmsriram@google.com>
23574 * config/i386/i386.c (override_options): Turn zee pass on for level 2
23575 and above and defer till target is known.
23576 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
23577 turn off otherwise.
23579 2010-05-25 Jan Hubicka <jh@suse.cz>
23581 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
23582 (df_compact_blocks): Likewise.
23583 * df.h (struct df): Turn hardware_regs_used,
23584 regular_block_artificial_uses, eh_block_artificial_uses,
23585 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
23587 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
23588 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
23589 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
23590 df_scan_blocks, df_insn_delete, df_insn_rescan,
23591 df_insn_rescan_debug_internal, df_insn_rescan_all,
23592 df_process_deferred_rescans, df_process_deferred_rescans,
23593 df_notes_rescan, df_get_call_refs, df_get_call_refs,
23594 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
23595 df_record_entry_block_defs, df_record_exit_block_uses,
23596 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
23597 df_scan_verify): Update.
23599 2010-05-25 Dodji Seketeli <dodji@redhat.com>
23602 * c-common.c (is_typedef_decl): Move this definition ...
23603 * tree.c (is_typedef_decl): ... here.
23604 (typdef_variant_p): Move definition here from cp/tree.c.
23605 * c-common.h (is_typedef_decl): Move this declaration ...
23606 * tree.h (is_typedef_decl): ... here.
23607 (typedef_variant_p): Move declaration here from cp/cp-tree.h
23608 * dwarf2out.c (is_naming_typedef_decl): New function.
23609 (gen_tagged_type_die): Split out of ...
23610 (gen_type_die_with_usage): ... this function. When an anonymous
23611 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23612 is emitted for the typedef.
23613 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23614 anonymous tagged types.
23616 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
23619 * c-decl.c (grokdeclarator): Delete warning.
23621 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
23623 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
23624 newly built CALL_EXPR.
23625 * tree-profile.c (tree_profiling): Don't profile functions produced
23626 for built-in stuff.
23628 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
23632 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
23633 endianness-independent.
23635 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
23637 * c-common.c: Move to c-family/.
23638 * c-common.def: Likewise.
23639 * c-common.h: Likewise.
23640 * c-cppbuiltin.c: Likewise.
23641 * c-dump.c: Likewise.
23642 * c-format.c: Likewise.
23643 * c-format.h : Likewise.
23644 * c-gimplify.c: Likewise.
23645 * c-lex.c: Likewise.
23646 * c-omp.c: Likewise.
23648 * c-opts.c: Likewise.
23649 * c-pch.c: Likewise.
23650 * c-ppoutput.c: Likewise.
23651 * c-pragma.c: Likewise.
23652 * c-pragma.h: Likewise.
23653 * c-pretty-print.c: Likewise.
23654 * c-pretty-print.h: Likewise.
23655 * c-semantics.c: Likewise.
23656 * stub-objc.c: Likewise.
23658 * gengtype.c (get_file_langdir): Special-case files in c-family/.
23659 (get_output_file_with_visibility): Fix name for c-common.h.
23660 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
23662 * c-tree.h: Update include path for moved files.
23663 * c-lang.c: Likewise.
23664 * c-lang.h: Likewise.
23665 * c-parser.c: Likewise.
23666 * c-convert.c: Likewise.
23667 * c-decl.c: Likewise.
23668 * c-objc-common.c: Likewise.
23669 * configure.ac: Make sure c-family/ exists in the build directory.
23670 * configure: Regenerate.
23671 * Makefile.in: Update paths for moved files. Regroup files per
23672 location and update dependencies. Move generated_files down after
23675 * config/spu/spu-c.c: Update paths for moved files.
23676 * config/mep/mep-pragma.c: Likewise.
23677 * config/darwin-c.c: Likewise.
23678 * config/i386/msformat-c.c: Likewise.
23679 * config/i386/i386-c.c: Likewise.
23680 * config/avr/avr-c.c: Likewise.
23681 * config/sol2-c.c: Likewise.
23682 * config/ia64/ia64-c.c: Likewise.
23683 * config/rs6000/rs6000-c.c: Likewise.
23684 * config/arm/arm.c: Likewise.
23685 * config/arm/arm-c.c: Likewise.
23686 * config/h8300/h8300.c: Likewise.
23687 * config/v850/v850-c.c: Likewise.
23689 * config/t-darwin: Fix dependencies for moved files.
23690 * config/t-sol2: Fix dependencies for moved files.
23691 * config/mep/t-mep: Fix dependencies for moved files.
23692 * config/ia64/t-ia64: Fix dependencies for moved files.
23693 * config/rs6000/t-rs6000: Fix dependencies for moved files.
23694 * config/v850/t-v850: Fix dependencies for moved files.
23695 * config/v850/t-v850e: Fix dependencies for moved files.
23697 * config/m32c/m32c-pragma.c
23699 * po/exgettext: Look in c-family/ also.
23701 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
23703 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
23704 (mark_control_dependent_edges_necessary): Call it instead of marking
23705 the last statement manually.
23706 (propagate_necessity): Likewise.
23708 2010-06-05 Jan Hubicka <jh@suse.cz>
23710 * basic-block.h (compute_dominance_frontiers): Updated.
23711 (compute_idf): Likewise.
23713 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
23714 for dominance frontiers.
23715 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
23716 (insert_updated_phi_nodes_for): Likewise.
23717 (update_ssa): Likewise.
23718 * cfganal.c (compute_dominance_frontiers_1): Likewise.
23719 (compute_dominance_frontiers): Likewise.
23720 (compute_idf): Likewise.
23721 * df-problems.c (df_md_local_compute): Likewise.
23723 2010-06-05 Anatoly Sokolov <aesok@post.ru>
23725 * target.h (struct gcc_target): Add memory_move_cost field.
23726 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
23727 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
23728 * targhooks.c (default_memory_move_cost): New function.
23729 * targhooks.h (default_memory_move_cost): Declare function.
23730 * reload.h (memory_move_cost): Declare.
23731 (memory_move_secondary_cost): Change type of 'in' argument to bool.
23732 * reginfo.c (memory_move_cost): New function.
23733 (memory_move_secondary_cost): Change type of 'in' argument to bool.
23734 * ira.h (ira_memory_move_cost): Update comment.
23735 * ira.c (ira_memory_move_cost): Update comment.
23736 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
23737 with memory_move_cost.
23738 * postreload.c (reload_cse_simplify_set): (Ditto.).
23739 * reload1.c (choose_reload_regs): (Ditto.).
23740 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
23741 (MEMORY_MOVE_COST): Revise documentation.
23743 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23744 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23745 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
23746 type of 'in' argument to bool.
23747 (TARGET_MEMORY_MOVE_COST): Define.
23749 2010-06-05 Jan Hubicka <jh@suse.cz>
23751 * ipa-pure-const.c (propagate): Fix typo in handling of functions
23752 that cannot return. Be more careful when merging the results with
23753 previously known ones.
23755 2010-06-05 Matthias Klose <doko@ubuntu.com>
23757 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
23758 function to add the -iplugindir option.
23759 (find_plugindir_spec_function): Add new declaration and function.
23760 (static_spec_func): Use it for "find-plugindir".
23762 2010-06-05 Jakub Jelinek <jakub@redhat.com>
23765 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
23766 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
23767 statement expression.
23769 2010-06-05 Jan Hubicka <jh@suse.cz>
23771 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
23772 (df_rd_problem_data): Convert sparse_invalidated_by_call,
23773 dense_invalidated_by_call to bitmap head.
23774 (df_rd_alloc, df_rd_bb_local_compute_process_def,
23775 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
23776 df_rd_start_dump, df_lr_verify_transfer_functions,
23777 df_live_verify_transfer_functions, df_chain_create_bb,
23778 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
23779 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
23780 df_simulate_one_insn_forwards, df_md_alloc,
23781 df_md_bb_local_compute_process_def,
23782 df_md_bb_local_compute_process_def, df_md_local_compute,
23783 df_md_transfer_function df_md_free): Update.
23785 2010-06-05 Joseph Myers <joseph@codesourcery.com>
23788 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
23789 target type for ADDR_EXPR; require no changes to qualifiers except
23790 for function types.
23791 * c-tree.h (c_build_type_variant): Remove.
23793 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23795 * genautomata.c (get_excl_set): Do work per element, not per char.
23796 (check_presence_pattern_sets): Similar.
23797 (check_absence_pattern_sets): Similar.
23799 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23801 * genautomata.c (curr_state_pass_num): Delete.
23802 (min_issue_delay_pass_states): Delete.
23803 (min_issue_delay): Delete.
23804 (initiate_min_issue_delay_pass_states): Delete.
23805 (output_min_issue_delay_table): Compute min_issue_delay_vect
23806 using a breadth-first search variant.
23807 (output_tables): Don't call initiate_min_issue_delay_pass_states.
23809 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
23812 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
23813 (df_byte_lr_bb_local_compute): Likewise.
23815 2010-06-03 Jason Merrill <jason@redhat.com>
23817 Implement noexcept operator (5.3.7)
23818 * c-common.c (c_common_reswords): Add noexcept.
23819 * c-common.h (enum rid): Add RID_NOEXCEPT.
23821 2010-06-04 Joseph Myers <joseph@codesourcery.com>
23823 * config/darwin-driver.c (darwin_default_min_version): Use
23824 GCC-specific formats in diagnostics.
23825 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
23827 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
23828 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
23829 eval_spec_function, handle_braces, process_brace_body, main,
23830 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
23831 getenv_spec_function, compare_version_strings,
23832 version_compare_spec_function): Use GCC-specific formats in
23835 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23837 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
23838 that operand 0 and operand 1 are equal.
23839 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
23840 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
23841 and operand 1 are equal.
23842 <default>: Ditto. Remove ??? comment.
23843 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
23844 and operand 1 are equal.
23845 <default>: Ditto. Remove ??? comment.
23846 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
23848 (*add<mode>_4) <default>: Ditto.
23849 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
23851 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
23853 * config/i386/i386-protos.h (ix86_print_operand): Declare.
23854 * config/i386/i386.c (ix86_print_operand): Make non-static.
23855 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
23856 * output.h (output_operand): Declare.
23857 * final.c (output_operand): Make non-static.
23859 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
23861 PR rtl-optimization/44013
23862 * sched-deps.c (add_dependence_list_and_free): Don't free lists
23863 when processing debug insns.
23866 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
23867 recursing. Check that recursion is bounded. Rename inner var
23868 to avoid hiding incoming argument.
23870 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23872 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
23873 operands[2] == 255.
23877 (*addqi_ext_1_rex64): Ditto.
23878 (*addqi_ext_1): Ditto.
23880 (*addqi_4): Check for incdec_operand in QImode.
23882 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
23883 using SWI mode iterator.
23884 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
23885 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
23887 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
23888 using SWI mode iterator.
23890 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
23893 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
23894 * c-format.c (gcc_diag_flag_specs): Add hash.
23895 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
23896 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
23897 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
23898 pp_c_cv_qualifiers. Handle qualifiers spelling here.
23899 (pp_c_type_qualifier_list): Call the function above.
23900 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
23901 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
23902 (WARN_FOR_QUALIFIERS): New macro.
23903 (convert_for_assignment): Use it.
23905 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
23907 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
23909 2010-06-04 Jan Hubicka <jh@suse.cz>
23911 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
23912 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
23913 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
23914 DF_BYTE_LR_OUT): Update for embedded bitmaps.
23915 * fwprop.c (single_def_use_enter_block): Likewise.
23916 * ddg.c (create_ddg_dep_from_intra_loop_link,
23917 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
23918 * loop-iv.c (latch_dominating_def): Likewise.
23919 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
23920 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
23921 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
23922 df_rd_transfer_function, df_rd_top_dump,
23923 df_rd_bottom_dump): Update.
23924 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
23925 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
23926 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
23927 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
23928 df_lr_verify_solution_start, df_lr_verify_solution_end,
23929 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
23930 df_live_free_bb_info, df_live_alloc, df_live_reset,
23931 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
23932 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
23933 df_live_verify_solution_start, df_live_verify_solution_end,
23934 df_live_verify_transfer_functions, df_chain_create_bb,
23935 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
23936 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23937 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23938 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
23939 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
23940 df_byte_lr_transfer_function, df_byte_lr_top_dump,
23941 df_byte_lr_bottom_dump, df_create_unused_note,
23942 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
23943 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
23944 df_md_transfer_function, df_md_init, df_md_confluence_0,
23945 df_md_confluence_n,
23946 df_md_top_dump, df_md_bottom_dump): Update.
23947 (struct df_lr_problem_data): Embedd bitmap headers.
23949 2010-06-04 Jan Hubicka <jh@suse.cz>
23951 * dce.c (dce_process_block): Do not re-scan already marked
23954 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
23956 PR rtl-optimization/39871
23957 PR rtl-optimization/40615
23958 PR rtl-optimization/42500
23959 PR rtl-optimization/42502
23960 * ira.c (init_reg_equiv_memory_loc: New function.
23961 (ira): Call it twice.
23962 * reload.h (calculate_elim_costs_all_insns): Declare.
23963 * ira-costs.c: Include "reload.h".
23964 (regno_equiv_gains): New static variable.
23965 (init_costs): Allocate it.
23966 (finish_costs): Free it.
23967 (ira_costs): Call calculate_elim_costs_all_insns.
23968 (find_costs_and_classes): Take estimated elimination costs
23970 (ira_adjust_equiv_reg_cost): New function.
23971 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
23972 * reload1.c (init_eliminable_invariants, free_reg_equiv,
23973 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
23974 (elim_bb): New static variable.
23975 (reload): Move code out of here into init_eliminable_invariants and
23976 free_reg_equiv. Call them.
23977 (calculate_elim_costs_all_insns): New function.
23978 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
23979 all callers changed. If FOR_COSTS is true, don't call alter_reg,
23980 but call note_reg_elim_costly if we turned a valid memory address
23981 into an invalid one.
23982 * Makefile.in (ira-costs.o): Depend on reload.h.
23984 2010-06-04 Julian Brown <julian@codesourcery.com>
23986 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
23989 2010-06-04 Richard Guenther <rguenther@suse.de>
23992 * cgraph.h (struct varpool_node): Add lto_file_data field.
23993 * lto-cgraph.c (input_varpool_node): Initialize it.
23995 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23997 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
23998 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
23999 predicate in "type" attribute calculation.
24000 (*addsi_1_zext): Ditto.
24001 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
24002 (*addsi_2_zext): Ditto.
24003 (*add<mode>_3): Ditto.
24004 (*addsi_3_zext): Ditto.
24005 (*add<mode>_5): Ditto.
24007 2010-06-03 Jan Hubicka <jh@suse.cz>
24009 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
24011 * cfganal.c (compute_dominance_frontiers_1): Likewise.
24013 2010-06-03 Jan Hubicka <jh@suse.cz>
24015 * df-problems.c (df_create_unused_note, df_note_bb_compute):
24016 micro-optimize the checks when to add new note.
24018 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
24020 * final.c (output_asm_insn): Call
24021 targetm.asm_out.print_operand_punct_valid_p. Update comments.
24022 (output_operand): Call targetm.asm_out.print_operand. Update comments.
24023 (output_address): Call targetm.asm_out.print_operand_address.
24025 * target.h (struct gcc_target): Add print_operand,
24026 print_operand_address, and print_operand_punct_valid_p fields.
24027 * targhooks.h (default_print_operand): Declare.
24028 (default_print_operand_address): Declare.
24029 (default_print_operand_punct_valid_p): Declare.
24030 * targhooks.c (default_print_operand): Define.
24031 (default_print_operand_address): Define.
24032 (default_print_operand_punct_valid_p): Define.
24033 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
24034 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
24035 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
24036 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
24037 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
24038 * vmsdbgout.c (addr_const_to_string): Update comment.
24039 * config/i386/i386.c (print_operand): Rename to...
24040 (ix86_print_operand): ...this. Make static.
24041 (print_operand_address): Rename to...
24042 (ix86_print_operand_address): ...this. Make static. Call
24043 ix86_print_operand instead of PRINT_OPERAND.
24044 (ix86_print_operand_punct_valid_p): New function.
24045 (TARGET_PRINT_OPERAND): Define.
24046 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24047 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24048 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
24049 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24050 (PRINT_OPERAND): Delete.
24051 (PRINT_OPERAND_ADDRESS): Delete.
24052 * config/i386/i386-protos.h (print_operand): Delete prototype.
24053 (print_operand_address): Delete prototype.
24055 2010-06-03 Richard Guenther <rguenther@suse.de>
24057 PR tree-optimization/44403
24058 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24059 Preserve pointer qualifiers.
24060 (vect_create_data_ref_ptr): Likewise.
24062 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
24065 * defaults.h (MAX_FIXED_MODE_SIZE): New.
24067 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
24069 2010-06-03 Jakub Jelinek <jakub@redhat.com>
24072 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
24073 return false if merging the bbs would lead to goto_locus
24074 location being lost from the IL.
24076 2010-06-03 Jan Hubicka <jh@suse.cz>
24077 Jakub Jelinek <jakub@redhat.com>
24079 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
24080 set->regs[i] is NULL or has just one entry.
24082 2010-06-03 Jan Hubicka <jh@suse.cz>
24084 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
24085 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
24087 2010-06-03 Paul Brook <paul@codesourcery.com>
24089 * config/arm/arm.c (FL_TUNE): Define.
24090 (arm_default_cpu, arm_cpu_select): Remove.
24091 (all_cores): Populate core field.
24092 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
24093 (arm_find_cpu): New function.
24094 (arm_handle_option): Lookup cpu/architecture names.
24095 (arm_override_options): Cleanup mcpu/march/mtune handling.
24096 (arm_file_start): Ditto.
24098 2010-06-03 Alan Modra <amodra@gmail.com>
24101 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
24102 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
24103 rtx to gen_load_toc_v4_PIC_1b. Tidy.
24104 (rs6000_emit_load_toc_table): Likewise.
24106 2010-06-02 Jan Hubicka <jh@suse.cz>
24108 * passes.c (init_optimization_passes): Put ipa reference
24109 after ipa pure-const.
24111 2010-06-02 Jan Hubicka <jh@suse.cz>
24113 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
24114 calls_read_all and calls_write_all.
24115 (get_reference_optimization_summary): Fix formatting.
24116 (is_proper_for_analysis): Check that decl is not readonly.
24117 (propagate_bits): Check CONST/PURE/noreturn flags.
24118 (ipa_init): Move all_module_statics to optimization_summary_obstack.
24119 (analyze_function): Ignore indirect edges.
24120 (copy_global_bitmap): For all module statics, do nothing.
24121 (generate_summary): Do not print calls_read_all/calls_write_all.
24122 (read_write_all_from_decl): Take node as argument; check
24123 cgraph_node_cannot_return.
24124 (propagate): Reorganize read_all/write_all computation;
24125 check indirect edges; check ecf flags; use all_module_statics
24126 in the results; do not free all_module_statics.
24127 (stream_out_bitmap): Handle all_module_statics.
24128 (ipa_reference_write_optimization_summary): Likewise; use
24129 varpool/cgraph encoders to get boundaries.
24130 (ipa_reference_read_optimization_summary): Read in all_module_statics;
24131 use it when possible.
24133 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24136 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
24137 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
24139 * doc/extend.texi (powerpc builtins): Document vec_recip,
24140 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
24142 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
24143 (rs6000_emit_swrsqrt): Ditto.
24144 (rs6000_emit_swdivsf): Delete.
24145 (rs6000_emit_swdivdf): Ditto.
24146 (rs6000_emit_swrsqrtsf): Ditto.
24148 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
24149 describe the reciprocal estimate support for each type.
24150 (recip_options): Map -mrecip=<opt> into option bits.
24151 (gen_2arg_fn_t): New typedef for binary rtx gen function.
24152 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
24153 reciprocal estimate instructions.
24154 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
24155 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
24156 Set up rs6000_recip_bits based on the -mrecip* options. Print the
24157 cost information if -mdebug=cost or -mdebug=reg.
24158 (rs6000_override_options): Set -mrecip-precision for power6, and
24159 power7 machines. If -mvsx or -mdfp, enable various options that
24160 came in previous instruction set ISAs, unless the option was
24161 explicitly disabled by the command line option. Parse
24162 -mrecip=<opt> options.
24163 (rs6000_builtin_vectorized_function): Add support for vectorizing
24164 the reciprocal estimate builtins and expansions.
24165 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
24166 (bdesc_2arg): Add reciprocal estimate builtins.
24167 (bdesc_1arg): Add reciprocal square root estimate builtins.
24168 (rs6000_expand_builtin): Rewrite to use a switch statement,
24169 instead of multiple if/then/elses. Add reciprocal estimate builtins.
24170 (rs6000_init_builtins): Create declarations for reciprocal
24172 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
24173 sized, prefer traditional floating point registers, if integer
24174 vector types, prefer altivec registers. Don't actually look at
24175 the memory address any more.
24176 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
24178 (rs6000_load_constant_and_splat): New helper function to load up
24179 the constant for reciprocal estimate instructions.
24180 (rs6000_emit_madd): New helper function for generating
24181 multiply/add type instructions, based on the current switches.
24182 (rs6000_emit_msub): Ditto.
24183 (rs6000_emit_mnsub): Ditto.
24184 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
24185 replace a divide with a reciprocal estimate and fixup, adding
24186 support for machines with high precision and vectors.
24187 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
24188 low precision machines.
24189 (rs6000_emit_swdiv): New common function to be called to replace a
24190 division with reciprocal estimate and fixup.
24191 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
24192 for double and vector types. Add support for high precision machines.
24194 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
24195 the reciprocal estimate instructions can be generated.
24196 (TARGET_FRE): Ditto.
24197 (TARGET_FRSQRTES): Ditto.
24198 (TARGET_FRSQRTE): Ditto.
24199 (RS6000_RECIP_*): New macros for reciprocal estimate support.
24201 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
24202 square root estimate on vectors.
24203 (re<mode>2): New insn for reciprocal division estimate on vectors.
24205 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
24207 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
24208 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
24209 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
24210 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
24211 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
24212 (RS6000_BUILTIN_RSQRT): Ditto.
24213 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
24214 floating point builtin.
24216 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24217 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
24218 __RECIP_PRECISION__ based on the command line switches.
24219 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
24221 * config/rs6000/rs6000.opt (-mrecip): Document add support for
24222 replacing division instructions with reciprocal estimate and fixup.
24223 (-mrecip=<opt>): New option.
24224 (-mrecip-precision): Ditto.
24226 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
24227 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
24228 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
24231 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
24232 (UNSPEC_VREFP): Ditto.
24233 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
24234 conterparts with regard to support of -mno-fused-madd and -ffast-math.
24235 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
24236 reciprocal estimate instructions to be generated.
24237 (altivec_vrefp): Ditto.
24239 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
24241 (rreg): New mode attribute for reciprocal estimate support.
24242 (recip<mode>3): New insn for division using reciprocal estimate
24243 and fixup builtins.
24244 (divide define_split): New define_split to convert floating point
24245 division to use reciprocal estimate if the user used the
24246 appropriate options and the split is run when we can add new
24247 pseudo registers for the fixup.
24248 (rsqrt<mode>2): New insn for reciprocal square root support.
24249 (recipsf3): Move into recip<mode>3.
24251 (fres): Use TARGET_FRES.
24252 (rsqrtsf2): Move into rsqrt<mode>2.
24253 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
24254 (copysignsf3): Add support for VSX.
24255 (fred): Use TARGET_FRE.
24257 (rsqrtdf_internal1): New function for frsqrte instruciton.
24259 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
24260 (vec_rsqrt): Ditto.
24262 2010-06-03 Richard Guenther <rguenther@suse.de>
24264 PR middle-end/44291
24265 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
24266 (set_user_assembler_libfunc): Likewise.
24268 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24270 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
24272 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
24274 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
24275 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
24276 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
24277 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
24278 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
24279 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
24280 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
24281 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
24282 * defaults.h: Updated for above mentioned changes.
24284 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
24286 * c-common.c: Remove header include of tm_p.h.
24287 * Makefile.in (c-common.o): Remove TM_P_H dependency.
24289 2010-06-02 Jakub Jelinek <jakub@redhat.com>
24291 * tree.h (struct tree_decl_map): New type.
24292 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
24293 (tree_decl_map_hash): New prototype.
24294 (debug_expr_for_decl, value_expr_for_decl): Change into
24295 tree_decl_map hashtab from tree_map.
24296 (init_ttree): Adjust initialization.
24297 (tree_decl_map_hash): New function.
24298 (decl_debug_expr_lookup, decl_debug_expr_insert,
24299 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
24301 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24303 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
24305 * configure: Regenerate.
24306 * config.in: Regenerate.
24308 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
24309 (X86_64_EMULATION): Define.
24310 (TARGET_LD_EMULATION): Use them.
24312 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
24313 (SPARC64_EMULATION): Define.
24314 (LINK_ARCH_SPEC): Use them.
24316 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24318 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
24319 smallest_mode_for_size for computing the precision types of new
24320 graphite IVs. Do not call lang_hooks.types.type_for_size.
24322 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24324 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
24326 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
24328 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24330 PR middle-end/44363
24331 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
24332 return false instead.
24334 2010-06-02 Jan Hubicka <jh@suse.cz>
24336 PR middle-end/44295
24337 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
24338 create new cgraph node to check callee.
24340 2010-06-02 Richard Guenther <rguenther@suse.de>
24342 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
24344 2010-06-02 Richard Guenther <rguenther@suse.de>
24346 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
24347 (lto_wrapper_cleanup): ... this. Do not exit.
24348 (fatal): Adjust. Exit here.
24349 (fatal_perror): Likewise.
24350 (fatal_signal): New function.
24351 (main): Set up signal handlers to cleanup temporary files.
24352 * Makefile.in (lto-wrapper.o): Adjust dependencies.
24354 2010-06-02 Richard Guenther <rguenther@suse.de>
24356 PR tree-optimization/44377
24357 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
24359 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24361 * config/s390/2097.md (z10_fhex): Remove insn reservation.
24362 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
24363 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
24364 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
24366 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
24368 2010-06-02 Jan Hubicka <jh@suse.cz>
24370 * bitmap.c (bitmap_descriptor): Add search_iter.
24371 (bitmap_find_bit): Increment it.
24372 (print_statistics): Print it.
24374 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
24376 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
24377 instead of gimple_build_call_vec. Delete unnecessary local variable.
24379 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24381 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
24382 change from yesterday.
24384 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24386 * c-ada-spec.c: Clean up redundant includes.
24388 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
24390 * gimplify.c: Do not include except.h and optabs.h.
24391 (gimplify_body): Do not initialize RTL profiling.
24392 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
24393 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
24394 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
24395 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
24398 * tree-pretty-print.h: Include pretty-print.h.
24399 * gimple-pretty-print.h: Include pretty-print.h.
24401 * tree-pretty-print.c: Do not include diagnostic.h.
24402 * tree-vrp.c: Likewise.
24403 * tree-tailcall.c: Likewise
24404 * tree-scalar-evolution.c: Likewise
24405 * tree-ssa-dse.c: Likewise
24406 * tree-chrec.c: Likewise
24407 * tree-ssa-sccvn.c: Likewise
24408 * tree-ssa-copyrename.c: Likewise
24409 * tree-nomudflap.c: Likewise
24410 * tree-call-cdce.c: Likewise
24411 * tree-stdarg.c: Likewise
24412 * tree-ssa-math-opts.c: Likewise
24413 * tree-nrv.c: Likewise
24414 * tree-ssa-sink.c: Likewise
24415 * tree-browser.c: Likewise
24416 * tree-ssa-loop-ivcanon.c: Likewise
24417 * tree-ssa-loop.c: Likewise
24418 * tree-parloops.c: Likewise
24419 * tree-ssa-address.c: Likewise
24420 * tree-ssa-ifcombine.c: Likewise
24421 * tree-if-conv.c: Likewise
24422 * tree-data-ref.c: Likewise
24423 * tree-affine.c: Likewise
24424 * tree-ssa-phiopt.c: Likewise
24425 * tree-ssa-coalesce.c: Likewise
24426 * tree-ssa-pre.c: Likewise
24427 * tree-ssa-live.c: Likewise
24428 * tree-predcom.c: Likewise
24429 * tree-ssa-forwprop.c: Likewise
24430 * tree-ssa-dce.c: Likewise
24431 * tree-ssa-ter.c: Likewise
24432 * tree-ssa-loop-prefetch.c: Likewise
24433 * tree-optimize.c: Likewise
24434 * tree-ssa-phiprop.c: Likewise
24435 * tree-object-size.c: Likewise
24436 * tree-outof-ssa.c: Likewise
24437 * tree-ssa-structalias.c: Likewise
24438 * tree-switch-conversion.c: Likewise
24439 * tree-ssa-reassoc.c: Likewise
24440 * tree-ssa-operands.c: Likewise
24441 * tree-vectorizer.c: Likewise
24442 * tree-vect-data-refs.c: Likewise
24443 * tree-vect-generic.c: Likewise
24444 * tree-vect-stmts.c: Likewise
24445 * tree-vect-patterns.c: Likewise
24446 * tree-vect-slp.c: Likewise
24447 * tree-vect-loop.c: Likewise
24448 * tree-ssa-loop-ivopts.c: Likewise
24449 * tree-ssa-loop-im.c: Likewise
24450 * tree-ssa-loop-niter.c: Likewise
24451 * tree-ssa-loop-unswitch.c: Likewise
24452 * tree-ssa-loop-manip.c: Likewise
24453 * tree-ssa-loop-ch.c: Likewise
24454 * tree-dump.c: Likewise
24455 * tree-complex.c: Likewise
24457 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
24458 * tree-ssa-uninit.c: Likewise
24459 * tree-ssa-threadupdate.c: Likewise
24460 * tree-ssa-uncprop.c: Likewise
24461 * tree-ssa-ccp.c: Likewise
24462 * tree-ssa-dom.c: Likewise
24463 * tree-ssa-propagate.c: Likewise
24464 * tree-ssa-alias.c: Likewise
24465 * tree-dfa.c: Likewise
24466 * tree-cfgcleanup.c: Likewise
24467 * tree-sra.c: Likewise
24468 * tree-ssa-copy.c: Likewise
24469 * tree-ssa.c: Likewise
24470 * tree-profile.c: Likewise
24471 * tree-cfg.c: Likewise
24472 * tree-ssa-threadedge.c: Likewise
24473 * tree-vect-loop-manip.c: Likewise
24475 * tree-inline.c: Do not include diagnostic.h and expr.h.
24477 (copy_decl_for_dup_finish): Do not use NULL_RTX.
24479 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
24480 * tree-loop-distribution.c: Likewise.
24482 2010-06-01 Jan Hubicka <jh@suse.cz>
24484 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
24486 2010-06-01 Jan Hubicka <jh@suse.cz>
24488 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
24489 remove return value.
24490 (split_bbs_on_noreturn_calls) .... here.
24491 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
24492 * tree-flow.h (fixup_noreturn_call): New.
24494 2010-06-01 Jan Hubicka <jh@suse.cz>
24496 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
24498 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
24500 * tree.h (build_nt_call_list): Delete.
24501 * tree.c (build_nt_call_list): Delete.
24503 2010-06-01 Jan Hubicka <jh@suse.cz>
24505 * fwprop.c: Make emit-rtl.h include last.
24506 * rtlanal.c: Include emit-rtl.h.
24507 * genautomata.c: Output emit-rtl include into insn-automata.c
24508 * df-scan.c: Include emit-rtl.h.
24509 * haifa-sched.c: Indlude emit-rtl.h.
24510 * mode-switching.c: Indlude emit-rtl.h.
24511 * graph.c: Indlude emit-rtl.h.
24512 * sel-sched.c: Include emit-rtl.h.
24513 * sel-sched-ir.c: Include emit-rtl.h.
24514 * ira-build.c: Include emit-rtl.h.
24515 * emit-rtl.c (first_insn, last_insn): Remove defines.
24516 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
24517 Move to emit-rtl.h.
24518 (set_new_first_and_last_insn, get_last_insn_anywhere,
24519 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
24520 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
24521 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
24522 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
24523 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
24524 Use accessor functions.
24525 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24526 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24527 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24528 mem_expr_equal_p): Move here from rtl.h.
24529 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
24530 Move here from emit-rtl.c; make inline.
24531 * cfglayout.h: Include emit-rtl.h.
24532 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24533 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24534 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24535 mem_expr_equal_p, get_insns, set_first-insn,
24536 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
24537 * reg-stack.c: Include emit-rtl.h.
24540 2010-06-01 Jan Hubicka <jh@suse.cz>
24542 * cgraph.h (tree_function_versioning): Update prototype.
24543 (cgraph_function_versioning): Update prototype.
24544 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
24546 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
24547 (cgraph_materialize_clone, save_inline_function_body): Update use of
24548 tree_function_versioning.
24549 * tree-inline.c (copy_bb): Look for previous copied block to link
24550 after; fix debug output.
24551 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
24552 (copy_body): Likewise.
24553 (expand_call_inline): Update use of copy_body.
24554 (tree_function_versioning): Update use of copy body; accept
24555 blocks_to_copy and new_entry.
24557 2010-06-01 Jan Hubicka <jh@suse.cz>
24559 * gegenrtl.c: Remove unnecesary prototypes.
24561 (gendef): Produce static inline.
24563 (main): Do not decode parameters; generate header only.
24564 * Makefile.in (genrtl.c): Remove.
24566 2010-06-01 Jan Hubicka <jh@suse.cz>
24568 * tree-switch-conversion.c (build_one_array): Make it readonly.
24570 2010-06-01 Richard Guenther <rguenther@suse.de>
24572 * optabs.c (init_optabs): Guard all accesses to reinit.
24573 * ipa-pure-const.c (propagate): Fix another typo.
24574 * opts.c (common_handle_option): Split assignment to bool.
24575 * c-opts.c (c_common_handle_option): Likewise.
24577 2010-06-01 Arnaud Charlet <charlet@adacore.com>
24578 Matthew Gingell <gingell@adacore.com>
24580 * doc/invoke.texi: Mention -fdump-ada-spec.
24581 * tree-dump.c (dump_files): Add ada-spec.
24582 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
24583 * tree-pass.h (tree_dump_index): Add TDI_ada.
24584 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
24585 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
24586 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
24587 * c-decl.c: Include c-ada-spec.h.
24588 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
24590 (c_write_global_declarations): Add handling of -fdump-ada-spec.
24591 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
24592 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
24593 * c-ada-spec.h, c-ada-spec.c: New files.
24595 2010-06-01 Richard Guenther <rguenther@suse.de>
24598 * ipa-pure-const.c (get_function_state): Hand back varying state
24599 if we do not have one.
24600 (has_function_state): New function.
24601 (duplicate_node_data): Adjust.
24602 (remove_node_data): Likewise.
24603 (pure_const_write_summary): Likewise.
24604 (propagate): Likewise. Fix typo.
24606 2010-06-01 Jan Hubicka <jh@suse.cz>
24608 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
24609 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
24610 (execute_all_ipa_transforms): Do not play with the states.
24612 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
24614 * config/arm/t-linux-androideabi: New.
24615 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
24617 2010-06-01 Jan Hubicka <jh@suse.cz>
24619 * tree-inline.c (estimate_num_insns): For stdarg functions look
24620 into call statement to count cost of argument passing.
24622 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
24624 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
24625 argument for fprintf.
24626 (ix86_output_addr_diff_elt): Likewise.
24627 (x86_function_profiler): Likewise.
24628 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
24629 (LPREFIX): Likewise.
24630 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
24632 2010-05-31 Jakub Jelinek <jakub@redhat.com>
24635 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
24636 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
24637 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
24638 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
24639 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
24640 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
24641 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
24642 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
24645 2010-05-31 Jan Hubicka <jh@suse.cz>
24647 * tree.h (tree_range_check_failed): Declare noreturn.
24649 2010-05-31 Jan Hubicka <jh@suse.cz>
24651 * gimple.c (gimple_call_builtin_p): New function.
24652 * gimple.h (gimple_call_builtin_p): Declare.
24653 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
24655 (execute_warn_function_return): BUILT_IN_RETURN is return.
24656 (split_critical_edges): Return edges are not critical.
24657 (is_ctrl_altering_stmt): Builtin_in_return is altering.
24658 (gimple_verify_flow_info): Handle built_in_return.
24659 (execute_warn_function_return): Handle built_in_return.
24660 * ipa-pure-const.c (check_call): Ignore builtin_return.
24662 2010-05-31 Jakub Jelinek <jakub@redhat.com>
24664 PR middle-end/44337
24665 * expr.c (expand_assignment): Don't store anything for out-of-bounds
24666 array accesses with non-MEM.
24668 PR tree-optimization/44182
24669 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
24670 newly needs to end a bb is followed by debug stmts, instead return
24671 true from the function at the end.
24672 (maybe_move_debug_stmts_to_successors): New function.
24673 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
24675 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
24678 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
24680 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
24682 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
24683 for nested functions in non-optimized compilation.
24685 2010-05-31 Richard Guenther <rguenther@suse.de>
24687 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
24689 2010-05-30 Jan Hubicka <jh@suse.cz>
24691 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
24693 2010-05-30 Richard Guenther <rguenther@suse.de>
24696 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
24697 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
24700 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
24702 * config/darwin.c (output_objc_section_asm_op): Add comment.
24703 (name_needs_quotes): Add '_' to list of valid comment chars.
24704 (machopic_output_function_base_name): Remove unneeded quotes.
24705 (darwin_encode_section_info): Adjust asm whitespace.
24706 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
24707 (ASM_OUTPUT_LOCAL): Ditto.
24708 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
24709 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
24710 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
24712 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
24714 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
24715 RS6000_OUTPUT_BASENAME unconditionally.
24716 (rs6000_output_function_epilogue): Likewise.
24718 2010-05-30 Jan Hubicka <jh@suse.cz>
24720 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
24723 2010-05-30 Richard Guenther <rguenther@suse.de>
24725 * tree-cfg.c (verify_gimple_assign_single): Implement
24726 verification for COND_EXPR rhs.
24728 2010-05-30 Jan Hubicka <jh@suse.cz>
24730 * cgraph.h (cgraph_dump_file): Declare.
24731 * cgraphunit.c (cgraph_dump_file): Export.
24732 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
24734 2010-05-30 Jan Hubicka <jh@suse.cz>
24736 * dwarf2out.c (reference_to_unused,
24737 premark_types_used_by_global_vars_helper): Avoid creation of new
24740 2010-05-30 Jan Hubicka <jh@suse.cz>
24742 * cgraph.h (cgraph_node_cannot_return,
24743 cgraph_edge_cannot_lead_to_return): New functions.
24744 * cgraph.c (cgraph_node_cannot_return,
24745 cgraph_edge_cannot_lead_to_return): Use them.
24746 * ipa-pure-const.c (pure_const_names): New static var.
24747 (check_call): Handle calls not leading to return.
24748 (pure_const_read_summary): Dump info read.
24749 (propagate): Dump info about propagation process; ignore side effects
24750 of functions not leading to exit; fix handling of pure functions.
24752 2010-05-30 Jan Hubicka <jh@suse.cz>
24754 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
24755 for tail call epilogues.
24757 2010-05-30 Jan Hubicka <jh@suse.cz>
24759 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
24760 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
24763 2010-05-29 Jan Hubicka <jh@suse.cz>
24765 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
24766 node; remove references in node we no longer keep in cgrpah but need
24769 2010-05-29 Jan Hubicka <jh@suse.cz>
24771 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
24773 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24776 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
24778 2010-05-29 Jan Hubicka <jh@suse.cz>
24780 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
24781 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
24782 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
24783 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
24784 debug_names_replaced_by, debug_update_ssa): Likewise.
24785 * sbitmap.c (debug_sbitmap): Likewise.
24786 * genrecog.c (debug_decision, debug_decision_list): Likewise.
24787 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
24788 debug_tree_chain): Likewise.
24789 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
24790 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
24791 * optabs.c (debug_optab_libfuncs): Likewise.
24792 (verify_loop_closed_ssa): Likewise.
24793 * value-prof.c (verify_histograms): Likewise.
24794 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
24795 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
24796 * cfghooks.c (verify_flow_info): Likewise.
24797 * fold-const.c (debug_fold_checksum): Likewise.
24798 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
24799 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
24801 * omega.c (debug_omega_problem): Likewise.
24802 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
24803 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
24804 * dominance.c (verify_dominators, debug_dominance_info,
24805 debug_dominance_tree): Likewise.
24806 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
24807 * df_regno_debug, df_ref_debug,
24808 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
24809 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
24810 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
24811 * sel-sched.c (debug_state): Likewise.
24812 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
24814 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
24815 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
24816 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
24817 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
24819 * c-pretty-print.c (debug_c_tree): Likewise.
24820 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
24821 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
24822 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
24823 * ebitmap.c (debug_ebitmap): Likewise.
24824 * function.c (debug_find_var_in_block_tree): Likewise.
24825 * print-rtl.c (debug_rtx): Likewise.
24826 (debug_rtx_count): Likewise.
24827 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
24828 * stor-layout.c (debug_rli): Likewise.
24829 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
24830 * tree-data-ref.c (debug_data_references,
24831 debug_data_dependence_relations, debug_data_reference,
24832 debug_data_dependence_relation, debug_rdg_vertex,
24833 debug_rdg_component, debug_rdg): Likewise.
24834 * tree-affine.c (debug_aff): Likewise.
24835 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
24837 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
24838 * emit-rtl.c (verify_rtl_sharing): Likewise.
24839 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
24840 debug_value_expressions): Likewise.
24841 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
24842 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
24843 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
24844 * cfglayout.c (verify_insn_chain): Likewise.
24845 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
24846 debug_clast_stmt, debug_generated_program): Likewise.
24847 * ggc-page.c (debug_print_page_list): Likewise.
24848 * tree-ssa-ter.c (debug_ter): Likewise.
24849 * graphite-dependences.c (debug_pddr): Likewise.
24850 * sched-deps.c (debug_ds): Likewise.
24851 * tree-ssa.c (verify_ssa): Likewise.
24852 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
24853 debug_scattering_functions, debug_iteration_domains, debug_pdr,
24854 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
24855 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
24856 * tree-inline.c (debug_find_tree): Likewise.
24857 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
24858 debug_ppl_powerset_matrix): Likewise.
24859 * var-tracking.c (debug_dv): Likewise.
24860 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
24861 * cfgloop.c (verify_loop_structure): Likewise.
24862 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
24863 * c-common.c (verify_sequence_points): Likewise.
24864 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
24865 debug_candidates, debug_rgn_dependencies): Likewise.
24866 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
24867 * debug_constraint_graph, debug_solution_for_var,
24868 debug_sa_points_to_info): Likewise.
24869 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
24871 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
24872 debug_loops, debug_loop, debug_loop_num): Likewise.
24873 * passes.c (debug_pass): Likewise.
24874 (dump_properties): Likewise; add cfglayout property.
24875 (debug_properties): Likewise.
24876 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
24877 * varpool.c (debug_varpool): Likewise.
24878 * regcprop.c (debug_value_data): Likewise.
24879 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
24880 debug_immediate_uses_for): Likewise.
24882 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
24885 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
24886 Filter out insn-flags.h.
24888 2010-05-29 Jan Hubicka <jh@suse.cz>
24890 * cgraph.h (struct varpool_node_set_def,
24891 struct cgraph_node_set_def): Remove unused AUX pointer.
24892 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
24895 2010-05-29 Jan Hubicka <jh@suse.cz>
24897 PR middle-end/44324
24898 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
24900 2010-05-29 Richard Guenther <rguenther@suse.de>
24902 * lto-streamer.c (cached_bp): New global variable.
24903 (bitpack_create): Return the cached bitpack, if available.
24904 (bitpack_delete): Clear and cache the bitpack, if appropriate.
24905 (bp_pack_value): Remove redundant asserts.
24907 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
24909 PR middle-end/44306
24910 * tree-if-conv.c (is_true_predicate): New.
24911 (is_predicated): Use is_true_predicate.
24912 (add_to_predicate_list): Same. Do not use unshare_expr.
24913 (add_to_dst_predicate_list): Same.
24915 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
24917 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
24919 (predicate_bbs): Same.
24920 (clean_predicate_lists): Same.
24921 (find_phi_replacement_condition): Do not AND the predicate from
24924 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
24927 * Makefile.in (build/gencondmd.o): Add a missing `\'.
24929 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24932 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
24933 (negdf2): Adjust expander pattern and use negdf2_slow.
24934 (negsf2): Likewise.
24936 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
24938 * basic-block.h (struct control_flow_graph): Move last_label_uid field
24940 * df.h (struct df_base_ref): Move regno field up.
24941 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
24942 * expr.h (struct separate_ops): Move location field up.
24943 * optabs.h (struct optab_d): Move libcall_basename field down.
24944 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
24945 * config/i386/i386.h (struct machine_function): Convert call_abi field
24946 into a bitfield. Move cfa field to the end of the structure.
24948 2010-05-29 Jan Hubicka <jh@suse.cz>
24950 * varpool.c (varpool_get_node): Fix lookup.
24952 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24954 * config/spu/spu-protos.h: Do not include rtl.h. Protect
24955 RTL specific prototypes with #ifdef RTX_CODE.
24956 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
24957 * config/spu/t-spu-elf: Fix dependencies.
24959 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
24961 2010-05-29 Mike Stump <mikestump@comcast.net>
24964 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
24965 TM_H when building to avoid dependency loops.
24967 2010-05-29 Jan Hubicka <jh@suse.cz>
24969 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
24970 refs and body; not the whole node for masters of materialized clones.
24972 2010-05-29 Mike Stump <mikestump@comcast.net>
24974 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
24976 2010-05-29 Jan Hubicka <jh@suse.cz>
24978 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
24979 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
24980 use of clone_function_name.
24981 * cgraph.h (cgraph_create_virtual_clone,
24982 cgraph_function_versioning): update prototypes.
24983 (clone_function_name): Declare.
24984 * ipa-cp.c (ipcp_insert_stage): Update call of
24985 cgraph_create_virtual_clone.
24986 * omp-low.c (create_omp_child_function_name): Use
24987 cgraph_create_virtual_clone.
24988 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
24989 (cgraph_function_versioning): Take SUFFIX argument; produce new name
24990 and make decl local.
24992 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24994 * vec.h: Include statistics.h
24995 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
24998 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25000 * c-lex.c: Do not include c-tree.h.
25001 * c-pretty-print.c: Likewise.
25002 * c-opts.c: Likewise.
25003 * c-gimplify.c: Likewise.
25004 * c-common.c: Likewise.
25005 * c-dump.c: Likewise. Include c-common.h.
25007 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25009 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
25010 before including diagnostic-core.h.
25011 (c_cpp_error): New prototype moved from c-tree.h.
25012 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
25013 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
25014 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
25015 (c_cpp_error): Prototype moved to c-common.h.
25016 * Makefile.in: Update dependency for C_COMMON_H.
25018 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25020 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
25021 * c-common.c (c_register_addr_space): Remove here.
25022 * c-decl.c (c_register_addr_space): Re-add here.
25024 2010-05-28 Mike Stump <mikestump@comcast.net>
25026 * config/darwin-c.c: Remove c-tree.h include.
25028 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25030 * gcc.c: Include diagnostic.h.
25031 (error_count): Remove. All users changed to use errorcount.
25032 (programname): Remove. All users changed to use progname.
25033 (fancy_abort, internal_error, fatal_error, error, warning, inform,
25035 (execute): Don't include "Internal error" and bug reporting
25036 information in argument of internal_error call.
25037 (process_command): Don't increment error_count after calling
25039 (input_filename): Rename to gcc_input_filename. All users
25041 (main): Call diagnostic_initialize. Register delete_temp_files
25042 with atexit. Use seen_error to test for errors.
25043 * gcc.h: Include diagnostic-core.h.
25044 (fatal_error, error, warning): Remove.
25045 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
25046 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
25047 (gcc.o): Update dependencies.
25049 2010-05-28 Jeff Law <law@redhat.com>
25051 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
25053 * ira.h (ira_bad_reload_regno): Declare
25054 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
25056 * ira-color.c (update_curr_costs): Free updated hard reg costs.
25057 (ira_reassign_conflict_allocnos): Remove bogus asserts.
25058 (allocno_reload_assign): Likewise.
25060 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
25062 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
25065 2010-05-28 Richard Guenther <rguenther@suse.de>
25068 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
25069 Stream fixed-point constants mode.
25070 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
25071 and TYPE_PRECISION.
25072 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
25073 Stream fixed-point constants mode.
25074 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
25075 and TYPE_PRECISION.
25077 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25079 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
25080 only place it was called from.
25081 (number_of_latch_executions): Do not return chrec_dont_know when the
25082 may_be_zero is a runtime condition: instead, return a COND_EXPR
25083 including the may_be_zero condition.
25084 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
25086 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
25089 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25091 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
25092 generate COND_EXPRs for degenerate_phi_result.
25094 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25096 PR middle-end/44293
25097 * tree-if-conv.c (if_convertible_loop_p): Check the
25098 if-convertibility of phi nodes in non predicated BBs.
25100 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25102 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
25104 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25107 * gcc.c (inform, warning, inform): New functions.
25108 (fatal_ice): Rename to internal_error; change cmsgid parameter to
25109 gmsgid. All callers changed.
25110 (notice): Rename to fnotice; add parameter fp. All callers changed.
25111 (fatal_error): Rename to fatal_signal. All users changed.
25112 (fatal): Rename to fatal_error; change cmsgid parameter to
25113 gmsgid. All callers changed.
25114 (process_command): Use warning instead of error for warnings.
25115 (end_going_arg): Don't use _() around argument of error.
25116 (do_spec_1): Use inform for message from %n specs. Use warning
25117 instead of error for warnings.
25118 (main): Use inform for comparison messages. Use warning for
25119 message about unused linker input.
25120 (error): Increment error_count. Print "error: ".
25121 * gcc.h (fatal): Change to fatal_error.
25122 (warning): Declare.
25123 * config/darwin-driver.c (darwin_default_min_version): Use warning
25124 instead of fprintf for warnings.
25125 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
25127 2010-05-28 Julian Brown <julian@codesourcery.com>
25129 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
25130 (*thumb2_addsi3_compare0_scratch): New.
25131 * config/arm/constraints.md (Pv): New.
25132 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
25134 (*addsi3_compare0_scratch): Likewise.
25136 2010-05-28 Jan Hubicka <jh@suse.cz>
25138 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
25140 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
25141 only on local statics.
25143 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
25145 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
25147 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
25150 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
25151 (OPTION_GLIBC): Define.
25153 2010-05-28 Jakub Jelinek <jakub@redhat.com>
25156 * dwarf2out.c (double_int_type_size_in_bits): New function.
25157 (round_up_to_align): Change first argument and return value to
25159 (field_byte_offset): Work internally on double_ints.
25162 * builtins.c (expand_movstr): Use a temporary pseudo instead
25163 of target even when target is not NULL and not const0_rtx, but
25164 fails movstr predicate.
25165 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
25167 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25169 * final.c (rest_of_clean_state): Use %m in errors instead of
25171 * gengtype.c (read_input_list, close_output_files): Use xstrerror
25172 instead of strerror.
25173 * toplev.c (process_options): Use %m in errors instead of strerror
25175 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
25178 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
25180 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
25181 (ix86_canonical_va_list_type): Make static. Add declaration.
25182 (ix86_enum_va_list): Make static. Reindent.
25183 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
25184 (ix86_canonical_va_list_type): Ditto.
25185 (ix86_enum_va_list): Ditto.
25187 2010-05-28 Richard Guenther <rguenther@suse.de>
25189 * lto-wrapper.c (run_gcc): With -save-temps generate a
25190 user-visible ltrans filename. Fixup ltrans unit numbering.
25192 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
25194 * c-common.c (c_common_nodes_and_builtins): Replace use
25195 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
25196 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
25197 to ix86_enum_va_list.
25198 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
25199 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
25200 (TARGET_ENUM_VA_LIST_P): Add hook description.
25201 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
25202 * target.h (gcc_target): Add enum_va_list hook.
25205 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
25206 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
25207 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
25209 2010-05-28 Alan Modra <amodra@gmail.com>
25212 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25213 emit_library_call machinery to set up __tls_get_addr calls.
25215 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25217 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
25219 2010-05-28 Dodji Seketeli <dodji@redhat.com>
25221 Revert fix for PR c++/44188
25222 * c-common.c (is_typedef_decl): Revert the moving of this
25224 * tree.c (is_typedef_decl): ... here.
25225 (typdef_variant_p): Revert the moving of this definition
25226 here from cp/tree.c.
25227 * c-common.h (is_typedef_decl): Revert the moving of this
25229 * tree.h (is_typedef_decl): ... here.
25230 (typedef_variant_p): Revert the moving of this declaration here
25232 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
25233 (gen_tagged_type_die): Revert the splitting out of ...
25234 (gen_type_die_with_usage): ... this function. Revert the anonymous
25235 tagged type handling.
25236 (gen_typedef_die): Revert emitting DW_TAG_typedef for
25237 typedefs naming anonymous tagged types.
25239 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
25241 * config/rs6000/rs6000-modes.def (PSImode): Delete.
25243 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
25245 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
25246 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
25248 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
25250 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
25251 XER_REGS to CA_REGS throughout.
25252 * config/rs6000/rs6000.h: Same.
25253 (ADDITIONAL_REGISTER_NAMES): Add "xer".
25254 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
25255 that mode_iterator "P" is the size for arithmetic carries as well.
25256 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
25258 2010-05-28 Jakub Jelinek <jakub@redhat.com>
25261 * combine.c (struct rtx_subst_pair): Define unconditionally.
25262 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
25263 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
25264 Call make_compound_operation on pair->to.
25265 (propagate_for_debug): Don't call make_compound_operation here.
25266 Always use simplify_replace_fn_rtx.
25268 2010-05-27 Sterling Augustine <sterling@tensilica.com>
25270 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
25271 * config/xtensa/xtensa.c (override_options): Check
25272 TARGET_FORCE_NO_PIC and set flag_pic.
25273 * config/xtensa/xtensa.opt: Document -mforce-no-pic
25275 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
25278 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
25279 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
25281 2010-05-27 Joseph Myers <joseph@codesourcery.com>
25283 * diagnostic-core.h: New. Contents moved from diagnostic.h and
25285 * diagnostic.c: Don't include toplev.h.
25286 (progname): Define. Moved from toplev.c.
25287 (seen_error): New function.
25288 * diagnostic.h: Include diagnostic-core.h.
25289 (diagnostic_t, emit_diagnostic): Don't declare here.
25290 * toplev.c (progname): Move to toplev.c.
25291 (emit_debug_global_declarations, compile_file, finalize,
25292 do_compile, toplev_main): Use seen_error.
25293 * toplev.h: Include diagnostic-core.h.
25294 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
25295 internal_error, warning, warning_at, error, error_n, error_at,
25296 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
25297 verbatim, fnotice, progname): Move to diagnostic-core.h.
25298 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
25299 (expand_builtin_expect): Use seen_error.
25300 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
25301 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
25302 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
25303 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
25304 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
25305 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
25306 errorcount for errors.
25307 * c-opts.c (c_common_finish): Use seen_error.
25308 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25309 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
25310 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
25311 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
25312 (get_coverage_counts): Use seen_error.
25313 * dwarf2out.c (dwarf2out_finish): Use seen_error.
25314 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
25315 gimplify_body): Use seen_error.
25316 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
25317 * ipa-pure-const.c (gate_pure_const): Use seen_error.
25318 * ipa-reference.c (gate_reference): Use seen_error.
25319 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
25320 * lambda-code.c: Include diagnostic-core.h instead of
25322 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25323 * lto-compress.c: Include diagnostic-core.h instead of
25325 * lto-section-in.c: Include diagnostic-core.h instead of
25327 * lto-streamer-out.c: Include diagnostic-core.h instead of
25329 * lto-streamer.c: Include diagnostic-core.h instead of
25331 (gate_lto_out): Use seen_error.
25332 * matrix-reorg.c: Include diagnostic-core.h instead of
25334 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
25335 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
25336 (gate_expand_omp, lower_omp_1): Use seen_error.
25337 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
25338 (rest_of_decl_compilation, rest_of_type_compilation,
25339 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
25340 * tree-cfg.c (label_to_block_fn): Use seen_error.
25341 * tree-inline.c (optimize_inline_calls): Use seen_error.
25342 * tree-mudflap.c (mudflap_finish_file): Use
25344 * tree-optimize.c (gate_all_optimizations,
25345 gate_all_early_local_passes, gate_all_early_optimizations): Use
25347 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
25348 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
25349 (varpool_remove_unreferenced_decls,
25350 varpool_assemble_pending_decls): Use seen_error.
25351 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
25352 (TOPLEV_H, DIAGNOSTIC_H): Update.
25353 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
25354 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
25355 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
25356 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
25357 coverage.o, lambda-code.o): Update dependencies.
25359 2010-05-25 Dodji Seketeli <dodji@redhat.com>
25362 * c-common.c (is_typedef_decl): Move this definition ...
25363 * tree.c (is_typedef_decl): ... here.
25364 (typdef_variant_p): Move definition here from cp/tree.c.
25365 * c-common.h (is_typedef_decl): Move this declaration ...
25366 * tree.h (is_typedef_decl): ... here.
25367 (typedef_variant_p): Move declaration here from cp/cp-tree.h
25368 * dwarf2out.c (is_naming_typedef_decl): New function.
25369 (gen_tagged_type_die): Split out of ...
25370 (gen_type_die_with_usage): ... this function. When an anonymous
25371 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25372 is emitted for the typedef.
25373 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25374 anonymous tagged types.
25376 2010-05-27 Jason Merrill <jason@redhat.com>
25378 * print-tree.c (debug_vec_tree): New fn.
25379 (print_vec_tree): New fn.
25380 * tree.h: Declare them.
25381 * gdbinit.in (pvt): New command.
25383 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
25385 * gdbinit.in (pdd): New command.
25387 2010-05-27 Jan Hubicka <jh@suse.cz>
25389 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
25390 (update_caller_keys): Return early if there are no callers;
25391 only update fibheap when decresing the key.
25392 (update_callee_keys): Avoid recursion.
25393 (decide_inlining_of_small_functions): When badness does not match;
25394 re-insert into fibheap.
25396 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
25398 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
25399 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
25400 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
25401 (ALL_HOST_OBJS): Now a union of the above two.
25402 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
25403 all files in ALL_HOST_FRONTEND_OBJS.
25404 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
25406 * c-common.c: Pretend to be a backend file by undefining
25407 IN_GCC_FRONTEND (still need rtl.h here).
25409 2010-05-27 Jan Hubicka <jh@suse.cz>
25411 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
25412 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
25414 2010-05-27 Jan Hubicka <jh@suse.cz>
25416 * sched-ebb.c: Rename struct deps to struct deps_desc.
25418 * sel-sched-ir.c: Likewise.
25419 * sched-deps.c: Likewise.
25420 * sched-int.h: Likewise.
25421 * sched-rgn.c: Likewise.
25423 2010-05-27 Jon Beniston <jon@beniston.com>
25426 * config/lm32/lm32.h: Remove definition of
25427 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
25429 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
25432 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
25434 2010-05-27 Richard Guenther <rguenther@suse.de>
25436 PR tree-optimization/44284
25437 * tree-vect-stmts.c (vectorizable_assignment): Handle
25438 sign-changing conversions as simple copy.
25440 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25442 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
25444 (__gthread_active_p): Check for pthread_create if compiling against
25447 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25449 Support compilation for Android platform. Reimplement -mandroid.
25451 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
25452 (*android*): Set ANDROID_DEFAULT.
25453 (arm*-*-linux*): Include linux-android.h.
25454 (arm*-*-eabi*): Don't include previous -mandroid implementation.
25455 * config/arm/eabi.h: Remove, move Android-specific parts ...
25456 * config/linux-android.h: ... here. New file.
25457 * config/arm/eabi.opt: Rename to ...
25458 * config/linux-android.opt: ... this.
25459 (mandroid): Allow -mno-android option. Initialize based on
25461 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
25462 Move logic to corresponding LINUX_TARGET_* macros.
25463 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
25464 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
25465 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
25466 Android definitions.
25467 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
25468 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
25471 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25473 Add support for Bionic C library
25475 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
25477 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
25478 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
25480 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
25481 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
25482 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
25483 to support multiple C libraries. Handle Bionic.
25484 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
25485 (BIONIC_DYNAMIC_LINKER64): Define.
25486 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
25488 (TARGET_HAS_SINCOS): Enable for Bionic.
25490 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
25491 the last option specified on command line take effect.
25492 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
25494 (mglibc, muclibc): Update.
25496 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
25497 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
25500 * doc/invoke.texi (-mglibc, -muclibc): Update.
25501 (-mbionic): Document.
25503 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25505 * c-common.h (c_register_addr_space): Add prototype.
25506 (ADDR_SPACE_KEYWORD): Remove.
25507 * c-common.c (c_register_addr_space): New function.
25508 (c_addr_space_name): Reimplement.
25509 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
25511 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
25512 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
25514 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
25515 Remove TARGET_ADDR_SPACE_KEYWORDS.
25517 2010-05-27 Joseph Myers <joseph@codesourcery.com>
25519 * input.c: New file.
25520 * input.h (main_input_filename): Move declaration to toplev.h.
25521 * toplev.c (input_location, line_table): Move to input.c
25522 * toplev.h (main_input_filename): Move declaration from input.h.
25523 * tree.c (expand_location): Move to input.c.
25524 * Makefile.in (OBJS-common): Add input.o.
25525 (input.o): Add dependencies.
25527 2010-05-27 Richard Guenther <rguenther@suse.de>
25529 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
25530 for non-existant files.
25531 (fork_execute): Mark args_name file as deleted.
25533 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
25536 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
25537 (narrow_signed_type): Likewise.
25539 2010-05-26 Jan Hubicka <jh@suse.cz>
25541 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
25542 edge only when checking is enabled; check using former_clone_of;
25543 check inline clones too.
25544 (cgraph_materialize_clone): Record former_clone_of pointer.
25545 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
25546 combining redirections; dump args_to_skip bitmap
25547 (cgraph_materialize_all_clones): Do no redirection here.
25548 * ipa-inline.c (inline_transform): Do redirection here.
25549 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
25552 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25554 * config/avr/avr-c.c: Do not include regs.h.
25555 Include cpplib.h for cpp_define and tree.h for c-common.h.
25556 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
25557 * config/avr/t-avr: Fix dependencies for avr-c.o.
25559 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25561 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
25562 string instead of SYMBOL_REF rtx.
25563 * rtl.h (set_stack_check_libfunc): Move prototype from here...
25564 * libfuncs.h: ...to here. Adjust for explow.c change.
25566 2010-05-26 Joseph Myers <joseph@codesourcery.com>
25568 * pretty-print.c: Don't include ggc.h.
25569 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
25570 (identifier_to_locale): Use them for allocation.
25571 * pretty-print.h (identifier_to_locale_alloc,
25572 identifier_to_locale_free): Declare.
25573 * toplev.c (alloc_for_identifier_to_locale): New.
25574 (general_init): Set identifier_to_locale_alloc and
25575 identifier_to_locale_free.
25576 * Makefile.in (pretty-print.o): Update dependencies.
25578 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
25580 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
25581 pointer types if they have different alignment or mode.
25583 2010-05-26 Anatoly Sokolov <aesok@post.ru>
25585 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25586 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25587 * config/sparc/sparc-protos.h (function_value): Remove declaration.
25588 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
25589 sparc_function_value_regno_p): New functions.
25590 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25591 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25592 (function_value): Rename to...
25593 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
25594 argument to 'outgoing'.
25595 (function_arg_record_value, function_arg_union_value,
25596 function_arg_vector_value): Update comment.
25598 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
25600 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
25601 (fde_needed_for_eh_p): New predicate.
25602 (output_call_frame_info): Use it throughout to decide whether FDEs
25603 are needed for EH purpose.
25604 (dwarf2out_begin_prologue): Reorder assignments.
25606 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25608 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
25609 special case loop->header.
25610 (is_predicated): New.
25611 (if_convertible_loop_p): Call it.
25613 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25615 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
25616 iterator in parameter. Do not generate code during the analysis.
25617 (tree_if_convert_cond_stmt): Removed.
25618 (tree_if_convert_stmt): Removed.
25619 (predicate_bbs): New.
25620 (if_convertible_loop_p): Call predicate_bbs.
25621 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
25622 now contains all the analysis part.
25624 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25626 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
25627 statements in the analysis part.
25628 (tree_if_convert_stmt): Update comment.
25629 (remove_conditions_and_labels): New.
25630 (combine_blocks): Call remove_conditions_and_labels.
25631 (tree_if_conversion): Update comment.
25633 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25635 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
25636 than 2 predecessors or more than 2 successors.
25638 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25640 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
25641 of loops in which the data dependence analysis fails.
25643 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25645 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
25646 CDI_POST_DOMINATORS.
25647 (tree_if_conversion): Same.
25649 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25651 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
25653 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25655 * tree-if-conv.c: Update copyright years. Fix comments.
25658 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
25660 * builtin-types.def (BT_INT128): New primitive type.
25661 (BT_UINT128): Likewise.
25662 * c-common.c (c_common_r): Add __int128 keyword.
25663 (c_common_type_for_size): Handle __int128.
25664 (c_common_type_for_mode): Likewise.
25665 (c_common_signed_or_unsigned_type): Likewise.
25666 (c_common_nodes_and_builtins): Add builtin type
25667 if target supports 128-bit integer scalar.
25668 * c-common.h (enum rid): Add RID_INT128.
25669 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
25670 if target supports 128-bit integer scalar.
25671 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
25672 (finish_declspecs): Likewise.
25673 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
25674 (c_token_starts_declspecs): Likewise.
25675 (c_parser_declspecs): Likewise.
25676 (c_parser_attributes): Likewise.
25677 (c_parser_objc_selector): Likewise.
25678 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
25679 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
25680 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
25681 * tree.c (make_or_reuse_type): Likewise.
25682 (make_unsigned_type): Likewise.
25683 (build_common_tree_nodes_2): Likewise.
25684 * tree.h (enum integer_type_kind): Add itk_int128 and
25685 itk_unsigned_int128.
25686 (int128_integer_type_node): New define.
25687 (int128_unsigned_type_node): New define.
25688 * doc/extend.texi: Add documentation about __int128 type.
25690 2010-05-26 Richard Guenther <rguenther@suse.de>
25692 * tree-ssa-sccvn.c (copy_nary): Adjust.
25693 (copy_phis): Rename to ...
25694 (copy_phi): ... this. Adjust.
25695 (copy_references): Rename to ...
25696 (copy_reference): ... this. Adjust.
25697 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
25698 result into the valid table.
25700 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25702 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
25703 insn-config.h, insn-codes.h, recog.h, and optabs.h.
25705 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25707 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
25709 2010-05-26 Richard Guenther <rguenther@suse.de>
25711 * opts.c (common_handle_option): Handle OPT_Ofast.
25713 2010-05-26 Joseph Myers <joseph@codesourcery.com>
25715 * diagnostic.c: Don't include opts.h.
25716 (permissive_error_option): Define.
25717 (diagnostic_initialize): Take n_opts parameter. Allocate memory
25718 for classify_diagnostic. Don't use memset for
25719 classify_diagnostic. Initialize new and recently added fields.
25720 (diagnostic_classify_diagnostic): Use context->n_opts instead of
25722 (diagnostic_report_diagnostic): Pass context parameter to
25723 diagnostic_report_warnings_p. Use option_enabled and option_name
25724 hooks from context.
25725 (emit_diagnostic): Use permissive_error_option.
25726 (permerror): Likewise.
25727 * diagnostic.h: Don't include options.h.
25728 (struct diagnostic_context): Add n_opts, opt_permissive,
25729 inhibit_warnings, warn_system_headers, option_enabled and
25730 option_name fields. Change classify_diagnostic to a pointer.
25731 * opts-diagnostic.h: New file.
25732 * opts.c: Include opts-diagnostic.h.
25733 (common_handle_option): Set global_dc fields for -Wfatal-errors,
25734 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
25735 (option_name): New function.
25736 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
25737 (c_common_handle_option): Set global_dc->permissive for
25739 * c-common.c (c_cpp_error): Save and restore
25740 global_dc->warn_system_headers, not variable warn_system_headers.
25741 * toplev.c: Include opts-diagnostic.h.
25742 (general_init): Update call to diagnostic_initialize. Set
25743 global_dc->show_column, global_dc->option_enabled and
25744 global_dc->option_name.
25745 (process_options): Don't set global_dc fields here.
25746 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
25747 (diagnostic.o, opts.o, toplev.o): Update dependencies.
25749 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25751 * config/picochip/picochip.md (movsi): Split a movsi from a
25752 const after reload.
25754 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25756 * ggc-zone.c: Update copyright year.
25757 (poison_region): Mark memory for Valgrind as undefined before
25758 memset () call and inaccessible afterwards.
25759 (ggc_pch_total_size): Change type of i to int.
25761 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25763 * ggc-common.c (ggc_free_overhead): Allow empty slot.
25765 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25767 * ggc-common.c: Update copyright year.
25768 (ggc_rlimit_bound): Remove prototype. Compile only if
25769 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
25770 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
25771 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
25772 (ggc_min_heapsize_heuristic): Likewise.
25774 2010-05-26 Richard Guenther <rguenther@suse.de>
25776 PR rtl-optimization/44164
25777 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
25778 no-common access-path disambiguation.
25779 (indirect_ref_may_alias_decl_p): Adjust.
25780 (indirect_refs_may_alias_p): Likewise.
25781 (refs_may_alias_p_1): Likewise.
25783 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25785 * c-typeck.c: Do not include expr.h.
25787 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25789 * rtl.h (decl_default_tls_model): Move prototype from here...
25790 * output.h: ...to here.
25791 * c-decl.c: Do not include rtl.h.
25792 * c-pragma.c: Likewise.
25793 * c-parser.c: Likewise.
25794 * c-gimplify.c: Likewise. And also not hard-reg-set.
25795 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
25796 FIXME note for it. Add a FIXME note for expr.h.
25797 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
25798 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
25801 2010-05-26 Jakub Jelinek <jakub@redhat.com>
25804 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
25805 or total_size is larger than red zone size for non-V4 ABI, emit a
25806 stack_tie resp. frame_tie insn before stack pointer restore.
25807 * config/rs6000/rs6000.md (frame_tie): New insn.
25809 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
25811 * function.h (struct function): Add can_throw_non_call_exceptions bit.
25812 * lto-streamer-in.c (input_function): Stream it in.
25813 * lto-streamer-out.c (output_function): Stream it out.
25814 * function.c (allocate_struct_function): Set it.
25815 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
25816 for flag_non_call_exceptions.
25817 * cfgbuild.c (control_flow_insn_p): Likewise.
25818 (make_edges): Likewise.
25819 * cfgexpand.c (expand_stack_alignment): Likewise.
25820 * combine.c (distribute_notes): Likewise.
25821 * cse.c (cse_extended_basic_block): Likewise.
25822 * except.c (insn_could_throw_p): Likewise.
25823 * gcse.c (simple_mem): Likewise.
25824 * ipa-pure-const.c (check_call): Likewise.
25825 (check_stmt ): Likewise.
25826 * lower-subreg.c (lower-subreg.c): Likewise.
25827 * optabs.c (emit_libcall_block): Likewise.
25828 (prepare_cmp_insn): Likewise.
25829 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
25830 * postreload.c (rest_of_handle_postreload): Likewise.
25831 * reload1.c (reload_as_needed): Likewise.
25832 (emit_input_reload_insns): Likewise.
25833 (emit_output_reload_insns): Likewise.
25834 (fixup_abnormal_edges): Likewise.
25835 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
25836 * store-motion.c (find_moveable_store): Likewise.
25837 * tree-eh.c (stmt_could_throw_p): Likewise.
25838 (tree_could_throw_p): Likewise.
25839 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25840 * config/arm/arm.c (arm_expand_prologue): Likewise.
25841 (thumb1_expand_prologue): Likewise.
25842 * config/rx/rx.md (cbranchsf4): Likewise.
25844 * config/s390/s390.c (s390_emit_prologue): Likewise.
25845 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
25846 (inline_forbidden_into_p): New predicate.
25847 (expand_call_inline): Use it to forbid inlining.
25848 (tree_can_inline_p): Likewise.
25850 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25852 * config/i386/i386-c.c: Do not include rtl.h.
25853 * config/i386/t-i386: Update dependencies.
25855 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25857 * attribs.c: Do not include rtl.h.
25858 * Makefile.in: Update dependencies.
25860 2010-05-25 Anatoly Sokolov <aesok@post.ru>
25862 * double-int.h (double_int_and): New.
25863 * combine.c (try_combine): Clean up, use double_int_* and
25864 immed_double_int_const functions.
25866 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25868 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
25869 stderr to /dev/null instead of grep -q.
25870 * configure: Regenerate.
25872 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25874 * Makefile.in (EXCEPT_H): Fix typo.
25876 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
25878 * ira-build.c (update_conflict_hard_reg_costs): New.
25879 (ira_build): Call update_conflict_hard_reg_costs.
25881 2010-05-25 Jakub Jelinek <jakub@redhat.com>
25884 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
25886 (intersect_loc_chains): Walk the s2var's loc_chain together
25887 with s1node chain as long as the locations are equal, don't
25888 call find_loc_in_1pdv in that case.
25891 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
25892 (copy_bind_expr): ... instead of here.
25893 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
25894 if the block hasn't been remapped.
25895 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
25896 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
25898 2010-05-25 Richard Guenther <rguenther@suse.de>
25900 PR middle-end/44069
25901 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
25902 out-of-bounds array accesses.
25904 2010-05-25 Richard Guenther <rguenther@suse.de>
25906 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
25907 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
25908 (run_gcc): Re-organize to make cleanup easier.
25910 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25912 * config/s390/s390.c (optimization_options): Fix and move the
25913 flag_prefetch_loop_arrays override ...
25914 (override_options): ... here.
25916 2010-05-25 Joseph Myers <joseph@codesourcery.com>
25918 * diagnostic.c: Don't include plugin.h.
25919 (diagnostic_report_diagnostic): Don't handle plugins specially
25920 here. Pass context to internal_error callback.
25921 * diagnostic.h (struct diagnostic_context): Add context parameter
25922 to internal_error callback.
25923 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
25924 * plugin.h (struct diagnostic_context): Declare.
25925 (warn_if_plugins, plugins_internal_error_function): Declare.
25926 * toplev.c (general_init): Set global_dc->internal_error.
25927 * Makefile.in (diagnostic.o): Update dependencies.
25929 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
25931 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
25932 * config/rs6000/t-darwin64: New.
25933 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
25936 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
25939 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
25940 match the original (and intended) behaviour before r159557. This
25941 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
25944 2010-05-25 Richard Guenther <rguenther@suse.de>
25946 * doc/invoke.texi: Document -Ofast.
25947 * target.h (struct gcc_target): Add handle_ofast.
25948 * target-def.h (TARGET_HANDLE_OFAST): Add.
25949 (TARGET_INITIALIZER): Adjust.
25950 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
25951 * common.opt (Ofast): Add.
25953 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
25955 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
25956 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
25958 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
25961 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
25962 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
25963 false_rtx. Use false_rtx to compute the correct *ptest for reversed
25964 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
25966 2010-05-25 Jakub Jelinek <jakub@redhat.com>
25968 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
25969 DW_OP_minus with negated offset instead of DW_OP_plus.
25970 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
25972 2010-05-25 Wei Guozhi <carrot@google.com>
25974 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
25975 tst instruction and a new alternative.
25976 * config/arm/constraints.md (Pu): New constraint.
25978 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
25980 * function.c (assign_stack_local_1): Initialize variable
25981 to avoid warning when bootstrapping at -O3.
25983 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
25985 * configure.ac (all_lang_makefiles): Remove everything related to it.
25986 * configure: Regenerate.
25987 * Makefile.in: Fix reference to ada Make-lang.in.
25988 Remove support for LANG_MAKEFILES.
25990 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
25991 Sandra Loosemore <sandra@codesourcery.com>
25993 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
25994 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
25995 description. Add arm_neon_fp16_ok.
25996 (Add Options): Add arm_neon and arm_neon_fp16.
25998 2010-05-24 Joseph Myers <joseph@codesourcery.com>
26000 * diagnostic.c: Don't include flags.h.
26001 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
26002 context parameters. Check flags in the context passed as a parameter.
26003 (diagnostic_build_prefix): Add context parameter. Check
26004 show_column flag in context.
26005 (diagnostic_action_after_output): Check fatal_errors flag in context.
26006 (diagnostic_report_current_module): Check show_column flag in context.
26007 (default_diagnostic_starter): Update call to
26008 diagnostic_build_prefix.
26009 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
26010 (emit_diagnostic): Pass context to permissive_error_kind.
26011 (permerror): Pass context to permissive_error_kind.
26012 * diagnostic.h (struct diagnostic_context): Add show_column,
26013 pedantic_errors, permissive and fatal_errors fields.
26014 (diagnostic_build_prefix): Update prototype.
26016 * toplev.c (process_options): Set flags in global_dc from
26017 flag_show_column, flag_pedantic_errors, flag_permissive,
26019 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
26020 to diagnostic_build_prefix.
26021 * Makefile.in (diagnostic.o): Update dependencies.
26023 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
26025 * config/i386/ia32intrin.h (__crc32q): Define only if
26026 __SSE4_2__ is defined.
26028 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
26031 PR middle-end/43602
26032 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
26033 DECL_VISIBILITY_SPECIFIED.
26034 (emutls_decl): Set DECL_PRESERVE_P and copy
26035 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
26036 (emutls_finalize_control_var): New callback.
26037 (emutls_finish): Finalize emutls control variables.
26038 * toplev.c (compile_file): Move the call to emutls_finish ()
26039 before varpool_assemble_pending_decls ().
26041 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
26043 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
26044 added to the preprocessor condition.
26046 2010-05-24 Paul Brook <paul@codesourcery.com>
26048 * gengtype-lex.l: Add HARD_REG_SET.
26049 * expr.c (expand_expr_real_1): Record writes to hard registers.
26050 * function.c (rtl_data): Add asm_clobbers.
26051 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
26052 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
26053 Use crtl->asm_clobbers.
26055 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26057 * doc/makefile.texi (Makefile): Mention stages 'profile'
26058 and 'feedback' for profiledbootstrap.
26060 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
26063 * config/i386/i386.c (def_builtin): Properly check
26064 OPTION_MASK_ISA_64BIT.
26066 2010-05-23 Joseph Myers <joseph@codesourcery.com>
26068 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
26069 typedefs with different but compatible types. Allow duplicate
26070 typedefs with the same type except for pedantic non-C1X, but give
26071 warning for variably modified types.
26072 * c-typeck.c (tagged_types_tu_compatible_p,
26073 function_types_compatible_p, type_lists_compatible_p,
26074 comptypes_internal): Add parameter different_types_p; set
26075 *different_types_p for different but compatible types. All
26077 (comptypes_check_different_types): New.
26078 * c-tree.h (comptypes_check_different_types): Declare.
26080 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26082 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
26083 * jump.c: Include basic-block.h.
26084 * profile.c: Likewise.
26085 * tree-profile.c: Likewise.
26086 * coverage.c: Likewise.
26087 * basic-block.h (optimize_function_for_size_p): Move to function.h.
26088 (optimize_function_for_speed_p): Likewise.
26089 * function.h (optimize_function_for_size_p,
26090 optimize_function_for_speed_p): Moved here from basic-block.h.
26091 * Makefile.in: Update dependencies.
26093 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26095 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
26096 before calling make; allow override through $MAKE.
26097 * doc/invoke.texi (Optimize Options): Document override.
26099 2010-05-23 Anatoly Sokolov <aesok@post.ru>
26101 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
26102 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26103 (rs6000_mode_dependent_address_ptr): Make static.
26104 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26105 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
26108 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
26111 * config/i386/i386.c: Make sure that the correct regparm is passed.
26113 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26115 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
26116 * sbitmap.c: ...to here to internalize sbitmap element access.
26117 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
26118 Explain why basic-block.h is included.
26119 * function.h: Include tm.h for CUMULATIVE_ARGS.
26120 * Makefile.in: Update dependencies.
26122 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26124 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
26126 * sbitmap.h (struct sbitmap_def): Do not typedef here.
26127 * sbitmap.c: Include sbitmap.h.
26128 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
26129 hard-reg-set.h. Split everything related to regsets out from here...
26130 * regset.h: ...to here. New file.
26131 * df.h: Include regset.h and sbitmap.h.
26132 * tree-flow.h: Likewise.
26133 * cfgloop.h: Likewise.
26134 * except.h: Do not include sbitmap.h. Include hashtab.h.
26135 * cgraph.h: Include vec.h and function.h.
26136 * reload.h (struct insn_chain): Change types of live_throughout
26137 and dead_or_set from regset_head to bitmap_head.
26138 (compute_use_by_pseudos): Be defined also if regset.h is not included.
26139 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
26140 spilled_regs from regset_head to bitmap_head to avoid dependency
26142 * sel-sched-ir.h: Include regset.h.
26143 * reload.c: Include df.h before reload.h.
26144 * caller-save.c: Likewise.
26145 * reload1.c: Likewise.
26147 (mark_elimination): Update type of r to bitmap, consistent with
26149 * dominance.c: Include bitmap.h.
26150 * modulo-sched.c: Include df.h.
26151 * cfganal.c: Include bitmap.h and sbitmap.h.
26152 * cfgbuild.c: Include sbitmap.h.
26153 * lcm.c: Include sbitmap.h.
26154 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
26155 * domwalk.c: Include sbitmap.h, exclude ggc.h.
26156 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
26157 * cselib.c: Include bitmap.h.
26158 * tree-optimize.c: Include regset.h.
26159 * stmt.c: Include bitmap.h.
26160 * Makefile.in: Update dependencies.
26162 2010-05-22 Jan Hubicka <jh@suse.cz>
26164 * cgraph.h (struct varpool_node): Add same_comdat_group.
26165 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
26167 (output_varpool): Update call of lto_output_varpool_node.
26168 (input_varpool): Read same_comdat_group pointer.
26169 (input_varpool_1): Fixup same_comdat_group pointer.
26170 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
26171 group is needed, all are.
26172 * varpool.c (varpool_remove_node): Remove node from same comdat group
26174 (varpool_analyze_pending_decls): Walk same comdat groups.
26176 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26178 * rtl.h (union rtunion_def): Remove rt_bit member.
26179 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
26180 * print-rtl (print_rtx): Do not print the member.
26181 * gengtype.c (adjust_field_rtx_def): Do not handle it.
26182 * gengenrtl.c (type_from_format): Likewise.
26183 (accessor_from_format): Likewise.
26185 2010-05-22 Joseph Myers <joseph@codesourcery.com>
26187 * dbgcnt.c: Include toplev.h instead of errors.h.
26188 * ira-emit.c: Don't include errors.h.
26189 * ira.c: Include toplev.h instead of errors.h.
26190 * lto-compress.c: Include toplev.h instead of errors.h.
26191 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
26192 ira.o, dbgcnt.o): Update dependencies.
26194 2010-05-22 Richard Guenther <rguenther@suse.de>
26196 * gimple.c (gimple_types_compatible_p): Check type qualifications
26197 before merging pointer to complete and pointer to incomplete type.
26198 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
26199 we use our own resolution algorithm. The gold linker plugin
26200 doesn't do the job we want it to do here.
26202 2010-05-22 Anatoly Sokolov <aesok@post.ru>
26204 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26205 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26206 (sparc_mode_dependent_address_p): New function.
26208 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26210 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
26212 * timevar.c: Do not include any core headers.
26213 (timevar_print): De-i18n-ize.
26214 (print_time): Likewise.
26215 * timevar.h (timevar_push, timevar_pop): Make inline functions.
26217 2010-05-21 Joseph Myers <joseph@codesourcery.com>
26219 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
26221 (diagnostic_initialize): Initialize x_data not last_function.
26222 (diagnostic_report_current_function): Move to tree-diagnostic.c.
26223 (default_diagnostic_starter): Call
26224 diagnostic_report_current_module not
26225 diagnostic_report_current_function.
26226 (diagnostic_report_diagnostic): Initialize x_data not
26228 (verbatim): Likewise.
26229 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
26231 (struct diagnostic_context): Change last_function to x_data.
26232 (diagnostic_auxiliary_data): Replace with
26233 diagnostic_context_auxiliary_data and
26234 diagnostic_info_auxiliary_data.
26235 (diagnostic_last_function_changed, diagnostic_set_last_function,
26236 diagnostic_report_current_function): Move to tree-diagnostic.h.
26237 (print_declaration, dump_generic_node, print_generic_stmt,
26238 print_generic_stmt_indented, print_generic_expr,
26239 print_generic_decl, debug_c_tree, dump_omp_clauses,
26240 print_call_name, debug_generic_expr, debug_generic_stmt,
26241 debug_tree_chain, default_tree_printer): Move to
26242 tree-pretty-print.h.
26243 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
26244 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
26245 gimple-pretty-print.h.
26246 * pretty-print.c: Don't include tree.h
26247 (pp_base_format): Don't handle %K here.
26248 (pp_base_tree_identifier): Move to tree-pretty-print.c.
26249 * pretty-print.h (text_info): Change abstract_origin to x_data.
26250 (pp_tree_identifier, pp_unsupported_tree,
26251 pp_base_tree_identifier): Move to tree-pretty-print.h.
26252 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
26253 tree-pretty-print.h: New files.
26254 * tree-pretty-print.c: Include tree-pretty-print.h.
26255 (percent_K_format): New. Moved from pretty-print.c.
26256 (pp_base_tree_identifier): Move from pretty-print.c.
26257 * c-objc-common.c: Include tree-pretty-print.h.
26258 (c_tree_printer): Handle %K here.
26259 * langhooks.c: Include tree-diagnostic.h.
26260 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
26261 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
26262 (default_tree_printer): Handle %K using percent_K_format.
26263 (general_init): Use default_tree_diagnostic_starter.
26264 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
26265 (free_lang_data): Use default_tree_diagnostic_starter.
26266 * c-pretty-print.c: Include tree-pretty-print.h.
26267 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26268 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26269 * dwarf2out.c: Include tree-pretty-print.h.
26270 * except.c: Include tree-pretty-print.h.
26271 * gimple-pretty-print.c: Include tree-pretty-print.h and
26272 gimple-pretty-print.h.
26273 * gimplify.c: Include tree-pretty-print.h.
26274 * graphite-poly.c: Include tree-pretty-print.h and
26275 gimple-pretty-print.h.
26276 * ipa-cp.c: Include tree-pretty-print.h.
26277 * ipa-inline.c: Include gimple-pretty-print.h.
26278 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26279 * ipa-pure-const.c: Include gimple-pretty-print.h.
26280 * ipa-struct-reorg.c: Include tree-pretty-print.h and
26281 gimple-pretty-print.h.
26282 * ipa-type-escape.c: Include tree-pretty-print.h.
26283 * print-rtl.c: Include tree-pretty-print.h.
26284 * print-tree.c: Include gimple-pretty-print.h.
26285 * sese.c: Include tree-pretty-print.h.
26286 * tree-affine.c: Include tree-pretty-print.h.
26287 * tree-browser.c: Include tree-pretty-print.h.
26288 * tree-call-cdce.c: Include gimple-pretty-print.h.
26289 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26290 * tree-chrec.c: Include tree-pretty-print.h.
26291 * tree-data-ref.c: Include tree-pretty-print.h and
26292 gimple-pretty-print.h.
26293 * tree-dfa.c: Include tree-pretty-print.h.
26294 * tree-if-conv.c: Include tree-pretty-print.h and
26295 gimple-pretty-print.h.
26296 * tree-inline.c: Include tree-pretty-print.h.
26297 * tree-into-ssa.c: Include tree-pretty-print.h and
26298 gimple-pretty-print.h.
26299 * tree-nrv.c: Include tree-pretty-print.h.
26300 * tree-object-size.c: Include tree-pretty-print.h and
26301 gimple-pretty-print.h.
26302 * tree-outof-ssa.c: Include tree-pretty-print.h and
26303 gimple-pretty-print.h.
26304 * tree-parloops.c: Include tree-pretty-print.h and
26305 gimple-pretty-print.h.
26306 * tree-predcom.c: Include tree-pretty-print.h and
26307 gimple-pretty-print.h.
26308 * tree-scalar-evolution.c: Include tree-pretty-print.h and
26309 gimple-pretty-print.h.
26310 * tree-sra.c: Include tree-pretty-print.h.
26311 * tree-ssa-address.c: Include tree-pretty-print.h.
26312 * tree-ssa-alias.c: Include tree-pretty-print.h.
26313 * tree-ssa-ccp.c: Include tree-pretty-print.h and
26314 gimple-pretty-print.h.
26315 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
26316 * tree-ssa-copy.c: Include tree-pretty-print.h and
26317 gimple-pretty-print.h.
26318 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
26319 * tree-ssa-dce.c: Include tree-pretty-print.h and
26320 gimple-pretty-print.h.
26321 * tree-ssa-dom.c: Include tree-pretty-print.h and
26322 gimple-pretty-print.h.
26323 * tree-ssa-dse.c: Include gimple-pretty-print.h.
26324 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
26325 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
26326 * tree-ssa-live.c: Include tree-pretty-print.h and
26327 gimple-pretty-print.h.
26328 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
26329 gimple-pretty-print.h.
26330 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
26331 gimple-pretty-print.h.
26332 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
26333 gimple-pretty-print.h.
26334 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
26335 gimple-pretty-print.h.
26336 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
26337 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
26338 * tree-ssa-operands.c: Include tree-pretty-print.h and
26339 gimple-pretty-print.h.
26340 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
26341 gimple-pretty-print.h.
26342 * tree-ssa-pre.c: Include tree-pretty-print.h and
26343 gimple-pretty-print.h.
26344 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
26345 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
26346 gimple-pretty-print.h.
26347 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
26348 gimple-pretty-print.h.
26349 * tree-ssa-sink.c: Include gimple-pretty-print.h.
26350 * tree-ssa-ter.c: Include tree-pretty-print.h and
26351 gimple-pretty-print.h.
26352 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
26353 * tree-ssa.c: Include tree-pretty-print.h and
26354 gimple-pretty-print.h.
26355 * tree-stdarg.c: Include gimple-pretty-print.h.
26356 * tree-switch-conversion.c: Include gimple-pretty-print.h.
26357 * tree-tailcall.c: Include tree-pretty-print.h and
26358 gimple-pretty-print.h.
26359 * tree-vect-data-refs.c: Include tree-pretty-print.h and
26360 gimple-pretty-print.h.
26361 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
26362 gimple-pretty-print.h.
26363 * tree-vect-loop.c: Include tree-pretty-print.h and
26364 gimple-pretty-print.h.
26365 * tree-vect-patterns.c: Include gimple-pretty-print.h.
26366 * tree-vect-slp.c: Include tree-pretty-print.h and
26367 gimple-pretty-print.h.
26368 * tree-vect-stmts.c: Include tree-pretty-print.h and
26369 gimple-pretty-print.h.
26370 * tree-vectorizer.c: Include tree-pretty-print.h.
26371 * tree-vrp.c: Include tree-pretty-print.h and
26372 gimple-pretty-print.h.
26373 * value-prof.c: Include tree-pretty-print.h and
26374 gimple-pretty-print.h.
26375 * var-tracking.c: Include tree-pretty-print.h.
26376 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
26377 (tree-diagnostic.o): New dependencies.
26378 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
26379 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
26380 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
26381 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
26382 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
26383 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
26384 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
26385 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
26386 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
26387 tree-ssa-address.o, tree-ssa-loop-niter.o,
26388 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
26389 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
26390 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
26391 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
26392 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
26393 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
26394 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
26395 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
26396 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
26397 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
26398 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
26399 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
26400 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
26401 tree-switch-conversion.o, var-tracking.o, value-prof.o,
26402 cfgexpand.o, pretty-print.o): Update dependencies.
26404 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
26406 * tree-ssa-structalias.c: Remove tm_p.h from include.
26408 2010-05-21 Jeff Law <law@redhat.com>
26410 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
26412 2010-05-21 Jason Merrill <jason@redhat.com>
26414 * tree-eh.c (cleanup_is_dead_in): New.
26415 (lower_try_finally): Don't generate a dead cleanup region.
26416 (lower_cleanup): Likewise.
26418 2010-05-21 Jakub Jelinek <jakub@redhat.com>
26421 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
26422 unchain each use from the cyclic next_regno_use chain first.
26424 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26426 * real: Do not include gmp.h, mpfr.h, and mpc.h.
26427 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
26428 (real_value_negate, real_value_abs): New prototypes.
26429 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
26430 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
26431 new include file for interface between MPFR and REAL_VALUE_TYPE.
26432 * real.c: Include realmpfr.h.
26433 (real_arithmetic2): Remove legacy function.
26434 (real_value_negate): New.
26435 (real_value_abs): New.
26436 (mfpr_from_real, real_from_mpfr): Move from here...
26437 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
26438 * builtins.c: Include realmpfr.h.
26439 * fold-const.c: Include realmpfr.h.
26440 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
26441 (fold_negate_const): Likewise.
26442 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
26443 * toplev.c: Include realmpfr.h.
26444 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
26445 and real_value_negate.
26446 * fixed-value.c (check_real_for_fixed_mode): Likewise.
26447 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
26448 (vfp3_const_double_index): Likewise.
26449 (arm_print_operand): Likewise.
26450 * Makefile.in: Update dependencies.
26452 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26454 * config/s390/s390.c (override_options): Increase the default
26455 of max-completely-peel-times.
26457 2010-05-21 Julian Brown <julian@codesourcery.com>
26458 Mark Mitchell <mark@codesourcery.com>
26460 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
26461 sibling calls for Thumb-1.
26462 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
26463 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
26465 (*call_insn, *call_value_insn): Don't use for Thumb-2.
26466 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
26468 (return): New expander.
26469 (*arm_return): New name for ARM return insn.
26470 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
26472 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
26474 * config.gcc (sparc64-*-rtems*): New target.
26476 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
26478 * tree.c (build_function_decl_skip_args): Fix grammar.
26479 (build_function_type_list_1): Fix typos, adjust formatting.
26481 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26483 * tree.h: Include real.h and fixed-value.h as basic datatypes.
26484 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
26485 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
26486 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
26487 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
26488 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
26489 tree-pretty-print.c, tree-loop-distribution.c,
26490 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
26491 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
26492 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
26493 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
26494 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
26495 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
26496 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
26497 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
26498 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
26499 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
26500 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
26501 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
26502 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
26503 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
26504 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
26505 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
26506 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
26507 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
26508 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
26509 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
26510 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
26511 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
26512 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
26513 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
26514 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
26515 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
26516 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
26517 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
26518 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
26519 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
26520 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
26521 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
26522 config/score/score7.c, config/score/score.c, config/arm/arm.c,
26523 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
26524 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
26525 config/bfin/bfin.c: Clean up redundant includes.
26526 * Makefile.in: Update accordingly.
26528 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
26530 PR middle-end/44204
26531 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
26532 statement has no arguments.
26534 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
26537 * varasm.c (emutls_decl): Merge attributes to new decl.
26539 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
26541 PR middle-end/44101
26542 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
26543 around the uniquized constructor if its type requires a conversion.
26545 2010-05-21 Jakub Jelinek <jakub@redhat.com>
26548 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
26549 at -O0 goto_locus of any of the incoming edges differs from
26550 goto_locus of outgoing edge, or gimple_location of any of the
26553 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
26555 * ira.c (ira_non_ordered_class_hard_regs): Define.
26556 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
26557 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
26558 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
26559 cost of unaligned hard regs when allocating multi-reg pseudos.
26561 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
26563 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
26564 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
26565 for TARGET_NO_FLOAT.
26566 * config/mips/mips.c (mips_file_start): Expand conditional expression
26567 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
26568 (mips_override_options): Move -mno-float override -msoft-float and
26570 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
26571 Condition(TARGET_SUPPORTS_NO_FLOAT).
26572 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
26573 __mips_no_float here.
26574 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
26575 (TARGET_SUPPORTS_NO_FLOAT): Define.
26576 * config/mips/sdemtk.opt: Delete.
26578 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
26580 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
26582 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
26585 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
26586 * configure: Regenerate.
26587 * config.in: Regenerate.
26588 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
26589 instead of sahf only for 64bit targets.
26591 2010-05-20 Jakub Jelinek <jakub@redhat.com>
26594 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
26595 setup_ref_regs for DEBUG_INSNs.
26597 2010-05-20 Jan Hubicka <jh@suse.cz>
26599 PR middle-end/44197
26600 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
26602 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
26605 * df-scan.c (df_ref_compare): Stabilize sort.
26607 2010-05-20 Jakub Jelinek <jakub@redhat.com>
26609 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
26610 argument. Don't use DW_OP_piece if offset is non-zero,
26611 put offset into second DW_OP_bit_piece argument.
26612 (dw_sra_loc_expr): Adjust callers. For memory expressions
26615 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
26618 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
26619 settings for 16-bit-constant "addo" alternative.
26621 2010-05-19 James E. Wilson <wilson@codesourcery.com>
26623 * config/mips/mips-dsp.md (add<DSPV:mode>3,
26624 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
26627 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
26628 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
26631 2010-05-19 Joseph Myers <joseph@codesourcery.com>
26633 * diagnostic.c (FLOAT, FFS): Don't undefine.
26634 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
26635 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
26638 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26640 * combine.c (propagate_for_debug): Call make_compound_operation
26641 on the source value.
26642 (try_combine): When implementing a split chosen by find_split_point,
26643 either copy i2src or set it to null. Assert that i2src is not null
26644 before substituting into CALL_INSN_FUNCTION_USAGE.
26646 2010-05-19 Anatoly Sokolov <aesok@post.ru>
26648 * double-int.h (double_int_ior): New function.
26649 * tree.h (build_int_cst_wide_type): Remove.
26650 * tree.c (build_int_cst_wide_type): Remove.
26651 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
26652 of build_int_cst_wide_type.
26653 * stor-layout.c (set_sizetype): (Ditto.).
26654 * dojump.c (do_jump): Use build_int_cstu instead of
26655 build_int_cst_wide_type.
26657 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
26659 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
26660 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
26661 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
26662 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
26663 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
26664 propagate the 'data' argument to copy_tree_r.
26665 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
26666 Propagate 'data' argument to walk_tree.
26667 (copy_if_shared): New function.
26668 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
26669 (unmark_visited): New function.
26670 (unshare_body): Call copy_if_shared instead of doing it manually.
26671 (unvisit_body): Call unmark_visited instead of doing it manually.
26673 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
26675 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
26676 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
26677 * hooks.c: Likewise.
26678 * target-def.h (TARGET_FOLD_BUILTIN): Define to
26679 hook_tree_tree_int_treep_bool_null.
26680 * target.h (struct gcc_target): Update signature of fold_builtin
26682 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
26683 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
26684 instead of the call expression.
26685 (fold_builtin_call_array): Pass n and argarray directly.
26686 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
26688 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
26689 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
26690 `i' and use it in place of `arity'.
26691 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
26692 Dereference `args' directly.
26693 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
26695 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26697 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26699 (Directives): Document optional dg-require-effective-target
26702 2010-05-19 Richard Guenther <rguenther@suse.de>
26705 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
26707 2010-05-19 Richard Guenther <rguenther@suse.de>
26709 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
26710 * common.opt (fwhopr=): New.
26711 * opts.c (common_handle_option): Handle OPT_fwhopr.
26712 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
26713 * collect2.c (main): Match -fwhopr*.
26714 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
26715 Execute ltrans stage in parallel when jobs is bigger than 1.
26717 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26719 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
26720 pentiumpro on Solaris 8/x86 with Sun as.
26721 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
26723 (gcc_cv_as_ix86_quad): Check for .quad directive.
26724 * configure: Regenerate.
26725 * config.in: Regenerate.
26726 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
26728 2010-05-19 Martin Jambor <mjambor@suse.cz>
26730 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
26731 also for indirect edges. Actual printing moved...
26732 (ipa_print_node_jump_functions_for_edge): ...here.
26733 (ipa_compute_jump_functions): Renamed to
26734 ipa_compute_jump_functions_for_edge and made static.
26735 (ipa_compute_jump_functions): New function.
26736 (make_edge_direct_to_target): Check if the number of arguments on
26737 the newly direct edge is the same as the number of parametrs of
26739 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
26740 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
26741 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
26742 analysis functions unconditionally, call the new
26743 ipa_analyze_params_uses on the node instead of every edge.
26745 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
26747 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
26749 (dump_mem_ref): Adopt debug code to handle a tree as step. This
26750 also checks for a constant int vs. non-constant but
26751 loop-invariant steps.
26752 (find_or_create_group): Change the sort algorithm to only consider
26753 steps that are constant ints.
26754 (idx_analyze_ref): Adopt code to handle a tree instead of a
26755 HOST_WIDE_INT for step.
26756 (gather_memory_references_ref): Handle tree instead of int and be
26757 prepared to see a NULL_TREE.
26758 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
26759 prefetches if the step cannot be calculated at compile time.
26760 (issue_prefetch_ref): Issue prefetches for non-constant but
26761 loop-invariant steps.
26763 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26766 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26768 * tree.h (build_call_list): Remove.
26769 * tree.c (build_call_list): Remove.
26771 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26773 * tree.h (build_call_list): Remove.
26774 * tree.c (build_call_list): Remove.
26776 2010-05-18 Jan Hubicka <jh@suse.cz>
26778 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
26780 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
26782 PR rtl-optimization/43332
26783 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
26785 2010-05-18 Anatoly Sokolov <aesok@post.ru>
26787 * tree.h (build_int_cstu): Implement as static inline.
26788 * tree.c (build_int_cstu): Remove function.
26789 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
26792 2010-05-18 Richard Guenther <rguenther@suse.de>
26795 * lto-wrapper.c (verbose): New variable. Initialize from -v.
26796 (debug): Initialize from -save-temps.
26797 (collect_execute): Print command-line when verbose.
26798 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
26799 for ltrans invocation. Produce -dumpbase flag again.
26800 (process_args): Remove.
26802 * collect2.c (maybe_run_lto_and_relink): Only pass object
26803 files to lto-wrapper.
26804 * gcc.c (LINK_COMMAND_SPEC): Likewise.
26806 2010-05-18 Jan Hubicka <jh@suse.cz>
26808 * opts.c (decode_options): Do not disable whopr at ipa_cp.
26809 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
26811 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26814 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
26816 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
26819 2010-05-18 Jakub Jelinek <jakub@redhat.com>
26822 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
26823 rtx_equal_p inline.
26825 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26827 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
26828 lto-macho as lto_binary_reader.
26830 * darwin.c (darwin_asm_named_section): Do not add assembler comment
26831 after .section directive; just print it before the directive instead.
26833 2010-05-17 Jan Hubicka <jh@suse.cz>
26835 * cgraph.c (cgraph_create_virtual_clone): Only check
26836 versionable_function_p when not in wpa and checking is enabled.
26837 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
26838 there are no more functions to materialize.
26840 2010-05-17 Jan Hubicka <jh@suse.cz>
26842 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
26843 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
26845 (output_cgraph): Call output_cgraph_opt_summary.
26846 (input_cgrpah): Call input_cgraph_opt_summary.
26847 (output_cgraph_opt_summary_p, output_node_opt_summary,
26848 input_node_opt_summary, input_cgraph_opt_section): New functions.
26849 * lto-section-in.c (lto_section_name): Add cgraphopt.
26850 * tree-inline.c (tree_function_versioning): Handle parm_num.
26851 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
26852 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
26854 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
26856 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
26857 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
26858 the insn to prefetch ratio heuristic to loops with known trip count.
26860 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
26862 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
26863 (schedule_prefetches): Do not generate a prefetch if the unroll factor
26864 is far from what is required by the prefetch.
26866 2010-05-17 Jan Hubicka <jh@suse.cz>
26868 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
26869 (ipcp_estimate_growth): Likewise.
26870 (ipcp_const_param_count): Likewise.
26871 (ipcp_insert_stage): Likewise.
26872 * ipa-prop.c (visit_load_for_mod_analysis): New function.
26873 (visit_store_addr_for_mod_analysis): Set used flag.
26874 (ipa_detect_param_modifications): Set used flag for SSE params;
26875 update use of walk_stmt_load_store_addr_ops.
26876 (ipa_print_node_params): Print used flag.
26877 (ipa_write_node_info): Stream used flag.
26878 (ipa_read_node_info): Likewise.
26879 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
26880 (ipa_is_param_used): New function.
26881 (lto_ipa_fixup_call_notes): Remove unused declaration.
26883 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26886 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
26887 * configure: Regenerate.
26888 * config.in: Regenerate.
26889 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
26890 !HAVE_AS_IX86_REP_LOCK_PREFIX.
26891 Don't emit whitespace.
26892 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
26893 (*rep_movsi): Likewise.
26894 (*rep_movsi_rex64): Likewise.
26895 (*rep_movqi): Likewise.
26896 (*rep_movqi_rex64): Likewise.
26897 (*rep_stosdi_rex64): Likewise.
26898 (*rep_stossi): Likewise.
26899 (*rep_stossi_rex64): Likewise.
26900 (*rep_stosqi): Likewise.
26901 (*rep_stosqi_rex64): Likewise.
26902 (*cmpstrnqi_nz_1): Use {%;} after repz.
26903 (*cmpstrnqi_nz_rex_1): Likewise.
26904 (*cmpstrnqi_1): Likewise.
26905 (*cmpstrnqi_rex_1): Likewise.
26906 (*strlenqi_1): Use {%;} after repnz.
26907 (*strlenqi_rex_1): Likewise.
26908 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
26909 (*sync_compare_and_swap<mode>): Likewise.
26910 (sync_double_compare_and_swap<mode>): Likewise.
26911 (*sync_double_compare_and_swapdi_pic): Likewise.
26912 (sync_old_add<mode>): Likewise.
26913 (sync_add<mode>): Likewise.
26914 (sync_sub<mode>): Likewise.
26915 (sync_<code><mode>): Likewise.
26917 2010-05-17 Martin Jambor <mjambor@suse.cz>
26919 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
26920 otr_token and polymorphic.
26921 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
26922 (cgraph_clone_edge): Copy the above fields.
26923 * tree.c (get_binfo_at_offset): New function.
26924 * tree.h (get_binfo_at_offset): Declare.
26925 * ipa-prop.h (enum jump_func_type): Added known_type jump function
26926 type, reordered items, updated comments.
26927 (union jump_func_value): Added base_type field, reordered fields.
26928 (enum ipa_lattice_type): Moved down in the file.
26929 (struct ipa_param_descriptor): New field polymorphic.
26930 (ipa_is_param_polymorphic): New function.
26931 * ipa-prop.c: Include gimple.h and gimple-fold.h.
26932 (ipa_print_node_jump_functions): Print known type jump functions.
26933 (compute_complex_pass_through): Renamed to...
26934 (compute_complex_assign_jump_func): this.
26935 (compute_complex_ancestor_jump_func): New function.
26936 (compute_known_type_jump_func): Likewise.
26937 (compute_scalar_jump_functions): Create known type and complex ancestor
26939 (ipa_note_param_call): New parameter polymorphic, set the corresponding
26940 flag in the call note accordingly.
26941 (ipa_analyze_call_uses): Renamed to...
26942 (ipa_analyze_indirect_call_uses): this. New parameter target, define
26943 variable var only in the block where it is used.
26944 (ipa_analyze_virtual_call_uses): New function.
26945 (ipa_analyze_call_uses): Likewise.
26946 (combine_known_type_and_ancestor_jfs): Likewise.
26947 (update_jump_functions_after_inlining): Implemented handling of a
26948 number of new jump function types combination.
26949 (print_edge_addition_message): Removed.
26950 (make_edge_direct_to_target): New function.
26951 (try_make_edge_direct_simple_call): Likewise.
26952 (try_make_edge_direct_virtual_call): Likewise.
26953 (update_call_notes_after_inlining): Renamed to...
26954 (update_indirect_edges_after_inlining): this. Moved edge creation for
26955 indirect calls to try_make_edge_direct_simple_call, also calls
26956 try_make_edge_direct_virtual_call for virtual calls.
26957 (ipa_print_node_params): Changed the header message.
26958 (ipa_write_jump_function): Stream also known type jump functions.
26959 (ipa_read_jump_function): Likewise.
26960 (ipa_write_indirect_edge_info): Stream new fields in
26961 cgraph_indirect_call_info.
26962 (ipa_read_indirect_edge_info): Likewise.
26963 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
26966 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26968 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
26970 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
26972 * tree.h (CALL_EXPR_ARGS): Delete.
26973 (call_expr_arglist): Delete.
26974 * tree.c (call_expr_arglist): Delete.
26975 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
26976 targetm.fold_builtin.
26977 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
26978 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
26979 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
26980 arglist parameter. Use CALL_EXPR_ARG.
26981 (picochip_expand_builtin_3op): Likewise.
26982 (picochip_expand_builtin_2opvoid): Likewise.
26983 (picochip_expand_array_get): Likewise.
26984 (picochip_expand_array_put): Likewise.
26985 (picochip_expand_array_testport): Likewise.
26986 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
26987 rather than arglist.
26988 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
26990 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
26991 than TREE_VALUE and TREE_CHAIN.
26992 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
26993 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
26996 2010-05-17 Jakub Jelinek <jakub@redhat.com>
26999 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
27000 to have no fallthru edge.
27002 PR middle-end/44102
27003 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
27004 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
27005 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
27006 add BARRIER after previous bb if needed.
27008 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
27010 * tree.c (build_function_type_list_1): Remove bogus assert condition.
27012 2010-05-17 Alan Modra <amodra@gmail.com>
27014 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
27015 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
27016 with copy_reg rtx param.
27017 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
27018 Correct cases where code for ABI_V4 did not initialise the reg
27019 used to access frame. Also leave frame_reg_rtx as sp for large
27020 frames that save no regs.
27022 2010-05-17 Martin Jambor <mjambor@suse.cz>
27024 PR middle-end/44133
27025 * tree-sra.c (create_access_replacement): New parameter rename, mark
27026 the replaement for renaming only when it is true.
27027 (get_access_replacement): Pass true in the rename parameter of
27028 create_access_replacement.
27029 (get_unrenamed_access_replacement): New function.
27030 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
27031 replacement declaration from it.
27033 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
27035 * function.c (try_fit_stack_local, add_frame_space): New static
27037 (assign_stack_local_1): Use them. Look for opportunities to use
27038 space previously wasted on alignment.
27039 * function.h (struct frame_space): New.
27040 (struct rtl_data): Add FRAME_SPACE_LIST member.
27041 * reload1.c (something_was_spilled): New static variable.
27042 (alter_reg): Set it.
27043 (reload): Test it in addition to testing if the frame size changed.
27045 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
27047 * config/s390/s390.c: Define sane prefetch settings and activate
27048 flag_prefetch_loop_arrays on -O3.
27049 * config/s390/s390.h: Declare that read can use write prefetch.
27051 2010-05-17 Jakub Jelinek <jakub@redhat.com>
27053 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
27056 2010-05-16 Jan Hubicka <jh@suse.cz>
27058 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
27059 function body; do not check stdarg field of struct function.
27061 2010-05-16 Jan Hubicka <jh@suse.cz>
27063 * cgraph.c (dump_cgraph_node): Dump versionable flag.
27064 * cgraph.h (cgraph_local_info): Add versionable flag.
27065 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
27066 (ipcp_versionable_function_p): Use it.
27067 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27070 2010-05-16 Jan Hubicka <jh@suse.cz>
27072 * cgraph.c (cgraph_clone_node): Take decl argument and insert
27073 clone into hash when it is different from orig.
27074 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
27075 * cgraph.h (cgraph_clone_node): Update prototype.
27076 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
27077 (lto_cgraph_encoder_delete): Delete body map.
27078 (lto_cgraph_encoder_size): Move to header.
27079 (lto_cgraph_encoder_encode_body_p,
27080 lto_set_cgraph_encoder_encode_body): New.
27081 (lto_output_node): Do not take written_decls argument; output clone_of
27083 (add_node_to): Add include_body_argument; call
27084 lto_set_cgraph_encoder_encode_body on master of the clone.
27085 (add_references): Update use of add_node_to.
27086 (compute_ltrans_boundary): Likewise.
27087 (output_cgraph): Do not create written_decls bitmap.
27088 (input_node): Take nodes argument; stream in clone_of correctly.
27089 (input_cgraph_1): Update use of input_node.
27090 * lto-streamer-out.c (lto_output): Use encoder info to decide
27091 what bodies to output.
27092 * ipa-inline.c (cgraph_clone_inlined_nodes,
27093 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
27094 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
27095 (lto_cgraph_encoder_size): Define here.
27096 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
27099 2010-05-16 Richard Guenther <rguenther@suse.de>
27101 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
27103 * ipa-type-escape.c (gate_type_escape_vars): Run when
27104 -fipa-struct-reorg runs.
27105 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
27106 * common.opt (fipa-type-escape): Remove.
27108 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27110 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
27111 (decode_options): Likewise.
27112 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
27114 2010-05-16 Jan Hubicka <jh@suse.cz>
27116 * ipa.c (function_and_variable_visibility): Also bring local all
27119 2010-05-16 Richard Guenther <rguenther@suse.de>
27121 * alias.c (nonoverlapping_memrefs_p): Remove use of
27122 IPA type-escape information.
27124 2010-05-16 Joseph Myers <joseph@codesourcery.com>
27126 * c-common.c (c_common_reswords): Add _Static_assert for C.
27127 * c-parser.c (c_token_starts_declaration,
27128 c_parser_next_token_starts_declaration,
27129 c_parser_static_assert_declaration_no_semi,
27130 c_parser_static_assert_declaration): New.
27131 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
27132 Handle static assertions if static_assert_ok.
27133 (c_parser_external_declaration, c_parser_declaration_or_fndef,
27134 c_parser_compound_statement_nostart, c_parser_label,
27135 c_parser_for_statement, c_parser_objc_methodprotolist,
27136 c_parser_omp_for_loop): All callers of
27137 c_parser_declaration_or_fndef changed.
27138 (c_parser_struct_declaration): Handle static assertions.
27139 (c_parser_compound_statement_nostart): Use
27140 c_parser_next_token_starts_declaration and
27141 c_token_starts_declaration to detect start of declarations.
27142 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
27145 2010-05-16 Anatoly Sokolov <aesok@post.ru>
27147 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27148 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27149 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27150 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27151 (mmix_function_outgoing_value): Rename to...
27152 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
27153 (mmix_function_value_regno_p): Make static.
27154 (mmix_libcall_value): New function.
27155 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
27156 mmix_function_value_regno_p): Remove declaration.
27158 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27160 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
27161 BUILT_IN_ALLOCA if stack checking is enabled.
27163 2010-05-16 Richard Guenther <rguenther@suse.de>
27165 * var-tracking.c (vars_copy_1): Inline ...
27166 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
27167 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
27168 (variable_merge_over_cur): Adjust. Merge asserts.
27169 (variable_merge_over_src): Likewise.
27170 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
27171 (variable_post_merge_new_vals): Merge asserts.
27172 (variable_post_merge_perm_vals): Likewise.
27173 (find_mem_expr_in_1pdv): Likewise.
27174 (dataflow_set_different_value): Remove.
27175 (onepart_variable_different_p): Merge asserts.
27176 (variable_different_p): Likewise.
27177 (dataflow_set_different_1): Inline ...
27178 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
27179 (emit_notes_for_differences_1): Merge asserts.
27181 2010-05-16 Richard Guenther <rguenther@suse.de>
27183 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
27184 * optabs.c (libfunc_decl_hash): Likewise.
27185 * varasm.c (emutls_decl): Likewise.
27187 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
27189 * c-decl.c: Don't include gimple.h.
27190 (merge_decls): Do not copy gimple_body.
27192 2010-05-15 Jason Merrill <jason@redhat.com>
27194 * c.opt: Add -fnothrow-opt.
27196 2010-05-15 Jan Hubicka <jh@suse.cz>
27198 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
27200 * passes.c (ipa_write_summaries): Write all analyzed nodes.
27202 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
27204 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
27205 * Makefile.in: Add it.
27206 Fix all other Makefile dependencies for changes below.
27207 * tree.h: Include it instead of defining VEC primitives here.
27208 * gimple.h: Likewise.
27210 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
27211 * except.h: Include vecir.h, break dependence on tree.h.
27213 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
27215 * tree-iterator.c: ...to here.
27216 * tree-iterator.h: Fix file introduction comment. Add extern markers.
27218 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
27220 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
27221 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
27222 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
27223 tree-mudflap.h, and target.h.
27224 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
27225 predict.h, tree-inline.h, gimple.h, and langhooks.h.
27226 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
27227 Add FIXME for why gimple.h is still included (should be unnecessary
27228 since GCC 4.5 gimplification unit-at-a-time).
27229 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
27230 * c-pragma.c: Add FIXME for why function.h needs to be included just
27231 for cfun, at front-end level.
27232 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
27233 Do not include ggc.h, but include vecprim.h for VEC(char).
27234 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
27235 Explain why target.h is included.
27236 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
27237 Explain why gimple.h is included.
27238 * c-ppoutput.c: Do not include tm.h.
27239 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
27240 * c-parses.c: Explain why rtl.h is included, and that this (and only
27241 this) is also why tm.h must be included.
27242 Do not include except.h.
27243 * c-lang.c: Do not include ggc.h.
27245 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
27247 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
27249 2010-05-15 Joseph Myers <joseph@codesourcery.com>
27251 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
27252 unions by default if those structs and unions have no tags. Do
27253 not condition anonymous struct and unions handling on flag_iso.
27254 Allow anonymous structs and unions for C1X.
27255 (finish_struct): Do not diagnose lack of named fields when
27256 anonymous structs and unions present for C1X. Accept flexible
27257 array members in structure with anonymous structs or unions but no
27258 directly named fields.
27259 * doc/extend.texi (Unnamed Fields): Update.
27261 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
27263 * gimple.h (compare_field_offset): Rename into...
27264 (gimple_compare_field_offset): ...this.
27265 * gimple.c (compare_field_offset): Rename into...
27266 (gimple_compare_field_offset): ...this. Compare the full access if
27267 the offset is self-referential.
27268 (gimple_types_compatible_p): Adjust for above renaming.
27269 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
27270 DECL_NONADDRESSABLE_P flag of fields before merging them.
27272 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
27274 * tree.h (ctor_to_list): Delete.
27275 * tree.c (ctor_to_list): Delete.
27277 2010-05-15 Jan Hubicka <jh@suse.cz>
27279 * ipa-reference.c: Include toplev.h
27280 (is_proper_for_analysis): Only add to all_module_statics
27281 if it is allocated.
27282 (write_node_summary_p, stream_out_bitmap,
27283 ipa_reference_write_optimization_summary,
27284 ipa_reference_read_optimization_summary): New.
27285 (struct ipa_opt_pass_d pass_ipa_reference): Add
27286 optimization summary streaming.
27287 * lto-cgraph.c (referenced_from_this_partition_p,
27288 reachable_from_this_partition_p): New functions.
27289 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
27290 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
27291 * opts.c (decode_options): Enable ipa_reference.
27292 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
27293 * lto-streamer.h (referenced_from_this_partition_p,
27294 reachable_from_this_partition_p): Declare.
27296 2010-05-15 Richard Guenther <rguenther@suse.de>
27298 PR tree-optimization/44038
27299 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
27300 taking the address of a V_C_E of a constant.
27302 2010-05-14 Jan Hubicka <jh@suse.cz>
27304 * tree.h (memory_identifier_string): Remove.
27305 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
27306 (ipa_reference_global_vars_info_d): Remove statics_not_read and
27307 statics_not_written.
27308 (ipa_reference_optimization_summary_d): New structure.
27309 (ipa_reference_optimization_summary_t): New type and vector.
27310 (ipa_reference_vars_info_d): Embedd structures instead of using
27312 (reference_vars_to_consider): Remove out of GGC space.
27313 (module_statics_escape): Remove.
27314 (global_info_obstack): Rename to ...
27315 (optimization_summary_obstack): ... this one.
27316 (initialization_status_t): Remove.
27317 (memory_identifier_string): Remove.
27318 (get_reference_vars_info): Fix indenting.
27319 (set_reference_vars_info): Likewise.
27320 (get_reference_optimization_summary): New.
27321 (set_reference_optimization_summary): New.
27322 (get_global_reference_vars_info): Remove.
27323 (ipa_reference_get_read_global): Remove.
27324 (ipa_reference_get_written_global): Remove.
27325 (ipa_reference_get_not_read_global): Update.
27326 (ipa_reference_get_not_written_global): Update.
27327 (is_proper_for_analysis): Outlaw addressable.
27328 (propagate_bits): Update for new datastructures.
27329 (analyze_variable): Remove.
27330 (init_function_info): Update for new datastructures.
27331 (clean_function_local_data): Remove.
27332 (clean_function): Remove.
27333 (copy_global_bitmap): Use optimizations_summary_obstack.
27334 (duplicate_node_data): Duplicate optimization summary only.
27335 (remove_node_data): Remove optimization summary only.
27336 (generate_summary): Do not analyze variables; do not compute
27337 module_statics_escape; do not prune solutions by it.
27338 (read_write_all_from_decl): Fix typos in comments.
27339 (propagate): Doscover readonly and nonaddressable first;
27340 update for new datastructures; share global bitmaps.
27341 * ipa-reference.h (ipa_reference_get_read_global,
27342 ipa_reference_get_written_global): Remove.
27343 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
27344 * Makefile.in: Remove ipa-refereference from GT files.
27346 2010-05-14 Jakub Jelinek <jakub@redhat.com>
27349 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
27350 for all SYMBOL_REF_DECLs.
27352 2010-05-14 Jan Hubicka <jh@suse.cz>
27354 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
27355 (varpool_all_refs_explicit_p): New inline function.
27356 * ipa-reference.c: Update comment.
27357 (module_statics_written): Remove.
27358 (get_static_decl): Remove.
27359 (ipa_init): Do not initialize module_statics_written.
27360 (analyze_function): Likewise.
27361 (generate_summary): Likewise; do not compute module_statics_readonly
27362 and do not update variable flags.
27363 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
27364 * ipa.c: Inlucde flags.h
27365 (cgraph_local_node_p): New.
27366 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
27367 promote functions to local.
27368 (ipa_discover_readonly_nonaddressable_vars): New function.
27369 (function_and_variable_visibility): Use cgraph_local_node_p.
27370 * varpool.c (varpool_finalize_decl): Set force_output for
27371 DECL_PRESERVE_P vars.
27373 2010-05-14 Jan Hubicka <jh@suse.cz>
27375 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
27377 2010-05-14 Richard Guenther <rguenther@suse.de>
27379 PR tree-optimization/44119
27380 * tree-ssa-pre.c (eliminate): Properly mark replacement of
27381 a PHI node necessary.
27383 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
27385 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
27387 2010-05-14 Jason Merrill <jason@redhat.com>
27390 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
27391 (gimple_call_set_nothrow): New.
27392 * gimple.c (gimple_build_call_from_tree): Call it.
27393 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
27396 * gimplify.c (gimplify_seq_add_stmt): No longer static.
27397 * gimple.h: Declare it.
27398 * gimple.c (gimple_build_eh_filter): No ops.
27400 2010-05-14 Jan Hubicka <jh@suse.cz>
27402 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
27403 nodes already in queue.
27404 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
27405 re-enqueueing node.
27407 2010-05-14 Jakub Jelinek <jakub@redhat.com>
27410 * cfgexpand.c (expand_debug_expr): If non-memory op0
27411 has BLKmode, return NULL.
27413 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
27415 * config.gcc: Add support for --with-cpu option for bdver1.
27416 * config/i386/i386.h (TARGET_BDVER1): New macro.
27417 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
27418 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27419 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
27420 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27421 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
27422 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
27423 (processor_type): Add PROCESSOR_BDVER1.
27424 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
27425 processor_type in config/i386/i386.h.
27426 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
27427 movaps <reg, reg> instead of movapd <reg, reg> when replacing
27428 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
27429 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
27430 to emit packed xor instead of packed double/packed integer
27431 xor for SSE and AVX when moving a zero value.
27432 * config/i386/sse.md: Add check for
27433 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
27434 movapd/movdqa for SSE and AVX.
27435 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
27436 single logical operations i.e and, or and xor instead of packed double
27437 logical operations for SSE and AVX.
27438 * config/i386/i386-c.c (ix86_target_macros_internal):
27439 Add PROCESSOR_BDVER1.
27440 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
27441 (has_fma4, has_xop): New.
27442 * config/i386/i386.c (bdver1_cost): New variable.
27443 (m_BDVER1): New macro.
27444 (m_AMD_MULTIPLE): Add m_BDVER1.
27445 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
27446 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
27447 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
27448 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
27449 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
27450 x86_tune_sse_partial_reg_dependency,
27451 x86_tune_sse_unaligned_load_optimal,
27452 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
27453 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
27454 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
27455 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
27456 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
27457 Enable/disable for bdver1.
27458 (processor_target_table): Add bdver1_cost.
27459 (cpu_names): Add bdver1.
27460 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
27461 processor_alias_table.
27462 (ix86_expand_vector_move_misalign): Change.
27463 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
27464 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
27465 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
27466 of movupd/movdqu for SSE and AVX.
27467 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
27468 (ix86_tune_adjust_cost): Add code for bdver1.
27469 (standard_sse_constant_opcode): Add check for
27470 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
27471 of packed double xor for SSE and AVX.
27473 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
27475 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
27476 result to unsigned.
27478 2010-05-14 Tristan Gingold <gingold@adacore.com>
27480 * toplev.c (default_debug_hooks): Remove this variable.
27481 (process_options): Remove assignments to default_debug_hooks.
27483 2010-05-14 Martin Jambor <mjambor@suse.cz>
27485 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
27486 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
27487 * langhooks.h (struct lang_hooks_for_decls): Removed field
27489 * tree.c (free_lang_data): Remove assignment to
27490 lang_hooks.fold_obj_type_ref.
27491 * tree.def (OBJ_TYPE_REF): Update comment.
27493 2010-05-14 Richard Guenther <rguenther@suse.de>
27495 PR tree-optimization/44124
27496 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
27498 2010-05-14 Alan Modra <amodra@gmail.com>
27501 * config/rs6000/rs6000.c (struct machine_function): Reorder
27502 fields for better packing. Add lr_save_state.
27503 (rs6000_ra_ever_killed): Return lr_save_state if set.
27504 (rs6000_emit_eh_reg_restore): Set lr_save_state.
27506 2010-05-13 Jan Hubicka <jh@suse.cz>
27508 * varpool.c (decide_is_variable_needed): Drop code checking
27509 TREE_SYMBOL_REFERENCED.
27511 2010-05-13 Jan Hubicka <jh@suse.cz>
27513 * final.c (output_addr_const): Do not call mark_decl_referenced.
27514 * cgraphunit.c (process_function_and_variable_attributes): Use
27515 mark_needed_node dirrectly.
27516 (assemble_thunk): Do not call mark_decl_referenced.
27518 2010-05-13 Anatoly Sokolov <aesok@post.ru>
27520 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
27522 2010-05-13 Jeff Law <law@redhat.com>
27524 * ira-conflicts.c (print_allocno_conflicts): New function broken out
27526 (print_conflicts): Call print_allocno_conflicts.
27528 2010-05-13 Jakub Jelinek <jakub@redhat.com>
27531 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
27534 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
27536 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
27537 t-mingw-w64 or t-mingw-w32 for multilib configuration.
27538 * config/i386/t-mingw-w32: New.
27539 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
27541 2010-05-13 Martin Jambor <mjambor@suse.cz>
27543 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
27545 * gimple-fold.c (get_base_binfo_for_type): New function.
27546 (gimple_get_relevant_ref_binfo): Likewise.
27547 (gimple_fold_obj_type_ref_known_binfo): Likewise.
27548 (gimple_fold_obj_type_ref): Likewise.
27549 (fold_gimple_call): Simplify condition for folding virtual calls
27550 and call gimple_fold_obj_type_ref.
27551 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
27552 (gimple_fold_obj_type_ref_known_binfo): Likewise.
27554 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
27556 * config/rs6000/rs6000-protos.h
27557 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
27558 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
27559 (rs6000_debug_mode_dependent_address)
27560 (rs6000_mode_dependent_address_ptr): Likewise.
27562 2010-05-13 Jakub Jelinek <jakub@redhat.com>
27565 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
27567 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
27568 * tree-sra.c (create_access_replacement): Call unshare_expr before
27569 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
27570 * dwarf2out.c: Include tree-flow.h.
27571 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
27572 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
27573 Handle DW_OP_bit_piece.
27574 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
27575 construct_piece_list, adjust_piece_list): New functions.
27576 (add_var_loc_to_decl): Handle SRA optimized variables.
27577 Adjust for var_loc_note to loc field renaming.
27578 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
27579 in VAR_LOCATION note.
27580 (new_loc_descr_op_bit_piece): New function.
27581 (dw_sra_loc_expr): New function.
27582 (dw_loc_list): Use it. Don't handle the last range after the
27583 loop, handle it inside of the loop. Adjust for var_loc_note
27584 to loc field renaming.
27585 (add_location_or_const_value_attribute): Only special case
27586 single entry loc lists if loc is NOTE_P. Adjust for
27587 var_loc_note to loc field renaming.
27588 (dwarf2out_var_location): Don't set newloc->var_loc_note
27589 and newloc->next here.
27591 2010-05-12 Jan Hubicka <jh@suse.cz>
27593 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
27595 * cgraph.h (cgraph_only_called_directly_p,
27596 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
27597 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
27598 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
27600 * ipa.c (cgraph_remove_unreachable_nodes): Use
27601 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
27603 * tree-inline.c (copy_bb): Check address_taken flag.
27604 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
27605 externally_visible flag.
27607 2010-05-12 Jason Merrill <jason@redhat.com>
27611 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
27612 * sdbout.c (plain_type_1): Likewise.
27613 * dwarf2out.c (is_base_type): Likewise.
27614 (gen_type_die_with_usage): Likewise. Generate
27615 DW_TAG_unspecified_type for any LANG_TYPE.
27617 2010-05-12 Jan Hubicka <jh@suse.cz>
27619 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
27621 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
27622 (cgraph_clone_edge): Update.
27623 (cgraph_node_remove_callees): Remove indirect calls too.
27624 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
27625 (cgraph_create_indirect_edge): Update prototype.
27626 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
27627 is_proper_for_analysis.
27628 (add_new_function, visited_nodes, function_insertion_hook_holder,
27629 get_local_reference_vars_info, mark_address_taken, mark_address,
27630 mark_load, mark_store, check_asm_memory_clobber, check_call,
27631 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
27632 (ipa_init): Do not initialize visited_nodes;
27633 function_insertion_hook_holder.
27634 (analyze_variable): Rewrite.
27635 (analyze_function): Rewrite.
27636 (copy_local_bitmap): Remove.
27637 (duplicate_node_dat): Do not duplicate local info.
27638 (generate_summary): Simplify to only walk cgraph.
27639 (write_node_summary_p, ipa_reference_write_summary,
27640 ipa_reference_read_summary): Remove.
27641 (propagate): Do not remove function insertion;
27643 (pass_ipa_reference): NULLify summary handling fields.
27644 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
27645 (input_edge): Input ecf_flags.
27646 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
27647 (update_indirect_edges_after_inlining): Ignore edges with unknown
27650 2010-05-12 Sriraman Tallam <tmsriram@google.com>
27652 * implicit-zee.c: New file.
27653 * tree-pass.h (pass_implicit_zee): Declare.
27654 * passes.c (init_optimization_passes): Add zee pass.
27655 * common.opt (fzee): New flag.
27656 * timevar.def (TV_ZEE): Define.
27657 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
27659 * Makefile.in (implicit-zee.o): Add new build file.
27661 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27662 Nathan Froyd <froydnj@codesourcery.com>
27664 * c-common.c (sync_resolve_params): Remove write-only variable.
27666 2010-05-12 Anatoly Sokolov <aesok@post.ru>
27668 * target.h (struct gcc_target): Add mode_dependent_address_p field.
27669 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27670 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
27671 * targhooks.c (default_mode_dependent_address_p): New function.
27672 * targhooks.h (default_mode_dependent_address_p): Declare function.
27673 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27674 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
27675 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
27676 target hook. Change return type to bool.
27677 * recog.h (mode_dependent_address_p): Change return type to bool.
27679 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27680 Nathan Froyd <froydnj@codesourcery.com>
27682 * tree-mudflap.c (build_function_type_0, build_function_type_1,
27683 build_function_type_2, build_function_type_3): Remove.
27684 (mudflap_init): Use build_function_type_list.
27686 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27687 Nathan Froyd <froydnj@codesourcery.com>
27689 * coverage.c (build_fn_info_value): Call build_constructor instead of
27690 build_constructor_from_list.
27691 (build_ctr_info_value): Likewise.
27692 (build_gcov_info): Likewise.
27694 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
27696 * tree.c (build_constructor): Compute TREE_CONSTANT for the
27697 resultant constructor.
27698 (build_constructor_single): Don't set TREE_CONSTANT.
27699 (build_constructor_from_list): Don't compute TREE_CONSTANT.
27701 2010-05-12 Jan Hubicka <jh@suse.cz>
27703 * cgraph.h (struct varpool_node): Add aux.
27704 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
27705 * varpool.c (varpool_remove_node): Do not remove initializer.
27706 (varpool_reset_queue): Export.
27707 (varpool_finalize_decl): Volatile vars are forced to be output.
27708 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
27710 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
27711 process_references, varpool_can_remove_if_no_refs): New functions.
27712 (cgraph_remove_unreachable_nodes): Handle variables too.
27714 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
27717 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
27719 2010-05-12 Jakub Jelinek <jakub@redhat.com>
27721 PR middle-end/44085
27722 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
27723 change value of ORT_TASK.
27724 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
27725 (omp_notice_threadprivate_variable): New function.
27726 (omp_notice_variable): Call it for threadprivate variables.
27727 If enclosing ctx is a task, print enclosing task rather than
27728 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
27729 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
27730 if task has untied clause.
27733 * dwarf2out.c (base_type_die): Don't add name attribute here.
27734 (modified_type_die): Instead of sizetype use
27735 its underlying original type. If a DW_TAG_base_type doesn't
27736 have name added, add __unknown__.
27737 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
27738 always call force_type_die instead.
27740 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
27742 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
27743 for __stack_chk_guard.
27745 2010-05-11 Jakub Jelinek <jakub@redhat.com>
27747 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
27748 don't call start_source_file debug hook here...
27749 (finish_options): ... but here, after outputting predefined and
27750 command line defines and undefs.
27752 PR middle-end/44071
27753 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
27755 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
27756 optimizing away empty bb with no successors, move over its
27757 footer chain to fallthru predecessor.
27758 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
27759 (rtl_split_edge): For asm goto call patch_jump_insn even if
27760 splitting fallthru edge.
27763 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
27764 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
27765 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
27766 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
27770 * c-parser.c (c_parser_expression): Mark LHS of a comma
27771 expression as read if it is a decl, handled component or
27772 COMPOUND_EXPR with that on the RHS.
27773 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
27774 if it is a decl or handled component.
27776 2010-05-11 Jan Hubicka <jh@suse.cz>
27778 * lto-symtab.c (lto_symtab_free): New function.
27779 * lto-streamer.h (lto_symtab_free): Declare.
27781 2010-05-11 Jan Hubicka <jh@suse.cz>
27783 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
27784 that if function is needed it is reachable.
27785 (lto_output_node): See if it the function is reachable or referenced.
27786 (output_cgraph): Update call of lto_output_node.
27787 * lto-streamer.h (reachable_from_other_partition_p): Declare.
27789 2010-05-11 Jan Hubicka <jh@suse.cz>
27791 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
27794 2010-05-11 Jan Hubicka <jh@suse.cz>
27796 PR tree-optimize/44063
27797 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
27799 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
27801 (estimate_function_body_sizes): Compute sizes even when disregarding.
27803 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
27805 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
27807 2010-05-11 Jan Hubicka <jh@suse.cz>
27809 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
27810 into every boundary.
27812 2010-05-11 Jan Hubicka <jh@suse.cz>
27814 * matrix-reorg.c (matrix_reorg): Rebuild edges.
27816 2010-05-11 Jan Hubicka <jh@suse.cz>
27818 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
27819 lto_streamer_cache_delete): Put nodes into heap.
27820 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
27823 2010-05-11 Jan Hubicka <jh@suse.cz>
27825 * cgraphbuild.c (cgraph_rebuild_references): New.
27826 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
27827 out extern inlines.
27828 * cgraph.h (cgraph_rebuild_references): Declare.
27829 * tree-inline.c (tree_function_versioning): Use it.
27830 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
27832 2010-05-11 Jan Hubicka <jh@suse.cz>
27834 * cgraph.c: Include ipa-utils.h
27835 (cgraph_create_virtual_clone): Update references.
27836 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
27838 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
27840 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
27841 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
27844 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
27846 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
27848 2010-05-11 Jakub Jelinek <jakub@redhat.com>
27850 * gcc.c (execute): For -### don't quote arguments that
27851 contain just alphanumerics and _/-. characters.
27852 * doc/invoke.texi: Document that change for -###.
27855 * df-problems.c (struct dead_debug): Add to_rescan field.
27856 (dead_debug_init): Clear to_rescan field.
27857 (dead_debug_finish): Rescan all debug insns in to_rescan
27858 bitmap and free the bitmap.
27859 (dead_debug_insert_before): Instead of rescanning debug insns
27860 immediately queue their rescanning until dead_debug_finish.
27861 (df_note_bb_compute): After dead_debug_add do continue instead
27864 2010-05-10 Jakub Jelinek <jakub@redhat.com>
27867 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
27868 clear also INSN_REG_USE_LIST.
27870 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27872 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
27874 2010-05-10 Jan Hubicka <jh@suse.cz>
27876 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
27879 2010-05-10 Jan Hubicka <jh@suse.cz>
27881 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
27883 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
27884 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
27885 (lto_streamer_cache_create): Init alloc pool.
27886 (lto_streamer_cache_delete): Free alloc pool.
27887 * lto-streamer.h: Include alloc pool.
27888 (lto_streamer_cache_d): Use alloc pool.
27889 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
27891 2010-05-10 Jan Hubicka <jh@suse.cz>
27893 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
27894 * cgraphbuild.c: Include except.h
27895 (record_type_list, record_eh_tables): New function.
27896 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
27898 2010-05-10 Jan Hubicka <jh@suse.cz>
27900 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
27901 __frame_dummy_init_array_entry, force_to_data): Attribute as used
27902 rather than unused.
27904 2010-05-10 Michael Matz <matz@suse.de>
27906 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
27907 (can_reassociate_p): Use FLOAT_TYPE_P.
27908 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
27909 (vect_force_simple_reduction): ... this.
27910 * tree-parloops.c (gather_scalar_reductions): Use
27911 vect_force_simple_reduction.
27912 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
27913 vect_is_simple_reduction, add modify argument, if true rewrite
27914 "a-b" into "a+(-b)".
27915 (vect_is_simple_reduction, vect_force_simple_reduction): New
27917 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
27919 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
27920 Vladimir Makarov <vmakarov@redhat.com>
27922 PR rtl-optimization/44012
27923 * ira-build.c (remove_unnecessary_allocnos): Nullify
27924 regno_allocno_map of the removed allocno.
27926 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27928 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
27930 * configure: Regenerate.
27932 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27934 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
27936 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
27937 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
27939 * configure: Regenerate.
27941 2010-05-10 Richard Guenther <rguenther@suse.de>
27943 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
27944 marked if the entry identifier is marked.
27946 2010-05-10 Richard Guenther <rguenther@suse.de>
27948 * c-common.c (struct c_common_attributes): Add fnspec attribute.
27949 (handle_fnspec_attribute): New function.
27950 * gimple.h (gimple_call_return_flags): Declare.
27951 (gimple_call_arg_flags): Likewise.
27952 * gimple.c (gimple_call_arg_flags): New function.
27953 (gimple_call_return_flags): Likewise.
27954 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
27955 New argument flags.
27956 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
27957 return value flags.
27958 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
27959 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
27961 (make_heapvar_for): ... this new function.
27962 (handle_rhs_call): Handle fnspec attribute argument specifiers.
27963 (handle_lhs_call): Likewise.
27964 (find_func_aliases): Adjust.
27966 2010-05-10 Richard Guenther <rguenther@suse.de>
27968 PR tree-optimization/44050
27969 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
27971 2010-05-10 Wei Guozhi <carrot@google.com>
27974 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
27976 2010-05-09 Joseph Myers <joseph@codesourcery.com>
27979 * c-typeck.c (lookup_field): Take a type directly. Update
27981 (build_component_ref): Update call to lookup_field.
27982 (set_init_label): Use lookup_field to find initialized field.
27983 Handle returned list of fields like a sequence of designators.
27985 2010-05-09 Richard Guenther <rguenther@suse.de>
27987 PR middle-end/44024
27988 * fold-const.c (tree_single_nonzero_warnv_p): Properly
27989 handle &FUNCTION_DECL.
27991 2010-05-09 Joseph Myers <joseph@codesourcery.com>
27994 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
27995 structures and unions recursively.
27996 (detect_field_duplicates): Move duplicate detection with a hash to
27997 detect_field_duplicates_hash. Always use a hash if anonymous
27998 structures or unions are present.
27999 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
28002 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
28005 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
28006 detect Atom, Core 2 and Core i7.
28008 2010-05-09 Richard Guenther <rguenther@suse.de>
28010 * gcc.c (store_arg): Handle temporary file deletion for
28013 2010-05-09 Richard Guenther <rguenther@suse.de>
28015 PR middle-end/44043
28016 * ipa-inline.c (estimate_function_body_sizes): Return after
28017 disregarding inline limits.
28019 2010-05-09 Richard Guenther <rguenther@suse.de>
28021 * gcc.c (store_arg): Revert last change.
28023 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
28025 PR middle-end/28685
28026 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
28027 (optimize_ops_list): Call it.
28029 2010-05-08 Richard Guenther <rguenther@suse.de>
28031 PR tree-optimization/44030
28032 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
28033 NECESSARY flag if we propagate from a inserted expression.
28035 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
28037 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
28038 domain types as equal if they are both PLACEHOLDER_EXPRs.
28040 2010-05-08 Richard Guenther <rguenther@suse.de>
28042 * lto-wrapper.c (run_gcc): Remove linker output from
28043 command line for LTRANS invocation.
28045 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28047 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
28048 lto-macho as lto_binary_reader.
28049 * target.h (struct gcc_target): New hooks lto_start and lto_end.
28050 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
28051 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
28052 in lto_start and lto_end calls.
28053 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
28055 (scan_prog_file): Update is_elf_or_coff call.
28056 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
28058 * collect2.c (main): Fix enum comparison.
28060 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
28062 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
28063 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
28064 and TARGET_ASM_LTO_END.
28065 * darwin.c: Include obstack.h and lto-streamer.h.
28066 (lto_section_names_offset, lto_section_names_obstack,
28067 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
28069 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
28070 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
28071 to a temporary file.
28072 (darwin_asm_lto_end): New function. Restore asm_out_file.
28073 (darwin_asm_named_section): For LTO sections, replace the name with
28074 the offset of the section name in a string table, and build this
28076 (darwin_file_start): Initialize global vars for LTO support.
28077 (darwin_file_end): If output to asm_out_file was redirected, append it
28078 to the proper asm_out_file here. Add the section names section.
28080 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28082 * c-pragma.c (pending_weak_d, pending_weak): New.
28083 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
28084 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
28085 handle_pragma_weak): Update the uses of pending_weaks.
28087 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28089 PR documentation/44016
28090 * doc/standards.texi (Standards): Link to unversioned
28091 cxx0x_status.html page.
28093 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
28096 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
28097 in addition to TREE_USED, to avoid "set but unused" warnings.
28099 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28101 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
28102 (is_loop_prefetching_profitable): Do not insert prefetches
28103 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
28104 times the prefetch ahead distance.
28106 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28108 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
28109 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
28110 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
28113 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28115 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
28116 a diagnostic info when the insn-to-mem ratio is too small.
28118 2010-05-07 Richard Guenther <rguenther@suse.de>
28120 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
28122 (store_arg): Queue temp_filename for deletion instead of
28123 the whole argument.
28125 2010-05-07 Richard Guenther <rguenther@suse.de>
28127 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
28128 (run_gcc): Handle LTRANS phase invocation.
28129 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
28131 2010-05-07 Jakub Jelinek <jakub@redhat.com>
28133 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
28134 this is also meaningful on PARM_DECLs and RESULT_DECLs.
28136 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28138 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
28140 2010-05-07 Richard Guenther <rguenther@suse.de>
28142 PR tree-optimization/44020
28143 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
28144 code when PRE is not yet initialized.
28146 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28148 * config/mips/dbxmdebug.h: Remove.
28149 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
28151 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
28153 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
28154 with null pointer and also warn about ordered comparison of zero with
28155 pointer if -Wextra.
28157 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28159 * graphite-blocking.c
28160 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
28161 * graphite-clast-to-gimple.c
28162 (clast_to_gcc_expression): Same.
28163 (precision_for_value): Same.
28164 (precision_for_interval): Same.
28165 (gcc_type_for_interval): Same.
28166 (graphite_create_new_guard): Same.
28167 (compute_bounds_for_level): Same.
28168 (graphite_create_new_loop_guard): Same.
28169 * graphite-interchange.c
28170 (build_linearized_memory_access): Same.
28171 (pdr_stride_in_loop): Same.
28172 (memory_strides_in_loop_1): Same.
28173 (memory_strides_in_loop): Same.
28174 (extend_scattering): Same.
28175 (psct_scattering_dim_for_loop_depth): Same.
28176 (pbb_number_of_iterations): Same.
28178 (debug_iteration_domains): Same.
28180 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
28181 (ppl_set_inhomogeneous_gmp): Same.
28182 (ppl_strip_loop): Same.
28183 (ppl_lexico_compare_linear_expressions): Same.
28184 (ppl_read_polyhedron_matrix): Same.
28185 (ppl_max_for_le_pointset): Same.
28187 (ppl_read_polyhedron_matrix): Same.
28188 (tree_int_to_gmp): Same.
28189 (gmp_cst_to_tree): Same.
28190 (ppl_set_inhomogeneous): Same.
28191 (ppl_set_inhomogeneous_tree): Same.
28192 (ppl_set_coef): Same.
28193 (ppl_set_coef_tree): Same.
28194 * graphite-sese-to-poly.c
28195 (build_pbb_scattering_polyhedrons): Same.
28196 (build_scop_scattering): Same.
28197 (scan_tree_for_params_right_scev): Same.
28198 (scan_tree_for_params): Same.
28199 (find_params_in_bb): Same.
28200 (find_scop_parameters): Same.
28201 (add_upper_bounds_from_estimated_nit): Same.
28202 (build_loop_iteration_domains): Same.
28203 (add_condition_to_domain): Same.
28204 (pdr_add_memory_accesses): Same.
28206 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28208 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
28209 CLooG's value_* macros to their respective mpz_* counterparts.
28210 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
28211 (graphite_create_new_loop_guard): Same.
28212 * graphite-interchange.c (build_linearized_memory_access): Same.
28213 (pdr_stride_in_loop): Same.
28214 (memory_strides_in_loop_1): Same.
28215 (1st_interchange_profitable_p): Same.
28216 * graphite-poly.c (extend_scattering): Same.
28217 (psct_scattering_dim_for_loop_depth): Same.
28218 (pbb_number_of_iterations): Same.
28219 (pbb_number_of_iterations_at_time): Same.
28220 * graphite-poly.h (new_1st_loop): Same.
28221 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
28222 (oppose_constraint): Same.
28223 (insert_constraint_into_matrix): Same.
28224 (ppl_set_inhomogeneous_gmp): Same.
28225 (ppl_set_coef_gmp): Same.
28226 (ppl_strip_loop): Same.
28227 (ppl_lexico_compare_linear_expressions): Same.
28228 (ppl_max_for_le_pointset): Same.
28229 (ppl_min_for_le_pointset): Same.
28230 (ppl_build_realtion): Same.
28231 * graphite-ppl.h (gmp_cst_to_tree): Same.
28232 (ppl_set_inhomogeneous): Same.
28233 (ppl_set_inhomogeneous_tree): Same.
28234 (ppl_set_coef): Same.
28235 (ppl_set_coef_tree): Same.
28236 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
28237 (build_scop_scattering): Same.
28238 (add_value_to_dim): Same.
28239 (scan_tree_for_params_right_scev): Same.
28240 (scan_tree_for_params_int): Same.
28241 (scan_tree_for_params): Same.
28242 (find_params_in_bb): Same.
28243 (find_scop_parameters): Same.
28244 (add_upper_bounds_from_estimated_nit): Same.
28245 (build_loop_iteration_domains): Same.
28246 (create_linear_expr_from_tree): Same.
28247 (add_condition_to_domain): Same.
28248 (pdr_add_memory_accesses): Same.
28250 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
28251 Jason Merrill <jason@redhat.com>
28253 * c-common.c (c_common_reswords): Add nullptr.
28254 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
28255 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
28256 (gen_type_die_with_usage): Likewise.
28257 * dbxout.c (dbxout_type): Likewise.
28258 * sdbout.c (plain_type_1): Likewise.
28260 2010-05-06 Jason Merrill <jason@redhat.com>
28262 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
28263 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
28265 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
28267 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
28268 stripping WITH_SIZE_EXPR.
28269 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
28272 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28274 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
28275 list of obsolete configurations.
28276 Disabled check for obsolete configurations.
28277 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
28278 Removed support for previous versions.
28279 * config/mips/iris.h: Removed.
28280 * config/mips/iris5.h: Removed.
28281 * config/mips/iris6.h: Merged old iris.h contents.
28282 (TARGET_IRIX): Removed.
28283 (DRIVER_SELF_SPECS): Removed mabi=32.
28284 (IDENT_ASM_OP): Removed undef.
28285 (STARTFILE_SPEC): Removed mabi=32.
28286 (ENDFILE_SPEC): Likewise.
28287 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
28288 (MACHINE_TYPE): Update for IRIX 6.5.
28289 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
28290 TARGET_IRIX by TARGET_IRIX6.
28291 (mips_file_start): Likewise.
28292 (mips_output_external): Remove IRIX 5/6 O32 support.
28293 (mips_output_function_prologue): Likewise.
28294 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
28296 (TARGET_CPU_CPP_BUILTINS): Likewise.
28297 (TARGET_IRIX): Removed.
28298 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
28299 (MULTILIB_DIRNAMES): Removed 32.
28300 (MULTILIB_OSDIRNAMES): Removed ../lib.
28301 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
28302 (Specific, mips-sgi-irix5): Document removal.
28303 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
28304 Remove references to older IRIX 6 releases and the O32 ABI.
28306 2010-05-06 Jakub Jelinek <jakub@redhat.com>
28309 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
28310 instead of DF_REF_REAL_REG.
28312 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
28315 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
28316 handling to still return true for x64 targets.
28318 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
28320 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
28322 2010-05-06 Jan Hubicka <jh@suse.cz>
28324 PR tree-optimization/43791
28325 * ipa-inline.c (update_caller_keys): Remove bogus
28326 disregard_inline_limits check.
28328 2010-05-06 Michael Matz <matz@suse.de>
28330 PR tree-optimization/43984
28331 * tree-ssa-pre.c (inserted_phi_names): Remove.
28332 (inserted_exprs): Change to bitmap.
28333 (create_expression_by_pieces): Set bits, don't append to vector.
28334 (insert_into_preds_of_block): Don't handle inserted_phi_names.
28335 (eliminate): Don't look at inserted_phi_names, remove deleted
28336 insns from inserted_exprs.
28337 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
28338 (init_pre, fini_pre): Allocate and free bitmaps.
28339 (execute_pre): Insert insns on edges before elimination.
28341 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
28343 * tree.c (initializer_zerop): Handle STRING_CST.
28345 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
28348 * doc/invoke.texi (Wimplicit): Document as C only.
28349 * opts.c (common_handle_option): Add argument kind.
28350 (handle_option): Rename as read_cmdline_option. Factor out code to...
28351 (handle_option): ... here. New.
28352 (handle_options): Rename as read_cmdline_options.
28353 (decode_options): Update call.
28354 (set_option): Use option index instead of option pointer. Classify
28355 diagnostics correctly.
28356 (enable_warning_as_error): Call handle_option.
28357 * opts.h (set_option): Update declaration.
28358 (handle_option): Declare.
28359 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
28360 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
28361 * c-opts.c (set_Wimplicit): Delete.
28362 (c_family_lang_mask): New static constant.
28363 (c_common_handle_option): Add argument kind. Use handle_option
28364 instead of set_Wimplicit.
28365 (c_common_post_options): warn_implicit and warn_implicit_int
28366 are disabled by default.
28367 * c-common.c (warn_implicit): Do not define here.
28368 * c-common.h (warn_implicit): Do not declare here.
28369 (c_common_handle_option): Update declaration.
28370 * lto-opts.c (lto_reissue_options): Update call to set_option.
28372 2010-05-06 Richard Guenther <rguenther@suse.de>
28374 PR tree-optimization/43571
28375 * domwalk.c (walk_dominator_tree): Walk the dominator
28376 sons in more optimal order.
28378 2010-05-06 Richard Guenther <rguenther@suse.de>
28380 PR tree-optimization/43934
28381 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
28382 (stmt_cost): Likewise.
28383 (extract_true_false_args_from_phi): New helper.
28384 (determine_max_movement): For PHI nodes verify we can hoist them
28385 and compute their cost.
28386 (determine_invariantness_stmt): Handle PHI nodes.
28387 (move_computations_stmt): Likewise. Hoist PHI nodes in
28388 if-converted form using COND_EXPRs.
28389 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
28390 (tree_ssa_lim): Likewise.
28391 * tree-flow.h (tree_ssa_lim): Adjust prototype.
28392 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
28394 2010-05-06 Richard Guenther <rguenther@suse.de>
28396 PR tree-optimization/43987
28397 * tree-ssa-structalias.c (could_have_pointers): For possibly
28398 address-taken variables force pointers to be recorded.
28399 (create_variable_info_for_1): Likewise.
28400 (push_fields_onto_fieldstack): Pass in wheter all fields
28401 must have pointers.
28402 (find_func_aliases): Query types instead of vars whether
28403 they contain pointers where appropriate.
28405 2010-05-06 Jan Hubicka <jh@suse.cz>
28407 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
28408 (record_reference, mark_address, mark_load, mark_store): Record
28410 (record_references_in_initializer): Update call of record_references.
28411 (rebuild_cgraph_edges): Remove all references before rebuiding.
28412 * cgraph.c (cgraph_create_node): Clear ref list.
28413 (cgraph_remove_node): Remove references.
28414 (dump_cgraph_node): Dump references.
28415 (cgraph_clone_node): Clone references.
28416 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
28417 (struct cgraph_node, varpool_node): Add ref_lst.
28418 * ipa-ref.c: New file.
28419 * ipa-ref.h: New file.
28420 * ipa-ref-inline.h: New file.
28421 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
28422 (referenced_from_other_partition_p): New function.
28423 (lto_output_varpool_node): Take set arugment; call
28424 referenced_from_other_partition.
28425 (lto_output_ref): New.
28426 (add_references): New.
28427 (output_refs): New.
28428 (output_cgraph): Compute boundary based on references; output refs.
28429 (output_varpool): Accept cgraph_node_set argument.
28432 (input_cgraph): Call input_refs.
28433 * lto-section-in.c (lto_section_name): Add refs.
28434 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
28435 (ipa-ref.o): New file.
28436 * varpool.c (varpool_node): Clear ipa ref list.
28437 (varpool_remove_node): Remove references.
28438 (dump_varpool_node): Dump references.
28439 (varpool_assemble_decl): Only compile finalized ones.
28440 (varpool_extra_name_alias): Initialize ref list.
28441 * lto-streamer.c (lto-get_section_name): Add .refs section.
28442 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
28443 (referenced_from_other_partition_p): Declared.
28445 2010-05-06 Ira Rosen <irar@il.ibm.com>
28447 PR tree-optimization/43901
28448 * tree-vect-stmts.c (vectorizable_call): Assert that vector
28449 type is not NULL if it's transformation phase, and return
28450 FALSE if it's analysis.
28451 (vectorizable_conversion, vectorizable_operation,
28452 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
28454 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
28456 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28458 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28460 * config/mips/mips-protos.h
28461 (mips_small_register_classes_for_mode_p): Delete prototype.
28463 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
28465 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
28466 * config/arm/arm.c (multiple_operation_profitable_p,
28467 compute_offset_order): New static functions.
28468 (load_multiple_sequence, store_multiple_sequence): Use them.
28469 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
28470 memory offsets, not register numbers.
28471 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
28473 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
28475 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
28476 (get_pending_sizes, put_pending_size, put_pending_sizes):
28477 Update the uses of pending_sizes.
28478 * c-decl.c (store_parm_decls): Likewise.
28479 * c-tree.h (struct c_arg_info): Likewise.
28480 * tree.h: Update the prototype for get_pending_sizes and
28483 2010-05-05 Jason Merrill <jason@redhat.com>
28486 * c-common.c (handle_aligned_attribute): Respect
28487 ATTR_FLAG_TYPE_IN_PLACE.
28490 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
28491 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28492 (TARGET_INITIALIZER): Use it.
28493 * c-common.c (attribute_takes_identifier_p): Call it.
28494 * c-common.h: Update prototype.
28495 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
28496 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28498 2010-05-05 Jakub Jelinek <jakub@redhat.com>
28501 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
28502 DW_ID_down_case for Fortran compilation units.
28504 2010-05-05 Jan Hubicka <jh@suse.cz>
28506 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
28509 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
28511 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
28512 a variable-sized RESULT_DECL.
28514 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
28516 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
28518 2010-05-05 Jason Merrill <jason@redhat.com>
28521 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
28523 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
28525 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
28526 Jakub Jelinek <jakub@redhat.com>
28529 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
28530 (dead_debug_init, dead_debug_finish): New functions.
28531 (dead_debug_add, dead_debug_insert_before): Likewise.
28532 (df_note_bb_compute): Initialize a dead_debug object, add dead
28533 debug uses to it, insert debug bind insns before death insns,
28534 reset debug insns that refer to pending uses at the end.
28535 * rtl.h (make_debug_expr_from_rtl): New prototype.
28536 * varasm.c (make_debug_expr_from_rtl): New function.
28538 2010-05-05 Jan Hubicka <jh@suse.cz>
28540 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
28541 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
28542 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
28543 lto_varpool_encoder_deref, lto_varpool_encoder_size,
28544 lto_varpool_encoder_encode_initializer_p,
28545 lto_set_varpool_encoder_encode_initializer): New functions.
28546 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
28547 call output_varpool.
28548 (input_varpool_node): Do not always set analyzed.
28549 (input_cgraph_1): Return vector of cgraph nodes.
28550 (input_varpool_1): Return vector of varpools.
28551 (input_cgraph): Free the vectors.
28552 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28553 output only initializers needed.
28554 (lto_output): Only call output_cgraph.
28555 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
28556 * lto-section-out.c (lto_new_out_decl_state): Initialize
28557 state->varpool_node_encoder.
28558 * lto-streamer.h (lto_varpool_encoder_d): New.
28559 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
28560 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
28561 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
28562 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
28563 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
28565 (output_varpool, input_varpool): Remove declarations.
28567 2010-05-05 Jan Hubicka <jh@suse.cz>
28569 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
28570 with body can prevail.
28572 2010-05-05 Jan Hubicka <jh@suse.cz>
28574 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
28577 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28579 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
28581 * gengtype.h (erro_at_line): Constify pos argument.
28583 * gengtype.c: Include hashtab.h.
28584 (enum gc_used): Document GC_MAYBE_POINTED_TO.
28585 (error_at_line): Constify pos argument.
28586 (do_typedef): Initialize p->opt field.
28587 (get_file_gtfilename): Fix comment typo.
28588 (struct walk_type_data): Constify line field.
28589 (get_output_file_for_structure): New function.
28590 (write_local_func_for_structure): Constify orig_s argument.
28591 Use get_output_file_for_structure.
28592 (write_func_for_structure): Use get_output_file_for_structure.
28593 (INDENT): New define.
28594 (dump_pair, dump_type, dump_type_list, dump_typekind)
28595 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
28596 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
28598 (seen_types): New variable.
28599 (main): New variable do_dump. Process "-d" command line option.
28600 Call dump_everything if dump requested.
28602 2010-05-05 Jakub Jelinek <jakub@redhat.com>
28604 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
28605 in a temporary instead of invoking the macro multiple times.
28606 (track_expr_p): Likewise.
28608 2010-05-04 Neil Vachharajani <nvachhar@google.com>
28610 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
28612 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
28613 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
28614 conditions for printing notes.
28615 * common.opt (-Wcoverage-mismatch): Allow negative, default to
28616 true, update documentation.
28617 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
28619 2010-05-04 Jakub Jelinek <jakub@redhat.com>
28622 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
28625 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
28628 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
28629 (*sse_prologue_save_insn1): Likewise.
28630 (SSE prologue save splitter): Likewise.
28632 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
28634 * tree.c (free_lang_data_in_one_sizepos): New inline function.
28635 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
28636 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
28637 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
28638 all decls. Call it on DECL_FIELD_OFFSET of fields.
28639 (find_decls_types_r): Follow DECL_VALUE_EXPR.
28640 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
28642 2010-05-04 Martin Jambor <mjambor@suse.cz>
28644 * tree-sra.c (build_access_from_expr_1): The first parameter type
28645 changed to simple tree.
28646 (build_access_from_expr): Likewise, gsi parameter was eliminated.
28647 (scan_assign_result): Renamed to assignment_mod_result, enum elements
28649 (build_accesses_from_assign): Removed all parameters except for a
28650 simple gimple statement. Now returns a simple bool.
28651 (scan_function): All non-analysis parts moved to separate functions
28652 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
28653 parameters and updated both callers.
28654 (sra_modify_expr): Removed parameter data.
28655 (sra_modify_function_body): New function.
28656 (perform_intra_sra): Call sra_modify_function_body to modify the
28658 (replace_removed_params_ssa_names): Parameter data changed into
28659 adjustments vector.
28660 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
28661 changed the parameter dont_convert to convert with the opposite
28663 (sra_ipa_modify_assign): Parameter data changed into adjustments
28664 vector, return value changed to bool.
28665 (ipa_sra_modify_function_body): New function.
28666 (sra_ipa_reset_debug_stmts): Updated a comment.
28667 (modify_function): Use ipa_sra_modify_function_body to modify function
28670 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
28672 PR middle-end/43671
28673 * alias.c (true_dependence): Handle the same VALUE in x and mem.
28674 (canon_true_dependence): Likewise.
28675 (write_dependence_p): Likewise.
28677 2010-05-04 Jan Hubicka <jh@suse.cz>
28679 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
28680 * cgraphbuild.c: Include ipa-utils.h
28681 (record_reference_ctx): New struct.
28682 (record_reference): Simplify to work on initializers; not statements.
28683 (mark_address, mark_load, mark_store): New.
28684 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28685 walk PHI nodes too.
28686 (record_references_in_initializer): Update use of record_reference.
28687 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28688 walk PHI nodes too.
28690 2010-05-04 Jan Hubicka <jh@suse.cz>
28692 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
28693 node will be removed anyway.
28694 (lto_varpool_replace_node): Allow also unanalyzed nodes;
28695 relink aliases of node into prevailing node.
28696 * varpool.c (varpool_remove_node): Remove aliases properly;
28697 when removing node, remove all its aliases too; remove DECL_INITIAL
28698 of removed node; ggc_free the varpool node.
28700 2010-05-04 Richard Guenther <rguenther@suse.de>
28702 PR tree-optimization/43879
28703 * tree-ssa-structalias.c (alias_get_name): Use
28704 DECL_ASSEMBLER_NAME if available.
28705 (create_function_info_for): Return the varinfo node.
28706 (ipa_pta_execute): Associate same-body aliases and extra names
28707 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
28709 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
28711 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
28713 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
28716 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
28717 only if HONOR_REG_ALLOC_ORDER is not defined.
28719 2010-05-04 Richard Guenther <rguenther@suse.de>
28721 PR tree-optimization/43949
28722 * tree-vrp.c (extract_range_from_binary_expr): Only handle
28725 2010-04-26 Jason Merrill <jason@redhat.com>
28727 * c.opt (-fstrict-enums): New.
28728 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
28730 2010-05-03 David Ung <davidu@mips.com>
28731 James E. Wilson <wilson@codesourcery.com>
28733 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
28734 emit the trap instruction before the divide for TUNE_74K.
28736 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
28738 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
28739 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
28740 based on the above, for new target hook.
28742 * hooks.c (hook_bool_mode_true): New generic hook.
28743 * hooks.h (hook_bool_mode_true): Add prototype.
28745 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
28747 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
28748 target hook, set to hook_bool_mode_false.
28749 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
28750 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
28751 with targetm.small_register_classes_for_mode_p.
28752 (find_reusable_reload): Likewise.
28753 (combine_reloads): Likewise.
28754 * reload1.c (reload_as_needed): Likewise.
28755 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
28756 * ifcvt.c (noce_process_if_block, check_cond_move_block,
28757 dead_or_predicable): Likewise.
28758 * regmove.c (optimize_reg_copy_1): Likewise.
28759 * calls.c (prepare_call_address): Likewise.
28760 (precompute_register_parameters): Likewise.
28762 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
28764 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
28765 implementation of the hook that considers all register classes
28766 small except for SH64.
28767 (sh_override_options): Use the new hook.
28768 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
28771 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
28773 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
28774 implementation of the hook that considers all register classes
28776 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
28779 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
28781 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
28782 implementation of the hook that considers all register classes
28784 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
28787 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
28789 * config/m32c/m32c.h: Likewise.
28790 * config/pdp11/pdp11.h: Likewise.
28791 * config/avr/avr.h: Likewise.
28792 * config/xtensa/xtensa.h: Likewise.
28793 * config/m68hc11/m68hc11.h: Likewise.
28794 * config/mn10300/mn10300.h: Likewise.
28795 * config/mcore/mcore.h: Likewise.
28796 * config/h8300/h8300.h: Likewise.
28797 * config/bfin/bfin.h: Likewise.
28799 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
28800 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
28802 2010-05-03 Anatoly Sokolov <aesok@post.ru>
28804 * double-int.h (tree_to_double_int): Remove macro.
28805 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
28806 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28807 (tree_to_double_int): New function.
28808 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
28810 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28812 2010-05-03 Richard Guenther <rguenther@suse.de>
28814 PR tree-optimization/43971
28815 * tree-ssa-structalias.c (get_constraint_for_1): Fix
28816 constraints in the !flag_delete_null_pointer_checks case.
28818 2010-05-03 Jakub Jelinek <jakub@redhat.com>
28821 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
28822 result mode matches original rtl mode.
28824 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
28827 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
28829 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28831 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
28832 when processing flag options.
28834 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28836 * gcov-iov.c (main): Change format string placeholder
28837 from %#08x to 0x%08x.
28838 * genchecksum.c (dosum): Change format string placeholder
28839 from %#02x to 0x%02x.
28841 2010-05-02 Richard Guenther <rguenther@suse.de>
28843 PR tree-optimization/43879
28844 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
28846 2010-05-02 Bruno Haible <bruno@clisp.org>
28848 * doc/extend.texi (Function Attributes): Fix a typo.
28850 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28853 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
28854 placeholder from 0x%x to %#x.
28855 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28856 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28857 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28858 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28859 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28860 * config/i386/i386.c (ix86_target_string): Ditto.
28861 * config/i386/i386.c (output_pic_addr_const): Ditto.
28862 (print_operand): Ditto.
28864 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28866 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
28867 placeholder from 0x%x to %#x.
28868 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
28869 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
28870 (ASM_OUTPUT_DEBUG_DATA): Ditto.
28871 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
28872 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
28873 * optc-gen.awk: Ditto.
28874 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
28875 (HOST_WIDE_INT_PRINT_HEX): Ditto.
28876 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
28877 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28879 2010-05-01 Anatoly Sokolov <aesok@post.ru>
28881 * target.h (struct calls): Add function_value_regno_p field.
28882 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
28883 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
28884 * targhooks.c (default_function_value_regno_p): New function.
28885 * targhooks.h (default_function_value_regno_p): Declare function.
28886 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
28887 * builtins.c. (apply_result_size): (Ditto.).
28888 * combine.c. (likely_spilled_retval_p): (Ditto.).
28889 * mode-switching.c. Include 'target.h'.
28890 (create_pre_exit): Use function_value_regno_p hook.
28891 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
28892 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
28893 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
28895 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
28896 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
28897 (ix86_function_value_regno_p): Declare as static, change argument
28898 type to const unsigned int.
28899 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
28901 2010-05-01 Richard Guenther <rguenther@suse.de>
28903 PR tree-optimization/43949
28904 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
28906 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
28908 2010-05-01 Anatoly Sokolov <aesok@post.ru>
28910 * rtl.h (CONST_DOUBLE_P): Define.
28911 (rtx_to_double_int): Declare.
28912 * emit-rtl.c (rtx_to_double_int): New function.
28913 * dwarf2out.c (insert_double): New function.
28914 (loc_descriptor, add_const_value_attribute): Clean up, use
28915 rtx_to_double_int and insert_double functions.
28917 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
28919 * doc/extend.texi (Inline): Add missing return keyword to examples.
28920 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
28923 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
28925 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
28926 the variable part of the offset as well. Use highest_pow2_factor for
28927 all alignment checks.
28929 2010-04-30 Richard Guenther <rguenther@suse.de>
28931 PR tree-optimization/43879
28932 * tree-ssa-structalias.c (type_could_have_pointers): Functions
28935 2010-04-30 Jan Hubicka <jh@suse.cz>
28937 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
28939 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
28941 2010-04-30 Jan Hubicka <jh@suse.cz>
28943 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
28945 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
28946 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
28947 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
28948 cgraph_node_set_needs_ltrans_p): Remove.
28950 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
28952 * sdbout.c: Include vec.h, do not include varray.h.
28953 (deferred_global_decls, sdbout_global_decl,
28954 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
28955 * toplev.c: Do not include varray.h.
28956 (dump_memory_report): Do not dump VARRAY statistics.
28957 * gengtype.c (open_base_file): Ignore varray.h.
28958 * Makefile.in: Update for abovementioned changes.
28959 Remove all traces of varray.c and varray.h.
28960 * varray.c: Remove file.
28961 * varray.h: Remove file.
28963 2010-04-30 Jan Hubicka <jh@suse.cz>
28965 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
28968 2010-04-30 Jan Hubicka <jh@suse.cz>
28970 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
28973 2010-04-30 Richard Guenther <rguenther@suse.de>
28975 * tree-ssa-structalias.c (get_constraint_for_1): Generate
28976 constraints for CONSTRUCTOR.
28978 2010-04-30 Richard Guenther <rguenther@suse.de>
28981 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
28982 first after all lowering passes.
28984 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
28986 * toplev.c: Include varray.h for statistics dumping.
28987 * tree.h: Do not declare varray_head_tag.
28988 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
28989 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
28990 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
28991 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
28992 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
28993 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
28994 c-common.c, c-common.h, reg-stack.c, basic-block.h,
28995 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
28997 * Makefile.in: Update for abovementioned changes.
28999 2010-04-30 Jakub Jelinek <jakub@redhat.com>
29002 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
29004 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29006 * config/picochip/picochip.c (picochip_legitimize_address): Define.
29007 Use this function to do machine-specific conversion.
29008 (picochip_legitimize_reload_address): Likewise.
29009 (picochip_legitimate_address_p): Check valid base register only if
29011 (picochip_check_conditional_copy): Check for modw only if opnd is
29013 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
29014 to call the function in c.
29015 * config/picochip/picochip-protos.h
29016 (picochip_legitimize_reload_address): Define.
29017 * config/picochip/picochip.md (supported_compare1): Define.
29019 2010-04-30 Jan Hubicka <jh@suse.cz>
29021 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
29022 (cgraph_global_info): Remove inlined.
29023 (LTO_cgraph_tag_names): Remove.
29024 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
29025 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
29026 simplify cgraph tags and document.
29027 (lto_output_node): Use only LTO_cgraph_unavail_node and
29028 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
29029 for_functions_valid, global info, process and output flags.
29030 (input_overwrite_node): Initialize estimated stack size and
29031 estimated growth. Do not read flags we no longer store.
29032 (input_node): Likewise do not read info no longer stored.
29033 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
29036 2010-04-30 Richard Guenther <rguenther@suse.de>
29038 PR tree-optimization/43879
29039 * tree-ssa-structalias.c (get_constraint_for_1): Properly
29040 handle non-zero initializers.
29042 2010-04-30 Richard Guenther <rguenther@suse.de>
29044 * builtins.c (fold_builtin_1): Delete free (0).
29046 2010-04-29 Jan Hubicka <jh@suse.cz>
29048 * gengtype.c (open_base_files): Add lto-streamer.h
29049 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
29050 (pass_ipa_cp): GGC collect.
29051 * toplev. (compile_file): Do not output symbols.
29052 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
29053 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
29054 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
29055 * lto-section-in.c: Include ggc.h
29056 (lto_new_in_decl_state): Alloc in GGC.
29057 (lto_delete_in_decl_state): Likewise.
29058 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
29061 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29064 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
29065 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
29066 (HONOR_REG_ALLOC_ORDER): Describe new macro.
29067 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
29068 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
29069 account only if HONOR_REG_ALLOC_ORDER is not defined.
29070 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
29071 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
29073 2010-04-29 Jon Grant <04@jguk.org>
29075 * collect2.c (vflag): Change type from int to bool.
29077 (helpflag): New global bool.
29078 (main): Set vflag and debug with boolean, not integer truth values.
29079 Accept new "--help" option and output usage text if found.
29080 * collect2.h (vflag): Update prototype.
29083 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29086 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
29088 2010-04-29 Richard Guenther <rguenther@suse.de>
29091 * plugin.h (invoke_plugin_callbacks): Annotate arguments
29092 with ATTRIBUTE_UNUSED.
29094 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29097 * config/i386/i386.c (get_some_local_dynamic_name): Replace
29098 INSN_P with NONDEBUG_INSN_P.
29099 (distance_non_agu_define): Likewise.
29100 (distance_agu_use): Likewise.
29102 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29104 From Dominique d'Humieres <dominiq@lps.ens.fr>
29106 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
29109 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
29111 * plugin.h (invoke_plugin_callbacks): New inline function.
29112 * plugin.c (flag_plugin_added): New global flag.
29113 (add_new_plugin): Initialize above flag.
29114 (invoke_plugin_callbacks): Rename to ...
29115 (invoke_plugin_callbacks_full): ... this.
29117 2010-04-28 Jan Hubicka <jh@suse.cz>
29119 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
29120 (lto_varpool_replace_node): New.
29121 (lto_symtab_resolve_symbols): Resolve varpool nodes.
29122 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
29123 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
29124 * cgraph.h (varpool_node_ptr): New type.
29125 (varpool_node_ptr): New vector.
29126 (varpool_node_set_def): New structure.
29127 (varpool_node_set): New type.
29128 (varpool_node_set): New vector.
29129 (varpool_node_set_element_def): New structure.
29130 (varpool_node_set_element, const_varpool_node_set_element): New types.
29131 (varpool_node_set_iterator): New type.
29132 (varpool_node): Add prev pointers, add used_from_other_partition,
29133 in_other_partition.
29134 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
29135 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
29136 varpool_get_node, varpool_remove_node): Declare.
29137 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
29138 varpool_node_set_size): New inlines.
29139 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
29140 * tree-pass.h (varpool_node_set_def): Forward declare.
29141 (ipa_opt_pass_d): Summary writting takes vnode sets too.
29142 (ipa_write_optimization_summaries): Update prototype.
29143 * ipa-cp.c (ipcp_write_summary): Update.
29144 * ipa-reference.c (ipa_reference_write_summary): Update.
29145 * lto-cgraph.c (lto_output_varpool_node): New static function.
29146 (output_varpool): New function.
29147 (input_varpool_node): New static function.
29148 (input_varpool_1): New function.
29149 (input_cgraph): Input varpool.
29150 * ipa-pure-const.c (pure_const_write_summary): Update.
29151 * lto-streamer-out.c (lto_output): Update, output varpool too.
29152 (write_global_stream): Kill WPA hack.
29153 (produce_asm_for_decls): Update.
29154 (output_alias_pair_p): Handle variables.
29155 (output_unreferenced_globals): Output only needed partition of varpool.
29156 * ipa-inline.c (inline_write_summary): Update.
29157 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
29159 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
29160 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
29161 varpool_node_set_new, varpool_node_set_add,
29162 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
29163 debug_varpool_node_set): New functions.
29164 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
29165 (execute_one_pass): Process new decls too.
29166 (ipa_write_summaries_2): Pass around vsets.
29167 (ipa_write_summaries_1): Likewise.
29168 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
29170 (ipa_write_optimization_summaries_1): Pass around vsets.
29171 (ipa_write_optimization_summaries): Likewise.
29172 * varpool.c (varpool_get_node): New.
29173 (varpool_node): Update doubly linked lists.
29174 (varpool_remove_node): New.
29175 (dump_varpool_node): More dumping.
29176 (varpool_enqueue_needed_node): Update doubly linked lists.
29177 (decide_is_variable_needed): Kill ltrans hack.
29178 (varpool_finalize_decl): Kill lto hack.
29179 (varpool_assemble_decl): Skip decls in other partitions.
29180 (varpool_assemble_pending_decls): Update doubly linkes lists.
29181 (varpool_empty_needed_queue): Likewise.
29182 (varpool_extra_name_alias): Likewise.
29183 * lto-streamer.c (lto_get_section_name): Add vars section.
29184 * lto-streamer.h (lto_section_type): Update.
29185 (output_varpool, input_varpool): Declare.
29187 2010-04-28 Mike Stump <mikestump@comcast.net>
29189 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
29191 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29193 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
29194 record or union type with RECORD_OR_UNION_TYPE_P predicate.
29195 (lto_input_ts_type_tree_pointers): Likewise.
29196 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
29197 (lto_output_ts_type_tree_pointers): Likewise.
29199 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29201 Uniquization of constants at the Tree level
29202 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
29203 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
29205 (tree_output_constant_def): Declare.
29206 * gimplify.c (gimplify_init_constructor): When using block copy, first
29207 uniquize the constant constructor on the RHS.
29208 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
29209 DECL_IN_CONSTANT_POOL flag.
29210 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
29211 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
29213 (assemble_variable): Deal with symbols belonging to the tree constant
29215 (get_constant_section): Add ALIGN parameter and simplify.
29216 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
29217 (assemble_constant_contents): Use the expression of the VAR_DECL.
29218 (output_constant_def_contents): Use the alignment of the VAR_DECL.
29219 (tree_output_constant_def): New global function.
29220 (mark_constant): Use the expression of the VAR_DECL.
29221 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
29223 (output_object_block): Likewise and assemble the expression.
29225 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29227 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
29228 hash_tree, eq_tree): New tree hash table.
29229 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
29230 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
29231 lto_orig_address_remove): Reimplement.
29233 2010-04-28 Xinliang David Li <davidxl@google.com>
29236 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
29237 (compute_uninit_opnds_pos): New function.
29238 (is_non_loop_exit_postdominating): New function.
29239 (compute_control_dep_chain): New function.
29240 (find_pdom): New function.
29241 (convert_control_dep_chain_into_preds): New function.
29242 (find_predicates): New function.
29243 (find_control_equiv_block): New function.
29244 (collect_phi_def_edges): New function.
29245 (find_def_preds): New function.
29246 (find_dom): New function.
29247 (dump_predicates): New function.
29248 (get_cmp_code): New function.
29249 (is_value_included_in): New function.
29250 (find_matching_predicate_in_rest_chains): New function.
29251 (use_pred_not_overlap_with_undef_path_pred): New function.
29252 (is_use_properly_guarded): New function.
29253 (normalize_cond_1): New function.
29254 (is_and_or_or): New function.
29255 (normalize_cond): New function.
29256 (is_gcond_subset_of): New function.
29257 (is_subset_of_any): New function.
29258 (is_or_set_subset_of): New function.
29259 (is_and_set_subset_of): New function.
29260 (is_norm_cond_subset_of): New function.
29261 (is_pred_expr_subset_of): New function.
29262 (is_pred_chain_subset_of): New function.
29263 (is_included_in): New function.
29264 (is_superset_of): New function.
29265 (find_uninit_use): New function.
29266 (warn_uninitialized_phi): New function.
29267 (compute_possibly_undefined_names): New function.
29268 (ssa_undefined_value_p): New function.
29269 (execute_late_warn_uninitialized): New function.
29270 * tree-ssa.c (ssa_undefined_value_p): Removed.
29271 (warn_uninit): Changed to extern.
29272 (warn_uninitialized_phi): Removed.
29273 (warn_uninitialized_vars): Changed to extern.
29274 (execute_late_warn_uninitialized): Removed
29275 * tree-flow.h: Add new prototypes.
29276 * timevar.def: Add new time variable.
29277 * Makefile.in: Add new build file.
29279 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
29281 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
29284 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29287 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
29289 2010-04-28 Martin Jambor <mjambor@suse.cz>
29291 * cgraph.h (struct cgraph_node): New field indirect_calls.
29292 (struct cgraph_indirect_call_info): New type.
29293 (struct cgraph_edge): Removed field indirect_call. New fields
29294 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
29295 (cgraph_create_indirect_edge): Declare.
29296 (cgraph_make_edge_direct): Likewise.
29297 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
29298 * ipa-prop.h (struct ipa_param_call_note): Removed.
29299 (struct ipa_node_params): Removed field param_calls.
29300 (ipa_create_all_structures_for_iinln): Declare.
29301 * cgraph.c: Described indirect edges and uids in initial comment.
29302 (cgraph_add_edge_to_call_site_hash): New function.
29303 (cgraph_edge): Search also among the indirect edges, use
29304 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
29305 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
29306 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
29308 (initialize_inline_failed): Assign a reason to indirect edges.
29309 (cgraph_create_edge_1): New function.
29310 (cgraph_create_edge): Moved some functionality to
29311 cgraph_create_edge_1.
29312 (cgraph_create_indirect_edge): New function.
29313 (cgraph_edge_remove_callee): Add an assert checking for
29315 (cgraph_edge_remove_caller): Special-case indirect edges.
29316 (cgraph_remove_edge): Likewise.
29317 (cgraph_set_edge_callee): New function.
29318 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
29319 (cgraph_make_edge_direct): New function.
29320 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
29321 the declaration of the call statement matches.
29322 (cgraph_node_remove_callees): Special-case indirect edges.
29323 (cgraph_clone_edge): Likewise.
29324 (cgraph_clone_node): Clone also the indirect edges.
29325 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
29326 indirect_call, dump count of indirect_calls edges.
29327 * ipa-prop.c (iinlining_processed_edges): New variable.
29328 (ipa_note_param_call): Create indirect edges instead of
29329 creating notes. New parameter node.
29330 (ipa_analyze_call_uses): New parameter node, pass it on to
29331 ipa_note_param_call.
29332 (ipa_analyze_stmt_uses): Likewise.
29333 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
29334 (print_edge_addition_message): Work on edges rather than on notes.
29335 (update_call_notes_after_inlining): Likewise, renamed to
29336 update_indirect_edges_after_inlining.
29337 (ipa_create_all_structures_for_iinln): New function.
29338 (ipa_free_node_params_substructures): Do not free notes.
29339 (ipa_edge_duplication_hook): Propagate bits within
29340 iinlining_processed_edges bitmap.
29341 (ipa_node_duplication_hook): Do not duplicate notes.
29342 (free_all_ipa_structures_after_ipa_cp): Renamed to
29343 ipa_free_all_structures_after_ipa_cp.
29344 (free_all_ipa_structures_after_iinln): Renamed to
29345 ipa_free_all_structures_after_iinln.
29346 (ipa_write_param_call_note): Removed.
29347 (ipa_read_param_call_note): Removed.
29348 (ipa_write_indirect_edge_info): New function.
29349 (ipa_read_indirect_edge_info): Likewise.
29350 (ipa_write_node_info): Do not stream notes, do stream information
29352 (ipa_read_node_info): Likewise.
29353 (lto_ipa_fixup_call_notes): Removed.
29354 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
29355 * ipa-inline.c (pass_ipa_inline): Likewise.
29356 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
29357 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
29358 * tree-inline.c (copy_bb): Removed an unnecessary double check for
29360 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
29362 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
29363 (output_cgraph): Stream also indirect edges.
29364 (lto_output_edge): Added capability to stream indirect edges.
29365 (input_edge): Likewise.
29366 (input_cgraph_1): Likewise.
29367 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
29370 2010-04-28 Richard Guenther <rguenther@suse.de>
29372 PR tree-optimization/43879
29373 PR tree-optimization/43909
29374 * tree-ssa-structalias.c (struct variable_info): Add
29375 only_restrict_pointers flag.
29376 (new_var_info): Initialize it. Increment stats.total_vars here.
29377 (create_function_info_for): Do not increment stats.total_vars here.
29378 (get_function_part_constraint): Fix build with C++.
29379 (insert_into_field_list): Remove.
29380 (push_fields_onto_fieldstack): Properly merge fields.
29381 (create_variable_info_for): Split and simplify.
29382 (create_variable_info_for_1): New piece.
29383 (intra_create_variable_infos): Properly make restrict constraints
29386 2010-04-28 Richard Guenther <rguenther@suse.de>
29389 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
29391 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
29392 Jan Hubicka <hubicka@ucw.cz>
29394 * doc/invoke.texi (-Wsuggest-attribute=const,
29395 -Wsuggest-attribute=pure): Document.
29396 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
29397 (function_always_visible_to_compiler_p,
29398 suggest_attribute, warn_function_pure, warn_function_const):
29400 (check_call): Improve debug info.
29401 (analyze_function): Do not check availability.
29402 (add_new_function): Check availability.
29403 (propagate): Output warnings.
29404 (skip_function_for_local_pure_const): New function.
29405 (local_pure_const): Use it; output warnings.
29406 * common.opt (Wsuggest-attribute=const,
29407 Wsuggest-attribute=pure): New.
29409 2010-04-27 Jakub Jelinek <jakub@redhat.com>
29411 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
29412 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
29413 or DW_CFA_def_cfa_offset{,_sf}.
29415 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
29417 * tree.h: Fix truncated long macros.
29419 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
29421 * collect2.c (TARGET_64BIT): Redefine to target's default.
29422 * tlink.c: Likewise.
29423 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
29424 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
29425 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
29426 for underscoring __USER_LABEL_PREFIX__.
29427 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
29428 (SUB_LINK_ENTRY32): New.
29429 (SUB_LINK_ENTRY64): New.
29430 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
29431 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
29432 (SUB_LINK_ENTRY64): New.
29433 (SUB_LINK_ENTRY): New.
29434 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
29435 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
29436 x64 target is choosen.
29437 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
29438 * configure: Regenerated.
29439 * configure.ac (leading-mingw64-underscores): Option added.
29441 2010-04-27 Jan Hubicka <jh@suse.cz>
29443 * doc/invoke.texi (-fipa-profile): Document.
29444 * opts.c (decode_options): Enable ipa-profile at -O1.
29445 * timevar.def (TV_IPA_PROFILE): Define.
29446 * common.opt (fipa-profile): Add.
29447 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
29449 (cgraph_propagate_frequency): Handle only local ones.
29450 * tree-pass.h (pass_ipa_profile): Declare.
29451 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
29452 (pass_ipa_profile): Use TV_IPA_PROFILE.
29453 * ipa.c (ipa_profile): New function.
29454 (gate_ipa_profile): Likewise.
29455 (pass_ipa_profile): New global variable.
29456 * passes.c (pass_ipa_profile): New.
29458 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
29460 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
29462 2010-04-27 Martin Jambor <mjambor@suse.cz>
29464 PR middle-end/43812
29465 * ipa.c (dissolve_same_comdat_group_list): New function.
29466 (function_and_variable_visibility): Call
29467 dissolve_same_comdat_group_list when comdat group contains external or
29469 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
29470 lists are circular and that they contain only DECL_ONE_ONLY nodes.
29472 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
29474 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
29475 (const_hash_1) <VECTOR_CST>: New case.
29476 (compare_constant) <VECTOR_CST>: Likewise.
29477 <ADDR_EXPR>: Deal with LABEL_REFs.
29478 (copy_constant) <VECTOR_CST>: New case.
29480 2010-04-27 Jan Hubicka <jh@suse.cz>
29482 * cgraph.c (cgraph_propagate_frequency): New function.
29483 * cgraph.h (cgraph_propagate_frequency): Declare.
29484 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
29485 cgraph_propagate_frequency.
29487 2010-04-27 Jakub Jelinek <jakub@redhat.com>
29489 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
29491 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
29494 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
29495 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
29496 here to determine which regs to push and how much stack to reserve.
29498 2010-04-27 Jie Zhang <jie@codesourcery.com>
29500 * doc/gimple.texi (gimple_statement_with_ops): Remove
29501 addresses_taken field.
29502 (gimple_statement_with_memory_ops): Likewise.
29504 2010-04-27 Jan Hubicka <jh@suse.cz>
29506 * tree-inline.c (eni_inlining_weights): Remove.
29507 (estimate_num_insns): Special case more builtins.
29509 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
29512 * c-typeck.c (build_binary_op): Move forward check for comparison
29513 pointer with null pointer constant and adjust the diagnostic message.
29515 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
29518 * configure.ac (gcc_cv_as_section_has_align): Set if installed
29519 binutils supports extended .section directive needed by LTO, or
29520 warn if older binutils found.
29521 (LTO_BINARY_READER): New AC_SUBST'd variable.
29522 (LTO_USE_LIBELF): Likewise.
29523 * config.gcc (lto_binary_reader): New target-specific configure
29525 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
29526 (LTO_USE_LIBELF): Likewise.
29527 * configure: Regenerate.
29529 * collect2.c (is_elf): Rename from this ...
29530 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
29531 object files in addition to ELF-formatted ones.
29532 (scan_prog_file): Caller updated. Also allow for LTO info marker
29533 symbol to be prefixed or not by an extra underscore.
29535 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
29536 * config/i386/winnt.c: Also #include lto-streamer.h
29537 (i386_pe_asm_named_section): Specify 1-byte section alignment for
29538 LTO named sections.
29539 (i386_pe_asm_output_aligned_decl_common): Add comment.
29540 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
29542 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
29545 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
29546 Add missing earlyclobber for second alternative.
29548 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
29550 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
29551 bits for artificial defs at the top of the block.
29552 * fwprop.c (single_def_use_enter_block): Don't call it.
29554 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
29557 * configure.ac: Use "$gcc_cv_nm -g" on darwin
29558 instead of "$gcc_cv_objdump -T".
29559 Use "-undefined dynamic_lookup" on darwin.
29560 * configure: Regenerate.
29562 2010-04-26 Jakub Jelinek <jakub@redhat.com>
29565 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
29567 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
29569 * c-parser.c (struct c_token): Move location field up.
29570 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
29571 (struct c_declspecs): Convert typespec_word, storage_class, and
29572 default_int_p into bitfields.
29573 (struct c_declarator): Move loc field up.
29575 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
29577 * cfgloop.h (struct loop): Move can_be_parallel field up.
29578 * ipa-prop.h (struct ip_node_params): Move bitfields up.
29579 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
29581 (struct iv_cand): Convert pos field into a bitfield.
29582 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
29584 (struct _stmt_vec_info): Shuffle fields for better packing.
29586 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
29588 * varasm.c (IN_NAMED_SECTION): Remove guard.
29589 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
29590 (IN_NAMED_SECTION_P): ...this.
29591 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
29592 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
29594 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
29596 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
29597 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
29598 of shadowing it. Fix comments.
29600 2010-04-26 Jan Hubicka <jh@suse.cz>
29602 * cgraph.c (cgraph_create_node): Set node frequency to normal.
29603 (cgraph_clone_node): Copy function frequency.
29604 * cgraph.h (node_frequency): New enum
29605 (struct cgraph_node): Add.
29606 * final.c (rest_of_clean_state): Update.
29607 * lto-cgraph.c (lto_output_node): Output node frequency.
29608 (input_overwrite_node): Input node frequency.
29609 * tre-ssa-loop-ivopts (computation_cost): Update.
29610 * lto-streamer-out.c (output_function): Do not output function
29612 * predict.c (maybe_hot_frequency_p): Update and handle functions
29614 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
29616 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
29617 (compute_function_frequency): Set noreturn functions to be executed
29619 (choose_function_section): Update.
29620 * lto-streamer-in.c (input_function): Do not input function frequency.
29621 * function.c (allocate_struct_function): Do not initialize function
29623 * function.h (function_frequency): Remove.
29624 (struct function): Remove function frequency.
29625 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
29626 (try_update): Update.
29627 * tree-inline.c (initialize_cfun): Do not update function frequency.
29628 * passes.c (pass_init_dump_file): Update.
29629 * i386.c (ix86_compute_frame_layout): Update.
29630 (ix86_pad_returns): Update.
29632 2010-04-26 Jie Zhang <jie@codesourcery.com>
29634 PR tree-optimization/43833
29635 * tree-vrp.c (range_int_cst_p): New.
29636 (range_int_cst_singleton_p): New.
29637 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
29638 when both operands are constants. Use range_int_cst_p in
29641 2010-04-26 Jan Hubicka <jh@suse.cz>
29643 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
29645 2010-04-26 Richard Guenther <rguenther@suse.de>
29648 * gimple.c (gimple_decl_printable_name): Deal gracefully
29649 with a NULL DECL_NAME.
29651 2010-04-26 Richard Guenther <rguenther@suse.de>
29654 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
29655 if emitting debug information and it is either a function
29656 or a namespace decl.
29658 2010-04-26 Ira Rosen <irar@il.ibm.com>
29660 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
29661 determine if the statement is vectorizable, and a macro to access it.
29662 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29663 Skip statements that can't be vectorized. If the analysis fails,
29664 mark the statement as unvectorizable if vectorizing basic block.
29665 (vect_compute_data_refs_alignment): Likewise.
29666 (vect_verify_datarefs_alignment): Skip statements marked as
29667 unvectorizable. Add print.
29668 (vect_analyze_group_access): Skip statements that can't be
29669 vectorized. If the analysis fails, mark the statement as
29670 unvectorizable if vectorizing basic block.
29671 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
29672 * tree-vect-stmts.c (vectorizable_store): Fix the number of
29673 generated stmts for SLP.
29674 (new_stmt_vec_info): Initialize the new field.
29675 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
29676 statements marked as unvectorizable.
29678 2010-04-25 Joseph Myers <joseph@codesourcery.com>
29680 * c-common.c (flag_isoc1x): New.
29681 (flag_isoc99): Update comment.
29682 * c-common.h (flag_isoc1x): New.
29683 (flag_isoc99): Update comment.
29684 * c-cppbuiltin.c (builtin_define_float_constants): Also define
29685 __<type>_DECIMAL_DIG__.
29686 * c-opts.c (set_std_c1x): New.
29687 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
29688 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
29689 * c.opt (-std=c1x, -std=gnu1x): New options.
29690 * doc/cpp.texi: Mention -std=c1x.
29691 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
29692 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
29693 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
29694 * doc/standards.texi: Mention C1X.
29695 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
29696 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
29697 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
29700 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
29702 * config/i386/gmon-sol2.c (_mcleanup): Change format string
29703 placeholder from 0x%x to %#x.
29704 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29705 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29706 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29707 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29708 * config/i386/i386.c (ix86_target_string): Ditto.
29709 (output_pic_addr_const): Ditto.
29710 (print_operand): Ditto.
29712 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
29714 * combine.c (find_split_point): Add third argument. Use it
29715 to find nested multiply-accumulate instructions. Adjust calls.
29716 (try_combine): Adjust call to find_split_point.
29718 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
29720 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
29722 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
29724 PR tree-optimization/41442
29725 * fold-const.c (merge_truthop_with_opposite_arm): New function.
29726 (fold_binary_loc): Call it.
29728 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
29730 * toplev.c (general_init): Set default for fdiagnostics-show-option.
29731 * opts.c (common_handle_option): Allow disabling it.
29732 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
29734 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
29736 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
29737 between modes if both types are integral.
29739 2010-04-23 Richard Guenther <rguenther@suse.de>
29741 PR tree-optimization/43572
29742 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
29744 2010-04-23 Richard Guenther <rguenther@suse.de>
29747 * tree-inline.c (tree_can_inline_p): Also check compatibility
29750 2010-04-23 Martin Jambor <mjambor@suse.cz>
29752 PR tree-optimization/43846
29753 * tree-sra.c (struct access): New flag grp_assignment_read.
29754 (build_accesses_from_assign): Set grp_assignment_read.
29755 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
29756 (enum mark_read_status): New type.
29757 (analyze_access_subtree): Propagate grp_assignment_read, create
29758 accesses also if both direct_read and root->grp_assignment_read.
29760 2010-04-23 Martin Jambor <mjambor@suse.cz>
29762 PR middle-end/43835
29763 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
29764 function does not have type attributes.
29766 2010-04-23 Richard Guenther <rguenther@suse.de>
29769 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
29772 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29774 * sese.h (create_if_region_on_edge): Remove.
29776 * sese.c (create_if_region_on_edge): Make static.
29778 * tree-inline.c: Do not include ggc.h.
29780 * expr.c: Do not include ggc.h.
29782 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
29785 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
29788 * config/sh/sh.c (find_barrier): Don't emit a constant pool
29789 in the middle of insns for casesi_worker_2.
29791 2010-04-22 David Edelsohn <edelsohn@gnu.org>
29793 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
29795 2010-04-22 Ira Rosen <irar@il.ibm.com>
29797 PR tree-optimization/43842
29798 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
29799 loop unrolling in update of exit phis. Fix comment.
29800 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
29801 least two reduction statements in the loop before starting SLP
29804 2010-04-22 Nick Clifton <nickc@redhat.com>
29806 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
29808 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
29810 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
29811 to simplify a + ~a.
29813 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29815 * tree-parloops.c (loop_parallel_p): New argument
29816 parloop_obstack. Pass it down.
29817 (parallelize_loops): New variable parloop_obstack. Initialize it,
29818 pass it down, free it.
29820 * tree-loop-linear.c (linear_transform_loops): Pass down
29823 * tree-data-ref.h (lambda_compute_access_matrices): New argument
29824 of type struct obstack *.
29826 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
29827 scratch_obstack. Initialize it, pass down, free it.
29829 * lambda.h (lambda_loop_new): Remove.
29830 (lambda_matrix_new, lambda_matrix_inverse)
29831 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
29832 argument of type struct obstack *.
29834 * lambda-trans.c (lambda_trans_matrix_new): New argument
29835 lambda_obstack. Pass it down, use obstack allocation for ret.
29836 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
29839 * lambda-mat.c (lambda_matrix_get_column)
29840 (lambda_matrix_project_to_null): Remove.
29841 (lambda_matrix_new): New argument lambda_obstack. Use obstack
29842 allocation for mat.
29843 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
29846 * lambda-code.c (lambda_loop_new): New function.
29847 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
29848 (lambda_compute_auxillary_space, lambda_compute_target_space)
29849 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
29850 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
29851 (build_access_matrix): New argument lambda_obstack. Use obstack
29853 (lambda_compute_step_signs, lambda_compute_access_matrices): New
29854 argument lambda_obstack. Pass it down.
29856 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29858 * optabs.h (expand_widening_mult): Declare.
29860 2010-04-22 Richard Guenther <rguenther@suse.de>
29862 PR tree-optimization/43845
29863 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
29864 lookup the CALL_EXPR function and arguments.
29866 2010-04-22 Nick Clifton <nickc@redhat.com>
29868 * config/stormy16/stormy16.c
29869 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
29870 * config/stormy16/stormy16.h: Tidy up formatting.
29871 (DONT_USE_BUILTIN_SETJMP): Remove definition.
29872 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
29873 (ineqbranchsi): Delete pattern.
29874 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
29875 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
29876 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
29877 stormy16-lib2-ucmpsi2.c.
29879 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29881 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
29882 df_simulate_find_noclobber_defs as appropriate. Keep track of an
29883 extra set merge_set_noclobber, and use it to relax the final test
29885 * df.h (df_simulate_find_noclobber_defs): Declare.
29886 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
29888 (df_simulate_find_noclobber_defs): New function.
29890 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
29892 * config/i386/i386.md: Use {} around multi-line preparation statements.
29894 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29896 * c-tree.h (push_init_level, pop_init_level, set_init_index)
29897 (process_init_element): New argument of type struct obstack *.
29899 * c-typeck.c (push_init_level, pop_init_level, set_designator)
29900 (set_init_index, set_init_label, set_nonincremental_init)
29901 (set_nonincremental_init_from_string, find_init_member)
29902 (output_init_element, output_pending_init_elements)
29903 (process_init_element): New argument braced_init_obstack. Pass it
29905 (push_range_stack, add_pending_init): New argument
29906 braced_init_obstack. Use obstack allocation.
29908 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
29909 braced_init_obstack. Pass it down.
29910 (c_parser_braced_init): New variables ret, braced_init_obstack.
29911 Initialize obstack, pass it down and finally free it.
29913 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29915 PR middle-end/29274
29916 * tree-pass.h (pass_optimize_widening_mul): Declare.
29917 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
29918 gate_optimize_widening_mul): New static functions.
29919 (pass_optimize_widening_mul): New.
29920 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
29921 <case MULT_EXPR>: Remove support for widening multiplies.
29922 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
29923 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
29924 simplify_gen_unary rather than directly building extensions.
29925 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
29927 * expmed.c (expand_widening_mult): New function.
29928 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
29930 2010-04-21 Jan Hubicka <jh@suse.cz>
29932 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
29933 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
29934 * lto-wpa-fixup.c: Remove.
29935 * Makefile.in (lto-wpa-fixup.o): Remove.
29936 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
29937 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
29938 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
29940 2010-04-21 Jan Hubicka <jh@suse.cz>
29942 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
29943 add write_optimization_summary, read_optimization_summary.
29944 (ipa_write_summaries_of_cgraph_node_set): Remove.
29945 (ipa_write_optimization_summaries): Declare.
29946 (ipa_read_optimization_summaries): Declare.
29947 * ipa-cp.c (pass_ipa_cp): Update.
29948 * ipa-reference.c (pass_ipa_reference): Update.
29949 * ipa-pure-const.c (pass_ipa_pure_const): Update.
29950 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
29952 * ipa-inline.c (pass_ipa_inline): Update.
29953 * ipa.c (pass_ipa_whole_program): Update.
29954 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
29955 * passes.c (ipa_write_summaries_1): Do not test wpa.
29956 (ipa_write_optimization_summaries_1): New.
29957 (ipa_write_optimization_summaries): New.
29958 (ipa_read_summaries): Do not test ltrans.
29959 (ipa_read_optimization_summaries_1): New.
29960 (ipa_read_optimization_summaries): New.
29962 2010-04-21 Jan Hubicka <jh@suse.cz>
29964 * lto-cgraph.c (lto_output_node): Do not output comdat groups
29965 for boundary nodes.
29966 (output_cgraph): Do not arrange comdat groups for boundary nodes.
29968 2010-04-21 Jakub Jelinek <jakub@redhat.com>
29971 * dwarf2out.c (add_name_and_src_coords_attributes): Add
29972 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
29974 2010-04-21 Jan Hubicka <jh@suse.cz>
29976 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
29978 2010-04-21 Jan Hubicka <jh@suse.cz>
29980 * varpool.c (decide_is_variable_needed): Variable is always needed
29983 2010-04-21 Jan Hubicka <jh@suse.cz>
29985 * opts.c (decode_options): Enable pure-const pass for whopr.
29987 2010-04-21 Jan Hubicka <jh@suse.cz>
29989 * cgraph.c (dump_cgraph_node): Dump also assembler name.
29990 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
29992 (cgraph_decide_inlining): Do not expect callee to be removed in all
29995 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
29997 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
29999 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30001 * config/i386/i386.md (x86_shrd): Add athlon_decode and
30002 amdfam10_decode attributes.
30004 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30006 PR middle-end/43570
30007 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
30008 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
30009 (lower_copyprivate_clauses): Use private var in outer
30010 context instead of original var. Make sure the types
30011 are correct for VLAs.
30013 2010-04-21 Richard Guenther <rguenther@suse.de>
30015 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
30016 to non-pointer objects.
30018 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30020 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
30021 last chain entry if it starts with the still current label.
30022 (add_location_or_const_value_attribute): Check that
30023 loc_list->first->next is NULL instead of comparing ->first with ->last.
30024 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
30025 to add_var_loc_to_decl.
30027 * dwarf2out.c (output_call_frame_info): For dw_cie_version
30028 >= 4 add also address size and segment size fields into CIE header.
30030 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
30031 long as address size is the same as sizeof (void *) and
30033 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
30034 address size or segment size is unexpected, return DW_EH_PE_omit.
30035 (classify_object_over_fdes): If get_cie_encoding returned
30036 DW_EH_PE_omit, return -1.
30037 (init_object): If classify_object_over_fdes returned -1,
30038 pretend there were no FDEs at all.
30040 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30042 * config/i386/i386.md (bswap<mode>2): Macroize expander from
30043 bswap{si,di}2 using SWI48 mode iterator.
30044 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
30045 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
30046 set modrm attribute of bswap insn to 0 and remove length attribute.
30047 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
30048 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
30049 set mode attribute to <MODE> and remove length attribute.
30051 2010-04-20 James E. Wilson <wilson@codesourcery.com>
30053 PR rtl-optimization/43520
30054 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
30055 zero available registers.
30057 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30059 * builtins.c (fold_builtin_cproj): Fold more cases.
30061 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30063 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
30064 (fold_builtin_1): Fold builtin cproj.
30065 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
30066 Use ATTR_CONST_NOTHROW_LIST.
30068 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
30070 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
30071 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
30072 ffsi2_no_cmove for !TARGET_CMOVE.
30073 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
30074 (ffssi2): Remove expander.
30075 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
30077 (ctz<mode>2): Ditto from ctz{si,di}2.
30078 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
30080 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
30083 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30085 * dwarf2out.c (AT_linkage_name): Define.
30086 (clone_as_declaration): Handle DW_AT_linkage_name.
30087 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
30088 of DW_AT_MIPS_linkage_name.
30089 (move_linkage_attr): Likewise.
30090 (dwarf2out_finish): Likewise.
30092 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
30094 PR middle-end/41952
30095 * fold-const.c (fold_comparison): New folding rule.
30097 2010-04-20 Anatoly Sokolov <aesok@post.ru>
30099 * double-int.h (double_int_setbit): Declare.
30100 * double-int.c (double_int_setbit): New function.
30101 * rtl.h (immed_double_int_const): Declare.
30102 * emit-rtl.c (immed_double_int_const): New function.
30103 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
30104 and immed_double_int_const functions.
30105 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
30106 expand_copysign_bit): (Ditto.).
30107 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
30108 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
30109 * dojump.c (prefer_and_bit_test): (Ditto.).
30110 * expr.c (convert_modes, reduce_to_bit_field_precision,
30111 const_vector_from_tree): (Ditto.).
30112 * expmed.c (mask_rtx, lshift_value): (Ditto.).
30114 2010-04-20 Jan Hubicka <jh@suse.cz>
30116 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
30117 (dump_cgraph_node): Dump new flags.
30118 * cgraph.h (struct cgraph_node): Add flags
30119 reachable_from_other_partition and in_other_partition.
30120 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
30121 other partition can not be removed.
30122 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
30123 the other partition must be output; silence sanity checking on
30124 leaking functions bodies from other paritition.
30125 * lto-cgraph.c (reachable_from_other_partition_p): New function.
30126 (lto_output_node): Output new flags; do not sanity check that inline
30127 clones are output; drop lto_forced_extern_inline_p code; do not mock
30128 visibility flags at partition boundaries.
30129 (add_node_to): New function.
30130 (output_cgraph): Use it to sort functions so masters appear before
30132 (input_overwrite_node): Input new flags.
30133 * passes.c (ipa_write_summaries): Do not call
30134 lto_new_extern_inline_states.
30135 * lto-section-out.c (forced_extern_inline,
30136 lto_new_extern_inline_states lto_delete_extern_inline_states,
30137 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
30138 * lto-streamer.h (lto_new_extern_inline_states,
30139 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
30140 lto_forced_extern_inline_p): Kill.
30142 2010-04-20 Richard Guenther <rguenther@suse.de>
30144 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
30145 from vars that can have pointers.
30146 (process_constraint): Dump useless constraints.
30148 2010-04-20 Richard Guenther <rguenther@suse.de>
30150 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
30151 (dump_sa_points_to_info): Remove asserts.
30152 (init_base_vars): nothing_id isn't an escape point nor does it
30155 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30157 * tree.h (TYPE_REF_IS_RVALUE): Define.
30158 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
30159 should_move_die_to_comdat, prune_unused_types_walk): Handle
30160 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
30161 (modified_type_die, gen_reference_type_die): Emit
30162 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
30163 if TYPE_REF_IS_RVALUE and -gdwarf-4.
30165 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30168 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
30169 calls for -fpic -m31 if they have been sibcall optimized.
30171 2010-04-19 James E. Wilson <wilson@codesourcery.com>
30173 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
30174 ar.lc fixed and call-used.
30176 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
30178 2010-04-19 Jan Hubicka <jh@suse.cz>
30180 * opts.c (decode_options): Disable whpr incompatible passes.
30181 * lto/lto.c (lto_1_to_1_map): Skip clones.
30182 (read_cgraph_and_symbols): Do not mark everything as needed.
30183 (do_whole_program_analysis): Do map only after optimizing;
30184 set proper cgraph_state; use passmanager.
30186 2010-04-19 DJ Delorie <dj@redhat.com>
30188 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
30189 POINTER_PLUS_EXPR and fix them.
30191 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
30193 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
30194 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
30195 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
30196 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
30197 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
30198 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
30199 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
30200 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
30201 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
30202 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
30203 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
30205 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
30207 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
30208 (check_cond_move_block): Likewise.
30209 (cond_move_process_if_block): Likewise.
30210 (noce_find_if_block): Improve formatting.
30211 (find_if_header): Pass 0 to memset and tweak conditions.
30212 (cond_exec_find_if_block): Fix long lines and tweak conditions.
30214 2010-04-19 Jakub Jelinek <jakub@redhat.com>
30216 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
30219 PR middle-end/43337
30220 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
30221 with non-local decl doesn't need chain.
30223 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
30225 * ira-color.c (allocno_reload_assign): Avoid accumulating
30226 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
30228 2010-04-19 Martin Jambor <mjambor@suse.cz>
30230 * gimple.h (create_tmp_reg): Declare.
30231 * gimplify.c (create_tmp_reg): New function.
30232 (gimplify_return_expr): Use create_tmp_reg.
30233 (gimplify_omp_atomic): Likewise.
30234 (gimple_regimplify_operands): Likewise.
30235 * tree-dfa.c (make_rename_temp): Likewise.
30236 * tree-predcom.c (predcom_tmp_var): Likewise.
30237 (reassociate_to_the_same_stmt): Likewise.
30238 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
30239 (get_replaced_param_substitute): Likewise.
30240 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
30241 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
30242 * tree-ssa-pre.c (get_representative_for): Likewise.
30243 (create_expression_by_pieces): Likewise.
30244 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
30245 (create_tailcall_accumulator): Likewise.
30247 2010-04-19 Martin Jambor <mjambor@suse.cz>
30249 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
30251 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
30253 2010-04-19 Richard Guenther <rguenther@suse.de>
30255 PR tree-optimization/43796
30256 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
30257 from SCEV in the lattice.
30258 (vrp_visit_phi_node): Dump change.
30260 2010-04-19 Richard Guenther <rguenther@suse.de>
30262 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
30263 * configure: Re-generated.
30265 2010-04-19 Richard Guenther <rguenther@suse.de>
30267 PR tree-optimization/43783
30268 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
30269 constant ARRAY_REF operands two and three if possible.
30271 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
30274 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
30276 2010-04-19 Jie Zhang <jie@codesourcery.com>
30279 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
30281 2010-04-19 Ira Rosen <irar@il.ibm.com>
30283 PR tree-optimization/37027
30284 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
30285 and macro to access it.
30286 (vectorizable_reduction): Add argument.
30287 (vect_get_slp_defs): Likewise.
30288 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
30289 statements for possible use in SLP.
30290 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
30291 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
30292 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
30294 (vectorizable_reduction): Likewise.
30295 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
30297 (vectorizable_type_demotion, vectorizable_type_promotion,
30298 vectorizable_store): Likewise.
30299 (vect_analyze_stmt): Update call to vectorizable_reduction.
30300 (vect_transform_stmt): Likewise.
30301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
30302 (vect_build_slp_tree): Fix indentation. Check that there are no loads
30303 from different interleaving chains in same node.
30304 (vect_slp_rearrange_stmts): New function.
30305 (vect_supported_load_permutation_p): Allow load permutations for
30306 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
30307 inside SLP nodes if necessary.
30308 (vect_analyze_slp_instance): Handle reductions.
30309 (vect_analyze_slp): Try to build SLP instances originating from groups
30311 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
30312 (vect_get_constant_vectors): Create initial vectors for reductions
30313 according to reduction code. Add new argument.
30314 (vect_get_slp_defs): Add new argument, pass it to
30315 vect_get_constant_vectors.
30316 (vect_schedule_slp_instance): Remove SLP tree root statements.
30318 2010-04-19 Jakub Jelinek <jakub@redhat.com>
30320 * tree.h (ENUM_IS_SCOPED): Define.
30321 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
30322 for ENUM_IS_SCOPED enums.
30324 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
30326 * fold-const.c (fold_comparison): Use ssizetype.
30327 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
30328 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
30329 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
30330 * tree-object-size.c (compute_object_sizes): Use size_type_node.
30332 * tree.h (initialize_sizetypes): Remove parameter.
30333 (build_common_tree_nodes): Remove second parameter.
30334 * stor-layout.c (initialize_sizetypes): Remove parameter.
30335 Always create an unsigned type.
30336 (set_sizetype): Assert that the passed type is unsigned and simplify.
30337 * tree.c (build_common_tree_nodes): Remove second parameter.
30338 Adjust call to initialize_sizetypes.
30339 * c-decl.c (c_init_decl_processing): Remove second argument in call to
30340 build_common_tree_nodes.
30342 2010-04-18 Matthias Klose <doko@ubuntu.com>
30344 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
30346 2010-04-18 Ira Rosen <irar@il.ibm.com>
30348 PR tree-optimization/43771
30349 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
30350 load permutation doesn't have gaps.
30352 2010-04-18 Jan Hubicka <jh@suse.cz>
30354 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
30355 (sse_prologue_save_insn expander): Use new pattern.
30356 (sse_prologue_save_insn1): New pattern and splitter.
30357 (sse_prologue_save_insn): Update to deal also with 64bit aligned
30359 * i386.c (setup_incoming_varargs_64): Do not compute jump
30361 (ix86_gimplify_va_arg): Update alignment needed.
30362 (ix86_local_alignment): Do not align all local arrays to 128bit.
30364 2010-04-17 Jan Hubicka <jh@suse.cz>
30366 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
30368 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30370 * arm.md (negdi2): Remove redundant code to force values into a
30373 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30375 * arm/bpabi.S: Add EABI alignment attributes to objects.
30376 * arm/bpabi-v6m.S: Likewise.
30377 * arm/crti.asm: Likewise.
30378 * arm/crtn.asm: Likewise.
30379 * arm/lib1funcs.asm: Likewise.
30380 * arm/libunwind.S: Likewise.
30382 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30384 * arm-protos.h (tune_params): New structure.
30385 * arm.c (current_tune): New variable.
30386 (arm_constant_limit): Delete.
30387 (struct processors): Add pointer to the tune parameters.
30388 (arm_slowmul_tune): New tuning option.
30389 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
30390 (all_cores): Adjust to pick up the tuning model.
30391 (arm_constant_limit): New function.
30392 (arm_override_options): Select the appropriate tuning model. Delete
30393 initialization of arm_const_limit.
30394 (arm_split_constant): Use the new constant-limit model.
30395 (arm_rtx_costs): Pick up the current tuning model.
30396 * arm.md (is_strongarm, is_xscale): Delete.
30397 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
30398 for Xscale variant architectures.
30399 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
30401 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30403 * config/arm/arm.c (arm_gen_constant): Remove unused variable
30405 (arm_rtx_costs_1): Remove unused variable extra_cost.
30406 (arm_unwind_emit_set): Use variable offset.
30407 (thumb1_output_casesi): Remove unused variable flags.
30409 2010-04-16 Jeff Law <law@redhat.com>
30411 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
30412 needing assignment rather than doing a two-phase assignment. Remove
30413 unused variable 'm'.
30415 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30418 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
30420 2010-04-16 Doug Kwan <dougkwan@google.com>
30422 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
30423 (next_operand_entry_id): New static variable.
30424 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
30425 (add_to_ops_vec): Assigned unique ID to operand entry.
30426 (struct oecount_s): New field ID.
30427 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
30428 (undistribute_ops_list): Assign unique IDs to oecounts.
30429 (init_reassoc): reset next_operand_entry_id.
30431 2010-04-16 Doug Kwan <dougkwan@google.com>
30433 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
30434 missing left parenthesis.
30436 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
30438 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
30439 *btdi_rex64 using SWI48 mode iterator.
30440 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
30441 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
30442 *jcc_btdi_mask_rex64.
30444 2010-04-16 Anatoly Sokolov <aesok@post.ru>
30446 * double-int.h (tree_to_double_int): Convert to macro.
30447 * double-int.c (tree_to_double_int): Remove.
30449 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30452 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
30453 with want_address 2 and in case a single element list might be
30454 possible, call it again with want_address 0.
30456 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30458 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
30459 case 'W' print operands for HI mode.
30460 * config/h8300/h8300.h (Y0, Y2) : New constraints.
30461 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
30462 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
30463 * config/h8300/predicate.md (bit_register_indirect_operand): New.
30465 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
30467 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
30468 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
30469 #xx:3 and #xx:4 mode.
30471 * config/h8300/h8300.md (inverted load with HImode dest): Add
30472 support for H8300SX.
30474 * config/h8300/predicate.md (bit_operand): Allow immediate values that
30475 satisfy 'U' constraint.
30477 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30479 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
30480 * configure: Regenerate.
30481 * config.in: Regenerate.
30482 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
30485 2010-04-16 Richard Guenther <rguenther@suse.de>
30487 * tree.h (struct tree_decl_minimal): Move pt_uid ...
30488 (struct tree_decl_common): ... here.
30489 (DECL_PT_UID): Adjust.
30490 (SET_DECL_PT_UID): Likewise.
30491 (DECL_PT_UID_SET_P): Likewise.
30493 2010-04-16 Richard Guenther <rguenther@suse.de>
30495 PR tree-optimization/43572
30496 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
30497 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
30498 * tree-flow.h (is_call_clobbered): Remove.
30499 * tree-flow-inline.h (is_call_clobbered): Likewise.
30500 * tree-dfa.c (dump_variable): Do not dump call clobber state.
30501 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
30502 (execute_return_slot_opt): Adjust.
30503 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
30504 check for call clobbered vars here.
30505 (find_tail_calls): Move tailcall verification to the
30508 2010-04-16 Diego Novillo <dnovillo@google.com>
30510 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
30512 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
30515 * config/arm/arm.md (cbranchqi4): New pattern.
30516 * config/arm/predicates.md (const0_operand,
30517 cbranchqi4_comparison_operator): New predicates.
30519 2010-04-16 Richard Guenther <rguenther@suse.de>
30521 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
30522 (dump_gimple_stmt): Likewise.
30524 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
30526 * recog.h (struct recog_data): New field is_operator.
30527 (struct insn_operand_data): New field is_operator.
30528 * recog.c (extract_insn): Set recog_data.is_operator.
30529 * genoutput.c (output_operand_data): Emit code to set the
30531 * reload.c (find_reloads): Use it rather than testing for an
30532 empty constraint string.
30535 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
30536 If the previous insn is a cbranchsi4_insn with the same arguments,
30537 omit the compare instruction.
30539 * config/arm/arm.md (addsi3_cbranch): If destination is a high
30540 register, inputs must be low registers and we need a low register
30541 scratch. Handle alternative 2 like alternative 3.
30543 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30545 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
30546 don't call get_addr on both. If one expression is a VALUE and
30547 the other a REG, check VALUE's locs if the REG isn't among them.
30549 2010-04-16 Christian Bruel <christian.bruel@st.com>
30551 * config/sh/sh.h (sh_frame_pointer_required): New function.
30552 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
30553 (flag_omit_frame_pointer) Set.
30554 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
30555 (rounded_frame_size): Adjust size with outgoing_args_size.
30556 (sh_set_return_address): Must return from stack pointer.
30557 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
30558 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
30559 (ACCUMULATE_OUTGOING_ARGS): Define.
30560 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
30561 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
30563 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
30566 * config/sh/sh.c (sh_legitimize_reload_address): Use
30567 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
30568 Remove a unneeded check for offset_base.
30570 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
30572 * configure: Regenerated.
30574 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30576 * config/s390/s390.c (s390_call_save_register_used): Switch back
30577 to HARD_REGNO_NREGS.
30579 2010-04-15 Richard Guenther <rguenther@suse.de>
30581 * alias.c (alias_set_subset_of): Handle alias-set zero
30584 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
30585 Julian Brown <julian@codesourcery.com>
30587 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
30588 alternatives according to use of high and low regs.
30589 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
30590 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
30591 optimizing for size on Thumb-2.
30593 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
30595 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
30597 2010-04-15 Richard Guenther <rguenther@suse.de>
30599 * tree-ssa-structalias.c (struct variable_info): Add
30601 (new_var_info): Initialize it.
30602 (dump_constraints): Support printing last added constraints.
30603 (debug_constraints): Adjust.
30604 (dump_constraint_graph): Likewise.
30605 (make_heapvar_for): Check for NULL cfun.
30606 (get_function_part_constraint): New function.
30607 (get_fi_for_callee): Likewise.
30608 (find_func_aliases): Properly implement IPA PTA constraints.
30609 (process_ipa_clobber): New function.
30610 (find_func_clobbers): Likewise.
30611 (insert_into_field_list_sorted): Remove.
30612 (create_function_info_for): Properly allocate vars for IPA mode.
30613 Do not use insert_into_field_list_sorted.
30614 (create_variable_info_for): Properly generate constraints for
30615 global vars in IPA mode.
30616 (dump_solution_for_var): Always dump the solution.
30617 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
30618 (find_what_var_points_to): Adjust.
30619 (pt_solution_set): Change.
30620 (pt_solution_ior_into): New function.
30621 (pt_solution_empty_p): Export.
30622 (pt_solution_includes_global): Adjust.
30623 (pt_solution_includes_1): Likewise.
30624 (pt_solutions_intersect_1): Likewise.
30625 (dump_sa_points_to_info): Check some invariants.
30626 (solve_constraints): Move constraint dumping ...
30627 (compute_points_to_sets): ... here.
30628 (ipa_pta_execute): ... and here.
30629 (compute_may_aliases): Do not re-compute points-to info
30630 locally if IPA info is available.
30631 (ipa_escaped_pt): New global var.
30632 (ipa_pta_execute): Properly implement IPA PTA.
30633 * tree-into-ssa.c (dump_decl_set): Support dumping
30634 decls not in referenced-vars.
30635 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
30636 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
30637 (dump_points_to_solution): Likewise.
30638 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
30639 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
30640 (remap_gimple_stmt): Reset call clobber/use information if necessary.
30641 (copy_decl_to_var): Copy DECL_PT_UID.
30642 (copy_result_decl_to_var): Likewise.
30643 * tree.c (make_node_stat): Initialize DECL_PT_UID.
30644 (copy_node_stat): Copy it.
30645 * tree.h (DECL_PT_UID): New macro.
30646 (SET_DECL_PT_UID): Likewise.
30647 (DECL_PT_UID_SET_P): Likewise.
30648 (struct tree_decl_minimal): Add pt_uid member.
30649 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
30650 (pt_solution_empty_p): Declare.
30651 (pt_solution_set): Adjust.
30652 (ipa_escaped_pt): Declare.
30653 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
30654 * gimple-pretty-print.c (pp_points_to_solution): New function.
30655 (dump_gimple_call): Dump call clobber/use information.
30656 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
30657 * tree-pass.h (TDF_ALIAS): New dump option.
30658 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
30659 * doc/invoke.texi (-fipa-pta): Update documentation.
30661 2010-04-15 Richard Guenther <rguenther@suse.de>
30663 * Makefile.in (OBJS-common): Add gimple-fold.o.
30664 (gimple-fold.o): New rule.
30665 * tree.h (maybe_fold_offset_to_reference,
30666 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
30668 * gimple.h: ... here.
30669 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
30670 may_propagate_address_into_dereference): Move prototypes ...
30671 * gimple.h: ... here.
30672 * tree-ssa-ccp.c (get_symbol_constant_value,
30673 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
30674 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
30675 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
30676 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
30677 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
30678 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
30679 gimplify_and_update_call_from_tree): Move ...
30680 * gimple-fold.c: ... here. New file.
30681 (ccp_fold_builtin): Rename to ...
30682 (gimple_fold_builtin): ... this.
30683 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
30685 2010-04-15 Richard Guenther <rguenther@suse.de>
30687 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
30688 fit_double_type, force_fit_type_double, add_double_with_sign,
30689 neg_double, mul_double_with_sign, lshift_double, rshift_double,
30690 lrotate_double, rrotate_double, div_and_round_double): Move ...
30691 * double-int.c: ... here.
30692 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
30693 add_double, neg_double, mul_double_with_sign, mul_double,
30694 lshift_double, rshift_double, lrotate_double, rrotate_double,
30695 div_and_round_double): Move prototypes ...
30696 * double-int.h: ... here.
30698 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
30701 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
30702 matching constraints to ensure inputs match the output.
30704 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
30707 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
30708 in an input-only operand.
30710 2010-04-15 Anatoly Sokolov <aesok@post.ru>
30712 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
30713 (double_int_not, double_int_lshift, double_int_rshift): Declare.
30714 (double_int_negative_p): Convert to static inline function.
30715 * double-int.c (double_int_lshift, double_int_lshift): New functions.
30716 (double_int_negative_p): Remove.
30717 * tree.h (lshift_double, rshift_double):
30718 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
30719 * fold-const.c (fold_convert_const_int_from_real,
30720 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
30721 (lshift_double): Change type of arith argument to bool.
30722 (rshift_double): Change type of arith argument to bool. Correct
30724 * expmed.c (mask_rtx, lshift_value): (Ditto.).
30726 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
30729 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
30730 at the start and end of the then/else blocks, and omit them from the
30732 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
30733 argument; all callers changed. Pass zero to old_insns_match_p instead.
30734 (flow_find_head_matching_sequence): New function.
30735 (old_insns_match_p): Check REG_EH_REGION notes for calls.
30736 * basic-block.h (flow_find_cross_jump,
30737 flow_find_head_matching_sequence): Declare functions.
30739 2010-04-14 Jason Merrill <jason@redhat.com>
30742 * c-common.c (attribute_takes_identifier_p): New fn.
30743 * c-common.h: Declare it.
30745 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30747 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
30748 splitter condition.
30749 (*udivmod<mode>4): Ditto.
30751 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30753 * config/i386/i386.md (maxmin_int): Rename code attribute from
30754 maxminiprefix and update all users.
30755 (maxmin_float): Ditto from maxminfprefix.
30756 (logic): Ditto from logicprefix.
30757 (absneg_mnemonic): Ditto from absnegprefix.
30758 * config/i386/mmx.md: Update all users of maxminiprefix,
30759 maxminfprefix and logicprefix for rename.
30760 * config/i386/sse.md: Ditto.
30761 * config/i386/sync.md (sync_<code><mode>): Update for
30762 logicprefix rename.
30764 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
30767 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
30768 warnings converted to errors.
30770 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30772 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
30773 used insn_type variable.
30774 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
30775 to avoid set-but-not-used warning.
30777 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30779 * df-core.c (df_ref_debug): Change format string placeholder
30781 * dwarf2asm.c (dw2_asm_output_data_raw,
30782 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
30783 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
30784 * dwarf2out.c (output_cfi, output_cfi_directive,
30785 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
30786 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
30788 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
30789 * print-rtl.c (print_rtx): Ditto.
30791 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30793 PR middle-end/42694
30794 * builtins.c (expand_builtin_pow_root): New function to expand pow
30795 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
30796 series of sqrt and cbrt calls under -ffast-math.
30797 (expand_builtin_pow): Call it.
30799 2010-04-14 Michael Matz <matz@suse.de>
30801 PR tree-optimization/42963
30802 * tree-cfg.c (touched_switch_bbs): New static variable.
30803 (group_case_labels_stmt): New function broken out from ...
30804 (group_case_labels): ... here, use the above.
30805 (start_recording_case_labels): Allocate touched_switch_bbs.
30806 (end_recording_case_labels): Deallocate it, call
30807 group_case_labels_stmt.
30808 (gimple_redirect_edge_and_branch): Remember index of affected BB.
30810 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30812 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
30813 from insn template.
30815 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30817 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
30819 2010-04-13 Jan Hubicka <jh@suse.cz>
30821 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
30822 of optimized out static functions.
30823 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
30824 cost computation. Also sanity check for overflows.
30825 (update_caller_keys): Update cgraph_edge_badness call; properly
30826 update fibheap and sanity check that it is up to date.
30827 (add_new_edges_to_heap): Update cgraph_edge_badness.
30828 (cgraph_decide_inlining_of_small_function): Likewise;
30829 add sanity checking that badness in heap is up to date;
30830 improve dumping of reason; Update badness of calls to the
30831 offline copy of function currently inlined; dump badness
30832 of functions not inlined because of unit growth limits.
30834 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
30836 PR middle-end/32628
30837 * c-common.c (pointer_int_sum): Disregard overflow that occured only
30838 because of sign-extension change when converting to sizetype here...
30839 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
30841 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
30842 the folding to constants. Remove redundant final conversion.
30843 (fold_binary) <associate>: Do not associate if the re-association of
30844 constants alone overflows.
30845 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
30846 to the end of the list.
30847 (multiple_of_p) <COND_EXPR>: New case.
30849 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
30851 * opt-functions.awk (opt_sanitized_name): New.
30853 * optc-gen.awk: Use it
30854 * opth-gen.awk: Use it.
30856 2010-04-13 Martin Jambor <mjambor@suse.cz>
30858 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
30859 (sra_modify_assign): Delete stmts loading dead data even if racc has no
30860 children. Call replace_uses_with_default_def_ssa_name to handle
30863 2010-04-13 Michael Matz <matz@suse.de>
30865 PR middle-end/43730
30866 * builtins.c (expand_builtin_interclass_mathfn): Also create
30867 a register if the predicate doesn't match.
30869 2010-04-13 Diego Novillo <dnovillo@google.com>
30871 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
30872 * c-pch.c: Include timevar.h.
30873 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
30874 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
30875 * ggc-common.c: Include timevar.h.
30876 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
30877 * timevar.def (TV_PCH_SAVE): Define.
30878 (TV_PCH_CPP_SAVE): Define.
30879 (TV_PCH_PTR_REALLOC): Define.
30880 (TV_PCH_PTR_SORT): Define.
30881 (TV_PCH_RESTORE): Define.
30882 (TV_PCH_CPP_RESTORE): Define.
30884 2010-04-13 Michael Matz <matz@suse.de>
30886 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
30888 (can_reassociate_p): New function.
30889 (break_up_subtract_bb, reassociate_bb): Use it.
30891 2010-04-13 Richard Guenther <rguenther@suse.de>
30894 * builtins.c (c_readstr): Fix assert.
30896 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
30898 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
30899 when generating cltd insn.
30901 (*ashl<mode>3_1): Remove special handling for register operand 2.
30902 (*ashlsi3_1_zext): Ditto.
30903 (*ashlhi3_1): Ditto.
30904 (*ashlhi3_1_lea): Ditto.
30905 (*ashlqi3_1): Ditto.
30906 (*ashlqi3_1_lea): Ditto.
30907 (*<shiftrt_insn><mode>3_1): Ditto.
30908 (*<shiftrt_insn>si3_1_zext): Ditto.
30909 (*<shiftrt_insn>qi3_1_slp): Ditto.
30910 (*<rotate_insn><mode>3_1): Ditto.
30911 (*<rotate_insn>si3_1_zext): Ditto.
30912 (*<rotate_insn>qi3_1_slp): Ditto.
30914 2010-04-13 Richard Guenther <rguenther@suse.de>
30916 * tree-ssa-structalias.c (callused_id): Remove.
30917 (call_stmt_vars): New.
30918 (get_call_vi): Likewise.
30919 (lookup_call_use_vi): Likewise.
30920 (lookup_call_clobber_vi): Likewise.
30921 (get_call_use_vi): Likewise.
30922 (get_call_clobber_vi): Likewise.
30923 (make_transitive_closure_constraints): Likewise.
30924 (handle_const_call): Adjust to do per-call call-used handling.
30925 (handle_pure_call): Likewise.
30926 (find_what_var_points_to): Remove general callused handling.
30927 (init_base_vars): Likewise.
30928 (init_alias_vars): Initialize call_stmt_vars.
30929 (compute_points_to_sets): Process call-used and call-clobbered
30930 vars for call statements.
30931 (delete_points_to_sets): Free call_stmt_vars.
30933 2010-04-13 Richard Guenther <rguenther@suse.de>
30935 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30936 Only add RW dependence for dependence distance zero.
30937 Adjust maximal vectorization factor according to dependences.
30938 Move alignment handling ...
30939 (vect_find_same_alignment_drs): ... here. New function.
30940 (vect_analyze_data_ref_dependences): Adjust.
30941 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
30942 (vect_analyze_data_refs): Adjust minimal vectorization factor
30943 according to data references.
30944 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
30945 dependences before determining the vectorization factor.
30946 Analyze alignment after determining the vectorization factor.
30947 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
30948 dependences before alignment.
30949 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
30951 (vect_analyze_data_refs): Likewise.
30952 (MAX_VECTORIZATION_FACTOR): New define.
30954 2010-04-13 Duncan Sands <baldrick@free.fr>
30956 * except.h (lang_eh_type_covers): Remove.
30957 * except.c (lang_eh_type_covers): Likewise.
30959 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30960 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30962 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
30963 * config/s390/s390.c: Replace UNTIS_PER_WORD with
30964 UNITS_PER_LONG where it is ABI relevant.
30965 (s390_return_addr_rtx): Likewise.
30966 (s390_back_chain_rtx): Likewise.
30967 (s390_frame_area): Likewise.
30968 (s390_frame_info): Likewise.
30969 (s390_initial_elimination_offset): Likewise.
30970 (save_gprs): Likewise.
30971 (s390_emit_prologue): Likewise.
30972 (s390_emit_epilogue): Likewise.
30973 (s390_function_arg_advance): Likewise.
30974 (s390_function_arg): Likewise.
30975 (s390_va_start): Likewise.
30976 (s390_gimplify_va_arg): Likewise.
30977 (s390_function_profiler): Likewise.
30978 (s390_optimize_prologue): Likewise.
30979 (s390_rtx_costs): Likewise.
30980 (s390_secondary_reload): Likewise.
30981 (s390_promote_function_mode): Likewise.
30982 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
30983 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
30984 registers available.
30985 (s390_unwind_word_mode): New function.
30986 (s390_function_value): Split 64 bit values into register pair if
30987 used as return value.
30988 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
30989 function call parameters. Handle parallels.
30990 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
30991 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
30992 (DWARF_CIE_DATA_ALIGNMENT): New macro.
30993 (s390_expand_setmem): Remove unused variable src_addr.
30994 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
30995 deal with 64 bit registers.
30996 * config/s390/s390.h: Define __zarch__ predefined macro.
30997 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
30998 (UNITS_PER_LONG): New macro.
30999 * libjava/include/s390-signal.h: Define extended ucontext
31000 structure containing the upper halfs of the 64 bit registers.
31002 2010-04-13 Simon Baldwin <simonb@google.com>
31004 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
31006 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
31008 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
31009 rvalue on the RHS if the LHS is of a non-renamable type.
31010 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
31012 2010-04-13 Matthias Klose <doko@ubuntu.com>
31014 * gcc.c (cc1_options): Handle -iplugindir before processing
31015 the cc1 spec. Only add -iplugindir once.
31016 (cpp_unique_options): Add -iplugindir option if -fplugin* options
31018 * common.opt (iplugindir): Remove `Separate' property, initialize.
31019 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
31021 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
31022 (distclean): Remove plugin dir.
31023 * doc/invoke.texi: Document -iplugindir.
31025 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
31027 * doc/plugins.texi (Loading Plugins): Document short
31028 -fplugin=foo option.
31029 (Plugin API): Mention default_plugin_dir_name function.
31031 * gcc.c (find_file_spec_function): Add new declaration.
31032 (static_spec_func): Use it for "find-file".
31033 (find_file_spec_function): Add new function.
31034 (cc1_options): Add -iplugindir option if -fplugin* options found.
31036 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
31038 * plugin.c (add_new_plugin): Updated comment, and handle short
31040 (default_plugin_dir_name): Added new function.
31042 * common.opt (iplugindir): New option to set the plugin directory.
31044 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
31046 * config/i386/i386.md (any_rotate): New code iterator.
31047 (rotate_insn): New code attribute.
31049 (SWIM124): New mode iterator.
31050 (<rotate_insn>ti3): New expander.
31051 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
31052 any_rotate code iterator.
31053 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
31054 using any_rotate code iterator and SWIM124 mode iterator.
31055 (ix86_rotlti3): New insn_and_split pattern.
31056 (ix86_rotrti3): Ditto.
31057 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
31058 ix86_rotl{di,ti}3 patterns.
31059 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
31060 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
31061 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
31062 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
31063 code iterator and SWI mode iterator.
31064 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
31065 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
31067 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
31068 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
31069 (bswap rotatert splitter): Add splitter.
31070 (bswap splitter): Macroize splitter using any_rotate code iterator.
31071 Add insn predicate to split only for TARGET_USE_XCHGB or when
31072 optimizing function for size.
31074 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31076 * config/pa/pa.c (emit_move_sequence): Remove use of
31077 deleted variable flag_argument_noalias.
31079 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31081 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
31083 Add to unsupported targets list.
31084 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
31085 sparc*-sun-solaris2.[567]* from target lists.
31086 * configure: Regenerate.
31087 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
31089 Remove Solaris 7 patch references.
31090 (Specific, sparc-sun-solaris2.7): Removed.
31091 (sparc-sun-solaris2*): Update Solaris 7 example.
31092 (sparc64-*-solaris2*): Likewise.
31094 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31096 * config.build (alpha*-dec-osf4*): Remove.
31097 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
31098 of obsolete configurations.
31099 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
31101 * config/alpha/t-osf4: Renamed to ...
31102 * config/alpha/t-osf5: ... this.
31103 * config/alpha/osf.h: Renamed to ...
31104 * config/alpha/osf5.h: ... this.
31105 Merged old osf5.h contents.
31107 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
31108 (EXTRA_SPECS): Removed.
31109 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
31110 reflect removal of Tru64 UNIX V4.0/V5.0 support.
31113 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31115 * doc/contrib.texi (Contributors, Rainer Orth): Update.
31117 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
31120 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
31121 __thiscall convention.
31123 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31125 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
31127 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
31129 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31131 * function.c (assign_parms_initialize_all): Add unused attribute
31134 2010-04-12 Richard Guenther <rguenther@suse.de>
31136 * gsstruct.def (GSS_CALL): New.
31137 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
31138 * gimple.h: Include tree-ssa-alias.h.
31139 (struct gimple_statement_call): New.
31140 (union gimple_statement_struct_d): Add gimple_call member.
31141 (gimple_call_reset_alias_info): Declare.
31142 (gimple_call_use_set): New function.
31143 (gimple_call_clobber_set): Likewise.
31144 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
31145 * gimple.c (gimple_call_reset_alias_info): New function.
31146 (gimple_build_call_1): Call it.
31147 * lto-streamer-in.c (input_gimple_stmt): Likewise.
31148 * tree-inline.c (remap_gimple_stmt): Likewise.
31149 (expand_call_inline): Remove callused handling.
31150 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
31151 * tree-dfa.c (dump_variable): Likewise.
31152 * tree-parloops.c (parallelize_loops): Likewise.
31153 * tree-ssa.c (init_tree_ssa): Likewise.
31154 (delete_tree_ssa): Likewise.
31155 * tree-flow-inline.h (is_call_used): Remove.
31156 * tree-flow.h (struct gimple_df): Remove callused member.
31157 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
31158 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
31159 (ref_maybe_used_by_call_p_1): Simplify.
31160 (call_may_clobber_ref_p_1): Likewise.
31161 * tree-ssa-structalias.c (compute_points_to_sets): Set
31162 the call stmt used and clobbered sets.
31163 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
31164 (find_tail_calls): Verify the tail call.
31166 2010-04-12 Richard Guenther <rguenther@suse.de>
31168 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
31169 single-iteration always-inline inlining.
31170 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
31171 (cgraph_decide_inlining): Do not handle always-inline specially.
31172 (try_inline): Remove always-inline cycle detection special case.
31173 Do not recurse on always-inlines.
31174 (cgraph_early_inlining): Do not iterate if not optimizing.
31175 (cgraph_gate_early_inlining): remove.
31176 (pass_early_inline): Run unconditionally.
31177 (gate_cgraph_decide_inlining): New function.
31178 (pass_ipa_inline): Use it. Do not run the IPA inliner if
31179 not inlining or optimizing.
31180 (cgraph_decide_inlining_of_small_functions): Also consider
31181 always-inline functions.
31182 (cgraph_default_inline_p): Return true for nodes which should
31183 disregard inline limits.
31184 (estimate_function_body_sizes): Assume zero size and time for
31185 nodes which are marked as disregarding inline limits.
31186 (cgraph_decide_recursive_inlining): Do not perform recursive
31187 inlining on always-inline nodes.
31189 2010-04-12 Jakub Jelinek <jakub@redhat.com>
31192 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
31193 for exprs satisfying handled_component_p.
31195 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
31197 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
31198 non-constant aggregate elements.
31200 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
31201 is a real initialization.
31203 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
31206 * c-decl.c (start_function): Move forward check for nested function.
31208 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
31210 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
31211 * config/sh/sh.c: Include reload.h.
31212 (sh_legitimize_reload_address): New.
31213 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
31214 sh_legitimize_reload_address.
31216 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31218 * config/sh/sh.md (*movqi_pop): New insn pattern.
31219 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
31221 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31223 * config/i386/i386.md (any_shiftrt): New code iterator.
31224 (shiftrt_insn): New code attribute.
31226 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
31227 using any_shiftrt code iterator.
31228 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
31229 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
31230 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
31231 pattern from corresponding peephole2 patterns.
31232 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
31233 using any_shiftrt code iterator.
31234 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
31235 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
31236 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
31237 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
31238 *{ashr,lshr}<mode>3_cmp_zext.
31239 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
31241 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31243 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
31245 (*lshr<mode>3_cconly): Ditto.
31247 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31249 * config/i386/i386.md (lshr<mode>3): Macroize expander from
31250 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31251 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
31252 pattern from *lshr{di,ti}3_1 and corresponding splitters using
31254 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31255 from corresponding peephole2 patterns.
31256 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
31257 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
31258 and *lshrdi3_1_rex64 using SWI mode iterator.
31259 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
31260 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
31261 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
31262 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
31263 and *lshrdi3_cmp_rex64 using SWI mode iterator.
31264 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
31265 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
31266 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
31267 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
31270 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
31272 * config/i386/i386.md (ashr<mode>3): Macroize expander from
31273 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31274 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
31275 pattern from *ashr{di,ti}3_1 and corresponding splitters using
31277 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31278 from corresponding peephole2 patterns.
31279 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
31280 (ashrsi3_cvt): Rename from ashrsi3_31.
31281 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
31282 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
31283 and x86_64_shift_adj_3 using SWI48 mode iterator.
31284 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
31285 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
31286 and *ashrdi3_1_rex64 using SWI mode iterator.
31287 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
31288 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
31289 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
31290 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
31291 and *ashrdi3_cmp_rex64 using SWI mode iterator.
31292 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
31293 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
31294 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
31295 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
31297 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
31298 * config/i386/i386.c (ix86_split_ashr): Update for renamed
31299 x86_shift<mode>_adj_3 expanders.
31301 2010-04-10 Wei Guozhi <carrot@google.com>
31304 * config/arm/arm.c (arm_pic_static_addr): New function.
31305 (legitimize_pic_address): Call arm_pic_static_addr when it detects
31307 (arm_output_addr_const_extra): Output expression for new pattern.
31308 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
31310 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
31312 * ira-costs.c (record_reg_classes): Ignore alternatives that are
31315 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
31316 * web.c: Include "insn-config.h" and "recog.h".
31317 (union_match_dups): New function.
31318 (web_main): Call it.
31319 (union_defs): Don't try to recognize match_dups.
31321 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
31322 if doing so would replace the entire pattern.
31324 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
31328 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
31329 and splitter pattern. Change splitter operand 1 predicate to
31332 2010-04-09 Martin Jambor <mjambor@suse.cz>
31334 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
31335 lattices are addresses of CONST_DECLs with the same initial value.
31336 (ipcp_print_all_lattices): Print values of CONST_DECLs.
31337 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
31339 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
31340 Bernd Schmidt <bernds@codesourcery.com>
31342 * loop-invariant.c (replace_uses): New static function.
31343 (move_invariant_reg): Use it to ensure we can replace the uses.
31345 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
31347 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
31349 (picochip_override_options): Enable section anchors only above -O1.
31350 (picochip_reorg): Fixed a couple of build warnings.
31352 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31354 * configure.ac (plugin -rdynamic test): Log result.
31355 * configure: Regenerate.
31356 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
31357 (RDYNAMIC_SPEC): Define.
31358 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
31360 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31362 * configure.ac: Determine Sun ld version numbers.
31363 (comdat_group): Restrict GNU ld version checks to gld.
31364 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
31365 (enable_comdat): Support --enable-comdat.
31366 * configure: Regenerate.
31367 * doc/install.texi (Configuration): Document --enable-comdat.
31369 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31371 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
31372 * config/sol2-gld.h: ... here.
31373 * config.gcc (sparc*-*-solaris2*): Reflect this.
31374 (i[34567]86-*-solaris2*): Use it.
31376 2010-04-09 Steve Ellcey <sje@cup.hp.com>
31378 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
31380 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
31382 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
31385 * diagnostic.c (diagnostic_initialize): Initialize
31386 some_warnings_are_errors.
31387 (diagnostic_finish): New.
31388 (diagnostic_action_after_output): Call it before exiting.
31389 (diagnostic_report_diagnostic): Do not print message here. Set
31390 some_warnings_are_errors.
31391 * diagnostic.h (diagnostic_context): Delete
31392 issue_warnings_are_errors_message. Add some_warnings_are_errors.
31393 (diagnostic_finish): Declare.
31394 * toplev.c (toplev_main): Call it before exit.
31396 2010-04-09 Jason Merrill <jason@redhat.com>
31399 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
31400 for incomplete type.
31403 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
31404 based on a warning flag.
31406 2010-04-09 Richard Guenther <rguenther@suse.de>
31408 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
31410 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
31413 * varasm.c (default_assemble_visibility): Wrap vars that are
31414 set, but unused, by targets without GAS.
31415 * config/rs6000/rs6000.c (paired_emit_vector_compare):
31416 Remove set, but unused, vars.
31417 (rs6000_legitimize_tls_address): Likewise.
31418 (altivec_expand_dst_builtin): Likewise.
31419 * config/darwin.c (machopic_classify_symbol): Likewise.
31420 (machopic_indirection_name): Likewise.
31422 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
31424 * config/i386/i386.md (DWI): New mode iterator.
31425 (S): New mode attribute.
31426 (shift_operand): Ditto.
31427 (shift_immediate_operand): Ditto.
31428 (ashl_input_operand): Ditto.
31429 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
31430 using SDWIM mode iterator.
31431 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
31432 pattern from *ashl{di,ti}3_1 and corresponding splitters using
31434 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
31435 from corresponding peephole2 patterns.
31436 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
31437 and x86_64_shift_adj_1 using SWI48 mode iterator.
31438 (x86_shift<mode>_adj_2): Ditto.
31439 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
31440 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
31441 using SWI48 mode iterator.
31442 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
31443 *ashldi3_cmp_rex64 using SWI mode iterator.
31444 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
31445 *ashldi3_cconly_rex64 using SWI mode iterator.
31446 * config/i386/i386.c (ix86_split_ashl): Update for renamed
31447 x86_shift<mode>_adj_{1,2}.
31448 (ix86_split_ashr): Ditto.
31449 (ix86_split_lshr): Ditto.
31451 2010-04-09 Richard Guenther <rguenther@suse.de>
31453 * target.h (builtin_conversion): Pass in input and output types.
31454 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
31455 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
31456 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
31457 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
31459 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
31461 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
31463 2010-04-09 Richard Guenther <rguenther@suse.de>
31466 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
31468 2010-04-09 Richard Guenther <rguenther@suse.de>
31470 * tree-vectorizer.h (struct _stmt_vec_info): Document
31471 that vectype is the type of the LHS.
31472 (supportable_widening_operation, supportable_narrowing_operation):
31473 Get both input and output vector types as arguments.
31474 (vect_is_simple_use_1): Declare.
31475 (get_same_sized_vectype): Likewise.
31476 * tree-vect-loop.c (vect_determine_vectorization_factor):
31477 Set STMT_VINFO_VECTYPE to the vector type of the def.
31478 (vectorizable_reduction): Adjust.
31479 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
31480 Adjust. Specify the output vector type.
31481 (vect_pattern_recog_1): Adjust.
31482 * tree-vect-stmts.c (get_same_sized_vectype): New function.
31483 (vectorizable_call): Adjust.
31484 (vectorizable_conversion): Likewise.
31485 (vectorizable_operation): Likewise.
31486 (vectorizable_type_demotion): Likewise.
31487 (vectorizable_type_promotion): Likewise.
31488 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
31490 (vect_is_simple_use_1): New function.
31491 (supportable_widening_operation): Get both input and output
31493 (supportable_narrowing_operation): Likewise.
31494 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
31496 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
31498 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
31499 __thiscall and _thiscall as predefined macros.
31500 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
31501 thiscall attribute handling.
31502 (ix86_comp_type_attributes): Likewise.
31503 (ix86_function_regparm): Likewise.
31504 (ix86_return_pops_args): Likewise.
31505 (init_cumulative_args): Likewise.
31506 (find_drap_reg): Likewise.
31507 (ix86_static_chain): Likewise.
31508 (x86_this_parameter): Likewise.
31509 (x86_output_mi_thunk): Likewise.
31510 (ix86_attribute_table): Add description for thiscall attribute.
31511 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
31512 * doc/extend.texi: Add documentation for thiscall.
31514 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
31517 * c.opt (Wint-to-pointer-cast): Available in C++.
31518 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
31520 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
31522 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
31523 * calls.c (expand_call): Pass the function type to aggregate_value_p.
31524 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
31525 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
31526 function type instead. Reorder and simplify checks.
31528 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
31530 2010-04-08 Jing Yu <jingyu@google.com>
31531 Zdenek Dvorak <ook@ucw.cz>
31533 PR tree-optimization/42720
31534 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
31535 loop unswitch conditions here from ...
31536 (tree_unswitch_single_loop): ... here.
31538 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
31540 * tree-if-conv.c: Fix comments and simplify logic.
31542 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
31544 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
31545 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
31546 (main_tree_if_conversion): Update call to tree_if_conversion.
31548 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
31551 * doc/invoke.texi (-b,-V): Delete.
31552 * doc/tm.texi: Do not mention -b.
31553 * gcc.c (display_help): Delete -b and -V.
31554 (process_command): Delete -b and -V.
31555 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
31557 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
31558 Wolfgang Gellerich <gellerich@de.ibm.com>
31560 Implement target hook for loop unrolling
31561 * target.h (loop_unroll_adjust): Add a new target hook function.
31562 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
31563 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
31564 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
31565 (s390_loop_unroll_adjust): Implement the new target hook for s390.
31566 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
31568 (decide_unroll_stupid): Likewise.
31570 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31573 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
31575 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31577 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
31578 (Specific, *-*-solaris2*): Likewise.
31579 Don't prefer Sun as over GNU as.
31581 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
31583 * config/s390/s390.c (override_options): Adjust the z10 defaults
31584 for max-unroll-times, max-completely-peeled-insns
31585 and max-completely-peel-times.
31587 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31589 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
31590 instructions for z10.
31591 (s390_expand_setmem): Likewise.
31592 (s390_expand_cmpmem): Likewise.
31594 2010-04-08 Richard Guenther <rguenther@suse.de>
31596 PR tree-optimization/43679
31597 * tree-ssa-pre.c (eliminate): Only propagate copies.
31599 2010-04-08 Jakub Jelinek <jakub@redhat.com>
31602 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
31603 set but not used variable warning.
31605 2010-04-08 Wei Guozhi <carrot@google.com>
31608 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
31609 (arm_size_rtx_costs): Call the new function when optimized for size.
31611 2010-04-08 Jakub Jelinek <jakub@redhat.com>
31614 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
31615 op0 is not a MEM, just return NULL instead of assertion
31617 (discover_nonconstant_array_refs): Don't walk debug stmts.
31619 2010-04-08 Doug Kwan <dougkwan@google.com>
31621 * configure.ac: Recognize gold and do not use its version number
31622 to test ld features.
31623 * configure: Regenerate.
31625 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
31627 PR middle-end/40815
31628 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
31629 (negate_value): Move code to push elements to broken_up_substracts ...
31630 (eliminate_plus_minus_pair): ... here. Push operands that have no
31631 negative pair to plus_negates.
31632 (repropagate_negates, init_reassoc, fini_reassoc): Update.
31634 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31636 * doc/install.texi (Configuration): Move description of
31637 --enable-lto, --with-libelf*, --enable-gold from Java section to
31640 * doc/generic.texi (Working with declarations)
31641 (Function Properties, C and C++ Trees): Fix typos.
31642 * doc/sourcebuild.texi (Top Level): Likewise.
31644 2010-04-07 Jakub Jelinek <jakub@redhat.com>
31647 * tree.h (DECL_READ_P): Define.
31648 (struct tree_decl_common): Add decl_read_flag.
31649 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
31650 a set but not used warning.
31651 (merge_decls): Merge DECL_READ_P flag.
31652 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
31653 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
31654 * c-common.c (handle_used_attribute, handle_unused_attribute):
31656 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
31658 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
31660 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
31661 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
31662 c_parser_binary_expression, c_parser_cast_expression,
31663 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
31664 Call default_function_array_read_conversion instead of
31665 default_function_array_conversion where needed.
31666 (c_parser_unary_expression, c_parser_conditional_expression,
31667 c_parser_postfix_expression_after_primary, c_parser_initelt):
31668 Likewise. Call mark_exp_read where needed.
31669 (c_parser_statement_after_labels, c_parser_asm_operands,
31670 c_parser_typeof_specifier, c_parser_sizeof_expression,
31671 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
31673 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
31675 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
31676 (warn_unused_but_set_parameter): Default to warn_unused
31678 * doc/invoke.texi: Document -Wunused-but-set-variable and
31679 -Wunused-but-set-parameter.
31681 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
31682 used count variable.
31683 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
31684 when operandN variables aren't used in the body of the expander
31686 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
31687 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
31688 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
31689 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
31690 FOR_EACH_IMM_USE_ON_STMT): Likewise.
31691 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
31692 * tree.c (PROCESS_ARG): Likewise.
31694 2010-04-07 Simon Baldwin <simonb@google.com>
31696 * diagnostic.h (diagnostic_override_option_index): New macro to
31697 set a diagnostic's option_index.
31698 * c-tree.h (c_cpp_error): Add warning reason argument.
31699 * opts.c (_warning_as_error_callback): New.
31700 (register_warning_as_error_callback): Store callback for
31701 warnings enabled via enable_warning_as_error.
31702 (enable_warning_as_error): Call callback, minor code tidy.
31703 * opts.h (register_warning_as_error_callback): Declare.
31704 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
31705 response to -Werror=.
31706 (c_common_init_options): Register warning_as_error_callback in opts.c.
31707 * common.opt: Add -Wno-cpp option.
31708 * c-common.c (struct reason_option_codes_t): Map cpp warning
31709 reason codes to gcc option indexes.
31710 * (c_option_controlling_cpp_error): New function, lookup the gcc
31711 option index for a cpp warning reason code.
31712 * (c_cpp_error): Add warning reason argument, call
31713 c_option_controlling_cpp_error for diagnostic_override_option_index.
31714 * doc/invoke.texi: Document -Wno-cpp.
31716 2010-04-07 Richard Guenther <rguenther@suse.de>
31718 * ipa-reference.c (mark_load): Use get_base_address.
31719 (mark_store): Likewise.
31721 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
31722 inserting GIMPLE_NOPs into the IL.
31723 * tree-ssa-structalias.c (get_constraint_for_component_ref):
31724 Explicitly strip handled components and indirect references.
31726 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
31727 folding address expressions.
31728 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
31729 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
31730 operand_equal_p to compare decls.
31731 (ptr_deref_may_alias_decl_p): Likewise.
31732 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
31733 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
31734 Handle reversed comparison ops.
31735 * tree-sra.c (asm_visit_addr): Use get_base_address.
31736 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
31737 * ipa-reference.c (mark_address): Use get_base_address.
31739 2010-04-07 Richard Guenther <rguenther@suse.de>
31741 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
31742 Propagate constants everywhere.
31744 2010-04-07 Jakub Jelinek <jakub@redhat.com>
31747 * tree.c (MAX_INT_CACHED_PREC): Define.
31748 (nonstandard_integer_type_cache): New array.
31749 (build_nonstandard_integer_type): Cache results for precision
31750 <= MAX_INT_CACHED_PREC.
31752 2010-04-07 Richard Guenther <rguenther@suse.de>
31754 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
31755 -fargument-noalias-global, -fargument-noalias-anything): Remove.
31756 * common.opt: Likewise.
31757 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
31758 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
31759 (nonoverlapping_memrefs_p): Likewise.
31760 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31761 * opts.c (common_handle_option): Handle OPT_fargument_alias,
31762 OPT_fargument_noalias, OPT_fargument_noalias_anything and
31763 OPT_fargument_noalias_global for backward compatibility.
31765 2010-04-07 Richard Guenther <rguenther@suse.de>
31767 PR tree-optimization/43270
31768 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
31769 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
31770 * tree-ssa-pre.c (phi_translate_1): Adjust.
31771 (fully_constant_expression): Split out vn_reference handling to ...
31772 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
31773 Fold reads from constant strings.
31774 (vn_reference_lookup): Handle fully constant references.
31775 (vn_reference_lookup_pieces): Likewise.
31776 * Makefile.in (expmed.o-warn): Add -Wno-error.
31778 2010-04-07 Martin Jambor <mjambor@suse.cz>
31780 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
31782 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
31785 * gcc.c: Add -static-libstdc++ to list of recognized options.
31787 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31789 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
31791 2010-04-07 Richard Guenther <rguenther@suse.de>
31793 PR middle-end/42617
31794 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
31795 bases build simple mem attributes to retain points-to information.
31797 2010-04-07 Richard Guenther <rguenther@suse.de>
31799 PR middle-end/42617
31800 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
31801 preserve points-to related information.
31803 2010-04-07 Richard Guenther <rguenther@suse.de>
31805 PR middle-end/42617
31806 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
31807 discard plain indirect references.
31808 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
31809 * tree.c (tree_nop_conversion): Likewise.
31811 2010-04-07 Dodji Seketeli <dodji@redhat.com>
31814 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
31816 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
31818 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
31819 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
31821 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31823 * tree-if-conv.c: Fix indentation and comments.
31825 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31827 * tree-if-conv.c: Sort static functions in topological order.
31829 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31831 * tree-if-conv.c: Fix indentation and comments.
31833 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31835 PR middle-end/43519
31836 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
31837 lang_hooks.types.type_for_size instead of
31838 build_nonstandard_integer_type.
31839 When converting an unsigned type to signed, double its precision.
31840 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
31841 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
31842 (graphite_create_new_loop_guard): When ub + 1 wraps around,
31845 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31847 PR middle-end/43519
31848 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
31849 POINTER_PLUS_EXPR for pointer types.
31851 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31853 PR middle-end/43519
31854 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
31855 * graphite-clast-to-gimple.c: Include langhooks.h.
31856 (max_signed_precision_type): New.
31857 (max_precision_type): Takes two types as arguments.
31858 (precision_for_value): New.
31859 (precision_for_interval): New.
31860 (gcc_type_for_interval): New.
31861 (gcc_type_for_value): New.
31862 (gcc_type_for_clast_term): New.
31863 (gcc_type_for_clast_red): New.
31864 (gcc_type_for_clast_bin): New.
31865 (gcc_type_for_clast_expr): Split up into several functions.
31866 (gcc_type_for_clast_eq): Rewritten.
31867 (compute_bounds_for_level): New.
31868 (compute_type_for_level_1): New.
31869 (compute_type_for_level): New.
31870 (gcc_type_for_cloog_iv): Removed.
31871 (gcc_type_for_iv_of_clast_loop): Rewritten.
31872 (graphite_create_new_loop): Compute the lower and upper bound types
31873 with gcc_type_for_clast_expr.
31874 (graphite_create_new_loop_guard): Same.
31875 (find_cloog_iv_in_expr): Removed.
31876 (compute_cloog_iv_types_1): Removed.
31877 (compute_cloog_iv_types): Removed.
31878 (gloog): Do not call compute_cloog_iv_types.
31879 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
31880 GBB_CLOOG_IV_TYPES.
31881 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
31882 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
31883 (GBB_CLOOG_IV_TYPES): Removed.
31885 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31887 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
31888 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
31889 (detect_commutative_reduction): Same.
31891 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31893 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
31894 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
31896 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
31897 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
31898 (rewrite_commutative_reductions_out_of_ssa): Same.
31899 * passes.c (execute_function_todo): Call verify_ssa for every pass
31900 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
31901 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
31902 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
31903 with an extra argument.
31904 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
31905 verify_ssa only when the extra argument is true.
31906 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
31907 with an extra argument.
31908 (tree_transform_and_unroll_loop): Same.
31910 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31912 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
31913 for all the passes of the LNO having LOOP_CLOSED_SSA.
31914 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
31915 * tree-loop-distribution.c (pass_loop_distribution): Same.
31916 * tree-pass.h (TODO_verify_loops): Removed.
31917 * tree-ssa-loop.c (pass_tree_loop_init): Same.
31919 (pass_tree_unswitch): Same.
31920 (pass_predcom): Same.
31921 (pass_vectorize): Same.
31922 (pass_linear_transform): Same.
31923 (pass_graphite_transforms): Same.
31924 (pass_iv_canon): Same.
31925 (pass_complete_unroll): Same.
31926 (pass_complete_unrolli): Same.
31927 (pass_parallelize_loops): Same.
31928 (pass_loop_prefetch): Same.
31929 (pass_iv_optimize): Same.
31931 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
31933 PR middle-end/32824
31934 * passes.c (init_optimization_passes): Move pass_lim before
31935 pass_copy_prop and pass_dce_loop.
31937 2010-04-06 Jakub Jelinek <jakub@redhat.com>
31940 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
31941 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
31942 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
31943 MULTI_* defines for 4 argument vpermil2p* builtins.
31945 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
31947 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
31948 * config/i386/i386.c (x86_maybe_negate_const_int): New.
31949 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
31950 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
31951 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
31952 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
31953 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
31954 Use x86_maybe_negate_const_int to output insn mnemonic.
31955 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
31956 check from instruction predicate. Update comments.
31957 * config/i386/sync.md (sync_add<mode>): Use
31958 x86_maybe_negate_const_int to output insn mnemonic.
31960 2010-04-06 Jan Hubicka <jh@suse.cz>
31962 PR tree-optimization/42906
31963 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
31964 IGNORE_SELF argument. Set visited_control_parents for fully
31966 (find_obviously_necessary_stmts): Update call of
31967 mark_control_dependent_edges_necessary.
31968 (propagate_necessity): Likewise. Handle PHI edges more curefully.
31970 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
31972 * config/i386/i386.md: Remove comment about 'e' and 'E'
31975 2010-04-06 Richard Guenther <rguenther@suse.de>
31977 PR tree-optimization/43627
31978 * tree-vrp.c (extract_range_from_unary_expr): Widenings
31979 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
31982 2010-04-06 Jakub Jelinek <jakub@redhat.com>
31984 * BASE-VER: Change to 4.6.0.
31987 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
31990 2010-04-06 Richard Guenther <rguenther@suse.de>
31992 PR middle-end/43661
31993 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
31995 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31997 * doc/invoke.texi (Optimize Options): Document that LTO
31998 won't remove object access purely due to incompatible
32001 2010-04-04 Matthias Klose <doko@ubuntu.com>
32003 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
32004 Initialize variable.
32006 2010-04-03 Richard Guenther <rguenther@suse.de>
32008 PR middle-end/42509
32009 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
32010 require a non-NULL MEM_OFFSET.
32012 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
32014 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
32015 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
32016 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
32017 config/alpha/predicates.md, config/arm/arm.md,
32018 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
32019 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
32020 config/darwin9.h, config/darwin.c, config/darwin.h,
32021 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
32022 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
32023 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
32024 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
32025 config/mips/mips.md, config/mn10300/mn10300.c,
32026 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
32027 config/rs6000/aix.h, config/rs6000/dfp.md,
32028 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
32029 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
32030 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
32031 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
32032 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
32033 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
32034 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
32035 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
32036 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
32037 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
32038 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
32039 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
32040 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
32041 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
32042 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
32043 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
32044 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
32045 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
32046 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
32047 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
32048 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
32049 opt-functions.awk, opth-gen.awk, params.def, passes.c,
32050 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
32051 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
32052 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
32053 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
32054 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
32055 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
32056 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
32057 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
32058 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
32059 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
32060 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
32061 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
32062 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
32063 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
32065 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32068 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
32069 * aclocal.m4: Regenerate.
32071 2010-04-02 Richard Guenther <rguenther@suse.de>
32073 PR tree-optimization/43629
32074 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
32075 if we have seen a constant value.
32077 2010-04-02 Joseph Myers <joseph@codesourcery.com>
32079 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
32081 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
32084 * arm.c (legitimize_tls_address): Adjust call to
32085 gen_tls_load_dot_plus_four.
32086 (arm_note_pic_base): New function.
32087 (arm_cannot_copy_insn_p): Use it.
32088 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
32091 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32096 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32098 * Makefile.in ($(out_object_file)): Depend on
32099 gt-$(basename $(notdir $(out_file))).h.
32101 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
32103 * config.gcc (lm32-*-rtems*): Add t-lm32.
32105 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
32107 * config.gcc: Add lm32-*-rtems*.
32108 * config/lm32/rtems.h: New file.
32110 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
32113 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
32115 2010-04-01 Jakub Jelinek <jakub@redhat.com>
32117 * dwarf2out.c (output_compilation_unit_header): For
32118 -gdwarf-4 use version 4 instead of version 3.
32119 (output_line_info): For version 4 and above emit additional
32120 maximum ops per insn header field.
32121 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
32123 * dwarf2out.c (is_c_family, is_java): Remove.
32124 (lower_bound_default): New function.
32125 (add_bound_info, gen_descr_array_type_die): Use it.
32127 2010-04-01 Dodji Seketeli <dodji@redhat.com>
32130 * dwarf2out.c (gen_variable_die): Allow debug info for variable
32131 re-declaration when it happens in a function.
32133 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
32135 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
32136 (cgraph_remove_function_insertion_hook): Same.
32137 (cgraph_call_function_insertion_hooks): Same.
32139 2010-04-01 Richard Guenther <rguenther@suse.de>
32141 PR middle-end/43614
32142 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
32143 and TREE_THIS_VOLATILE.
32144 (copy_ref_info): Likewise.
32145 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
32146 * tree.c (build6_stat): Ignore side-effects of all but arg5
32147 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
32150 2010-04-01 Richard Guenther <rguenther@suse.de>
32152 PR tree-optimization/43607
32153 * ipa-type-escape.c (check_call): Do not access non-existing
32156 2010-04-01 Richard Guenther <rguenther@suse.de>
32158 PR middle-end/43602
32160 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
32161 Jack Howarth <howarth@bromo.med.uc.edu>
32163 * tree-profile.c (tree_init_ic_make_global_vars): Make static
32166 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32168 * doc/install.texi (Prerequisites): Document libelf usability on
32169 IRIX 5/6 and Solaris 2.
32170 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
32171 Update GNU as, GNU ld requirements.
32172 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
32173 Document Sun Studio compiler download.
32174 Update and simplify as, ld recommendations.
32175 (Specific, *-*-solaris2.7): Note obsoletion, removal.
32177 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32179 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
32180 with_tune_32 to pentium4.
32182 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
32184 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
32186 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32188 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
32189 obsoletion, removal.
32191 Document GNU as requirement.
32192 Update configure requirements.
32193 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
32194 Recomment IRIX 6.5.18+.
32195 Document IDF/IDL requirement.
32196 Document GNU as requirement.
32197 Document GNU ld bootstrap failure.
32198 Remove freeware.sgi.com reference.
32200 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32202 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
32203 UNIX V4.0, V5.0 obsoletion, removal.
32204 Remove --with-gc=simple reference.
32205 Update VM requirements during bootstrap.
32206 Remove -oldas bootstrap description.
32207 Update binutils reference.
32208 Remove comparison failure note.
32210 2010-03-31 Richard Guenther <rguenther@suse.de>
32211 Zdenek Dvorak <ook@ucw.cz>
32212 Sebastian Pop <sebastian.pop@amd.com>
32214 PR middle-end/43464
32215 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
32216 with multiple arguments.
32217 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
32219 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32221 * graphite-dependences.c (print_pddr): Call print_pdr with an
32223 * graphite-poly.c (debug_pdr): Add an extra argument for the
32226 (print_pbb_domain): Same.
32228 (print_scop_context): Same.
32229 (print_scop): Same.
32230 (print_cloog): Same.
32231 (debug_pbb_domain): Same.
32233 (print_pdrs): Same.
32234 (debug_pdrs): Same.
32235 (debug_scop_context): Same.
32236 (debug_scop): Same.
32237 (debug_cloog): Same.
32238 (print_scop_params): Same.
32239 (debug_scop_params): Same.
32240 (print_iteration_domain): Same.
32241 (print_iteration_domains): Same.
32242 (debug_iteration_domain): Same.
32243 (debug_iteration_domains): Same.
32244 (print_scattering_function): Same.
32245 (print_scattering_functions): Same.
32246 (debug_scattering_function): Same.
32247 (debug_scattering_functions): Same.
32248 * graphite-poly.h (debug_pdr): Update declaration.
32250 (print_pbb_domain): Same.
32252 (print_scop_context): Same.
32253 (print_scop): Same.
32254 (print_cloog): Same.
32255 (debug_pbb_domain): Same.
32257 (print_pdrs): Same.
32258 (debug_pdrs): Same.
32259 (debug_scop_context): Same.
32260 (debug_scop): Same.
32261 (debug_cloog): Same.
32262 (print_scop_params): Same.
32263 (debug_scop_params): Same.
32264 (print_iteration_domain): Same.
32265 (print_iteration_domains): Same.
32266 (debug_iteration_domain): Same.
32267 (debug_iteration_domains): Same.
32268 (print_scattering_function): Same.
32269 (print_scattering_functions): Same.
32270 (debug_scattering_function): Same.
32271 (debug_scattering_functions): Same.
32273 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32275 * graphite-poly.c (print_scattering_function_1): New.
32276 (print_scattering_function): Call it.
32277 (print_scop_params): Remove spaces at the end of lines.
32278 (print_cloog): New.
32279 (debug_cloog): New.
32280 * graphite-poly.h (print_cloog): Declared.
32281 (debug_cloog): Declared.
32283 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32285 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
32287 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
32288 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
32289 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
32290 to switch between adding the IV bump in loop->latch or in loop->header.
32292 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32294 * graphite-poly.c (print_scattering_function): Pretty print following
32295 the scoplib format.
32297 (print_pbb_domain): Same.
32298 (dump_gbb_cases): Same.
32299 (dump_gbb_conditions): Same.
32300 (print_pdrs): Same.
32302 (print_scop_params): Same.
32303 (print_scop_context): Same.
32304 (print_scop): Same.
32305 (print_pbb_body): New.
32306 (lst_indent_to): New.
32307 (print_lst): Start new lines with a #.
32308 * graphite-poly.h (pbb_bb): New.
32309 (pbb_index): Use pbb_bb.
32310 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
32312 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
32314 2010-03-31 Jakub Jelinek <jakub@redhat.com>
32316 * dwarf2out.c (size_of_die): For -gdwarf-4 use
32317 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
32318 and 0 instead of 1 for dw_val_class_flag.
32319 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
32320 dw_val_class_range_list, dw_val_class_loc_list,
32321 dw_val_class_lineptr and dw_val_class_macptr, use
32322 DW_FORM_flag_present for dw_val_class_flag and
32323 DW_FORM_exprloc for dw_val_class_loc.
32324 (output_die): For -gdwarf-4 print dw_val_class_loc
32325 size as uleb128 instead of 1 or 2 bytes and don't print
32326 anything for dw_val_class_flag.
32328 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
32329 instead of cselib_lookup following by tweaking locs->setting_insn.
32332 * cselib.c (cselib_process_insn): Clear cselib_current_insn
32333 even before returning from label, setjmp call or volatile asm
32336 2010-03-31 Richard Guenther <rguenther@suse.de>
32338 PR middle-end/43600
32339 * cgraphunit.c (cgraph_output_in_order): Do not allocate
32340 temporary data on stack.
32342 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32344 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
32345 (PUSHSECTION_ASM_OP): Remove.
32346 (POPSECTION_ASM_OP): Remove.
32347 (PUSHSECTION_FORMAT): Remove.
32348 * config/sol2.h (PUSHSECTION_FORMAT): Define.
32349 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
32350 * config/sol2.c (solaris_output_init_fini): Use it.
32352 2010-03-31 Jie Zhang <jie@codesourcery.com>
32355 * opt-functions.awk (var_type_struct): Use signed char type
32356 for simple variables.
32358 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32360 * config/sol2.c: Include output.h.
32361 (solaris_assemble_visibility): New function.
32362 * config/t-sol2 (sol2.o): Add output.h dependency.
32363 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
32364 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
32367 2010-03-31 Jakub Jelinek <jakub@redhat.com>
32370 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
32371 V2SImode or XFmode on PRE_DEC.
32374 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
32377 2010-03-31 Jie Zhang <jie@codesourcery.com>
32380 * reload.h (caller_save_initialized_p): Declare.
32381 * toplev.c (backend_init_target): Don't call
32382 init_caller_save but set caller_save_initialized_p to false.
32383 * caller-save.c (caller_save_initialized_p): Define.
32384 (init_caller_save): Check caller_save_initialized_p.
32385 * ira.c (ira): Call init_caller_save if flag_caller_saves.
32387 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32390 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
32391 and soft-fp/t-softfp to tmake_file.
32392 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
32393 (LIBGCC2_TF_CEXT): Define.
32396 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
32399 * cselib.c (n_useless_values): Document handling of debug locs.
32400 (n_useless_debug_values, n_debug_values): New variables.
32401 (new_elt_loc_list): Don't add to debug values, keep count.
32402 (promote_debug_loc): New.
32403 (cselib_reset_table): Zero new variables.
32404 (entry_and_rtx_equal_p): Promote debug locs.
32405 (discard_useless_locs): Increment n_useless_debug_values for
32407 (remove_useless_values): Adjust n_useless_values and n_debug_values
32408 with n_useless_debug_values.
32409 (add_mem_for_addr): Promote debug locs.
32410 (cselib_lookup_mem): Likewise.
32411 (cselib_lookup_addr): Renamed to...
32412 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
32413 (cselib_log_lookup): ... this. Turn into...
32414 (cselib_lookup_addr): ... new wrapper.
32415 (cselib_lookup_from_insn): New.
32416 (cselib_invalidate_regno): Increment n_useless_debug_values for
32418 (cselib_invalidate_mem): Likewise.
32419 (cselib_process_insn): Take n_deleted and n_debug_values into
32420 account to guard remove_useless_value call.
32421 (cselib_finish): Zero n_useless_debug_values.
32422 * cselib.h (cselib_lookup_from_insn): Declare.
32423 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
32424 (sched_analyze_2): Likewise.
32426 2010-03-30 Jakub Jelinek <jakub@redhat.com>
32428 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
32430 (adjust_mems): Replace narrowing SUBREG of expression containing
32431 just PLUS, MINUS, MULT and ASHIFT of registers and constants
32432 with operations in the narrower mode.
32435 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
32436 regs_invalidated_by_call instead all call_used_reg_set registers.
32438 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
32440 PR middle-end/43430
32441 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
32442 pointer comparisons with types_compatible_p.
32443 * tree-vect-stmts.c (vectorizable_call): Same.
32444 (vectorizable_condition): Same.
32446 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32448 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
32449 stack check if the mask would be zero.
32451 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
32452 Jack Howarth <howarth@bromo.med.uc.edu>
32454 * tree-profile.c (tree_init_ic_make_global_vars): Make static
32457 2010-03-30 Joseph Myers <joseph@codesourcery.com>
32460 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
32462 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
32463 Include ___unordxf2 and ___unordtf2.
32464 * config/i386/libgcc-glibc.ver: Do not define inheritance from
32467 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
32469 * config/lm32/t-lm32: New file.
32470 * config.gcc: Use the above file when targetting lm32.
32472 2010-03-28 Duncan Sands <baldrick@free.fr>
32474 * Makefile.in (PLUGIN_HEADERS): Add except.h.
32476 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
32478 PR middle-end/43431
32479 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
32480 Improve vectorization cost model diagnostic.
32482 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
32484 PR middle-end/43436
32485 * tree-vect-data-refs.c (vect_analyze_data_refs): When
32486 compute_data_dependences_for_loop returns false, early exit
32487 and output an extra diagnostic for the failed data reference
32490 2010-03-29 Richard Guenther <rguenther@suse.de>
32492 PR tree-optimization/43560
32493 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
32494 (can_sm_ref_p): Treat stores to readonly locations as trapping.
32496 2010-03-29 Jie Zhang <jie@codesourcery.com>
32499 * toplev.c (process_options): Set optimization_default_node
32500 and optimization_current_node.
32501 * opts.c (decode_options): Don't set optimization_default_node
32502 and optimization_current_node.
32504 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
32506 * config/rtems.h: Abandon -qrtems_debug.
32508 2010-03-28 Jan Hubicka <jh@suse.cz>
32510 PR tree-optimization/43505
32511 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
32512 map should not be copied.
32514 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32516 PR middle-end/41674
32517 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
32518 cdtors, set DECL_PRESERVE_P.
32519 * ipa.c (cgraph_externally_visible_p): Return true if declaration
32520 should be preseved.
32522 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
32524 PR tree-optimization/43528
32525 * stor-layout.c (place_field): Check that constant fits into
32526 unsigned HWI when skipping calculation of MS bitfield layout.
32528 2010-03-27 Jan Hubicka <jh@suse.cz>
32530 PR middle-end/43391
32531 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
32532 notice_global_symbol work.
32534 2010-03-27 Jakub Jelinek <jakub@redhat.com>
32536 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
32537 instead of dwarf2out_decl.
32538 (struct var_loc_node): Remove section_label field.
32539 (dwarf2out_function_decl): New function.
32540 (dwarf2out_var_location): Don't set section_label field.
32541 (dwarf2out_begin_function): Don't empty decl_loc_table here.
32543 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
32545 PR tree-optimization/43544
32546 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32547 First argument for builtin vectorized function hook is now a
32548 tree to be able to distinguish between machine specific and
32550 * targhooks.c (default_builtin_vectorized_function): Ditto.
32551 * targhooks.h (default_builtin_vectorized_function): Ditto.
32552 * target.h (struct gcc_target): Ditto.
32553 * tree-vect-stmts.c (vectorizable_function): Ditto.
32554 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
32555 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
32558 2010-03-26 Joseph Myers <joseph@codesourcery.com>
32561 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
32562 nested binding iff it is a FUNCTION_DECL.
32563 (store_parm_decls_newstyle): Pass nested=true to bind for
32564 FUNCTION_DECLs amongst parameters.
32566 2010-03-26 Jakub Jelinek <jakub@redhat.com>
32568 * var-tracking.c (vt_expand_loc_callback): Don't run
32569 cselib_expand_value_rtx_cb in dummy mode if
32570 cselib_dummy_expand_value_rtx_cb returned false.
32572 * var-tracking.c (emit_note_insn_var_location): For one part
32573 notes with offset 0, don't add EXPR_LIST around the location.
32574 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
32575 add_location_or_const_value_attribute): Adjust for that change.
32578 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
32579 into first operand and location into second.
32580 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
32581 dw_cfi_oprnd_loc for DW_CFA_expression.
32582 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
32583 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
32584 assume first argument is regnum and second argument is location.
32586 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
32589 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
32590 of scratch register to DImode. Split to DImode comparison operator.
32591 Use SImode subreg of scratch register in the multiplication.
32592 (*cmp_sadd_sidi): Ditto.
32593 (*cmp_ssub_si): Ditto.
32594 (*cmp_ssub_sidi): Ditto.
32596 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
32599 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
32600 Remove invalid assert and wrong comment.
32602 2010-03-26 Jakub Jelinek <jakub@redhat.com>
32605 * flags.h (final_insns_dump_p): New extern.
32606 * final.c (final_insns_dump_p): New variable.
32607 (rest_of_clean_state): Set it before -fdump-final-insns=
32608 dumping, clear afterwards.
32609 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
32610 MEM_ALIAS_SET on MEMs.
32612 2010-03-26 David S. Miller <davem@davemloft.net>
32614 * configure.ac: Fix sparc GOTDATA_OP bug check.
32615 * configure: Rebuild.
32617 2010-03-26 Alan Modra <amodra@gmail.com>
32619 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
32621 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32623 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
32624 TLS_SECTION_ASM_FLAG.
32626 2010-03-25 Jakub Jelinek <jakub@redhat.com>
32629 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
32630 Clear first_function_block_is_cold.
32633 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
32634 argument if the argument is truth_value_p.
32636 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32638 * config/rs6000/constraints.md: Update copyright year for my changes.
32641 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
32642 used in reg+reg addressing, swap registers.
32644 2010-03-24 Jakub Jelinek <jakub@redhat.com>
32647 * target.h (struct gcc_target): Add code_end hook.
32648 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
32649 if not yet defined.
32650 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
32651 * toplev.c (compile_file): Call targetm.asm_out.code_end
32652 hook before unwind info/debug info output.
32653 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
32654 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
32655 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32656 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
32657 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32658 * config/i386/i386.c (ix86_file_end): Renamed to...
32659 (ix86_code_end): ... this. Make static. Don't call
32660 file_end_indicate_exec_stack. Emit unwind info using
32661 final_start_function/final_end_function.
32662 (darwin_x86_file_end): Remove.
32663 (TARGET_ASM_CODE_END): Define.
32664 * config/i386/i386.h (TARGET_ASM_FILE_END,
32665 NEED_INDICATE_EXEC_STACK): Don't define.
32666 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
32667 (TARGET_ASM_FILE_END): Define to darwin_file_end.
32668 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
32669 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
32672 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
32673 at the beginning and final_end_function at the end.
32674 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
32676 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32678 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
32679 and Sun as TLS syntax.
32680 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
32681 * configure: Regenerate.
32682 * config.in: Regenerate.
32683 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
32684 (default_elf_asm_named_section): Use it.
32685 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
32686 (i386_output_dwarf_dtprel): Likewise.
32687 (output_addr_const_extra): Likewise.
32688 (output_pic_addr_const): Lowercase @GOTTPOFF.
32689 (output_addr_const_extra): Likewise.
32690 (output_pic_addr_const): Lowercase @GOTNTPOFF.
32691 (output_addr_const_extra): Likewise.
32692 (output_pic_addr_const): Lowercase @INDNTPOFF.
32693 (output_addr_const_extra): Likewise.
32694 (output_pic_addr_const): Lowercase @NTPOFF.
32695 (output_addr_const_extra): Likewise.
32696 (output_pic_addr_const): Lowercase @TPOFF.
32697 (output_addr_const_extra): Likewise.
32698 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
32699 (*tls_global_dynamic_64): Likewise.
32700 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
32701 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
32703 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
32704 (ASM_OUTPUT_TLS_COMMON): Use it.
32705 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
32708 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
32709 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
32710 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
32711 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
32712 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32713 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
32715 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32717 * config/i386/i386.c (override_options): Don't accept
32718 -mtls-dialect=sun any longer.
32719 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
32720 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
32721 (*tls_local_dynamic_base_32_sun): Likewise.
32722 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32724 2010-03-24 Jakub Jelinek <jakub@redhat.com>
32727 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32728 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
32731 * ira.c (adjust_cleared_regs): New function.
32732 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
32736 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
32738 * expr.c (expand_expr_real): Restore previous
32739 curr_insn_source_location and curr_insn_block after
32740 expand_expr_real_1 call.
32741 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
32742 instead of expand_expr_real_1.
32744 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
32746 PR rtl-optimization/43413
32747 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
32750 2010-03-22 James E. Wilson <wilson@codesourcery.com>
32753 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
32754 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
32756 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
32758 * config/i386/i386.c (ix86_target_string): Add -mfma.
32759 Fix a typo in comment.
32761 2010-03-22 Mike Stump <mikestump@comcast.net>
32764 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
32765 Don't overly align based upon packed packed fields.
32767 2010-03-22 Jason Merrill <jason@redhat.com>
32769 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
32770 Use () rather than [], and move before the element type.
32772 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32774 * doc/configfiles.texi (Configuration Files): Removed
32775 fixinc/Makefile*, intl/Makefile.*.
32776 * doc/makefile.texi: Fixed markup. Abstract from version
32777 control system used.
32778 (Makefile): Removed obsolete java/parse.y example.
32779 * doc/sourcebuild.texi: Likewise.
32780 (Top Level): Added config, gnattools, libdecnumber, libgcc,
32781 libgomp, libssp. Removed fastjar.
32782 (Miscellaneous Docs): Clarify location.
32783 Added COPYING3, COPYING3.LIB.
32784 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
32786 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32789 * config/i386/i386.c (x86_function_profiler)
32790 [!NO_PROFILE_COUNTERS]: Fix typo.
32791 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
32794 2010-03-22 Janis Johnson <janis187@us.ibm.com>
32795 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32797 * doc/sourcebuild.texi (Test Directives): Split into six
32798 subsections, with most of the current text in new subsections
32799 Directives, Selectors, and Final Actions.
32800 (Directives): Split list of test directives into multiple
32802 (Selectors): Describe use and syntax of selectors.
32803 (Effective-Target Keywords): Describe all existing keywords.
32804 (Add Options): Describe features for dg-add-options.
32805 (Require Support): Describe variants of dg-require-support.
32806 (Final Actions): Describe commands to use in dg-final.
32808 2010-03-22 Michael Matz <matz@suse.de>
32810 PR middle-end/43475
32811 * recog.c (validate_replace_rtx_group): Replace also in
32812 REG_EQUAL and REG_EQUIV notes.
32814 2010-03-22 Richard Guenther <rguenther@suse.de>
32816 PR tree-optimization/43390
32817 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
32818 sure vector extracts are type correct.
32820 2010-03-22 Richard Guenther <rguenther@suse.de>
32822 PR middle-end/40106
32823 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
32824 x * sqrt (x) even when optimizing for size if the target
32825 has native support for sqrt.
32827 2010-03-22 Jakub Jelinek <jakub@redhat.com>
32829 * varasm.c (make_decl_rtl_for_debug): Also clear
32830 flag_mudflap for the duration of make_decl_rtl call.
32833 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
32834 locs from preserved VALUEs.
32836 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32838 PR middle-end/42718
32839 * pa.md (movmemsi): Set align to one if zero.
32840 (movmemdi): Likewise.
32842 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
32845 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
32846 with their corresponding prologue pushes.
32848 2010-03-20 Andrew Pinski <pinskia@gmail.com>
32851 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
32852 at the begining or end.
32853 (spu_expand_epilogue): Likewise.
32855 2010-03-20 Richard Guenther <rguenther@suse.de>
32857 PR rtl-optimization/43438
32858 * combine.c (make_extraction): Properly zero-/sign-extend an
32859 extraction of the low part of a CONST_INT. Also handle
32862 2010-03-19 Mike Stump <mikestump@comcast.net>
32864 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
32865 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
32866 (override_options): Use SUBTARGET32_DEFAULT_CPU.
32868 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
32871 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
32874 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
32876 PR rtl-optimization/42258
32877 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
32878 use that may match DEF.
32881 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
32882 the cost of loading the constant rather than assuming
32884 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
32885 outer code is AND, do the same tests as the andsi3 expander and
32886 return COSTS_N_INSNS (1) if and is cheap.
32888 * optabs.c (avoid_expensive_constant): Fix formatting.
32890 2010-03-19 Michael Matz <matz@suse.de>
32893 * attribs.c (decl_attributes): When rebuilding a function pointer
32894 type use the same qualifiers as the original pointer type.
32896 2010-03-19 Martin Jambor <mjambor@suse.cz>
32898 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
32899 and is_gimple_ip_invariant_address.
32901 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32904 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32906 * config/arm/arm.c (arm_override_options): Turn off
32907 flag_dwarf2_cfi_asm for AAPCS variants.
32909 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32912 * config/arm/arm.c (emit_multi_reg_push): Update comments.
32913 Use PRE_MODIFY instead of PRE_DEC.
32914 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
32915 (vfp_emit_fstmd): Likewise.
32917 2010-03-19 Michael Matz <matz@suse.de>
32920 * builtins.c (expand_builtin_interclass_mathfn,
32921 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
32924 2010-03-19 Richard Guenther <rguenther@suse.de>
32926 PR tree-optimization/43415
32927 * tree-ssa-pre.c (phi_translate): Split out worker to ...
32928 (phi_translate_1): ... this.
32929 (phi_translate): Move all caching here. Cache all NARY
32930 and REFERENCE translations.
32932 2010-03-19 David S. Miller <davem@davemloft.net>
32934 With help from Eric Botcazou.
32935 * config/sparc/sparc.c: Include dwarf2out.h.
32936 (emit_pic_helper): Delete.
32937 (pic_helper_symbol_name): Delete.
32938 (pic_helper_emitted_p): Delete.
32939 (pic_helper_needed): New.
32940 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
32941 (get_pc_thunk_name): New.
32942 (load_pic_register): Remove 'delay_pic_helper' arg. Use
32943 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
32944 Set pic_helper_needed to true. Don't call emit_pic_helper.
32945 (sparc_expand_prologue): Update load_pic_register call.
32946 (sparc_output_mi_thunk): Likewise.
32947 (sparc_file_end): Emit a hidden comdat symbol for the PIC
32948 thunk if possible. Output CFI information as needed.
32950 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
32951 Jack Howarth <howarth@bromo.med.uc.edu>
32954 * config/i386/i386.h: Fix ABI on darwin x86-32.
32956 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
32958 * tree.h: Declare make_decl_rtl_for_debug.
32959 * varasm.c (make_decl_rtl_for_debug): New.
32960 * dwarf2out.c (rtl_for_decl_location): Call it.
32961 * cfgexpand.c (expand_debug_expr): Call it.
32963 2010-03-18 Jakub Jelinek <jakub@redhat.com>
32966 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
32970 * var-tracking.c (vt_init_cfa_base): Do nothing if
32971 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
32973 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
32976 * var-tracking.c (canonicalize_vars_star): New.
32977 (dataflow_post_merge_adjust): Use it.
32979 2010-03-18 Jakub Jelinek <jakub@redhat.com>
32982 * var-tracking.c (non_suitable_const): New function.
32983 (add_uses): For DEBUG_INSNs with constants, don't record any
32984 value, instead just the constant value itself.
32985 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
32986 is not VAR_LOC_UNKNOWN_P, set var to the constant.
32987 (emit_notes_in_bb): Likewise.
32988 (emit_note_insn_var_location): For onepart variables if
32989 cur_loc is a VOIDmode constant, use DECL_MODE.
32991 2010-03-18 Martin Jambor <mjambor@suse.cz>
32993 PR middle-end/42450
32994 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
32995 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
32996 all non-clones. Moved call redirection...
32997 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
32998 (cgraph_materialize_all_clones): Dispose of all
32999 combined_args_to_skip bitmaps.
33000 (verify_cgraph_node): Do not check for edges pointing to wrong
33001 nodes in inline clones.
33002 * tree-inline.c (copy_bb): Call
33003 cgraph_redirect_edge_call_stmt_to_callee.
33004 * ipa.c (cgraph_remove_unreachable_nodes): Call
33005 cgraph_node_remove_callees even when there are used clones.
33007 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33009 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
33011 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33014 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
33017 2010-03-18 Michael Matz <matz@suse.de>
33019 PR middle-end/43419
33020 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
33021 into sqrt(x) if we need to preserve signed zeros.
33023 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
33024 Eric Botcazou <ebotcazou@adacore.com>
33026 PR rtl-optimization/43360
33027 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
33028 note if we don't know its invariant status.
33030 2010-03-18 Michael Matz <matz@suse.de>
33032 PR tree-optimization/43402
33033 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
33034 PHI chains of ssa names registered for update.
33036 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
33039 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
33040 non-offsettable and pre_modify update addressing.
33041 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
33042 and "2" alternatives "#".
33043 (*movdd_softfloat32): Make all alternatives "#";
33044 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
33045 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
33046 (*movdf_softfloat32): Make all alternatives "#";
33047 (movdi): Use the new DIFD mode iterator to create a common splitter
33048 for movdi, movdf and movdd patterns.
33050 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
33052 * common.opt (dumpdir): Remove redundant tab.
33054 2010-03-17 Martin Jambor <mjambor@suse.cz>
33056 PR tree-optimization/43347
33057 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
33058 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
33060 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
33062 PR rtl-optimization/42216
33063 * regrename.c (create_new_chain): New function, broken out from...
33064 (scan_rtx_reg): ... here. Call it. Handle the case where we are
33065 appending a use to an empty chain.
33066 (build_def_use): Remove previous changes that convert OP_INOUT to
33067 OP_OUT operands; instead detect the case where an OP_INOUT operand
33068 uses a previously untracked register and create an empty chain for it.
33070 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33072 * doc/extend.texi (Function Attributes): Rewrite unfinished
33073 sentence in ms_abi documentation.
33075 2010-03-17 Alan Modra <amodra@gmail.com>
33077 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
33078 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
33079 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
33080 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
33082 2010-03-16 Richard Henderson <rth@redhat.com>
33084 PR middle-end/43365
33085 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
33086 (lower_try_finally): Save and restore eh_seq around the expansion
33087 of the try-finally.
33089 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33091 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
33092 statements before splitting block.
33094 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33096 * doc/sourcebuild.texi (Testsuites): Fix markup.
33097 Use pathnames relative to gcc/testsuite.
33098 (Test Directives): Move description of how timeout is determined.
33099 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
33100 (C Tests): Correct gcc.misc-tests directory.
33101 Framework tests now live in gcc.test-framework.
33103 2010-03-16 Richard Guenther <rguenther@suse.de>
33105 PR middle-end/43379
33106 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
33107 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
33109 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33110 Alexandre Oliva <aoliva@redhat.com>
33112 PR tree-optimization/42917
33113 * lambda-code.c (remove_iv): Skip debug statements.
33114 (lambda_loopnest_to_gcc_loopnest): Likewise.
33115 (not_interesting_stmt): Debug statements are not interesting.
33117 2010-03-16 Jakub Jelinek <jakub@redhat.com>
33121 * cselib.c (cselib_preserve_constants,
33122 cfa_base_preserved_val): New static variables.
33123 (preserve_only_constants): New function.
33124 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
33125 clear its REG_VALUES. If cselib_preserve_constants, don't
33126 empty the whole hash table, but preserve there VALUEs with constants,
33127 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
33128 (cselib_preserve_cfa_base_value): New function.
33129 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
33130 (cselib_init): Change argument to int bitfield. Set
33131 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
33133 (cselib_finish): Clear cselib_preserve_constants and
33134 cfa_base_preserved_val.
33135 * cselib.h (enum cselib_record_what): New enum.
33136 (cselib_init): Change argument to int.
33137 (cselib_preserve_cfa_base_value): New prototype.
33138 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
33139 * dse.c (dse_step1): Likewise.
33140 * cfgcleanup.c (thread_jump): Likewise.
33141 * sched-deps.c (sched_analyze): Likewise.
33142 * gcse.c (local_cprop_pass): Likewise.
33143 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
33144 If FN is non-NULL, call the callback always and whenever it returns
33145 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
33146 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
33147 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
33148 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
33149 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
33150 * var-tracking.c: Include recog.h.
33151 (bb_stack_adjust_offset): Remove.
33152 (vt_stack_adjustments): Don't call it, instead just gather the
33153 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
33154 (adjust_stack_reference): Remove.
33155 (compute_cfa_pointer): New function.
33156 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
33157 (struct adjust_mem_data): New type.
33158 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
33160 (get_address_mode): New function.
33161 (replace_expr_with_values): Use it.
33162 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
33163 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
33164 (adjust_sets): Remove.
33165 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
33166 Use get_address_mode.
33167 (get_adjusted_src): Remove.
33168 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
33169 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
33170 (add_with_sets): Don't call adjust_sets.
33171 (fp_setter, vt_init_cfa_base): New functions.
33172 (vt_initialize): Change return type to bool. Move most of pool etc.
33173 initialization to the beginning of the function from end. Pass
33174 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
33175 If !frame_pointer_needed, call vt_stack_adjustment before mos
33176 vector is filled, call vt_init_cfa_base if argp/framep has been
33177 eliminated to sp. If frame_pointer_needed and argp/framep has
33178 been eliminated to hard frame pointer, set
33179 hard_frame_pointer_adjustment and call vt_init_cfa_base after
33180 encountering fp setter in the prologue. For MO_ADJUST, call
33181 log_op_type before pusing the op into mos vector, not afterwards.
33182 Call adjust_insn before cselib_process_insn/add_with_sets,
33183 call cancel_changes (0) afterwards.
33184 (variable_tracking_main_1): Adjust for vt_initialize calling
33185 vt_stack_adjustments and returning whether it succeeded or not.
33187 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
33189 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
33192 2010-03-15 Jakub Jelinek <jakub@redhat.com>
33194 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
33196 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
33197 drap_reg has not been set.
33199 2010-03-15 Michael Matz <matz@suse.de>
33201 PR middle-end/43300
33202 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
33203 use it to expand block copies.
33204 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
33205 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
33206 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
33208 2010-03-15 Richard Guenther <rguenther@suse.de>
33210 PR tree-optimization/43367
33211 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
33214 2010-03-15 Richard Guenther <rguenther@suse.de>
33216 PR tree-optimization/43317
33217 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
33219 2010-03-15 Martin Jambor <mjambor@suse.cz>
33221 PR tree-optimization/43141
33222 * tree-sra.c (create_abstract_origin): New function.
33223 (modify_function): Call create_abstract_origin.
33225 2010-03-15 Chris Demetriou <cgd@google.com>
33227 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
33230 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33232 PR middle-end/43354
33233 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
33234 call insert_out_of_ssa_copy for default definitions.
33236 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33238 * graphite-clast-to-gimple.c (my_long_long): Defined.
33239 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
33240 * graphite-sese-to-poly.c (my_long_long): Defined.
33241 (scop_ivs_can_be_represented): Use it.
33243 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33245 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
33246 graphite-max-bbs-per-function, and loop-block-tile-size.
33247 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
33249 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
33251 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33253 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
33254 forward declaration.
33255 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
33256 (add_upper_bounds_from_estimated_nit): New.
33257 (build_loop_iteration_domains): Use it.
33259 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33261 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
33263 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33265 PR middle-end/43306
33266 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
33267 should be an INTEGER_CST. Also handle CASE_CONVERT.
33269 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33271 * graphite.c (graphite_initialize): To bound the number of bbs per
33272 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
33273 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
33274 * doc/invoke.texi: Document it.
33276 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33278 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
33279 * graphite-sese-to-poly.h (build_poly_scop): Same.
33281 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33283 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
33284 the number of parameters in the scop. Use as an upper bound
33285 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
33286 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
33287 * doc/invoke.texi: Document it.
33289 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
33291 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
33292 * doc/c-tree.texi: Remove.
33293 * doc/generic.texi: Merge c-tree.texi here.
33294 * doc/gccint.texi (Trees): Remove menu entry.
33295 (c-tree.texi): Remove @include.
33296 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
33297 * doc/languages.texi (Reading RTL): Ditto.
33299 2010-03-12 Steve Ellcey <sje@cup.hp.com>
33302 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
33304 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
33306 PR middle-end/42431
33307 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
33308 code added to work around reload clobbering CONST insns.
33310 2010-03-12 Jakub Jelinek <jakub@redhat.com>
33312 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
33313 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
33314 (cselib_preserve_only_values): Remove retain argument, don't
33315 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
33316 * cselib.h (cselib_preserve_only_values): Remove retain argument.
33317 * var-tracking.c (micro_operation): Move insn field before union.
33318 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
33319 (struct variable_tracking_info_def): Remove n_mos field, change
33320 mos into a vector of micro_operations.
33321 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
33322 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
33323 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
33324 changing into a vector.
33325 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
33326 come before all other uops generated by add_stores.
33327 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
33329 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
33330 a vector. Run just one pass over the bbs instead of separate counting
33331 and computation phase.
33332 (vt_finalize): Free VTI (bb)->mos vector instead of array.
33335 * tree-inline.c (remap_decls): Put old_var rather than origin_var
33336 into *nonlocalized_list vector.
33337 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
33338 even if origin is non-NULL.
33339 (gen_variable_die): Likewise.
33340 (process_scope_var): Don't change origin.
33341 (gen_decl_die): Likewise.
33342 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
33343 before adding new edges instead of after it, fix moving over
33346 2010-03-11 David S. Miller <davem@davemloft.net>
33348 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
33350 * configure: Rebuild.
33352 2010-03-11 Martin Jambor <mjambor@suse.cz>
33354 PR tree-optimization/43257
33355 * tree.c (assign_assembler_name_if_neeeded): New function.
33356 (free_lang_data_in_cgraph): Assembler name assignment moved to the
33357 above new function.
33358 * tree.h (assign_assembler_name_if_neeeded): Declare.
33359 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
33360 the function if needed.
33362 2010-03-11 Chris Demetriou <cgd@google.com>
33364 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
33365 include/stdint-gcc.h, and include/stdint.h world-readable.
33367 2010-03-11 Richard Guenther <rguenther@suse.de>
33369 PR tree-optimization/43255
33370 * tree-vrp.c (process_assert_insertions_for): Do not insert
33371 asserts for trivial conditions.
33373 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33375 PR tree-optimization/43280
33376 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
33377 generation. Move calculation of size out of the if branch.
33378 (find_bswap): Modify compare number generation.
33380 2010-03-11 Richard Guenther <rguenther@suse.de>
33383 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
33384 (input_gimple_stmt): Fixup handled component types during
33385 operand read. Also fix up decls in ADDR_EXPRs.
33387 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
33389 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
33390 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
33392 2010-03-10 Jan Hubicka <jh@suse.cz>
33395 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
33396 * varasm.c (get_variable_section): Don't do that here...
33397 (make_decl_rtl): ... and here.
33398 (do_assemble_alias): Produce decl RTL.
33399 (assemble_alias): Likewise.
33401 2010-03-10 Jakub Jelinek <jakub@redhat.com>
33404 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
33405 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
33407 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
33408 (based_loc_descr): Only express drap or vdrap regno based expressions
33409 using DW_OP_fbreg when not optimizing.
33410 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
33411 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
33412 REG_CFA_SET_VDRAP note.
33414 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
33416 PR tree-optimization/43236
33417 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
33418 error in calculation of base address in reverse iteration case.
33419 (generate_builtin): Take number of latch executions if the statement
33422 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
33424 PR middle-end/42859
33425 * tree-eh.c: Include pointer-set.h.
33426 (lower_eh_dispatch): Filter out duplicate case labels and
33427 remove the unneeded edge when the label is unused. Return
33428 true when some edges are removed.
33429 (execute_lower_eh_dispatch): When any lowering resulted in
33430 removing an edge, also delete unreachable blocks.
33432 2010-03-10 Jakub Jelinek <jakub@redhat.com>
33435 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
33436 UNSPEC_MACHOPIC_OFFSET.
33438 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
33441 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
33442 (m68k_delegitimize_address): New function.
33444 2010-03-09 Jakub Jelinek <jakub@redhat.com>
33447 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
33450 * var-tracking.c (adjust_sets): New function.
33451 (count_with_sets, add_with_sets): Use it.
33452 (get_adjusted_src): New inline function.
33453 (add_stores): Use it.
33456 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
33457 call cselib_dummy_expand_value_rtx_cb instead of
33458 cselib_expand_value_rtx_cb.
33461 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
33462 * config/i386/i386.c: Include debug.h and dwarf2out.h.
33463 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
33464 and .cfi_endproc around the pic thunks.
33465 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
33466 all queued unwind info register saves are saved before the call.
33467 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
33468 considered as sp-=4 for unwind info and the pop as sp+=4 which
33469 also clobbers dest, but doesn't actually restore it.
33472 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
33473 RTX_FRAME_RELATED_P.
33475 2010-03-09 Jie Zhang <jie@codesourcery.com>
33477 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
33478 whitespaces in output template.
33480 2010-03-09 Jie Zhang <jie@codesourcery.com>
33482 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
33483 out array boundary.
33485 2010-03-08 Jakub Jelinek <jakub@redhat.com>
33487 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
33488 builtins.exp in a separate job.
33490 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33492 * graphite-sese-to-poly.c (add_param_constraints): Use
33493 lower_bound_in_type and upper_bound_in_type.
33495 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33497 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
33498 instead of unsigned_type_node.
33500 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33501 Reza Yazdani <reza.yazdani@amd.com>
33503 PR middle-end/43065
33504 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
33505 on pointer type parameters.
33507 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
33509 PR middle-end/42644
33510 PR middle-end/42130
33511 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
33512 handle conversions from pointer to integers.
33513 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
33514 induction variable, to be able to work with code generated by CLooG.
33515 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
33516 (build_poly_scop): Bail out if we cannot codegen a loop.
33518 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
33520 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
33521 code generation with gloog_error.
33523 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33525 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
33526 Call fold_convert on all the returned values.
33527 (expand_scalar_variables_expr): Pass to
33528 expand_scalar_variables_ssa_name the type of the resulting expression.
33530 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33532 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
33533 ppl_min_for_le_pointset.
33534 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
33535 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
33537 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33539 * graphite-dependences.c (map_into_dep_poly): Removed.
33540 (dependence_polyhedron_1): Use combine_context_id_scat.
33542 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33544 * graphite-poly.h (struct poly_scattering): Add layout documentation.
33545 (struct poly_bb): Same.
33546 (combine_context_id_scat): New.
33548 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33550 PR middle-end/42326
33551 * sese.c (name_defined_in_loop_p): Return false for default
33554 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33556 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
33557 and clean up the logic.
33559 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33561 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
33564 2010-03-08 Jakub Jelinek <jakub@redhat.com>
33566 * var-tracking.c (remove_cselib_value_chains): Define only for
33568 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
33569 delete_slot_part, emit_notes_for_differences_1): Don't call
33570 remove_cselib_value_chains here.
33571 (set_slot_part, emit_notes_for_differences_2): Don't call
33572 add_cselib_value_chains here.
33573 (preserved_values): New vector.
33574 (preserve_value): New function.
33575 (add_uses, add_stores, vt_add_function_parameters): Use it
33576 instead of cselib_preserve_value.
33577 (changed_values_stack): New vector.
33578 (check_changed_vars_0): New function.
33579 (check_changed_vars_1, check_changed_vars_2): Use it.
33580 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
33581 changed_values_stack VALUEs.
33582 (vt_emit_notes): For all preserved_values call
33583 add_cselib_value_chains. If ENABLE_CHECKING call
33584 remove_cselib_value_chains before verifying value_chains is empty.
33585 Initialize and free changed_values_stack.
33586 (vt_initialize): Initialize preserved_values.
33587 (vt_finalize): Free preserved_values.
33589 2010-03-08 Richard Guenther <rguenther@suse.de>
33591 PR tree-optimization/43269
33592 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
33595 2010-03-08 Martin Jambor <mjambor@suse.cz>
33597 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
33598 (ipa_is_param_called): Removed.
33599 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
33600 (ipa_print_node_params): Do not print the called flag.
33601 (ipa_write_node_info): Do not stream the called flag.
33602 (ipa_read_node_info): Likewise.
33604 2010-03-07 Jakub Jelinek <jakub@redhat.com>
33607 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
33608 * cselib.c (struct expand_value_data): Add dummy field.
33609 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
33611 (cselib_dummy_expand_value_rtx_cb): New function.
33612 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
33614 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
33615 * var-tracking.c: Include pointer-set.h.
33616 (variable): Change n_var_parts to char from int. Add
33617 cur_loc_changed and in_changed_variables fields.
33618 (variable_canonicalize): Remove.
33619 (shared_var_p): New inline function.
33620 (unshare_variable): Maintain cur_loc_changed and
33621 in_changed_variables fields. If var was in changed_variables,
33622 replace it there with new_var. Just copy cur_loc instead of
33623 resetting it to something else.
33624 (variable_union): Don't recompute cur_loc. Use shared_var_p.
33625 (dataflow_set_union): Don't call variable_canonicalize.
33626 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
33627 of their DEBUG_EXPR_TREE_DECLs.
33628 (canonicalize_loc_order_check): Verify that cur_loc is NULL
33629 and in_changed_variables and cur_loc_changed is false.
33630 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
33631 and cur_loc_changed. Don't update cur_loc here.
33632 (variable_merge_over_src): Don't call variable_canonicalize.
33633 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
33634 removing loc that is equal to cur_loc, clear cur_loc,
33635 set cur_loc_changed and ensure variable_was_changed is called.
33636 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
33637 compare pointers in cur_loc check, if it is equal to loc,
33638 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
33639 (variable_different_p): Remove compare_current_location argument,
33640 don't compare cur_loc.
33641 (dataflow_set_different_1): Adjust variable_different_p caller.
33642 (variable_was_changed): If dv had some var in changed_variables
33643 already, reset in_changed_variables flag for it and propagate
33644 cur_loc_changed over to the new variable. On empty var
33645 always set cur_loc_changed. Set in_changed_variables on whatever
33646 var is added to changed_variables.
33647 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
33648 Use shared_var_p. When removing loc that is equal to cur_loc,
33649 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
33650 end, don't set it to something else, just call variable_was_changed.
33651 (delete_slot_part): Use shared_var_p. When cur_loc equals to
33652 loc being removed, clear cur_loc and set cur_loc_changed.
33653 Set cur_loc_changed if all locations have been removed.
33654 (struct expand_loc_callback_data): New type.
33655 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
33656 allocated. Always create SUBREGs if simplify_subreg failed.
33657 Prefer to use cur_loc, when that fails and still in
33658 changed_variables (and seen first time) recompute it. Set
33659 cur_loc_changed of variables which had to change cur_loc and
33660 compute elcd->cur_loc_changed if any of the subexpressions used
33661 had to change cur_loc.
33662 (vt_expand_loc): Adjust to pass arguments in
33663 expand_loc_callback_data structure.
33664 (vt_expand_loc_dummy): New function.
33665 (emitted_notes): New variable.
33666 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
33667 that weren't used for any other decl in current
33668 emit_notes_for_changes call call vt_expand_loc_dummy to update
33669 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
33670 first loc_chain location if NULL before. Always use just
33671 cur_loc instead of first loc_chain location. When cur_loc_changed
33672 is false, when not --enable-checking=rtl just don't emit any note.
33673 When rtl checking, compute the note and assert it is the same
33674 as previous note. Clear cur_loc_changed and in_changed_variables
33675 at the end before removing from changed_variables.
33676 (check_changed_vars_3): New function.
33677 (emit_notes_for_changes): Traverse changed_vars to call
33678 check_changed_vars_3 on each changed var.
33679 (emit_notes_for_differences_1): Clear cur_loc_changed and
33680 in_changed_variables. Recompute cur_loc of new_var.
33681 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
33682 (vt_emit_notes): Initialize and destroy emitted_notes.
33684 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
33686 PR rtl-optimization/42220
33687 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
33688 Use verify_reg_tracked to determine if we should use OP_OUT rather
33690 (build_def_use): If we see an in-out operand for a register that we
33691 know nothing about, treat is an output if possible, fail the block if
33694 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33697 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
33700 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33703 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
33704 uses of relevant DEFs that are dead outside the loop too.
33706 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33708 * var-tracking.c (dataflow_set_merge): Swap src and src2.
33710 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33712 * var-tracking.c (values_to_unmark): New variable.
33713 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33714 values_to_unmark vector. Moved body to...
33715 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33716 instead queue it into values_to_unmark vector.
33717 (vt_find_locations): Free values_to_unmark vector.
33719 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
33721 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
33722 (site.exp): Export them when plugins are enabled.
33724 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
33726 PR middle-end/42326
33727 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
33728 that contain scevs.
33729 (chrec_fold_multiply): Same.
33731 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
33734 * c-decl.c (build_compound_literal): Return early if init is
33735 an error_mark_node.
33737 2010-03-04 Martin Jambor <mjambor@suse.cz>
33739 PR tree-optimization/43164
33740 PR tree-optimization/43191
33741 * tree-sra.c (type_consists_of_records_p): Reject records with
33742 zero-size bit-fields at the end.
33744 2010-03-04 Mike Stump <mikestump@comcast.net>
33746 * Makefile.in (TAGS): Remove *.y.
33748 2010-03-04 Richard Guenther <rguenther@suse.de>
33750 PR tree-optimization/40761
33751 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
33753 (my_rev_post_order_compute): New function.
33754 (init_pre): Call it.
33756 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
33758 PR middle-end/43209
33759 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
33760 decrease the cost of an IV candidate when the cost is infinite.
33762 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33764 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
33765 Use '3DNow!' for the extension of that name, ensure normal space
33767 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
33769 2010-03-03 Jeff Law <law@redhat.com>
33771 * PR middle-end/32693
33772 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
33773 than gen_rtx_SUBREG.
33774 (extract_bit_field_1): Likewise.
33776 2010-03-03 Janis Johnson <janis187@us.ibm.com>
33778 * doc/sourcebuild.texi (Test directives): Document that arguments
33779 include-opts and exclude-opts are now optional for dg-skip-if,
33780 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
33782 2010-03-03 Jason Merrill <jason@redhat.com>
33785 * cgraph.h (varpool_node): Add extra_name field.
33786 * varpool.c (varpool_extra_name_alias): New.
33787 (varpool_assemble_decl): Emit extra name aliases.
33788 (varpool_mark_needed_node): Look past an extra name alias.
33789 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
33790 * lto-streamer-in.c (lto_input_tree): Read it.
33791 * lto-streamer-out.c (output_unreferenced_globals): Write it.
33793 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
33795 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
33796 (sparc*-*-solaris2*): ...this.
33798 2010-03-03 Jakub Jelinek <jakub@redhat.com>
33801 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
33802 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
33803 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
33804 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
33807 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
33808 fallthrough to default handling, just with want_address 0 instead of 2.
33809 For single element lists, add_AT_loc directly, otherwise create an
33810 artificial variable DIE and stick location list to it.
33813 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
33814 (VAL_EXPR_HAS_REVERSE): Define.
33815 (reverse_op): New function.
33816 (add_stores): For reversible operations add an extra MO_VAL_USE.
33818 2010-03-02 Jason Merrill <jason@redhat.com>
33820 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
33822 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
33824 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
33825 (sparc64-*-linux*): Likewise.
33826 (sparc64-*-solaris2*): Include assembler files before linker ones.
33827 (sparc-*-solaris2*): Simplify and reorder to match previous case.
33828 * config/sparc/gas.h: Delete.
33829 * config/sparc/sol2-64.h: Add copyright notice.
33830 * config/sparc/sol2-gas-bi.h: Likewise.
33831 * config/sparc/sol2-gld.h: Likewise.
33832 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
33833 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
33834 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
33835 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
33836 (sparc_elf_asm_named_section): Rename into...
33837 (sparc_solaris_elf_asm_named_section): ...this. Always define.
33839 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
33841 * config/alpha/alpha.c (override_options): Fix -mtune error message.
33843 2010-03-02 Jeff Law <law@redhat.com>
33845 PR middle-end/42431
33846 * reload1.c (rtx_p, substitute_stack): Declare.
33847 (substitute): Record addresses of changed rtxs.
33848 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
33849 Restore the original rtx when complete.
33850 (reload): Free subsitute_stack when complete.
33852 2010-03-02 Janis Johnson <janis187@us.ibm.com>
33854 * doc/gccint.texi (menu): Add Testsuites as a chapter.
33855 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
33857 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
33858 LTO Testing, gcov Testing, profopt Testing, compat Testing,
33859 Torture Tests): Change from subsection to section.
33861 2010-03-02 Jakub Jelinek <jakub@redhat.com>
33862 Steven Bosscher <steven@gcc.gnu.org>
33864 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
33867 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
33869 PR middle-end/42640
33870 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
33871 the assignment from the new induction variable to the assignment
33872 of the value from the original loop PHI function.
33874 2010-03-01 Janis Johnson <janis187@us.ibm.com>
33875 Daniel Jacobowitz <dan@codesourcery.com>
33877 * doc/sourcebuild.texi (Test directives): Clarify options to
33880 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33882 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
33883 Disable cfi directives unless GCC and gas agree on using read-only
33884 .eh_frame sections for 64-bit.
33885 * configure: Regenerate.
33887 2010-03-01 Richard Guenther <rguenther@suse.de>
33889 PR tree-optimization/43220
33890 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
33891 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
33893 2010-03-01 Richard Guenther <rguenther@suse.de>
33894 Martin Jambor <mjambor@suse.cz>
33896 PR middle-end/41250
33897 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
33898 gimplified parameters.
33900 2010-03-01 Christian Bruel <christian.bruel@st.com>
33902 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
33904 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
33906 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
33908 2010-03-01 Richard Guenther <rguenther@suse.de>
33910 PR middle-end/43213
33911 * expr.c (expand_assignment): Use the alias-oracle to tell
33912 if the rhs aliases the result decl.
33914 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33917 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
33918 to sol_gt_pch_get_address.
33919 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
33920 64-bit, SPARC and x86.
33921 (sol_gt_pch_get_address): New function.
33923 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
33925 * toplev.h (inform_n, error_n): Declare.
33926 * diagnostic.c (inform_n, error_n): New function.
33928 2010-03-01 Jakub Jelinek <jakub@redhat.com>
33930 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
33931 has no rtl yet when processing local_decls, queue it and recheck
33932 if deferred stack allocation hasn't assigned it rtl.
33934 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
33936 * config/sh/sh.c (unspec_bbr_uid): New.
33937 (gen_block_redirect): Use it instead of INSN_UID.
33938 (gen_far_branch): Likewise.
33940 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
33942 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
33943 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
33945 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33947 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
33948 (Warning Options): -Wno-conversion-null is valid for
33949 Objective-C++ as well.
33950 * doc/tm.texi (Named Address Spaces): Likewise.
33951 * doc/plugins.texi (Plugins): Replace TABs with spaces.
33952 * doc/tree-ssa.texi (Tree SSA): Likewise.
33954 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33957 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
33958 by default. Don't set the default arch for
33959 i[34567]86-*-darwin*|x86_64-*-darwin*.
33961 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33964 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
33965 default. Set the default 32bit/64bit archs with $with_arch
33966 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
33968 2010-02-27 Richard Guenther <rguenther@suse.de>
33970 PR tree-optimization/43186
33971 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
33972 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
33973 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
33974 unroller iterations.
33976 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33978 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
33979 required and i[34567]86-*-* targets don't support 64bit ISA.
33981 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
33984 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
33985 the same alias set.
33987 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
33989 * config.gcc: Set the default arch at least to Prescott for
33990 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
33991 if SSE math is enabled.
33993 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
33995 * diagnostic.c (diagnostic_initialize): Update.
33996 (diagnostic_report_diagnostic): Test inhibit_notes_p for
33998 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
33999 (diagnostic_inhibit_notes): New.
34000 * toplev.c (process_options): inhibit notes with -fcompare-debug.
34002 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34005 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
34006 * doc/standards.texi: Likewise.
34007 * doc/extend.texi: Likewise.
34008 * doc/trouble.texi: Likewise.
34009 * doc/cppopts.texi: Likewise.
34010 * doc/install.texi: Likewise.
34011 * c.opt (std=c90,std=gnu90): New options.
34012 * c-opts.c (c_common_handle_option): Handle them.
34014 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34017 * c-decl.c (undeclared_variable): Use an informative note.
34019 2010-02-26 Richard Guenther <rguenther@suse.de>
34021 PR tree-optimization/43186
34022 * gimple.h (gimple_fold): Remove.
34023 * gimple.c (gimple_fold): Remove. Inline into single user ...
34024 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
34025 Try harder for conditions.
34027 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34030 * function.c (used_types_insert): Don't skip through named pointer
34031 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
34032 and it is different from the main variant's type.
34034 2010-02-26 Nick Clifton <nickc@redhat.com>
34036 * config/rx/rx.md (sminsi3): Remove bogus alternative.
34038 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
34040 * config.gcc: Support --with-fpmath=sse for x86.
34042 * config/i386/ssemath.h: New.
34044 * doc/install.texi (--with-fpmath=sse): Documented.
34046 2010-02-26 Richard Guenther <rguenther@suse.de>
34048 PR tree-optimization/43188
34049 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
34050 vector types of over-aligned element type.
34052 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
34055 * config/i386/i386.c (expand_vec_perm_blend): Use correct
34056 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
34058 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
34060 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
34062 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34064 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
34065 * var-tracking.c: Include diagnostic.h.
34066 (debug_dv): New function.
34067 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
34070 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
34071 (add_value_chain, add_value_chains, remove_value_chain,
34072 remove_value_chains): Handle DEBUG_EXPRs.
34073 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
34076 * regcprop.c (struct queued_debug_insn_change): New type.
34077 (struct value_data_entry): Add debug_insn_changes field.
34078 (struct value_data): Add n_debug_insn_changes field.
34079 (debug_insn_changes_pool): New variable.
34080 (free_debug_insn_changes, apply_debug_insn_changes,
34081 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
34082 (kill_value_one_regno): Call free_debug_insn_changes if needed.
34083 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
34085 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
34087 (copyprop_hardreg_forward_1): Don't call apply_change_group for
34088 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
34089 changes, call cprop_find_used_regs via note_stores.
34090 (copyprop_hardreg_forward): When copying vd from predecessor
34091 which has any queued DEBUG_INSN changes, make sure the pointers are
34092 cleared. At the end call df_analyze and then if there are any
34093 DEBUG_INSN changes queued at the end of some basic block for still
34094 live registers, apply them.
34095 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
34097 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
34099 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
34102 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
34104 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
34105 targets. Set the default with_cpu/with_arch from arch/cpu.
34106 Allow x86-64 and native for with_cpu/with_arch.
34108 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
34110 * ebitmap.c: Change calls to verify_popcount with calls to
34111 sbitmap_verify_popcount.
34112 (ebitmap_clear_bit): Fixed map->cacheindex test and
34113 map>cache update when bit clearing results in an empty
34116 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34119 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
34120 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
34121 and support both V2DF and V2DI modes.
34122 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
34123 support both V2DF and V2DI modes.
34124 (general): Delete trailing whitespace from a few patterns.
34126 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34127 V2DF/V2DI interleave high/low builtins.
34129 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
34132 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
34133 interleave high/low functions.
34135 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
34137 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
34138 #pragma extern_prefix.
34140 2010-02-25 Jakub Jelinek <jakub@redhat.com>
34143 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
34144 BLKmode, assert op0 is a MEM and just adjust its mode.
34147 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
34148 if bitpos isn't multiple of mode's bitsize.
34150 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34152 * c.opt (-ftemplate-depth=): New.
34153 (-ftemplate-depth-): Deprecate.
34154 * optc-gen.awk: Handle -ftemplate-depth=.
34155 * opth-gen.awk: Likewise.
34156 * c-opts.c (c_common_handle_option): Likewise.
34157 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
34159 2010-02-24 Jason Merrill <jason@redhat.com>
34161 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
34163 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34165 * cfg.c (alloc_aux_for_block): Remove inline.
34166 (alloc_aux_for_edge): Likewise.
34168 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34170 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
34172 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34174 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
34175 * config/i386/sol2-gas.h: New file.
34176 * config.gcc (i[34567]86-*-solaris2*): Use it.
34178 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34181 * c-typeck.c (ep_convert_and_check): New.
34182 (build_conditional_expr): Use it.
34183 (build_binary_op): Likewise.
34185 2010-02-24 Jakub Jelinek <jakub@redhat.com>
34187 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
34190 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
34191 bounds even for -O+.
34192 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
34193 expr needs to have DECL_NAME set.
34195 2010-02-24 Nick Clifton <nickc@redhat.com>
34197 * config/mep/mep.c: Include gimple.h.
34198 (mep_function_uses_sp): Delete unused function.
34199 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
34200 parameters. Use unsigned integers to count args. Return a
34201 NULL_RTX instead of an error_mark_node. Toidy up formatting.
34203 2010-02-23 Jakub Jelinek <jakub@redhat.com>
34206 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
34207 greater or equal to nelt instead of 2 * nelt.
34208 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
34211 2010-02-23 Jason Merrill <jason@redhat.com>
34214 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
34215 in cfun->local_decls even if they have register types.
34218 * stor-layout.c (place_field): Don't warn about unnecessary
34219 DECL_PACKED if the type is packed.
34221 2010-02-23 Jakub Jelinek <jakub@redhat.com>
34224 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
34225 GOTOFF relocs, even when the base reg isn't pic pointer.
34227 2010-02-23 Michael Matz <matz@suse.de>
34230 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
34231 (expand_gimple_basic_block): Generate and use debug temps if there
34232 are debug uses left after the last real use of TERed ssa names.
34233 Unlink debug immediate uses when they are expanded.
34235 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
34238 * config/i386/i386.c (override_options): Reorganise to provide
34239 better error messages.
34241 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34243 PR middle-end/43083
34244 * graphite-scop-detection.c (create_single_exit_edge): Move
34245 the call to find_single_exit_edge to....
34246 (create_sese_edges): ...here. Don't handle multiple edges
34247 exiting the function.
34248 (build_graphite_scops): Don't handle multiple edges
34249 exiting the function.
34251 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34253 PR middle-end/43097
34254 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
34255 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
34257 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34259 PR middle-end/43026
34260 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
34262 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
34265 * c-typeck.c (convert_arguments): Print declaration location.
34266 * c-common.c (validate_nargs): Rename as
34267 builtin_function_validate_nargs.
34268 (check_builtin_function_arguments): Update.
34270 2010-02-22 Richard Guenther <rguenther@suse.de>
34273 * tree-inline.c (declare_return_variable): Use the type of
34274 the call stmt lhs if available.
34276 2010-02-22 Duncan Sands <baldrick@free.fr>
34278 * passes.c (register_pass): Always consider all pass lists when
34279 ref_pass_instance_number is zero.
34281 2010-02-22 Richard Guenther <rguenther@suse.de>
34283 PR tree-optimization/42749
34284 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
34285 parameter. Do arithmetic in the original type.
34286 (update_accumulator_with_ops): Likewise.
34287 (adjust_accumulator_values): Adjust.
34289 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34291 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
34292 (QI to BLKmode splitter): New splitter.
34294 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
34296 * config/i386/i386.c (initial_ix86_tune_features): Turn on
34297 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
34299 2010-02-22 Richard Guenther <rguenther@suse.de>
34301 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
34303 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
34305 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
34306 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
34307 ($(T)crti.o, $(T)crtn.o): Remove rules.
34309 2010-02-21 Tobias Burnus <burnus@net-b.de>
34312 * doc/invoke.texi (-fassociative-math): Document that this
34313 option is automatically enabled for Fortran.
34315 2010-02-20 David S. Miller <davem@davemloft.net>
34317 * configure.ac: Test if linker and assembler properly support
34318 GOTDATA_OP relocations.
34319 * configure: Rebuild.
34320 * config.in: Likewise.
34321 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
34322 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
34323 (movsi_high_pic): Likewise.
34324 (movdi_lo_sum_pic): Likewise.
34325 (movdi_high_pic): Likewise.
34326 (movsi_pic_gotdata_op): New pattern.
34327 (movdi_pic_gotdata_op): Likewise.
34328 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
34329 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
34331 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
34334 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
34335 attribute to ssemul.
34336 (xop_mulv2div2di3_high): Ditto.
34338 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
34341 * c.opt (Wconversion-null): New option.
34342 * doc/invoke.texi (Wconversion-null): Document.
34344 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
34346 * common.opt (Wlarger-than-): Add Undocumented.
34348 2010-02-19 Mike Stump <mikestump@comcast.net>
34350 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
34352 2010-02-19 Jason Merrill <jason@redhat.com>
34355 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
34356 * configure: Likewise.
34358 2010-02-20 Alan Modra <amodra@gmail.com>
34360 PR middle-end/42344
34361 * cgraph.h (cgraph_make_decl_local): Declare.
34362 * cgraph.c (cgraph_make_decl_local): New function.
34363 (cgraph_make_node_local): Use it.
34364 * cgraphunit.c (cgraph_function_versioning): Likewise.
34365 * ipa.c (function_and_variable_visibility): Likewise.
34367 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34370 * except.c (sjlj_emit_function_enter): Don't call
34371 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
34373 * rtl.h (add_reg_br_prob_note): Remove prototype.
34375 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
34378 * c-common.c (conversion_warning): Remove widening conversions
34379 before checking the conversion of integers to reals.
34381 2010-02-19 Mike Stump <mikestump@comcast.net>
34383 PR middle-end/43125
34384 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
34387 * cgraphunit.c (process_function_and_variable_attributes): Check
34388 DECL_PRESERVE_P instead of looking up attribute "used".
34389 * ipa-pure-const.c (check_decl): Likewise.
34390 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
34391 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
34392 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
34393 instead of attribute "used".
34394 * config/sol2-c.c (solaris_pragma_init): Likewise.
34395 (solaris_pragma_fini): Likewise.
34397 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34399 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
34400 Use XCNEW instead of xcalloc.
34401 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
34402 XNEW instead of xmalloc.
34403 (get_fields): Use XNEWVEC instead of xmalloc.
34406 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
34407 populate vars array.
34408 (create_new_general_access): For debug stmts just reset value.
34409 (get_stmt_accesses): For accesses within debug stmts just record them
34410 using add_access_to_acc_sites instead of preventing the peeling or
34411 counting them as accesses.
34413 PR middle-end/42233
34414 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
34416 2010-02-19 Richard Guenther <rguenther@suse.de>
34418 PR tree-optimization/42916
34419 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
34422 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
34424 * configure.ac: Replace all uses of changequote in macro arguments
34425 with proper quoting.
34427 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34429 PR middle-end/42233
34430 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
34432 2010-02-19 Richard Guenther <rguenther@suse.de>
34434 PR tree-optimization/42944
34435 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
34436 test for aliasing with errno.
34438 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34440 PR middle-end/42233
34441 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
34442 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
34443 * dojump.c: Include output.h.
34444 (inv): New inline function.
34445 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
34446 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
34447 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
34448 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
34449 argument, pass it down to other calls.
34450 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
34451 add REG_BR_PROB note to the conditional jump.
34452 * cfgexpand.c (add_reg_br_prob_note): Removed.
34453 (expand_gimple_cond): Don't call it, add the probability
34454 as last argument to jumpif_1/jumpifnot_1.
34455 * Makefile.in (dojump.o): Depend on output.h.
34456 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
34458 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
34459 * stmt.c (do_jump_if_equal): Likewise.
34460 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
34461 * loop-unswitch.c (compare_and_jump_seq): Likewise.
34462 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
34464 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
34465 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
34466 jumpifnot_1 callers.
34467 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
34469 (store_expr): Adjust jumpifnot caller.
34470 (store_constructor): Adjust jumpif caller.
34472 PR middle-end/42233
34473 * gimplify.c (gimple_boolify): For __builtin_expect call
34474 gimple_boolify also on its first argument.
34476 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
34478 * configure.ac (gnu-unique-object): Wrap regexps using [] in
34480 (__stack_chk_fail): Ditto. Remove quadrigraphs.
34481 * configure: Regenerated.
34483 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34485 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
34486 lang_hooks.types_compatible_p instead of comptypes.
34488 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34490 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
34491 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
34492 if __prefer_thumb__ is defined.
34494 2010-02-18 Martin Jambor <mjambor@suse.cz>
34496 PR tree-optimization/43066
34497 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
34498 array with zero-sized element type.
34500 2010-02-18 Jakub Jelinek <jakub@redhat.com>
34502 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
34503 rtx, allocate struct var_loc_node here and return it to the
34504 caller, and only if it is actually needed.
34505 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
34506 move it earlier and return immediately if it returns NULL.
34508 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
34510 * config/sparc/gas.h: New file. Restore
34511 TARGET_ASM_NAMED_SECTION to its ELF default.
34512 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
34513 check !HAVE_GNU_AS.
34514 * config/sparc/sparc.c (sparc_elf_asm_named_section):
34515 Likewise. Add ATTRIBUTE_UNUSED to prototype.
34516 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
34517 after sparc/sysv4.h.
34519 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
34521 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
34523 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
34525 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
34526 patterns from predicated pattern.
34528 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
34531 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
34532 for insn mnemonic suffix.
34534 2010-02-17 Richard Guenther <rguenther@suse.de>
34536 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
34539 2010-02-17 Jakub Jelinek <jakub@redhat.com>
34542 * caller-save.c (save_call_clobbered_regs): If BB ends with
34543 a DEBUG_INSN, move any notes in between last real insn and the last
34544 DEBUG_INSN after the last DEBUG_INSN.
34546 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
34548 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
34549 Fix return type. Fix argument type. Explain meaning of return value.
34551 2010-02-16 Richard Guenther <rguenther@suse.de>
34553 PR tree-optimization/41043
34554 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
34555 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
34557 (vrp_visit_phi_node): ... but only for loop PHI nodes.
34559 2010-02-16 Ira Rosen <irar@il.ibm.com>
34561 PR tree-optimization/43074
34562 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
34563 * tree-vect-loop.c (vect_analyze_loop_operations): Add
34564 vectorizable cycles in hybrid SLP check.
34565 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
34567 2010-02-16 Richard Guenther <rguenther@suse.de>
34569 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
34570 (true_dependence): If memrefs_conflict_p computes must-alias
34571 trust it. Move TBAA check after offset-based disambiguation.
34572 (canon_true_dependence): Likewise.
34574 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
34576 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
34577 * doc/invoke.texi: Document it.
34578 * var-tracking.c: Include toplev.h and params.h.
34579 (vt_find_locations): Return bool indicating success. Compute
34580 hash sizes unconditionally. Check new parameter, report.
34581 (variable_tracking_main_1): Check vt_find_locations results and
34582 retry. Renamed from...
34583 (variable_tracking_main): ... this. New wrapper to preserve
34584 flag_var_tracking_assignments.
34585 * Makefile.in (var-tracking.o): Adjust dependencies.
34587 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
34588 Jakub Jelinek <jakub@redhat.com>
34591 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
34592 if weak_import attribute is present.
34593 * config/darwin.c (machopic_select_section): Likewise.
34595 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
34597 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
34598 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
34599 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
34600 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
34602 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
34605 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34606 Fix argument types.
34608 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
34609 Rewrite text to refer to the names.
34611 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
34613 * config/i386/i386-builtin-types.def
34614 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
34615 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
34616 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
34617 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
34618 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
34619 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
34620 IX86_BUILTIN_VPERMIL2PS256.
34621 (MULTI_ARG_4_DF2_DI_I): Defined.
34622 (MULTI_ARG_4_DF2_DI_I1): Defined.
34623 (MULTI_ARG_4_SF2_SI_I): Defined.
34624 (MULTI_ARG_4_SF2_SI_I1): Defined.
34625 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
34626 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
34627 __builtin_ia32_vpermil2ps256.
34628 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34629 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34630 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
34631 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34632 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34633 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
34634 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
34635 CODE_FOR_xop_vpermil2v8sf3.
34636 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
34637 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
34638 * config/i386/xopintrin.h (_mm_permute2_pd): New.
34639 (_mm256_permute2_pd): New.
34640 (_mm_permute2_ps): New.
34641 (_mm256_permute2_ps): New.
34643 2010-02-15 Nick Clifton <nickc@redhat.com>
34645 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
34646 boolean parameters. Use emit_jump_insn when emitting a pop
34647 instruction containing a return insn.
34648 (push): Use 'true' rather than '1' as second parameter to F.
34649 (h8300_expand_prologue): Likewise.
34650 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
34651 (h8300_expand_epilogue): Likewise.
34653 2010-02-15 Richard Guenther <rguenther@suse.de>
34655 PR middle-end/43068
34656 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
34659 2010-02-15 Nick Clifton <nickc@redhat.com>
34661 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
34664 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
34666 * intl.c (fake_ngettext): New function.
34667 * intl.h (fake_ngettext): Declare.
34668 (ngettext): Define macro.
34669 * collect2.c (notice_translated): New function.
34670 (main): Use notice_translated and ngettext.
34671 * collect2.h (notice_translated): Declare.
34673 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
34675 * reorg.c (delete_computation): Comment fixes.
34676 * caller-save.c (setup_save_areas): Idem.
34677 * sel-sched-dump.c (dump_lv_set): Idem.
34680 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34682 * config/s390/s390.c (s390_sched_init): New function.
34683 (TARGET_SCHED_INIT): Target hook defined.
34685 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
34686 Jack Howarth <howarth@bromo.med.uc.edu>
34687 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
34690 Partial revert of unintended change in fix for PR41605.
34691 * config/darwin.h: Fix typo.
34692 * config/darwin9.h: Same.
34694 2010-02-11 Jakub Jelinek <jakub@redhat.com>
34696 * c-pch.c (pch_init): Clear v.
34698 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34700 PR middle-end/42930
34701 * graphite-scop-detection.c (graphite_can_represent_scev): Call
34702 graphite_can_represent_init for MULT_EXPR.
34704 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34706 PR middle-end/42914
34707 PR middle-end/42530
34708 * graphite-sese-to-poly.c (remove_phi): New.
34709 (translate_scalar_reduction_to_array): Call remove_phi.
34711 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34713 PR middle-end/42771
34714 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
34715 * graphite-clast-to-gimple.h (gloog): Update declaration.
34716 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
34717 * graphite-poly.h (struct poly_bb): Add missing comments.
34718 (struct scop): Add poly_scop_p field.
34719 (POLY_SCOP_P): New.
34720 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
34721 * graphite.c (graphite_transform_loops): Build the polyhedral
34722 representation for each scop before code generation.
34723 * sese.c (rename_variables_in_operand): Removed.
34724 (rename_variables_in_expr): Return the renamed expression.
34725 (rename_sese_parameters): New.
34726 * sese.h (rename_sese_parameters): Declared.
34728 2010-02-11 Richard Guenther <rguenther@suse.de>
34730 PR tree-optimization/42998
34731 * tree-ssa-pre.c (create_expression_by_pieces): Treat
34732 POINTER_PLUS_EXPR properly.
34734 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34735 Changpeng Fang <changpeng.fang@amd.com>
34737 PR middle-end/40886
34738 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
34739 the cost of an IV candidate when the IV is used in a test against zero.
34741 * gcc.dg/tree-ssa/ivopts-3.c: New.
34743 2010-02-11 Richard Guenther <rguenther@suse.de>
34746 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
34747 pointer-vs-decl case by swapping refs. Handle some cases
34748 of pointer-vs-decl disambiguations more conservatively.
34749 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
34750 to false after expanding.
34752 2010-02-11 Richard Guenther <rguenther@suse.de>
34755 * gcc.c (process_command): Handle LTO file@offset case more
34758 2010-02-11 Jakub Jelinek <jakub@redhat.com>
34760 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
34761 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
34763 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
34765 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
34766 if MEM's mode size isn't DWARF2_ADDR_SIZE.
34767 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
34768 Optimize eq/ne comparisons when both arguments are known to be
34770 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
34771 Don't mask operands unnecessarily if they are known to be already
34774 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
34776 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
34779 2010-02-10 Richard Guenther <rguenther@suse.de>
34781 PR tree-optimization/43017
34782 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
34783 for wrapping signed arithmetic.
34785 2010-02-10 Jakub Jelinek <jakub@redhat.com>
34788 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
34789 if no debug info should be emitted for it.
34791 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
34793 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
34794 note when flag_exceptions is set.
34796 2010-02-10 Duncan Sands <baldrick@free.fr>
34798 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
34800 2010-02-10 Richard Guenther <rguenther@suse.de>
34803 * tree.c (get_unwidened): Handle constants.
34804 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
34806 2010-02-10 Martin Jambor <mjambor@suse.cz>
34809 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
34810 check for variable argument counts independently.
34812 2010-02-10 Christian Bruel <christian.bruel@st.com>
34815 * config/sh/sh.c (find_barrier): Increase length for non delayed
34816 conditional branches.
34818 2010-02-10 Christian Bruel <christian.bruel@st.com>
34820 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
34822 2010-02-10 Jakub Jelinek <jakub@redhat.com>
34824 * builtins.c (set_builtin_user_assembler_name): Also handle
34825 ffs if int is smaller than word.
34827 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
34829 PR middle-end/42973
34830 * ira-conflicts.c (get_dup): Remove.
34831 (process_reg_shuffles): Add new parameter. Use it as an
34832 additional guard for copy generation.
34833 (add_insn_allocno_copies): Rewrite.
34835 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
34837 * common.opt (fsched2-use-traces): Preserved for backward
34839 * doc/invoke.texi: Remove the documentation about option
34840 -fsched2-use-traces.
34841 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
34842 flag_sched2_use_traces.
34843 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
34844 the backward compatibility flag section.
34846 2010-02-09 Richard Guenther <rguenther@suse.de>
34848 PR tree-optimization/43008
34849 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
34850 make HEAP variables initialized from global memory if they
34851 are not known builtin functions.
34852 (find_func_aliases): Adjust.
34854 2010-02-09 Richard Guenther <rguenther@suse.de>
34856 PR tree-optimization/43000
34857 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
34858 arithmetic manually.
34860 2010-02-08 Jakub Jelinek <jakub@redhat.com>
34862 PR tree-optimization/42931
34863 * tree-loop-linear.c (try_interchange_loops): Don't call
34864 double_int_mul if estimated_loop_iterations failed.
34866 2010-02-08 Martin Jambor <mjambor@suse.cz>
34868 PR middle-end/42898
34869 * tree-sra.c (build_accesses_from_assign): Do not mark in
34870 should_scalarize_away_bitmap if stmt has volatile ops.
34871 (sra_modify_assign): Do not process assigns piecemeal if if stmt
34874 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
34876 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
34878 2010-02-07 Adam Nemet <adambnmet@gmail.com>
34880 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
34881 before the pattern.
34883 2010-02-07 Andrew Pinski <pinskia@gmail.com>
34885 PR middle-end/42946
34886 * df-core.c (df_finish_pass): Change type of saved_flags to int.
34888 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
34890 PR middle-end/42988
34891 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
34892 to unknown_dependence.
34893 (graphite_legal_transform_dr): Handle the unknown_dependence.
34894 (graphite_carried_dependence_level_k): Same.
34896 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
34898 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
34900 2010-02-07 Richard Guenther <rguenther@suse.de>
34902 PR middle-end/42991
34903 * expr.c (get_inner_reference): Always initialize *pbitsize.
34905 2010-02-07 Richard Guenther <rguenther@suse.de>
34907 PR middle-end/42956
34908 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
34909 new ARRAY_REFs on variable size element or minimal index arrays.
34911 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
34912 gimple_fold_indirect_ref.
34914 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
34917 * arm.c (arm_override_options): Just return if the user has specified
34918 an invalid fpu name.
34920 2010-02-03 Jason Merrill <jason@redhat.com>
34923 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
34924 i386_pe_maybe_record_exported_symbol.
34926 2010-02-05 Steve Ellcey <sje@cup.hp.com>
34929 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34930 (pa_delegitimize_address): New function.
34932 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
34934 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
34935 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
34937 2010-02-05 Richard Guenther <rguenther@suse.de>
34940 * lto-streamer-in.c (get_resolution): Deal with references
34941 to undefined functions.
34943 2010-02-05 Richard Guenther <rguenther@suse.de>
34945 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
34946 (fold_const_aggregate_ref): Likewise.
34947 (ccp_fold_stmt): Substitute loads.
34948 (maybe_fold_reference): Verify types before substituting.
34950 (fold_gimple_assign): Unshare properly.
34951 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
34953 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
34955 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
34956 for rs6000_gen_cell_microcode.
34958 2010-02-04 Richard Guenther <rguenther@suse.de>
34960 PR rtl-optimization/42952
34961 * dse.c (const_or_frame_p): Remove MEM handling.
34963 2010-02-04 Nick Clifton <nickc@redhat.com>
34965 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
34966 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34967 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
34968 (mn10300_asm_output_mi_thunk): New function.
34969 (mn10300_can_output_mu_thunk): New function.
34970 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
34971 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
34972 (FUNCTION_ARG): Delete incorrect comment.
34974 2010-02-03 Jason Merrill <jason@redhat.com>
34977 * fold-const.c (operand_equal_p): Handle erroneous types.
34979 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
34981 * config/h8300/h8300.md (can_delay): Fix attibute condition.
34983 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
34985 PR rtl-optimization/42941
34986 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
34989 2010-02-03 Jason Merrill <jason@redhat.com>
34992 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
34994 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
34997 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
34998 (cselib_reset_table): Renamed from...
34999 (cselib_reset_table_with_next_value): ... this.
35000 (cselib_get_next_uid): Renamed from...
35001 (cselib_get_next_unknown_value): ... this.
35002 * cselib.c (next_uid): Renamed from...
35003 (next_unknown_value): ... this.
35004 (cselib_clear_table): Adjust.
35005 (cselib_reset_table): Adjust. Renamed from...
35006 (cselib_reset_table_with_next_value): ... this.
35007 (cselib_get_next_uid): Adjust. Renamed from...
35008 (cselib_get_next_unknown_value): ... this.
35009 (get_value_hash): Use hash.
35010 (cselib_hash_rtx): Likewise.
35011 (new_cselib_val): Adjust. Set and dump uid.
35012 (cselib_lookup_mem): Pass next_uid as hash.
35013 (cselib_subst_to_values): Likewise.
35014 (cselib_log_lookup): Dump uid.
35015 (cselib_lookup): Pass next_uid as hash. Adjust.
35016 (cselib_process_insn): Adjust.
35017 (cselib_init): Initialize next_uid.
35018 (cselib_finish): Adjust.
35019 (dump_cselib_table): Likewise.
35020 * dse.c (canon_address): Dump value uid.
35021 * print-rtl.c (print_rtx): Print value uid.
35022 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
35024 (dv_uid): New function, sort of renamed from...
35025 (dv_htab_hash): ... this, reimplemented in terms of it and...
35026 (dv_uid2hash): ... this. New.
35027 (variable_htab_eq): Drop excess assertions.
35028 (tie_break_pointers): Removed.
35029 (canon_value_cmp): Compare uids.
35030 (variable_post_merge_New_vals): Print uids.
35031 (vt_add_function_parameters): Adjust.
35032 (vt_initialize): Reset table. Adjust.
35034 2010-02-03 Richard Guenther <rguenther@suse.de>
35036 PR tree-optimization/42944
35037 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
35038 (call_may_clobber_ref_p_1): Likewise. Properly handle
35039 malloc and calloc clobbering errno.
35041 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
35043 * doc/invoke.texi: Fix name of sched1 dump.
35045 * opts.c (decode_options): Set flag_tree_switch_conversion
35046 only conditionally on optimize >= 2.
35048 * gcse.c: Assorted comment fixes in pass description.
35050 2010-02-03 Anthony Green <green@moxielogic.com>
35052 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
35053 nop padding in order to maintain alignment of storage location of
35054 target function address.
35055 (moxie_trampoline_init): Store target function address at newly
35057 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
35059 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
35061 2010-02-03 Richard Guenther <rguenther@suse.de>
35063 PR middle-end/42927
35064 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
35066 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35068 * config.gcc: Reenable check for obsolete targets.
35069 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
35070 mips-sgi-irix6.[0-4]*.
35072 2010-02-02 Nick Clifton <nickc@redhat.com>
35074 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
35075 constant size of 4 as being the same as 0.
35076 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
35077 can take values in the range 0..4.
35079 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
35082 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
35083 as _darwin10_Unwind_FindEnclosingFunction().
35084 * libgcc-libsystem.ver: New.
35086 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
35089 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
35090 implicitly set registers.
35092 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
35094 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
35095 (arm_override_options): Allow automatic selection of the thread
35096 pointer register if thumb2.
35097 (legitimize_pic_address): Improve code sequences for Thumb2.
35098 (arm_call_tls_get_addr): Likewise.
35099 (legitimize_tls_address): Likewise.
35100 * arm.md (pic_load_addr_arm): Delete. Replace with ...
35101 (pic_load_addr_32bit): ... this. New named pattern.
35102 * thumb2.md (pic_load_addr_thumb2): Delete.
35103 (pic_load_dot_plus_four): Delete.
35104 (tls_load_dot_plus_four): New named pattern.
35106 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35109 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
35110 Document fix for TLS bug.
35112 2010-01-31 Richard Guenther <rguenther@suse.de>
35114 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
35115 conservatively correct.
35117 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35121 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35123 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35125 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35127 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
35129 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
35131 * config.gcc: Adjust order of makefile fragments for mingw targets.
35133 2010-01-31 Richard Guenther <rguenther@suse.de>
35135 PR middle-end/42898
35136 * gimplify.c (gimplify_init_constructor): For volatile LHS
35137 initialize a temporary.
35139 2010-01-31 Matthias Klose <doko@ubuntu.com>
35141 * configure.ac: Fix __stack_chk_fail check for cross builds configured
35143 * configure: Regenerate.
35145 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
35147 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35148 the same alias set and their sizes different constantness.
35149 (aliasing_component_refs_p): Revert 2009-10-24 change.
35151 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35153 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
35156 2010-01-29 Richard Guenther <rguenther@suse.de>
35158 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
35159 Assert we successfully updated the call.
35161 2010-01-29 Jakub Jelinek <jakub@redhat.com>
35163 PR rtl-optimization/42889
35164 * df.h (df_set_bb_dirty_nonlr): New prototype.
35165 * df-core.c (df_set_bb_dirty_nonlr): New function.
35166 * df-scan.c (df_insn_rescan): Call it instead of
35167 df_set_bb_dirty for DEBUG_INSNs.
35169 2010-01-29 Richard Guenther <rguenther@suse.de>
35171 PR middle-end/37448
35172 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
35173 quadratic behavior in most cases.
35175 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
35178 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
35179 in the call to gen_x86_movsicc_0_m1.
35181 2010-01-28 Richard Guenther <rguenther@suse.de>
35183 PR tree-optimization/42871
35184 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
35186 2010-01-28 Richard Guenther <rguenther@suse.de>
35188 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
35189 into call arguments.
35191 2010-01-28 Richard Guenther <rguenther@suse.de>
35193 PR middle-end/42883
35194 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
35195 the forwarder if the destination is an EH landing pad.
35197 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
35199 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
35200 block list passed to gimple_duplicate_sese_tail.
35201 (parallelize_loops): Avoid parallelization when the function
35202 has_nonlocal_label.
35203 Avoid parallelization when the preheader is IRREDUCIBLE.
35204 Try to optimize when estimated_loop_iterations_int is unresolved.
35205 Add the loop's location to the dump file.
35206 * tree-cfg.c (add_phi_args_after_redirect): Remove.
35207 (gimple_duplicate_sese_tail): Remove the check for the latch.
35208 Redirect nexits to the exit block.
35209 Remove handling of the incoming edges to the latch.
35210 Redirect the backedge from the copied latch to the exit bb.
35212 2010-01-28 Michael Matz <matz@suse.de>
35215 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
35216 Wrap force_reg into a sequence, emit it before user.
35218 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
35220 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
35222 (arm_legacy_rev): Likewise.
35223 (thumb_legacy_rev): Likewise.
35225 2010-01-27 Jakub Jelinek <jakub@redhat.com>
35227 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
35228 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
35229 on MEM's address failed, try avoid_constant_pool_reference and
35230 recurse if it returned something different.
35231 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
35232 address, try avoid_constant_pool_reference and recurse if it
35233 returned something different.
35234 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
35235 address and avoid_constant_pool_reference returned something
35236 different, don't set have_address.
35238 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
35241 * var-tracking.c (val_store): Add modified argument, obey it.
35243 (count_uses): Move down logging of main.
35244 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
35245 don't need resolution.
35246 (emit_notes_in_bb): Likewise.
35248 2010-01-27 Richard Guenther <rguenther@suse.de>
35250 PR middle-end/42878
35251 * tree-inline.c (remap_decl): Delay remapping of SSA name
35252 default definitions until we need them.
35254 2010-01-27 Jakub Jelinek <jakub@redhat.com>
35256 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35257 (rs6000_delegitimize_address): New function.
35259 * config/s390/s390.c (s390_delegitimize_address): Call
35260 delegitimize_mem_from_attrs.
35262 PR middle-end/42874
35263 * tree-inline.c (cannot_copy_type_1): Removed.
35264 (copy_forbidden): Don't forbid copying of functions containing
35265 records/unions with variable length fields.
35267 2010-01-27 Christian Bruel <christian.bruel@st.com>
35271 * config/sh/sh.c (find_barrier): Increase length for non delayed
35272 conditional branches.
35274 2010-01-27 Matthias Klose <doko@ubuntu.com>
35276 * configure.ac (gnu-unique-object): Fix ldd version check.
35277 * configure: Regenerate.
35279 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35281 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
35283 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
35284 Test for HAVE_GNU_AS value.
35286 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35288 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
35289 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
35290 INT64_TYPE): Define.
35291 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
35292 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
35293 INT_LEAST64_TYPE): Define.
35294 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
35295 UINT_LEAST64_TYPE): Define.
35296 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
35297 INT_FAST64_TYPE): Define.
35298 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
35299 UINT_FAST64_TYPE): Define.
35300 (INTMAX_TYPE, UINTMAX_TYPE): Define.
35301 (INTPTR_TYPE, UINTPTR_TYPE): Define.
35302 (SIG_ATOMIC_TYPE): Define.
35304 2010-01-26 Richard Guenther <rguenther@suse.de>
35306 * df-scan.c (df_scan_set_bb_info): Remove assert.
35307 (df_insn_rescan_debug_internal): Merge asserts.
35308 (df_install_ref): Likewise.
35309 (df_mark_reg): Use bitmap_set_range.
35310 (df_hard_reg_used_p): Remove assert.
35311 (df_hard_reg_used_count): Likewise.
35313 2010-01-26 Richard Guenther <rguenther@suse.de>
35315 PR rtl-optimization/42685
35316 * web.c (web_main): Ignore DEBUG_INSNs.
35318 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
35320 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
35322 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
35323 Fix types of fndecl and arglist parameters.
35325 2010-01-26 Richard Guenther <rguenther@suse.de>
35327 PR middle-end/42806
35328 * tree-eh.c (unsplit_eh): Skip debug insns.
35330 2010-01-26 Richard Guenther <rguenther@suse.de>
35332 PR tree-optimization/42250
35333 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
35335 2010-01-26 Jakub Jelinek <jakub@redhat.com>
35338 * omp-low.c (expand_omp_sections): Only use single_pred if
35339 l2_bb is single_pred_p.
35341 2010-01-25 Christian Bruel <christian.bruel@st.com>
35344 * config/sh/sh.c (find_barrier): Increase length for non delayed
35345 conditional branches.
35346 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
35348 2010-01-24 David S. Miller <davem@davemloft.net>
35350 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
35351 define if not using GAS.
35352 * config/sparc/sparc.c (sparc_elf_asm_named_section):
35353 Likewise. Delete SECTION_MERGE code, which is only applicable
35356 2010-01-24 Mark Mitchell <mark@codesourcery.com>
35359 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
35360 mangling of va_list in system headers.
35362 2010-01-23 Toon Moene <toon@moene.org>
35364 * tree-predcom.c (combine_chains): Return NULL, not false.
35366 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
35368 * tree-loop-distribution.c (distribute_loop): Fix declaration and
35369 initialization of variable res to agree with return type.
35371 2010-01-22 Steve Ellcey <sje@cup.hp.com>
35373 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
35374 * tree-sra.c: Add include of expr.h.
35376 2010-01-22 Jakub Jelinek <jakub@redhat.com>
35378 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
35379 insert the debug stmt on the single non-EH edge from the stmt.
35381 2010-01-22 Richard Henderson <rth@redhat.com>
35384 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
35385 the RHS until after generate_subtree_copies has insertted its
35386 code before the current statement.
35388 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
35390 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
35392 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
35394 2010-01-21 Martin Jambor <mjambor@suse.cz>
35396 PR tree-optimization/42585
35397 * tree-sra.c (struct access): New field grp_total_scalarization.
35398 (dump_access): Dump the new field.
35399 (should_scalarize_away_bitmap): New variable.
35400 (cannot_scalarize_away_bitmap): Likewise.
35401 (sra_initialize): Allocate new bitmaps.
35402 (sra_deinitialize): Free new bitmaps.
35403 (create_access_1): New function.
35404 (create_access): Parts moved to create_access_1.
35405 (type_consists_of_records_p): New function.
35406 (completely_scalarize_record): Likewise.
35407 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
35408 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
35409 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
35411 (analyze_all_variable_accesses): Completely scalarize small eligible
35414 2010-01-21 Martin Jambor <mjambor@suse.cz>
35416 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
35418 2010-01-21 Andrew Haley <aph@redhat.com>
35420 * gcc.c (process_command): Move lang_specific_driver before
35421 setting cc_libexec_prefix.
35423 2010-01-21 Richard Guenther <rguenther@suse.de>
35425 PR middle-end/19988
35426 * fold-const.c (negate_expr_p): Pretend only negative
35427 real constants are easily negatable.
35429 2010-01-20 Janis Johnson <janis187@us.ibm.com>
35430 Jason Merrill <jason@redhat.com>
35432 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
35433 (TYPE_TRANSPARENT_AGGR): this, for union and record.
35434 * calls.c (initialize argument_information): Handle it.
35435 * c-common.c (handle_transparent_union_attribute): Use new name.
35436 * c-decl.c (finish_struct): Ditto.
35437 * c-typeck.c (type_lists_compatible_p): Ditto.
35438 (convert_for_assignment): Use new name and also handle record.
35439 * function.c (aggregate_value_p): Handle it.
35440 (pass_by_reference): Ditto.
35441 (assign_parm_data_types): Ditto.
35442 * print-tree.c (print_node): Ditto.
35443 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
35444 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
35445 * tree.c (first_field): New fn.
35447 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
35450 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
35451 even when linking statically, for now.
35453 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
35456 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
35457 without a cselib val.
35458 (count_uses): Accept MO_VAL_SET with no val on stores.
35459 (add_stores): Likewise.
35461 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35463 * var-tracking.c (check_value_val): Add a compile time assertion.
35464 (dv_is_decl_p): Simplify.
35465 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
35466 gcc_assert if ENABLE_CHECKING.
35468 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
35471 * var-tracking.c: Include tree-flow.h.
35472 (mem_dies_at_call): New.
35473 (dataflow_set_preserve_mem_locs): Use it.
35474 (dataflow_set_remove_mem_locs): Likewise.
35475 (dump_var): Renamed from dump_variable. Adjust all callers.
35476 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
35477 * Makefile.in (var-tracking.o): Adjust deps.
35479 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
35481 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
35483 2010-01-20 Richard Guenther <rguenther@suse.de>
35485 PR tree-optimization/42717
35486 * tree-ssa-dce.c (get_live_post_dom): Remove.
35487 (forward_edge_to_pdom): Take an arbitrary edge to copy
35488 degenerate PHI args from.
35489 (remove_dead_stmt): Use the first post-dominator even if it
35490 does not contain live statements as redirection destination.
35492 2010-01-20 Richard Guenther <rguenther@suse.de>
35494 * tree-inline.c (estimate_num_insns): Handle EH builtins.
35496 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35498 * sel-sched.c (create_speculation_check): Remove set but not used
35500 (try_transformation_cache): Remove set but not used variable ds.
35501 (calculate_privileged_insns): Remove set but not used variables
35502 cur_insn and min_spec_insn.
35503 (find_best_expr): Remove set but not used variable avail_n.
35504 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
35506 * cgraphunit.c (assemble_thunk): Remove set but not used variable
35508 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
35509 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
35510 new_scop_exit_edge.
35512 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
35515 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
35516 cpu types. Add support for *-sse3 cpu types.
35517 (x86_64-*-*): Ditto.
35519 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35521 PR middle-end/42803
35522 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
35523 argument, call initializer_constant_valid_p_1 instead of
35524 initializer_constant_valid_p, pass CACHE to it, return NULL
35525 immediately if first call returns NULL.
35526 (initializer_constant_valid_p_1): New function.
35527 (initializer_constant_valid_p): Use it.
35529 2010-01-20 Thomas Quinot <quinot@adacore.com>
35531 * tree.def (PLACEHOLDER_EXPR): Fix comment.
35533 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35535 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
35536 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
35537 (loc_list_from_tree): Don't handle unsigned division. Handle
35538 signed modulo using DW_OP_{over,over,div,mul,minus}.
35539 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
35540 modulo instead of signed.
35542 2010-01-20 DJ Delorie <dj@redhat.com>
35544 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
35546 (h8300_emit_stack_adjustment): Propogate it.
35548 (h8300_expand_prologue): Likewise.
35549 (h8300_expand_epilogue): Likewise.
35551 2010-01-19 Michael Matz <matz@suse.de>
35553 PR tree-optimization/41783
35554 * tree-data-ref.c (toplevel): Include flags.h.
35555 (dump_data_dependence_relation): Also dump the inputs if the
35556 result will be unknown.
35557 (split_constant_offset_1): Look through some conversions.
35558 * tree-predcom.c (determine_roots_comp): Restart a new chain if
35559 the offset from last element is too large.
35560 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
35561 (reassociate_to_the_same_stmt): Handle vector registers.
35562 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
35563 (e.g. conversions).
35564 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
35565 wide_prolog_niters argument, emit widening instructions.
35566 (vect_do_peeling_for_alignment): Adjust caller, use widened
35567 variant of the iteration cound.
35568 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
35570 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35573 * config/arm/neon-testgen.m (emit_automatics): New parameter
35574 features. Adjust for Fixed_return_reg feature.
35575 (test_intrinsic): Call emit_automatics with new feature.
35576 * config/arm/neon.ml: Update copyright years.
35577 (features): New Fixed_return_reg feature.
35578 (ops): Update feature for Vget_low.
35580 2010-01-19 Jakub Jelinek <jakub@redhat.com>
35582 PR tree-optimization/42719
35583 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
35587 * fwprop.c (all_uses_available_at): Return false if def_set dest
35588 is a REG that is used in def_insn.
35590 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
35592 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
35594 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
35595 Add argument names.
35597 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
35599 * target.h (struct gcc_target) <secondary_reload>: Change type
35600 of last argument to secondary_reload_info *.
35602 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
35605 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
35606 memory references with unaligned offsets. Remove CQImode handling.
35607 (unaligned_memory_operand): Return 1 for memory references with
35608 unaligned offsets. Remove CQImode handling.
35610 2010-01-18 Richard Guenther <rguenther@suse.de>
35612 PR middle-end/39954
35613 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
35616 2010-01-18 Richard Guenther <rguenther@suse.de>
35618 PR tree-optimization/42781
35619 * tree-ssa-structalias.c (find_what_var_points_to): Skip
35620 restrict processing only if the original variable was artificial.
35622 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
35624 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
35625 find number of popped argument bytes.
35627 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
35628 Fix the text that describes the return value for invalid insns.
35630 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
35632 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
35633 Clarify what 'cost of the -dependence' is. Fix quoting.
35635 * toplev.c (default_get_pch_validity): Rename argument to "sz".
35636 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
35638 2010-01-17 Jakub Jelinek <jakub@redhat.com>
35640 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35641 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
35643 2010-01-17 Richard Guenther <rguenther@suse.de>
35645 PR middle-end/42248
35646 * function.c (split_complex_args): Take a VEC to modify.
35647 (assign_parms_augmented_arg_list): Build a VEC instead of
35648 a chain of PARM_DECLs.
35649 (assign_parms_unsplit_complex): Take a VEC of arguments.
35650 Do not fixup unmodified parms.
35651 (assign_parms): Deal with the VEC.
35652 (gimplify_parameters): Likewise.
35654 2010-01-17 Richard Guenther <rguenther@suse.de>
35656 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
35657 node existence check.
35658 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
35659 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
35660 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
35661 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
35662 (gimple_execute_on_growing_pred): Likewise.
35664 2010-01-17 Richard Guenther <rguenther@suse.de>
35666 PR tree-optimization/42773
35667 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
35668 (compute_antic_aux): Likewise.
35669 (compute_partial_antic_aux): Likewise.
35671 2010-01-17 Jie Zhang <jie.zhang@analog.com>
35674 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
35677 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
35679 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
35682 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
35683 Fix markup for strict argument.
35685 (TARGET_SCHED_REORDER2): Fix argument types.
35687 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
35688 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
35690 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
35691 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
35693 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
35696 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
35697 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
35698 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
35699 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
35700 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
35702 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
35704 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
35706 (TARGET_ASM_RELOC_RW_MASK): Add return type.
35707 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
35709 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
35711 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
35714 (TARGET_ASM_NAMED_SECTION): Fix argument list.
35716 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
35717 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
35719 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
35721 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
35723 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
35724 referring to it. Fix language.
35726 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
35728 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
35730 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
35732 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
35734 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
35735 '@var{stream}. Remove stray 'and'.
35737 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
35739 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
35741 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
35743 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
35744 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
35746 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
35747 Fix description of return value.
35748 Rename argument "sz" to "len."
35750 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
35751 Clarify meaning of 'true' return value.
35753 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
35755 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
35756 rep_mode versus mode_rep.
35758 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
35760 (TARGET_BUILTIN_DECL): Fix name.
35762 (TARGET_COMMUTATIVE_P): Fix type of first argument.
35764 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
35766 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
35768 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
35770 (TARGET_RELAXED_ORDERING): Use @deftypevr.
35772 (TARGET_GET_DRAP_RTX): Note that this is a hook.
35775 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
35776 Rename argument tm_fn to md_fn.
35778 (TARGET_OPTION_PRINT): Fix argument list.
35780 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
35783 * config/i386/i386.c (ix86_fixup_binary_operands):
35784 Revert FMA4 fixup of operands.
35786 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35789 * Makefile.in (write_entries_to_file, install-plugin):
35790 Use \012 instead of \n with tr.
35792 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
35794 * configure.ac (HAVE_AS_REF): New C macro.
35795 * configure: Regenerate.
35796 * config.in: Likewise.
35797 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
35799 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
35802 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
35804 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
35806 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
35808 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
35810 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
35812 (TARGET_IN_SMALL_DATA_P): Fix argument type.
35814 (TARGET_BINDS_LOCAL_P): Fix argument type.
35816 (TARGET_ASM_FILE_END): Use prototype.
35818 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
35820 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
35822 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
35824 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
35826 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
35827 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
35829 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
35830 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
35832 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
35833 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
35834 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
35835 (TARGET_ADDR_SPACE_CONVERT): Likewise.
35837 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
35839 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
35841 (TARGET_INIT_BUILTINS): Use prototype.
35843 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
35844 Put 'const char *' in braces. Fix parameter types.
35845 (TARGET_INVALID_CONVERSION): Fix parameter types.
35846 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
35847 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
35849 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
35852 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
35854 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
35856 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
35858 * doc/tm.texi (TARGET_HELP): Fix return type.
35860 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
35861 in braces. Fix argument types.
35863 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
35865 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
35867 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
35869 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
35870 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
35872 (TARGET_MANGLE_TYPE): Fix argument types.
35874 (TARGET_IRA_COVER_CLASSES): Use prototype.
35876 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
35878 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
35880 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
35882 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
35884 (TARGET_CALLEE_COPIES): Fix argument types.
35886 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
35888 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
35890 (TARGET_FUNCTION_VALUE): Fix argument types.
35892 (TARGET_RETURN_IN_MSB): Fix argument type.
35894 (TARGET_RETURN_IN_MEMORY): Fix argument types.
35896 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
35898 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
35900 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
35901 agree with return type.
35903 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
35905 2010-01-15 Jing Yu <jingyu@google.com>
35907 PR rtl-optimization/42691
35908 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
35909 a pseudo to a constant and are merged, and adjust comments.
35911 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
35913 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
35915 2010-01-15 Richard Guenther <rguenther@suse.de>
35917 PR middle-end/42739
35918 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
35919 labels of computed or non-local gotos to the destination.
35920 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
35921 landing pad label is the first label.
35923 2010-01-15 Richard Guenther <rguenther@suse.de>
35925 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
35927 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
35930 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
35931 to allow generation of the xssqrtdp instruction on power7.
35932 (sqrtdf2_fpr): Ditto.
35934 2010-01-14 Jakub Jelinek <jakub@redhat.com>
35936 PR middle-end/42674
35937 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
35938 functions with noreturn attribute.
35941 * varasm.c (declare_weak): Add weak attribute to decl if it
35942 doesn't have one already.
35943 (assemble_external): Only add decls to weak_decls if they also
35944 have weak attribute.
35946 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
35948 * var-tracking.c (var_reg_delete): Don't delete the association
35949 between REGs and values or one-part variables if the register
35952 2010-01-14 Jakub Jelinek <jakub@redhat.com>
35955 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
35956 because its first operand is a non-localized variable.
35958 2010-01-14 Martin Jambor <mjambor@suse.cz>
35960 PR tree-optimization/42706
35961 * tree-sra.c (encountered_recursive_call): New variable.
35962 (encountered_unchangable_recursive_call): Likewise.
35963 (sra_initialize): Initialize both new variables.
35964 (callsite_has_enough_arguments_p): New function.
35965 (scan_function): Call decl and flags check only for IPA-SRA, check
35966 whether there is a recursive call and whether it has enough arguments.
35967 (all_callers_have_enough_arguments_p): New function.
35968 (convert_callers): Look for recursive calls only when
35969 encountered_recursive_call is set.
35970 (ipa_early_sra): Bail out either if
35971 !all_callers_have_enough_arguments_p or
35972 encountered_unchangable_recursive_call.
35974 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35976 * sel-sched.c: Add 2010 to copyright years.
35977 * sel-sched-ir.c: Likewise.
35978 * sel-sched-ir.h: Likewise.
35980 2010-01-14 Martin Jambor <mjambor@suse.cz>
35982 PR tree-optimization/42714
35983 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
35984 constructors specially.
35986 2010-01-14 Andi Kleen <ak@linux.intel.com>
35988 * config/i386/drivers-i386.c (detect_caches_intel):
35989 Add l2sizekb parameter and fill in.
35990 (host_detect_local_cpu): Add l2sizekb, fill in.
35991 Add Atom small cache heuristic.
35993 2010-01-14 Andi Kleen <ak@linux.intel.com>
35995 * config/i386/drivers-i386.c (detect_caches_cpuid4):
35996 Add level3 parameter and fill in.
35997 (detect_caches_intel): Handle level3 cache.
35999 2010-01-14 Andi Kleen <ak@linux.intel.com>
36001 * config/i386/drivers-i386.c (host_detect_local_cpu):
36002 Fix core duo detection.
36004 2010-01-14 Andi Kleen <ak@linux.intel.com>
36006 * config/i386/drivers-i386.c (host_detect_local_cpu):
36007 Fix Atom detection.
36009 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36011 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
36012 (rs6000_variable_issue_1): this. Use...
36013 (rs6000_variable_issue): here. Reimplement. Print debug info.
36015 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36017 * sel-sched-ir.c (sel_restore_other_notes): Rename to
36018 sel_restore_notes. Update all callers. Call reemit_notes
36021 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36023 PR rtl-optimization/42246
36024 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
36027 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36029 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
36030 all successors is the same as number of successors in current region.
36032 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36034 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
36035 to rename is not separable. Otherwise check that its LHS is not NULL.
36037 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36039 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
36041 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36043 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
36044 available registers when failed to discover LHS register class.
36045 Fix indentation. Update comment.
36047 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36048 Alexander Monakov <amonakov@ispras.ru>
36050 PR rtl-optimization/42389
36051 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
36053 (advance_state_on_fence): Likewise.
36054 (sel_target_adjust_priority): Print debug output only when
36055 sched_verbose >= 4, not 2.
36056 (get_expr_cost): Do not issue all unique insns on the next cycle.
36057 (fill_insns): Initialize can_issue_more from the value saved
36059 * sel-sched-ir.c (flist_add): New parameter issue_more.
36060 Init FENCE_ISSUE_MORE with it.
36061 (merge_fences): Likewise.
36062 (init_fences): Update call to flist_add.
36063 (add_to_fences, add_clean_fence_to_fences)
36064 (add_dirty_fence_to_fences): Likewise.
36065 (move_fence_to_fences): Update call to merge_fences.
36066 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
36068 * sel-sched-ir.h (struct _fence): New field issue_more.
36069 (FENCE_ISSUE_MORE): New accessor macro.
36071 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36073 PR rtl-optimization/42388
36074 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
36075 that have no predecessors nor successors. Do not call move_bb_info
36076 for empty blocks outside of current region.
36078 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36080 PR rtl-optimization/42294
36081 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
36082 * sel-sched.c (move_exprs_to_boundary): Transitively add all
36083 originators' originators.
36085 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36087 PR rtl-optimization/39453
36088 PR rtl-optimization/42246
36089 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
36091 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
36093 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36094 Alexander Monakov <amonakov@ispras.ru>
36096 PR middle-end/42245
36097 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
36098 (maybe_tidy_empty_bb): ... here. Make static. Add new
36099 argument. Update all callers.
36100 (tidy_control_flow): ... and here. Recompute topological order
36101 of basic blocks in region if necessary.
36102 (sel_redirect_edge_and_branch): Change return type. Return true
36103 if topological order might have been invalidated.
36104 (purge_empty_blocks): Export and move from...
36105 * sel-sched.c (purge_empty_blocks): ... here.
36106 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
36107 (maybe_tidy_empty_bb): Delete prototype.
36108 (purge_empty_blocks): Declare.
36110 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36112 PR rtl-optimization/42249
36113 * sel-sched.c (try_replace_dest_reg): When chosen register
36114 and original register is the same, do not bail out early, but
36115 still check all original insns for validity of replacing destination
36116 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
36119 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36122 Port from no-undefined-overflow branch:
36123 2009-03-09 Richard Guenther <rguenther@suse.de>
36125 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
36127 2010-01-14 Richard Guenther <rguenther@suse.de>
36130 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
36132 2010-01-14 Ira Rosen <irar@il.ibm.com>
36134 PR tree-optimization/42709
36135 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
36136 as scalar type in creation of constant vector operand.
36138 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36141 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
36142 (check-parallel-%): Match `testsuite' directory component only
36145 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
36147 PR translation/39521
36148 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
36151 2010-01-13 Richard Guenther <rguenther@suse.de>
36153 PR tree-optimization/42730
36154 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
36157 2010-01-13 Steve Ellcey <sje@cup.hp.com>
36160 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
36161 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
36164 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
36166 * config/bfin/libgcc-bfin.ver: Regenerate based on current
36167 libgcc-std.ver. Add entries for ___smulsi3_highpart and
36168 ___umulsi3_highpart.
36170 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
36171 rather than schedule_insns if the pass is enabled.
36173 2010-01-13 Martin Jambor <mjambor@suse.cz>
36175 PR tree-optimization/42704
36176 * tree-sra.c (sra_modify_assign): Do not delete assignments to
36179 2010-01-13 Martin Jambor <mjambor@suse.cz>
36181 PR tree-optimization/42703
36182 * tree-sra.c (analyze_access_subtree): Check that we can build a
36183 reference to the original data within the aggregate.
36185 2010-01-13 Richard Guenther <rguenther@suse.de>
36187 PR tree-optimization/42705
36188 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
36190 2010-01-13 Richard Guenther <rguenther@suse.de>
36192 PR middle-end/42716
36193 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
36195 2010-01-13 Jakub Jelinek <jakub@redhat.com>
36198 * var-tracking.c (values_to_unmark): New variable.
36199 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36200 values_to_unmark vector. Moved body to...
36201 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
36202 instead queue it into values_to_unmark vector.
36203 (vt_find_locations): Free values_to_unmark vector.
36205 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
36207 * config/s390/s390.c (override_options): Set
36208 default of max-pending-list-length to 256
36210 2010-01-13 Richard Guenther <rguenther@suse.de>
36213 * tree-pass.h (PROP_gimple_lcx): New.
36214 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
36215 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
36216 before the final cleanup_eh.
36217 (dump_properties): Dump PROP_gimple_lcx.
36218 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
36219 (tree_lower_complex_O0): Remove.
36220 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
36221 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
36222 tree_lower_complex, schedule TODO_update_ssa.
36223 * lto-streamer-out.c (output_function): Stream the functions
36225 * lto-streamer-in.c (input_function): Likewise.
36226 (lto_read_body): Do not override them here.
36228 2010-01-12 Joseph Myers <joseph@codesourcery.com>
36231 * c-typeck.c (build_c_cast): Fold value cast to union type before
36232 wrapping it in a CONSTRUCTOR.
36234 2010-01-12 Jakub Jelinek <jakub@redhat.com>
36236 PR rtl-optimization/42699
36237 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
36240 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36242 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36243 SUBTARGET_WARN_UNUSED_SPEC): Move ...
36244 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36245 SUBTARGET_WARN_UNUSED_SPEC): ... here
36246 * config/mips/iris5.h (LIBGCC_SPEC): Define.
36248 2010-01-12 Julian Brown <julian@codesourcery.com>
36250 * config/arm/neon-schedgen.ml (Utils): Don't try to
36251 open missing module.
36252 (find_with_result): New.
36254 2010-01-12 Jakub Jelinek <jakub@redhat.com>
36257 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
36258 sharing when canonicalizing ({lt,ge}u (plus a b) b).
36260 PR tree-optimization/42645
36261 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
36262 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
36263 decl_map, set processing_debug_stmt to -1 and return name without
36266 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
36268 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
36269 binutils version, and reword target configuration description.
36271 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
36273 * config/avr/avr.h (LINKER_NAME): Remove.
36275 2010-01-11 Janis Johnson <janis187@us.ibm.com>
36278 * config/rs6000/rs6000.c (rs6000_override_options): On targets
36279 that support VSX, warn for -mno-altivec if vsx is not disabled,
36282 2010-01-11 Joseph Myers <joseph@codesourcery.com>
36283 Shujing Zhao <pearly.zhao@oracle.com>
36285 PR translation/42469
36286 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
36287 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
36288 character between option name and help text.
36289 * c.opt (imultilib): Likewise.
36291 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
36293 * lto-streamer-out.c (output_unreferenced_globals): Output static
36296 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
36298 PR rtl-optimization/42621
36299 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
36300 optimizing for size.
36301 (duplicate_computed_gotos): Remove now-redundant check.
36303 2010-01-10 Steve Ellcey <sje@cup.hp.com>
36306 * configure.ac: Save and restore LDFLAGS and LIBS
36307 * configure: Regenerate.
36309 2010-01-10 Richard Guenther <rguenther@suse.de>
36311 PR middle-end/42667
36312 * builtins.c (fold_builtin_strlen): Add type argument and
36313 convert the resulting length to it.
36314 (fold_builtin_1): Adjust.
36316 2010-01-09 Jakub Jelinek <jakub@redhat.com>
36318 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
36319 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
36321 (num_insns_constant_wide): Adjust for that change.
36323 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36326 * web.c (union_defs): Add used argument, to combine uses of
36327 uninitialized regs.
36328 (entry_register): Adjust type and tests of used argument.
36329 (web_main): Widen used for new use. Pass it to union_defs.
36330 * df.h (union_defs): Adjust prototype.
36332 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36335 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
36336 uses in new incoming argument. Free body.
36337 (reset_debug_uses_in_loop): New.
36338 (analyze_insn_to_expand_var): Call the latter if the former found
36339 anything. Fix whitespace. Reject invalid dest overlaps before
36340 going through all insns in the loop.
36342 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36345 * haifa-sched.c (dying_use_p): Debug insns don't count.
36347 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36349 PR middle-end/42363
36350 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
36351 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
36352 (verify_gimple_call): Reject LHS in noreturn calls.
36354 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36358 * tree-vect-loop-manip.c (adjust_info): New type.
36359 (adjust_vec): New pointer to vector.
36360 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
36361 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
36362 (slpeel_update_phis_for_duplicate_loop): Use them.
36363 (slpeel_update_phi_nodes_for_guard1): Likewise.
36364 (slpeel_update_phi_nodes_for_guard2): Likewise.
36365 (slpeel_tree_peel_loop_to_edge): Likewise.
36366 (vect_update_ivs_after_vectorizer): Likewise.
36368 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36370 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
36371 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
36373 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36375 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
36376 bogus uninitialized warning.
36378 2010-01-09 Richard Guenther <rguenther@suse.de>
36380 PR middle-end/42512
36381 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
36382 the evolution is compatible with the initial condition.
36384 2010-01-09 Jakub Jelinek <jakub@redhat.com>
36386 * gcc.c (process_command): Update copyright notice dates.
36387 * gcov.c (print_version): Likewise.
36388 * gcov-dump.c (print_version): Likewise.
36389 * mips-tfile.c (main): Likewise.
36390 * mips-tdump.c (main): Likewise.
36392 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
36395 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
36397 (rotlhi3_8): Delete.
36399 (rotlsi3_8): Delete.
36400 (rotlsi3_16): Delete.
36401 (rotlsi3_24): Delete.
36402 (rotl<mode>3): New.
36403 (*rotw<mode>3): New.
36404 (*rotb<mode>3): New.
36405 * config/avr/avr.c (avr_rotate_bytes): New function.
36406 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
36408 2010-01-08 Steve Ellcey <sje@cup.hp.com>
36411 * configure.ac: Modify -rdynamic check.
36412 * configure: Regenerate.
36414 2010-01-08 DJ Delorie <dj@redhat.com>
36416 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
36417 register popping order.
36419 2010-01-08 Richard Guenther <rguenther@suse.de>
36422 * c.opt (fsigned-char): Also let LTO handle this option.
36423 (funsigned-char): Likewise.
36425 2010-01-07 Richard Guenther <rguenther@suse.de>
36427 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
36428 (gimple_op): Likewise.
36429 (gimple_op_ptr): Likewise.
36430 (gimple_assign_set_lhs): Remove gcc_assert.
36431 (gimple_assign_set_rhs1): Likewise.
36432 (gimple_assign_set_rhs2): Likewise.
36433 (gimple_call_set_lhs): Likewise.
36434 (gimple_call_set_fn): Likewise.
36435 (gimple_call_set_fndecl): Likewise.
36436 (gimple_call_fndecl): Likewise.
36437 (gimple_call_return_type): Likewise.
36438 (gimple_call_set_chain): Likewise.
36439 (gimple_call_num_args): Likewise.
36440 (gimple_call_set_arg): Likewise.
36441 (gimple_cond_set_code): Likewise.
36442 (gimple_cond_set_lhs): Likewise.
36443 (gimple_cond_set_rhs): Likewise.
36444 (gimple_cond_set_true_label): Likewise.
36445 (gimple_cond_set_false_label): Likewise.
36446 (gimple_label_set_label): Likewise.
36447 (gimple_goto_set_dest): Likewise.
36448 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
36449 (gimple_debug_bind_get_value): Likewise.
36450 (gimple_debug_bind_get_value_ptr): Likewise.
36451 (gimple_debug_bind_set_var): Likewise.
36452 (gimple_debug_bind_set_value): Likewise.
36453 (gimple_debug_bind_reset_value): Likewise.
36454 (gimple_debug_bind_has_value_p): Likewise.
36455 (gimple_return_retval_ptr): Remove gcc_assert.
36456 (gimple_return_retval): Likewise.
36457 (gimple_return_set_retval): Likewise.
36458 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
36459 (safe_referenced_var_iterator): Remove.
36460 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
36461 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
36462 (fill_referenced_var_vec): Remove.
36463 (first_readonly_imm_use): Remove redundant gcc_assert.
36464 (phi_arg_index_from_use): Combine gcc_asserts.
36465 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
36466 (first_imm_use_stmt): Remove redundant gcc_assert.
36467 * tree-cfg.c (verify_gimple_call): Verify function and chain
36468 operands. Verify arguments.
36469 (verify_types_in_gimple_stmt): Verify condition code and labels.
36471 2010-01-07 Richard Guenther <rguenther@suse.de>
36473 PR tree-optimization/42641
36474 * sese.c (rename_map_elt_info): Use the SSA name version, do
36477 2010-01-07 Jakub Jelinek <jakub@redhat.com>
36479 PR tree-optimization/42625
36480 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
36481 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
36483 2010-01-07 Duncan Sands <baldrick@free.fr>
36485 * Makefile.in (PLUGIN_HEADERS): Add version.h.
36487 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
36490 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
36491 note itself is not function_invariant_p.
36493 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
36495 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
36496 Do not add the DF_NOTE problem.
36497 * store-motion.c (execute_rtl_store_motion): Likewise.
36499 2010-01-07 Martin Jambor <mjambor@suse.cz>
36501 PR tree-optimization/42157
36502 * tree-sra.c (compare_access_positions): Stabilize sort if both
36503 accesses have integer types, return zero immediately if they are the
36506 2010-01-06 Richard Henderson <rth@redhat.com>
36508 PR middle-end/41883
36509 * haifa-sched.c (add_to_note_list): Merge into ...
36510 (concat_note_lists): ... here, and ...
36511 (unlink_other_notes, rm_other_notes): Merge into...
36512 (remove_notes): ... here. Create REG_SAVE_NOTEs for
36513 NOTE_INSN_EPILOGUE_BEG.
36515 2010-01-06 Richard Guenther <rguenther@suse.de>
36517 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
36518 not inline regular functions into always-inline functions.
36520 2010-01-06 Nick Clifton <nickc@redhat.com>
36522 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
36523 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
36525 (OVERRIDE_OPTIONS): Delete.
36526 (OPTIMIZATION_OPTIONS): Define.
36527 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
36528 * config/rx/rx.c (rx_handle_option): Issue an error message if
36529 -mcpu=rx200 and -fpu are used together.
36530 (rx_set_optimization_options): New function. Issue an error
36531 message if an optimization attribute attempts to reset the FPU/
36532 math optimization pairing.
36533 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
36534 * config/rx/rx.opt: Set the default to 32-bit doubles.
36535 * config/rx/t-rx: Add multilibs for -nofpu option.
36536 * doc/invoke.texi: Update documentation of RX options.
36538 2010-01-06 Richard Guenther <rguenther@suse.de>
36540 * tree-ssa-pre.c (name_to_id): New global.
36541 (alloc_expression_id): Simplify SSA name handling.
36542 (lookup_expression_id): Likewise.
36543 (init_pre): Zero name_to_id.
36544 (fini_pre): Free it.
36546 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
36548 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
36550 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
36553 * config/i386/sse.md (smaxv2di3): New.
36554 (umaxv2di3): Likewise.
36555 (sminv2di3): Likewise.
36556 (uminv2di3): Likewise.
36558 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
36561 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
36562 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
36563 (legitimize_tls_address): Likewise.
36564 (sparc_tls_referenced_p): Likewise.
36565 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
36566 and adjust calls to legitimize_pic_address.
36567 (legitimate_constant_p) Use sparc_tls_referenced_p.
36568 (legitimate_pic_operand_p): Likewise.
36569 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
36570 (sparc_tls_symbol_ref_1): Delete.
36571 (sparc_tls_referenced_p): Make static, recognize specific patterns.
36572 (legitimize_tls_address): Make static, handle CONST patterns.
36573 (legitimize_pic_address): Make static, remove unused parameter and
36574 adjust recursive calls.
36575 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
36576 and adjust call to legitimize_pic_address.
36577 (sparc_output_mi_thunk): Likewise.
36579 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
36580 H.J. Lu <hongjiu.lu@intel.com>
36583 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
36584 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
36585 operands to make them signed.
36588 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36591 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36592 GTU to GT for V4SI and V2DI.
36594 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36595 (umin<mode>3): Removed.
36597 (uminv4si3): Likewise.
36599 2010-01-05 Martin Jambor <mjambor@suse.cz>
36601 PR tree-optimization/42462
36602 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
36603 current_function_decl to helper functions and macros.
36605 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36608 * flags.h: Don't include real.h.
36609 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
36610 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
36611 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
36612 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
36613 * dominance.c: Update copyright.
36614 * gimple.c (walk_gimple_op): Remove inline.
36615 * tree-ssa-reassoc.c: Include real.h.
36616 * Makefile.in (FLAGS_H): Remove $(REAL_H).
36617 (tree-ssa-reassoc.o): Depend on $(REAL_H).
36619 2010-01-05 Nick Clifton <nickc@redhat.com>
36621 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
36622 register to push into the stack frame when the accumulator has to
36623 be saved during interrupts.
36625 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
36627 * doc/invoke.texi: Remove the documentation about option
36628 -Wunreachable-code.
36629 * common.opt (Wunreachable-code): Preserved for backward
36631 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
36632 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
36633 the backward compatibility flag section.
36635 2010-01-05 Richard Guenther <rguenther@suse.de>
36637 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
36639 2010-01-05 Jakub Jelinek <jakub@redhat.com>
36642 * cfgexpand.c (expand_one_var): Diagnose too large variables.
36644 PR tree-optimization/42508
36645 * tree-sra.c (convert_callers): Check for recursive call
36646 by comparing cgraph nodes instead of decls.
36647 (modify_function): Call ipa_modify_formal_parameters also
36648 on all same_body aliases.
36650 * cgraphunit.c (cgraph_materialize_all_clones): Compare
36651 cgraph nodes when checking for same_body aliases.
36653 2010-01-05 Richard Guenther <rguenther@suse.de>
36655 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
36656 allocation and lookup.
36657 (get_or_alloc_expr_for_constant): Likewise.
36658 (phi_translate): Sink allocation.
36660 2010-01-04 Richard Guenther <rguenther@suse.de>
36662 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
36663 a new entry only if needed.
36664 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
36665 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
36667 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
36669 (phi_translate): Handle CONSTANTs early.
36671 2010-01-04 Martin Jambor <mjambor@suse.cz>
36673 PR tree-optimization/42398
36674 * tree-sra.c (struct access): Removed flag grp_different_types.
36675 (dump_access): Do not dump the removed flag.
36676 (sort_and_splice_var_accesses): Do not set the removed flag.
36677 (sra_modify_expr): Check for type compatibility directly.
36679 2010-01-04 Martin Jambor <mjambor@suse.cz>
36681 PR tree-optimization/42366
36682 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
36683 edges with variable number of parameters.
36684 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
36685 flag instead of asserting it.
36686 (ipa_read_node_info): Read uses_analysis_done flag.
36688 2010-01-04 Richard Guenther <rguenther@suse.de>
36690 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
36691 iterative_hash_* as intended.
36692 (vn_reference_compute_hash): Likewise. Simplify hashing
36694 (vn_reference_lookup_2): Likewise.
36695 (vn_nary_op_compute_hash): Likewise.
36696 (vn_phi_compute_hash): Likewise.
36697 (expressions_equal_p): Remove strange code.
36698 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
36699 (pre_expr_hash): Likewise. Simplify hashing SSA names.
36700 (bitmap_insert_into_set_1): Take value-id as parameter.
36701 (add_to_value): Pass it.
36702 (bitmap_insert_into_set): Likewise.
36703 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
36705 2010-01-04 Jakub Jelinek <jakub@redhat.com>
36708 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
36709 (do_self_spec): For switches with SWITCH_IGNORE set set also
36710 SWITCH_IGNORE_PERMANENTLY.
36711 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
36714 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
36716 * lto-streamer-out.c (output_unreferenced_globals): Output the full
36717 tree of an unreferenced global var.
36719 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36722 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36723 GTU to GT for V4SI and V2DI.
36725 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36726 (umin<mode>3): Removed.
36728 (uminv4si3): Likewise.
36730 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36733 * collect2.c (main): Turn on trace in collect2 if -v is passed
36736 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
36738 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
36739 description of expression operand.
36741 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
36743 * configure.ac: Add install-html to target_list for Make-hooks.
36744 * configure: Regenerate.
36745 * fortran/Make-lang.in (F95_HTMLFILES): New.
36746 (fortran.html): Use it.
36747 (fortran.install-html): New.
36748 * Makefile.in (install-html): Add lang.install-html.
36749 * java/Make-lang.in (JAVA_HTMLFILES): New.
36750 (java.html): Use it.
36751 (java.install-html): New.
36752 * objc/Make-lang.in (objc.install-html): New.
36753 * objcp/Make-lang.in (obj-c++.install-html): New.
36754 * cp/Make-lang.in (c++.install-html): New.
36755 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
36756 * lto/Make-lang.in (lto.install-html): New.
36758 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
36761 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
36763 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
36765 PR rtl-optimization/41862
36766 * store-motion.c (store_killed_in_insn, compute_store_table,
36767 remove_reachable_equiv_notes, replace_store_insn,
36768 build_store_vectors): Ignore all DEBUG_INSNs.
36770 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
36773 * common.opt: Add dumpdir.
36775 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
36777 (option_map): Add --dumpdir.
36779 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
36781 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
36783 * opts.c (decode_options): Try dump_dir_name first if
36784 dump_base_name isn't an absolute path.
36785 (common_handle_option): Handle OPT_dumpdir.
36787 * toplev.c (dump_dir_name): New.
36788 (print_switch_values): Also ignore -dumpdir.
36790 * toplev.h (dump_dir_name): New.
36792 2010-01-03 Richard Guenther <rguenther@suse.de>
36794 PR tree-optimization/42589
36795 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
36796 double-word expansion of bswap32.
36798 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
36800 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
36801 with BLOCK_FOR_INSN.
36802 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
36803 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
36804 noce_process_if_block): Likewise.
36805 * gcse.c (compute_local_properties, insert_expr_in_table,
36806 insert_set_in_table, canon_list_insert, find_avail_set,
36807 pre_insert_copy_insn): Likewise.
36809 * basic-block.h (BLOCK_NUM): Move from here...
36810 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
36812 2010-01-03 Richard Guenther <rguenther@suse.de>
36814 PR tree-optimization/42438
36815 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
36816 contains_may_not_return_call flag.
36817 (BB_MAY_NOTRETURN): New.
36818 (valid_in_sets): Trapping nary operations are not valid
36819 in blocks that may not return.
36820 (insert_into_preds_of_block): Remove check for trapping expressions.
36821 (compute_avail): Compute also BB_MAY_NOTRETURN.
36823 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
36825 * doc/invoke.texi: Add 2010 to copyright years.
36827 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
36829 * config/sparc/sparc.c: Fix formatting nits.
36831 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36832 Alexander Monakov <amonakov@ispras.ru>
36834 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
36836 2010-01-02 Richard Guenther <rguenther@suse.de>
36838 PR middle-end/42577
36839 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
36840 (simplify_switch_using_ranges): Mark to be removed edges
36843 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36845 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36847 * collect2.c (scan_libraries): Add missing argument in call to
36850 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
36853 * config/alpha/predicates.md (aligned_memory_operand): Return false
36855 (unaligned_memory_operand): Return true for CQImode.
36856 * config/alpha/alpha.c (get_aligned_mem): Assert that location
36857 doesn not cross aligned SImode word boundary.
36859 2010-01-02 Anatoly Sokolov <aesok@post.ru>
36861 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
36863 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
36864 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
36866 2010-01-02 Richard Guenther <rguenther@suse.de>
36869 * toplev.c (compile_file): Emit LTO marker properly. Change
36870 it to __gnu_lto_v1.
36871 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
36873 2010-01-01 Richard Guenther <rguenther@suse.de>
36876 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
36878 2010-01-01 Richard Guenther <rguenther@suse.de>
36881 * c-decl.c (grokdeclarator): For zero-size arrays force
36882 structural equality checks as layout_type does.
36884 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
36886 * builtins.c: Update copyright to 2010.
36888 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
36891 * lto-streamer-out.c (produce_asm): Revert the last change.
36892 (copy_function): Likewise.
36894 * lto-streamer.c (lto_get_section_name): Skip any leading
36897 2010-01-01 Richard Guenther <rguenther@suse.de>
36899 PR middle-end/42559
36900 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
36904 Copyright (C) 2010 Free Software Foundation, Inc.
36906 Copying and distribution of this file, with or without modification,
36907 are permitted in any medium without royalty provided the copyright
36908 notice and this notice are preserved.