1 2010-10-20 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/45919
4 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7 PR tree-optimization/46066
8 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
9 instead of gsi_last_bb.
11 2010-10-20 DJ Delorie <dj@redhat.com>
13 * config/m32c/m32c.c (m32c_option_override): Always disable
14 function-cse in 16-bit mode. Indirect calls are always worse than
15 direct calls as there is no 16-bit indirect call opcode.
16 (m32c_override_options_after_change): New, likewise.
18 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
20 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
21 emitting the conditional move in the inner mode of the SUBREG.
23 2010-10-20 Anatoly Sokolov <aesok@post.ru>
25 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
26 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
27 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28 (ia64_preferred_reload_class): Make static. Change rclass argument
29 and result types from enum reg_class to reg_class_t.
31 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
33 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
34 call for single operand expression.
36 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
38 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
39 if there is a call statement to pure or const function in the block.
41 2010-10-20 Paul Koning <pkoning@equallogic.com>
43 Fix several build errors for pdp11 target.
44 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
45 (cbranchdf4): Conditional on TARGET_FPU.
46 (movdf): Ditto; correct alternatives check.
47 (movmemhi): Fix predicate and constraint.
48 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
50 2010-10-20 Richard Guenther <rguenther@suse.de>
53 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
54 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
55 (verify_gimple_assign_single): Disable ADDR_EXPR type check
58 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
61 * ira-emit.c (store_can_be_removed_p): Return false instead of
64 2010-10-20 Dmitry Melnik <dm@ispras.ru>
66 * fold-const.c (fold_binary_loc): New transformation.
68 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
71 * config/i386/sse.md (reduc_splus_v8sf): Updated.
72 (reduc_splus_v4df): Likewise.
74 2010-10-20 Richard Guenther <rguenther@suse.de>
76 PR tree-optimization/45860
77 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
78 conditional store replacement for non-register type stores.
80 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
82 * stor-layout.c (skip_simple_constant_arithmetic): New function.
83 (self_referential_size): Use it instead of skip_simple_arithmetic.
85 2010-10-20 Olivier Hainque <hainque@adacore.com>
87 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
88 If the current function calls eh_return, claim live all registers
89 that we need to check for liveness otherwise.
91 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
93 * c-decl.c (c_write_global_declarations): Call
94 objc_write_global_declarations when compiling Objective-C.
95 * c-lang.c (finish_file): Removed.
97 2010-10-19 DJ Delorie <dj@redhat.com>
99 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
100 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
101 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
102 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
103 * doc/tm.texi: Regenerate.
104 * targhooks.h (default_label_align_after_barrier_max_skip,
105 default_loop_align_max_skip, default_label_align_max_skip,
106 default_jump_align_max_skip): Declare.
107 * target.def (label_align_after_barrier_max_skip): New.
108 (loop_align_max_skip): New.
109 (label_align_max_skip): New.
110 (jump_align_max_skip): New.
111 * system.h (poison): Add those macros to the list.
112 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
113 (LOOP_ALIGN_MAX_SKIP): Remove.
114 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
115 (JUMP_ALIGN_MAX_SKIP): Remove.
116 (default_label_align_after_barrier_max_skip): New.
117 (default_loop_align_max_skip): New.
118 (default_label_align_max_skip): New.
119 (default_jump_align_max_skip): New.
120 (compute_alignments): Use the new hooks.
121 (shorten_branches): Likewise.
123 2010-10-19 Richard Henderson <rth@redhat.com>
125 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
126 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
127 (fma4i_fmadd_<mode>): New.
128 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
129 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
130 standard fma patterns.
131 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
133 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
134 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
135 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
137 2010-10-19 Paul Koning <pkoning@equallogic.com>
139 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
140 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
142 2010-10-19 Richard Henderson <rth@redhat.com>
144 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
145 (fmadf4, *fmsdf4, *nfmadf4): New.
146 (fmaxf4, *fmsxf4, *nfmaxf4): New.
148 2010-10-19 Michael Eager <eager@eagercon.com>
150 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
151 Use sjlj unwind info for exceptions.
153 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
156 * dwarf2out.c (add_calling_convention_attribute): Flag main
157 Fortran subroutine with DW_AT_main_subprogram.
159 2010-10-19 Nick Clifton <nickc@redhat.com>
161 * config/rx/rx.c (rx_function_value): Small integer types are
163 (rx_promote_function_mode): New function.
164 (TARGET_PROMOTE_FUNCTION_MODE): Define.
166 2010-10-19 Nick Clifton <nickc@redhat.com>
168 * config/mep/mep.c (mep_print_operand): Use
169 targetm.strip_name_encoding.
170 (mep_output_aligned_common): Likewise.
172 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
173 * gengtype.c (new_structure): Remove ad-hoc "location_s"
176 2010-10-18 Richard Henderson <rth@redhat.com>
178 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
179 (fma (neg a) (neg b) c) and (fma a (neg b) c).
181 2010-10-18 Richard Henderson <rth@redhat.com>
183 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
184 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
185 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
186 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
187 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
188 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
189 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
190 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
191 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
192 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
193 (bdesc_multi_arg): Remove the corresponding builtins.
194 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
195 (UNSPEC_FMA4_FMSUBADD): Remove.
196 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
197 * config/i386/sse.md (FMA4MODEF4): Remove.
199 (fma<mode>4): New expander.
200 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
201 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
202 (*fma4i_fmsub_<mode>): Similarly.
203 (*fma4i_fnmadd_<mode>): Similarly.
204 (*fma4i_fnmsub_<mode>): Similarly.
205 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
206 with the first operand.
207 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
208 of explicit arithmetic. Macroize with AVXMODEF2P.
209 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
210 (xop_frcz<mode>2): Macroize with FMAMODE.
211 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
213 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
215 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
216 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
217 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
218 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
219 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
220 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
221 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
222 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
224 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
226 PR rtl-optimization/45966
227 * combine.c (try_combine): If added_sets_2, deal with the case
228 where i0 feeds i1 and i1 feeds i2.
230 2010-10-18 Jan Hubicka <jh@suse.cz>
232 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
233 preserve flags before trying to guess on visibility.
234 (varpool_externally_visible_p): New function.
235 (function_and_variable_visibility): Use it.
237 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
239 Implemented parsing @synthesize and @dynamic for Objective-C.
240 * c-parser.c (c_parser_external_declaration): Recognize
241 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
242 (c_parser_objc_at_synthesize_declaration): New.
243 (c_parser_objc_at_dynamic_declaration): New.
245 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
247 * c-parser.c (c_parser_objc_class_declaration): After finding an
248 error, parse the whole declaration then reset parser->error.
250 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
253 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
254 * builtins.c (mode_has_fma): Ditto.
256 2010-10-18 Steve Ellcey <sje@cup.hp.com>
260 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
262 2010-10-18 Joseph Myers <joseph@codesourcery.com>
264 * config/i386/i386.c (ix86_option_override_internal): Define and
265 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
267 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
268 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
270 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
272 Merge from 'apple/trunk' branch on FSF servers.
273 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
274 following Objective-C change:
276 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
279 * c-parse.in (objc_quals): Build objc qualifier list same way
282 2010-10-18 Jan Hubicka <jh@suse.cz>
284 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
285 function_and_variable_visibility): Revert accidental commit.
287 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
289 Merge from 'apple/trunk' branch on FSF servers.
290 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
291 the following Objective-C change:
293 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
296 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
297 'volatilized' type used in a typeof operator.
299 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
301 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
302 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
303 rewrite modelled on gimple_purge_dead_eh_edges.
304 (gimple_purge_all_dead_abnormal_call_edges): New function.
305 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
306 directly instead of through gimple_purge_dead_abnormal_call_edges.
307 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
308 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
309 removed AB side-effects from one of its statements.
310 (init_pre): Initialize need_ab_cleanup.
311 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
312 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
314 2010-10-18 Jakub Jelinek <jakub@redhat.com>
317 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
318 on computed goto argument.
320 2010-10-18 Richard Guenther <rguenther@suse.de>
322 PR tree-optimization/45967
323 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
324 (could_have_pointers): Likewise.
325 (handle_rhs_call, handle_const_call, handle_pure_call,
326 find_func_aliases, intra_create_variable_infos): Remove calls to them.
327 (struct fieldoff): Add must_have_pointers field.
328 (type_must_have_pointers): New function.
329 (field_must_have_pointers): Likewise.
330 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
331 Adjust field merging.
332 (create_function_info_for): May-have-pointers of varinfo is
334 (create_variable_info_for_1): Likewise.
336 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
338 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
339 of operands to vec_concat.
341 2010-10-18 Richard Guenther <rguenther@suse.de>
344 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
345 also clear references to entries of it.
347 2010-10-18 Andi Kleen <ak@linux.intel.com>
351 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
352 (doc, distclean, install-common): Remove reference to gccbug.
353 * configure: Regenerate.
354 * configure.ac (all_outputs): Remove gccbug.
355 * doc/configfiles.texi: Remove references to gccbug.
356 * doc/sourcebuild.texi: Dito.
358 2010-10-18 Jakub Jelinek <jakub@redhat.com>
361 * fold-const.c (fold_binary_loc): If integer_pow2p has
362 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
364 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
365 Jeremie Salvucci <jeremie.salvucci@free.fr>
367 * gengtype.c (verbosity_level): Add variable.
368 (set_gc_used): Count variables for verbosity.
369 (close_output_files): Backing up files, counting written ones
371 (write_types): Count emitted functions for verbosity. Added
373 (write_enum_defn): Count structures for verbosity. Added debug
375 (gengtype_long_options): Add "verbose" & "backupdir".
376 (print_usage): Ditto.
377 (main): Verbose display of parsed files.
379 * gengtype.h (verbosity_level): Add declaration.
381 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
383 * gengtype.c (parse_program_options): Add allocation of
384 plugin_files, and correct test on nb_plugin_files.
386 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
388 Merge from 'apple/trunk' branch on FSF servers.
390 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
393 * c-decl.c (undeclared_variable): Issue diagnostic on
394 private 'ivar' access.
396 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
399 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
400 generated sequence to match *avx_vperm2f128<mode>_nozero.
401 (vec_interleave_lowv4df): Ditto.
402 (vec_interleave_highv8sf): Ditto.
403 (vec_interleave_lowv8sf): Ditto.
405 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
407 * libgcov.c (create_file_directory): Enable it for win32 case.
408 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
409 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
410 (GCOV_PREFIX_SKIP): Likewise.
412 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
414 * doc/objc.texi (GNU Objective-C runtime API): New section.
415 (Modern GNU Objective-C runtime API): New section.
416 (Traditional GNU Objective-C runtime API): New section.
417 (Executing code before main): Mention that this section is
418 specific to the GNU Objective-C runtime.
419 (Garbage Collection): Same.
421 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
423 * c-parser.c (c_parser_for_statement): Move initialization of
424 cond and incr before if.
426 2010-10-17 Anatoly Sokolov <aesok@post.ru>
428 * target.def (preferred_output_reload_class): New hook.
429 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
430 * doc/tm.texi: Regenerate.
431 * targhooks.c (default_preferred_output_reload_class): New function.
432 * targhooks.h (default_preferred_output_reload_class): Declare.
433 * reload.c (find_dummy_reload): Change rclass argument type from
434 enum reg_class to reg_class_t. Change this_alternative array type
435 from enum reg_class to reg_class_t.
436 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
437 (push_reload): Change preferred_class variable type to reg_class_t.
438 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
439 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
440 argument type from enum reg_class to reg_class_t. Use
441 HARD_REGISTER_NUM_P predicate.
442 * recog.h (reg_fits_class_p): Update prototype.
444 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
445 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
447 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
448 static. Change regclass argument and result types from enum reg_class
450 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
452 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
454 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
455 visibility enum, and handle @package.
457 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
459 * doc/objc.texi (What you can and what you cannot do in +load):
460 Document that sending messages to constant string objects in +load
461 is not guaranteed to work.
463 2010-10-16 Jan Hubicka <jh@suse.cz>
466 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
467 existence of refrences before removing the function.
469 2010-10-16 Jan Hubicka <jh@suse.cz>
471 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
472 only_called_at_startup and only_called_at_exit.
473 (cgraph_propagate_frequency): Compute only_called_at_startup and
475 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
477 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
479 * predict.c (compute_function_frequency): Initialize the new flags.
481 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
483 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
484 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
485 on the bounds of its domain.
486 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
488 2010-10-16 Anatoly Sokolov <aesok@post.ru>
490 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
491 * config/avr/avr-protos.h (preferred_reload_class): Remove.
492 * config/avr/avr.c (preferred_reload_class): Remove.
493 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
494 * config/pa/pa.c (emit_move_sequence): Update comment
495 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
496 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
497 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
498 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
499 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
500 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
501 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
502 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
503 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
504 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
505 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
506 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
507 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
509 2010-10-16 Joseph Myers <joseph@codesourcery.com>
511 * opts.c (set_fast_math_flags,
512 set_unsafe_math_optimizations_flags): Make static.
513 * toplev.h (set_fast_math_flags,
514 set_unsafe_math_optimizations_flags): Remove prototypes.
516 2010-10-16 Joseph Myers <joseph@codesourcery.com>
518 * config/arm/arm.c (arm_option_optimization): Set
519 flag_section_anchors to 1 not 2.
520 * config/i386/i386.c (ix86_option_override_internal): Check
521 global_options_set.x_flag_zee and
522 global_options_set.x_flag_omit_frame_pointer.
523 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
525 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
526 global_options_set.x_flag_omit_frame_pointer.
527 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
528 opts->x_flag_section_anchors to 1 not 2.
529 * config/sh/sh.c (sh_option_optimization): Don't set
530 flag_schedule_insns to 2.
531 (sh_option_override): Check
532 global_options_set.x_flag_schedule_insns.
533 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
535 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
537 * configure.ac: Make sure inhibit_libc remains false for mingw targets
539 * configure: Regenerated.
541 2010-10-15 Xinliang David Li <davidxl@google.com>
543 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
545 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
546 into a recursive function.
548 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
550 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
553 2010-10-15 Joseph Myers <joseph@codesourcery.com>
555 * target.def (target_option.init_struct): New hook.
556 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
557 * doc/tm.texi: Regenerate.
558 * hooks.c (hook_void_gcc_optionsp): New.
559 * hooks.h (hook_void_gcc_optionsp): Declare.
560 * langhooks-def.h (lhd_init_options_struct): Remove.
561 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
562 * langhooks.c (lhd_init_options_struct): Remove.
563 * opts.c (init_options_struct): Also call
564 targetm.target_option.init_struct.
565 * config/i386/i386.c (ix86_option_init_struct,
566 TARGET_OPTION_INIT_STRUCT): New.
567 (ix86_option_optimization): Move some settings to
568 ix86_option_init_struct.
569 * config/pdp11/pdp11.c (pdp11_option_init_struct,
570 TARGET_OPTION_INIT_STRUCT): New.
571 (pdp11_option_optimization): Move some settings to
572 pdp11_option_init_struct.
573 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
574 rs6000_option_init_struct. Use options structure pointer.
575 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
576 * config/s390/s390.c (s390_option_init_struct,
577 TARGET_OPTION_INIT_STRUCT): New.
578 (s390_option_optimization): Don't set
579 flag_asynchronous_unwind_tables here.
580 * config/sh/sh.c (sh_option_init_struct,
581 TARGET_OPTION_INIT_STRUCT): New.
582 (sh_option_optimization): Don't set flag_finite_math_only here.
583 * config/spu/spu.c (spu_option_optimization): Replace by
584 spu_option_optimization. Use options structure pointer.
585 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
587 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
589 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
591 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
592 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
593 (Standard names): Document fma.
595 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
596 __FP_FAST_FMAF, __FP_FAST_FMAL.
598 * builitns.c (expand_builtin_mathfn_ternary): New function for
599 expanding ternary math functions, like fma.
600 (expand_builtin): Call it for the fma builtins.
602 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
605 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
606 vectorizable functions to support vectorizing fma.
608 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
611 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
612 (UNSPEC_VSX_MSUB): Ditto.
613 (UNSPEC_VSX_NMADD): Ditto.
614 (UNSPEC_VSX_NMSUB): Ditto.
615 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
616 of UNSPEC. Renumber combiner patterns.
617 (vsx_fmsub<mode>4*): Ditto.
618 (vsx_fnmadd<mode>4*): Ditto.
619 (vsx_fnmsub<mode>4*): Ditto.
621 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
622 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
623 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
624 (altivec_vmaddfp_1): Ditto.
625 (altivec_vmaddfp_2): Ditto.
626 (atlivec_mulv4sf3): Ditto.
627 (altivec_vnmsubfp): Ditto.
628 (altivec_vnmsubfp_1): Ditto.
629 (altivec_vnmsubfp_2): Ditto.
630 (altivec_vnmsubfp_3): Delete.
632 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
635 (fnmasf4_fpr): Ditto.
636 (fnmssf4_fpr): Ditto.
640 (fnmadf4_fpr): Ditto.
641 (fnmsdf4_fpr): Ditto.
643 * optabs.h (OTI_fma): Add fma optab.
646 * genopinit.c (optabs): Set fma optab.
648 * rtl.def (FMA): Add FMA rtl.
650 * tree.h (mode_has_fma): New function to return if MODE supports a
651 fast multiply and add instruction.
652 * builtins.c (mode_has_fma): Ditto.
654 2010-10-15 Jan Hubicka <jh@suse.cz>
656 * lto-streamer-out.c (write_symbol): Use pointer set of seen
657 objects instead of bitmap.
658 (produce_symtab): Likewise; output defined symbols first.
660 2010-10-15 Jie Zhang <jie@codesourcery.com>
662 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
663 Option Summary and Index.
665 2010-10-15 Richard Guenther <rguenther@suse.de>
667 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
668 for automatic variables again.
670 2010-10-15 Joseph Myers <joseph@codesourcery.com>
672 * doc/extend.texi (Variable Length): Don't refer to VLAs not
675 2010-10-15 Joseph Myers <joseph@codesourcery.com>
677 * config/rx/rx.c (rx_option_optimization): Change to
678 rx_override_options_after_change. Don't change
679 flag_lto_compression_level. Don't check for changes to whether
680 FPU instructions can be used. Check and set only
681 flag_finite_math_only, not other fast-math flags.
682 (rx_option_override): Call rx_override_options_after_change.
683 (TARGET_OPTION_OPTIMIZATION): Remove.
684 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
686 2010-10-15 Joseph Myers <joseph@codesourcery.com>
688 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
689 disable section anchors for lang_hooks.name[4] != 'O'.
691 2010-10-15 Joseph Myers <joseph@codesourcery.com>
693 * config/frv/frv.c (frv_option_optimization,
694 TARGET_OPTION_OPTIMIZATION): Remove.
695 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
697 2010-10-15 Michael Matz <matz@suse.de>
699 * cgraphunit.c (clone_of_p): Define unconditionally.
701 2010-10-15 Richard Guenther <rguenther@suse.de>
704 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
706 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
708 * ifcvt.c (find_active_insn_before): New function.
709 (find_active_insn_after): New function.
710 (cond_exec_process_if_block): Use new functions to replace
711 prev_active_insn() and next_active_insn().
713 2010-10-14 Yao Qi <yao@codesourcery.com>
716 * config/arm/arm.c (arm_build_builtin_va_list): Assign
717 va_list_name to TYPE_STUB_DECL (va_list_type).
719 2010-10-14 Jan Hubicka <jh@suse.cz>
722 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
723 redirected to clone, be happy.
724 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
725 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
726 former_clone_of unconditionally.
728 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
730 Merge from FSF apple 'trunk' branch.
731 2006 Fariborz Jahanian <fjahanian@apple.com>
733 Radars 4436866, 4505126, 4506903, 4517826
734 * c-parser.c (c_parser, objc_property_attr_context) New flag.
735 (c_lex_one_token): Handle property attributes.
736 (c_parser_external_declaration): Handle @property.
737 (c_parser_declaration_or_fndef): Warn on invalid attributes before
738 @alias, @class, @end and @property objc keywords.
739 (c_parser_objc_methodprotolist): Handle @property.
740 (c_parser_objc_property_attrlist): New.
741 (c_parser_objc_at_property): New.
742 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
743 (build_modify_expr): Likewise.
745 2010-10-14 Jakub Jelinek <jakub@redhat.com>
747 PR tree-optimization/46008
748 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
750 2010-10-14 Richard Guenther <rguenther@suse.de>
752 PR tree-optimization/44913
753 * tree-data-ref.c (disjoint_objects_p): Remove.
754 (dr_may_alias_p): Simplify. Only hand the base object to
756 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
757 some more trees, bail out instead of asserting.
758 (ptr_derefs_may_alias_p): Likewise. Export.
759 (refs_may_alias_p_1): Handle STRING_CSTs.
760 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
762 2010-10-14 Joseph Myers <joseph@codesourcery.com>
765 * c-typeck.c (build_binary_op): Don't try to compute a semantic
766 type with excess precision for boolean operations.
768 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
769 Basile Starynkevitch <basile@starynkevitch.net>
771 * gengtype.c: Include getopt.h and version.h.
773 (lang_bitmap, struct outf, outf_p)
774 (get_output_file_with_visibility, oprintf): Definitions moved to
776 (output_files, header_file, srcdir, srcdir_len, this_file)
777 (do_dump): No more static variables.
779 (dbgprint_count_type_at): Added new function.
780 (gengtype_long_options): New.
781 (print_usage, print_version, parse_program_options): New.
782 (main): Call parse_program_options, and removed old option
783 handling code. Added some debug output.
785 * gengtype.h: Updated copyright year.
786 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
787 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
788 Moved from gengtype.c to here.
789 (do_debug, read_state_filename, write_state_filename): New variables.
790 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
793 (REVISION): Always defined.
794 (version.o): Removed ifdef REVISION_c.
795 (s-gtype): Pass arguments to build/gengtype program.
796 (build/version.o): Added building rule.
797 (build/gengtype$(build_exeext)): Added build/version.o.
799 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
801 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
802 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
805 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
807 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
808 may_trap_or_fault_p instead of may_trap_p predicate.
809 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
810 (substitute_placeholder_in_expr): Likewise.
811 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
812 flag on MEM_REF nodes.
813 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
814 flags on INDIRECT_REF nodes.
816 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
818 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
819 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
820 (arm*-*-eabi*) <tm_file>: Likewise.
821 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
822 (frv-*-*linux*) <tm_file>: Likewise.
823 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
824 and associated helper macros.
825 * config/frv/frv-abi.h: Delete.
827 2010-10-14 Richard Guenther <rguenther@suse.de>
830 * tree.def (NULLPTR_TYPE): New tree code.
831 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
832 * dwarf2out.c (is_base_type): Likewise.
833 (gen_type_die_with_usage): Likewise.
834 * sdbout.c (plain_type_1): Likewise.
835 * tree.c (build_int_cst_wide): Likewise.
836 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
838 2010-10-14 Joseph Myers <joseph@codesourcery.com>
840 * params.c (params_finished): New.
841 (add_params): Assert !params_finished.
842 (finish_params): New.
843 (set_param_value_internal): Take params and params_set
844 parameters. Assert params_finished.
845 (set_param_value, maybe_set_param_value): Take params and
846 params_set parameters. Update calls to set_param_value_internal.
847 (set_default_param_value): Assert !params_finished. Don't use
848 set_param_value_internal.
849 (default_param_value, init_param_values): New.
850 * params.h (struct param_info): Change value to default_value.
852 (set_param_value, maybe_set_param_value): Add params and
853 params_set parameters.
854 (PARAM_VALUE): Get parameters from global_options.
855 (PARAM_SET_P): Remove.
856 (finish_params, default_param_value, init_param_values): New.
857 * common.opt (param_values): New Variable.
858 * config/arm/arm.c (arm_option_override): Pass extra arguments to
859 maybe_set_param_value.
860 * config/i386/i386.c (ix86_option_override_internal): Pass extra
861 arguments to maybe_set_param_value.
862 * config/picochip/picochip.c (picochip_option_override): Pass
863 extra arguments to maybe_set_param_value.
864 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
865 extra arguments to maybe_set_param_value.
866 * config/s390/s390.c (s390_option_override): Use
867 maybe_set_param_value instead of set_param_value. Pass extra
868 arguments to maybe_set_param_value.
869 * config/sparc/sparc.c (sparc_option_override): Pass extra
870 arguments to maybe_set_param_value.
871 * config/spu/spu.c (spu_option_override): Pass extra arguments to
872 maybe_set_param_value.
873 * opts.c (handle_param): Take opts and opts_set parameters.
874 Update call to set_param_value.
875 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
876 initial_loop_invariant_max_bbs_in_loop): Remove.
877 (init_options_once): Don't set them.
878 (init_options_struct): Initialize parameters structures.
879 (default_options_optimization): Use default_param_value when
880 restoring defaults. Update calls to maybe_set_param_value.
881 (finish_options): Update calls to maybe_set_param_value.
882 (common_handle_option): Update calls to handle_param and
884 * toplev.c (DEFPARAM): Update definition for changes to param_info.
885 (general_init): Call finish_params.
887 2010-10-14 Nick Clifton <nickc@redhat.com>
889 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
890 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
891 (FIRST_PSEUDO_REGISTER): Increase by one.
892 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
893 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
894 (MODES_TIEABLE): Call mn10300_modes_tieable.
895 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
896 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
897 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
898 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
899 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
900 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
901 (mn10300_cc_status_mdep): Delete.
902 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
903 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
904 the combine-stack-adjust pass.
905 (print_operand): Use the mode of the comparison operation to
906 select the comparison suffix.
907 (notice_update_cc): Delete.
908 (mn10300_secondary_reload_class): Remove test for stack pointer
910 (output_tst): Rename to mn10300_output_cmp.
911 (impossible_plus_operand): Move into predicates.md.
912 (mn10300_legitimize_address): Make static.
913 (mn10300_legitimate_address_p): Make static. Only allow SI sized
914 constant pic operands.
915 (mn10300_legitimate_constant_p): New function.
916 (mn10300_case_values_threshold): Make static.
917 (mn10300_hard_regno_mode_ok): New function.
918 (mn10300_modes_tieable): New function.
919 (mn10300_select_cc_mode): New function.
920 * config/mn10300/predicates.md (impossible_plus_operand): Define.
921 * config/mn10300/mn10300-protos.h: Tidy.
922 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
923 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
924 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
925 with clobbers or sets of CC_REG.
927 (mov*): Remove use of CLR instruction.
928 (cbranch_si4_<code>): New pattern/split.
929 (integer_conditional_branch): New pattern.
930 (cbranch_sf4_<code>): New pattern/split.
931 (float_conditional_branch): New pattern.
932 (casesi): Use addsi3 pattern instead of movsi pattern to add and
933 move a value at the same time.
934 (cc0 peepholes): Remove.
936 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
938 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
939 on RTX_FRAME_RELATED_P insns and the insn to which
940 NOTE_INSN_EPILOGUE_BEG is attached.
941 * sched-vis.c (print_value): Allow NULL value.
943 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
945 PR rtl-optimization/45570
946 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
947 assert that we are pipelining outer loops. Allow returning
950 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
952 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
953 (tidy_control_flow): Tidy vertical space.
954 (sel_remove_bb): New variable idx. Use it to remember the basic
955 block index before deleting the block.
956 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
957 (sel_merge_blocks): ... here.
958 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
960 2010-10-14 Jakub Jelinek <jakub@redhat.com>
962 * cse.c (is_dead_reg): Change into inline function that is not
963 called through for_each_rtx.
964 (set_live_p): Adjust caller.
965 (insn_live_p): Don't reset DEBUG_INSNs here.
966 (struct dead_debug_insn_data): New data.
967 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
968 (delete_trivially_dead_insns): If there is just one setter for the
969 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
970 and add DEBUG_INSN for it right before the removed setter and
971 use the DEBUG_EXPR instead of the dead pseudo.
973 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
975 * et-forest.c (et_nca): Return NULL immediately when
976 the dominance forest has disjoint components.
978 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
980 * ira.c (setup_class_hard_regs): Fix typo in indexing
981 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
983 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
985 * graph.c (inbb): New variable.
986 (start_bb): Set inbb to 1 if output is inside of a building block.
987 (end_bb): Check if output is inside of a building block.
989 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
991 PR rtl-optimization/45912
992 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
993 regno of registers instead of their index to compute the alignment.
995 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
997 * config/i386/i386.c (ix86_build_const_vector): Check vector
998 mode instead of scalar mode.
999 (ix86_build_signbit_mask): Likewise.
1000 (ix86_expand_fp_absneg_operator): Updated.
1001 (ix86_expand_copysign): Likewise.
1002 (ix86_expand_int_vcond): Likewise.
1003 (ix86_emit_swdivsf): Likewise.
1004 (ix86_sse_copysign_to_positive): Likewise.
1005 (ix86_expand_sse_fabs): Likewise.
1006 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
1007 * config/i386/sse.md (copysign<mode>3): Likewise.
1008 (sse2_cvtudq2ps): Likewise.
1009 (vec_unpacku_float_hi_v4si): Likewise.
1010 (vec_unpacku_float_lo_v4si): Likewise.
1012 * config/i386/i386.c (ix86_builtins): Add
1013 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
1014 (bdesc_args): Likewise.
1015 (ix86_builtin_vectorized_function): Support
1016 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
1017 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
1018 and IX86_BUILTIN_CVTPS2DQ256.
1019 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
1021 * config/i386/sse.md (STORENT_MODE): New.
1022 (VEC_FLOAT_MODE): Likewise.
1023 (VEC_EXTRACT_MODE): Likewise.
1024 (*avx_cvtdq2pd256_2): Likewise.
1025 (vec_pack_trunc_v4df): Likewise.
1026 (vec_interleave_highv8sf): Likewise.
1027 (vec_interleave_lowv8sf): Likewise.
1028 (storent<mode>): Macroized.
1029 (<code><mode>2: absneg): Likewise.
1030 (copysign<mode>3): Likewise.
1031 (vec_extract<mode>): Likewise.
1034 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
1037 2010-10-13 Richard Guenther <rguenther@suse.de>
1038 H.J. Lu <hongjiu.lu@intel.com>
1040 * config/i386/sse.md (reduc_splus_v8sf): Add.
1041 (reduc_splus_v4df): Likewise.
1042 (vec_unpacks_hi_v8sf): Likewise.
1043 (vec_unpacks_lo_v8sf): Likewise.
1044 (*avx_cvtps2pd256_2): Likewise.
1045 (vec_unpacks_float_hi_v8si): Likewise.
1046 (vec_unpacks_float_lo_v8si): Likewise.
1047 (vec_interleave_highv4df): Likewise.
1048 (vec_interleave_lowv4df): Likewise.
1050 2010-10-13 Richard Guenther <rguenther@suse.de>
1053 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
1054 alone if there are no virtual methods.
1056 2010-10-13 Richard Henderson <rth@redhat.com>
1058 * expr.c (build_personality_function): Take parameter LANG instead
1059 of parameter NAME. Build the name based on the lang prefix and the
1060 unwind method in use.
1061 * tree.c (lhd_gcc_personality): Update call to
1062 build_personality_function.
1064 2010-10-13 Richard Guenther <rguenther@suse.de>
1067 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
1069 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
1071 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
1072 Canonicalize input operands of ASM_OPERANDS insns.
1074 2010-10-13 Richard Guenther <rguenther@suse.de>
1076 PR tree-optimization/45788
1077 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
1078 EH update until fixup-cfg.
1080 2010-10-13 Julian Brown <julian@codesourcery.com>
1082 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
1083 from CORE_REGS and GENERAL_REGS classes.
1084 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
1085 final constraint for register preferencing.
1087 2010-10-13 Richard Guenther <rguenther@suse.de>
1089 PR tree-optimization/45970
1090 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
1091 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
1092 (stmt_kills_ref_p): Likewise.
1093 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
1095 2010-10-13 Richard Guenther <rguenther@suse.de>
1097 PR tree-optimization/45982
1098 * tree-ssa-structalias.c (make_constraints_to): New function.
1099 (make_constraint_to): Implement in terms of make_constraints_to.
1100 (find_func_aliases): Properly make return values of pure/const
1101 functions escape if they assign to sth that is not a pointer.
1103 2010-10-13 Richard Guenther <rguenther@suse.de>
1106 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1107 Fixup the CFG when EH was fixed up.
1109 2010-10-13 Ira Rosen <irar@il.ibm.com>
1111 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
1112 Use operand's type for POINTER_PLUS_EXPR.
1114 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
1116 * c-parser.c (c_parser_for_statement): Initialize incr.
1118 2010-10-12 Xinliang David Li <davidxl@google.com>
1120 PR tree-optimization/45972
1121 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
1122 with too many arguments.
1124 2010-10-12 Jakub Jelinek <jakub@redhat.com>
1127 * tree-ssa-forwprop.c: Include expr.h.
1128 (constant_pointer_difference, simplify_builtin_call): New functions.
1129 (tree_ssa_forward_propagate_single_use_vars): Call
1130 simplify_builtin_call on builtin calls.
1132 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1134 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
1135 (*adddi3_extend_sp32): Likewise.
1136 (*subdi3_insn_sp32): Likewise.
1137 (*subdi3_extend_sp32): Likewise.
1138 (*negdi2_sp32): Use negative test for consistency.
1140 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
1142 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
1143 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1144 * config/fixed-bit.h: Likewise.
1145 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1146 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
1147 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
1148 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
1149 (DF_SIZE): Likewise.
1150 * doc/tm.texi: Regenerate.
1152 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
1154 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
1155 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
1156 (*isel_reversed_unsigned_<mode>): New.
1157 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
1158 as valid comparisons and adjust operands and output appropriately.
1159 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
1161 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
1163 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
1164 DATA_ALIGNMENT and add COND parameter. Update comments above.
1165 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
1166 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
1168 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
1171 * exec-tool.in: Support '-plugin' as the second option to the linker.
1173 2010-10-12 Richard Henderson <rth@redhat.com>
1176 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
1177 (expand_stack_vars): Assert large base allocated when used.
1179 2010-10-12 Richard Guenther <rguenther@suse.de>
1181 * tree-ssa-structalias.c (get_constraint_for_1): Constants
1182 only point to nonlocal, not anything.
1184 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1186 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
1187 unwind info for exceptions.
1189 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1192 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
1193 Document optional target selector.
1195 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1197 * flag-types.h: New.
1198 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
1199 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
1201 (OPTIONS_H): Define.
1202 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
1204 * configure.ac (tm_include_list): Include options.h not flags.h.
1205 * configure: Regenerate.
1206 * flags.h: Include flag-types.h. Include options.h at top of file
1208 (enum debug_info_type, enum debug_info_level, enum
1209 debug_info_usage, enum symbol_visibility, struct visibility_flags,
1210 enum ira_algorithm, enum ira_region, enum excess_precision, enum
1211 graph_dump_types, enum stack_check_type,
1212 enum warn_strict_overflow_code): Move to flag-types.h
1213 * opth-gen.awk: Include flag-types.h in options.h.
1215 2010-10-12 Jakub Jelinek <jakub@redhat.com>
1217 * expr.c (store_expr): Share code for STRING_CST and
1218 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
1219 check if target is a MEM.
1221 * rtl.h: Include hashtab.h.
1222 (iterative_hash_rtx): New prototype.
1223 * rtl.c (iterative_hash_rtx): New function.
1224 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
1225 (output_loc_list): Return immediately if emitted is set, set it.
1226 (hash_loc_operands, hash_locs, hash_loc_list,
1227 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
1228 optimize_location_lists_1, optimize_location_lists): New function.
1229 (dwarf2out_finish): Call optimize_location_lists.
1230 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
1232 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1236 * Makefile.in ($(lang_checks_parallel))
1237 ($(lang_checks_parallelized)): Use single quotes for
1238 $(RUNTESTFLAGS), to allow passing quoted content.
1240 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1242 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
1243 actual_oldval. Use __builtin_expect.
1244 (SUBWORD_VAL_CAS): Likewise.
1246 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1248 * recog.c (nonmemory_operand): Call immediate_operand for
1249 CONSTANT_P operands.
1251 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
1253 * config/i386/i386.md (movmem<mode>): Macroize expander from
1254 movmem{si,di} using SWI48 mode iterator.
1255 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
1256 *strmovsi_rex_1 using P mode iterator.
1257 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
1258 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
1259 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
1260 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
1261 (setmem<mode>): Macroize expander from setmem{si,di} using
1262 SWI48 mode iterator.
1263 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
1264 *strsetsi_rex_1 using P mode iterator.
1265 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
1266 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
1267 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
1268 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
1269 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
1270 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
1271 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
1273 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
1274 *strlenqi_rex_1 using P mode iterator.
1276 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
1279 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
1281 (mark_ref_live, mark_ref_dead): Use them.
1282 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
1283 Save the original reg, and use the new functions.
1284 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
1286 (check_and_make_def_conflict): Save the original reg.
1288 2010-10-11 Martin Jambor <mjambor@suse.cz>
1291 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
1294 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1296 * Makefile.in ($(lang_checks_parallel))
1297 ($(lang_checks_parallelized)): Use single quotes for
1298 $(RUNTESTFLAGS), to allow passing quoted content.
1301 * opt-functions.awk (BEGIN): New section.
1302 (lower, upper, digit, alnum): New variables.
1303 (static_var, opt_sanitized_name): Use alnum instead of character
1304 classes, for non-C locale.
1305 * optc-gen.awk: Likewise.
1306 * opth-gen.awk: Likewise.
1308 2010-10-11 Anatoly Sokolov <aesok@post.ru>
1310 * target.def (preferred_reload_class): New hook.
1311 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
1312 * doc/tm.texi: Regenerate.
1313 * targhooks.c (default_preferred_reload_class): New function.
1314 * targhooks.h (default_preferred_reload_class): Declare.
1315 * reload.c (find_dummy_reload): Change preferred_class variable type
1316 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
1318 (find_reloads): Change goal_alternative array type from int to
1319 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
1320 (push_reload, find_reloads_address_part): Use
1321 TARGET_PREFERRED_RELOAD_CLASS target hook.
1322 * reload1.c (emit_input_reload_insns): Ditto.
1323 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
1324 hook. Change rclass argument and secondary_class variable types from
1325 'enum reg_class' to reg_class_t.
1327 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
1328 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
1329 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
1330 Change regclass argument and result types from enum reg_class to
1332 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1334 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1336 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
1337 in masking operations.
1338 (simplify_const_unary_operation): Likewise.
1339 (simplify_binary_operation_1): Likewise.
1340 (simplify_const_binary_operation): Likewise.
1341 (simplify_const_relational_operation): Likewise.
1342 (simplify_ternary_operation): Likewise.
1343 (simplify_immed_subreg): Likewise.
1345 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1348 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
1349 (TARGET_SUPPORTS_WEAK): New.
1350 * doc/tm.texi: Regenerate.
1351 * defaults.h (SUPPORTS_WEAK): Update comment.
1352 (TARGET_SUPPORTS_WEAK): New.
1353 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
1354 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
1356 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
1357 make_decl_one_only): Likewise.
1358 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
1359 TARGET_SUPPORTS_WEAK.
1360 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
1361 instead of SUPPORTS_WEAK.
1363 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1365 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
1367 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1369 * vec.h (VEC_qsort): Define.
1370 * dbxout.c (output_used_types): Use it.
1371 * df-scan.c (df_sort_and_compress_refs): Likewise.
1372 (df_sort_and_compress_mws): Likewise.
1373 * genautomata.c (uniq_sort_alt_states): Likewise.
1374 (evaluate_equiv_classes): Likewise.
1375 (output_trans_table): Likewise.
1376 (output_state): Likewise.
1377 * gimplify.c (compare_case_labels): Likewise.
1378 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
1379 * ipa.c (build_cdtor_fns): Likewise.
1380 * lto.c (lto_wpa_write_files): Likewise.
1381 * sel-sched.c (fill_vec_av_set): Likewise.
1382 * tree-predcom.c (determine_roots_comp): Likewise.
1383 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
1384 (splice_param_accesses): Likewise.
1385 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
1386 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1387 (reassociate_bb): Likewise.
1388 * tree-ssa-sccvn.c (sort_scc): Likewise.
1389 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
1391 2010-10-11 Ian Lance Taylor <iant@google.com>
1393 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
1394 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
1395 TREE_THIS_NOTRAP when appropriate.
1396 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
1397 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
1398 newly created MEM_REF.
1400 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1402 Nathan Froyds patch to hooks FUNCTION_ARG etc.
1403 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
1404 (picochip_incoming_function_arg): Delete.
1405 (picochip_arg_advance): Delete.
1406 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
1407 (FUNCTION_INCOMING_ARG): Delete.
1408 (FUNCTION_ARG_ADVANCE): Delete.
1409 * config/picochip/picochip.c (picochip_function_arg): Take a
1410 const_tree and a bool.
1411 (picochip_incoming_function_arg): Likewise.
1412 (picochip_arg_advance): Likewise.
1413 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1414 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1416 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1419 * ipa.c (build_cdtor): Delete endless loop.
1421 2010-10-07 Andi Kleen <ak@linux.intel.com>
1423 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
1425 (checksum-options): Add.
1426 (cc1-dummy): Remove.
1427 (cc1-checksum): Change to run checksum over object files
1429 * dummy-checksum.c: Remove.
1430 * genchecksum.c: Update copyright.
1431 (usage): Allow multiple arguments.
1433 (dosum): Change for incremental checksum. Remove C output.
1434 (main): Iterate over all argument files. Add C output.
1436 2010-10-11 Joseph Myers <joseph@codesourcery.com>
1438 * params.c (set_param_value_internal): New.
1439 (set_param_value): Use set_param_value_internal.
1440 (maybe_set_param_value, set_default_param_value): New.
1441 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
1442 (maybe_set_param_value, set_default_param_value): Declare.
1443 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
1444 * config/i386/i386.c (ix86_option_override_internal): Use
1445 maybe_set_param_value.
1446 * config/ia64/ia64.c (ia64_option_default_params,
1447 TARGET_OPTION_DEFAULT_PARAMS): New.
1448 (ia64_option_optimization): Move some code to
1449 ia64_option_default_params.
1450 * config/picochip/picochip.c (picochip_option_override): Use
1451 maybe_set_param_value.
1452 * config/rs6000/rs6000.c (rs6000_option_default_params,
1453 TARGET_OPTION_DEFAULT_PARAMS): New.
1454 (rs6000_option_override_internal): Use maybe_set_param_value.
1455 (rs6000_option_optimization): Move some code to
1456 rs6000_option_default_params.
1457 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
1458 * config/sh/sh.c (sh_option_default_params,
1459 TARGET_OPTION_DEFAULT_PARAMS): New.
1460 (sh_option_optimization): Move some code to sh_option_default_params.
1461 * config/sparc/sparc.c (sparc_option_override): Use
1462 maybe_set_param_value.
1463 * config/spu/spu.c (spu_option_default_params,
1464 TARGET_OPTION_DEFAULT_PARAMS): New.
1465 (spu_option_optimization): Move some code to spu_option_default_params.
1466 (spu_option_override): Use maybe_set_param_value.
1467 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
1468 * doc/tm.texi: Regenerate.
1469 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
1470 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
1472 (default_options_optimization): Use maybe_set_param_value.
1473 (finish_options): Use maybe_set_param_value.
1474 * target.def (target_option.default_params): New hook.
1475 * toplev.c (general_init): Call targetm.target_option.default_params.
1477 2010-10-11 Ira Rosen <irar@il.ibm.com>
1479 PR tree-optimization/45902
1480 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
1481 vector type for constants, unless it's a pointer.
1483 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1485 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
1487 2010-10-11 Jakub Jelinek <jakub@redhat.com>
1490 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
1491 (ix86_delegitimize_address): Use it.
1493 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1495 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
1497 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
1499 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
1500 to cum struct in the call to function_arg_advance.
1501 (alpha_function_arg_advance): Mark named as unused.
1503 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
1505 * config/mips/mips.c (mips_handle_option): Make "value" with
1508 2010-10-09 Richard Henderson <rth@redhat.com>
1511 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
1512 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
1513 required_align, tidy the code a bit. Emit split_stack code in the
1514 right place. Mark the return value with the alignment properly.
1515 * expr.h (allocate_dynamic_stack_space): Update decl.
1516 * builtins.c (expand_builtin_apply): Update call to
1517 allocate_dynamic_stack_space.
1518 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
1519 * calls.c (initialize_argument_information): Update call to
1520 allocate_dynamic_stack_space.
1521 (expand_call): Likewise.
1523 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
1524 Don't update_stack_alignment here.
1525 (alloc_stack_frame_space): Make ALIGN unsigned.
1526 (stack_var_cmp): Sort by alignment too.
1527 (partition_stack_vars): Don't merge large and small alignment vars.
1528 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
1529 Take care when BASE is not virtual_stack_vars_rtx.
1530 (expand_stack_vars): Allocate dynamic stack space for large
1531 alignment variables.
1532 (expand_one_stack_var): Update all to expand_one_stack_var_at.
1533 (defer_stack_allocation): True for large alignment vars.
1534 (update_stack_alignment): Merge into ...
1535 (expand_one_var): ... here.
1536 (gimple_expand_cfg): Place code from expand_stack_vars.
1538 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1540 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1541 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
1542 (pdp11_function_arg_advance): New function.
1543 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1545 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1547 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
1548 * libgcc2.c: Likewise.
1550 2010-10-09 Richard Guenther <rguenther@suse.de>
1553 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
1554 Properly check if a decl is an automatic var.
1556 2010-10-09 Richard Guenther <rguenther@suse.de>
1559 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
1561 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1563 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
1564 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1565 * config/mmix/mmix.c (mmix_function_arg): Rename to...
1566 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
1568 (mmix_function_arg): New function.
1569 (mmix_function_incoming_arg): New function.
1570 (mmix_function_arg_advance): New function.
1571 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1572 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1574 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1576 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1577 * config/vax/vax.c (vax_function_arg): New function.
1578 (vax_function_arg_advance): New function.
1579 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1581 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1583 * config/pa/pa-protos.h (function_arg): Delete.
1584 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1585 * config/pa/pa.c (function_arg): Rename to...
1586 (pa_function_arg): ...this. Make static. Take a const_tree and
1588 (pa_function_arg_advance): New function.
1589 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1591 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1593 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1594 * config/m68k/m68k.c (m68k_function_arg): New function.
1595 (m68k_function_arg_advance): New function.
1596 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1598 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1600 * config/avr/avr-protos.h (function_arg): Delete.
1601 (function_arg_advance): Delete.
1602 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1603 * config/avr/avr.c (function_arg): Rename to...
1604 (avr_function_arg): ...this. Make static. Take a const_tree and
1606 (function_arg_advance): Rename to...
1607 (avr_function_arg_advance): ...this. Make static. Take a
1608 const_tree and a bool.
1609 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1611 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1613 * config/alpha/alpha-protos.h (function_arg): Delete.
1614 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1615 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
1616 * config/alpha/alpha.c (function_arg): Rename to...
1617 (alpha_function_arg): ...this. Make static. Take a const_tree and
1618 a bool. Delete TARGET_ABI_UNICOSMK code.
1619 (alpha_function_arg_advance): New function.
1620 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1622 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1624 * config/mep/mep-protos.h (mep_function_arg): Delete.
1625 (mep_function_arg_advance): Delete.
1626 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1627 * config/mep/mep.c (mep_function_arg): Make static. Take a
1628 const_tree and a bool.
1629 (mep_function_arg_advance): Likewise.
1630 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1632 2010-10-09 Richard Guenther <rguenther@suse.de>
1634 PR tree-optimization/45945
1635 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
1637 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
1639 PR tree-optimization/45612
1640 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
1641 Test LABEL_DECLs as well. Fix formatting issues.
1642 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
1643 whose label is present in NON_SSA_VARS.
1644 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
1645 as well. Fix formatting issues.
1646 (visit_bb): Fix typos and formatting issue.
1648 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1650 PR tree-optimization/45950
1651 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
1652 before initializing vno->op.
1654 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
1656 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
1657 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
1659 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
1662 * config/i386/i386.c (ix86_binary_operator_ok): Support
1663 "andhi/andsi/anddi" as a zero-extending move.
1665 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1667 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
1668 into a temporary array.
1670 2010-10-08 Jakub Jelinek <jakub@redhat.com>
1672 PR tree-optimization/45903
1673 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
1674 of {A,L}SHIFTRT of MEM.
1676 2010-10-08 Richard Guenther <rguenther@suse.de>
1678 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1679 Re-construct BLOCK_VARS.
1680 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
1681 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1682 * tree.c (free_lang_data_in_block): Remove.
1683 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
1684 Do not touch the BLOCK tree.
1685 * expr.c (expand_expr_real_1): Allow externals.
1687 2010-10-08 Richard Guenther <rguenther@suse.de>
1689 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
1690 Do not output BLOCK_SUBBLOCKS.
1691 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
1692 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
1693 Re-construct BLOCK_SUBBLOCKS of parent block.
1694 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
1695 for BINFO_BASE_ACCESSES.
1697 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1699 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
1700 (TREE_H): Include $(FLAGS_H) instead of options.h.
1701 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
1702 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1703 * common.opt (flag_complex_method, flag_evaluation_order,
1704 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
1705 Variable declarations.
1706 * configure.ac (tm_include_list): Include flags.h instead of options.h.
1707 * configure: Regenerate.
1708 * flags.h: Condition out contents for target libraries. Include
1709 options.h at end of file.
1710 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
1711 flag_evaluation_order, flag_warn_unused_result): Remove.
1712 * gcc.c (main): Intialize global_options with global_options_init.
1713 * langhooks-def.h (lhd_init_options_struct): Declare.
1714 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1715 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
1716 * langhooks.c (lhd_init_options_struct): New.
1717 * langhooks.h (struct lang_hooks): Add init_options_struct.
1718 Update comment on init_options.
1719 * optc-gen.awk: Generate initializer for global_options_init, not
1721 * opth-gen.awk: Condition out structure declarations for target
1722 libraries. Declare global_options_init.
1723 * opts-common.c: Include flags.h instead of options.h.
1724 * opts.c (flag_warn_unused_result): Remove.
1725 (read_cmdline_options): Take gcc_options parameters. Pass them to
1726 read_cmdline_option.
1727 (initial_lang_mask, initial_min_crossjump_insns,
1728 initial_max_fields_for_field_sensitive,
1729 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
1730 (init_options_once): New. Split out of decode_options.
1731 (init_options_struct): New. Split out of decode_options.
1732 (decode_cmdline_options_to_array_default_mask): New.
1733 (default_options_optimization): New. Split out of decode_options.
1734 (decode_options): Move most code to other functions. Update call
1735 to read_cmdline_options.
1736 (finish_options): New. Split out of decode_options.
1737 * opts.h (decode_options): Add gcc_options parameters.
1738 (init_options_once, init_options_struct,
1739 decode_cmdline_options_to_array_default_mask): New.
1740 * toplev.c (flag_complex_method, flag_ira_algorithm,
1741 flag_ira_region, flag_evaluation_order): Remove.
1742 (general_init): Use global_options_init for initial flag values
1744 (toplev_main): Call init_options_once, init_options_struct,
1745 lang_hooks.init_options_struct,
1746 decode_cmdline_options_to_array_default_mask and
1747 lang_hooks.init_option before decode_options. Update arguments to
1749 * tree.h: Include flags.h instead of options.h.
1751 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1753 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1755 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1757 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
1759 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1760 (FUNCTION_INCOMING_ARG): Delete.
1761 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
1762 (function_arg_slotno): Likewise. Take bool arguments.
1763 (sparc_arg_partial_bytes): Update call to it.
1764 (function_arg): Rename to...
1765 (sparc_function_arg_1): ...this. Take bool arguments.
1766 (sparc_function_arg, sparc_function_incoming_arg): New functions.
1767 (function_arg_advance): Rename to...
1768 (sparc_function_arg_advance): ...this. Take bool argument.
1769 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
1770 (TARGET_FUNCTION_INCOMING_ARG): Define.
1772 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1774 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
1776 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1777 * config/bfin/bfin.c (function_arg_advance): Rename to...
1778 (bfin_function_arg_advance): ...this. Make static. Take const_tree
1780 (function_arg): Rename to...
1781 (bfin_function_arg): ...this. Make static. Take const_tree and bool
1783 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1785 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1787 * config/score/score-protos.h (score_function_arg): Delete.
1788 (score_function_arg_advance): Delete.
1789 * config/score/score3.h (score3_function_arg_advance): Take a
1790 const_tree and a bool.
1791 (score3_function_arg): Likewise.
1792 * config/score/score7.h (score7_function_arg_advance): Likewise.
1793 (score7_function_arg): Likewise.
1794 * config/score/score3.c (score3_classify_arg): Likewise.
1795 (score3_function_arg_advance, score3_function_arg): Likewise.
1796 * config/score/score7.c (score7_classify_arg): Likewise.
1797 (score7_function_arg_advance, score7_function_arg): Likewise.
1798 * config/score/score.c (score_function_arg_advance): Likewise.
1799 (score_function_arg): Likewise. De-const-ify `cum' argument.
1800 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1802 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1804 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
1805 (s390_function_arg): Delete.
1806 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1807 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
1808 (s390_function_arg_integer): Likewise.
1809 (s390_function_arg_advance): Make static. Take a const_tree and
1811 (s390_function_arg): Likewise.
1812 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1814 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1816 * config/spu/spu-protos.h (spu_function_arg): Delete.
1817 * config/spu/spu.h (FUNCTION_ARG): Delete.
1818 (FUNCTION_ARG_ADVANCE): Move code to ...
1819 * config/spu/spu.c (spu_function_arg_advance): New function.
1820 (spu_function_arg): Make static. Take a const_tree and a bool.
1821 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
1822 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1824 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1826 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1828 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1830 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
1831 (init_vn_nary_op_from_op): New function.
1832 (init_vn_nary_op_from_stmt): New function.
1833 (vn_nary_op_lookup_1): New function.
1834 (sizeof_vn_nary_op): New function.
1835 (alloc_vn_nary_op_noinit): New function.
1836 (alloc_vn_nary_op): New function.
1837 (vn_nary_op_insert_into): New function.
1838 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
1839 (vn_nary_op_lookup): Likewise.
1840 (vn_nary_op_lookup_stmt): Likewise.
1841 (vn_nary_op_insert_pieces): Likewise.
1842 (vn_nary_op_insert): Likewise.
1843 (vn_nary_op_insert_stmt): Likewise.
1844 (copy_nary): Likewise.
1845 (set_value_id_for_result): New function.
1846 (set_hashtable_value_ids): Call it.
1848 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1850 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1851 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
1853 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1855 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
1856 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1858 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1861 * cse.c (cse_extended_basic_block): Preserve cc0 info across
1862 debug isnsn. Skip them when searching for cc0 setter.
1863 (set_live_p): Skip debug insns when searching for cc0 user.
1865 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1871 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
1872 type of MEM_REFs to INTEGER_CSTs.
1874 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1876 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
1877 m68hc11_print_operand_address.
1879 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1881 * builtins.c (rewrite_call_expr): Move code to...
1882 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
1883 (rewrite_call_expr_array): New function.
1884 (fold_builtin_sprintf_chk_1): New function.
1885 (fold_builtin_sprintf_chk): Call it.
1886 (gimple_fold_builtin_sprintf_chk): Likewise.
1887 (fold_builtin_snprintf_chk_1): New function.
1888 (fold_builtin_snprintf_chk): Call it.
1889 (gimple_fold_builtin_snprintf_chk): Likewise.
1890 (gimple_rewrite_call_expr): Delete.
1892 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1894 * config.host: Update copyright year.
1896 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1898 * config.host (host_lto_plugin_soname): New shell variable.
1899 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
1900 * config.in: Regenerate.
1901 * configure: Regenerate.
1902 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
1903 LTO plugin shared library.
1905 2010-10-07 Richard Henderson <rth@redhat.com>
1907 * target.h (enum unwind_info_type): Move ...
1908 * coretypes.h: ... here.
1910 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
1912 * doc/objc.texi (Fast enumeration protocol): Mention that
1913 'unsigned int' can also be used instead of 'unsigned long' in
1914 countByEnumeratingWithState:objects:count:.
1916 2010-10-07 Martin Jambor <mjambor@suse.cz>
1918 * tree-sra.c (struct access): New field grp_assignment_write.
1919 (dump_access): Dump grp_assignment_write.
1920 (build_accesses_from_assign): Set grp_assignment_write.
1921 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
1922 (mark_read_status): Renamed to mark_rw_status, individual values
1924 (analyze_access_subtree): Changed type of mark_write to
1925 mark_read_status. Fixed propagating of mark_read and
1926 mark_write. Changed benefit estimate. Updated comment.
1928 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1931 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
1932 check for vectype_out returned by get_vectype_for_scalar_type().
1934 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1937 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
1938 constraint, add register specifier in instruction template.
1939 (neon_vec_pack_trunc_<mode>): Likewise.
1940 (neon_vec_<US>mult_<mode>): Add register specifier to
1941 instruction template.
1943 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1945 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
1947 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
1948 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
1949 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
1950 (cygwin2.o): Likewise.
1951 * config/i386/cygwin1.c: Delete file.
1952 * config/i386/cygwin2.c: Likewise.
1953 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
1954 make all {%!mno-cygwin} ones unconditional.
1955 (STARTFILE_SPEC): Likewise.
1956 (REAL_LIBGCC_SPEC): Likewise.
1957 (LIB_SPEC): Likewise.
1958 (CXX_WRAP_SPEC): Likewise.
1959 (LINK_SPEC): Likewise.
1960 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
1961 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
1962 (cygwin_gplusplus_include_dir): Delete now-unused array.
1963 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
1964 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
1965 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
1966 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
1967 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
1968 (cygwin_local_include_dir): Delete now-unused array.
1969 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
1970 (cygwin_cross_include_dir): Delete now-unused array.
1971 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
1972 (cygwin_tool_include_dir): Delete now-unused array.
1973 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
1974 (cygwin_standard_include_dir): Delete now-unused array.
1975 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
1976 (GEN_CVT_ARRAY): Delete now-unused macro definition.
1977 (cvt_to_mingw): Delete now-unused array.
1978 (mingw_scan): Remove prototype of deleted function.
1979 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
1980 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
1981 * doc/invoke.texi (-mcygwin): Don't document removed option.
1982 (-mno-cygwin): Likewise.
1984 2010-10-07 Richard Guenther <rguenther@suse.de>
1986 * machmode.h (mode_for_vector): Declare.
1987 * stor-layout.c (mode_for_vector): New function, split out from ...
1988 (layout_type): ... here.
1989 * tree-vectorizer.h (current_vector_size): Declare.
1990 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
1991 mask vector type is available.
1992 (get_vectype_for_scalar_type): Rename to ...
1993 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
1995 (get_vectype_for_scalar_type): New wrapper around
1996 get_vectype_for_scalar_type_and_size using current_vector_size.
1997 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
1998 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
1999 of vect_analyze_loop here.
2000 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
2001 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
2003 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
2004 V8SF to V8SI conversion builtin.
2006 2010-10-07 Richard Guenther <rguenther@suse.de>
2008 * target.def (autovectorize_vector_sizes): New target hook.
2009 * targhooks.c (default_autovectorize_vector_sizes): New function.
2010 * targhooks.h (default_autovectorize_vector_sizes): Declare.
2011 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2013 * doc/tm.texi: Update.
2014 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
2015 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2017 2010-10-07 Richard Guenther <rguenther@suse.de>
2019 * target.def (units_per_simd_word): Rename to ...
2020 (preferred_simd_mode): ... this. Return mode instead of size.
2021 * targhooks.c (default_units_per_simd_word): Rename to ...
2022 (default_preferred_simd_mode): ... this. Return word_mode.
2023 * targhooks.h (default_preferred_simd_mode): Declare.
2024 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
2025 (arm_preferred_simd_mode): ... this. Re-implement.
2026 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
2027 (ix86_preferred_simd_mode): ... this. Re-implement.
2028 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
2029 (sparc_preferred_simd_mode): ... this. Re-implement.
2030 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
2031 (mips_preferred_simd_mode): ... this. Re-implement.
2032 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
2033 (rs6000_preferred_simd_mode): ... this. Re-implement.
2034 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
2035 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
2036 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
2037 * doc/tm.texi: Update.
2039 2010-10-07 Richard Guenther <rguenther@suse.de>
2042 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
2045 2010-10-07 Alan Modra <amodra@gmail.com>
2047 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
2048 rather than sign extension by hand.
2050 2010-10-07 Jan Hubicka <jh@suse.cz>
2053 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
2055 2010-10-07 Richard Guenther <rguenther@suse.de>
2058 * configure.ac: Fix typo.
2059 * configure: Regenerated.
2061 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2063 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
2064 define_builtin_std where it's unnecessary.
2065 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
2067 2010-10-06 Anatoly Sokolov <aesok@post.ru>
2069 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
2070 * doc/tm.texi.in: Regenerate.
2071 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
2072 * targhooks.c (default_class_likely_spilled_p): Don't use the
2073 CLASS_LIKELY_SPILLED_P macro.
2075 * config/arm/arm.md: Update comment.
2077 2010-10-06 Jan Hubicka <jh@suse.cz>
2079 * ipa.c (cgraph_remove_unreachable_nodes): External references can
2081 (cgraph_externally_visible_p): We can not bring local comdats that
2082 are known to linker; fix handling of internal visibility.
2083 (function_and_variable_visibility): Likewise.
2085 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
2087 PR rtl-optimization/45394
2088 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
2089 (struct rtx_subst_pair): Remove AFTER field.
2090 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
2091 (propagate_for_debug): Remove MOVE parameter and adjust.
2092 (try_combine): In the special case where I2 is a PARALLEL, combine only
2093 destinations of SETs and set I2SRC to the I2 source.
2094 Adjust calls to propagate_for_debug throughout.
2095 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
2098 2010-10-06 Olivier Hainque <hainque@adacore.com>
2100 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
2101 switch on insn codes as sequence of ifs.
2103 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
2105 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
2106 be UI_NONE for picochip.
2107 (picochip_option_override): Do not disable exception flags.
2108 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2111 2010-10-06 Richard Guenther <rguenther@suse.de>
2113 * Makefile.in (regmove.o): Depend on $(TARGET_H).
2115 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2117 Implemented fast enumeration for Objective-C.
2118 * c-parser.c (objc_could_be_foreach_context): New.
2119 (c_lex_one_token): Recognize RID_IN keyword in a potential
2120 Objective-C foreach context.
2121 (c_parser_declaration_or_fndef): Added parameter. Accept
2122 Objective-C RID_IN keyword as terminating a declaration; in that
2123 case, return the declaration in the new parameter.
2124 (c_parser_extenral_declaration): Updated calls to
2125 c_parser_declaration_or_fndef.
2126 (c_parser_declaration_or_fndef): Same change.
2127 (c_parser_compound_statement_nostart): Same change.
2128 (c_parser_label): Same change.
2129 (c_parser_objc_methodprotolist): Same change.
2130 (c_parser_omp_for_loop): Same change.
2131 (c_parser_for_statement): Detect and parse Objective-C foreach
2133 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
2134 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
2135 fast enumeration parsing code to turn off the c99 error but still
2136 perform checks on the loop declarations.
2137 * c-tree.h (check_for_loop_decls): Updated declaration.
2138 * doc/objc.texi: Document fast enumeration.
2140 2010-10-06 Nick Clifton <nickc@redhat.com>
2142 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
2143 (MDR_REGNUM): Define.
2144 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
2145 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
2146 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
2147 (REGISTER_NAMES): Add MDR.
2148 (DWARF2_DEBUGGING_INFO): Define to 1.
2149 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2150 (F): New function. Sets RTX_FRAME_RELATED_P.
2151 (mn10300_gen_multiple_store): Use F.
2152 (expand_prologue): Use F. Use gen_movsf() to push floating
2154 (expand_epilogue): Use gen_movsf() to pop floating point registers.
2155 (mn10300_option_override): Disable combine stack adjust pass.
2157 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
2160 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
2161 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
2163 2010-10-06 Jakub Jelinek <jakub@redhat.com>
2165 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
2166 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
2167 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
2168 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
2169 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
2170 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
2171 BUILT_IN_TOUPPER): Mark as leaf.
2174 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2175 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2176 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2177 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2178 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
2179 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
2180 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
2182 2010-10-05 Anatoly Sokolov <aesok@post.ru>
2184 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
2185 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2186 (m68hc11_class_likely_spilled_p): New function.
2188 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
2190 * c-parser.c (c_parser_objc_method_definition): Updated comment.
2192 2010-10-05 Jan Hubicka <jh@suse.cz>
2194 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
2196 * opts.c (decode_options): Handle lto partitions.
2197 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
2198 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
2200 2010-10-05 Jan Hubicka <jh@suse.cz>
2202 * cgraphunit.c (assemble_function): Output thunks and aliases before
2203 the function itself.
2205 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
2207 * config/picochip/picochip.c (picochip_option_override): Disable
2208 exception flags for picochip.
2210 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2212 * opts-common.c (handle_option, handle_generated_option,
2213 read_cmdline_option, set_option): Add diagnostic_context
2214 parameter. Update calls among these functions.
2215 (set_option): Don't use global_dc.
2216 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
2217 (decode_options): Pass global_dc to enable_warning_as_error.
2218 (common_handle_option): Pass global_dc to enable_warning_as_error.
2219 (enable_warning_as_error): Add diagnostic_context parameter.
2220 Document parameters. Don't use global_dc. Pass
2221 diagnostic_context parameter to handle_generated_option.
2222 * opts.h (set_option, handle_option, handle_generated_option,
2223 read_cmdline_option, enable_warning_as_error): Add
2224 diagnostic_context parameter.
2225 * Makefile.in (lto-opts.o): Update dependencies.
2226 * coretypes.h (struct diagnostic_context, diagnostic_context):
2228 * diagnostic.h (diagnostic_context): Don't declare typedef here.
2229 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
2230 * langhooks-def.h (struct diagnostic_context): Don't declare here.
2231 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
2232 using diagnostic_context typedef.
2233 * langhooks.c (lhd_initialize_diagnostics): Declare using
2234 diagnostic_context typedef.
2235 * langhooks.h (struct diagnostic_context): Don't declare here.
2236 (initialize_diagnostics, print_error_function): Declare using
2237 diagnostic_context typedef.
2238 * lto-opts.c: Include diagnostic.h.
2239 (lto_reissue_options): Pass global_dc to set_option. Pass
2240 DK_UNSPECIFIED not 0.
2241 * plugin.c (plugins_internal_error_function): Declare using
2242 diagnostic_context typedef.
2243 * plugin.h (struct diagnostic_context): Don't declare here.
2244 (plugins_internal_error_function): Declare using
2245 diagnostic_context typedef.
2247 2010-10-05 Olivier Hainque <hainque@adacore.com>
2248 Nicolas Roche <roche@adacore.com>
2250 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
2251 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
2253 2010-10-05 Ira Rosen <irar@il.ibm.com>
2255 PR tree-optimization/45752
2256 * tree-vect-slp.c (vect_get_mask_element): Remove static
2257 variables, make them function arguments.
2258 (vect_transform_slp_perm_load): Pass new arguments to
2259 vect_get_mask_element.
2261 2010-10-05 Richard Guenther <rguenther@suse.de>
2263 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
2264 (gimple_mod_pow2): Likewise.
2265 (gimple_mod_subtract): Likewise.
2266 (gimple_ic): Likewise.
2267 (gimple_stringop_fixed_value): Likewise.
2268 * tree-profile.c (tree_init_edge_profiler): Mark profile
2269 functions nothrow and leaf.
2270 (add_abnormal_goto_call_edges): Remove.
2271 (tree_gen_edge_profiler): Work on SSA form.
2272 (tree_gen_ic_profiler): Likewise. Simplify.
2273 (do_tree_profiling): Update SSA form.
2274 (pass_tree_profile): Remove.
2275 (do_tree_profiling): Likewise.
2276 (gate_tree_profile_ipa): New function.
2277 (pass_ipa_tree_profile): New.
2278 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
2279 state of instrumented functions.
2280 * passes.c (init_optimization_passes): Remove early non-SSA
2281 inlining. Move profiling after early optimizations.
2282 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
2283 (pass_ipa_early_inline): Likewise.
2284 * tree-pass.h (pass_ipa_early_inline): Remove.
2285 (pass_tree_profile): Likewise.
2286 (pass_ipa_tree_profile): Declare.
2288 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2289 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
2291 * gcc/config/s390/s390.c (z196_cost): New.
2292 (s390_handle_arch_option): Add -march=z196.
2293 (s390_option_override): Use the new cost function and use the z10
2294 defaults also for z196.
2295 (legitimate_reload_constant_p): Adjust comment.
2296 (legitimate_reload_fp_constant_p): New function.
2297 (s390_preferred_reload_class): Distingiush between FP and Int constants.
2298 (preferred_la_operand_p): Avoid la with index on z196.
2299 (s390_adjust_priority): Trigger also for z196.
2300 (s390_issue_rate): Issue rate for z196 is 3.
2301 (s390_z10_fix_long_loop_prediction): Rename to ...
2302 (s390_fix_long_loop_prediction): ... this.
2303 (s390_reorg): Apply the z10 adjustments also for z196.
2304 (s390_loop_unroll_adjust): Do this also for z196.
2305 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
2306 (enum processor_flags): Add PF_Z196.
2307 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
2308 (TARGET_CPU_Z196, TARGET_Z196): New macros.
2309 * gcc/config.gcc: Enable z196 for --with-arch.
2310 * gcc/config/s390/2817.md: New file.
2311 * gcc/config/s390/2084.md: New type for multiply and add.
2312 * gcc/config/s390/2097.md: Likewise.
2313 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
2314 (UNSPECV_ATOMIC_OP): New constants.
2315 (fmadddf, fmaddsf): New values for type attribute.
2316 (z196prop): New insn attribute.
2317 (cpu, cpu_facility): Add z196.
2318 (ATOMIC_Z196): New code iterator.
2319 (noxa): New code attribute.
2320 (gk): New mode attribute.
2321 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
2322 Support load zero for fp constants.
2323 (fixuns_truncdddi2, fixuns_trunctddi2)
2324 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
2326 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
2327 (popcounthi2, popcountqi2): New expander.
2328 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
2329 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
2330 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
2332 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
2333 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
2334 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
2335 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
2336 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
2337 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
2338 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
2339 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
2340 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
2341 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
2342 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
2343 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
2344 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
2345 Support new z196 instructions.
2347 2010-10-05 Richard Guenther <rguenther@suse.de>
2350 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
2351 case where gimplification optimizes away the stmt.
2353 2010-10-04 Jakub Jelinek <jakub@redhat.com>
2356 * var-tracking.c (strip_pointer_flags): New function.
2357 (emit_note_insn_var_location): If rtx_equal_p check failed,
2358 retry on locations simplified with simplify_replace_fn_rtx
2359 and strip_pointer_flags as its callback.
2361 2010-10-04 Jan Hubicka <jh@suse.cz>
2363 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
2364 (can_refer_decl_in_current_unit_p): ... this one; reverse return
2365 value; handle comdats too.
2366 (canonicalize_constructor_val): Use it; handle function_decls
2368 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2369 * gimple.c (get_base_address): Accept all kinds of decls.
2371 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2373 * flags.h (g_switch_value, g_switch_set): Remove.
2374 * opts.c (g_switch_value, g_switch_set): Remove.
2375 * config/g.opt (G): Add Var(g_switch_value).
2376 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
2377 (alpha_option_override): Check global_options_set.x_g_switch_value
2378 instead of g_switch_set.
2379 (alpha_in_small_data_p): Remove cast in comparison with
2381 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
2382 g_switch_value to unsigned HOST_WIDE_INT.
2383 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
2384 with g_switch_value.
2385 (frv_handle_option): Don't handle -G here.
2386 (frv_option_override): Check global_options_set.x_g_switch_value
2387 instead of g_switch_set. Don't modify g_switch_set.
2388 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
2389 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
2390 g_switch_value to unsigned HOST_WIDE_INT.
2391 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
2392 (ia64_option_override): Check global_options_set.x_g_switch_value
2393 instead of g_switch_set.
2394 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
2396 (lm32_in_small_data_p): Remove cast in comparison with
2398 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
2399 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
2401 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
2402 (m32r_init): Check global_options_set.x_g_switch_value instead of
2404 (m32r_in_small_data_p): Remove cast in comparison with
2406 (m32r_file_start): Format g_switch_value with %d.
2407 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
2408 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
2409 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
2411 (microblaze_option_override): Check
2412 global_options_set.x_g_switch_value instead of g_switch_set.
2413 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
2414 (mips_option_override): Check global_options_set.x_g_switch_value
2415 instead of g_switch_set.
2416 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
2417 (rs6000_file_start): Format g_switch_value with %d.
2418 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
2419 comparisons with g_switch_value.
2420 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2421 global_options_set.x_g_switch_value instead of g_switch_set.
2422 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2423 global_options_set.x_g_switch_value instead of g_switch_set.
2424 * config/score/score.c (score_handle_option): Don't handle -G here.
2425 * config/score/score3.c (score3_option_override): Check
2426 global_options_set.x_g_switch_value instead of g_switch_set.
2427 * config/score/score7.c (score7_option_override): Check
2428 global_options_set.x_g_switch_value instead of g_switch_set.
2430 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2432 * common.opt (fira-coalesce): Remove.
2434 * doc/invoke.texi (flag_ira_coalesce): Remove.
2436 * ira-color.c (allocno_coalesced_p): Move before
2437 copy_freq_compare_func.
2438 processed_coalesced_allocno_bitmap): Ditto.
2439 (update_conflict_hard_regno_costs): Don't use
2440 ALLOCNO_FIRST_COALESCED_ALLOCNO.
2441 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
2442 (assign_hard_reg): Assume no coalesced allocnos.
2443 (get_coalesced_allocnos_attributes): Remove.
2444 (bucket_allocno_compare_func): Assume no coalesced allocnos.
2445 (push_allocno_to_stack): Ditto.
2446 (remove_allocno_from_bucket_and_push): Use
2447 ira_print_expanded_allocno instead of print_coalesced_allocno.
2448 (push_allocnos_to_stack): Assume uncoalesced allocnos.
2449 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
2450 all_conflicting_hard_regs.
2451 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
2452 (setup_allocno_left_conflicts_size): Ditto.
2453 (put_allocno_into_bucket): Ditto.
2454 (copy_freq_compare_func): Remove.
2455 (copy_freq_compare_func, merge_allocnos): Move before
2456 coalesced_pseudo_reg_freq_compare.
2457 coalesced_allocno_conflict_p): Ditto.
2458 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
2459 parameter. Assume it true.
2460 (color_allocnos): Assume uncoalesced allocnos. Use
2461 ira_print_expanded_allocno instead of print_coalesced_allocno.
2462 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
2465 * ira.c: Remove comment about coalescing.
2467 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2469 * config/mips/mips.h (target_flags_explicit): Declare for
2472 2010-10-04 Andi Kleen <ak@linux.intel.com>
2474 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
2475 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
2477 2010-10-04 Matthias Klose <doko@ubuntu.com>
2479 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2480 multilib osdirname if it exists.
2481 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2483 2010-10-04 Jakub Jelinek <jakub@redhat.com>
2486 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
2487 arg0's type or its unsigned counterpart as utype. Convert
2488 arg1 to utype unconditionally.
2490 2010-10-04 Julian Brown <julian@codesourcery.com>
2492 * expr.c (expand_assignment): Add assertion to prevent emitting
2493 null rtx for movmisalign pattern.
2494 (expand_expr_real_1): Likewise.
2495 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
2496 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
2497 (arm_vector_alignment_reachable): New.
2498 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
2499 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
2500 (arm_print_operand): Include alignment qualifier in %A.
2501 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
2502 (movmisalign<mode>): New expander.
2503 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
2506 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2508 * optc-gen.awk: Define global_options_set. Don't define
2509 target_flags_explicit.
2510 * opth-gen.awk: Declare global_options_set. Define
2511 target_flags_explicit as macro.
2512 * opts-common.c (handle_option): Take opts_set and generated_p
2514 (handle_generated_option, read_cmdline_option, set_option): Take
2516 (set_option): Use opts_set instead of hardcoding target_flags and
2517 target_flags_explicit.
2518 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
2519 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
2520 flag_value_profile_transformations_set, flag_peel_loops_set,
2521 flag_branch_probabilities_set, flag_inline_functions_set,
2522 flag_ipa_cp_set, flag_ipa_cp_clone_set,
2523 flag_predictive_commoning_set, flag_unswitch_loops_set,
2524 flag_gcse_after_reload_set): Remove.
2525 (common_handle_option, lang_handle_option, target_handle_option):
2526 Take opts_set parameter. Assert that it is &global_options_set.
2527 (common_handle_option): Don't set _set variables. Check opts_set
2528 instead of such variables.
2529 (enable_warning_as_error): Pass &global_options_set to
2530 handle_generated_option.
2531 * opts.h (cl_option_handler_func.handler, set_option,
2532 handle_option, handle_generated_option, read_cmdline_option): Add
2533 opts_set parameters.
2534 (handle_option): Add generated_p parameter.
2535 * config/i386/i386.c (ix86_function_specific_save,
2536 ix86_function_specific_restore): Updat for renaming of
2537 target_flags_explicit field.
2538 * config/i386/i386.opt (target_flags_explicit): Rename to
2539 ix86_target_flags_explicit.
2540 * config/ia64/ia64.c (ia64_override_options_after_change): Check
2541 global_options_set.x_flag_selective_scheduling and
2542 global_options_set.x_flag_selective_scheduling2, not
2543 sel_sched_switch_set.
2544 * flags.h (sel_sched_switch_set,
2545 flag_speculative_prefetching_set): Remove.
2546 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
2547 that it is &global_options_set.
2548 (process_command): Pass &global_options_set to read_cmdline_option.
2549 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
2551 * toplev.c (target_flags_explicit): Remove.
2553 2010-10-04 Jan Hubicka <jh@suse.cz>
2556 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
2557 use get_ref_base_and_offset to handle references.
2558 (fold_const_aggregate_ref): Update.
2560 2010-10-04 Martin Jambor <mjambor@suse.cz>
2562 PR tree-optimization/45572
2563 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
2564 ipa_check_create_node_params.
2565 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
2567 2010-10-04 Yao Qi <yao@codesourcery.com>
2569 * doc/passes.texi: Clean up.
2571 2010-10-03 Ian Lance Taylor <iant@google.com>
2573 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
2574 referring to a field using a typedef name.
2575 (find_anonymous_field_with_type): New static function.
2576 (convert_to_anonymous_field): New static function.
2577 (convert_for_assignment): If -fplan9-extensions, permit converting
2578 pointer to struct to pointer to anonymous field.
2579 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
2580 (is_duplicate_field): New static function.
2581 (detect_field_duplicates_hash): If -fplan9-extensions, check for
2582 typedef names duplicating field names.
2583 (detect_field_duplicates): Likewise.
2584 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
2585 (C Dialect Options): Document -fplan9-extensions.
2586 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
2588 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
2590 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
2592 (vect_create_data_ref_ptr): Likewise.
2593 * tree-vect-stmts.c (vectorizable_store): Likewise.
2594 (perm_mask_for_reverse): Likewise.
2595 (reverse_vec_elements): Likewise.
2596 (vectorizable_load): Likewise.
2598 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2600 * cppbuiltin.c: New file.
2601 * cppbuiltin.h: New file.
2602 * Makefile.in: Take into account cppbuiltin.{h,c}.
2604 2010-10-03 Andi Kleen <ak@linux.intel.com>
2606 * lto-cgraph.c (input_cgraph): Check for missing sections.
2608 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
2610 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
2611 to nonimmediate_operand. Force operand 2 to register when allowed.
2612 (*<shiftrt_insn><mode>3_mask): Ditto.
2613 (*<rotate_insn><mode>3_mask): Ditto.
2615 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
2617 PR tree-optimization/45720
2618 PR tree-optimization/45764
2619 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2620 Don't accept backwards consecutive accesses.
2621 (vect_create_data_ref_ptr): Disallow negative steps.
2623 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
2624 (perm_mask_for_reverse): Removed.
2625 (reverse_vec_elements): Likewise.
2626 (vectorizable_load): Don't handle negative steps.
2628 2010-10-02 Jan Hubicka <jh@suse.cz>
2630 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
2631 call destination is known.
2633 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2636 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
2639 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2641 * doc/install.texi (Configuration): Document build_configargs,
2642 host_configargs, target_configargs.
2644 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
2646 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
2647 (*<shiftrt_insn><mode>3_mask): Ditto.
2648 (*<rotate_insn><mode>3_mask): Ditto.
2650 2010-10-01 Steve Ellcey <sje@cup.hp.com>
2652 PR tree-optimization/44716
2653 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2654 (HOT_TEXT_SECTION_NAME): Define.
2656 2010-10-01 Nick Clifton <nickc@redhat.com>
2658 * common.opt: Add -fcombine-stack-adjustments.
2659 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
2660 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
2661 flag_combine_stack_adjustments.
2662 * doc/invoke.texi: Document the new option.
2664 2010-10-01 Richard Guenther <rguenther@suse.de>
2666 PR tree-optimization/45854
2667 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
2669 2010-10-01 Anthony Green <green@moxielogic.com>
2671 * config.gcc: Fix moxie-*-rtems* configuration.
2673 2010-10-01 Richard Guenther <rguenther@suse.de>
2675 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
2676 (gen_decl_die): Likewise.
2678 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2680 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
2681 to the function code for SPU MD builtins.
2682 (spu_expand_builtin): Update.
2683 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
2685 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2687 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
2688 sjlj_except_unwind_info.
2690 2010-10-01 Tristan Gingold <gingold@adacore.com>
2692 * configure.ac: Define the nop insn for avr*-*-*
2693 * configure: Regenerate.
2695 2010-10-01 Alan Modra <amodra@gmail.com>
2698 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
2699 extend toc_restore_insn.
2701 2010-09-30 Richard Guenther <rguenther@suse.de>
2703 PR tree-optimization/43959
2704 * function.c (gimplify_parameters): Use create_tmp_reg instead of
2707 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
2709 * config/sh/sh.c (sh_expand_prologue): Set
2710 current_function_static_stack_size.
2712 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2714 * configure.ac: Check for Solaris 8 ld with .hidden support.
2715 * configure: Regenerate.
2717 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2720 * graphite.c (graphite_initialize): Call scev_reset.
2722 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2724 * sese.h (scev_analyzable_p): Return false for real or floating
2725 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
2727 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2729 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
2731 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
2733 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
2734 Do not allocate ub_expr, it is passed in initialized.
2736 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2738 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
2739 (build_cloog_prog): Dump CLooG input file when
2740 flag_graphite_dump_cloog is set. This is disabled on trunk.
2741 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
2743 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2745 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
2746 verify_dominators for CDI_POST_DOMINATORS.
2747 * sese.h: Remove comment about CDI_POST_DOMINATORS.
2748 (recompute_all_dominators): Remove call to free_dominance_info
2749 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
2750 for CDI_POST_DOMINATORS.
2752 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2754 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
2755 over pbb_dim_iter_domain.
2757 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2759 * graphite-flattening.c: Fix comments.
2761 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2763 * Makefile.in (OBJS-common): Add graphite-flattening.o.
2764 (graphite-flattening.o): New rule.
2765 * common.opt (floop-flatten): New flag.
2766 * doc/invoke.texi (-floop-flatten): Documented.
2767 * graphite-flattening.c: New.
2768 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
2769 * graphite-poly.h (flatten_all_loops): Declared.
2770 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
2771 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
2772 is set, also set flag_graphite.
2774 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2776 * graphite-poly.c (cloog_checksum): New.
2777 * graphite-poly.h (cloog_checksum): Declared.
2779 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2781 * graphite-poly.c (pbb_number_of_iterations): Removed.
2782 (pbb_number_of_iterations_at_time): Correctly compute the number
2783 of iterations in the transformed loop.
2784 * graphite-poly.h (pbb_number_of_iterations): Removed.
2786 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2788 * graphite-poly.h (lst_update_scattering_seq): Removed.
2789 (lst_update_scattering): Correctly handle outermost loop dewey
2792 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2794 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
2795 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
2796 * graphite-poly.h (lst_niter_for_loop): New.
2798 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2800 * graphite-poly.c (apply_poly_transforms): Do not abort when the
2801 transform read from disk is not legal. Call fatal_error instead.
2803 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2805 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
2806 (print_scop_header): Removed. Inlined in the only call place...
2807 (print_scop): ... here.
2809 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2811 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2813 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2815 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
2817 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2819 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
2820 (dot_deps_stmt): Same.
2821 * graphite-poly.c (dot_lst): Same.
2823 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2825 * graphite-blocking.c (scop_do_strip_mine): Do not call
2826 graphite_legal_transform.
2827 (scop_do_block): Same.
2829 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2831 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
2834 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2836 * tree-scalar-evolution.c (instantiate_array_ref): New.
2837 (instantiate_scev_r): Also handle ARRAY_REFs.
2839 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2841 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2842 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
2843 RESULT_DECL, and FIELD_DECL. Return false for an
2844 SSA_NAME_IS_DEFAULT_DEF.
2845 (compute_scalar_evolution_in_loop): Do not further analyze the
2846 scalar evolution when no_evolution_in_loop_p returns true.
2848 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2850 * tree-chrec.h (evolution_function_is_affine_p): Do not check
2851 whether CHREC_LEFT is invariant. A function is affine when
2852 CHREC_RIGHT is invariant.
2854 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2856 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
2858 (rewrite_degenerate_phi): Same.
2859 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
2861 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2863 * graphite-scop-detection.c (graphite_can_represent_scev,
2864 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
2865 graphite_can_represent_loop): Remove outermost_loop.
2867 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2870 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
2871 handle GIMPLE_CALLs with no LHS.
2873 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2875 * graphite-poly.c (init_graphite_out_file): New.
2876 (init_graphite_in_file): New.
2877 (apply_poly_transforms): Updated to enable reading and writing of
2878 multiple scop files.
2880 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
2882 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
2885 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2887 * graphite-clast-to-gimple.c (precision_for_value): Adjust
2888 computation of precision by 1.
2890 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2892 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
2893 (openscop_read_polyhedron_matrix): New.
2894 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
2895 (openscop_read_N_int): Same.
2896 * graphite-poly.c (openscop_read_N_int): New.
2897 (openscop_read_one_int): New.
2898 (openscop_read_N_string): New.
2899 (openscop_read_one_string): New.
2900 (openscop_read_powerset_matrix): New.
2901 (graphite_read_transforms): Remove.
2902 (graphite_read_scatt): New.
2903 (graphite_read_scop_file): New.
2904 (apply_poly_transforms): Updated to call graphite_read_scop_file.
2906 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2908 * graphite-poly.c: Change include order.
2910 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2912 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
2913 (cloog_matrix_nrows): New.
2915 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2917 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
2919 * graphite-poly.c (openscop_print_scattering_function_1): Same.
2920 (print_scattering_function_1): Same.
2921 (openscop_print_pbb_domain): Same.
2922 (openscop_print_scop_context): Same.
2923 (print_scop_context): Same.
2925 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2927 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
2928 (openscop_print_pdr_polyhedron): Print pph.
2930 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2932 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
2933 priority signed types.
2935 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2937 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
2938 the call to lang_hooks.types.type_for_size. Call
2939 build_nonstandard_integer_type.
2941 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2943 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
2944 (openscop_print_polyhedron_matrix): New.
2945 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
2946 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
2947 (openscop_print_pdr_powerset): New.
2948 (openscop_print_powerset_matrix): New.
2949 (openscop_print_scattering_function_1): New.
2950 (print_scattering_function): Add support for scattering names and
2952 (graphite_write_transforms): Remove.
2953 (print_pdr_access_layout): Updated to support OpenScop format.
2955 (openscop_print_pbb_domain): New.
2956 (print_pbb_body): Added a parameter to allow indicating that pbb_body
2958 (print_pbb): Updated to call the new print_pbb_body.
2959 (openscop_print_scop_context): New.
2960 (print_scop_header): New.
2961 (print_scop): Updated to call print_scop_header.
2962 * graphite-poly.h: Document OpenScop format.
2964 2010-09-30 Anatoly Sokolov <aesok@post.ru>
2966 * config/cris/m32c.c (cris_memory_move_cost): New.
2967 (cris_register_move_cost): Make static. Change arguments type from
2968 enum reg_class to reg_class_t.
2969 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2970 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2971 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
2973 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2976 * config/i386/i386.c (ix86_gimplify_va_arg): Use
2977 INTVAL (XEXP (slot, 1)) as prev_size.
2979 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2982 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
2983 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
2985 * config/rs6000/option-defaults.h (toplevel): Change #if
2986 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
2987 global option changes.
2989 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2991 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
2993 PR tree-optimization/31261
2994 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
2995 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
2997 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3000 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
3001 special-casing for generators and turn into ...
3002 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
3003 rule, for better error messages in case of toplevel dependency errors.
3004 (genprog): Add hooks, rename to ...
3005 (genprogerr): ... this, and let genprog also contain check,
3007 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
3008 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
3009 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
3011 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
3012 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3014 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
3015 for GMP, MPFR and MPC.
3017 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3019 * config/sparc/sparc.opt (mimpure-text): Move ...
3020 * config/sol2.opt: ... here. Correct description.
3021 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
3022 * doc/invoke.texi (Option Summary, SPARC Options): Move
3023 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
3024 (Option Summary, Solaris 2 Options): ... here.
3025 (Submodel Options, Solaris 2 Options): New menu entry.
3026 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
3027 (Solaris 2 Options): ... here.
3029 2010-09-30 Michael Eager <eager@eagercon.com>
3031 * extend.texi (interrupt_handler): Add MicroBlaze to list.
3032 (save_volatiles): Describe option for MicroBlaze.
3033 * invoke.texi: Add MicroBlaze Options.
3034 * contrib.texi: Add acknowledgment.
3035 * md.texi: Add MicroBlaze d and z constraints.
3036 * install.texi: Add microblaze-*-elf.
3037 * configure.ac: Add microblaze-*-* to target list.
3038 * configure: Regenerate.
3039 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
3040 * config/microblaze/microblaze-protos.h: New.
3041 * config/microblaze/crti.s: New.
3042 * config/microblaze/predicates.md: New.
3043 * config/microblaze/linux.h: New.
3044 * config/microblaze/microblaze.md: New.
3045 * config/microblaze/constraints.md: New.
3046 * config/microblaze/crtn.s: New.
3047 * config/microblaze/microblaze.opt: New.
3048 * config/microblaze/microblaze-c.c: New.
3049 * config/microblaze/t-microblaze: New.
3050 * config/microblaze/microblaze.c: New.
3051 * config/microblaze/microblaze.h: New.
3053 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3055 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
3056 parse @optional/@required and set the flags as appropriate.
3058 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
3060 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
3062 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3064 * opt-functions.awk (static_var): Update comment.
3065 (var_ref): Return offsetof expression or -1, not variable address.
3066 * optc-gen.awk: Generate structure field initializers instead of
3067 static variables. Expect -1 for missing variables instead of null
3068 pointer. Add gcc_options parameters to generated functions.
3069 * opth-gen.awk: Generate structure fields for static variables.
3070 Add gcc_options parameters to generated functions.
3071 * common.opt (optimize, optimize_size): Add variables.
3072 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
3073 &global_options to cl_target_option_restore.
3074 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
3075 &global_options to cl_optimization_restore, cl_target_option_save
3076 and cl_target_option_restore.
3077 (ix86_set_current_function): Pass &global_options to
3078 cl_target_option_restore.
3079 * config/pdp11/pdp11.h (optimize): Remove.
3080 * config/rs6000/rs6000.h (optimize): Remove.
3081 * config/sh/sh.h (optimize): Remove.
3082 * config/xtensa/xtensa.h (optimize): Remove.
3083 * coretypes.h (struct gcc_options): Declare.
3084 * diagnostic.c (diagnostic_initialize): Initialize
3085 context->option_state.
3086 (diagnostic_report_diagnostic): Pass option_state to
3087 option_enabled hook.
3088 * diagnostic.h (diagnostic_context.option_enabled): Add void *
3090 (diagnostic_context.option_state): New field.
3091 * final.c (final_start_function, final, final_scan_insn): Rename
3092 optimize parameter to optimize_p.
3093 * flags.h (optimize, optimize_size): Remove.
3094 * function.c (invoke_set_current_function_hook): Pass
3095 &global_options to cl_optimization_restore.
3096 * gcc.c (driver_handle_option): Take gcc_options parameter.
3097 Assert that it is &global_options.
3098 (process_command): Pass &global_options to read_cmdline_option.
3099 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
3101 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
3102 &global_options to set_option.
3103 * opts-common.c (handle_option, handle_generated_option,
3104 read_cmdline_option, set_option): Take explicit gcc_options
3105 parameters. Use option_flag_var.
3106 (option_flag_var): New.
3107 * opts.c (common_handle_option, lang_handle_option,
3108 target_handle_option): Take gcc_options parameter. Assert that it
3110 (read_cmdline_options): Pass &global_options to read_cmdline_option.
3111 (print_filtered_help): Use option_flag_var. Pass &global_options
3113 (common_handle_option): Use option_flag_var.
3114 (option_enabled): Take opts parameter. Use option_flag_var.
3115 (get_option_state): Take gcc_options parameter. Use
3116 option_flag_var. Pass gcc_options parameter to option_enabled.
3117 (enable_warning_as_error): Pass &global_options to
3118 handle_generated_option.
3119 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
3120 (cl_option_handler_func.handler): Take gcc_options parameter.
3121 (option_enabled, get_option_state, set_option, handle_option,
3122 handle_generated_option, read_cmdline_option): Take gcc_options
3124 * toplev.c (optimize, optimize_size): Remove.
3125 (print_switch_values): Pass &global_options to option_enabled.
3126 (option_affects_pch_p): Use option_flag_var. Pass &global_options
3127 to get_option_state.
3128 (general_init): Initialize global_dc->option_state.
3129 * tree.c (build_optimization_node): Pass &global_options to
3130 cl_optimization_save.
3131 (build_target_option_node): Pass &global_options to
3132 cl_target_option_save.
3134 2010-09-30 Martin Jambor <mjambor@suse.cz>
3136 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
3137 zero sized bit-fields.
3139 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3141 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
3142 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
3143 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
3144 (c_parser_objc_class_declaration): Same change.
3145 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
3146 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
3147 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
3148 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
3149 and RID_AT_PUBLIC instead of RID_PUBLIC.
3150 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
3151 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
3153 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
3155 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
3156 Add links to current providers of packages for Solaris and IRIX.
3158 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3160 Merge from 'apple/trunk' branch on FSF servers.
3161 * c-parser.c: Applied change originally in c-parse.in.
3163 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3166 * c-decl.c (start_decl): Check for redeclaration of class name.
3167 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
3169 2010-09-29 Steve Ellcey <sje@cup.hp.com>
3171 * config/ia64/ia64.c (ia64_builtin_decl): New.
3172 (TARGET_BUILTIN_DECL): Define.
3173 (ia64_builtins): New.
3174 (ia64_init_builtins): Save decls in ia64_builtins.
3176 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
3179 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
3180 (move2add_use_add3_insn): Likewise.
3181 (reload_cse_move2add): Likewise.
3182 * rtlanal.c (get_full_rtx_cost): New function.
3183 * rtl.h (struct full_rtx_costs): New.
3184 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
3185 costs_add_n_insns): New inline functions.
3186 (get_full_rtx_cost): Declare.
3189 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
3190 invariants. Check for reg_equiv_invariant.
3191 (reload): Assert that spilled_pseudos is empty when returning.
3193 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
3195 * config/i386/mingw32.h (TARGET_64BIT): replaced by
3196 TARGET_64BIT_DEFAULT in #if check.
3198 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
3200 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
3202 2010-09-29 Mike Stump <mikestump@comcast.net>
3204 * config/darwin.h (flag_mkernel): Remove.
3205 (flag_apple_kext): Likewise.
3207 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3208 Jack Howarth <howarth@bromo.med.uc.edu>
3210 * config/darwin.opt (undefined): Add.
3212 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
3215 * configure.ac: Add --enable-indirect-function option.
3216 * config.gcc: Add default_gnu_indirect_function.
3217 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
3218 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
3219 * varasm.c (do_assemble_alias): Adjust for macro name change.
3220 * configure: Rebuilt.
3221 * doc/install.texi: Document --enable-indirect-function.
3223 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3225 * doc/options.texi (Variable, Var, Init): Update documentation
3226 without reference to VarExists.
3227 (VarExists): Remove.
3228 * common.opt, config/i386/i386.opt, config/linux.opt,
3229 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
3230 Don't use VarExists.
3232 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3234 * optc-gen.awk: Generate global_options initializer instead of
3235 individual variables. Add x_ prefix to names of structure members.
3236 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
3237 names of structure members.
3238 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3239 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
3240 * doc/tm.texi: Regenerate.
3241 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3242 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3243 * c-parser.c (disable_extension_diagnostics,
3244 restore_extension_diagnostics): Update names of cpp_options members.
3245 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3246 * common.opt (fcompare-debug-second): Don't use Var.
3247 * config/alpha/alpha.h (target_flags): Remove.
3248 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3249 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3250 * config/bfin/bfin.h (target_flags): Remove.
3251 * config/cris/cris.h (target_flags): Remove.
3252 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
3253 cl_target_option members.
3254 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
3255 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
3256 ix86_can_inline_p): Update names of cl_target_option members.
3257 * config/i386/i386.h (ix86_isa_flags): Remove.
3258 * config/lm32/lm32.h (target_flags): Remove.
3259 * config/mcore/mcore.h (mcore_stack_increment): Remove.
3260 * config/mcore/mcore.md (addsi3): Remove extern declaration of
3261 flag_omit_frame_pointer.
3262 * config/mep/mep.h (target_flags): Remove.
3263 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3264 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3265 * config/mmix/mmix.h (target_flags): Remove.
3266 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
3267 flag_expensive_optimizations): Remove.
3268 * config/s390/s390.h (flag_pic): Remove.
3269 * config/score/score-conv.h (target_flags): Remove.
3270 * config/sh/sh.h (sh_fixed_range_str): Remove.
3271 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
3272 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3273 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3274 * diagnostic.c (diagnostic_initialize): Update names of
3275 diagnostic_context members.
3276 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
3277 warn_system_headers.
3278 (diagnostic_report_warnings_p): Update for new names.
3279 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3280 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
3281 HARD_FRAME_POINTER_IS_ARG_POINTER.
3282 * flags.h (flag_compare_debug): Declare.
3283 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3284 * opts.c (flag_compare_debug): Define.
3285 (common_handle_option): Update names of diagnostic_context
3286 members. Handle -fcompare-debug-second.
3287 (fast_math_flags_struct_set_p): Update names of cl_optimization
3289 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3290 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3291 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3292 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3293 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3294 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3295 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
3296 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3297 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3299 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3301 * config/picochip/picochip.c (picochip_output_internal_label):
3302 This function can now be called for debug CFI labels, which can come
3303 in the middle of a vliw instruction. Postpone until end of vliw.
3305 2010-09-29 Richard Guenther <rguenther@suse.de>
3307 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
3308 (DECL_FILE_SCOPE_P): Use it.
3309 (TYPE_FILE_SCOPE_P): New macro.
3311 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3313 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
3314 a CPP_NAME which is a reserved word, clearly separate cases for
3315 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
3317 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3319 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
3320 token->value with the canonical spelling. Do exactly like C and
3321 C++ and leave it as it is.
3323 2010-09-28 Richard Henderson <rth@redhat.com>
3325 * config/alpha/alpha.c (alpha_builtins): New.
3326 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
3327 (alpha_builtin_function): New.
3328 (alpha_add_builtins, alpha_init_builtins): Use it.
3330 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
3332 * doc/standards.texi (Standards): Expanded the section on
3333 Objective-C and Objective-C++.
3335 2010-09-28 DJ Delorie <dj@redhat.com>
3338 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
3341 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3343 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
3344 attributes on methods.
3345 (c_parser_objc_method_definition): Handle attributes.
3346 (c_parser_objc_methodproto): Likewise.
3347 (c_parser_objc_maybe_method_attributes): New.
3348 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
3349 missing definition, similar to that in ObjC++.
3351 2010-09-28 Richard Henderson <rth@redhat.com>
3353 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
3354 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3355 (CONFIG_SJLJ_EXCEPTIONS): Remove.
3356 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
3357 (STACK_CHECK_PROTECT): Likewise.
3358 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
3359 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
3360 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
3361 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
3362 (dwarf2out_assembly_start): Likewise.
3363 * except.c (init_eh): Use targetm.except_unwind_info.
3364 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
3365 (output_one_function_exception_table): Likewise.
3366 * final.c: Unconditionally include dwarf2out.h.
3367 (final_start_function): Unconditionally call dwarf2out routines.
3368 (final_end_function, final_scan_insn): Likewise.
3369 * function.c (expand_function_end): Use targetm.except_unwind_info.
3370 * opts.c (decode_options): Use targetm.except_unwind_info.
3371 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
3372 * target.def (debug_unwind_info, except_unwind_info): New.
3373 * target.h (enum unwind_info_type): New.
3374 * targhooks.c (default_debug_unwind_info): New.
3375 (default_except_unwind_info): New.
3376 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
3377 * targhooks.h: Declare them.
3378 * tree-tailcall.c: Include "target.h"
3379 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
3380 * Makefile.in (tree-tailcall.o): Update.
3381 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
3382 (lhd_gcc_personality): Likewise.
3384 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
3385 (TARGET_EXCEPT_UNWIND_INFO): New.
3386 (DWARF2_UNWIND_INFO): Update.
3387 (TARGET_DEBUG_UNWIND_INFO): New.
3388 * doc/tm.texi: Rebuild.
3390 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
3391 targetm.except_unwind_info.
3393 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
3394 (arm_except_unwind_info): New.
3395 (arm_compute_func_type): Use it.
3396 (arm_expand_prologue, thumb_pushpop): Likewise.
3397 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
3398 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
3399 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
3400 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
3401 (DWARF2_UNWIND_INFO): Remove.
3402 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3403 (ARM_EABI_UNWIND_TABLES): Remove.
3405 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
3406 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
3407 (ia64_except_unwind_info): New.
3408 (ia64_output_function_prologue): Use it.
3409 (ia64_add_bundle_selector_before): Likewise.
3410 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
3411 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
3412 (TARGET_UNWIND_INFO): Remove.
3414 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
3416 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3418 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
3419 (c_parser_objc_protocol_definition): Likewise.
3420 (c_parser_external_declaration): Provide dummy attribute arguments.
3421 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
3422 (c_parser_objc_class_definition): Handle attributes.
3423 (c_parser_objc_protocol_definition): Likewise.
3425 2010-09-28 Tobias Burnus <burnus@net-b.de>
3429 * toplev.h (save_decoded_options, save_decoded_options_count):
3430 New global variables.
3431 * toplev.c (save_decoded_options, save_decoded_options_count):
3434 2010-09-28 Ian Lance Taylor <iant@google.com>
3436 * config/i386/i386.c (ix86_supports_split_stack): Test
3437 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
3439 2010-09-28 Ian Lance Taylor <iant@google.com>
3442 * opts.c (decode_options): Don't test whether the target supports
3443 split stack if flag_split_stack == 0.
3445 2010-09-28 Jan Hubicka <jh@suse.cz>
3447 * builtin-attrs.def (ATTR_LEAF): New attribute.
3448 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
3449 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
3450 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
3451 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
3452 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
3453 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
3454 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
3455 * sync-builtins.def: Annotate all builtins by leaf.
3456 * omp-builtins.def: Annotate all builtins by leaf.
3457 * builtins.def: Annotate relevant builtins with leaf attribute.
3458 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3459 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
3462 2010-09-28 Jan Hubicka <jh@suse.cz>
3464 * tree-ssa-ccp.c (fold_ctor_reference): New function.
3465 (fold_const_aggregate_ref): Use it.
3466 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
3467 into external static.
3469 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3472 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
3473 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
3474 (ix86_solaris_return_in_memory): Remove.
3475 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
3476 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3477 (TARGET_SUBTARGET_DEFAULT): Redefine.
3478 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
3479 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3480 (TARGET_SUBTARGET_DEFAULT): Redefine.
3481 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
3483 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
3485 2010-09-29 Alan Modra <amodra@gmail.com>
3488 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
3489 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
3490 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
3492 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
3493 (rs6000_emit_prologue): Don't just create frame save info for r2,
3496 2010-09-28 Richard Henderson <rth@redhat.com>
3498 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
3499 when 8 bytes are requested.
3501 2010-09-28 Tristan Gingold <gingold@adacore.com>
3503 * config/avr/avr.c (expand_prologue): Set
3504 current_function_static_stack_size.
3506 2010-09-28 Tristan Gingold <gingold@adacore.com>
3508 * config/alpha/alpha.md: Change the initial condition of the
3511 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
3513 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
3514 Split from *avx_<maxmin:code><mode>3.
3515 (*avx_<smaxmin:code><mode>3): Ditto.
3516 * config/i386/i386.md (maxmin): Remove code iterator.
3518 2010-09-27 Ian Lance Taylor <iant@google.com>
3520 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
3521 requires assembler support for CFI directives.
3523 2010-09-27 Richard Henderson <rth@redhat.com>
3525 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
3527 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3529 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
3530 that AFTER is not in the range FROM..TO, inclusive.
3532 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3533 Bernd Schmidt <bernds@codesourcery.com>
3535 PR rtl-optimization/45792
3536 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
3537 If not all insns are to be merged, for each edge, stash the
3538 next candidate after the to-be-merged insns before doing the
3539 merge, and use them for the retry at the new insertion point.
3540 Handle CC0 targets when retrying.
3542 2010-09-27 Ian Lance Taylor <iant@google.com>
3544 * common.opt (fsplit-stack): New option.
3545 * opts.c (decode_options): Set flag_split_stack to final value.
3546 * target.def (supports_split_stack): New hook.
3547 * gcc.c (STACK_SPLIT_SPEC): Define.
3548 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
3549 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
3550 (Code Gen Options): Document -fsplit-stack.
3551 * doc/extend.texi (Function Attributes): Mention no_split_stack.
3552 (Function Attributes): Document no_split_stack.
3553 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
3554 TARGET_SUPPORTS_SPLIT_STACK.
3555 * doc/tm.texi: Rebuild.
3556 * function.c (thread_prologue_and_epilogue_insns): If
3557 flag_split_stack, add split stack prologue.
3558 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
3559 * varasm.c (saw_no_split_stack): New static variable.
3560 (assemble_start_function): Set saw_no_split_stack if the function
3561 has the no_split_stack attribute.
3562 (file_end_indicate_split_stack): New function.
3563 * output.h (file_end_indicate_split_stack): Declare.
3564 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
3566 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
3568 * config/i386/i386.c (ix86_option_override_internal): Don't set
3569 expand_builtin_va_start to NULL if -fsplit-stack.
3570 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
3572 (ix86_va_start): If -fsplit-stack, get overflow pointer from
3573 scratch register set by prologue.
3574 (ix86_code_end): If -fsplit-stack, call
3575 file_end_indicate_split_stack.
3576 (ix86_supports_split_stack): New static function.
3577 (SPLIT_STACK_AVAILABLE): Define.
3578 (split_stack_prologue_scratch_regno): New static function.
3579 (split_stack_fn): New static variable.
3580 (ix86_expand_split_stack_prologue): New function.
3581 (ix86_live_on_entry): New static function.
3582 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
3583 (output_pic_addr_const): Likewise.
3584 (i386_asm_output_addr_const_extra): Likewise.
3585 (ix86_expand_call): Change return type to rtx. Return the new
3587 (TARGET_SUPPORTS_SPLIT_STACK): Define.
3588 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3589 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
3590 (split_stack_prologue, split_stack_return): New insns.
3591 (split_stack_space_check): New insn.
3592 * config/i386/i386.h (struct machine_function): Add
3593 split_stack_varargs_pointer field.
3594 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
3595 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3596 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3597 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3598 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
3600 (ix86_expand_call): Update declaration.
3602 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3604 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
3605 code. Added byref, which was missing in the list of codes.
3606 Explain that enumeration values are encoded as the integer type
3607 that the compiler uses to store them. Explain and make examples
3608 of how 'const' interacts with pointers, and the complication of
3609 the encoding of 'const char *'.
3610 (Legacy type encoding): New subsection, explaining that GCC emits
3611 incorrect type encodings for the NeXT runtime for compatibility
3613 (@@encode): New subsection, explaining @encode and particularly
3614 that protocol qualifiers are not recognized inside an @encode()
3616 (Method signatures): New subsection, explaining how method
3617 signatures are encoded.
3619 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3621 Merge from 'apple/trunk' branch on FSF servers. Removed small
3622 change in build_conditional_expr that had been added when fixing
3623 PR objc/27377 and which did the same check in a less complete way.
3625 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3628 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
3629 looking for objective-c common pointer types.
3631 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3634 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
3635 use their ObjC common type.
3637 2010-09-27 Richard Guenther <rguenther@suse.de>
3639 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
3641 2010-09-27 Jie Zhang <jie@codesourcery.com>
3643 * print-tree.c (print_node): Print in-constant-pool.
3645 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
3647 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
3648 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
3649 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
3650 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
3652 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3654 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
3655 from pro_epilogue_adjust_stack_<mode>_{1,2}.
3656 (pro_epilogue_adjust_stack_<mode>_add): Rename from
3657 pro_epilogue_adjust_stack_<mode>_3.
3658 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
3659 renamed pro_epilogue_adjust_stack_{si,di}_add.
3660 (ix86_expand_prologue): Use indirect functions. Update for renamed
3661 pro_epilogue_adjust_stack_{si,di}_sub.
3663 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3665 * config/i386/i386.md (movmsk_df): New insn.
3666 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
3667 sequence for TARGET_SSE_MATH.
3669 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
3671 * config/mips/mips.c (mips_builtin_decls): Declare.
3672 (mips_init_builtins): Store function declarations in
3674 (mips_builtin_decl): New function.
3675 (TARGET_BUILTIN_DECL): Define.
3677 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
3678 Richard Henderson <rth@redhat.com>
3680 * config/i386/cygwin.asm: Include auto-host.h.
3681 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
3682 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
3683 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
3684 alignment code from the 64-bit path. Use gas local labels.
3685 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
3686 from _di_2. Remove the useless constant integer argument.
3687 (pro_epilogue_adjust_stack_<mode>_3): New.
3688 (allocate_stack_worker_probe_<mode>): Macroize from
3689 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
3690 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
3691 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
3692 (__chkstk_ms): New function.
3693 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
3694 * gcc/config/i386/t-interix: Likewise.
3695 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
3696 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3697 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
3698 * configure, config.in: Rebuild.
3700 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
3702 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
3703 statements because of the return slot optimization.
3705 2010-09-25 Anatoly Sokolov <aesok@post.ru>
3707 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
3708 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
3709 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3710 (class_likely_spilled_p): Rename to...
3711 (avr_class_likely_spilled_p): ...this. Make static. Change argument
3712 type to reg_class_t.
3714 2010-09-24 Jan Hubicka <jh@suse.cz>
3716 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
3717 (lto_symtab_resolve_symbols): Set it.
3718 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
3719 store resolution field in cgraph/varpool.
3720 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
3721 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
3722 (cgraph_dump_node): Drop used_from_object_file.
3723 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
3724 (cgraph_function_body_availability): Use decl_replaceable_p.
3725 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
3726 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
3727 cgraph_used_from_object_file_p.
3728 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
3729 cgraph_used_from_object_file_p.
3730 (resolution_used_from_other_file_p): New functoin.
3731 (cgraph_used_from_object_file_p): New predicate.
3732 * cgraph.h: Include plugin-api.h
3733 (struct cgraph_local_info): Remove used_from_object_file.
3734 (struct cgraph_node): Add resolution field.
3735 (struct varpool_node): Likewise; remove used_from_object_file;
3736 reove const_value_known.
3737 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
3738 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
3739 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3740 varpool_used_from_object_file_p): Declare.
3741 (varpool_get_node, varpool_extra_name_alias): Update prototype.
3742 * tree.h (DECL_REPLACEABLE_P): Remove.
3743 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
3744 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
3745 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3746 input_overwrite_node, input_node, input_varpool_node): Stream
3748 * expr.c (expand_expr_real_1): Use const_value_known_p
3749 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
3751 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
3752 (function_and_variable_visibility): Set resolution for local vars
3753 and functions; use varpool_used_from_object_file_p.
3754 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
3756 (default_binds_local_p_1): Use resolutoin info.
3757 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
3758 * varpool.c (varpool_get_node): Constify.
3759 (const_value_known_p): Do not use vnode->const_value_known;
3760 use decl_replaceable_p.
3761 (varpool_finalize_decl): Do not set const_value_known.
3762 (cgraph_variable_initializer_availability): Use decl_replaceable_p
3763 (varpool_extra_name_alias): Return new node.
3764 (varpool_used_from_object_file_p): New function.
3766 2010-09-24 Richard Henderson <rth@redhat.com>
3768 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
3769 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
3770 (do_spill): Use REG_CFA_OFFSET.
3771 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
3773 (ia64_expand_epilogue): Likewise.
3774 (process_set): Split into ...
3775 (process_cfa_adjust_cfa): this,
3776 (process_cfa_register): this,
3777 (process_cfa_offset): and this new function.
3778 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
3779 instead of REG_FRAME_RELATED_EXPR.
3781 2010-09-24 Olivier Hainque <hainque@adacore.com>
3783 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
3785 2010-09-24 Jan Hubicka <jh@suse.cz>
3787 * doc/extend.texi: (attribute leaf): Document.
3788 * tree.c (local_define_builtin): Handle ECF_LEAF.
3789 (build_common_builtin_nodes): Set ECF_LEAF where needed.
3790 * tree.h (ECF_LEAF): New.
3791 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
3792 overwrittable and unavailable functions.
3793 (ipa_init): Put all_module_statics into optimization_summary_obstack.
3794 (copy_global_bitmap): Do not copy all_module_statics.
3795 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
3796 (propagate): Handle overwritable and unavailable leaf functions;
3797 initialize global info for overwritable and unavailable leaf functions;
3798 do not free all module statics.
3799 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
3801 * calls.c (flags_from_decl_or_type): Handle leaf.
3802 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
3805 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
3807 * gengtype.c: Reindented.
3808 * gengtype.h: Reindented.
3809 * gengtype-parse.c: Reindented.
3811 2010-09-24 Jan Hubicka <jh@suse.cz>
3813 PR tree-optimization/45738
3814 PR tree-optimization/45741
3815 * expr.c (string_constant): Allow CONST_DECL too;
3816 check that DECL_INITIAL is set.
3817 * varpool.c (const_value_known_p): Only look into VAR_DECL
3820 2010-09-24 Joseph Myers <joseph@codesourcery.com>
3822 * common.opt (undef): New.
3824 2010-09-24 Jakub Jelinek <jakub@redhat.com>
3827 * rtl.h (enum global_rtl_index): Add
3828 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
3829 (LAST_VIRTUAL_POINTER_REGISTER): Define.
3830 (virtual_preferred_stack_boundary_rtx,
3831 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
3832 (LAST_VIRTUAL_REGISTER): Increase by one.
3833 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
3834 instead of LAST_VIRTUAL_REGISTER.
3835 * function.c (instantiate_new_reg): Handle
3836 virtual_preferred_stack_boundary_rtx.
3837 * emit-rtl.c (init_virtual_regs): Handle
3838 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3839 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
3840 * explow.c (round_push): If crtl->preferred_stack_boundary
3841 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
3842 virtual_preferred_stack_boundary_rtx alignment instead of
3843 crtl->preferred_stack_boundary alignment.
3844 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
3845 macros. Never decrease crtl->preferred_stack_boundary,
3846 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
3847 instead of PREFERRED_STACK_BOUNDARY. Don't modify
3848 stack_pointer_delta in dynamic allocation, even when size
3850 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
3852 * print-rtl.c (print_rtx): Handle
3853 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3854 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
3855 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
3856 * config/frv/frv.c (frv_emit_movsi): Likewise.
3857 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
3858 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
3862 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
3865 * calls.c (expand_call): Make sure that all variable sized
3866 adjustments are multiple of preferred stack boundary after
3869 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
3870 Dominique Dhumieres <dominiq@lps.ens.fr>
3873 * gcc/config/darwin-driver.c (darwin_default_min_version):
3874 Adjust size passed to memcpy in two places.
3876 2010-09-24 Richard Guenther <rguenther@suse.de>
3878 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
3879 Make sure to not call set_type_context with error_mark_node.
3880 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
3882 2010-09-24 Richard Guenther <rguenther@suse.de>
3884 * Makefile.in (OBJS-onestep): Remove.
3885 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
3886 (libbackend.a): Remove onestep support.
3887 (libbackend.o): Remove.
3888 * configure.ac (--enable-intermodule): Remove.
3889 * configure: Regenerate.
3891 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
3893 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
3894 reaching the end of a block if it occurs at a DEBUG_INSN.
3896 2010-09-09 Tristan Gingold <gingold@adacore.com>
3899 * config/vms/vms-crt0-64.c: Removed.
3900 * config/vms/vms-crt0.c: Removed.
3901 * config/vms/vms-psxcrt0-64.c: Removed.
3902 * config/vms/vms-psxcrt0.c: Removed.
3903 * config/vms/vms-ucrt0.c: New file.
3904 * config/vms/t-vms64: Removed.
3905 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
3906 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
3907 * config.gcc (alpha-dec-vms): Use t-vms.
3909 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3911 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
3912 underfull hbox in DVI output.
3913 (-fobjc-class-cxx-cdtors): Same change.
3914 (-fobjc-exceptions): Tidied up documentation. Explain what the
3915 option does, but moved the (lenghty) description of the exception
3916 syntax into objc.texi.
3917 (-fobjc-gc): Explain that the option is not useful with the GNU
3919 (-fzero-link): Explain that the GNU runtime always works in
3921 * doc/objc.texi: All sections: simplified @node declarations
3922 removing specification of next, previous, up node.
3923 (Objective-C): Updated introduction.
3924 (Garbage Collection): Updated. The bohem-gc library is now
3925 included in gcc itself. Mention that this section only applies to
3926 the GNU Objective-C runtime.
3927 (compatibility_alias): Small tidy up.
3928 (Exceptions): New section mostly containing text previously in the
3929 description of the -fobjc-exception command-line option.
3930 (Synchronization): Same.
3932 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
3934 * config/i386/i386.md (ix86_code_end): Move the initialization of
3935 xops array near the consumer. Use AX_REG and SP_REG instead of
3936 numerical constants.
3938 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3940 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
3941 method [methodname]' for an Objective-C method instead of the less
3942 satisfactory 'too many arguments to function' (with no method name).
3944 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
3946 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
3947 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
3948 (execute_update_addresses_taken): Remove parameter. Execute the
3949 optimization unconditionally.
3950 * passes.c (execute_function_todo): Call execute_update_addresses_taken
3951 unconditionally if TODO_rebuild_alias is set, else only when optimizing
3952 if TODO_update_address_taken is set.
3954 2010-09-23 Anatoly Sokolov <aesok@post.ru>
3956 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3957 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
3958 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3959 (arm_output_addr_const_extra): Make static.
3961 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
3963 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
3964 define as unspec_volatile.
3965 ("nops"): Define as unspec_volatile. Use fputs to write to
3966 asm_out_file directly. Output NOPs on separate lines using while loop.
3967 * config/i386/i386.c (ix86_code_end): Use fputs to write to
3968 asm_out_file directly. Output NOPs on separate lines using while loop.
3970 2010-09-23 Richard Guenther <rguenther@suse.de>
3972 PR tree-optimization/45565
3973 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3974 Make sure to adjust the fndecl before replacing the stmt.
3976 2010-09-23 Richard Guenther <rguenther@suse.de>
3979 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
3980 gimplifying MEM_REF.
3982 2010-09-23 Alan Modra <amodra@gmail.com>
3984 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
3985 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
3987 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
3989 PR rtl-optimization/44374
3990 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
3991 * df-core.c (df_set_bb_dirty): Set it.
3992 * ifcvt.c (find_memory): Remove function.
3993 (dead_or_predicable): Use can_move_insns_across.
3994 * df.h (can_move_insns_across): Declare function.
3995 * cfgcleanup.c (block_was_dirty): New static variable.
3996 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
3997 than df_get_bb_dirty.
3998 (try_head_merge_bb): New static function.
3999 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
4001 * df-problems.c: Include "target.h"
4002 (df_simulate_find_uses): New static function.
4003 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
4004 (find_memory, find_memory_store): New static functions.
4005 (can_move_insns_across): New function.
4006 * Makefile.in (df-problems.o): Update dependencies.
4008 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
4011 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
4012 is specified and the suffix of the file isn't ".c".
4013 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4015 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4017 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
4018 * doc/cppopts.texi: Fix markup of index entry.
4019 * doc/extend.texi (Constructing Calls): Fix markup of
4020 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
4021 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
4022 (Vague Linkage, C++ Attributes): Fix markup of index entries and
4024 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
4026 (C Dialect Options, C++ Dialect Options, Warning Options)
4027 (Debugging Options, Spec Files, Darwin Options)
4028 (i386 and x86-64 Options, MIPS Options)
4029 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
4030 index entries, avoid abbreviations, allow URLs to wrap, avoid
4031 long lines, avoid overlong pages from long @itemx lists.
4032 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
4033 * doc/standards.texi (Standards): Likewise.
4034 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
4036 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4038 * opts-common.c (prune_options): Make static. Work with decoded
4040 (decode_cmdline_options_to_array): Call prune_options. Don't
4041 resize option array here.
4042 * opts.h (prune_options): Remove prototype.
4043 * gcc.c (process_command): Take decoded options; don't call
4044 decode_cmdline_options_to_array here. Use decoded options for argv[0].
4045 (main): Call decode_cmdline_options_to_array here instead of
4046 prune_options. Update call to process_command.
4047 * config/darwin-driver.c: Include opts.h.
4048 (darwin_default_min_version): Work with decoded options. Don't
4049 handle -b or -V here.
4050 * config/darwin.h (darwin_default_min_version): Update prototype.
4051 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
4052 darwin_default_min_version.
4053 * config/i386/cygwin.h (mingw_scan): Update prototype.
4054 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
4055 * config/i386/cygwin1.c: Include opts.h.
4056 (mingw_scan): Work with decoded options.
4057 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
4058 * config/t-darwin (darwin-driver.o): Update dependencies.
4060 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4062 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
4063 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
4064 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
4065 -force-link, -force-link=, -language, -language=,
4066 -library-directory, -library-directory=, -no-canonical-prefixes,
4067 -no-standard-libraries, -no-warnings, -optimize, -output,
4068 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
4069 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
4070 -print-file-name=, -print-libgcc-file-name,
4071 -print-multi-directory, -print-multi-lib,
4072 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
4073 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
4074 -profile, -save-temps, -shared, -specs, -specs=, -static,
4075 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
4077 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
4078 * gcc.c (A Short Introduction to Adding a Command-Line Option):
4080 (cc1_options): Correct specs for passing down --help,
4081 --target-help and --help=*. Add spec for passing down --version.
4082 (struct option_map, option_map, target_option_translations,
4083 translate_options): Remove.
4084 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
4085 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
4086 OPT_fhelp_ and OPT_ftarget_help.
4087 (process_command): Don't call translate_options. Call
4088 decode_cmdline_options_to_array before checking for
4089 -no-canonical-prefixes using decoded options.
4090 * opts-common.c (tm.h): Update comment on #include.
4091 (find_opt): Allow abbreviations of long options.
4092 (struct option_map, option_map): New.
4093 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
4095 (target_option_translations): New.
4096 (decode_cmdline_options_to_array): Handle
4097 TARGET_OPTION_TRANSLATE_TABLE in driver.
4098 * opts.c (common_handle_option): Don't handle OPT_fhelp,
4099 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
4101 2010-09-22 Richard Guenther <rguenther@suse.de>
4103 * tree-inline.c (optimize_inline_calls): Schedule cleanups
4104 only if we inlined something. Block compaction and conditional
4105 folding are done by cfg cleanup. Schedule update-address-taken.
4106 (tree_function_versioning): Remove redundant call to number_blocks.
4107 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
4108 folding is done by cfg cleanup.
4109 * passes.c (init_optimization_passes): Remove update-address-taken
4110 pass after IPA inlining.
4112 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4114 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
4115 to update conditions. Fix reg_mode[] check.
4117 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
4119 * config/picochip/picochip.md (movhicc): Use expand to check whether
4120 movhicc is available and split it after reload.
4122 2010-09-22 Richard Guenther <rguenther@suse.de>
4124 * tree-ssanames.c (release_dead_ssa_names): Do not remove
4126 * passes.c (init_optimization_passes): Remove early CFG cleanup.
4127 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
4128 (pass_cleanup_cfg): Likewise.
4129 (execute_fixup_cfg): Cleanup.
4130 * tree-pass.h (pass_cleanup_cfg): Remove.
4132 2010-09-22 Martin Jambor <mjambor@suse.cz>
4134 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
4135 builtins if it is true.
4136 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
4139 2010-09-22 Martin Jambor <mjambor@suse.cz>
4141 * tree-sra.c (struct access): New field grp_no_warning.
4142 (create_access_replacement): Set TREE_NO_WARNING according to
4144 (create_artificial_child_access): Use build_ref_for_model and set
4145 grp_no_warning if build_user_friendly_ref_for_offset fails.
4146 (propagate_subaccesses_across_link): Likewise.
4148 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
4151 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
4154 2010-09-22 Tristan Gingold <gingold@adacore.com>
4156 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
4158 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
4160 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
4161 * config/i386/i386.c (decide_alg): Update for rename.
4163 2010-09-22 Jakub Jelinek <jakub@redhat.com>
4165 PR rtl-optimization/45739
4166 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
4167 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
4169 2010-09-21 Anatoly Sokolov <aesok@post.ru>
4171 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
4172 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
4174 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
4175 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4177 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4180 * c-parser.c (c_parser_objc_method_definition): Check the return
4181 value of objc_start_method_definition and if false is returned,
4182 parse the method definition but emit no code.
4184 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4187 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
4188 call objc_get_interface_ivars ().
4190 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
4193 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
4194 static chain-register is used for 64-bit.
4196 2010-09-21 Richard Guenther <rguenther@suse.de>
4198 * dwarf2out.c (is_cu_die): New function.
4199 (add_pubtype): Use it.
4200 (gen_subprogram_die): Likewise.
4201 (gen_struct_or_union_type_die): Likewise.
4202 (dwarf2out_finish): Likewise.
4203 (comp_unit_die): Rename to ...
4204 (single_comp_unit_die): ... this.
4205 (comp_unit_die): New function lazily constructing and
4206 returning single_comp_unit_die.
4207 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
4208 base_type_die, subrange_type_die, modified_type_die,
4209 lower_bound_default, add_bound_info, add_prototyped_attribute,
4210 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
4211 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
4212 force_decl_die, gen_namespace_die, dwarf2out_decl,
4213 dwarf2out_start_source_file, dwarf2out_end_source_file,
4214 prune_unused_types, dwarf2out_finish): Use it.
4215 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
4216 the global list of translation-unit decls.
4217 (dwarf2out_init): Do not create single_comp_unit_die here.
4218 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
4220 2010-09-21 Richard Guenther <rguenther@suse.de>
4222 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
4225 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
4227 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
4228 (qhs_extenddi_cstr): Likewise.
4229 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
4230 them for the source operand.
4232 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
4234 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
4235 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
4236 (ix86_split_ashr): Ditto.
4237 (ix86_split_lshr): Ditto.
4239 2010-09-21 Richard Guenther <rguenther@suse.de>
4241 PR tree-optimization/45580
4242 * tree-ssa-propagate.c (substitute_and_fold): Always replace
4244 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
4245 virtuals fold the call into a regular indirect one.
4247 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
4249 PR rtl-optimization/42775
4250 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
4251 scheduling is enabled.
4253 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4255 PR rtl-optimization/45728
4256 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
4257 gen_lowpart_common first and if that fails, force_reg first
4258 before calling gen_lowpart.
4261 * cfgexpand.c (expand_one_stack_var_at): Use
4262 crtl->max_used_stack_slot_alignment as max_align, instead
4263 of maximum of that and PREFERRED_STACK_BOUNDARY.
4264 Don't call update_stack_alignment.
4266 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
4268 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
4269 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
4270 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
4271 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
4272 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
4273 (build_nonstandard_integer_type): Likewise.
4274 (build_range_type_1): New function, built from...
4275 (build_range_type): ...this. Call build_range_type_1.
4276 (build_nonshared_range_type): New function.
4277 (build_array_type_1): New function, built from...
4278 (build_array_type: ...this. Call build_array_type_1.
4279 (build_nonshared_array_type): New function.
4280 * tree.h (build_nonshared_range_type): Declare.
4281 (build_nonshared_array_type): Likewise.
4283 2010-09-20 Anatoly Sokolov <aesok@post.ru>
4285 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
4286 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4287 (arm_class_likely_spilled_p): New function.
4289 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
4291 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
4293 (ix86_split_ashl): Ditto.
4294 (ix86_split_ashr): Ditto.
4295 (ix86_split_lshr): Ditto.
4296 (ix86_adjust_counter): Ditto.
4298 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
4300 * c-family/c-common.h (constant_string_class): Documented with
4301 comment identical to the one already in c-common.c.
4303 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4305 * dwarf2out.c (any_cfis_emitted): New static variable.
4306 (add_fde_cfi): Set it.
4307 (dwarf2out_frame_debug): Clear it before processing,
4308 if it is set afterwards, flush any queued reg saves.
4311 * dwarf2out.c (add_accessibility_attribute): Assume
4312 DW_ACCESS_private as the default for dwarf_version > 2
4313 and DW_TAG_class_type parent.
4314 (gen_inheritance_die): Assume DW_ACCESS_public as the default
4315 for dwarf_version > 2 and parent other than DW_TAG_class_type.
4317 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
4320 * arm.md (arm_movt): Only enable on machines with MOVT.
4322 2010-09-20 Jie Zhang <jie@codesourcery.com>
4324 * config/arm/arm.c (arm_address_offset_is_imm): New.
4325 (arm_early_store_addr_dep): New.
4326 (arm_early_load_addr_dep): New.
4327 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
4328 (arm_early_load_addr_dep): Declare.
4329 (arm_address_offset_is_imm): Declare.
4330 * config/arm/cortex-m4.md: New file.
4331 * config/arm/cortex-m4-fpu.md: New file.
4332 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
4333 (attr generic_sched): Exclude cortexm4.
4334 (attr generic_vfp): Exclude cortexm4.
4336 2010-09-20 Richard Guenther <rguenther@suse.de>
4339 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
4341 2010-09-20 Jan Hubicka <jh@suse.cz>
4343 PR tree-optimize/45605
4344 * cgraph.h (const_value_known_p): Declare.
4345 (varpool_decide_const_value_known): Remove.
4346 * tree-ssa-ccp.c (get_base_constructor): Use it.
4347 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
4348 * expr.c (string_constant): Likewise.
4349 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
4350 * ipa.c (ipa_discover_readonly_nonaddressable_var,
4351 function_and_variable_visibility): Likewise.
4352 * gimplify.c (gimplify_call_expr): Likewise.
4353 * gimple-fold.c (get_symbol_constant_value): Likewise.
4354 * varpool.c (varpool_decide_const_value_known): Replace by...
4355 (const_value_known_p): ... this one; handle other kinds of DECLs
4356 too and work for automatic vars.
4357 (varpool_finalize_decl): Use const_value_known_p.
4359 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
4362 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
4364 2010-09-20 Richard Guenther <rguenther@suse.de>
4366 PR tree-optimization/45705
4367 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
4369 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4371 PR rtl-optimization/45695
4372 * combine.c (try_combine): When splitting a two set pattern,
4373 make sure the pattern which will be put into i2 doesn't use REGs
4374 or MEMs set by insns in between i2 and i3.
4376 2010-09-19 Jan Hubicka <jh@suse.cz>
4379 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
4380 processing same node twice.
4382 2010-09-19 Anatoly Sokolov <aesok@post.ru>
4384 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
4385 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4386 (bfin_class_likely_spilled_p): New function
4388 2010-09-19 Ira Rosen <irar@il.ibm.com>
4390 PR tree-optimization/45714
4391 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
4392 created in vectorizable_call instead of the original statement in
4395 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
4397 * config/i386/i386-protos.h (split_double_mode): New prototype.
4398 (split_di, split_ti): Remove prototypes.
4399 * config/i386/i386.c (split_double_mode): New function.
4400 (split_di, split_ti): Remove.
4401 (ix86_expand_branch): Use split_double_mode.
4402 (ix86_split_to_parts): Ditto.
4403 (ix86_split_ashl): Ditto.
4404 (ix86_split_ashr): Ditto.
4405 (ix86_split_lshr): Ditto.
4406 (ix86_force_to_memory): Ditto.
4407 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
4409 2010-09-18 Jan Hubicka <jh@suse.cz>
4411 PR tree-optimization/45453
4412 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
4413 virtual functions are reachable.
4414 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
4415 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4416 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
4417 when modifying function.
4419 2010-09-18 Jan Hubicka <jh@suse.cz>
4421 PR tree-optimization/45605
4422 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
4423 * gimple-fold.c (static_object_in_other_unit_p): New function.
4424 (canonicalize_constructor_val): Use it.
4425 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
4427 (gimple_fold_obj_type_ref_known_binfo): Use
4428 static_object_in_other_unit_p.
4430 2010-09-18 Richard Guenther <rguenther@suse.de>
4432 PR tree-optimization/45709
4433 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
4434 insertions until after all PHI nodes of the block are processed.
4436 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
4438 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
4440 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
4442 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
4444 2010-09-18 Richard Guenther <rguenther@suse.de>
4446 PR tree-optimization/45709
4447 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
4449 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4451 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
4452 (dot_deps_stmt): Same.
4453 * graphite-poly.c (dot_lst): Same.
4454 * graphite-scop-detection.c (dot_all_scops): Same.
4457 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4460 2009-12-16 Ben Elliston <bje@au.ibm.com>
4462 * tree-data-ref.c (dot_rdg_1): Added back.
4463 (dot_rdg): Same. Added "#if 0" around system call.
4465 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4466 Richard Henderson <rth@redhat.com>
4468 * config/i386/i386.c (initial_ix86_tune_features): Add
4469 X86_TUNE_PAD_SHORT_FUNCTION.
4470 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
4471 (ix86_count_insn): New.
4472 (ix86_pad_short_function): Likewise.
4473 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
4475 * config/i386/i386.h (ix86_tune_indices): Add
4476 X86_TUNE_PAD_SHORT_FUNCTION.
4477 (TARGET_PAD_SHORT_FUNCTION): New.
4479 * config/i386/i386.md (UNSPEC_NOPS): New.
4482 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4485 * calls.c (expand_call): Make sure that all variable sized
4486 adjustments are multiple of preferred stack boundary after
4489 2010-09-17 DJ Delorie <dj@redhat.com>
4491 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
4492 passed an invalid value, print an error instead of ICEing.
4493 (valid_psw_flag): New.
4494 (rx_expand_builtin): Call it for setpsw/clrpsw.
4495 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
4497 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
4498 (bitclr_in_memory): Likewise.
4499 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
4501 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4504 * cfgexpand.c (update_stack_alignment): New.
4505 (get_decl_align_unit): Use it.
4506 (expand_one_stack_var_at): Call update_stack_alignment.
4508 2010-09-17 Richard Guenther <rguenther@suse.de>
4510 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
4511 Properly copy the read string.
4513 2010-09-17 Joseph Myers <joseph@codesourcery.com>
4515 * doc/options.texi (Variable): Document.
4516 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
4517 generate target_flags declarations explicitly. Don't define
4518 VarExists variables for the driver.
4519 * common.opt (target_flags): New Variable record.
4520 (flag_dump_unnumbered, flag_dump_unnumbered_links,
4521 flag_var_tracking, flag_var_tracking_assignments,
4522 flag_var_tracking_assignments_toggle): Don't mark variables with
4524 * config/i386/i386.c (ix86_isa_flags): Don't define here.
4525 * config/i386/i386.opt (ix86_isa_flags): Define here.
4526 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
4527 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
4529 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
4530 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
4531 Only define for generator programs.
4532 * rtlanal.c (target_flags): Remove.
4533 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
4534 flag_var_tracking_assignments_toggle): Remove.
4536 2010-09-17 Michael Matz <matz@suse.de>
4538 PR tree-optimization/43432
4539 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4540 Accept backwards consecutive accesses.
4541 (vect_create_data_ref_ptr): If step is negative generate
4543 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
4544 (perm_mask_for_reverse, reverse_vec_elements): New functions.
4545 (vectorizable_load): Handle loads with negative steps when easily
4548 2010-09-03 Jan Hubicka <jh@suse.cz>
4550 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
4552 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
4554 * config/v850/v850.c (v850_function_value_regno_p): Make static.
4555 Adjust comments. Declare.
4556 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4557 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
4559 2010-09-17 Richard Guenther <rguenther@suse.de>
4561 * common.opt (combine): Remove.
4562 * gcc.c (default_compilers): Remove specs testing combine.
4563 The C compilers no longer can combine.
4564 (option_map): Remove -combine.
4565 (display_help): Remove -combine.
4566 (driver_handle_option): Remove OPT_combine handling.
4567 (compile_input_file_p): Remove.
4568 (do_spec): Remove code concerning combine.
4570 * doc/invoke.texi: Remove traces of -combine.
4571 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
4573 2010-09-17 Richard Guenther <rguenther@suse.de>
4576 * builtins.c (fold_builtin_memory_op): Always properly adjust
4577 alignment of memory accesses.
4579 2010-09-16 Jan Hubicka <jh@suse.cz>
4581 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4584 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
4586 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
4588 * config/i386/i386.c (predict_jump): Add prototype.
4589 (flag_opts): Add -m8bit-idiv.
4590 (ix86_split_idivmod): New.
4592 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
4593 Add 2 splitters for SI/DI mode divide.
4594 (divmod<mode>4_1): New pattern.
4595 (udivmod<mode>4_1): Likewise.
4596 (testdi_ccno_1): Likewise.
4598 * config/i386/i386.opt (m8bit-idiv): New.
4600 * doc/invoke.texi: Document -m8bit-idiv.
4602 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
4605 * config/i386/i386.c (min_insn_size): Moved out of the
4606 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
4608 2010-09-16 Jan Hubicka <jh@suse.cz>
4610 * lto-cgraph.c (lto_output_node): Fix handling of clones.
4611 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
4612 unreachable clones with reachable clones.
4613 * tree-inline.c (copy_bb): Fix sanity checking when producing
4616 2010-09-16 Anatoly Sokolov <aesok@post.ru>
4618 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
4619 (TARGET_MEMORY_MOVE_COST): Define.
4620 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
4622 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
4624 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
4625 maybe_tidy_empty_bb.
4628 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
4629 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4631 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4633 * target.def (target_option.optimization): New hook.
4634 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
4635 TARGET_OPTION_OPTIMIZATION hook.
4636 * doc/tm.texi: Regenerate.
4637 * hooks.c (hook_void_int_int): New.
4638 * hooks.h (hook_void_int_int): Declare.
4639 * opts.c: Don't include tm_p.h.
4640 (decode_options): Use targetm.target_option.optimization instead
4641 of OPTIMIZATION_OPTIONS.
4642 * system.h (OPTIMIZATION_OPTIONS): Poison.
4643 * config/arm/arm-protos.h (arm_optimization_options): Remove.
4644 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
4645 (arm_optimization_options): Rename to arm_option_optimization.
4647 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
4648 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
4649 (cris_option_optimization): New.
4650 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
4651 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
4652 (crx_option_optimization): New.
4653 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
4654 * config/frv/frv-protos.h (frv_optimization_options): Remove.
4655 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
4656 (frv_optimization_options): Rename to frv_option_optimization.
4658 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
4659 * config/h8300/h8300.c (h8300_option_optimization): New.
4660 (TARGET_OPTION_OPTIMIZATION): Define.
4661 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
4662 * config/i386/i386-protos.h (optimization_options): Remove.
4663 * config/i386/i386.c (optimization_options): Rename to
4664 ix86_option_optimization. Make static.
4665 (TARGET_OPTION_OPTIMIZATION): Define.
4666 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
4667 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
4668 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
4669 (ia64_optimization_options): Rename to ia64_option_optimization.
4670 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
4671 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
4672 commented-out definition.
4673 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4674 instead of OPTIMIZATION_OPTIONS.
4675 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
4676 (m32r_option_optimization): New.
4677 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
4678 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4680 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
4681 (mcore_option_optimization): New.
4682 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
4683 * config/mep/mep-protos.h (mep_optimization_options): Remove.
4684 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
4685 (mep_optimization_options): Rename to mep_option_optimization.
4686 Make static. Take unused level and size parameters.
4687 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
4688 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
4689 (mmix_option_optimization): New.
4690 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
4691 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
4692 (pdp11_option_optimization): New.
4693 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
4694 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
4695 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
4696 (optimization_options): Rename to rs6000_option_optimization.
4698 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
4699 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
4700 * config/rx/rx.c (rx_set_optimization_options): Rename to
4701 rx_option_optimization. Make static. Take unused level and size
4703 (TARGET_OPTION_OPTIMIZATION): Define.
4704 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
4705 * config/s390/s390-protos.h (optimization_options): Remove.
4706 * config/s390/s390.c (optimization_options): Rename to
4707 s390_option_optimization. Make static. Don't mark size parameter
4709 (TARGET_OPTION_OPTIMIZATION): Define.
4710 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
4711 * config/sh/sh-protos.h (sh_optimization_options): Remove.
4712 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
4713 (sh_optimization_options): Rename to sh_option_optimization. Make
4714 static. Don't mark parameters unused.
4715 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
4716 * config/spu/spu-protos.h (spu_optimization_options): Remove.
4717 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
4718 (spu_optimization_options): Rename to spu_option_optimization.
4720 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
4721 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
4722 (v850_option_optimization): New.
4723 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
4724 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
4725 (xtensa_option_optimization): New.
4726 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
4728 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4730 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
4731 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
4732 * doc/tm.texi: Regenerate.
4733 * system.h (OVERRIDE_OPTIONS): Poison.
4734 * target.def (override): Default to hook_void_void.
4735 * targhooks.c (default_target_option_override): Remove.
4736 * genmodes.c, machmode.def: Update comments mentioning
4738 * config/alpha/alpha-modes.def: Update comment mentioning
4739 alpha_override_options.
4740 * config/alpha/alpha-protos.h (override_options): Remove.
4741 * config/alpha/alpha.c (override_options): Rename to
4742 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
4743 (TARGET_OPTION_OVERRIDE): Define.
4744 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
4745 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
4746 of OVERRIDE_OPTIONS.
4747 * config/arc/arc-protos.h (arc_init): Remove.
4748 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
4749 (arc_init): Rename to arc_option_override. Make static.
4750 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
4751 (OVERRIDE_OPTIONS): Remove.
4752 * config/arm/arm-protos.h (arm_override_options): Remove.
4753 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
4754 (arm_override_options): Rename to arm_option_override. Make
4755 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4756 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
4757 * config/arm/arm.md: Update comment referring to arm_override_options.
4758 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4759 instead of OVERRIDE_OPTIONS.
4760 * config/avr/avr-protos.h (avr_override_options): Remove.
4761 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
4762 (avr_override_options): Rename to avr_option_override. Make static.
4763 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
4764 * config/bfin/bfin-protos.h (override_options): Remove (twice).
4765 * config/bfin/bfin.c (override_options): Rename to
4766 bfin_option_override. Make static.
4767 (TARGET_OPTION_OVERRIDE): Define.
4768 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
4769 * config/cris/cris-protos.h (cris_override_options): Remove.
4770 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
4771 (cris_override_options): Rename to cris_option_override. Make static.
4772 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
4773 * config/frv/frv-protos.h (frv_override_options): Remove.
4774 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
4775 (frv_override_options): Rename to frv_option_override. Make static.
4776 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
4777 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
4778 * config/h8300/h8300.c (h8300_init_once): Rename to
4779 h8300_option_override. Make static.
4780 (TARGET_OPTION_OVERRIDE): Define.
4781 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
4782 * config/i386/i386-protos.h (override_options): Remove.
4783 * config/i386/i386.c (override_options): Rename to
4784 ix86_option_override_internal. Make static. Comments referring
4785 to this function and callers changed.
4786 (ix86_option_override): New.
4787 (TARGET_OPTION_OVERRIDE): Define.
4788 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
4789 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
4790 * config/ia64/ia64.c (ia64_file_start): Update comment referring
4791 to ia64_override_options.
4792 * config/iq2000/iq2000-protos.h (override_options): Remove.
4793 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
4794 (override_options): Rename to iq2000_option_override. Make static.
4795 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
4796 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
4797 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
4798 (lm32_override_options): Rename to lm32_option_override. Make static.
4799 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
4800 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
4801 (m32r_option_override): New.
4802 (m32r_init): Update comment.
4803 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
4804 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
4805 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
4806 (m68hc11_override_options): Rename to m68hc11_option_override.
4807 Make static. Return void.
4808 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
4809 * config/m68k/m68k-protos.h (override_options): Remove.
4810 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
4811 (override_options): Rename to m68k_option_override. Make static.
4812 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
4813 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
4814 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
4815 (mcore_override_options): Rename to mcore_option_override. Make
4817 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
4818 * config/mep/mep-protos.h (mep_override_options): Remove.
4819 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
4820 (mep_override_options): Rename to mep_option_override. Make static.
4821 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
4822 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
4823 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
4824 (mmix_override_options): Rename to mmix_option_override. Make static.
4825 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
4826 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
4827 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
4828 (mn10300_override_options): Rename to mn10300_option_override.
4830 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
4831 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
4832 * config/moxie/moxie.c (moxie_override_options): Rename to
4833 moxie_option_override. Make static.
4834 (TARGET_OPTION_OVERRIDE): Define.
4835 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
4836 * config/picochip/picochip-protos.h (picochip_override_options):
4837 Remove. Update comment referring to picochip_override_options.
4838 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
4839 (picochip_override_options): Rename to picochip_option_override.
4840 Make static. Update comment and definition of
4841 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
4842 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
4843 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4844 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4845 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4846 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4847 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4848 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
4849 instead of OVERRIDE_OPTIONS.
4850 * config/rs6000/rs6000-modes.def: Update comment referring to
4851 rs6000_override_options.
4852 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
4853 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
4854 (rs6000_override_options): Rename to
4855 rs6000_option_override_internal. Make static. Commented
4856 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
4857 (rs6000_option_override): New.
4858 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
4859 instead of OVERRIDE_OPTIONS.
4860 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4861 * config/s390/s390-protos.h (override_options): Remove.
4862 * config/s390/s390.c (override_options): Rename to
4863 s390_option_override. Make static.
4864 (TARGET_OPTION_OVERRIDE): Define.
4865 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
4866 * config/score/score-protos.h (score_override_options): Remove.
4867 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
4868 (score_override_options): Rename to score_option_override. Make
4870 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
4871 Update comment referring to override_options.
4872 * config/score/score3.c (score3_override_options): Rename to
4873 score3_option_override.
4874 * config/score/score3.h (score3_override_options): Rename to
4875 score3_option_override.
4876 * config/score/score7.c (score7_override_options): Rename to
4877 score7_option_override.
4878 * config/score/score7.h (score7_override_options): Rename to
4879 score7_option_override.
4880 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
4881 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
4882 (sparc_override_options): Rename to sparc_option_override. Make
4883 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4884 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
4885 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4886 instead of OVERRIDE_OPTIONS.
4887 * config/spu/spu-protos.h (spu_override_options): Remove.
4888 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
4889 (spu_override_options): Rename to spu_option_override. Make
4891 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
4892 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
4894 * config/vax/vax-protos.h (override_options): Remove.
4895 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
4896 (override_options): Rename to vax_option_override. Make static.
4897 Call SUBTARGET_OVERRIDE_OPTIONS.
4898 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
4899 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
4900 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
4901 * config/xtensa/xtensa-protos.h (override_options): Remove.
4902 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
4903 (override_options): Rename to xtensa_option_override. Make static.
4904 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
4906 2010-09-16 Richard Guenther <rguenther@suse.de>
4908 PR tree-optimization/45623
4909 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
4910 (get_constraint_for_component_ref): If computing a constraint
4911 for the rhs handle type punning through unions.
4912 (get_constraint_for_address_of): Adjust.
4913 (get_constraint_for_1): Likewise.
4914 (get_constraint_for): Likewise.
4915 (get_constraint_for_rhs): New function.
4916 (do_structure_copy): Adjust.
4917 (make_constraint_to): Likewise.
4918 (handle_const_call): Likewise.
4919 (find_func_aliases): Likewise.
4920 (process_ipa_clobber): Likewise.
4921 (create_variable_info_for): Likewise.
4923 2010-09-16 Ira Rosen <irar@il.ibm.com>
4925 * tree-vectorizer.c: Fix documentation.
4926 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
4927 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
4928 is_pattern_stmt_p, is_loop_header_bb_p,
4929 stmt_vinfo_set_inside_of_loop_cost,
4930 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
4931 known_alignment_for_access_p): Likewise.
4932 * tree-vect-loop.c: Fix documentation.
4933 (vect_get_cost): Start function name from new line.
4934 * tree-vect-data-refs.c: Fix documentation.
4935 * tree-vect_stmts.c: Likewise.
4936 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
4937 (vectorizable_store): Free vec_oprnds if allocated.
4938 (vectorizable_condition): Initialize several variables to avoid
4940 * tree-vect-slp.c: Fix documentation.
4942 2010-09-16 Richard Guenther <rguenther@suse.de>
4944 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
4945 is TS_TRANSLATION_UNIT_DECL.
4946 (initialize_tree_contains_struct): Adjust.
4947 (all_translation_units): New global vector.
4948 (build_translation_unit_decl): New function.
4949 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
4950 (struct tree_translation_unit_decl): New.
4951 (all_translation_units): Declare.
4952 (union tree_node): Add translation_unit_decl member.
4953 (build_translation_unit_decl): Declare.
4954 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
4955 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
4957 (pack_value_fields): Call it.
4958 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
4959 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
4960 (lto_output_tree_pointers): Call it.
4961 * lto-streamer-in.c (lto_input_tree_ref): Handle references
4962 to TRANSLATION_UNIT_DECL.
4963 (unpack_ts_translation_unit_decl_value_fields): New function.
4964 (unpack_value_fields): Call it.
4965 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
4966 (lto_input_tree_pointers): Call it.
4967 * lto-streamer.c (check_handled_ts_structures): Adjust.
4968 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
4969 * c-decl.c (all_translation_units): Remove.
4970 (pop_scope): Use build_translation_unit_decl.
4971 (collect_all_refs): Adjust.
4972 (for_each_global_decl): Likewise.
4973 (c_write_global_declarations): Likewise.
4975 2010-09-16 Jakub Jelinek <jakub@redhat.com>
4978 * fold-const.c (fold_checksum_tree): Change slot from const void **
4979 to void **, use CONST_CAST_TREE to store into *slot.
4981 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4983 * config/i386/i386.md: Remove unneeded empty conditions and
4984 preparation statements from expanders.
4985 * config/i386/mmx.md: Ditto.
4986 * config/i386/sse.md: Ditto.
4988 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4990 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
4992 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
4994 PR rtl-optimization/45593
4995 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
4996 insns that were in delay slots as stand-alone insns.
4998 2010-09-15 Ian Lance Taylor <iant@google.com>
5000 * incpath.c (remove_duplicates): If name is not a directory, issue
5001 a warning rather than an error.
5003 2010-09-15 Martin Jambor <mjambor@suse.cz>
5006 * tree-sra.c (create_access): Check for bit-fields directly.
5008 2010-09-15 Jakub Jelinek <jakub@redhat.com>
5010 PR tree-optimization/45633
5011 * tree-cfg.c (verify_gimple_assign_binary): Allow
5012 MINUS_EXPR with lhs and rhs1 pointer vector and
5013 rhs2 sizetype vector.
5014 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
5015 or vector pointer use TER to optimize pointer subtraction.
5017 2010-09-15 Jie Zhang <jie@codesourcery.com>
5019 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
5022 2010-09-15 Ian Lance Taylor <iant@google.com>
5024 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
5026 2010-09-15 Ian Lance Taylor <iant@google.com>
5028 * function.c (get_arg_pointer_save_area): Set
5029 arg_pointer_save_area_init to true.
5031 2010-09-15 Martin Jambor <mjambor@suse.cz>
5033 * tree-sra.c (generate_subtree_copies): Updated comment.
5034 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
5035 obtained from the statement iterator instead.
5036 (load_assign_lhs_subreplacements): Removed parameters lhs and
5037 right_offset, which is obtained from top_racc instead. Parameter lacc
5038 is now expected to be the root of the processed tree rather than root's
5039 first child. Updated all callers.
5041 2010-09-15 Joseph Myers <joseph@codesourcery.com>
5043 * config/pdp11/pdp11.c (register_move_cost): Rename to
5044 pdp11_register_move_cost.
5045 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
5046 pdp11_register_move_cost.
5047 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
5048 pdp11_register_move_cost instead of register_move_cost.
5050 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
5052 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
5053 pattern for vmovn. Expansion in case of non
5054 -mvectorize-with-neon-quad.
5055 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
5056 non- -mvectorize-with-neon-quad case.
5057 (move_lo_quad_<mode>): New expansion to vmov into low part.
5058 (move_hi_quad_<mode>): New expansion to vmov into high part.
5059 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
5060 (move_lo_quad_v4sf): Likewise.
5061 (move_lo_quad_v8hi): Likewise.
5062 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
5064 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
5066 * config/arm/iterators.md (ANY128): New mode iterator.
5067 (V_narrow_pack): New mode attribute.
5068 (V_HALF): Add attribute.
5069 (V_DOUBLE): Add attribute.
5070 (V_mode_nunits): Add attribute.
5072 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
5074 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
5075 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
5077 2010-09-15 Olivier Hainque <hainque@adacore.com>
5078 Jose Ruiz <ruiz@adacore.com>
5080 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
5081 * config/alpha/osf5-unwind.h: New file.
5083 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
5086 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
5087 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
5088 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
5090 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5092 * c-lang.h (struct lang_type): Add variable_size GTY option.
5094 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
5097 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
5099 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
5101 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
5102 result isn't used in memory address.
5104 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
5106 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
5107 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
5108 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5109 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5110 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5111 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5113 * target.def: Add units_per_simd_word to vectorize.
5115 * targhooks.c (default_units_per_simd_word): New.
5116 * targhooks.h (default_units_per_simd_word): Likewise.
5117 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
5118 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5119 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
5120 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5121 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
5122 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5123 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
5124 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
5126 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
5127 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
5129 * tree-vect-stmts.c: Don't include "tm_p.h".
5130 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
5131 with targetm.vectorize.units_per_simd_word.
5133 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
5135 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
5137 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
5138 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
5140 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
5141 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
5143 * doc/tm.texi: Regenerated.
5145 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
5147 * tree-vect-stmts.c: Include "tm_p.h".
5149 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
5152 2010-09-14 Martin Jambor <mjambor@suse.cz>
5154 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
5155 location of generated statement. Changed all callers.
5156 (build_ref_for_model): New parameter loc which used to set location of
5157 all generated expressions. Changed all callers.
5158 (generate_subtree_copies): Likewise.
5159 (init_subtree_with_zero): Likewise.
5160 (sra_modify_expr): Set locations of all generated statements and
5161 expressions to the location the original statement.
5162 (handle_unscalarized_data_in_subtree): Likewise.
5163 (load_assign_lhs_subreplacements): Likewise.
5164 (sra_modify_constructor_assign): Likewise.
5165 (sra_modify_assign): Likewise.
5167 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
5172 * doc/install.texi (sparc*-*-*): New section.
5173 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
5175 2010-09-14 Jakub Jelinek <jakub@redhat.com>
5178 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
5179 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
5180 (expand_builtin): Adjust caller.
5181 (expand_builtin_unop): Only use subtarget if it has the right mode.
5183 2010-09-14 Tristan Gingold <gingold@adacore.com>
5185 * configure.ac (plugins): Fix typos.
5186 * configure: Regenerate.
5188 2010-09-14 Jakub Jelinek <jakub@redhat.com>
5191 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
5192 gen_type_die for function/method return type.
5194 2010-09-14 Ira Rosen <irar@il.ibm.com>
5196 PR tree-optimization/45470
5197 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5198 can throw an exception.
5199 * tree-vect-stmts.c (vectorizable_call): Likewise.
5201 2010-09-14 DJ Delorie <dj@redhat.com>
5204 * config/mep/mep-protos.h (mep_save_register_info,
5205 mep_reinit_regs, mep_init_regs): Declare.
5207 * config/mep/mep.c: Move all target definitions to the end of the
5208 file to avoid the need for duplicate declarations.
5209 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
5210 (mep_reorg_erepeat): Remove unused variables.
5211 (mep_expand_builtin): Likewise.
5213 * config/mep/mep-pragma.c: Don't include rtl.h.
5214 (INVALID_REGNUM): New.
5215 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
5217 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
5218 Avoid enum/integer math.
5220 2010-09-13 Joseph Myers <joseph@codesourcery.com>
5223 * config/mep/t-mep (GTM_H): Add insn-constants.h.
5224 * config/mep/mep.c (mep_conditional_register_usage): Take no
5226 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
5228 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
5229 call to mep_conditional_register_usage.
5231 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
5234 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
5237 2010-09-13 Jakub Jelinek <jakub@redhat.com>
5239 PR rtl-optimization/45617
5240 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
5241 even if low N bits of X aren't known to be zero.
5243 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
5245 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
5247 * config/i386/i386.c (initial_ix86_tune_features): Add
5248 X86_TUNE_VECTORIZE_DOUBLE.
5249 (ix86_units_per_simd_word): New.
5251 * config/i386/i386.h (ix86_tune_indices): Add
5252 X86_TUNE_VECTORIZE_DOUBLE.
5253 (TARGET_VECTORIZE_DOUBLE): New.
5254 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
5256 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
5258 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
5259 (new_temp_expr_table): Allocate call_cnt vector.
5260 (free_temp_expr_table): Free it.
5261 (process_replaceable): Add call_cnt parm and set in vector.
5262 (find_replaceable_in_bb): Skip replacement if def/use span a call.
5263 (debug_ter): Dump call_cnt value, remove stderr uses.
5265 2010-09-13 Jan Hubicka <jh@suse.cz>
5267 * tree.c (build_zero_cst): New.
5268 * tree.h (build_zero_cst): Declare.
5269 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
5270 (get_base_constructor): Break out from ...
5271 (fold_const_aggregate_ref): Here; handle empty constructors.
5273 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5275 * config/arm/arm.md: (define_attr "conds"): Update comment.
5276 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
5277 conds attribute to clob.
5278 (arm_sync_compare_and_swapsi): Likewise.
5279 (arm_sync_compare_and_swap<mode>): Likewise.
5280 (arm_sync_lock_test_and_setsi): Likewise.
5281 (arm_sync_lock_test_and_set<mode>): Likewise.
5282 (arm_sync_new_<sync_optab>si): Likewise.
5283 (arm_sync_new_nandsi): Likewise.
5284 (arm_sync_new_<sync_optab><mode>): Likewise.
5285 (arm_sync_new_nand<mode>): Likewise.
5286 (arm_sync_old_<sync_optab>si): Likewise.
5287 (arm_sync_old_nandsi): Likewise.
5288 (arm_sync_old_<sync_optab><mode>): Likewise.
5289 (arm_sync_old_nand<mode>): Likewise.
5291 2010-09-13 Olivier Hainque <hainque@adacore.com>
5293 * fwprop.c (forward_propagate_and_simplify): Only attach a
5294 REG_EQUAL note to an insn if the destination is a register.
5295 * gcse.c (try_replace_reg): Likewise.
5297 2010-09-13 Richard Guenther <rguenther@suse.de>
5299 PR tree-optimization/45611
5300 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
5301 (copy_ref_info): Likewise.
5303 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
5308 * tree-pretty-print.c (dump_generic_node): Disregard top-level
5309 types of MEM_REF pointer types to the same type.
5311 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
5313 PR rtl-optimization/41087
5314 * ifcvt.c (noce_get_condition): Don't allow conditions with
5317 2010-09-12 Anatoly Sokolov <aesok@post.ru>
5319 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5320 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
5321 * config/frv/frv.c (frv_register_move_cost): Make static. Change
5322 arguments type to reg_class_t. Add mode argument.
5323 (frv_memory_move_cost): New.
5324 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
5326 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
5328 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
5329 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
5331 2010-09-10 Jan Hubicka <jh@suse.cz>
5333 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
5335 2010-09-10 Richard Guenther <rguenther@suse.de>
5337 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
5338 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
5339 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
5340 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
5341 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
5343 2010-09-10 Richard Guenther <rguenther@suse.de>
5345 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
5346 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
5347 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
5348 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
5350 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
5353 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
5354 of string folding is of integral type.
5356 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
5358 * doc/invoke.texi (-x): Fix typo.
5360 2010-09-10 Richard Guenther <rguenther@suse.de>
5363 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
5364 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5365 Output DECL_DEBUG_EXPR.
5366 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5367 Input DECL_DEBUG_EXPR.
5369 2010-09-10 Richard Guenther <rguenther@suse.de>
5371 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
5372 (build_index_type): Implement in terms of build_range_type.
5373 (build_range_type): Do not allow NULL_TREE type, improve
5374 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
5376 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
5377 create a distinct copy of the type.
5379 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
5381 * configure: Regenerated.
5382 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
5384 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5386 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
5387 * config/arm/cortex-a9-neon.md: New and partially generated.
5388 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
5390 2010-09-10 Richard Guenther <rguenther@suse.de>
5392 * tree.h (build_index_2_type): Remove.
5393 * tree.c (build_index_2_type): Remove.
5395 2010-09-10 Jakub Jelinek <jakub@redhat.com>
5398 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
5399 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
5400 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
5402 2010-09-10 Martin Jambor <mjambor@suse.cz>
5404 PR tree-optimization/44972
5405 * tree-sra.c: Include toplev.h.
5406 (build_ref_for_offset): Entirely reimplemented.
5407 (build_ref_for_model): New function.
5408 (build_user_friendly_ref_for_offset): New function.
5409 (analyze_access_subtree): Removed build_ref_for_offset check.
5410 (propagate_subaccesses_across_link): Likewise.
5411 (create_artificial_child_access): Use
5412 build_user_friendly_ref_for_offset.
5413 (propagate_subaccesses_across_link): Likewise.
5414 (ref_expr_for_all_replacements_p): Removed.
5415 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
5416 (sra_modify_expr): Use build_ref_for_model.
5417 (load_assign_lhs_subreplacements): Likewise.
5418 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
5419 checks for return values of build_ref_for_offset.
5420 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
5421 build_ref_for_offset.
5422 * ipa-prop.h: Include gimple.h
5423 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
5424 (ipa_analyze_indirect_call_uses): Update comment.
5425 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
5426 (IPA_PROP_H): Likewise.
5428 2010-09-10 Martin Jambor <mjambor@suse.cz>
5430 PR tree-optimization/44972
5431 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
5432 calling build_ref_for_offset.
5434 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5436 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
5437 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
5438 * config/arm/arm-tune.md: Regenerate.
5439 * doc/invoke.texi (ARM Options): Document it.
5441 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
5443 * config/i386/i386.c: Include sched-int.h.
5444 (TARGET_SCHED_DISPATCH): Defined.
5445 (TARGET_SCHED_DISPATCH_DO): Defined.
5446 (DISPATCH_WINDOW_SIZE): Defined.
5447 (MAX_DISPATCH_WINDOWS): Defined.
5448 (MAX_INSN): Defined.
5450 (MAX_IMM_SIZE): Defined.
5451 (MAX_IMM_32): Defined.
5452 (MAX_IMM_64): Defined.
5453 (MAX_LOAD): Defined.
5454 (MAX_STORE): Defined.
5456 (dispatch_group): New.
5457 (num_allowable_groups): New.
5459 (sched_insn_info_s): New.
5460 (dispatch_windows_s): New.
5462 (dispatch_window_list): New.
5463 (dispatch_window_list1): New.
5464 (get_mem_group): New.
5466 (dispatch_violation): New.
5470 (allocate_window): New.
5471 (init_dispatch_sched): New.
5472 (is_end_basic_block): New.
5473 (process_end_window): New.
5474 (allocate_next_window): New.
5475 (find_constant_1): New.
5476 (find_constant): New.
5477 (get_num_immediates): New.
5478 (has_immediate): New.
5479 (get_insn_path): New.
5480 (get_insn_group): New.
5481 (count_num_restricted): New.
5482 (fits_dispatch_window): New.
5483 (add_insn_window): New.
5484 (add_to_dispatch_window): New.
5485 (debug_dispatch_window_file): New.
5486 (debug_dispatch_window): New.
5487 (debug_insn_dispatch_info_file): New.
5488 (debug_ready_dispatch): New.
5490 (has_dispatch): New.
5491 * config/i386/i386.h (debug_ready_dispatch): Declared.
5492 (debug_dispatch_window): Declared.
5493 * config/i386/i386.opt (mdispatch-scheduler): New flag.
5494 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
5495 (TARGET_SCHED_DISPATCH_DO): New.
5496 * doc/tm.texi: Regererated.
5497 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
5498 ready_remove_first_dispatch
5499 (schedule_block): Call targetm.sched.dispatch and
5500 targetm.sched.dispatch_do.
5501 (sched_init): Call targetm.sched.dispatch and
5502 targetm.sched.dispatch_do.
5503 (ready_remove_first_dispatch): New.
5504 (number_in_ready): New.
5505 (get_ready_element): New.
5506 * hooks.c (hook_bool_rtx_int_false): New.
5507 (hook_void_rtx_int): New.
5508 * hooks.h (hook_bool_rtx_int_false): Declared.
5509 (hook_void_rtx_int): Declared.
5510 * sched-int.h (IS_DISPATCH_ON): Defined.
5512 (DISPATCH_VIOLATION): Defined.
5513 (FITS_DISPATCH_WINDOW): Defined.
5514 (DISPATCH_INIT): Defined.
5515 (ADD_TO_DISPATCH_WINDOW): Defined.
5516 (get_ready_element): Declared.
5517 (number_in_ready): Declared.
5518 * target.def (dispatch): Defined.
5519 (dispatch_do): Defined.
5521 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5524 * reload1.c (merge_assigned_reloads): Remove.
5525 (reload_as_needed): Don't call it.
5527 2010-09-09 Anatoly Sokolov <aesok@post.ru>
5529 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
5530 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5531 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5533 2010-09-09 Matthias Klose <doko@ubuntu.com>
5536 * configure.ac (--enable-plugin): Enhance for cross builds.
5537 * configure: Regenerate.
5539 2010-09-09 Jan Hubicka <jh@suse.cz>
5541 PR tree-optimization/45598
5542 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
5543 string folding is of integral type.
5545 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5547 * configure.ac (gnu_indirect_function): New test.
5548 * configure: Rebuilt.
5549 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
5550 * defaults.h (IFUNC_ASM_TYPE): Provide default.
5552 * doc/extend.texi (Function Attributes): Document ifunc.
5553 * varasm.c (do_assemble_alias): Deal with ifuncs too.
5555 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5557 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
5558 epilogue instruction move.
5560 2010-09-09 Jan Hubicka <jh@suse.cz>
5562 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
5563 command line to allow more partitions than input files.
5565 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5568 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
5570 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5573 * ira.c (pseudo_for_reload_consideration_p): Don't use
5574 flag_ira_share_spill_slots.
5576 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5578 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
5579 point zero operands that fit into a single GPR.
5580 (s390_preferred_reload_class): Ensure we only return general-purpose
5582 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
5583 floating-point zero operands into GPRs.
5584 ("*mov<mode>_64"): Likewise.
5585 ("mov<mode>"): Likewise using lhi.
5587 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5589 * config/s390/s390.c (s390_symref_operand_p): Return false for
5590 literal pool references.
5591 (s390_check_qrst_address): Update caller.
5593 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
5595 * config/i386/predicates.md (ext_register_operand): Check that
5596 SUBREG_REG is really a register before looking for REGNO.
5597 (reg_not_xmm0_operand): Handle SUBREGs correctly.
5598 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
5600 2010-09-09 Jakub Jelinek <jakub@redhat.com>
5602 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
5603 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
5604 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
5605 * print-rtl.c (print_rtx): Likewise.
5606 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5607 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
5608 for ADDR_EXPR with non-addressable object.
5609 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
5610 (struct dw_val_struct): Add v.val_decl_ref.
5611 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
5612 Handle DW_OP_GNU_implicit_pointer.
5613 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
5614 (get_ref_die_offset_label): New function.
5615 (implicit_ptr_descriptor): New function.
5616 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
5617 (loc_descriptor): Likewise.
5618 (gen_variable_die): Put even definitions into decl_die_table.
5619 (resolve_addr_in_expr): Resolve still unresolved
5620 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
5622 (dwarf2out_finish): Call output_location_lists after outputting
5623 .debug_info and .debug_abbrev instead of before.
5625 2010-09-09 Roland McGrath <roland@redhat.com>
5627 * dwarf2out.c (DWARF_REF_SIZE): Define.
5628 (size_of_loc_descr): Use it for DW_OP_call_ref.
5630 2010-09-09 Alan Modra <amodra@gmail.com>
5632 * doc/invoke.text: Reinstate mcmodel=medium.
5633 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5634 CMODEL_MEDIUM as default.
5635 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
5636 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
5637 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
5638 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
5640 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5643 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
5644 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
5645 (builtin_longjmp): Likewise.
5646 (allocate_stack): Use hard_frame_pointer_rtx instead of
5648 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
5649 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
5650 (pa_can_eliminate): Likewise.
5651 (TARGET_INTERNAL_ARG_POINTER): Define.
5652 (TARGET_CAN_ELIMINATE): Define.
5653 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
5655 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
5656 (pa_internal_arg_pointer, pa_can_eliminate,
5657 pa_initial_elimination_offset): New.
5658 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
5659 (HARD_FRAME_POINTER_REGNUM): Set to register three.
5660 (INITIAL_FRAME_POINTER_OFFSET): Delete.
5661 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
5663 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
5664 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
5665 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
5666 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5667 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
5668 new soft frame pointer.
5669 * config/pa/pa64-regs.h: Likewise.
5671 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5673 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
5675 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
5677 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5680 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
5682 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5686 * tree-pretty-print.c (dump_generic_node): Disregard top-level
5687 qualifiers in otherwise equal MEM_REF pointer types.
5688 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
5689 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
5691 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5694 * config/arm/arm.md (bswapsi2): Handle condition correctly
5695 for armv6 and optimize_size.
5697 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5700 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
5702 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5704 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
5705 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
5706 ix86_expand_strlen, legitimate_pic_address_disp_p,
5707 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
5708 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
5709 ix86_check_movabs, ix86_secondary_memory_needed): Change function
5711 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
5712 return_in_memory_ms_64, ix86_check_movabs,
5713 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
5714 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
5715 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
5716 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
5717 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
5718 ix86_secondary_memory_needed): Change to bool. Return
5719 "true" and "false" values.
5720 * config/i386/i386.md: Return "true" and "false" values.
5722 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5724 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5725 run_expensive_tests.
5727 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5729 * toplev.c (output_stack_usage): Use lbasename instead of basename.
5731 2010-09-08 Martin Jambor <mjambor@suse.cz>
5734 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
5737 2010-09-08 Richard Guenther <rguenther@suse.de>
5739 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
5741 (iterative_hash_gimple_type): Likewise.
5742 (gimple_type_hash): Likewise.
5743 (gimple_register_type): Likewise.
5744 (print_gimple_types_stats): Likewise.
5745 (free_gimple_type_tables): Likewise.
5747 2010-09-08 Michael Matz <matz@suse.de>
5749 PR tree-optimization/43430
5750 * tree-vect-stmts.c (vectorizable_condition): Support multiple
5751 copies for conditional statements if it's not part of a reduction.
5753 2010-09-08 Michael Matz <matz@suse.de>
5755 PR tree-optimization/33244
5756 * tree-ssa-sink.c (statement_sink_location): Don't sink into
5759 2010-09-08 Richard Guenther <rguenther@suse.de>
5761 PR tree-optimization/45578
5762 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
5763 Be more careful when transfering alignment information to
5764 the new induction variable.
5765 (copy_ref_info): Likewise.
5767 2010-09-08 Richard Guenther <rguenther@suse.de>
5769 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
5770 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
5772 2010-09-08 Arnaud Charlet <charlet@adacore.com>
5774 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
5775 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
5777 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
5780 * doc/md.texi: Fixed modes on several standard pattern names.
5782 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
5784 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
5785 (ashl<mode>3): ...this.
5786 (loongson_psra<V_suffix>): Rename to...
5787 (ashr<mode>3): ...this.
5788 (loongson_psrl<V_suffix>): Rename to...
5789 (lshr<mode>3): ...this.
5790 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
5791 (CODE_FOR_loongson_psllw): Define.
5792 (CODE_FOR_loongson_psrlh): Define.
5793 (CODE_FOR_loongson_psrlw): Define.
5794 (CODE_FOR_loongson_psrah): Define.
5795 (CODE_FOR_loongson_psraw): Define.
5797 2010-09-07 Richard Henderson <rth@redhat.com>
5799 * tree-vect-data-refs.c: Include tm_p.h.
5800 * Makefile.in (tree-vect-data-refs.o): Update deps.
5801 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
5802 Move delarations outside #ifdef RTX_CODE.
5804 2010-09-07 Richard Henderson <rth@redhat.com>
5806 * final.c (rest_of_handle_final): Unconditionally do
5807 output_function_exception_table before assemble_end_function.
5809 2010-09-07 Jan Hubicka <jh@suse.cz>
5811 * tree-inline.c (tree_inlinable_function_p): Do not test
5813 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
5814 update_callee_keys, cgraph_decide_inlining): Test function availability.
5815 * cif-code.def (OVERWRITABLE): New code.
5817 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
5818 Jack Howarth <howarth@bromo.med.uc.edu>
5823 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
5824 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
5825 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
5828 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5830 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
5831 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
5833 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5835 * config.gcc: Don't append t-android for Android targets.
5837 * config/t-android: Removed.
5839 2010-09-07 Richard Henderson <rth@redhat.com>
5841 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
5842 * doc/tm.texi.in: Add doc marker.
5843 * doc/tm.texi: Rebuild.
5844 * except.c (switch_to_exception_section): Always build.
5845 (output_one_function_exception_table): Move section switch,
5846 personality output, and label output ...
5847 (output_function_exception_table): ... here. Use the new
5850 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
5851 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
5852 TARGET_ASM_INIT_SECTIONS): New.
5853 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
5855 (TARGET_ASM_UNWIND_EMIT): Update to match.
5856 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
5858 * config/arm/arm.c (arm_asm_emit_except_personality): New.
5859 (arm_asm_init_sections): New.
5860 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
5862 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5864 * config/arm/arm.md: Remove unused variable.
5866 2010-09-07 Anatoly Sokolov <aesok@post.ru>
5868 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5869 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
5870 (m32r_memory_move_cost): New function.
5872 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5874 * config.gcc: Append t-android for Android targets.
5876 * config/t-android: New.
5878 2010-09-07 Richard Henderson <rth@redhat.com>
5880 * target.def (unwind_emit_before_insn): New hook.
5881 * doc/tm.texi.in: Add @hook marker for it.
5882 * doc/tm.texi: Rebuild.
5883 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
5885 2010-09-07 Martin Jambor <mjambor@suse.cz>
5888 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
5889 are any type attributes.
5891 2010-09-07 Jan Hubicka <jh@suse.cz>
5893 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
5894 array_ref_low_bound in string access folding.
5896 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
5899 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
5900 eh_return fixup sequence.
5902 2010-09-07 Jan Hubicka <jh@suse.cz>
5904 * gimple-fold.c (maybe_fold_reference): Verify that operand is
5905 gimple_min_invariant.
5907 2010-09-07 Richard Guenther <rguenther@suse.de>
5910 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
5911 nor CONSTRUCTOR can trap.
5912 * tree-complex.c (update_complex_assignment): Update EH info.
5914 2010-09-07 Richard Guenther <rguenther@suse.de>
5917 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
5918 * passes.c (execute_function_todo): Do not verify anything if
5921 2010-09-07 Richard Guenther <rguenther@suse.de>
5923 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
5925 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
5928 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
5929 New define_mode_attrs.
5930 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
5931 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
5932 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
5933 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
5934 Remove pool_range attribute.
5935 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
5936 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
5937 pool_range and neg_pool_range attributes.
5938 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
5939 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
5940 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
5942 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5944 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
5947 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
5950 * config/i386/mmx.md (*mov<mode>_internal_rex64,
5951 *mov<mode>_internal_avx, *mov<mode>_internal,
5952 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
5953 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
5955 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5957 * c-typeck.c (do_warn_double_promotion): Remove.
5958 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
5961 2010-09-06 Anatoly Sokolov <aesok@post.ru>
5963 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
5964 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
5965 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
5966 argument type to reg_class_t. Change result type to bool.
5967 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5969 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
5972 * gthr-posix.h (__gthread_objc_thread_detach): Use
5973 _objc_thread_attribs when detaching a thread.
5974 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
5976 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5979 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
5980 * configure: Regenerated.
5982 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5984 * combine.c (try_combine): Set subst_low_luid to i0.
5986 2010-09-06 Richard Guenther <rguenther@suse.de>
5988 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
5989 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
5990 (build_aligned_type): Declare.
5991 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
5992 (check_aligned_type): New function.
5993 (build_aligned_type): Likewise.
5994 * expr.c (expand_assignment): Handle misaligned stores via
5995 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
5996 (expand_expr_real_1): Likewise.
5997 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
5998 * tree-vect-stmts.c (vectorizable_store): Do not build
5999 MISALIGNED_INDIRECT_REF but initialize alignment information.
6000 (vectorizable_load): Likewise.
6001 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
6003 * cfgexpand.c (expand_debug_expr): Likewise.
6004 * dwarf2out.c (loc_list_from_tree): Likewise.
6005 * fold-const.c (maybe_lvalue_p): Likewise.
6006 (operand_equal_p): Likewise.
6007 (build_fold_addr_expr_with_type_loc): Likewise.
6008 * gimplify.c (gimplify_addr_expr): Likewise.
6009 (gimplify_expr): Likewise.
6010 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6011 (verify_gimple_assign_single): Likewise.
6012 * tree-dump.c (dequeue_and_dump): Likewise.
6013 (tree_could_trap_p): Likewise.
6014 * tree-predcom.c (ref_at_iteration): Likewise.
6015 * tree-pretty-print.c (dump_generic_node): Likewise.
6016 (op_code_prio): Likewise.
6017 (op_symbol_code): Likewise.
6018 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6019 * tree-ssa-loop-im.c (for_each_index): Likewise.
6020 (gen_lsm_tmp_name): Likewise.
6021 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6022 (find_interesting_uses_address): Likewise.
6023 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6024 * tree-ssa-operands.c (get_expr_operands): Likewise.
6025 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6026 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6027 (ao_ref_init_from_vn_reference): Likewise.
6028 * tree.c (staticp): Likewise.
6029 (build1_stat): Likewise.
6030 (reference_alias_ptr_type): Likewise.
6031 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6032 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
6033 MISALIGNED_INDIRECT_REF handling.
6035 2010-09-06 Richard Guenther <rguenther@suse.de>
6037 PR tree-optimization/45534
6038 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
6039 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
6041 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
6042 valid on the target.
6044 2010-09-06 Andreas Schwab <schwab@redhat.com>
6046 * configure.ac: Quote argument of AC_MSG_WARN.
6047 * configure: Regenerate.
6049 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6051 * sel-sched.c (move_cond_jump): Correct arguments to
6052 maybe_tidy_empty_bb.
6053 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6055 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
6057 PR rtl-optimization/44919
6058 * sel-sched.c (move_cond_jump): Remove assert, check that
6059 the several blocks case can only happen with mutually exclusive
6060 insns instead. Rewrite the movement code to support moving through
6061 several basic blocks.
6063 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
6065 * config/i386/i386.md (iptrsize): New mode attribute.
6067 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
6069 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
6070 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
6071 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
6072 (stack_tls_protect_set_<mode>): Ditto from
6073 stack_tls_protect_set_{si,di}. Use %@ to output segment register
6074 of thread base pointer load.
6075 (stack_tls_protect_test_<mode>): Ditto from
6076 stack_tls_protect_test_{si,di}. Use %@ to output segment register
6077 of thread base pointer load.
6078 (stack_protect_set): Rewrite using indirect functions.
6079 (stack_protect_test): Ditto.
6080 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
6081 (ix86_print_operand): Handle '@'.
6083 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
6085 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
6088 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6090 * doc/invoke.texi: Document -Wdouble-promotion.
6091 * c-typeck.c (convert_arguments): Check for implicit conversions
6092 from float to double.
6093 (do_warn_double_promotion): New function.
6094 (build_conditional_expr): Use it.
6095 (build_binary_op): Likewise.
6097 2010-09-05 Richard Guenther <rguenther@suse.de>
6099 PR tree-optimization/45535
6100 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6101 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
6103 (indirect_refs_may_alias_p): Likewise.
6105 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
6107 * config/sh/sh.c (sh_option_override): Make static.
6108 Adjust comments. Declare.
6109 (sh_function_value_regno_p): Likewise.
6110 (sh_register_move_cost): Modify the arguments, make static.
6111 Adjust comments. Declare.
6112 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
6113 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6114 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
6115 REGISTER_MOVE_COST): Delete.
6116 * config/sh/sh-protos.h (sh_override_options): Delete.
6117 (sh_register_move_cost): Delete.
6118 (sh_function_value_regno_p): Delete.
6120 2010-09-04 Anatoly Sokolov <aesok@post.ru>
6122 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
6123 m32r_function_value_regno_p): New functions.
6124 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6125 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
6126 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
6127 FUNCTION_VALUE_REGNO_P): Remove.
6129 2010-09-04 Jan Hubicka <jh@suse.cz>
6131 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
6132 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
6133 fold_read_from_constant_string.
6135 * gimple.h (canonicalize_constructor_val): Declare.
6136 * gimple-fold.c (canonicalize_constructor_val): New function.
6137 (get_symbol_constant_value):Use it.
6138 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
6140 2010-09-04 Jan Hubicka <jh@suse.cz>
6142 * tree-switch-conversion.c (build_one_array): Set constructor to be
6144 * varpool.c (varpool_finalize_decl): Compute const_value_known.
6146 2010-09-04 Richard Guenther <rguenther@suse.de>
6149 * tree-flow.h (force_gimple_operand_1): Declare.
6150 (force_gimple_operand_gsi_1): Likewise.
6151 * gimplify.c (force_gimple_operand_1): New worker taking a
6152 gimple predicate for ...
6153 (force_gimple_operand): ... which now wraps it.
6154 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
6155 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
6157 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
6158 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
6159 (create_mem_ref): Likewise.
6161 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
6163 * config/i386/predicates.md (sse_reg_operand): New predicate.
6164 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
6165 predicate for operand 1.
6166 (XFmode push splitter): Use fp_register_operand predicate
6168 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
6169 (SF-DF float_extend push splitter): Add reload_completed insn
6171 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
6172 MODEF mode macro. Add reload_completed insn predicate.
6174 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
6176 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
6177 (struct df_extract_ref): Remove.
6178 (union df_ref_d): Remove extract_ref member.
6179 (df_ref_create): Remove last three arguments.
6180 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
6181 * df-scan.c (df_ref_record): Remove last three arguments, do not
6182 pass them to df_ref_create_structure.
6183 (df_uses_record): Remove first and last three arguments. Replace
6184 first argument with DF_REF_REGULAR, adjust calls to remove the
6185 width, offset and mode. Always call recursively on the second
6186 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
6187 (df_ref_create_structure): Remove first argument.
6188 (struct df_scan_problem_data): Remove ref_extract_pool.
6189 (df_scan_free_internal): Do not free it.
6190 (df_scan_alloc): Do not allocate it.
6191 (df_ref_create): Remove last three arguments, do not pass them to
6192 df_ref_create_structure.
6193 (df_free_ref): Remove DF_REF_EXTRACT case.
6194 (df_notes_rescan): Adjust call to df_uses_record.
6195 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
6196 Remove DF_REF_EXTRACT case.
6197 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
6198 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
6199 and SUBREG definitions.
6200 (df_get_conditional_uses): Remove references to width/offset/mode,
6201 adjust call to df_ref_create_structure.
6202 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
6203 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
6204 calls to df_uses_record and df_ref_record.
6205 * fwprop.c (update_df): Remove references to width/offset/mode,
6206 adjust call to df_ref_create.
6208 2010-09-03 Jan Hubicka <jh@suse.cz>
6210 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
6211 (build_cdtor_fns): Update use of build_cdtor.
6213 2010-09-03 Joseph Myers <joseph@codesourcery.com>
6215 * doc/options.texi (SeparateAlias): Document.
6216 * opt-functions.awk (switch_flags): Handle SeparateAlias.
6217 * opth-gen.awk: Generate enumeration names for options marked
6218 SeparateAlias, but not for those marked Ignore.
6219 * opts-common.c (generate_canonical_option): Don't output separate
6220 argument for options marked CL_SEPARATE_ALIAS.
6221 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
6222 * opts.h (CL_SEPARATE_ALIAS): New.
6223 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6224 CL_COMMON): Adjust definitions.
6225 * config/i386/darwin.opt, config/mips/sde.opt: New.
6226 * common.opt (fdump-final-insns): New.
6227 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6229 (mips*-sde-elf*): Add mips/sde.opt.
6230 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
6231 -mno-data-in-code and -mcode-xonly here.
6232 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
6233 * gcc.c (option_map): Add "j" to --dump entry.
6234 (translate_options): Don't translate -d to -foutput-class-dir= here.
6236 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
6238 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
6240 (compute_all_dependences): Same.
6241 (create_rdg_edge_for_ddr): Same.
6242 * tree-data-ref.h (DR_IS_WRITE): New.
6243 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
6244 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
6245 (write_memrefs_written_at_least_once): Same.
6246 * tree-predcom.c (suitable_component_p): Same.
6247 (determine_roots_comp): Same.
6248 (execute_load_motion): Same.
6249 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
6250 (vect_enhance_data_refs_alignment): Same.
6251 (vect_analyze_group_access): Same.
6253 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
6256 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
6257 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
6259 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
6261 * dwarf2out.c (file scope): Remove #if0'd code.
6262 (gen_subprogram_die): Same.
6264 2010-09-03 Jakub Jelinek <jakub@redhat.com>
6267 * dwarf2out.c (flush_queued_reg_saves): Rename to...
6268 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
6269 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
6270 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
6271 * config/i386/i386.c (output_set_got): Call it.
6273 2010-09-03 Michael Matz <matz@suse.de>
6276 * tree-sra.c (sra_modify_assign): If we modify the statement,
6279 * tree-ssa.c (verify_ssa): Check number of operands and links
6280 per statement to agree.
6282 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
6283 Iain Sandoe <iains@gcc.gnu.org>
6286 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
6287 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
6288 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6290 2010-09-03 Richard Guenther <rguenther@suse.de>
6292 * lto-streamer-out.c (output_function): Output function
6294 * lto-streamer-in.c (input_function): Input function start
6297 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6299 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
6300 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
6301 * configure: Regenerate.
6302 * aclocal.m4: Regenerate.
6304 2010-09-03 Jan Hubicka <jh@suse.cz>
6307 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
6308 on functions/variables in other partition.
6310 2010-09-03 Jan Hubicka <jh@suse.cz>
6312 * cgraph.h (struct varpool_node): Add const_value_known.
6313 (varpool_decide_const_value_known): Declare.
6314 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
6315 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
6316 (input_varpool_node): Restore const_value_known.
6317 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
6318 initializer folding.
6319 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6320 function_and_variable_visibility): Compute const_value_known.
6321 * gimple-fold.c (get_symbol_constant_value): Use varpool for
6322 initializer folding.
6323 * varpool.c (varpool_decide_const_value_known): New function.
6325 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
6327 * config/i386/i386.md: Remove empty preparation statements
6330 2010-09-03 Jan Hubicka <jh@suse.cz>
6332 * passes.c (rest_of_decl_compilation): Do not add local vars into
6334 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
6335 static or extern vars are in varpool.
6336 (varpool_finalize_decl): Sanity check that only static vars are
6339 2010-09-03 Jakub Jelinek <jakub@redhat.com>
6342 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
6343 not just generic vectors with BLKmode.
6345 2010-09-03 Richard Guenther <rguenther@suse.de>
6347 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
6348 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
6349 * tree.h (TMR_SYMBOL): Remove.
6350 (TMR_BASE, TMR_OFFSET): Adjust.
6352 * alias.c (ao_ref_from_mem): Use TMR_BASE.
6353 * builtins.c (get_object_alignment): Merge TMR_BASE and
6354 TMR_SYMBOL handling.
6355 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
6356 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
6357 handling. Also allow TARGET_MEM_REF as base address.
6358 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
6359 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
6360 base. Gimplify TMR_INDEX2.
6361 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
6362 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6363 (get_addr_base_and_unit_offset): Likewise.
6364 * tree-eh.c (tree_could_trap_p): Likewise.
6365 * tree-pretty-print.c (dump_generic_node): Likewise.
6366 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
6367 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
6369 (get_address_description): Reconstruct addres description
6370 from merged TMR_BASE and TMR_INDEX2.
6371 (maybe_fold_tmr): Fold propagated addresses.
6372 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
6373 MEM_REF and TARGET_MEM_REF paths.
6374 (indirect_refs_may_alias_p): Likewise.
6375 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
6376 instead of TMR_SYMBOL.
6377 * tree-ssa-operands.c (get_tmr_operands): Simplify.
6378 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
6379 according to changes ...
6380 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
6381 Split TARGET_MEM_REF into two fields plus the base.
6382 * tree.c (mem_ref_offset): Simplify.
6383 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
6384 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6385 Strip NOPs when folding MEM_REF addresses.
6386 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
6387 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
6388 (fold_gimple_assign): ... not here.
6390 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
6392 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
6393 * config/mips/mips.c (mips_shift_truncation_mask): New function.
6394 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6396 2010-09-02 Richard Henderson <rth@redhat.com>
6398 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
6399 instead of readelf in the test.
6400 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
6401 in the .debug_frame section for coff targets.
6402 * configure: Rebuild.
6404 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6406 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
6407 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
6408 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6409 (m32c_class_likely_spilled_p): Make static. Change argument type to
6410 reg_class_t. Change result type to bool.
6412 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6414 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
6415 to convert (double)(long) into a single FRIZ instruction or not
6416 when -ffast-math is used.
6418 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
6419 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
6420 or FRIZ instruction if -ffast-math.
6421 * config/rs6000/rs6000.md (friz): Ditto.
6423 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
6425 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6427 * opth-gen.awk (quote, comma): Remove unused variables.
6429 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
6431 * arm.c (arm_override_options): Correct fall-back code to use
6432 SUBTARGET_CPU_DEFAULT.
6434 2010-09-02 Julian Brown <julian@codesourcery.com>
6436 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
6438 (vcond<mode>, vcondu<mode>): New expanders.
6439 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
6440 comparisons with zero.
6441 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
6442 * config/arm/constraints.md (Dz): New constraint.
6444 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6446 * target.def (class_likely_spilled_p): New hook.
6447 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
6448 * doc/tm.texi: Regenerate.
6449 * targhooks.c (default_class_likely_spilled_p): New function.
6450 * targhooks.h (default_class_likely_spilled_p): Declare.
6451 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
6452 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
6453 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
6454 Use fixed_reg_set instead of fixed_regs.
6455 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6456 * calls.c (avoid_likely_spilled_reg): Ditto.
6457 * ira-conflicts.c (ira_build_conflicts): Ditto.
6458 * ira.c (update_equiv_regs): Ditto.
6459 * mode-switching.c (create_pre_exit): Ditto.
6460 * regmove.c (find_matches): Ditto.
6461 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6462 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
6463 (small_register_class_p): New inline function.
6464 (push_secondary_reload, find_reusable_reload, find_reloads): Use
6465 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
6467 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
6468 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
6469 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6471 2010-09-02 Richard Guenther <rguenther@suse.de>
6473 PR tree-optimization/44937
6474 PR tree-optimization/45412
6475 * ipa-split.c (split_function): Properly remove PHI nodes.
6477 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6479 * opts.h (struct cl_option): Add warn_message field.
6480 (struct cl_decoded_option): Add warn_message field.
6481 * doc/options.texi (Ignore, Warn): Document.
6482 * opt-functions.awk (needs_state_p): Don't consider aliases or
6483 ignored options to need state saved.
6484 * optc-gen.awk: Handle Warn and Ignore.
6485 * opth-gen.awk: Output OPT_SPECIAL_ignore.
6486 * opts-common.c (decode_cmdline_option): Set warn_message field.
6487 Handle ignored options.
6488 (decode_cmdline_options_to_array, generate_option,
6489 generate_option_input_file): Set warn_message field.
6490 (read_cmdline_option): Generate warnings from warn_message field.
6491 Handle ignored options.
6492 * common.opt (Wunreachable-code, fargument-alias,
6493 fargument-noalias, fargument-noalias-global,
6494 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
6495 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
6496 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
6497 ftree-salias): Mark Ignore.
6498 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
6499 -mintel-syntax and -mno-intel-syntax here.
6500 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
6502 * opts.c (common_handle_option): Don't handle options marked as
6504 (enable_warning_as_error): Handle ignored options.
6506 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6509 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
6510 alias_target fields.
6511 * opt-functions.awk (opt_sanitized_name): Don't handle
6512 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
6513 * optc-gen.awk: Generate alias fields.
6514 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
6515 Don't generate such constants for aliases.
6516 * opts-common.c (generate_canonical_option): New.
6517 (decode_cmdline_option): Handle aliases. Use
6518 generate_canonical_option for known options instead of copying the
6520 * doc/options.texi (Alias): Document.
6521 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
6522 fstack-check, specs): Mark as aliases.
6523 * gcc.c (driver_handle_option): Canonicalize -L options to joined
6525 (driver_handle_option): Don't handle OPT_specs.
6526 * opts.c (common_handle_option): Don't handle options marked as
6528 (enable_warning_as_error): Handle aliases.
6529 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
6530 OPT_Wlarger_than_eq.
6531 * tree-optimize.c (tree_rest_of_compilation): Use
6532 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
6534 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6536 * config/i386/i386.md (nonmemory_operand): New mode attribute.
6537 (push memory peephole2): Macroize peepholes using SWI mode iterator.
6538 (move immediate to memory peephole2): Macroize peepholes using
6539 SWI124 mode iterator.
6540 (non-pairable NOT peephole2): Macroize peepholes using SWI124
6542 (simple lea add peephole2): Macroize peepholes using SWI48
6544 (simple lea mult peephole2): Ditto.
6545 (imul by 3,5,9 to lea peephole2): Ditto.
6546 (mov $-1, reg peephole2): Macroize peepholes using SWI248
6548 (imul $32bit_imm,mem,reg peephole2): Ditto.
6549 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
6551 2010-09-02 Ian Bolton <ian.bolton@arm.com>
6553 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
6555 2010-09-02 Olivier Hainque <hainque@adacore.com>
6558 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
6559 (allocno_priority_compare_func): Use it instead of a straight
6560 difference computation over priorities.
6562 2010-09-02 Andi Kleen <ak@linux.intel.com>
6564 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
6566 2010-09-02 Ira Rosen <irar@il.ibm.com>
6568 * tree-vectorizer.h (get_later_stmt): New function.
6569 (vect_analyze_data_ref_dependences): Add argument.
6570 * tree-vect-loop.c (vect_analyze_loop): Update call to
6571 vect_analyze_data_ref_dependences.
6572 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
6574 (vect_analyze_data_ref_dependence): Add argument for basic block
6575 dependencies. Check dependencies in basic block vectorization.
6576 (vect_analyze_data_ref_dependences): Add argument and update call to
6577 vect_analyze_data_ref_dependences.
6578 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
6579 (vect_bb_vectorizable_with_dependencies): New.
6580 (vect_slp_analyze_bb): Check dependencies in basic block.
6581 (vect_schedule_slp_instance): Insert stores before the last store in
6584 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6587 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
6588 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6590 2010-09-01 Jakub Jelinek <jakub@redhat.com>
6593 * bb-reorder.c (add_labels_and_missing_jumps): Treat
6594 bbs ending with throwing insns like blocks ending with a call.
6595 (fix_up_fall_thru_edges): Likewise.
6597 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
6599 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
6600 (m32c_function_arg_advance): Delete.
6601 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6602 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
6603 comments. Take a const_tree and a bool. Declare.
6604 (m32c_function_arg_advance): Likewise.
6605 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6607 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6610 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
6611 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
6612 * config/i386/mingw32.h: ... here.
6614 2010-09-01 Andi Kleen <ak@linux.intel.com>
6617 * lto-streamer-in.c (lto_input_ts_target_option): Add.
6618 (lto_input_tree_pointers): Call lto_input_ts_target_option.
6619 * lto-streamer-out (lto_output_ts_target_option): Add.
6620 (lto_output_tree_pointers): Call lto_output_ts_target_option.
6622 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
6625 * config/i386/cygwin.h: Change order of specified import libraries.
6626 * config/i386/mingw32.h: Likewise.
6627 * config/i386/t-cygwin: Likewise.
6628 * config/i386/t-mingw32: Likewise.
6629 * config/i386/t-mingw-w32: Likewise.
6630 * config/i386/t-mingw-w64: Likewise.
6632 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6634 * config/arm/neon-schedgen.ml (core): New type.
6635 (allCores): List of supported cores.
6636 (availability_table): Add supported cores.
6637 (collate_bypasses): Accept core as a parameter.
6638 (worst_case_latencies_and_bypasses): Accept core as a parameter.
6639 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
6640 and coreStr to get tune attribute and prefix for functional units.
6641 (emit_bypasses): Accept core name and use it.
6642 (calculate_per_core_availability_table): New.
6644 (calculate_core_availability_table): New.
6645 (main): Use calculate_core_availablity_table.
6646 * config/arm/cortex-a8-neon.md: Update copyright year.
6647 Regenerated from ml file and merged in.
6648 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
6651 2010-09-01 Ian Bolton <ian.bolton@arm.com>
6653 * Makefile.in (tree-switch-conversion.o): Update dependencies.
6655 2010-09-01 Richard Guenther <rguenther@suse.de>
6657 * alias.c (ao_ref_from_mem): Adjust.
6658 * builtins.c (get_object_alignment): Likewise.
6659 * cfgexpand.c (expand_debug_expr): Likewise.
6660 * gimple.c (get_base_address): Likewise.
6661 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6662 (get_addr_base_and_unit_offset): Likewise. Fix for
6663 both TMR_SYMBOL and TMR_BASE being set.
6664 * tree-eh.c (tree_could_trap_p): Likewise.
6665 * gimplify.c (gimplify_expr): Do not attempt to gimplify
6666 TMR_SYMBOL. Always gimplify TMR_BASE.
6667 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6668 TMR_BASE if there is a TMR_SYMBOL.
6669 * tree-pretty-print.c (dump_generic_node): Adjust.
6670 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6671 (tree_mem_ref_addr): Likewise.
6672 (create_mem_ref_raw): Likewise.
6673 (move_fixed_address_to_symbol): Likewise.
6674 (create_mem_ref): Likewise.
6675 (dump_mem_address): Likewise.
6676 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
6677 Fix for both TMR_SYMBOL and TMR_BASE being set.
6678 (indirect_refs_may_alias_p): Likewise.
6679 * tree-ssa-operands.c (get_tmr_operands): Adjust.
6680 * tree.def (TARGET_MEM_REF): Adjust documentation.
6682 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6684 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
6685 Rename from X86_TUNE_ADD_ESP_4.
6686 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
6687 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
6688 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
6689 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
6690 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
6691 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
6692 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
6693 * config/i386/i386.c (initial_ix86_tune_features)
6694 <X86_TUNE_SINGLE_POP>: Invert members.
6695 <X86_TUNE_DOUBLE_POP>: Ditto.
6696 <X86_TUNE_SINGLE_PUSH>: Ditto.
6697 <X86_TUNE_DOUBLE_PUSH>: Ditto.
6698 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
6700 (push peephole2 patterns): Macroize peepholes using P mode iterator.
6701 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
6702 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
6703 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
6705 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
6707 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
6708 a volatile LHS if the constructor has only one element.
6710 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
6713 * tree.c (stdarg_p): Make fntype parameter const.
6714 * tree.h (stdarg_p): Likewise.
6715 (function_args_iterator): Remove unused fntype field.
6716 (function_args_iter_init): Do not initialize fntype
6717 field. Make fntype parameter const.
6719 2010-09-01 Richard Guenther <rguenther@suse.de>
6721 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
6723 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
6724 (execute_vrp): Compute number of iteration estimates.
6725 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
6726 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6727 * tree-data-ref.c (estimated_loop_iterations): Adjust.
6728 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6729 Infer loop bounds from undefined behavior based on a new parameter.
6730 (estimate_numbers_of_iterations): Likewise.
6731 (scev_probably_wraps_p): Adjust.
6732 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6734 2010-09-01 Nick Clifton <nickc@redhat.com>
6736 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
6738 (xstormy16_legitimate_address_p): Use true and false instead of 1
6740 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
6741 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
6743 (xstormy16_expand_call): Fix comment at start of function.
6745 2010-09-01 Nick Clifton <nickc@redhat.com>
6747 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
6748 when pushing accumulator register.
6749 (rx_get_stack_layout): Always save call clobbered registers inside
6751 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
6753 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6755 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
6756 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
6758 * libgcc-std.ver (GCC_4.6.0): Define version.
6760 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6762 * tree-nested.c (convert_all_function_calls): Iterate until after the
6763 sum of static chains in the nest doesn't change.
6765 2010-08-31 Anatoly Sokolov <aesok@post.ru>
6767 * config/m32c/m32c.c (classes_intersect): Remove.
6768 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
6769 reg_classes_intersect_p instead of classes_intersect.
6770 (class_can_hold_mode): Change arguments type from enum reg_class to
6771 reg_class_t. Use reg_class_contents instead of class_contents.
6772 (m32c_register_move_cost): Make static. Change arguments type from
6773 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
6774 classes_intersect. Use reg_class_contents instead of class_contents.
6775 (m32c_memory_move_cost): Make static. Change arguments type from
6776 enum reg_class to reg_class_t.
6777 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6778 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6779 * config/m32c/m32c-protos.h (m32c_register_move_cost,
6780 m32c_memory_move_cost): Remove.
6782 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6784 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
6785 (arm_function_arg): Delete.
6786 (arm_needs_doubleword_align): Take a const_tree.
6787 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6788 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
6789 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
6790 (arm_function_arg): Make static. Take a const_tree and a bool.
6791 (arm_function_arg_advance): Likewise.
6792 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6794 2010-08-31 Andi Kleen <ak@linux.intel.com>
6796 * common.opt (fwhopr=): Update for -fwhopr=jobserver
6797 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
6798 * lto-wrapper.c (run_gcc): Add jobserver mode.
6799 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
6802 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
6804 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
6806 (*popdi1_epilogue): Ditto.
6807 (*popsi1_epilogue): Ditto.
6808 (popsi, popdi peephole2 patterns): Update peepholes for changed
6809 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
6811 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
6812 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
6814 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
6815 (override_options): Do not initialize removed ix86_gen_pop1.
6816 (gen_pop): New static function.
6817 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
6818 (release_scratch_register_on_entry): Ditto.
6819 (ix86_restore_reg_using_pop): Ditto.
6820 (ix86_expand_epilogue): Ditto.
6822 2010-08-31 Jakub Jelinek <jakub@redhat.com>
6825 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
6827 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6829 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
6832 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6834 * doc/extend.texi: Fix documentation of the return value of
6835 __builtin_choose_expr.
6837 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6839 * config/v850/v850-protos.h (function_arg): Delete.
6840 * config/v850/v850.h (FUNCTION_ARG): Delete.
6841 (FUNCTION_ARG_ADVANCE): Move code to...
6842 * config/v850/v850.c (v850_function_arg_advance): ...here.
6843 (v850_function_arg): Make static. Take a const_tree and a bool.
6844 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6846 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6848 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
6850 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6852 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
6854 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6856 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6858 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6860 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
6862 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6863 * config/rx/rx.c (rx_function_arg_size): Make static.
6864 (rx_function_arg): Likewise.
6865 (rx_function_arg_advance): New function.
6866 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6868 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
6870 * config/arm/arm.c (arm_override_options): Remove superfluous test.
6873 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6875 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
6876 (dwarf2out_decl) <CONST_DECL>: Likewise.
6878 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
6881 * common.opt (-fstack-usage): New option.
6882 * doc/invoke.texi (Debugging options): Document it.
6883 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
6884 allocate_dynamic_stack_space.
6885 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
6886 and propagate it to allocate_dynamic_stack_space.
6887 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
6888 * calls.c (initialize_argument_information): Pass TRUE as 4th
6889 argument to allocate_dynamic_stack_space.
6890 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
6891 to 1 when pushing a variable-sized argument onto the stack. Pass
6892 TRUE as 4th argument to allocate_dynamic_stack_space.
6893 Update current_function_pushed_stack_size.
6894 (emit_library_call_value_1): Likewise.
6895 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
6896 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
6897 attempt to find an upper bound. Remove redundant code for the
6898 SETJMP_VIA_SAVE_AREA case.
6899 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
6900 * function.h (struct stack_usage): New structure.
6901 (current_function_static_stack_size): New macro.
6902 (current_function_dynamic_stack_size): Likewise.
6903 (current_function_pushed_stack_size): Likewise.
6904 (current_function_dynamic_alloc_count): Likewise.
6905 (current_function_has_unbounded_dynamic_stack_size): Likewise.
6906 (current_function_allocates_dynamic_stack_space): Likewise.
6907 (struct function): Add new field 'su'.
6908 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
6909 add the value of the dynamic offset to the dynamic stack usage.
6910 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
6911 for variable-sized objects.
6912 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
6913 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
6914 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
6915 BUILT_IN_ALLOCA for variable-sized objects.
6916 * output.h (output_stack_usage): Declare.
6917 * toplev.c (stack_usage_file): New file pointer.
6918 (output_stack_usage): New function.
6919 (open_auxiliary_file): Likewise.
6920 (lang_dependent_init): Open file if flag_stack_usage is set.
6921 (finalize): Close file if stack_usage_file is not null.
6922 * tree.h (ALLOCA_FOR_VAR_P): New macro.
6923 * config/alpha/alpha.c (compute_frame_size): New function.
6924 (alpha_expand_prologue): Use it.
6925 (alpha_start_function): Likewise.
6926 (alpha_expand_epilogue): Likewise. Set stack usage info.
6927 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6928 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6929 * config/mips/mips.c (mips_expand_prologue): Likewise.
6930 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6931 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6932 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6934 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
6936 PR tree-optimization/45427
6937 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
6938 Handle the case that the exit is never taken correctly.
6939 (number_of_iterations_ne): Pass exit_must_be_taken to
6940 number_of_iterations_ne_max.
6942 2010-08-30 Catherine Moore <clm@codesourcery.com>
6944 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
6945 Infer -mdspr2 for the the 74K.
6947 2010-08-30 Jakub Jelinek <jakub@redhat.com>
6950 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
6953 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
6954 and TRUTH_{AND,OR,XOR}_EXPR.
6955 * c-parser.c (c_parser_omp_atomic): Handle boolean
6956 {PRE,POST}_{INC,DEC}REMENT.
6958 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
6960 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
6961 (function_arg): Delete.
6962 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6963 (FUNCTION_INCOMING_ARG): Delete.
6964 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
6965 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
6967 (function_arg): Rename to...
6968 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
6970 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
6971 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6972 (TARGET_FUNCTION_INCOMING_ARG): Define.
6974 2010-08-30 Richard Guenther <rguenther@suse.de>
6976 PR tree-optimization/21602
6977 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
6978 using points-to information.
6980 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
6982 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
6984 2010-08-30 Richard Guenther <rguenther@suse.de>
6986 PR tree-optimization/45449
6987 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
6990 2010-08-30 Joseph Myers <joseph@codesourcery.com>
6992 * opts.h (CL_ERR_NEGATIVE): Define.
6993 * opts.c (unknown_option_callback): Don't postpone warnings for
6994 options marked with CL_ERR_NEGATIVE.
6995 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
6996 for negative versions of CL_REJECT_NEGATIVE options.
6998 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
7000 * config/i386/i386.md (zero_extendsidi2_1): Rename from
7001 zero_extendsidi2_32.
7002 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
7003 using SWI12 mode iterator.
7004 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
7005 to define_insn_and_split pattern.
7006 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
7007 using SWI24 mode iterator.
7008 (*zero_extendqi<mode>2_and): Macroize insn from
7009 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
7010 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
7011 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
7012 SWI24 mode iterator.
7013 (*zero_extendqi<mode>2_movzbl): Ditto from
7014 *zero_extendqi{hi,si}2_movzbl.
7015 (extendsidi2_1): Rename from extendsidi2_32.
7016 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
7017 SWI12 mode iterator.
7019 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
7021 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
7022 general purpose registers.
7023 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
7024 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
7025 with general purpose registers and memory operands. Add associated
7026 CCImode post-reload splitter.
7027 * config/ia64/div.md: Change BImode to CCImode throughout.
7029 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
7031 * config/ia64/ia64.md (cstorebi4): Fix thinko.
7033 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
7035 * config/picochip/picochip.c (reorder_var_tracking_notes): This
7036 function was dropping debug insns which caused PR45299.
7038 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
7040 * config/i386/sse.md (extsuffix): New code attribute.
7041 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
7042 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
7043 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
7044 and sse4_1_zero_extendv4qiv4si2.
7045 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
7046 and sse4_1_zero_extendv2qiv2di2.
7047 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
7048 and sse4_1_zero_extendv4hiv4si2.
7049 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
7050 and sse4_1_zero_extendv2hiv2di2.
7051 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
7052 and sse4_1_zero_extendv2siv2di2
7054 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
7055 using any_extend code iterator.
7056 (*avx_<s>mulv8hi3_highpart): Macroize insn from
7057 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
7058 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
7060 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
7061 gen_sse4_1_sign_extend* functions.
7062 (struct builtin_description bdesc_args): Ditto.
7064 2010-08-27 Xinliang David Li <davidxl@google.com>
7067 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
7068 (iv_ca_set_no_cp): Update used inv expr count.
7069 (iv_ca_set_cp): Ditto.
7070 (iv_ca_new): Initialize new member.
7071 (iv_ca_free): Free memory.
7073 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
7075 * config/sh/sh-protos.h (sh_function_arg): Delete.
7076 (sh_function_arg_advance): Delete.
7077 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7078 (PASS_IN_REG_P): Eliminate cast.
7079 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
7080 const_tree and a bool.
7081 (sh_function_arg): Likewise.
7082 (sh_output_mi_thunk): Call sh_function_arg_advance) and
7084 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7086 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
7087 Kaz Kojima <kkojima@gcc.gnu.org>
7089 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
7091 (sh_expand_epilogue): Likewise.
7092 * config/sh/sh.md (movml_push_banked): New insn.
7093 (movml_pop_banked): Likewise.
7095 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
7097 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
7098 gen_regexp_oneof, gen_regexp_sequence): Use the string found
7099 in vector element 0 rather than the original string when there's
7101 (gen_regexp): Remove extra semicolon.
7103 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
7104 thumb2_movsf_vfp): Set attribute "insn".
7105 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
7106 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
7107 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
7108 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
7109 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
7110 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
7111 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
7112 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
7113 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
7114 if_not_arith, if_arith_not, cond_move_not): Likewise.
7116 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7118 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
7120 (rs6000_allocate_stack_temp): Ditto.
7121 (rs6000_expand_convert_si_to_sfdf): Ditto.
7123 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
7124 line. Update the options set if power6 or power7 server/embedded
7125 type options are used. If we give a warning for no vsx under
7126 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
7127 (rs6000_allocate_stack_temp): New function to allocate a stack
7128 tempoary and adjust the address so it meets either REG+OFFSET or
7129 REG+REG addressing requirements.
7130 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
7131 that they can be used with the LFIWAX/LFIWZX instrucitons.
7132 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
7133 converting signed/unsigned SImode to either SFmode/DFmode.
7135 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
7136 whether certain instructions can be generated.
7137 (TARGET_FCTIDZ): Ditto.
7138 (TARGET_STFIWX): Ditto.
7139 (TARGET_LFIWAX): Ditto.
7140 (TARGET_LFIWZX): Ditto.
7141 (TARGET_FCFIDS): Ditto.
7142 (TARGET_FCFIDU): Ditto.
7143 (TARGET_FCFIDUS): Ditto.
7144 (TARGET_FCTIDUZ): Ditto.
7145 (TARGET_FCTIWUZ): Ditto.
7147 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
7148 (UNSPEC_FCTID): Ditto.
7149 (UNSPEC_LFIWAX): Ditto.
7150 (UNSPEC_LFIWZX): Ditto.
7151 (UNSPEC_FCTIWUZ): Ditto.
7152 (rreg): Use correct constraints.
7153 (SI_CONVERT_FP): New mode attribute for floating point conversion
7155 (E500_CONVERT): Ditto.
7156 (lfiwax): New insns for converting from integer to floating point
7157 utilizing newer instructions. Attempt to optimize conversions
7158 that come from memory so that we don't load the value into a GPR,
7159 spill it to the stack and reload it into a FPR.
7160 (floatsi<mode>2_lfiwax): Ditto.
7161 (floatsi<mode>2_lfiwax_mem): Ditto.
7162 (floatsi<mode>2_lfiwax_mem2): Ditto.
7164 (floatunssi<mode>2_lfiwzx): Ditto.
7165 (floatunssi<mode>2_lfiwzx_mem): Ditto.
7166 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
7167 (floatdidf2_mem): Ditto.
7168 (floatunsdidf2_fcfidu): Ditto.
7169 (floatunsdidf2_mem): Ditto.
7170 (floatunsdisf2): Ditto.
7171 (floatunsdisf2_fcfidus): Ditto.
7172 (floatunsdisf2_mem): Ditto.
7173 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
7174 Use FCFID on 32-bit hosts that support it.
7175 (floatsidf2_internal): Ditto.
7176 (floatunssisf2): Ditto.
7177 (floatunssidf2): Ditto.
7178 (floatunssidf2_internal): Ditto.
7179 (floatsisf2): Ditto.
7180 (floatdidf2): Ditto.
7181 (floatdidf2_fpr): Ditto.
7182 (floatunsdidf2): Ditto.
7183 (floatdisf2): Ditto.
7184 (floatdisf2_fcfids): Ditto.
7185 (floatdisf2_internal1): Ditto.
7186 (fixuns_truncsfsi2): Delete, merge into common pattern for both
7187 SF/DF. Add power7 support.
7188 (fix_truncsfsi2): Ditto.
7189 (fixuns_truncdfsi2): Ditto.
7190 (fixuns_truncdfdi2): Ditto.
7191 (fix_truncdfsi2): Ditto.
7192 (fix_truncdfsi2_internal): Ditto.
7193 (fix_truncdfsi2_internal_gfxopt): Ditto.
7194 (fix_truncdfsi2_mfpgpr): Ditto.
7197 (btruncdf2_fpr): Ditto.
7200 (ceildf2_fpr): Ditto.
7203 (floordf2_fpr): Ditto.
7206 (rounddf2_fpr): Ditto.
7208 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
7209 (fix_trunc<mode>di2): Ditto.
7210 (fixuns_trunc<mode>si2): Ditto.
7211 (fixuns_trunc<mode>di2): Ditto.
7212 (fctiwz_<mode>): Ditto.
7213 (btrunc<mode>2): Ditto.
7214 (btrunc<mode>2_fpr): Ditto.
7215 (ceil<mode>2): Ditto.
7216 (ceil<mode>2_fpr): Ditto.
7217 (floor<mode>2): Ditto.
7218 (float<mode>2_fpr): Ditto.
7219 (round<mode>2): Ditto.
7220 (round<mode>2_fpr): Ditto.
7221 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
7222 (fixuns_trunc<mode>si2_stfiwx): Ditto.
7223 (fix_truncdfsi2_internal): Ditto.
7224 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
7225 converted value on stack, loaded into GPR, and then stored into
7226 the final destination.
7227 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
7229 (lrint<mode>di2): New insn, provide the lrint builtin functions.
7230 (ftruncdf2): Delete, unused.
7231 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
7233 * config/rs6000/vsx.md (toplevel): Update copyright year.
7234 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
7237 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
7238 Jeremie Salvucci <jeremie.salvucci@free.fr>
7240 * gengtype.c (output_type_enum): Test the right union member.
7242 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
7245 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
7246 operands for operand 1.
7247 (sse4_1_extendv4qiv4si2): Ditto.
7248 (sse4_1_extendv2qiv2di2): Ditto.
7249 (sse4_1_extendv4hiv4si2): Ditto.
7250 (sse4_1_extendv2hiv2di2): Ditto.
7251 (sse4_1_extendv2siv2di2): Ditto.
7252 (sse4_1_zero_extendv8qiv8hi2): Ditto.
7253 (sse4_1_zero_extendv4qiv4si2): Ditto.
7254 (sse4_1_zero_extendv2qiv2di2): Ditto.
7255 (sse4_1_zero_extendv4hiv4si2): Ditto.
7256 (sse4_1_zero_extendv2hiv2di2): Ditto.
7257 (sse4_1_zero_extendv2siv2di2): Ditto.
7258 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
7259 (*sse4_1_extendv4qiv4si2): Ditto.
7260 (*sse4_1_extendv2qiv2di2): Ditto.
7261 (*sse4_1_extendv4hiv4si2): Ditto.
7262 (*sse4_1_extendv2hiv2di2): Ditto.
7263 (*sse4_1_extendv2siv2di2): Ditto.
7264 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
7265 (*sse4_1_zero_extendv4qiv4si2): Ditto.
7266 (*sse4_1_zero_extendv2qiv2di2): Ditto.
7267 (*sse4_1_zero_extendv4hiv4si2): Ditto.
7268 (*sse4_1_zero_extendv2hiv2di2): Ditto.
7269 (*sse4_1_zero_extendv2siv2di2): Ditto.
7271 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
7273 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
7274 (mips_function_arg): Delete.
7275 (mips_function_arg_boundary): Take a const_tree.
7276 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
7277 (mips_arg_info): Likewise.
7278 (mips_setup_incoming_varargs): Call mips_function_arg_advance
7279 instead of FUNCTION_ARG_ADVANCE.
7280 (mips_function_arg_advance): Adjust prototype. Make static.
7281 (mips_function_arg): Likewise.
7282 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7283 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7285 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
7287 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7288 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
7289 (function_arg): Delete.
7290 (function_arg_boundary): Take a const_tree.
7291 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
7292 (rs6000_spe_function_arg): Likewise.
7293 (rs6000_parm_start): Likewise.
7294 (rs6000_arg_size): Likewise.
7295 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
7296 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
7297 (rs6000_mixed_function_arg): Likewise.
7298 (function_arg): Rename to...
7299 (rs6000_function_arg): ...this.
7300 (function_arg_advance): Rename to...
7301 (rs6000_function_arg_advance_1): ...this
7302 (rs6000_function_arg_advance): New function. Call it.
7303 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
7304 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
7305 (rs6000_function_value): Likewise.
7306 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7308 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7310 * config/arm/arm.md (enabled): Test the value of arch_enabled
7311 rather than just using it.
7313 2010-08-27 Olivier Hainque <hainque@adacore.com>
7314 Eric Botcazou <ebotcazou@adacore.com>
7316 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
7317 cover all the possible offsets from this base.
7318 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
7320 2010-08-26 Jakub Jelinek <jakub@redhat.com>
7322 PR tree-optimization/44485
7323 * calls.c (flags_from_decl_or_type): For const or pure
7324 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
7325 together with ECF_CONST resp. ECF_PURE.
7326 * builtins.c (expand_builtin): Use flags_from_decl_or_type
7327 instead of querying flags directly.
7328 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
7329 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
7331 2010-08-26 Richard Guenther <rguenther@suse.de>
7333 PR tree-optimization/45255
7334 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
7335 and externals are also invariant.
7337 2010-08-25 Jakub Jelinek <jakub@redhat.com>
7339 PR rtl-optimization/44858
7340 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
7341 newi2pat, make sure they don't affect newpat.
7343 PR rtl-optimization/45400
7344 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
7345 SUBREG_REG if both modes are of MODE_INT class.
7347 2010-08-25 Julian Brown <julian@codesourcery.com>
7349 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
7350 * config/arm/arm.md (generic_sched): No for Cortex-A5.
7351 (generic_vfp): Likewise.
7352 (cortex-a5.md): Include.
7353 * config/arm/cortex-a5.md: New.
7355 2010-08-25 Richard Guenther <rguenther@suse.de>
7357 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
7358 * gimple.c (gimple_get_alias_set): Remove special handling
7361 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
7364 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
7365 dead_or_set_p when computing i0_feeds_i2_n.
7367 * combine.c (find_split_point): Undo canonicalization of multiply-add
7368 to (minus x (mult)) when it seems likely that this will increase the
7371 2010-08-25 Richard Guenther <rguenther@suse.de>
7374 * lto-streamer.c (lto_record_common_node): Do not mess with
7375 TYPE_CANONICAL when not in lto.
7376 * gimple.c (gimple_register_type): Likewise.
7378 2010-08-25 Richard Guenther <rguenther@suse.de>
7380 PR tree-optimization/45316
7381 * tree-ssa-pre.c (eliminate): Properly clean EH info.
7383 2010-08-25 Richard Guenther <rguenther@suse.de>
7385 PR tree-optimization/45393
7386 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
7387 and clean EH info. Avoid SSA update.
7388 (execute_cse_sincos): Cleanup the CFG if it has changed.
7390 2010-08-25 Richard Guenther <rguenther@suse.de>
7393 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
7394 TARGET_MEM_REF in alignment computation.
7396 2010-08-25 Jakub Jelinek <jakub@redhat.com>
7398 PR tree-optimization/45059
7399 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
7400 type conversions from newop{1,2}. Assert t is a comparison and
7401 newop{1,2} after the stripping are gimple vals.
7403 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
7405 * config/arm/iterators.md (VU, SE, V_widen_l): New.
7406 (V_unpack, US): New.
7407 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
7408 (vec_unpack<US>_lo_<mode>): Likewise.
7409 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
7410 (neon_vec_unpack<US>_lo_<mode>): Likewise.
7411 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
7412 (vec_widen_<US>mult_hi_<mode>): Likewise.
7413 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
7414 (neon_vec_<US>mult_hi_<mode>"): Likewise.
7415 (neon_unpack<US>_<mode>): Widening move intermediate step for
7416 vectorizing without -mvectorize-with-neon-quad.
7417 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
7418 for vectorizing without -mvectorize-with-neon-quad.
7419 * config/arm/predicates.md (vect_par_constant_high): Check for
7420 high-half lanes of a vector.
7421 (vect_par_constant_low): Check for low-half lanes of a vector.
7423 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7425 * tree-if-conv.c (struct ifc_dr): New.
7427 (DR_WRITTEN_AT_LEAST_ONCE): New.
7428 (DR_RW_UNCONDITIONALLY): New.
7429 (memref_read_or_written_unconditionally): Use the cached values
7431 (write_memref_written_at_least_once): Same.
7432 (if_convertible_loop_p): Initialize and free DR->aux fields.
7434 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7436 * gimple.c (gimple_could_trap_p_1): Not static anymore.
7437 Pass an extra bool parameter include_mem.
7438 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
7439 (gimple_assign_rhs_could_trap_p): Same.
7440 * gimple.h (gimple_could_trap_p_1): Declared.
7441 * tree-data-ref.h (same_data_refs_base_objects): New.
7442 (same_data_refs): New.
7443 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
7444 (write_memrefs_written_at_least_once): New.
7445 (ifcvt_memrefs_wont_trap): New.
7446 (operations_could_trap): New.
7447 (ifcvt_could_trap_p): New.
7448 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
7449 Gets a vector of data refs.
7450 (if_convertible_stmt_p): Same.
7451 (if_convertible_loop_p_1): New.
7452 (if_convertible_loop_p): Call if_convertible_loop_p_1.
7454 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7456 * common.opt (ftree-loop-if-convert-stores): New flag.
7457 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
7458 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
7459 the created statement before GSI.
7460 (if_convertible_phi_p): Allow virtual phi nodes when
7461 flag_loop_if_convert_stores is set.
7462 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
7463 Do not handle types that do not match is_gimple_reg_type.
7464 Remove loop and bb parameters. Call gimple_could_trap_p instead of
7465 when flag_loop_if_convert_stores is set, as LHS can contain
7467 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
7468 to if_convertible_gimple_assign_stmt_p.
7469 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
7470 (replace_phi_with_cond_gimple_assign_stmt): Renamed
7471 predicate_scalar_phi. Do not handle virtual phi nodes.
7472 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
7473 Call predicate_scalar_phi.
7474 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
7475 just after the labels for flag_loop_if_convert_stores, otherwise
7476 insert the predicate in the end of the BB.
7477 (predicate_mem_writes): New.
7478 (combine_blocks): Call predicate_all_scalar_phis. When
7479 flag_loop_if_convert_stores is set, call predicate_mem_writes.
7480 (tree_if_conversion): Call mark_sym_for_renaming when
7481 flag_loop_if_convert_stores is set.
7482 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
7483 flag_loop_if_convert_stores is set.
7485 2010-08-24 Anatoly Sokolov <aesok@post.ru>
7487 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
7488 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
7489 (pa_function_value): Make static.
7490 (override_options): Rename to...
7491 (pa_option_override): ...this. Make static.
7492 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
7493 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
7494 TARGET_OPTION_OVERRIDE): Define.
7495 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
7496 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
7498 * config/pa/pa-protos.h (override_options): Remove.
7500 2010-08-24 Richard Guenther <rguenther@suse.de>
7503 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
7504 if addr->index is NULL or zero.
7505 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
7506 TARGET_MEM_REF more properly.
7507 (indirect_ref_may_alias_decl_p): Likewise.
7508 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
7509 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
7511 2010-08-23 Anatoly Sokolov <aesok@post.ru>
7513 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
7514 (m32c_override_options): Rename to...
7515 (m32c_option_override): ...this. Make static.
7516 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
7517 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
7519 * config/m32c/m32c-protos.h (m32c_override_options,
7520 m32c_function_value_regno_p): Remove.
7522 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7524 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
7525 Fix a typo in a previous commit.
7527 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
7529 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
7530 Pre-initialize innerloop_iters to one.
7532 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7534 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
7535 existing static function global.
7537 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
7538 is changed to global.
7540 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
7541 may_be_nonaddressable_p on base, and don't collect this reference
7542 if the address of the base could not be taken.
7544 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7546 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
7547 enable the compiler to autovectorize mathmetical functions for
7548 power7 using the Mathematical Acceleration Subsystem library.
7550 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
7551 handle which vector math library we have.
7552 (rs6000_override_options): Add -mveclibabi=mass support.
7553 (rs6000_builtin_vectorized_libmass): New function to handle auto
7554 vectorizing math functions that are in the MASS library.
7555 (rs6000_builtin_vectorized_function): Call it.
7557 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7560 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7563 * gthr-posix.h (__gthread_active_init): Delete.
7564 (__gthread_active_p): Do activity check here.
7565 Don't include errno.h on hppa-hpux. Update comment.
7566 * gthr-posix95.h (__gthread_active_init): Delete.
7567 (__gthread_active_p): Do activity check here.
7568 Don't include errno.h on hppa-hpux. Update comment.
7569 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
7570 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
7571 add -lpthread when -mt or -pthread is specified.
7572 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
7573 (LINK_GCC_C_SEQUENCE_SPEC): Define.
7574 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
7575 (stublib.c, pthread_default_stacksize_np-stub.o,
7576 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
7577 $(T)libgcc_stub.a): Add methods.
7578 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
7579 (stublib.c, pthread_default_stacksize_np-stub.o,
7580 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
7581 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7582 pthread_mutex_unlock): New stubs.
7584 2010-08-22 Joseph Myers <joseph@codesourcery.com>
7586 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
7587 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
7589 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
7590 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
7591 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
7592 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
7593 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
7595 * cppspec.c: Include opts.h.
7596 (lang_specific_driver): Use cl_decoded_option structures.
7597 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
7598 * doc/tm.texi: Regenerate.
7599 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
7600 (driver_handle_option): Allow driver options needing no special
7602 (process_command): Decode options before call to
7603 lang_specific_driver. Pass decoded options to
7604 lang_specific_driver.
7605 * gcc.h (lang_specific_driver): Update prototype.
7606 * gccspec.c: Include opts.h.
7607 (lang_specific_driver): Use cl_decoded_option structures.
7608 * opts-common.c (option_ok_for_language, generate_option,
7609 generate_option_input_file): New.
7610 (decode_cmdline_option): Use option_ok_for_language.
7611 (decode_cmdline_options_to_array): Use generate_option_input_file.
7612 (handle_generated_option): Use generate_option.
7613 * opts.h (generate_option, generate_option_input_file): Declare.
7615 2010-08-22 Anatoly Sokolov <aesok@post.ru>
7617 * config/mips/mips.c (mips_override_options): Rename to...
7618 (mips_option_override): ...this. Make static.
7619 (TARGET_OPTION_OVERRIDE): Define.
7620 (mips_in_small_data_p): Update comment.
7621 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
7622 (FIXED_REGISTERS): Update comment.
7623 * config/mips/mips-protos.h (mips_override_options): Remove.
7625 2010-08-21 Olivier Hainque <hainque@adacore.com>
7627 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
7629 2010-08-21 Olivier Hainque <hainque@adacore.com>
7631 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
7632 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
7634 2010-08-20 Jan Hubicka <jh@suse.cz>
7636 * tree-pass.h (pass_ipa_cdtor_merge): New function.
7637 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
7639 (record_cdtor_fn): Move to ipa.c; do not test for
7641 (build_cdtor): Move to ipa.c; add code avoiding construction
7642 when target have ctors/dtors and there is only one ctor/dtor at given
7644 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
7645 sort; reverse order of constructors.
7646 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
7647 (cgraph_finalize_function): Do not call record_cdtor_fn.
7648 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
7649 (cgraph_build_static_cdtor): Move to ipa.c.
7650 * ipa.c: Include target.h and tree-iterator.h.
7651 (cgraph_build_static_cdtor, static_ctors, static_dtors,
7652 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
7653 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
7654 pass_ipa_cdtor_merge): New.
7655 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
7656 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
7659 2010-08-20 Jan Hubicka <jh@suse.cz>
7663 * cgraph.h (cgraph_only_called_directly_p,
7664 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
7666 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
7668 (cgraph_finalize_function): Static cdtors are reachable.
7669 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
7671 2010-08-20 Jan Hubicka <jh@suse.cz>
7673 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
7675 * lto-streamer-out.c (lto_output): Likewise.
7676 * passes.c (ipa_write_optimization_summaries): Initialize statement
7679 2010-08-20 Olivier Hainque <hainque@adacore.com>
7681 * tree.h (alias_diag_flags): New enum.
7682 (alias_pair): Add an 'emitted_diags' field.
7683 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
7684 (assemble_alias): Initialize emitted_diags of new pairs.
7686 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
7688 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7689 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7690 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7691 (STACK_CHECK_PROTECT): Define.
7692 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
7693 (output_probe_stack_range): Likewise.
7694 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
7695 builtin stack checking is enabled.
7696 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
7697 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7698 (probe_stack_range): New insn.
7700 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
7703 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
7706 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
7709 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7712 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
7713 to cover zero extension into 64-bit register.
7714 (*sse2_pextrw): Likewise.
7715 (*sse4_1_pextrd_zext): New insn.
7717 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7719 revert r163410, partially revert r163267.
7720 * config/rs6000/darwin.h (LIB_SPEC): Remove.
7721 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
7724 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7727 * builtins.c (expand_builtin): Don't optimize away
7728 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
7730 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
7732 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
7733 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
7734 alternative 1 of operand 2.
7736 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7737 Paolo Bonzini <bonzini@gnu.org>
7739 * simplify-rtx.c (simplify_unary_operation_1): Optimize
7740 (sign_extend (zero_extend (...)) and
7741 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
7743 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7745 PR rtl-optimization/45353
7746 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
7747 after bb_note is a BARRIER.
7749 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7751 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
7754 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7755 Michael Matz <matz@suse.de>
7757 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
7759 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7761 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
7762 (ggc_mark_roots): ...here.
7764 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7766 * vec.h (FOR_EACH_VEC_ELT): Define.
7768 * cfgloop.c: Likewise.
7769 * cfgloopmanip.c: Likewise.
7770 * cgraph.c: Likewise.
7771 * cgraphunit.c: Likewise.
7772 * combine.c: Likewise.
7773 * config/bfin/bfin.c: Likewise.
7774 * config/mips/mips.c: Likewise.
7775 * config/rs6000/rs6000.c: Likewise.
7776 * dbxout.c: Likewise.
7777 * df-scan.c: Likewise.
7778 * dominance.c: Likewise.
7780 * dwarf2out.c: Likewise.
7781 * except.c: Likewise.
7783 * function.c: Likewise.
7785 * genattr.c: Likewise.
7786 * ggc-common.c: Likewise.
7787 * gimplify.c: Likewise.
7788 * graphite-blocking.c: Likewise.
7789 * graphite-clast-to-gimple.c: Likewise.
7790 * graphite-dependences.c: Likewise.
7791 * graphite-interchange.c: Likewise.
7792 * graphite-poly.c: Likewise.
7793 * graphite-scop-detection.c: Likewise.
7794 * graphite-sese-to-poly.c: Likewise.
7795 * graphite.c: Likewise.
7796 * haifa-sched.c: Likewise.
7797 * ifcvt.c: Likewise.
7798 * implicit-zee.c: Likewise.
7799 * ipa-prop.c: Likewise.
7800 * ipa-struct-reorg.c: Likewise.
7802 * ira-build.c: Likewise.
7803 * ira-color.c: Likewise.
7804 * ira-emit.c: Likewise.
7805 * lambda-code.c: Likewise.
7806 * loop-invariant.c: Likewise.
7807 * loop-unroll.c: Likewise.
7808 * lower-subreg.c: Likewise.
7809 * lto-cgraph.c: Likewise.
7810 * lto-opts.c: Likewise.
7811 * lto-streamer-in.c: Likewise.
7812 * lto-streamer-out.c: Likewise.
7813 * lto-streamer.c: Likewise.
7814 * lto-symtab.c: Likewise.
7815 * matrix-reorg.c: Likewise.
7817 * predict.c: Likewise.
7818 * print-tree.c: Likewise.
7819 * sdbout.c: Likewise.
7820 * sel-sched-dump.c: Likewise.
7821 * sel-sched-ir.c: Likewise.
7822 * sel-sched.c: Likewise.
7824 * stor-layout.c: Likewise.
7825 * tree-cfg.c: Likewise.
7826 * tree-cfgcleanup.c: Likewise.
7827 * tree-chrec.c: Likewise.
7828 * tree-data-ref.c: Likewise.
7829 * tree-emutls.c: Likewise.
7830 * tree-inline.c: Likewise.
7831 * tree-into-ssa.c: Likewise.
7832 * tree-loop-distribution.c: Likewise.
7833 * tree-loop-linear.c: Likewise.
7834 * tree-mudflap.c: Likewise.
7835 * tree-outof-ssa.c: Likewise.
7836 * tree-parloops.c: Likewise.
7837 * tree-predcom.c: Likewise.
7838 * tree-pretty-print.c: Likewise.
7839 * tree-scalar-evolution.c: Likewise.
7840 * tree-ssa-live.c: Likewise.
7841 * tree-ssa-loop-im.c: Likewise.
7842 * tree-ssa-loop-ivcanon.c: Likewise.
7843 * tree-ssa-loop-ivopts.c: Likewise.
7844 * tree-ssa-loop-manip.c: Likewise.
7845 * tree-ssa-loop-niter.c: Likewise.
7846 * tree-ssa-loop-prefetch.c: Likewise.
7847 * tree-ssa-phiprop.c: Likewise.
7848 * tree-ssa-pre.c: Likewise.
7849 * tree-ssa-reassoc.c: Likewise.
7850 * tree-ssa-sccvn.c: Likewise.
7851 * tree-ssa-structalias.c: Likewise.
7852 * tree-ssa.c: Likewise.
7853 * tree-vect-data-refs.c: Likewise.
7854 * tree-vect-loop-manip.c: Likewise.
7855 * tree-vect-loop.c: Likewise.
7856 * tree-vect-patterns.c: Likewise.
7857 * tree-vect-slp.c: Likewise.
7858 * tree-vect-stmts.c: Likewise.
7859 * tree-vrp.c: Likewise.
7861 * value-prof.c: Likewise.
7862 * var-tracking.c: Likewise.
7863 * varasm.c: Likewise.
7864 * vmsdbgout.c: Likewise.
7866 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
7867 Richard Guenther <richard.guenther@gmail.com>
7869 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
7870 copy the src value and return a copy.
7871 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
7872 (C++ Volatiles): Adjust to describe C++ semantics only.
7874 2010-08-20 Joseph Myers <joseph@codesourcery.com>
7876 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
7878 * doc/tm.texi: Regenerate.
7879 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
7880 * df-scan.c (df_get_exit_block_use_set), reginfo.c
7881 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
7882 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
7883 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
7886 2010-08-20 Olivier Hainque <hainque@adacore.com>
7888 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
7889 an extra nop past a sibling call at the very end.
7891 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7894 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
7897 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7899 * target.def (function_arg, function_incoming_arg): Remove const
7900 qualifier on CUMULATIVE_ARGS parameter.
7901 * targhooks.h (default_function_arg, default_function_incoming_arg):
7903 * targhooks.c (default_function_arg, default_function_incoming_arg):
7905 * config/i386/i386.c (ix86_function_arg): Likewise.
7907 2010-08-19 Jakub Jelinek <jakub@redhat.com>
7910 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
7911 SIGN_EXTENDs or ZERO_EXTENDs.
7913 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7916 * combine.c (combine_validate_cost): New arg I0. All callers changed.
7917 Take its cost into account if nonnull.
7918 (insn_a_feeds_b): New static function.
7919 (combine_instructions): Look for four-insn combinations.
7920 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
7921 them into account when computing all_adjacent and looking for other
7923 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
7924 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
7925 (try_combine): New arg I0. Handle four-insn combinations.
7926 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
7929 2010-08-19 Jason Merrill <jason@redhat.com>
7932 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
7934 (gimplify_modify_expr_rhs): Adjust.
7936 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7938 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
7940 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
7941 * dominance.c (iterate_fix_dominators): Likewise.
7942 * dse.c (set_usage_bits): Likewise.
7943 (set_position_unneeded, record_store): Likewise.
7944 * gimple-fold.c (get_maxval_strlen): Likewise.
7945 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
7946 * ipa-inline.c (update_caller_keys): Likewise.
7947 * ipa-split.c (verify_non_ssa_vars): Likewise.
7948 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
7949 (close_type_exposed_parameter, close_type_full_escape): Likewise.
7950 (close_addressof_down): Likewise.
7951 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
7952 (setup_allocno_left_conflicts_size): Likewise.
7953 (ira_reassign_conflict_allocnos): Likewise.
7954 (ira_reassign_pseudos): Likewise.
7955 * ira-emit.c (change_loop): Likewise.
7956 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
7957 * lto-streamer-out.c (write_symbol): Likewise.
7958 * predict.c (expr_expected_value_1): Likewise.
7959 * regstat.c (regstat_bb_compute_ri): Likewise.
7960 * sel-sched.c (create_block_for_bookkeeping): Likewise.
7961 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
7962 * stmt.c (expand_case): Likewise.
7963 * tree-eh.c (emit_eh_dispatch): Likewise.
7964 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
7965 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
7967 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
7968 (rdg_build_components): Likewise.
7969 * tree-object-size.c (collect_object_sizes_for): Likewise.
7970 * tree-sra.c (convert_callers): Likewise.
7971 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
7972 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
7973 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
7975 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7977 * config/i386/i386.md (*lea_1): Use P mode iterator.
7978 (lea add splitter): Also handle DImode operands.
7979 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
7980 predicate. Do not use ix86_lea_for_add_ok.
7981 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
7982 (lea ashift splitter): Also handle DImode operands.
7983 (DImode lea ashift splitter): Remove splitter.
7985 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7987 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
7988 ix86_binary_operator_ok.
7990 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
7992 PR rtl-optimization/44691
7993 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
7996 2010-08-19 Ian Bolton <ian.bolton@arm.com>
7999 * config/arm/arm.c (arm_output_epilogue): Ensure that return
8000 value of size 1-3 is handled correctly.
8002 2010-08-19 Ian Bolton <ian.bolton@arm.com>
8004 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
8005 type for the conditional has wide enough range.
8007 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
8010 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
8011 ix86_binary_operator_ok.
8013 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
8015 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
8016 <default>: Swap operands 1 and 2 for alternative 2 to use existing
8017 code to output insn mnemonic. Fix comment.
8018 (*addsi_1_zext): Add r-r-0 alternative 1.
8019 <TYPE_LEA>: Split insn to lea.
8020 <default>: Handle alternative 1.
8021 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
8022 multi-level if_then_else RTX to set "type" attribute.
8023 <default>: Handle alternative 2.
8024 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
8025 Use cond RTX instead of multi-level if_then_else RTX to set
8027 <default>: Handle alternatives 2 and 4.
8028 (lea splitters): Update calls to ix86_lea_for_add_ok.
8030 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
8032 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
8034 2010-08-18 Richard Guenther <rguenther@suse.de>
8036 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
8037 use operand helpers.
8039 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
8042 * optabs.c (expand_bool_compare_and_swap): Expand pending
8043 pops before trying the optab.
8045 2010-08-18 Yao Qi <yao@codesourcery.com>
8048 * config/arm/arm.c (output_move_double): Fix typo generating
8049 instructions ('ldr'->'str').
8051 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8053 PR rtl-optimization/42575
8054 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
8057 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
8059 * config/arm/arm-protos.h (arm_expand_sync): New.
8060 (arm_output_memory_barrier, arm_output_sync_insn): New.
8061 (arm_sync_loop_insns): New.
8062 * config/arm/arm.c (FL_ARCH7): New.
8063 (FL_FOR_ARCH7): Include FL_ARCH7.
8065 (arm_print_operand): Support %C markup.
8066 (arm_legitimize_sync_memory): New.
8067 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
8068 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
8069 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
8070 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
8071 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
8072 (arm_process_output_sync_insn, arm_output_sync_insn): New.
8073 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
8074 * config/arm/arm.h (struct arm_sync_generator): New.
8075 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
8076 (TARGET_HAVE_MEMORY_BARRIER): New.
8077 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
8078 * config/arm/arm.md: Include sync.md.
8079 (UNSPEC_MEMORY_BARRIER): New.
8080 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
8081 (VUNSPEC_SYNC_OP):New.
8082 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
8083 (sync_result, sync_memory, sync_required_value): New attributes.
8084 (sync_new_value, sync_t1, sync_t2): Likewise.
8085 (sync_release_barrier, sync_op): Likewise.
8086 (length): Add logic to length attribute defintion to call
8087 arm_sync_loop_insns when appropriate.
8088 * config/arm/sync.md: New file.
8090 2010-08-17 Jakub Jelinek <jakub@redhat.com>
8092 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
8093 ENABLE_TREE_CHECKING.
8094 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
8097 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
8099 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
8100 or optimizing for size, always avoid lea if possible.
8102 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
8104 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
8106 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
8107 Dunmmy function with NULL return unless the target is
8108 OSX >= 10.6 (Darwin10).
8110 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
8112 * gcc.c (spec_function): Add remove-outfile.
8113 (remove_outfile_spec_function): New function.
8114 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
8115 * invoke.texi (replace-outfile): Document.
8117 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
8120 * reginfo.c (globalize_reg): Reject stack registers.
8122 2010-08-17 Richard Guenther <rguenther@suse.de>
8124 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
8125 list of conditional equivalences.
8126 (free_all_edge_infos): Adjust.
8127 (record_equivalences_from_incoming_edge): Likewise.
8128 (record_cond): Likewise.
8129 (build_and_record_new_cond): Likewise.
8130 (record_conditions): Likewise.
8131 (dom_opt_leave_block): Likewise.
8133 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
8135 * doc/invoke.texi (ms-extension): Add documentation.
8137 2010-08-17 Richard Guenther <rguenther@suse.de>
8139 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
8141 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
8144 * c-decl.c (diagnose_uninitialized_cst_member): New function.
8145 (finish_decl): Use it to issue a -Wc++-compat warning about
8146 uninitialized const field in struct or union.
8148 (finish_struct): Use strip_array_types.
8150 2010-08-17 Jakub Jelinek <jakub@redhat.com>
8152 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
8154 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
8155 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
8156 call block_nreverse here.
8157 (blocks_nreverse): Rename decl temporary to block.
8159 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
8161 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
8162 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
8163 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
8164 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
8165 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
8166 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
8167 thumb2_iorsi3): Delete.
8168 (orsi_notsi_si): No longer a named pattern.
8169 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
8170 * config/arm/predicates.md (shift_amount_operand): New.
8171 (mult_operator): New.
8172 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
8174 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
8176 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
8177 (not_shiftsi_compare0): Likewise, renamed from
8178 arm_notsi_shiftsi_compare0.
8179 (not_shiftsi_compare0_scratch): Likweise, renamed from
8180 arm_notsi_shiftsi_compare0_scratch.
8181 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
8182 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
8183 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
8184 so that the register alternative is disabled when the shift_operator
8185 is MULT. Use "M" as the constraint for constants.
8186 (arith_shiftsi splitter): Enable for TARGET_32BIT.
8187 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
8188 constraint for constants.
8189 (arith_shiftsi_compare0_scratch): Likewise.
8190 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
8191 Handle Thumb2 alternative.
8193 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8195 * doc/options.texi (NoDriverArg): Document.
8196 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
8198 * opt-functions.awk (switch_flags): Handle NoDriverArg.
8199 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
8200 marking for CL_NO_DRIVER_ARG options when in the driver.
8201 * opts.h (CL_NO_DRIVER_ARG): Define.
8202 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8203 CL_COMMON): Update values.
8205 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8207 * common.opt: Add driver options.
8208 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
8209 * doc/options.texi (Driver, RejectDriver): Document.
8210 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
8211 print_prog_name, print_multi_directory, print_sysroot,
8212 print_multi_os_directory, print_multi_lib,
8213 print_sysroot_headers_suffix, report_times, combine_flag,
8214 use_pipes, wrapper_string): Remove.
8215 (save_switch, driver_unknown_option_callback,
8216 driver_wrong_lang_callback, driver_post_handling_callback,
8217 driver_handle_option): New.
8218 (spec_lang, last_language_n_infiles): Make file-scope static
8219 instead of local to process_command.
8220 (process_command): Use decode_cmdline_options_to_array and
8221 read_cmdline_option for option processing. Compute have_c in
8222 prescan of decoded options.
8223 * opt-functions.awk (switch_flags): Handle Driver and
8225 (var_type, var_type_struct): Handle Separate options as generating
8226 const char * variables.
8227 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
8228 CL_TARGET to be passed by caller if required.
8229 (decode_cmdline_options_to_array): Update comment.
8230 * opts.c (complain_wrong_lang): Handle options only valid for the
8232 (decode_options): Update call to decode_cmdline_options_to_array.
8233 (print_filtered_help): Ignore driver-only options.
8234 (print_specific_help): Ignore CL_DRIVER.
8235 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
8236 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
8237 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
8240 2010-08-16 Richard Guenther <rguenther@suse.de>
8242 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8243 TARGET_MEM_REF a bit.
8244 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
8245 (create_mem_ref_raw): Always create TMR_OFFSET, store the
8246 alias pointer type via it.
8247 (copy_mem_ref_info): Adjust.
8248 (maybe_fold_tmr): Likewise.
8249 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
8250 (reference_alias_ptr_type): Likewise.
8251 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
8252 adjust documentation of TMR_OFFSET operand.
8253 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
8254 use the alias pointer type.
8255 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
8256 initialize mem attrs but the TMR itself.
8257 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
8259 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
8260 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
8261 (unshare_and_remove_ssa_names): Likewise.
8262 (copy_ref_info): Adjust.
8263 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
8264 TARGET_MEM_REF case.
8265 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
8267 * tree.h (TMR_ORIGINAL): Remove.
8268 * gimple.c (get_base_address): For TARGET_MEM_REF with a
8270 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
8272 (get_addr_base_and_unit_offset): Likewise.
8273 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
8275 (indirect_ref_may_alias_decl_p): Likewise.
8276 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
8278 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
8280 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
8281 with GCC version 4.6, the default setting (when not optimizing
8282 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
8283 been changed to -fomit-frame-pointer.
8285 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
8287 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
8288 Darwin10. Do not link libgcc.a for Darwin >= 9.
8290 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
8292 * doc/invoke.texi (Warning Options): Fix terminology and markup
8293 in the description of how unknown warning options are handled.
8295 2010-08-15 Ira Rosen <irar@il.ibm.com>
8297 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
8299 (vect_supportable_dr_alignment): Check alignment for basic blocks.
8300 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
8302 (vect_bb_vectorization_profitable_p): New function.
8303 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
8304 check if it's worthwhile to vectorize the basic block.
8306 2010-08-14 Anatoly Sokolov <aesok@post.ru>
8308 * reload.h (register_move_cost, memory_move_secondary_cost,
8309 secondary_reload_class): Adjust prototype.
8310 * rtl.h (reg_class_subset_p): Adjust prototype.
8311 * reload.c (secondary_reload_class): Change arguments type from
8312 enum reg_class to reg_class_t. Change result type to reg_class_t.
8313 * reginfo.c (register_move_cost, reg_class_subset_p): Change
8314 arguments type from enum reg_class to reg_class_t.
8315 (memory_move_secondary_cost): Change arguments type from
8316 enum reg_class to reg_class_t. Change type of saved_flags to
8319 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8321 (mips_cost): Remove.
8322 (struct mips_rtx_cost_data): Moved to mips.c.
8323 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
8324 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
8325 (mips_cost): Make static.
8326 (mips_canonicalize_move_class): Change argument type to reg_class_t.
8327 Change result type to reg_class_t.
8328 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
8329 type from enum reg_class to reg_class_t.
8330 (mips_register_move_cost): Make static. Change arguments
8331 type from enum reg_class to reg_class_t.
8332 (mips_memory_move_cost): New function.
8333 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8335 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
8337 PR rtl-optimization/43358
8338 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
8339 of a single hard register, using simplify_subreg_regno to decide
8340 what that register should be.
8342 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
8344 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
8345 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
8346 (loongson_pmull<V_suffix>): Rename to...
8347 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
8349 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
8351 * configure.ac: Enable -fomit-frame-pointer on darwin
8352 which support dwarf2.
8353 * config/i386/i386.c (override_options): Same.
8355 2010-08-13 Jie Zhang <jie@codesourcery.com>
8357 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
8359 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8361 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
8364 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
8366 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
8367 up dot_prod pattern searching if a stmt is outside the loop.
8369 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
8370 Uros Bizjak <ubizjak@gmail.com>
8372 * config.gcc: Handle --enable-frame-pointer.
8374 * configure.ac: Add --enable-frame-pointer.
8375 * configure: Regenerated.
8377 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
8378 (override_options): If not configured with --enable-frame-pointer,
8379 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
8380 optimizing for size), -fasynchronous-unwind-tables and
8381 -maccumulate-outgoing-args by default.
8383 2010-08-12 Jakub Jelinek <jakub@redhat.com>
8385 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
8388 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
8389 -a overflows. Normalize the range.
8391 2010-08-12 Richard Guenther <rguenther@suse.de>
8393 PR tree-optimization/45232
8394 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
8395 for types with undefined overflow.
8396 (reassociate_bb): Allow re-associating of bit and min/max
8397 operations for types with undefined overflow.
8398 * tree-ssa-forwprop.c (associate_plusminus): New function.
8399 (tree_ssa_forward_propagate_single_use_vars): Call it.
8401 2010-08-12 Richard Guenther <rguenther@suse.de>
8403 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
8404 * tree-ssa-alias.c (get_ptr_info): Move ...
8405 * tree-ssanames.c (get_ptr_info): ... here. Initialize
8406 align and misalign fields conservatively.
8407 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
8408 derive alignment information.
8409 (evaluate_stmt): Derive alignment information from memory
8410 allocation functions.
8411 * tree.h (get_pointer_alignment): Make unsigned.
8412 * builtins.c (get_object_alignment): Use alignment information we
8413 have computed for pointers.
8414 (get_pointer_alignment): Likewise. Make conservative, return
8416 (expand_builtin_strlen): Adjust.
8417 (expand_builtin_memcmp): Likewise.
8418 (expand_builtin_strcmp): Likewise.
8419 (expand_builtin_strncmp): Likewise.
8420 (get_builtin_sync_mem): Use at least mode alignment.
8421 (fold_builtin_memset): Adjust.
8422 (fold_builtin_memory_op): Likewise.
8423 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
8424 information also dump pointer alignment knowledge.
8425 (dump_gimple_stmt): Likewise.
8427 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
8429 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
8430 (EMPTY_FIELD_BOUNDARY): Remove.
8431 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
8433 2010-08-12 Jakub Jelinek <jakub@redhat.com>
8436 * caller-save.c (save_call_clobbered_regs): Only swap notes with
8437 DEBUG_INSNs if n_regs_saved.
8439 2010-08-12 Wei Guozhi <carrot@google.com>
8442 * config/arm/arm.md (andsi3): Change to zero extension if possible.
8443 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
8445 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
8447 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
8449 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
8451 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8453 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
8454 the case removed in the previous patch, when the only phi argument
8455 is defined in the same loop as the phi node itself. Handle it
8456 separately from the invariant case by both propagating it outside
8457 the region and replacing the phi node with an assign.
8459 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8461 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
8462 constant phi nodes with one argument are is_gimple_min_invariant
8463 and SSA_NAME_IS_DEFAULT_DEF.
8465 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8467 * graphite-cloog-util.c (oppose_constraint):
8468 Extend loop counter's value range (CLOOG_ORG).
8469 (cloog_matrix_to_ppl_constraint): Same.
8470 (new_Constraint_System_from_Cloog_matrix): Same.
8471 * graphite-cloog-compat.h (matrix_num_type): New.
8473 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8475 * graphite.c (graphite_initialize): Do not initialize
8476 CLooG and initialize the Parma Polyhedra Library
8477 manually when using CLOOG_ORG.
8478 (graphite_finalize): Do not finalize CLooG and finalize
8479 the Parma Polyhedra Library manually when using CLOOG_ORG.
8480 * graphite-cloog-compat.h (cloog_initialize): Hide function
8481 when using CLOOG_ORG.
8482 (cloog_finalize): Same.
8484 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8486 * graphite-clast-to-gimple.c (free_scattering): Change
8487 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
8489 (build_cloog_prog): Same.
8490 * graphite-cloog-compat.h (cloog_domain): Removed.
8491 (cloog_scattering): New.
8492 (cloog_set_domain): Removed.
8493 (cloog_set_scattering): New.
8494 (cloog_next_domain): Removed.
8495 (cloog_next_scattering): New.
8496 (cloog_set_next_domain): Removed.
8497 (cloog_set_next_scattering): New.
8498 (CloogScatteringList): New.
8499 (CloogScattering): New.
8500 (cloog_scattering_free): New.
8501 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
8502 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
8505 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8507 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
8509 (set_cloog_options): Same.
8510 (print_clast_stmt): Same.
8511 (scop_to_clast): Same.
8512 (print_generated_program): Same.
8514 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
8515 (scop_to_clast): Extend with CloogState.
8516 * graphite-cloog-util.c: Include graphite-cloog-compat.h
8517 (new_Cloog_Domain_from_ppl_Polyhedron):
8518 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
8519 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
8520 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8521 * graphite-cloog-util.h (build_cloog_prog): Same.
8522 * graphite-cloog-copat.h (build_cloog_prog): New.
8524 (cloog_state_malloc): New.
8525 (cloog_state_free): New.
8526 (cloog_loop_malloc): New.
8527 (cloog_options_malloc): New.
8528 (cloog_statement_alloc): New.
8529 (cloog_domain_from_cloog_matrix): New.
8530 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
8531 (new_Cloog_Domain_from_ppl_Polyhedron): New.
8533 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8535 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
8536 type of NAME now depends on used CLooG version.
8537 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
8538 (gcc_type_for_clast_expr): Same.
8539 (print_clast_stmt): Replace pprint with clast_pprint.
8540 * graphite-cloog-compat.h: Provide compatibility macros for
8542 (clast_name_p): New.
8543 (clast_expr_term): New.
8544 (clast_expr_red): New.
8545 (clast_expr_bin): New.
8546 (clast_pprint): New.
8548 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8550 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
8551 compatible to newer CLooG releases (CLOOG_ORG).
8552 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
8553 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
8554 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
8555 (build_cloog_prog) : New.
8556 (cloog_program_extract_scalars): New.
8557 (cloog_program_scatter): New.
8559 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8561 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
8562 conditionally (CLOOG_ORG).
8563 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
8564 (cloog_statement_usr): New.
8565 (cloog_domain): Same.
8566 (cloog_set_domain): Same.
8567 (cloog_next_domain): Same.
8568 (cloog_set_next_domain): Same.
8569 (cloog_program_nb_scattdims): Same.
8570 (cloog_program_set_nb_scattdims): Same.
8571 (cloog_program_names): Same.
8572 (cloog_program_set_names): Same.
8573 (cloog_program_set_context): Same.
8574 (cloog_program_set_loop): Same.
8575 (cloog_program_blocklist): Same.
8576 (cloog_program_set_blocklist): Same.
8577 (cloog_program_scaldims): Same.
8578 (cloog_program_set_scaldims): Same.
8579 (cloog_names_nb_parameters): Same.
8580 (cloog_names_set_nb_parameters): Same.
8581 (cloog_names_parameters): Same.
8582 (cloog_names_set_parameters): Same.
8583 (cloog_names_set_nb_iterators): Same.
8584 (cloog_names_set_iterators): Same.
8585 (cloog_names_set_nb_scattering): Same.
8586 (cloog_names_set_scattering): Same.
8587 (cloog_statement_set_usr): Same.
8588 (cloog_loop_set_next): Same.
8589 (cloog_loop_set_domain): Same.
8590 (cloog_loop_set_block): Same.
8591 (cloog_block_list_next): Same.
8592 (cloog_block_list_set_next):
8593 (cloog_block_list_set_block): Same.
8595 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8597 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
8599 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
8600 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
8601 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
8602 when something has been changed.
8603 (rewrite_commutative_reductions_out_of_ssa): Same.
8605 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8607 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
8608 handle the case when def is in the sese region.
8609 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
8610 for invariant expressions.
8611 (rewrite_cross_bb_phi_deps): Removed.
8612 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
8613 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
8614 rewrite_cross_bb_phi_deps.
8616 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8618 * graphite-sese-to-poly.c
8619 (rewrite_commutative_reductions_out_of_ssa_loop): Call
8620 scev_analyzable_p only on is_gimple_reg
8622 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8624 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
8625 (rewrite_close_phi_out_of_ssa): Propagate constant values or
8626 parametric expressions outside the scop region.
8627 (rewrite_cross_bb_scalar_deps): Same.
8628 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
8630 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8632 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
8633 SSA_NAME_DEF_STMT only on SSA_NAMEs.
8635 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8637 * tree-scalar-evolution.c (instantiate_scev_name): Do not
8638 instantiate default definitions.
8640 2010-08-11 Vladimir Kargov <kargov@gmail.com>
8641 Sebastian Pop <sebastian.pop@amd.com>
8643 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
8644 (loop_exits_from_bb_p): New.
8645 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
8646 (loop_exits_from_bb_p): Declared.
8647 * graphite-scop-detection.c (scopdet_basic_block_info): Call
8650 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8652 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
8653 extra parameter for the region. Call scev_analyzable_p.
8654 (rewrite_reductions_out_of_ssa): Update call to
8655 rewrite_close_phi_out_of_ssa.
8656 (rewrite_cross_bb_phi_deps): Same.
8657 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
8658 parameter for the region. Call scev_analyzable_p.
8659 (rewrite_commutative_reductions_out_of_ssa): Update call to
8660 rewrite_commutative_reductions_out_of_ssa_loop.
8662 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8664 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
8666 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8668 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
8669 SSA scalar phi nodes that can be scev_analyzable_p.
8671 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8673 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
8674 handle SSA_NAME_IS_DEFAULT_DEF.
8676 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8678 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
8680 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8682 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
8683 case non close-phi nodes with one argument.
8685 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8687 * sese.h (scev_analyzable_p): Scevs could be expressions without
8688 chrecs and still be scev_analyzable_p.
8690 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8692 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8694 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8696 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
8697 * cfgloop.h (struct loop): Remove single_iv field.
8698 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
8699 (scop_canonicalize_loops): Removed.
8700 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
8701 over all the loop phi nodes in loop->header.
8702 (build_poly_scop): Remove use of scop_canonicalize_loops.
8704 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8706 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
8709 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8711 * tree-chrec.c (chrec_apply): Should only apply to the specified
8712 variable. Also handle multivariate chains of recurrences that
8713 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
8715 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8717 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
8718 (debug_clast_name_indexes_1): Removed.
8719 (debug_clast_name_indexes): Removed.
8720 (pbb_to_depth_to_oldiv): Removed.
8721 (build_iv_mapping): Replace the use of rename_map with iv_map.
8722 (translate_clast_user): Remove uses of rename_map. Allocate and
8724 (translate_clast_for_loop): Remove uses of rename_map.
8725 (translate_clast_for): Same.
8726 (translate_clast_guard): Same.
8727 (translate_clast): Same.
8729 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
8730 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
8731 * sese.c (set_rename): Now static.
8732 (rename_variables_in_stmt): Removed.
8734 (is_parameter): Removed.
8736 (expand_scalar_variables_call): Removed.
8737 (expand_scalar_variables_ssa_name): Removed.
8738 (expand_scalar_variables_expr): Removed.
8739 (expand_scalar_variables_stmt): Removed.
8740 (expand_scalar_variables): Removed.
8741 (rename_variables): Removed.
8742 (remove_condition): Removed.
8743 (get_true_edge_from_guard_bb): Removed.
8744 (get_false_edge_from_guard_bb): Removed.
8745 (struct igp): Removed.
8746 (default_before_guard): Removed.
8747 (convert_for_phi_arg): Removed.
8748 (add_guard_exit_phis): Removed.
8749 (insert_guard_phis): Removed.
8750 (graphite_copy_stmts_from_block): Now also uses iv_map and a
8751 region. Do not copy conditions. Do not copy induction variables.
8753 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
8754 the translated statement. Use the iv_map for the induction
8756 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8757 (set_rename): Removed declaration.
8758 (scev_analyzable_p): ...here.
8759 * tree-chrec.c (chrec_apply_map): New.
8760 * tree-chrec.h (chrec_apply_map): Declared.
8762 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8764 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
8765 insert_loop_close_phis.
8766 * sese.c (name_defined_in_loop_p): Removed.
8767 (expr_defined_in_loop_p): Removed.
8768 (alive_after_loop): Removed.
8769 (close_phi_not_yet_inserted_p): Removed.
8770 (struct alep): Removed.
8771 (add_loop_exit_phis): Removed.
8772 (insert_loop_close_phis): Removed.
8774 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8776 * graphite-cloog-util.c
8777 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
8779 (psct_scattering_dim_for_loop_depth): Same.
8781 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8783 * graphite-cloog-util.h: Added cloog.h.
8784 * graphite-blocking.c: Removed cloog.h.
8785 * graphite-dependences.c: Same.
8786 * graphite-interchange.c: Same.
8787 * graphite-poly.c: Same.
8788 * graphite-ppl.c: Same.
8789 * graphite-scop-detection.c: Same.
8790 * graphite-sese-to-poly.c:
8792 Removed graphite-clast-to-gimple.h.
8793 (check_poly_representation): Removed (unused).
8794 * graphite-sese-to-poly.h
8795 (check_poly_representation): Removed (unused).
8797 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8799 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
8800 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
8801 (graphite-cloog-util.o): New.
8802 (graphite-ppl.o): Added graphite-cloog-util.h.
8803 * graphite-clast-to-gimple.c:
8804 Added graphite-cloog-util.h to include statements.
8805 * graphite-cloog-util.c: New.
8806 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
8807 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8808 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8809 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8810 (insert_constraint_into_matrix): Same.
8811 (ppl_Constrain_System_number_of_constraints): Same.
8812 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8813 (oppose_constraint): Same.
8814 (cloog_matrix_to_ppl_constraint): Same.
8815 (new_Constraint_System_from_Cloog_Matrix): Same.
8816 * graphite-cloog-util.h: New.
8817 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
8818 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8819 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8820 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8821 (insert_constraint_into_matrix): Same.
8823 Added graphite-cloog-util.h to include statements.
8824 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
8825 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8826 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8827 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8828 (insert_constraint_into_matrix): Same.
8829 (ppl_Constrain_System_number_of_constraints): Same.
8830 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8831 (oppose_constraint): Same.
8832 (cloog_matrix_to_ppl_constraint): Same.
8833 (new_Constraint_System_from_Cloog_Matrix): Same.
8835 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
8836 graphite-cloog-util.h.
8837 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8838 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8839 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8840 (insert_constraint_into_matrix): Same.
8842 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8844 * graphite-clast-to-gimple.c
8845 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
8846 (precision_for_interval): Same.
8847 (gcc_type_for_interval): Same.
8848 (compute_type_for_level): Same.
8849 * graphite-interchange.c
8850 (lst_interchange_profitable_p): Same.
8852 (psct_scattering_dim_for_loop_depth): Same.
8854 (ppl_max_for_le_pointset): Same.
8855 (ppl_min_for_le_pointset): Same.
8857 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8859 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
8860 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
8862 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8864 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
8865 rewrite_close_phi_out_of_ssa.
8867 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8869 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
8871 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8873 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
8875 * sese.c (debug_rename_map): Same.
8878 (rename_variables_in_stmt): Same.
8879 (expand_scalar_variables_call): Same.
8880 (expand_scalar_variables_ssa_name): Same.
8881 (expand_scalar_variables_expr): Same.
8882 (expand_scalar_variables_stmt): Same.
8883 (expand_scalar_variables): Same.
8884 (rename_variables): Same.
8885 (graphite_copy_stmts_from_block): Same.
8886 (copy_bb_and_scalar_dependences): Same.
8888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8890 * graphite-clast-to-gimple.c (copy_renames): Removed.
8891 (translate_clast_for): Do not call copy_renames.
8892 (translate_clast_guard): Same.
8894 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8896 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
8897 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
8898 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
8899 before rewrite_cross_bb_scalar_deps.
8901 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8903 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
8904 Early return in when flag_associative_math is not set.
8906 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8908 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
8909 of SSA copies on edges except for loop->latch.
8911 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8913 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
8914 Split out of rewrite_reductions_out_of_ssa.
8915 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
8917 * graphite.c (graphite_transform_loops): Call it.
8919 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8921 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
8923 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
8925 * dbgcnt.def (graphite_scop): New counter.
8926 * graphite.c: Include dbgcnt.h.
8927 (graphite_transform_loops): Use new counter to limit transformations.
8928 * Makefile.in (graphite.o): Depend on DBGCNT_H.
8930 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8932 * passes.c (init_optimization_passes): Add pass_graphite.
8933 Schedule a pass_copy_prop before pass_graphite_transforms.
8934 * timevar.def (TV_GRAPHITE): Declared.
8935 * tree-pass.h (pass_graphite): Declared.
8936 * tree-ssa-loop.c (pass_graphite): New.
8938 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8940 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
8941 Remove calls to rename_nb_iterations and rename_sese_parameters.
8942 * graphite-clast-to-gimple.h (gloog): Update declaration.
8943 * graphite.c (graphite_transform_loops): Update call to gloog.
8944 * sese.c (rename_variables_in_expr): Removed.
8945 (rename_nb_iterations): Removed.
8946 (rename_sese_parameters): Removed.
8947 * sese.h (rename_nb_iterations): Removed.
8948 (rename_sese_parameters): Removed.
8950 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8952 * graphite-clast-to-gimple.c (gloog): Remove call to
8953 sese_adjust_liveout_phis.
8954 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
8955 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
8956 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
8957 rewrite_phi_out_of_ssa.
8958 * sese.c (get_vdef_before_sese): Removed.
8959 (sese_adjust_vphi): Removed.
8960 (sese_adjust_liveout_phis): Removed.
8961 * sese.h (sese_adjust_liveout_phis): Removed.
8963 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8965 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
8966 argument for the place after which to insert the out of SSA copy.
8967 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
8968 (rewrite_phi_out_of_ssa): Same.
8969 (rewrite_cross_bb_scalar_deps): Same.
8970 (insert_copyout): Removed.
8971 (insert_copyin): Removed.
8972 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
8973 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
8976 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8978 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
8979 (rewrite_reductions_out_of_ssa): Same.
8980 (rewrite_commutative_reductions_out_of_ssa): Same.
8981 (build_poly_scop): Do not call these functions.
8982 * graphite-sese-to-poly.h (build_poly_scop): Declared.
8983 (rewrite_reductions_out_of_ssa): Declared.
8984 (rewrite_commutative_reductions_out_of_ssa): Declared.
8985 * graphite.c (graphite_transform_loops): Call on every scop
8986 rewrite_commutative_reductions_out_of_ssa before calling
8987 rewrite_reductions_out_of_ssa and build_scop_bbs.
8989 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8991 * graphite-dependences.c (dot_deps): Make system call to dotty run
8993 (dot_deps_stmt): Same.
8994 * graphite-poly.c (dot_lst): Same.
8996 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8998 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
8999 phi_arg_in_outermost_loop.
9000 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
9001 (remove_invariant_phi): Same.
9003 2010-08-11 Anatoly Sokolov <aesok@post.ru>
9005 * target.def (output_addr_const_extra): New hook.
9006 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
9007 * doc/tm.texi: Regenerate.
9008 * targhooks.c (default_asm_output_addr_const_extra): New function.
9009 * targhooks.h (default_asm_output_addr_const_extra): Declare.
9010 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
9013 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9014 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
9015 * config/i386/i386.h (output_addr_const_extra): Rename to...
9016 (i386_asm_output_addr_const_extra): ...this. Make static.
9017 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9019 2010-08-11 Richard Henderson <rth@redhat.com>
9021 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
9023 2010-08-11 Nick Clifton <nickc@redhat.com>
9025 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
9026 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
9027 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9028 stormy16-lib2-cmpsi.c.
9030 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
9033 2010-08-11 Joseph Myers <joseph@codesourcery.com>
9035 * opts.h (struct cl_option_handler_func): Make handler take
9036 cl_decoded_option structure as parameter, not individual elements.
9037 (struct cl_option_handlers): Make callbacks take cl_decoded_option
9038 structure as parameter, not individual elements.
9039 (handle_option): Take cl_decoded_option structure as parameter,
9040 not individual elements.
9041 (handle_generated_option): Declare.
9042 * opts-common.c (handle_option): Take cl_decoded_option structure
9043 as parameter, not individual elements. Update calls to callback
9044 and handler functions.
9045 (handle_generated_option): New.
9046 (read_cmdline_option): Update calls to callback functions and
9048 * opts.c (common_handle_option, complain_wrong_lang,
9049 unknown_option_callback, post_handling_callback,
9050 lang_handle_option, target_handle_option): Take cl_decoded_option
9051 structure as parameter, not individual elements.
9052 (lang_handle_option, target_handle_option, common_handle_option):
9053 Assert option has at most one argument.
9054 (enable_warning_as_error): Call handle_generated_option instead of
9055 handle_option. Do not pass -Werror argument as argument of
9058 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9060 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9061 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9062 (SUBWORD_BOOL_CAS): Likewise.
9063 (SUBWORD_SYNC_OP): Likewise.
9064 (SUBWORD_TEST_AND_SET): Likewise.
9065 (FETCH_AND_OP_WORD): Parenthesise INF_OP
9066 (SUBWORD_SYNC_OP): Likewise.
9067 (OP_AND_FETCH_WORD): Likewise.
9069 2010-08-10 Xinliang David Li <davidxl@google.com>
9071 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
9072 compute max/min offset in address.
9074 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
9076 * ira-live.c: Include sbitmap.h.
9077 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
9078 Compress live ranges even more.
9080 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
9082 * coverage.c (ctr_labels): Delete.
9084 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
9087 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
9088 test here from arm_gen_load_multiple_1.
9089 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
9090 multiple_operation_profitable_p.
9092 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
9094 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
9095 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
9097 2010-08-10 Richard Henderson <rth@redhat.com>
9099 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
9100 after saving registers. Assert that SSE registers are only saved
9101 with a sufficiently aligned frame.
9102 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
9103 remove stack_realign_fp handling.
9104 (ix86_expand_prologue): Save int registers before stack_realign_fp,
9105 and do not mark the stack alignment as frame related.
9106 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
9108 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
9109 saves when re-aligning the stack.
9111 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
9113 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
9114 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
9115 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
9117 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
9119 * dwarf2out.c (struct die_struct): Move die_tag to the end.
9121 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
9123 * config/arm/iterators.md: New file.
9124 * config/arm/arm.md: Include iterators.md.
9125 (QHSI): Move to new file.
9126 (LTUGEU, cnb, optab, ior_xor): Likewise.
9127 * config/arm/iwmmxt.md (VMMX): Move to new file.
9128 (VSHFT, MMX_char): Likewise.
9129 * config/arm/neon.md (VD): Move to new file.
9130 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
9131 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
9132 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
9133 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
9134 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
9135 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
9136 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
9137 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
9138 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
9139 (Is_d_reg, V_mode_nunits): Likewise.
9140 * config/arm/vec-common.md (VALL): Move to new file.
9141 (VALLW, VINT, VINTW): Likewise.
9143 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
9146 * combine.c (make_compound_operation): Don't try to convert
9147 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
9149 2010-08-10 Richard Guenther <rguenther@suse.de>
9151 * tree.h (get_object_alignment): Adjust prototype.
9152 * builtins.c (get_object_alignment): Return unsigned int,
9153 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
9154 and TARGET_MEM_REF properly.
9155 (get_pointer_alignment): Adjust.
9156 * emit-rtl.c (get_mem_align_offset): Adjust comment.
9157 (set_mem_attributes_minus_bitpos): Adjust.
9158 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
9160 2010-08-10 Richard Guenther <rguenther@suse.de>
9162 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
9163 (copy_prop_visit_assignment): Simplify.
9164 (copy_prop_visit_stmt): Also visit assignments from
9166 (copy_prop_visit_phi_node): Use operand_equal_p.
9168 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9170 * ipa-split.c (find_split_points): Free stack.
9172 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9174 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
9175 * tree.c (tree_node_kind): Delete corresponding entries.
9177 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
9179 * alias.c (may_alias_p): Remove unused ret.
9181 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
9183 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
9184 alias_sets_conflict_p.
9185 (walk_mems_1): Moved from alias.c.
9186 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
9188 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
9189 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
9190 * alias.c (walk_mems_2): Moved to ddg.c.
9191 (walk_mems_1): Ditto.
9192 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
9194 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
9196 *(may_alias_p): New function to check whether two memory expression
9197 may alias or not. Currently used in buidling inter-iteration memory
9199 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
9200 (insn_alias_sets_conflict_p): Removed
9201 *rtl.h (may_alias_p): New function prototype.
9203 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9205 * tree.c (nreverse): Assert that we don't have a BLOCK.
9207 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9209 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
9210 * config/arm/arm.c (arm_get_pcs_model): Likewise.
9211 * config/avr/avr.c (init_cumulative_args): Likewise.
9212 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9213 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9214 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
9215 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
9216 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9217 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9218 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9219 * dwarf2out.c (gen_subprogram_die): Likewise.
9220 * function.c (allocate_struct_function): Likewise.
9221 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
9222 (deserves_ellipsis): Delete.
9224 2010-08-09 Richard Guenther <rguenther@suse.de>
9226 * tree-ssa-copy.c (cached_last_copy_of): Remove.
9227 (valueize_val): New function.
9228 (get_last_copy_of): Remove.
9229 (set_copy_of_val): Simplify.
9230 (dump_copy_of): Likewise.
9231 (copy_prop_visit_cond_stmt): Use valueize_val.
9232 (copy_prop_visit_phi_node): Properly handle unvisited names.
9233 Drop code managing copy-of chains.
9234 (init_copy_prop): Adjust.
9235 (fini_copy_prop): Likewise.
9236 (execute_copy_prop): Remove obsolete comment.
9238 2010-08-09 Richard Guenther <rguenther@suse.de>
9241 * function.c (gimplify_parameters): Do not clear addressable
9242 bit of the original parameter.
9244 2010-08-09 Richard Guenther <rguenther@suse.de>
9247 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
9248 alignment from MEM_REF offset only if we took it from the
9251 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
9253 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
9255 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9257 * c-tree.h (build_arg_info): Declare.
9258 * c-decl.c (build_arg_info): Define.
9259 (get_parm_info): Call it. Delete initialization code.
9260 * c-parser.c (c_parser_parms_declarator): Likewise.
9261 (c_parser_parms_list_declaractor): Likewise.
9263 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9265 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
9266 (struct c_arg_info): Change type of tags field.
9267 * c-decl.c (grokdeclarator): Update for changed type of tags field.
9268 (get_parm_info): Likewise.
9269 (store_parm_decls_newstyle): Likewise.
9271 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9273 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
9274 (branch_island_list): Delete.
9275 (branch_islands): Declare.
9276 (add_compiler_branch_island): Adjust for branch_islands instead of
9278 (macho_branch_islands): Likewise.
9279 (no_previous_def): Likewise.
9280 (get_prev_label): Likewise.
9282 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9285 * gthr-posix.h (__gthread_start): Delete.
9286 (__gthread_active_init): Use pthread_default_stacksize_np instead of
9287 pthread_create to determine if hpux pthreads are active.
9288 * gthr-posix95.h (__gthread_start): Delete.
9289 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
9291 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
9293 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
9294 _WIN64 not expanded.
9296 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
9297 H.J. Lu <hongjiu.lu@intel.com>
9300 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
9301 to output 32bit SFmode immediate as 8 byte sign extended value.
9303 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9305 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9306 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9307 (SUBWORD_BOOL_CAS): Likewise.
9308 (SUBWORD_SYNC_OP): Likewise.
9309 (SUBWORD_TEST_AND_SET): Likewise.
9310 (FETCH_AND_OP_WORD): Parenthesise INF_OP
9311 (SUBWORD_SYNC_OP): Likewise.
9312 (OP_AND_FETCH_WORD): Likewise.
9314 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9316 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
9317 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
9318 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
9319 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
9321 (cortex_a9_sched_adjust_cost): New function.
9322 (xscale_sched_adjust_cost): New function.
9323 * config/arm/arm-protos.h (struct tune_params): New field
9325 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
9327 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
9330 * config/sparc/sparc.c (function_arg_advance): Always take into account
9331 the padding, if any.
9333 2010-08-06 Richard Guenther <rguenther@suse.de>
9335 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
9336 (dump_lattice_value): Dump it.
9337 (get_default_value): Adjust.
9338 (get_constant_value): Likewise.
9339 (set_value_varying): Likewise.
9340 (set_lattice_value): Make sure to not go up the lattice
9341 with bitwise constant values.
9342 (get_value_for_expr): Handle ADDR_EXPRs.
9343 (value_to_double_int): New function.
9344 (get_value_from_alignment): Likewise.
9345 (do_dbg_cnt): Adjust.
9346 (ccp_lattice_meet): Handle partially constant values.
9347 (bit_value_unop_1): New function.
9348 (bit_value_binop_1): Likewise.
9349 (bit_value_unop): Likewise.
9350 (bit_value_binop): Likewise.
9351 (evaluate_stmt): Track partially constant values if
9352 flag_tree_bit_ccp is set.
9353 (ccp_fold_stmt): Dump if we folded a predicate.
9354 (ccp_visit_stmt): Adjust.
9355 * common.opt (ftree-bit-ccp): New flag.
9356 * doc/invoke.texi (ftree-bit-ccp): Document.
9357 * opts.c (decode_options): Enable bit-CCP at -O1.
9359 2010-08-06 Alan Modra <amodra@gmail.com>
9361 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
9362 and -mrelocatable-lib description.
9364 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
9366 From Martin Thuresson <martint@google.com>
9367 * postreload.c (reload_cse_simplify_operands): Use
9368 SET_REGNO_RAW instead of SET_REGNO.
9369 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
9371 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
9372 instead of SET_REGNO.
9373 * rtl.h (SET_REGNO_RAW): New macro.
9375 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
9377 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
9378 computations. Fix formatting issues.
9379 (num_sign_bit_copies1): Likewise.
9380 (canonicalize_condition): Likewise.
9382 2010-08-05 Richard Henderson <rth@redhat.com>
9384 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
9385 (floor_log2): Use clz_hwi.
9386 (exact_log2): Use ctz_hwi.
9387 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
9388 * builtins.c (fold_builtin_bitop): Use them.
9389 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9390 * combine.c (get_pos_from_mask): Use ctz_hwi.
9391 * double-int.c (double_int_ctz): Likewise.
9392 * explow.c (force_reg): Likewise.
9393 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
9395 2010-08-05 Richard Henderson <rth@redhat.com>
9398 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
9399 the alignment constant is properly sign-extended.
9401 2010-08-05 Richard Guenther <rguenther@suse.de>
9403 * expr.c (store_expr): Use emit_block_move only if both
9404 source and target are MEMs. Use store_bit_field if only
9405 the target is a MEM.
9407 2010-08-05 Richard Henderson <rth@redhat.com>
9410 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
9411 (INCOMING_RETURN_ADDR_RTX): Likewise.
9412 (dwarf2out_do_frame): Remove conditional compilation.
9413 (dwarf2out_frame_init): Likewise.
9415 2010-08-05 Nicolas Setton <setton@adacore.com>
9417 * gcov.c (flag_display_progress): New static variable.
9418 (main): Display progress info on standard output if requested.
9419 (options): Add -d/--display-progress.
9420 (print_usage): Print them.
9421 (process_args): Handle them.
9422 * doc/gcov.texi: Document them.
9424 2010-08-05 Martin Jambor <mjambor@suse.cz>
9426 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
9427 (ipcp_insert_stage): Redirect only edges not flagged with
9428 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
9429 discovered constants.
9431 2010-08-05 Martin Jambor <mjambor@suse.cz>
9433 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
9434 (struct ipa_param_descriptor): New fields types and
9435 cannot_devirtualize.
9436 (ipa_param_cannot_devirtualize_p): New function.
9437 (ipa_param_types_vec_empty): Likewise.
9438 (ipa_make_edge_direct_to_target): Declare.
9439 * ipa-cp.c: Fixed first stage driver name in initial comment,
9440 described devirtualization there too.
9441 (ipcp_analyze_node): Call ipa_analyze_params_uses.
9442 (ipcp_print_all_lattices): Print devirtualization info.
9443 (ipa_set_param_cannot_devirtualize): New function.
9444 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
9446 (ipcp_init_stage): Merged into...
9447 (ipcp_generate_summary): ...its caller.
9448 (ipcp_change_tops_to_bottom): Also process type lists.
9449 (ipcp_add_param_type): New function.
9450 (ipcp_copy_types): Likewise.
9451 (ipcp_propagate_types): Likewise.
9452 (ipcp_propagate_stage): Also propagate types.
9453 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
9454 Also return true if propagated types require it.
9455 (ipcp_update_callgraph): Dump redirection info.
9456 (ipcp_process_devirtualization_opportunities): New function.
9457 (ipcp_const_param_count): Include known type information.
9458 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
9459 on new node. Fixed formatting.
9460 * ipa-prop.c (make_edge_direct_to_target): Renamed to
9461 ipa_make_edge_direct_to_target and changed all callers. Made
9463 (ipa_node_duplication_hook): Duplicate types vector.
9464 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
9465 redirect outgoing calls for which we can't get a decl from the
9466 statement. Check that we can get a decl from the call statement.
9467 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9468 ipa_analyze_params_uses only when ipa-cp is disabled.
9469 * tree-inline.c (get_indirect_callee_fndecl): Removed.
9470 (expand_call_inline): Do not call get_indirect_callee_fndecl.
9471 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
9472 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
9474 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9476 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
9477 temporary. Emit move from temporary to accum, so REG_EQUAL note will
9478 be attached to this insn in correct mode.
9480 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9482 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
9483 using REGNO of base_reg directly.
9485 2010-08-05 Jie Zhang <jie@codesourcery.com>
9487 PR tree-optimization/45144
9488 * tree-sra.c (type_consists_of_records_p): Return false
9489 if the record contains bit-field.
9491 2010-08-04 Richard Henderson <rth@redhat.com>
9493 * config/i386/i386.c (struct ix86_frame): Remove padding and
9494 to_allocate members.
9495 (ix86_compute_frame_layout): Don't store them.
9496 (ix86_can_use_return_insn_p): Use a more direct and more obviously
9497 correct condition for the position of the stack pointer.
9498 (ix86_expand_prologue): Compute remaining stack allocation based
9499 on the ultimate stack pointer offset.
9500 (ix86_expand_epilogue): Use more obvious expressions testing for
9501 the stack pointer already pointing to the saved registers.
9503 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
9504 duplication deconstructing the frame pointer. Simplify
9505 deallocation of the local stack frame.
9507 * reg-notes.def (CFA_EXPRESSION): New.
9508 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9509 (dwarf2out_frame_debug_cfa_expression): New.
9510 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
9512 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
9513 * config/i386/i386.c (ix86_expand_prologue): Set it.
9514 (ix86_expand_epilogue): Clear it.
9515 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
9516 context, add REG_CFA_EXPRESSION notes.
9518 * config/i386/i386.h (struct machine_frame_state): Rename from
9519 machine_cfa_state. Add members tracking SP and FP regardless
9520 of the current CFA register.
9521 (ix86_cfa_state): Remove.
9522 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
9523 and sse_reg_save_offset members.
9524 (ix86_compute_frame_layout): Set them.
9525 (gen_push): Increment sp_offset too.
9526 (choose_baseaddr_len, choose_baseaddr): New.
9527 (ix86_emit_save_reg_using_mov): New.
9528 (ix86_emit_save_regs_using_mov): Use it.
9529 (ix86_emit_save_sse_regs_using_mov): Likewise.
9530 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
9531 compare vs the saved red_zone_offset.
9532 (pro_epilogue_adjust_stack): Adjust sp_offset.
9533 (ix86_adjust_stack_and_probe): Likewise.
9534 (ix86_expand_prologue): Set up, use, and validate the new
9535 frame_state_info members. Use gen_frame_mem.
9536 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
9537 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
9538 new frame_state_info members.
9539 (ix86_emit_leave): Likewise.
9540 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
9541 out-of-range stack pointer offsets here.
9542 (ix86_emit_restore_sse_regs_using_mov): Likewise.
9543 (ix86_expand_epilogue): Use and validate the new frame_state_info
9544 members. Break up and simplify the logic selecting the
9545 restore_regs_via_mov code path. Ensure that there will be no
9546 out-of-range stack pointer offsets.
9548 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
9550 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
9551 argument name to reflect the expected tree; fix indentation.
9552 (ix86_asm_output_function_label): Output the entire 32-bit
9553 ms_hook here as bytes ...
9554 (ix86_expand_prologue): ... not here as insns. Attach the
9555 unwind info for the ms_hook to a blockage insn.
9556 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
9557 (ix86_ms_bitfield_layout_p): Fix indentation.
9558 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
9560 * config/i386/i386.c (ix86_using_red_zone): New.
9561 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
9562 ix86_expand_prologue, ix86_force_to_memory): Use it.
9564 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
9565 saving the int registers.
9567 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
9568 and DWARF2_UNWIND_INFO conditional compilation.
9570 2010-08-04 Richard Henderson <rth@redhat.com>
9573 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
9574 an is_naming_typedef_decl.
9576 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
9578 PR rtl-optimization/45162
9579 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
9580 * dce.c (word_dce_process_block): Likewise.
9582 2010-08-04 Steve Ellcey <sje@cup.hp.com>
9585 * config/ia64/constraints.md (Z): New.
9586 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
9587 (xfreg_or_signed_fp01_operand): New.
9588 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
9589 with fr_reg_or_signed_fp01_operand and constraint G with Z.
9594 (adddf3_trunc): Ditto.
9596 (*subdf3_trunc): Ditto.
9598 (*madddf4_trunc): Ditto.
9600 (*msubdf4_trunc): Ditto.
9601 (addxf3): Replace xfreg_or_fp01_operand with
9602 xfreg_or_signed_fp01_operand and constraint G with Z.
9603 (*addxf3_truncsf): Ditto.
9604 (*addxf3_truncdf): Ditto.
9606 (*subxf3_truncsf): Ditto.
9607 (*subxf3_truncdf): Ditto.
9609 (*maddxf4_truncsf): Ditto.
9610 (*maddxf4_truncdf): Ditto.
9612 (*msubxf4_truncsf): Ditto.
9613 (*msubxf4_truncdf): Ditto.
9615 2010-08-04 Richard Guenther <rguenther@suse.de>
9617 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
9618 if either alias-set is zero.
9620 2010-08-04 Richard Guenther <rguenther@suse.de>
9622 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
9623 * tree-ssa-ccp.c: ... here.
9624 * tree-ssa-copy.c: ... and here.
9625 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
9626 value_range_t): Move ...
9627 * tree-vrp.c: ... here.
9628 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
9629 (substitute_and_fold): Adjust prototype.
9630 * tree-ssa-propagate.c (replace_uses_in): Adjust.
9631 (replace_phi_args_in): Likewise.
9632 (substitute_and_fold): Take callback to query lattice instead
9633 of pointer to lattice. Replace SSA name defs with lattice
9635 * tree-ssa-ccp.c (ccp_finalize): Adjust.
9636 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
9637 (get_value): New function.
9638 (fini_copy_prop): Adjust.
9639 * tree-vrp.c (vrp_finalize): Adjust.
9641 2010-08-04 Richard Guenther <rguenther@suse.de>
9644 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
9645 points-to set for original MEM_REF.
9647 2010-08-04 Richard Guenther <rguenther@suse.de>
9649 * tree-ssa-ccp.c (get_constant_value): New function.
9650 (get_rhs_assign_op_for_ccp): Remove.
9651 (valueize_op): New function.
9652 (ccp_fold): Use get_constant_value and valueize_op.
9653 (fold_const_aggregate_ref): Likewise.
9654 (ccp_fold_stmt): Likewise.
9655 (visit_assignment): Simplify.
9657 2010-08-04 Richard Guenther <rguenther@suse.de>
9659 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
9660 * double-int.h (double_int_ctz): Declare.
9661 * double-int.c (double_int_ctz): New function.
9663 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
9665 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9667 picochip_expand_movmemhi : Expand movmem pattern.
9668 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
9670 * config/picochip/picochip.md (movmemhi) : New pattern.
9672 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9674 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
9676 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
9678 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
9679 NEG as operand of a MULT by merging it with the other operand.
9680 * combine.c (make_compound_operation): Use trunc_int_for_mode when
9681 generating a MULT with constant. Canonicalize PLUS and MINUS involving
9683 * config/arm/constraints.md (M): Examine only 32 bits of a
9685 * config/arm/predicates.md (power_of_two_operand): Likewise.
9687 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9689 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
9692 2010-08-03 Jan Hubicka <jh@suse.cz>
9694 * ipa-split.c (struct split_point): Add split_part_set_retval.
9695 (find_retval): Forward declare.
9696 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
9697 (consider_split): Compute current->split_part_set_retval.
9698 (visit_bb): Do not look into return value.
9699 (split_function): Handle !split_part_set_retval
9701 2010-08-03 Martin Jambor <mjambor@suse.cz>
9703 * tree-sra.c (completely_scalarize_record): New parameter REF, create
9704 its own access->expr intead of using build_ref_for_offset.
9706 2010-08-03 Joseph Myers <joseph@codesourcery.com>
9708 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
9709 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
9710 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
9711 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
9712 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
9713 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
9714 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
9715 DEFAULT_SWITCH_TAKES_ARG.
9716 * config/rx/rx.opt (-patch=): Remove option.
9717 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
9718 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
9719 * doc/invoke.texi (RX Options): Remove -patch=.
9720 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
9721 (option_map): Remove --profile-blocks, --quiet and --silent.
9723 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9725 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
9726 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
9727 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
9728 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9729 Update calls to ix86_expand_compare and ix86_expand_branch.
9730 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
9731 ix86_expand_compare.
9732 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
9733 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9735 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
9736 and ix86_compare_op1. Update calls to ix86_expand_compare.
9737 (ix86_expand_int_movcc): Ditto.
9738 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
9739 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
9740 (ix86_expand_setcc): Ditto.
9741 (ix86_expand_compare): Remove prototype.
9742 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
9743 ix86_compare_op0 and ix86_compare_op1. Update calls
9744 to ix86_expand_branch to directly pass operands[1] and operands[2].
9745 (cbranchxf4): Ditto.
9746 (cbranch<MODEF:mode>4): Ditto.
9747 (cbranchcc4): Ditto.
9748 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
9749 Update calls to ix86_expand_setcc to directly pass operands[2] and
9752 (cstore<MODEF:mode>4): Ditto.
9755 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9758 * caller-save.c (save_call_clobbered_regs): Remove regs from
9759 hard_regs_saved when they are set.
9761 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
9764 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9767 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
9769 * common.opt (ftree-loop-distribute-patterns): New.
9770 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
9771 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
9773 * tree-data-ref.c (stores_zero_from_loop): New.
9774 * tree-data-ref.h (stores_zero_from_loop): Declared.
9775 * tree-loop-distribution.c (tree_loop_distribution): Call
9776 stores_zero_from_loop.
9777 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
9779 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9781 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
9784 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
9785 * config/arm/arm.c (thumb1_code): New variable.
9786 (arm_override_options): Set it.
9787 (thumb1_final_prescan_insn): Keep track of condition code status.
9788 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
9789 jumps that depend on them.
9790 * config/arm/arm.h (thumb1_code): Declare variable.
9791 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
9792 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
9794 (CC_STATUS_INIT): New macro.
9795 * config/arm/constraints.md (Pd): New constraint.
9796 * config/arm/predicates.md (noov_comparison_operator): New predicate.
9797 * config/arm/arm.md (is_thumb1): New define_attr.
9798 (conds): Set default to "clob" when generating Thumb1 code.
9799 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
9800 code are set. Use two-operand assembly syntax.
9801 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
9803 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
9804 codes are set. Use two-operand assembly syntax.
9805 (zero_extendhisi splitter): Remove constraints.
9806 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
9807 thumb1_movsf_insn): Set conds attribute as appropriate.
9808 (cbranchsi4_insn): Use condition code status from struct
9809 machine_function to determine whether the comparison can be eliminated.
9810 Discourage the alternative using high registers.
9811 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
9812 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
9813 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
9814 subsi3_cbranch): Delete.
9815 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
9816 one subtract and one cbranch insn.
9818 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
9819 thumb2_movdf_soft_insn): Delete patterns.
9820 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
9821 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
9822 (pool_range, neg_pool_range): Use them to define defaults.
9823 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
9824 and allow for TARGET_32BIT.
9827 * config/arm/arm.h (arm_regs_in_sequence): Declare.
9828 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
9829 load_multiple_sequence, store_multiple_sequence): Delete
9831 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
9833 * config/arm/ldmstm.md: New file.
9834 * config/arm/arm.c (arm_regs_in_sequence): New array.
9835 (load_multiple_sequence): Now static. New args SAVED_ORDER,
9836 CHECK_REGS. All callers changed.
9837 If SAVED_ORDER is nonnull, copy the computed order into it.
9838 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
9839 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
9840 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
9841 If SAVED_ORDER is nonnull, copy the computed order into it.
9842 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
9843 like REGS. Handle Thumb mode.
9844 (arm_gen_load_multiple_1): New function, broken out of
9845 arm_gen_load_multiple.
9846 (arm_gen_store_multiple_1): New function, broken out of
9847 arm_gen_store_multiple.
9848 (arm_gen_multiple_op): New function, with code from
9849 arm_gen_load_multiple and arm_gen_store_multiple moved here.
9850 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
9851 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
9853 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
9854 * config/arm/predicates.md (commutative_binary_operator): New.
9855 (load_multiple_operation, store_multiple_operation): Handle more
9856 variants of these patterns with different starting offsets. Handle
9858 * config/arm/arm.md: Include "ldmstm.md".
9859 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
9860 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
9861 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
9863 * config/arm/ldmstm.md: New file.
9864 * config/arm/arm-ldmstm.ml: New file.
9866 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
9867 if statement which adds extra costs to frame-related expressions.
9869 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9871 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
9873 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
9876 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
9878 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
9879 split V4SI operands.
9881 2010-08-01 Anatoly Sokolov <aesok@post.ru>
9883 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9884 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
9885 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
9886 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
9888 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
9890 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
9893 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9895 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
9896 used in the call to optab_for_tree_code. Fix the second
9897 is_widening_mult_p call. Check that both unwidened operands
9900 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
9902 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
9904 2010-07-31 Anatoly Sokolov <aesok@post.ru>
9906 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9908 2010-07-30 DJ Delorie <dj@redhat.com>
9910 * config/rx/predicates.md (rx_constshift_operand): New.
9911 * config/rx/rx.md (zs_cond): New.
9912 (cbranchsi4): Remove mode.
9913 (*cbranchsi4_<code>): Likewise.
9914 (*tstbranchsi4_<code>): New.
9915 (*tstbranchsi4r_<code>): New.
9916 (*tstbranchsi4m_eq): New.
9917 (*tstbranchsi4m_ne): New.
9918 (cbranchsf4): Remove mode.
9919 (*cbranchsf4_<code>): Likewise.
9921 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
9923 * rtlanal.c (simplify_subreg_regno): Don't treat
9924 HARD_FRAME_POINTER_REGNUM specially.
9926 2010-07-30 Joseph Myers <joseph@codesourcery.com>
9928 * common.opt (-G): Don't define option here.
9929 * config/g.opt: New.
9930 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
9931 rs6000/powerpc and score targets.
9932 * opts.c (common_handle_option): Don't handle -G here.
9933 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
9934 * config/frv/frv.c (frv_handle_option): Handle -G.
9935 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
9936 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
9937 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
9938 * config/mips/mips.c (mips_handle_option): Handle -G.
9939 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
9940 * config/score/score.c (score_handle_option): Handle -G.
9942 2010-07-30 Anatoly Sokolov <aesok@post.ru>
9944 * config/mmix/mmix.c: Include basic-block.h.
9946 2010-07-30 Jakub Jelinek <jakub@redhat.com>
9949 PR rtl-optimization/45137
9950 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
9952 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
9954 * combine.c (next_nonnote_nondebug_insn): Removed.
9955 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
9956 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
9957 * sched-deps.c (sched_analyze_insn): Likewise.
9958 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
9959 * rtlanal.c (canonicalize_condition): Likewise.
9960 * postreload.c (reload_combine_recognize_pattern): Likewise.
9961 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
9963 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
9965 * config/i386/i386.md (int_cond): Remove code iterator.
9967 (cbranch<mode>4): Use ordered_comparison_operator predicate
9969 (cstore<mode>4): Ditto for operator1.
9970 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
9971 (add<mode>cc): ditto.
9973 2010-07-30 Richard Guenther <rguenther@suse.de>
9976 * expr.c (expand_expr_real_1): Check for not handled base address.
9978 2010-07-30 Richard Guenther <rguenther@suse.de>
9980 * ipa-prop.c (ipa_modify_formal_parameters): Use
9981 build_distinct_type_copy.
9983 2010-07-30 Anthony Green <green@moxielogic.com>
9985 * config/moxie/rtems.h: New file.
9986 * config.gcc: Add moxie-rtems support.
9988 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
9990 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
9991 df flags as in run_fast_df_dce.
9993 2010-07-29 Jakub Jelinek <jakub@redhat.com>
9996 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
9998 * rtl.def (NOTE): Swap operands 4 and 5.
9999 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
10000 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
10001 Adjust accordingly.
10002 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
10004 2010-07-29 Jakub Jelinek <jakub@redhat.com>
10007 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
10008 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
10009 (gen_subprogram_die): Likewise. Remove it when removing declaration's
10011 (gen_decl_die): Change return type to dw_die_ref, return what
10012 gen_formal_parameter_die returned.
10014 2010-07-29 Martin Jambor <mjambor@suse.cz>
10016 * dbgcnt.def (eipa_sra): New counter.
10017 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
10019 2010-07-29 Xinliang David Li <davidxl@google.com>
10022 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
10023 in revision 162652.
10025 2010-07-29 Richard Guenther <rguenther@suse.de>
10027 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
10028 (TV_TREE_STORE_CCP): Likewise.
10029 (TV_TREE_REDPHI): Likewise.
10031 2010-07-29 Richard Guenther <rguenther@suse.de>
10033 * double-int.h (double_int_and_not): New function.
10034 * combine.c (try_combine): Use it.
10035 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
10037 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
10039 PR rtl-optimization/42575
10040 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
10041 Argument AU removed. All callers changed. Ignore artificial refs.
10042 Use return value of df_word_lr_simulate_defs to decide whether an insn
10044 (fast_dce): Rename arg to WORD_LEVEL.
10045 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
10047 (pass_fast_rtl_byte_dce): Delete.
10048 * dce.h (run_word_dce): Declare.
10049 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
10050 All callers changed. Simplify code to only deal with two-word regs.
10051 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
10052 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
10053 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
10054 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
10055 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
10056 (df_word_lr_mark_ref): Declare.
10057 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
10058 df_word_lr_simulate_uses): Declare or rename from byte variants.
10059 (df_byte_lr_simulate_artificial_refs_at_top,
10060 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
10061 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
10063 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
10064 (enum df_mm): Delete.
10065 * df-byte-scan.c: Delete file.
10066 * df-problems.c (df_word_lr_problem_data): Renamed from
10067 df_byte_lr_problem_data, all members deleted except for
10068 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
10069 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
10070 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
10071 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
10072 df_byte_lr_confluence_0): Delete functions.
10073 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
10075 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
10076 Don't initialize members that were deleted, don't try to discover data
10077 about registers. Ignore hard regs.
10078 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
10079 (df_word_lr_mark_ref): New function.
10080 (df_word_lr_bb_local_compute): Renamed from
10081 df_byte_bb_lr_local_compute; all callers changed. Use
10082 df_word_lr_mark_ref. Assert that artificial refs don't include
10083 pseudos. Ignore hard registers.
10084 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
10085 Assert that exit block uses don't contain pseudos.
10086 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
10087 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
10088 callers changed. Ignore hard regs.
10089 (df_word_lr_transfer_function): Renamed from
10090 df_byte_lr_transfer_function; all callers changed.
10091 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
10092 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
10094 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
10096 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
10097 confluence operator 0 set to NULL.
10098 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
10100 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
10101 Return bool, true if bitmap changed or insn otherwise necessary.
10102 All callers changed. Simplify using df_word_lr_mark_ref.
10103 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
10104 all callers changed. Simplify using df_word_lr_mark_ref.
10105 * lower-subreg.c: Include "dce.h"
10106 (decompose_multiword_subregs): Call run_word_dce if df available.
10107 * Makefile.in (lower-subreg.o): Adjust dependencies.
10108 (df-byte-scan.o): Delete.
10109 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
10111 2010-07-29 Richard Guenther <rguenther@suse.de>
10113 * tree.c (build_vector): Assert that the vector constant
10114 has enough elements.
10115 (build_vector_from_ctor): Pad with trailing zeros.
10117 2010-07-29 Richard Guenther <rguenther@suse.de>
10119 PR tree-optimization/45120
10120 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10121 Handle offset in DEREFs properly.
10122 (get_constraint_for_1): Handle MEM_REF offset properly.
10124 2010-07-29 Richard Guenther <rguenther@suse.de>
10126 PR middle-end/45034
10127 * convert.c (convert_to_integer): Always use an unsigned
10128 type for narrowed negate and bitwise not.
10130 2010-07-29 Ira Rosen <irar@il.ibm.com>
10132 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
10133 to outer loop when creating reduction epilogue for double reduction,
10134 and switch back to the inner loop when updating the phi nodes.
10135 Update uses of outer loop exit phi nodes in double reduction (instead
10136 of uses of reduction).
10138 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10140 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
10141 popcount on power7 and parity on power6 systems.
10142 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
10143 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
10146 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
10147 (UNSPEC_PARITY): Ditto.
10148 (SFDF): New iterator for SF/DF.
10149 (rreg2): New mode attribute for floating register constraint.
10150 (TARGET_FLOAT): New mode attribute for whether single/double float
10152 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
10154 (parity<mode>2_cmpb): New insn for parity on power6 and newer
10156 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
10157 pattern. Add support for fcpsgn instruction added in power6.
10158 (copysignsf3): Delete.
10159 (copysigndf3): Delete.
10160 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
10161 instead of if_then_else in RTL to avoid problems with -0.
10163 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
10164 of if_then_else to mirror scalar code.
10165 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
10168 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
10169 instead of if_then_else.
10171 2010-07-28 Xinliang David Li <davidxl@google.com>
10173 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
10174 (dump_cand): Dump var_before/after.
10175 (htab_inv_expr_eq): New function.
10176 (htab_inv_expr_hash): New function.
10177 (tree_ssa_iv_optimize_init): Support pseudo invariants.
10178 (add_candidate_1): consider base type precision.
10179 (set_use_iv_cost): New parameter.
10180 (adjust_setup_cost): Use profile information.
10181 (get_address_cost): Do not hard code width in computing address
10183 (compare_aff_trees): New function.
10184 (get_loop_invariant_expr_id): New function.
10185 (get_computation_cost_at): New parameter and use profile information.
10186 (get_computation_cost): New parameter.
10187 (determine_use_iv_cost_generic): Pass new parameter.
10188 (determine_use_iv_cost_address): Ditto.
10189 (determine_use_iv_cost_condition): Ditto.
10190 (autoinc_possible_for_pair): Ditto.
10191 (determine_use_iv_costs): More dumps.
10192 (iv_ca_get_num_inv_exprs): New function.
10193 (iv_ca_recount_cost): Consider loop invariants in register pressure
10195 (iv_ca_add_use): New parameter.
10196 (iv_ca_dump): Better dumping.
10197 (iv_ca_extend): New parameter.
10198 (try_add_cand_for): Attempt to get better partial solution.
10199 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
10200 (create_new-ivs): More dumps.
10201 (rewrite_use_compare): Ditto.
10202 (free_loop_data): More cleanup.
10203 (treee_ssa_iv_optimize_finalize): Ditto.
10205 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
10207 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
10208 * config/i386/i386.c (ix86_profile_before_prologue): New.
10209 (override_options): Add special handling for -mfentry.
10210 (ix86_function_regparm): Likewise.
10211 (ix86_function_sseregparm): Likewise.
10212 (ix86_frame_pointer_required): Likewise.
10213 (ix86_expand_prologue): Check for ms_hook_prologue.
10214 (x86_function_profiler): Adjust mcount output.
10215 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
10216 * config/i386/i386.opt (mfentry): New.
10217 * doc/invoke.texi (mfentry): Add documentation.
10218 * doc/tm.texi: Regenerated..
10219 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
10220 * final.c (final_start_function): Replace macro
10221 PROFILE_BEFORE_PROLOGUE by target hook.
10222 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10223 * target.def (profile_before_prologue): New hook.
10224 * targhooks.c (default_profile_before_prologue): New.
10225 * targhooks.h (default_profile_before_prologue): New.
10227 2010-07-28 Jakub Jelinek <jakub@redhat.com>
10230 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
10233 * dwarf2out.c (dwarf2out_var_location): Always consider
10234 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
10236 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10238 PR rtl-optimization/45107
10239 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
10241 2010-07-28 Richard Guenther <rguenther@suse.de>
10243 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
10244 (set_lattice_value): Do not query an old default value.
10245 (get_value_for_expr): New function. Properly canonicalize
10247 (ccp_visit_phi_node): Use it.
10249 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
10251 * config/arm/arm.c (arm_pcs_default): Remove static.
10252 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
10253 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
10254 (arm_pcs_default): Declare.
10256 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
10258 * config/rs6000/rs6000.c (rs6000_override_options):
10259 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
10260 ... to darwin_rs6000_override_options.
10261 (rs6000_return_in_memory): Update preceding comment for darwin
10262 64 bit ABI. Use TARGET_MACHO inline.
10263 (rs6000_darwin64_struct_check_p): New.
10264 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
10265 (function_arg): Likewise.
10266 (rs6000_arg_partial_bytes): Likewise.
10267 (rs6000_function_value): Likewise.
10269 2010-07-28 Andi Kleen <ak@linux.intel.com>
10271 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
10273 2010-07-28 Richard Guenther <rguenther@suse.de>
10275 PR middle-end/44903
10276 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
10277 targets try harder to not generate unaligned accesses.
10279 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10281 PR rtl-optimization/45101
10282 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
10285 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
10287 PR tree-optimization/44885
10288 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
10289 with non-aliased component.
10291 2010-07-28 Joseph Myers <joseph@codesourcery.com>
10293 * config/darwin-driver.c (SWITCH_TAKES_ARG,
10294 WORD_SWITCH_TAKES_ARG): Remove.
10295 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
10296 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
10297 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
10298 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
10299 definitions from gcc.c.
10300 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
10302 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
10303 Move to defaults.h.
10304 * opts-common.c: Include tm.h.
10305 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
10306 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
10307 Handle more than one argument. Set canonical_option_num_elements.
10308 (decode_cmdline_options_to_array): Set
10309 canonical_option_num_elements and trailing elements of
10311 * opts.h (struct cl_decoded_option): Allow four elements in
10312 canonical_option. Add field canonical_option_num_elements.
10313 * Makefile.in (opts-common.o): Update dependencies.
10315 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
10317 PR middle-end/44790
10318 PR middle-end/44993
10319 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
10320 sure the base has address_mode before adding the offset.
10322 2010-07-27 Xinliang David Li <davidxl@google.com>
10324 * tree-flow.h (create_mem_ref): Add one new parameter.
10325 * tree-ssa-address.c (create_mem_ref): New parameter.
10326 (addr_to_parts): Ditto.
10327 (move_variant_to_index): New function.
10328 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
10330 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10332 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
10334 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
10335 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
10336 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
10337 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
10338 CODE_LABELs and NOTEs.
10339 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
10340 * combine.c (try_combine): Likewise.
10341 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10342 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
10344 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10346 * coretypes.h (struct cl_option_handlers): Declare.
10347 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
10348 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
10349 * langhooks-def.h (lhd_handle_option): Declare.
10350 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
10351 * langhooks.c (lhd_handle_option): New.
10352 * langhooks.h (struct lang_hooks): Update prototype and return
10353 value type of handle_option hook.
10354 * optc-gen.awk: Generate target_flags_explicit definition for the
10356 * opts-common.c: Include diagnostic.h.
10357 (handle_option): Move from opts.c. Update prototype and return
10358 value type. Use handlers structure.
10359 (read_cmdline_option): Move from opts.c. Update prototype. Use
10360 handlers structure.
10361 (set_option): Move from opts.c.
10362 * opts.c (common_handle_option): Update prototype and return value
10363 type. Update calls to handle_option and enable_warning_as_error.
10364 (unknown_option_callback, post_handling_callback,
10365 lang_handle_option, target_handle_option): New.
10366 (handle_option, read_cmdline_option): Move to opts-common.c.
10367 (read_cmdline_options): Update prototype. Update call to
10368 read_cmdline_option.
10369 (decode_options): Initialize and use handlers structure.
10370 (set_option): Move to opts-common.c.
10371 (enable_warning_as_error): Update prototype. Update call to
10373 * opts.h (struct cl_option_handler_func, struct
10374 cl_option_handlers): New.
10375 (handle_option, enable_warning_as_error): Update prototypes.
10376 (read_cmdline_option): Declare.
10377 * Makefile.in (opts-common.o): Update dependencies.
10379 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10381 * config/arm/arm.c (params.h): Include.
10382 (arm_override_options): Tune gcse-unrestricted-cost.
10383 * config/arm/t-arm (arm.o): Define dependencies.
10385 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10388 PR middle-end/42574
10389 * basic-block.h (get_dominated_to_depth): Declare.
10390 * dominance.c (get_dominated_to_depth): New function, use
10391 get_all_dominated_blocks as a base.
10392 (get_all_dominated_blocks): Use get_dominated_to_depth.
10394 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
10395 (hoist_exprs): Remove.
10396 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
10397 (compute_code_hoist_vbeinout): Add debug print outs.
10398 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
10400 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
10401 quadratic behavior.
10402 * params.h (MAX_HOIST_DEPTH): New macro.
10403 * doc/invoke.texi (max-hoist-depth): Document.
10405 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10407 PR rtl-optimization/40956
10408 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
10411 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10414 PR middle-end/42574
10415 * config/arm/arm.c (legitimize_pic_address): Use
10416 gen_calculate_pic_address pattern to emit calculation of PIC address.
10417 (will_be_in_index_register): New function.
10418 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
10419 (thumb1_legitimate_address_p): Use it provided !strict_p.
10420 * config/arm/arm.md (calculate_pic_address): New expand and split.
10422 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10425 PR middle-end/42574
10426 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
10427 * config/arm/arm.md (define_split "J", define_split "K"): Make
10428 IRA/reload friendly.
10430 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10432 * gcse.c (insert_insn_end_basic_block): Update signature, remove
10434 (pre_edge_insert, hoist_code): Update.
10436 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10439 PR middle-end/42574
10440 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
10442 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10444 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
10446 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10448 PR rtl-optimization/40956
10450 PR middle-end/42574
10451 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
10453 (hoist_code): Count occurences in current block too.
10455 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10457 * gcse.c (struct expr:max_distance): New field.
10458 (doing_code_hoisting_p): New static variable.
10459 (want_to_gcse_p): Change signature. Allow constrained hoisting of
10460 simple expressions, don't change behavior for PRE. Set max_distance.
10461 (insert_expr_in_table): Set new max_distance field.
10462 (hash_scan_set): Update.
10463 (hoist_expr_reaches_here_p): Stop search after max_distance
10465 (find_occr_in_bb): New static function. Use it in ...
10466 (hoist_code): Calculate sizes of basic block before any changes are
10467 done. Pass max_distance to hoist_expr_reaches_here_p.
10468 (one_code_hoisting_pass): Set doing_code_hoisting_p.
10470 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
10471 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
10472 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
10474 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
10477 2010-07-27 Jeff Law <law@redhat.com>
10478 Maxim Kuvyrkov <maxim@codesourcery.com>
10480 * gcse.c (compute_transpout, transpout): Remove, move logic
10481 to prune_expressions.
10482 (compute_pre_data): Move pruning of trapping expressions ...
10483 (prune_expressions): ... here. New static function.
10484 (compute_code_hoist_data): Use it.
10485 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
10487 2010-07-27 Xinliang David Li <davidxl@google.com>
10489 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
10490 (rewrite_use_address): Adjust iv update position when needed.
10492 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10494 * dbgcnt.def (hoist_insn): New debug counter.
10495 * gcse.c (hoist_code): Use it.
10497 2010-07-27 Xinliang David Li <davidxl@google.com>
10499 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
10500 (niter_for_single_dom_exit): Passes additional parameter.
10501 (iv_period): Fix comments.
10502 (may_eliminate_iv): Handles multiple exit loops properly.
10503 (free_tree_niter_desc): New function.
10504 (free_loop_data): Frees up loop iteration descriptors.
10506 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10509 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
10510 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
10511 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
10512 (expand_one_var): Don't consider DECL_ALIGN for variables for
10513 which expand_one_stack_var_at has been already called.
10516 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
10517 constraints on IA-64.
10519 2010-07-27 Jie Zhang <jie@codesourcery.com>
10523 2010-07-23 Jie Zhang <jie@codesourcery.com>
10525 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10526 false if ! tree_versionable_function_p.
10528 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10530 * dwarf2out.c (add_data_member_location_attribute): Use
10531 add_AT_unsigned instead of add_AT_int if offset is non-negative.
10533 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10535 * postreload.c (try_replace_in_use): New static function.
10536 (reload_combine_recognize_const_pattern): Use it here. Allow
10537 substituting into a final add insn, and substituting into a memory
10538 reference in an insn that sets the reg.
10540 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10542 * common.opt (o): Add MissingArgError.
10543 * doc/options.texi (MissingArgError): Document.
10544 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
10545 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
10546 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10547 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
10548 * langhooks.h (struct lang_hooks): Remove missing_argument.
10549 * optc-gen.awk: Handle MissingArgError and output new structure
10550 field initializers.
10551 * opts.c (read_cmdline_option): Use missing_argument_error field
10552 instead of missing_argument langhook.
10553 * opts.h (struct cl_option): Add missing_argument_error field.
10554 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
10556 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10559 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
10560 Darwin64 ABI, for zero-sized objects.
10562 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10567 Merge from Apple local 4.2.1.
10568 2005-05-11 Stan Shebs <shebs@apple.com>
10569 Fix 64-bit varargs for Darwin (Radar 4028089).
10570 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
10571 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10572 Add argument, add case for 8-byte register half-filled with a float.
10573 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
10574 single-precision floats specially.
10576 2010-07-27 Ira Rosen <irar@il.ibm.com>
10578 PR tree-optimization/44152
10579 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
10580 complex numbers for further check.
10581 (vect_supported_load_permutation_p): Check nodes with
10584 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10586 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
10587 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
10588 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
10589 (LANG_HOOKS_INITIALIZER): Add new hooks.
10590 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
10591 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
10592 and complain_wrong_lang_p. Update init_options prototype.
10593 * c-objc-common.c (c_initialize_diagnostics): First call
10594 c_common_initialize_diagnostics.
10595 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
10596 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
10597 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
10598 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
10599 (hook_uint_void_0): New.
10600 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
10601 (hook_uint_void_0): New.
10602 * opts-common.c (decode_cmdline_option,
10603 decode_cmdline_options_to_array): Also fill in canonical_option field.
10604 * opts.c (complain_wrong_lang): Use langhook to determine whether
10605 to complain instead of special-casing LTO.
10606 (decode_options): Separate lang_mask determination with
10607 option_lang_mask hook from call of init_options hook.
10608 * opts.h (struct cl_decoded_option): Add canonical_option.
10610 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10612 PR tree-optimization/45083
10613 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
10615 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10617 * postreload.c (reload_combine_recognize_const_pattern): Move test
10618 for limiting the insn movement to the right scope.
10620 PR rtl-optimization/45051
10621 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
10622 than reg_mentioned_p.
10624 2010-07-26 Richard Henderson <rth@redhat.com>
10627 * tree-emutls.c: New file.
10628 * Makefile.in (OBJS-common): Add it.
10629 * tree-pass.h (pass_ipa_lower_emutls): Declare.
10630 * passes.c (init_optimization_passes): Add it.
10632 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
10633 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
10634 * expr.c (emutls_var_address): Delete.
10635 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
10636 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
10637 (emutls_finish): Delete.
10638 * toplev.c (compile_file): Don't call it.
10639 * tree.h (emutls_decl): Delete.
10640 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
10641 (emutls_finish, emutls_finalize_control_var): Delete.
10642 (emutls_object_type): Move to tree-emutls.c.
10643 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
10644 default_emutls_var_fields, get_emutls_object_type,
10645 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
10646 default_emutls_var_init): Likewise.
10647 (get_variable_section): Don't special case emutls.
10648 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
10649 default_elf_select_section, default_unique_section,
10650 default_encode_section_info): Likewise.
10651 * varpool.c (decide_is_variable_needed): Likewise.
10652 * gimple-iterator.c (update_call_edge_frequencies): New
10653 (gsi_insert_on_edge_immediate): Use it.
10654 (gsi_insert_seq_on_edge_immediate): Likewise.
10655 (gsi_commit_one_edge_insert): Likewise.
10657 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
10658 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
10659 (x86_64_elf_unique_section): Likewise.
10661 2010-07-26 Jan Hubicka <jh@suse.cz>
10663 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
10666 2010-07-26 Anatoly Sokolov <aesok@post.ru>
10668 * target.def (output_source_filename): New hook.
10669 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
10670 * doc/tm.texi: Regenerate.
10671 * toplev.c (output_file_directive) Remove function.
10672 * toplev.h (output_file_directive) Remove.
10673 * output.h (default_asm_output_source_filename,
10674 output_file_directive): Declare.
10675 * varasm.h (default_asm_output_source_filename,
10676 output_file_directive): New functions.
10678 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10679 * config/mips/mips-protos.h (mips_output_filename): Remove.
10680 * config/mips/mips.c (mips_output_filename): Make Static.
10681 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10683 2010-07-26 Richard Guenther <rguenther@suse.de>
10685 PR tree-optimization/43784
10686 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
10687 if the destination is used by the call.
10689 2010-07-26 Richard Guenther <rguenther@suse.de>
10691 PR middle-end/45073
10692 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
10693 SSA updating on being in SSA form.
10695 2010-07-26 Richard Guenther <rguenther@suse.de>
10697 PR middle-end/45056
10698 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
10700 2010-07-26 Richard Guenther <rguenther@suse.de>
10702 PR tree-optimization/45071
10703 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
10706 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
10708 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
10709 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
10710 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
10711 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
10712 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
10713 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
10714 save_r31, return_r31, save_interrupt, return_interrupt,
10715 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
10716 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
10717 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
10718 new ABI requirements.
10719 (save_r6_r9, L_callt_save_r6_r9): Remove.
10720 * config/v850/predicates.md (even_reg_operand, disp23_operand,
10721 const_float_1_operand const_float_0_operand): New Predicates.
10722 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
10723 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
10724 * config/v850/t-v850: Update multilibs for new target variants.
10725 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
10726 * config/v850/t-v850e: Likewise.
10727 * config/v850/v850.c (v850_issue_rate): New.
10728 (v850_strict_argument_naming): New.
10729 (function_arg): Modify to generate a different ABI.
10730 (print_operand): Update case 'z' to support float modes.
10731 (output_move_single): Modify to generate appropriate and better
10733 (v850_float_z_comparison_operator, v850_select_cc_mode,
10734 v850_float_nz_comparison_operator, v850_gen_float_compare,
10735 v850_gen_compare): New functions to support comparison of float values.
10736 (ep_memory_offset): Add support for V850E2 targets.
10737 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
10738 (INTERRUPT_REGPARM_NUM): Remove.
10739 (compute_register_save_size): Add extra case to save/restore long call.
10740 (use_prolog_function): New function to support prologue.
10741 (expand_prologue): Add support for V850E2 targets and modified
10742 as per the current ABI requirements.
10743 (expand_epilogue): Likewise.
10744 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
10745 (construct_save_jarl): Likewise.
10746 (construct_dispose_instruction): Update as per the current ABI
10748 (construct_prepare_instruction): Likewise.
10749 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
10750 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
10751 (CPP_SPEC): Updated to support v850e2 targets.
10752 (STRICT_ALIGNMENT): Modified.
10753 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
10754 (FIXED_REGISTERS): Likewise.
10755 (CALL_USED_REGISTERS): Likewise.
10756 (CONDITIONAL_REGISTER_USAGE): Updated.
10757 (HARD_REGNO_MODE_OK): Updated.
10758 (reg_class): Updated to add even registers.
10759 (REG_CLASS_NAMES): Likewise.
10760 (REG_CLASS_CONTENTS): Likewise.
10761 (REGNO_REG_CLASS): Updated for CC registers.
10762 (REG_CLASS_FROM_LETTER): Added support for even registers.
10763 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
10764 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
10765 ARG_POINTER_REGNUM): Updated.
10766 (FUNCTION_ARG_ADVANCE): Define.
10767 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
10768 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
10769 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
10770 (GO_IF_LEGITIMATE_ADDRESS): Updated.
10771 (SELECT_CC_MODE): Define.
10772 (REGISTER_NAMES): Updated to add psw and fcc registers.
10773 (ADDITIONAL_REGISTER_NAMES): Updated.
10774 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
10775 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
10776 * config/v850/v850.md (define_constants): Define new constants.
10777 (type): Update store,bit1,macc,div,fpu and single attributes.
10778 (cpu): New attribute.
10779 (cc): Add set_z attribute.
10780 (unsign23byte_load, sign23byte_load, unsign23hword_load,
10781 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
10782 23word_store): New instructions for 23-bit displacement load and store.
10783 (movqi_internal, movhi_internal): Update the attributes.
10784 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
10785 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
10787 (v850_tst1): Modified using CC_REGNUM.
10789 (cmpsi): Modified as define_expand from define_insn.
10790 (cmpsi_insn, cmpsf, cmpdf): New instructions.
10791 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
10792 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
10793 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
10794 one_cmplsi2): Clobber the CC_REGNUM register.
10795 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
10796 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
10797 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
10798 (setf_insn, set_z_insn, set_nz_insn): New instructions for
10800 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
10801 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
10803 (sasf_1, sasf_2): Remove.
10804 (sasf): New instruction.
10805 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
10806 targets. CC_REGNUM register is clobbered and attributes are
10808 (branch_z_normal, branch_z_invert, branch_nz_normal,
10809 branch_nz_invert): New branch related instructions.
10810 (jump): Updated the attributes.
10811 (switch): Update to support new targets. CC_REGNUM register is
10812 clobbered and attributes are updated.
10813 (call_internal_short, call_internal_long, call_value_internal_short,
10814 call_value_internal_long): Updated the attributes.
10815 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
10816 clobbered and attributes are updated.
10817 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
10818 Update to support new targets. CC_REGNUM register is clobbered.
10819 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
10821 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
10823 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
10824 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
10825 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
10826 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
10827 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
10828 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
10829 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
10830 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
10831 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
10832 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
10833 point instructions defined for V850e2v3 target.
10834 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
10835 Add support for V850E2 targets and CC_REGNUM register is clobbered.
10836 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
10837 support for new targets.
10838 * config/v850/v850-modes.def: New file.
10839 * config/v850/v850.opt(mstrict-align): Remove.
10840 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
10841 mv850e2v3): New command line options for V850.
10842 * config.gcc: Update the newly added files.
10843 * doc/invoke.texi: Update the newly added command line options for
10846 2010-07-26 Richard Guenther <rguenther@suse.de>
10848 PR tree-optimization/45052
10849 * ipa-pure-const.c (check_stmt): Check volatileness.
10851 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10854 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
10855 * config/sparc/sparc.c: Include reload.h.
10856 (legitimize_tls_address): Rename into...
10857 (sparc_legitimize_tls_address): ...this.
10858 (legitimize_pic_address): Rename into...
10859 (sparc_legitimize_pic_address): ...this.
10860 (sparc_expand_move): Adjust to above renaming.
10861 (sparc_tls_referenced_p): Likewise.
10862 (sparc_legitimize_tls_address): Likewise.
10863 (sparc_legitimize_pic_address): Likewise.
10864 (sparc_legitimize_address): Likewise.
10865 (sparc_output_mi_thunk): Likewise.
10866 (sparc_legitimize_reload_address): New global function. Recognize
10867 (lo_sum (high ...) ...) patterns generated by earlier passes.
10868 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
10870 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10873 * config/sparc/predicates.md (memory_reg_operand): Delete.
10874 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
10875 (*sync_compare_and_swap): Encode the address form in the pattern.
10876 (*sync_compare_and_swapdi_v8plus): Likewise.
10878 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
10880 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
10881 Streamline paragraph on compatibility with the system compiler.
10883 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
10885 PR middle-end/45035
10886 * alias.c (true_dependence_1): Fix thinko in merge of old
10887 true_dependence and canon_true_dependence.
10889 2010-07-23 Jan Hubicka <jh@suse.cz>
10891 * lto-streamer-out.c (write_symbol): Fix visibilities of external
10894 2010-07-23 Le-Chun Wu <lcwu@google.com>
10896 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
10897 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
10898 and an unnecessary assignment.
10899 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
10900 self-assign warning.
10901 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
10902 unnecessary self-init.
10904 2010-07-23 Richard Guenther <rguenther@suse.de>
10907 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
10908 for -flto and -fwhopr.
10910 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
10913 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
10914 (stmp-int-hdrs): Prefix/postfix headers by include_next.
10915 * config.gcc (user_headers_inc_next_pre): New.
10916 (user_headers_inc_next_post): Likewise.
10917 (*-w64-mingw*): Use for float.h post-fixing, and for
10918 stddef.h/stdarg.h pre-fixing by include_next.
10919 * configure.ac (user_headers_inc_next_post): New.
10920 (user_headers_inc_next_pre): New.
10921 * configure: Regenerated.
10923 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10925 * configure.ac: Don't disable TLS on Solaris 8/9 by default
10926 Set tga_func for Solaris 2/x86 resp. SPARC.
10927 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
10928 (LIB_THREAD_LDFLAGS_SPEC): Define.
10929 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
10930 * configure: Regenerate.
10931 * config.in: Regenerate.
10932 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
10933 -pthread, -threads, LIB_TLS_SPEC with -pthread.
10934 * doc/install.texi (Specific, *-*-solaris2*): Document use of
10935 alternate thread libraries on Solaris 8.
10936 Document TLS patch requirements.
10937 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
10941 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
10944 2010-07-23 Jakub Jelinek <jakub@redhat.com>
10946 * tree.h (struct tree_base): Add nameless_flag bitfield.
10947 (TYPE_NAMELESS, DECL_NAMELESS): Define.
10948 * omp-low.c (create_omp_child_function, scan_omp_parallel,
10949 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
10950 DECL_ARTIFICIAL where needed.
10951 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
10952 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
10953 has DECL_NAMELESS set.
10955 2010-07-23 Martin Jambor <mjambor@suse.cz>
10957 PR tree-optimization/44915
10958 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
10959 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
10960 (analyze_function): Likewise.
10962 2010-07-23 Martin Jambor <mjambor@suse.cz>
10964 PR tree-optimization/44914
10965 * tree-sra.c (sra_modify_function_body): Return true if CFG was
10966 changed, add purging dead eh edges.
10967 (ipa_sra_modify_function_body): Return true if CFG was changed,
10968 simplify purging dead eh edges.
10969 (modify_function): Return true if CFG was changed.
10970 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
10972 (ipa_early_sra): Likewise.
10974 2010-07-23 Jie Zhang <jie@codesourcery.com>
10977 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
10979 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10980 false if ! tree_versionable_function_p.
10982 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
10984 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
10985 * ipa-pure-const.c (special_builtlin_state): Remove
10986 BUILT_IN_ARGS_INFO case.
10987 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10988 * builtins.c (expand_builtin): Likewise.
10989 (expand_builtin_args_info): Remove.
10990 * doc/tm.texi (__builtin_args_info): Remove.
10991 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
10992 * doc/tm.text.in: Likewise.
10994 2010-07-23 Richard Guenther <rguenther@suse.de>
10996 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
10997 (lto_symtab_merge_decls_2): Likewise.
10998 * tree-ssa.c (useless_type_conversion_p): Likewise.
10999 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11000 * gimple.c (gtc_visited2, gtc_ob2): Remove.
11001 (struct type_pair_d): Make same_p an array indexed by mode.
11003 (lookup_type_pair): Update initialization.
11004 (struct sccs): Adjust same_p type.
11005 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
11007 (print_gimple_types_stats): Likewise.
11008 * gimple.h (enum gtc_mode): New.
11009 (gimple_types_compatible_p): Adjust prototype.
11011 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
11013 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
11014 again after processing insn.
11016 2010-07-23 Jie Zhang <jie@codesourcery.com>
11018 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
11019 proper words when !tree_versionable_function_p.
11021 2010-07-23 Richard Guenther <rguenther@suse.de>
11023 PR tree-optimization/45037
11024 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
11026 2010-07-23 Jie Zhang <jie@codesourcery.com>
11028 * doc/extend.texi: Remove IP2K from the description of naked attribute.
11031 2010-07-10 Andi Kleen <ak@linux.intel.com>
11034 * lto-opts.c (lto_write_options): Add NULL file_data argument to
11035 lto_get_section_name.
11036 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11037 * lto-streamer-out.c (produce_asm): Likewise.
11038 (copy_function): Likewise.
11039 (produce_symtab): Likewise.
11040 (produce_asm_for_decls): Likewise.
11041 * lto-streamer.c (lto_get_section_name): Add file_data argument.
11042 Rewrite to add random postfix to LTO sections.
11043 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
11044 (lto_get_section_name): Add file_data argument to prototype.
11046 2010-07-10 Andi Kleen <ak@linux.intel.com>
11048 * lto-section-in.c (lto_section_name): Synchronize names
11049 with lto_get_section_name.
11051 2010-07-10 Andi Kleen <ak@linux.intel.com>
11053 * lto-opts.c (lto_read_file_options): Check for missing section.
11055 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
11057 * ira.c (check_allocation): Correctly handle the case where an allocno
11058 with two objects was allocated to a single reg.
11060 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
11062 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
11063 (is_widening_mult_p): Likewise.
11064 (convert_to_widen): Use them.
11065 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
11066 well as integer ones.
11068 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
11070 * alias.c (true_dependence_1): New function, merged version of
11071 true_dependence and canon_true_dependence.
11072 (true_dependence): Simplify.
11073 (canon_true_dependence): Simplify.
11075 2010-07-22 Richard Henderson <rth@redhat.com>
11078 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
11079 of V4SFmode for the SSE saves; increase stack alignment if needed.
11080 (ix86_gimplify_va_arg): Don't increase stack alignment here.
11082 2010-07-22 Jakub Jelinek <jakub@redhat.com>
11085 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
11086 call cprop_find_used_regs again via note_uses.
11088 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
11090 * alias.c (get_alias_set): Fix formatting issues.
11092 2010-07-22 Steve Ellcey <sje@cup.hp.com>
11094 PR middle-end/44878
11095 * stmt.c (expand_value_return): Call promote_function_mode with
11096 a for_return argument of 2 when returning by reference.
11098 2010-07-22 Dodji Seketeli <dodji@redhat.com>
11101 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
11102 unit DIE if we can find the scope DIE.
11104 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
11106 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
11107 changed. Initialize OBJECT_SUBWORD.
11108 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
11109 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
11110 all callers changed.
11111 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
11112 (finish_allocno): Likewise.
11113 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
11114 (remove_low_level_allocnos): Likewise.
11115 (update_bad_spill_attribute): Likewise.
11116 (setup_min_max_allocno_live_range_point): Likewise.
11117 (sort_conflict_id_map): Likewise.
11118 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
11119 (ior_hard_reg_conflicts): New function.
11120 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
11121 (compress_conflict_vecs): Iterate over objects, not allocnos.
11122 (ira_add_live_range_to_object): New function.
11123 (object_range_compare_func): Renamed from allocno_range_compare_func.
11124 All callers changed.
11125 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
11126 subobjects, widen the min/max range of the lowest-order object to
11127 potentially include all other such low-order objects.
11128 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
11129 (check_allocation): Likewise. Use more fine-grained tests for register
11131 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
11132 allocno subobjects.
11133 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
11134 choices about which bits to set in each set. Don't use
11135 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
11136 using the multiple sets we computed.
11137 (push_allocno_to_stack): Iterate over allocno subobjects.
11138 (all_conflicting_hard_regs_coalesced): New static function.
11139 (setup_allocno_available_regs_num): Use it.
11140 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
11142 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
11143 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11144 by ALLOCNO_NUM_OBJECTS.
11145 (calculate_spill_cost): Likewise.
11146 (color_pass): Express if statement in a more normal way.
11147 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
11148 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
11149 (setup_slot_coalesced_allocno_live_ranges): Likewise.
11150 (allocno_reload_assign): Likewise.
11151 (ira_reassign_pseudos): Likewise.
11152 (fast_allocation): Likewise.
11153 * ira-conflicts.c (build_conflict_bit_table): Likewise.
11154 (print_allocno_conflicts): Likewise.
11155 (ira_build_conflicts): Likewise.
11156 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
11157 callers changed. Test subword 0 of each allocno for conflicts.
11158 (build_object_conflicts): Renamed from build_allocno_conflicts. All
11159 callers changed. Iterate over allocno subobjects.
11160 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
11161 * ira-int.h (struct ira_allocno): New member: num_objects.
11162 Rename object to objects and change it into an array.
11163 (ALLOCNO_OBJECT): Add new argument N.
11164 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
11165 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
11166 (ior_hard_reg_conflicts): Declare.
11167 (ira_add_live_range_to_object): Declare.
11168 (ira_allocno_object_iterator): New.
11169 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
11170 (FOR_EACH_ALLOCNO_OBJECT): New macro.
11171 * ira-lives.c (objects_live): Renamed from allocnos_live; all
11173 (allocnos_processed): New sparseset.
11174 (make_object_born): Renamed from make_allocno_born; take an
11175 ira_object_t argument. All callers changed.
11176 (make_object_dead): Renamed from make_allocno_dead; take an
11177 ira_object_t argument. All callers changed.
11178 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
11179 All callers changed.
11180 (mark_pseudo_regno_live): Iterate over allocno subobjects.
11181 (mark_pseudo_regno_dead): Likewise.
11182 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
11184 (mark_ref_live): Detect subword accesses and call
11185 mark_pseudo_regno_subword_live as appropriate.
11186 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
11187 (process_bb_nodes_live): Deal with object-related updates first; set
11188 and test bits in allocnos_processed to avoid computing allocno
11189 statistics more than once.
11190 (create_start_finish_chains): Iterate over objects, not allocnos.
11191 (print_object_live_ranges): New function.
11192 (print_allocno_live_ranges): Use it.
11193 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
11196 2010-07-22 Richard Guenther <rguenther@suse.de>
11199 * gimple.c (gtc_next_dfs_num): New global.
11200 (struct sccs): Make value a union, add integer same_p member.
11201 (gtc_visit): New function.
11202 (gimple_types_compatible_p_1): New function, split out from ...
11203 (gimple_types_compatible_p): ... here. Start a DFS walk here.
11204 (iterative_hash_gimple_type): Adjust for sccs change.
11206 2010-07-22 Martin Jambor <mjambor@suse.cz>
11208 PR tree-optimization/44891
11209 * tree-sra.c: Include gimple-pretty-print.h.
11210 (replace_uses_with_default_def_ssa_name): Renamed to
11211 get_repl_default_def_ssa_name, return the new SSA name instead of
11212 replacing the old one.
11213 (sra_modify_assign): Dump a message when removing a load, if the LHS
11214 is an SSA_NAME, do not do any propagation, just set the RHS to a
11215 default definition SSA NAME, type convert if necessary.
11216 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
11218 2010-07-22 Richard Guenther <rguenther@suse.de>
11220 PR tree-optimization/45017
11221 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
11222 TYPE_PRECISION of integral types in addition to size.
11224 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11226 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
11227 when no C library is specified.
11229 2010-07-22 Martin Jambor <mjambor@suse.cz>
11231 * ipa-prop.h (struct ipa_node_params): Updated comment.
11232 (struct ipa_edge_args): Likewise.
11233 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
11235 2010-07-22 Martin Jambor <mjambor@suse.cz>
11237 * cgraphunit.c (verify_edge_count_and_frequency): New function.
11238 (verify_cgraph_node): Verify frequencies of indirect edges.
11239 * tree-inline.c (tree_function_versioning): Update frequencies of
11242 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11245 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
11246 Set *arm_rev to be predicable.
11248 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
11250 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
11251 (LINK_COMMAND_SPEC_A): New.
11253 (DSYMUTIL_SPEC): New.
11254 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
11255 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
11257 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
11259 * calls.c (load_register_parameters): Move check for zero
11260 sized items so that only the call to
11261 mem_overlaps_already_clobbered_arg_p () is protected.
11263 2010-07-22 Jan Hubicka <jh@suse.cz>
11265 * ipa-pure-const.c (varying_state): Break out from ...
11266 (get_function_state): ... here; always return varying_state
11267 when state would be NULL otherwise.
11268 (remove_node_data): Do not free varying state.
11270 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
11273 PR middle-end/45009
11274 * postreload.c: Include "target.h".
11275 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
11277 (fixup_debug_insns): Don't copy the rtx.
11278 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
11279 Don't copy when replacing. Call fixup_debug_insns in the case where
11280 we merged one add with another.
11281 (reload_combine_recognize_pattern): Fail if there aren't any uses.
11282 Try harder to determine whether we're picking a valid index register.
11283 Don't set store_ruid for an insn we're going to scan in the
11285 (reload_combine): Remove unused code.
11286 (reload_combine_note_use): When updating use information for
11287 an old insn, ignore a use that occurs after store_ruid.
11288 * Makefile.in (postreload.o): Update dependencies.
11290 * function.c (record_hard_reg_sets): Restrict the previous change
11291 to cases where the incoming nominal mode is the same as the
11292 incoming promoted mode and everything happens in MODE_INT.
11294 2010-07-21 Jakub Jelinek <jakub@redhat.com>
11297 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
11298 ASM_OPERANDS_OUTPUT_IDX.
11299 (adjust_insn): For inline asm with multiple sets ensure first
11300 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
11303 2010-07-21 Richard Henderson <rth@redhat.com>
11305 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
11306 comparison for avoiding xmm register saves. Emit the xmm register
11308 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
11309 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
11310 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
11311 Remove patterns and the associated splitters.
11313 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
11315 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
11316 and imagine parts of a complex, so that they can have the same
11317 base and fall into the same group.
11319 2010-07-21 Richard Guenther <rguenther@suse.de>
11322 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
11323 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
11324 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
11326 2010-07-21 Martin Jambor <mjambor@suse.cz>
11328 PR tree-optimization/44900
11329 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
11330 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
11332 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
11334 PR middle-end/44738
11335 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
11337 2010-07-21 Richard Guenther <rguenther@suse.de>
11339 PR middle-end/45013
11340 * tree-ssa.c (useless_type_conversion_p): Dispatch to
11341 gimple_types_compatible_p only when in lto.
11342 * gimple.c (gimple_types_compatible_p): Use canonical types
11343 to speed up comparison.
11345 2010-07-21 Richard Guenther <rguenther@suse.de>
11347 * tree-flow.h (referenced_var): Move define ...
11348 * tree-flow-inline.h (referenced_var): ... here as an inline
11349 function. Assert here ...
11350 * tree-dfa.c (referenced_var_lookup): ... instead of here.
11351 * tree-ssa.c (maybe_optimize_var): Check if the variable
11352 is in referenced vars.
11353 (execute_update_addresses_taken): Remove old broken check.
11354 * gimple-pretty-print.c (pp_points_to_solution): Use
11355 referenced_var_lookup.
11356 * tree-into-ssa.c (dump_decl_set): Likewise.
11358 2010-07-21 Jakub Jelinek <jakub@redhat.com>
11361 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
11362 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
11365 2010-07-20 Richard Henderson <rth@redhat.com>
11367 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
11369 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
11371 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
11372 computing the sum of the stack pointer and a large constant.
11373 * config/arm/constraints.md (M): Remove superfluous parentheses.
11374 (Pc): New constraint.
11376 2010-07-20 Jakub Jelinek <jakub@redhat.com>
11379 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
11380 operand's type if exp is tcc_unary class tree.
11382 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
11384 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
11385 Reverse sense of if_then_else condition.
11387 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
11389 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
11390 * config/rs6000/rs6000.c (rs6000_override_options): Set
11391 rs6000_block_move_inline_limit appropriately.
11392 (expand_block_move): Use rs6000_block_move_inline_limit.
11393 * doc/invoke.texi (mblock-move-inline-limit): Document.
11395 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
11397 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
11398 FROM and TO. All callers changed. Don't look for tracked uses,
11399 just scan the RTL for DEBUG_INSNs and substitute.
11400 (reload_combine_recognize_pattern): Call fixup_debug_insns.
11401 (reload_combine): Ignore DEBUG_INSNs.
11403 2010-07-20 Jakub Jelinek <jakub@redhat.com>
11405 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
11409 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
11410 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
11411 instead of the result's type.
11413 2010-07-20 Richard Guenther <rguenther@suse.de>
11415 PR tree-optimization/44977
11416 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
11419 2010-07-20 Richard Guenther <rguenther@suse.de>
11421 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
11422 (lto_symtab_merge_decls_2): Likewise.
11423 * gimple.h (gimple_types_compatible_p): Declare.
11424 * gimple.c (gimple_queue_type_fixup): Remove.
11425 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
11426 (gimple_compatible_complete_and_incomplete_type_p): New function.
11427 (gimple_types_compatible_p): Adjust.
11428 (gimple_register_type): Remove type fixup code.
11429 (print_gimple_types_stats): Adjust.
11430 (free_gimple_type_tables): Likewise.
11431 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
11432 * tree-ssa.c (useless_type_conversion_p): Likewise.
11434 2010-07-20 Richard Guenther <rguenther@suse.de>
11436 PR middle-end/44971
11437 PR middle-end/44988
11438 * tree-ssa.c (maybe_optimize_var): New function split out from ...
11439 (execute_update_addresses_taken): ... here.
11440 (non_rewritable_mem_ref_base): Likewise.
11441 (execute_update_addresses_taken): Do not iterate over all referenced
11442 vars but just all local decls and parms.
11443 Properly check call and asm arguments and rewrite call arguments.
11445 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
11447 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
11449 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
11451 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
11453 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
11455 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11457 * gengtype.c (start_root_entry): New function, split out from
11458 write_root. Check whether V is null and raise an error if so.
11459 (write_field_root): Check for V being null. Don't raise an error here;
11460 set V to null instead.
11461 (write_root): Update comment above function. Use start_root_entry.
11463 2010-07-19 Xinliang David Li <davidxl@google.com>
11466 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
11468 (find_uninit_use): Add dump.
11469 (is_use_properly_guarded): Ditto.
11470 (warn_uninitialized_phi): Ditto.
11471 (execute_late_warn_uninitialized): Ditto.
11473 2010-07-19 Richard Guenther <rguenther@suse.de>
11475 PR middle-end/44941
11476 * expr.c (emit_block_move_hints): Move zero size check first.
11477 Move asserts to more useful places.
11478 * calls.c (load_register_parameters): Check for zero size.
11480 2010-07-19 Richard Henderson <rth@redhat.com>
11482 * tree-optimize.c (execute_all_early_local_passes): New. Change
11483 cgraph_state here ...
11484 (execute_early_local_optimizations): ... not here. Remove.
11485 (pass_early_local_passes, pass_all_early_optimizations): Update.
11487 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
11489 * postreload.c (reload_combine_closest_single_use): Ignore the
11490 number of uses for DEBUG_INSNs.
11491 (fixup_debug_insns): New static function.
11492 (reload_combine_recognize_const_pattern): Use it. Don't let the
11493 main loop be affected by DEBUG_INSNs.
11494 Really disallow moving adds past a jump insn.
11495 (reload_combine_recognize_pattern): Don't update use_ruid here.
11496 (reload_combine_note_use): Do it here.
11497 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
11499 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
11501 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
11503 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
11505 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
11507 * config/i386/darwin.h: Define darwin_emit_branch_islands.
11508 (TARGET_MACHO_BRANCH_ISLANDS): New.
11509 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11510 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
11512 * config/i386/i386.c (output_pic_addr_const): Do not emit
11513 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
11514 (x86_output_mi_thunk): Adjust symbol creation.
11515 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
11516 Remove out of date comment.
11517 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
11518 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11519 (DARWIN_GENERATE_ISLANDS): Ditto.
11520 (output_call): Do not emit branch islands unless
11521 darwin_emit_branch_islands is set.
11522 * config/darwin.c: Declare darwin_emit_branch_islands.
11523 (machopic_indirect_data_reference): Do not emit unless
11524 darwin_emit_branch_islands is set.
11525 (darwin_override_options): Set darwin_emit_branch_islands
11526 where it is needed.
11527 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11529 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11531 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11532 sse_runtime, sse2_runtime.
11534 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
11536 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
11537 low half of a single-register SCmode return value before ORing
11538 it with the high half.
11539 * config/mips/mips16.S (MERGE_GPRf): Likewise.
11541 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11544 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
11547 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
11550 * postreload.c (reload_cse_move2add): Return bool, true if anything.
11551 changed. All callers changed.
11552 (move2add_use_add2_insn): Likewise.
11553 (move2add_use_add3_insn): Likewise.
11554 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
11556 (RELOAD_COMBINE_MAX_USES): Bump to 16.
11557 (last_jump_ruid): New static variable.
11558 (struct reg_use): New members CONTAINING_MEM and RUID.
11559 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
11560 (reload_combine_split_one_ruid, reload_combine_split_ruids,
11561 reload_combine_purge_insn_uses, reload_combine_closest_single_use
11562 reload_combine_purge_reg_uses_after_ruid,
11563 reload_combine_recognize_const_pattern): New static functions.
11564 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
11565 is true for our reg and that we have available index regs.
11566 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
11567 callers changed. Use them to initialize fields in struct reg_use.
11568 (reload_combine): Initialize last_jump_ruid. Be careful when to
11569 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
11570 Call reload_combine_recognize_const_pattern.
11571 (reload_combine_note_store): Update REAL_STORE_RUID field.
11573 2010-07-16 Jason Merrill <jason@redhat.com>
11575 * Makefile.in (opts-common.o): Depend on options.h.
11577 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11579 * tree.c (build_common_builtin_nodes): Use build_function_type_list
11580 instead of build_function_type.
11581 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
11582 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11584 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11586 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
11588 (rs6000_emit_int_cmove): Use function pointers for insn generation.
11589 Don't force values into registers unnecessarily.
11590 (output_isel): Assert that we're not given conditions we can't handle.
11591 Delete corresponding code.
11592 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
11593 scc_comparison_operator constraint. Permit 0 for the consequent
11594 operand. Permit any GPR for the alternative operand.
11595 (isel_unsigned_<mode>): Likewise.
11597 2010-07-16 Jakub Jelinek <jakub@redhat.com>
11600 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
11601 argument to const_tree.
11602 * config/i386/i386.c (function_arg_advance): If padding needs to be
11603 inserted before argument, increment cum->words by number of padding
11605 (contains_aligned_value_p): Change argument to const_tree.
11606 (ix86_function_arg_boundary): Change second argument to const_tree.
11608 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
11611 * function.c (record_hard_reg_sets): New static function.
11612 (assign_parm_setup_reg): If an optab for extending exists and the
11613 generated code clobbbers no hard regs, emit the insn directly and
11614 create a REG_EQUIV note.
11616 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11618 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
11620 * c-typeck.c (push_init_level): Likewise.
11621 (process_init_element): Likewise.
11623 2010-07-15 Anatoly Sokolov <aesok@post.ru>
11625 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
11626 (integer_three_node): Add.
11627 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
11628 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
11629 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
11630 of call build_int_cst.
11631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
11632 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
11633 (find_interesting_uses_address): Ditto.
11634 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
11635 * tree-eh.c (lower_eh_constructs_2): Ditto.
11636 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
11637 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
11638 * expmed.c (expand_divmod): Ditto.
11639 * tree-mudflap.c (mx_register_decls): Ditto.
11640 * varasm.c (array_size_for_constructor): Ditto.
11641 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
11642 * c-parser.c (c_parser_postfix_expression): Ditto.
11644 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
11646 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
11647 New static variables.
11648 (reload_combine_recognize_pattern): New static function, broken out
11650 (reload_combine): Use it. Only initialize first_index_reg and
11651 last_index_reg once.
11653 2010-07-15 Richard Henderson <rth@redhat.com>
11655 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
11658 2010-07-15 Jan Hubicka <jh@suse.cz>
11660 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
11661 comdats for broken gold.
11662 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
11664 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11666 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
11668 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11670 * tree.h (DECL_CHAIN): Define.
11671 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
11672 * c-decl.c: Likewise.
11673 * c-parser.c: Likewise.
11674 * c-typeck.c: Likewise.
11675 * cfgexpand.c: Likewise.
11676 * cgraph.c: Likewise.
11677 * cgraphunit.c: Likewise.
11678 * combine.c: Likewise.
11679 * config/alpha/alpha.c: Likewise.
11680 * config/arm/arm.c: Likewise.
11681 * config/frv/frv.c: Likewise.
11682 * config/i386/i386.c: Likewise.
11683 * config/i386/winnt-cxx.c: Likewise.
11684 * config/ia64/ia64.c: Likewise.
11685 * config/iq2000/iq2000.c: Likewise.
11686 * config/mep/mep.c: Likewise.
11687 * config/mips/mips.c: Likewise.
11688 * config/pa/som.h: Likewise.
11689 * config/rs6000/rs6000.c: Likewise.
11690 * config/s390/s390.c: Likewise.
11691 * config/sh/sh.c: Likewise.
11692 * config/sh/symbian-cxx.c: Likewise.
11693 * config/sparc/sparc.c: Likewise.
11694 * config/spu/spu.c: Likewise.
11695 * config/stormy16/stormy16.c: Likewise.
11696 * config/vxworks.c: Likewise.
11697 * config/xtensa/xtensa.c: Likewise.
11698 * coverage.c: Likewise.
11699 * dbxout.c: Likewise.
11700 * dwarf2out.c: Likewise.
11701 * emit-rtl.c: Likewise.
11702 * expr.c: Likewise.
11703 * function.c: Likewise.
11704 * gimple-low.c: Likewise.
11705 * gimple-pretty-print.c: Likewise.
11706 * gimplify.c: Likewise.
11707 * integrate.c: Likewise.
11708 * ipa-inline.c: Likewise.
11709 * ipa-prop.c: Likewise.
11710 * ipa-split.c: Likewise.
11711 * ipa-struct-reorg.c: Likewise.
11712 * ipa-type-escape.c: Likewise.
11713 * langhooks.c: Likewise.
11714 * lto-cgraph.c: Likewise.
11715 * omp-low.c: Likewise.
11716 * stor-layout.c: Likewise.
11717 * tree-cfg.c: Likewise.
11718 * tree-complex.c: Likewise.
11719 * tree-dfa.c: Likewise.
11720 * tree-dump.c: Likewise.
11721 * tree-inline.c: Likewise.
11722 * tree-mudflap.c: Likewise.
11723 * tree-nested.c: Likewise.
11724 * tree-object-size.c: Likewise.
11725 * tree-pretty-print.c: Likewise.
11726 * tree-sra.c: Likewise.
11727 * tree-ssa-live.c: Likewise.
11728 * tree-ssa-loop-niter.c: Likewise.
11729 * tree-ssa-math-opts.c: Likewise.
11730 * tree-ssa-reassoc.c: Likewise.
11731 * tree-ssa-sccvn.c: Likewise.
11732 * tree-ssa-structalias.c: Likewise.
11733 * tree-tailcall.c: Likewise.
11734 * tree-vrp.c: Likewise.
11735 * tree.c: Likewise.
11736 * var-tracking.c: Likewise.
11737 * varasm.c: Likewise.
11739 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11742 * config/spu/spu.c (spu_expand_builtin_1): Allow references
11743 (as well as pointers) as argument to mask_for_load builtins.
11745 2010-07-15 Richard Guenther <rguenther@suse.de>
11747 PR tree-optimization/44946
11748 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
11749 with accessing only padding properly.
11751 2010-07-15 Jan Hubicka <jh@suse.cz>
11753 * ipa.c (function_and_variable_visibility): Variables marked as used
11754 should not be localized.
11756 2010-07-15 Jan Hubicka <jh@suse.cz>
11758 * cgraph.c: Include lto-streamer.h
11759 (change_decl_assembler_name): Work when assembler name hash is at place.
11760 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
11761 be sure to rename it to avoid name clash.
11762 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
11763 Localize hidden symbols only when locally defined.
11765 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
11767 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
11769 2010-07-15 Magnus Granberg <zorry@gentoo.org>
11770 Kevin F. Quinn <kevquinn@gentoo.org>
11772 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
11773 * common.opt: Add -Wtrampolines.
11774 * doc/invoke.texi: Add -Wtrampolines.
11776 2010-07-15 Jie Zhang <jie@codesourcery.com>
11778 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
11779 cortex_a8_issue_ls.
11781 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
11783 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
11784 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
11786 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11788 * config/spu/spu.c (reg_names): Remove prototype.
11789 (call_used_regs): Likewise.
11791 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
11793 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
11794 "unused" with attribute "used".
11795 (__JCR_END__): Likewise.
11796 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
11798 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
11800 2010-07-14 Richard Guenther <rguenther@suse.de>
11802 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
11803 (maybe_fixup_decls): Likewise.
11804 (input_gimple_stmt): Do not fixup anything.
11805 * lto-streamer-out.c (output_gimple_stmt): Make sure all
11806 non-automatic variable uses are wrapped inside a MEM_REF.
11808 2010-07-14 Richard Henderson <rth@redhat.com>
11810 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
11812 * varasm.c (assemble_variable): Remove early exit for functions;
11813 assert that we're given a variable.
11815 2010-07-14 Jie Zhang <jie@codesourcery.com>
11817 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
11818 cortex_a8_default when neon_type is not none.
11820 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11822 * lower-subreg.c (subreg_context): New static bitmap.
11823 (decompose_multiword_subregs): Allocate and free it.
11824 (find_decomposable_subregs): Set a bit in it for a register that
11825 occurs in a subreg that changes mode but not size.
11826 (can_decompose_p): Test it instead of non_decomposable_context.
11828 2010-07-14 Richard Guenther <rguenther@suse.de>
11830 PR tree-optimization/44824
11831 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
11832 is_gimple_mem_ref_addr.
11833 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
11834 non-decl_address_invariant_p addresses.
11836 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11838 * reload.c (find_reloads): Revert code to penalize small register
11839 classes that was brought in with the IRA merge.
11841 2010-07-14 Richard Guenther <rguenther@suse.de>
11843 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
11844 as base of ARRAY_REFs.
11846 2010-07-14 Richard Guenther <rguenther@suse.de>
11848 PR middle-end/44930
11849 * tree-pretty-print.c (do_niy): Do not print a newline.
11851 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11853 * ira-int.h (struct ira_object): New.
11854 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
11855 (struct ira_allocno): Remove members min, max,
11856 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
11857 conflict_allocnos_num and conflict_vec_p. Add new member object.
11858 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
11859 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
11860 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
11861 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
11862 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
11863 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
11864 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
11865 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
11866 an ira_object_t rather than ira_allocno_t. All uses changed.
11867 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11868 contains a vector of ira_object_t; all uses changed.
11869 (ira_objects_num): Declare variable.
11870 (ira_create_allocno_object): Declare function.
11871 (ira_conflict_vector_profitable_p): Adjust prototype.
11872 (ira_allocate_conflict_vec): Renamed from
11873 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
11874 (ira_allocate_object_conflicts): Renamed from
11875 ira_allocate_allocno_conflicts; first arg now ira_object_t.
11876 (struct ira_object_iterator): New.
11877 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
11878 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
11879 to conflict_vec_p. All uses changed.
11880 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
11881 Changed to take into account that conflicts are now tracked for
11883 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
11884 Args changed to accept ira_object_t. All uses changed.
11885 (allocnos_conflict_p): New static function.
11886 (collected_conflict_objects): Renamed from collected_allocno_objects;
11887 now a vector of ira_object_t. All uses changed.
11888 (build_conflict_bit_table): Changed to take into account that
11889 conflicts are now tracked for objects.
11890 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
11891 (print_allocno_conflicts, ira_build_conflicts): Likewise.
11892 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
11893 setup_allocno_left_conflicts_size, allocno_reload_assign,
11894 fast_allocation): Likewise.
11895 * ira-lives.c (make_hard_regno_born, make_allocno_born)
11896 process_single_reg_class_operands, process_bb_node_lives): Likewise.
11897 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
11899 * ira-build.c (ira_objects_num): New variable.
11900 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11901 contains a vector of ira_object_t; all uses changed.
11902 (ira_object_id_map_vec): Corresponding change.
11903 (object_pool): New static variable.
11904 (initiate_allocnos): Initialize it.
11905 (finish_allocnos): Free it.
11906 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
11908 (ira_create_allocno): Don't set members that were removed.
11909 (ira_set_allocno_cover_class): Don't change conflict hard regs.
11910 (merge_hard_reg_conflicts): Changed to take into account that
11911 conflicts are now tracked for objects.
11912 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
11913 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
11914 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
11915 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
11916 setup_min_max_conflict_allocno_ids, ): Likewise.
11917 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
11918 to ira_object_t; all callers changed.
11919 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
11920 to ira_object_t, all callers changed.
11921 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
11922 to ira_object_t, all callers changed.
11923 (conflict_check, curr_conflict_check_tick): Renamed from
11924 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
11926 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
11927 arg changed to ira_object_t, all callers changed.
11928 (create_cap_allocno): Call ira_create_allocno_object.
11929 (finish_allocno): Free the corresponding object.
11930 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
11931 callers changed. Adjusted for dealing with objects.
11932 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
11933 dealing with objects.
11934 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
11936 * ira-int.h (struct live_range): Rename allocno member to object
11937 and change type to ira_object_t.
11938 (struct ira_object): New member live_ranges.
11939 (struct ira_allocno): Remove member live_ranges.
11940 (ALLOCNO_LIVE_RANGES): Remove.
11941 (OBJECT_LIVE_RANGES): New macro.
11942 (ira_create_live_range, ira_copy_live_range_list,
11943 ira_merge_live_range_list, ira_live_ranges_intersect_p,
11944 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
11945 * ira-build.c (ira_create_object): Initialize live ranges here.
11946 (ira_create_allocno): Not here.
11947 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
11948 changed to ira_object_t, all callers changed.
11949 (copy_live_range): Rename from copy_allocno_live_range, all callers
11951 (ira_copy_live_range_list): Rename from
11952 ira_copy_allocno_live_range_list, all callers changed.
11953 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
11954 all callers changed.
11955 (ira_live_ranges_intersect_p): Rename from
11956 ira_allocno_live_ranges_intersect_p, all callers changed.
11957 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
11959 (ira_finish_live_range_list): Rename from
11960 ira_finish_allocno_live_range_list, all callers changed.
11961 (change_object_in_range_list): Rename from change_allocno_in_range_list,
11962 last arg changed to ira_object_t, all callers changed.
11963 (finish_allocno): Changed to expect live ranges in the allocno's object.
11964 (move_allocno_live_ranges, copy_allocno_live_ranges,
11965 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
11966 ira_flattening, ira_build): Likewise.
11967 * ira-color.c (allocnos_have_intersected_live_ranges_p,
11968 slot_coalesced_allocno_live_ranges_intersect,
11969 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
11970 * ira-conflicts.c (build_conflict_bit_table): Likewise.
11971 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11972 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
11973 make_allocno_dead, create_start_finish_chains,
11974 remove_some_program_points_and_update_live_ranges,
11975 ira_debug_live_range_list): Likewise.
11977 * ira-int.h (ira_object_conflict_iterator): Rename from
11978 ira_allocno_conflict_iterator.
11979 (ira_object_conflict_iter_init): Rename from
11980 ira_allocno_conflict_iter_init, second arg changed to
11981 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
11982 FOR_EACH_ALLOCNO_CONFLICT.
11983 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
11984 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
11985 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
11986 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11988 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
11991 * tree-dump.c (dump_options): Add enumerate_locals entry.
11992 Add TDF_NOID exclusion to all entry.
11993 * tree-dump.h (dump_enumerated_decls): Declare.
11994 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
11995 Don't display type uid.
11996 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
11997 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
11998 * tree-ssa-live.c: Include gimple.h.
11999 (numbered_tree_d): New struct.
12000 (numbered_tree): New typedef.
12001 (DEF_VEC_O (numbered_tree): New.
12002 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
12003 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
12004 (dump_enumerated_decls): Likewise.
12005 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
12006 debug info and flag_dump_final_insns, call dump_enumerated_decls.
12007 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
12008 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
12010 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
12012 * expmed.h (MAX_BITS_PER_WORD): Move to...
12013 * defaults.h (MAX_BITS_PER_WORD): ...here.
12015 2010-07-13 DJ Delorie <dj@redhat.com>
12017 * config/h8300/h8300.c (h8300_init_once): Default to
12018 -fstrict_volatile_bitfields.
12020 * config/sh/sh.c (sh_override_options): Default to
12021 -fstrict_volatile_bitfields.
12023 * config/rx/rx.c (rx_option_override): New.
12025 * config/m32c/m32c.c (m32c_override_options): Default to
12026 -fstrict_volatile_bitfields.
12028 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
12030 * tree.h (build_function_call_expr): Delete.
12031 (build_call_expr_loc_array): New function.
12032 (build_call_expr_loc_vec): New function.
12033 * tree-flow.h (struct omp_region): Change type of ws_args field
12035 * builtins.c (build_function_call_expr): Delete.
12036 (build_call_expr_loc_array): New function.
12037 (build_call_expr_loc): Call it. Use XALLOCAVEC.
12038 (build_call_expr): Likewise.
12039 (build_call_expr_loc_vec): New function.
12040 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
12041 build_function_call_expr.
12042 * expr.c (emutls_var_address): Likewise.
12043 * varasm.c (emutls_common_1): Likewise.
12044 * omp-low.c (expand_omp_atomic_mutex): Likewise.
12045 (expand_omp_taskreg): Adjust for new type of region->ws_args.
12046 (get_ws_args_for): Return a VEC instead of a tree.
12047 (expand_parallel_call): Call build_call_expr_loc_vec instead of
12048 build_function_call_expr.
12049 * stor-layout.c (self_referential_size): Likewise.
12051 2010-07-13 Jakub Jelinek <jakub@redhat.com>
12054 * recog.c (constrain_operands): Allow side-effects in memory
12055 operands if either < or > constraint is used, rather than if
12056 both < and > is used.
12058 2010-07-13 Richard Guenther <rguenther@suse.de>
12060 PR middle-end/44911
12061 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
12062 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
12065 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
12068 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
12069 to variable emited.
12070 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
12071 * config/sh/sh.md (symGOT_load): Likewise.
12072 (symDTPOFF2reg): Likewise.
12073 (symTPOFF2reg): Likewise.
12075 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12077 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
12078 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
12080 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12082 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
12084 Find ucontext_t * on Solaris 11.
12085 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
12086 Handle new Solaris 11 __sighndlr patterns.
12088 2010-07-13 Jakub Jelinek <jakub@redhat.com>
12091 * vec.h (VEC_block_remove): Fix comment.
12092 * tree-ssa-live.c (remove_unused_locals): Don't use
12093 VEC_unordered_remove on local_decls, instead replace a single
12094 vector element in each iteration if at least one element had
12095 to be removed and VEC_truncate at the end.
12096 * omp-low.c (expand_omp_taskreg): Likewise.
12098 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12100 * c-decl.c (finish_function): Fix typo in comment.
12102 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
12105 * postreload.c (move2add_use_add3_insn): Silence gcc warning
12108 2010-07-12 Jakub Jelinek <jakub@redhat.com>
12110 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
12111 (simplify_stmt_using_ranges): Use it.
12113 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12115 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
12116 member. Do not mark as GTY(()).
12117 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
12118 (spu_builtin_decls): New static variable.
12119 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
12120 (spu_init_builtins): Likewise.
12121 (spu_builtin_mul_widen_even): Likewise.
12122 (spu_builtin_mul_widen_odd): Likewise.
12123 (spu_builtin_mask_for_load): Likewise.
12124 (spu_builtin_vec_perm): Likewise.
12125 * config/spu/spu-c.c: Include "target.h".
12126 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
12127 of using spu_builtins[].fndecl.
12129 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12131 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
12132 imply -minterlink-mips16.
12134 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12136 * config/mips/mips.h (mips16_globals): Declare.
12137 (SWITCHABLE_TARGET): Define.
12138 * config/mips/mips.c: Include target-globals.h.
12139 (mips16_globals): New variable.
12140 (mips_set_mips16_mode): Use save_target_globals and
12141 restore_target_globals instead of target_reinit.
12143 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12145 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
12146 to say that the function can be called more than once.
12147 * target-globals.c (save_target_globals): Call init_reg_sets.
12149 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12151 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
12152 * bb-reorder.h: New file.
12153 * bb-reorder.c (default_target_bb_reorder): New variable.
12154 (this_target_bb_reorder): New conditional variable.
12155 (uncond_jump_length): Redefine as a macro.
12156 * target-globals.h (this_target_bb_reorder): Declare.
12157 (target_globals): Add a bb_reorder field.
12158 (restore_target_globals): Copy the bb_reorder field to
12159 this_target_bb-reorder.
12160 * target-globals.c: Include bb-reorder.h.
12161 (default_target_globals): Initialize the bb_reorder field.
12162 (save_target_globals): Likewise.
12164 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12166 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
12167 * gcse.h: New file.
12168 * gcse.c: Include gcse.h.
12169 (default_target_gcse): New variable.
12170 (this_target_gcse): New conditional variable.
12171 (can_copy): Redefine as a macro.
12172 (can_copy_init_p): New macro.
12173 (can_copy_p): Remove can_copy_init_p.
12174 * target-globals.h (this_target_gcse): Declare.
12175 (target_globals): Add a gcse field.
12176 (restore_target_globals): Copy the gcse field to this_target_gcse.
12177 * target-globals.c: Include gcse.h.
12178 (default_target_globals): Initialize the gcse field.
12179 (save_target_globals): Likewise.
12181 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12183 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
12184 and x_ira_prohibited_mode_move_regs_initialized_p.
12185 (ira_prohibited_mode_move_regs): Redefine as a macro.
12186 * ira.c (ira_prohibited_mode_move_regs): Delete.
12187 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
12189 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12191 * reload.h (target_reload): Add x_cached_reg_save_code and
12192 x_cached_reg_restore_code.
12193 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
12194 Redefine as macros.
12196 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12198 * Makefile.in (target-globals.o): Depend on builtins.h.
12199 * builtins.h: New file.
12200 * builtins.c: Include builtins.h.
12201 (default_target_builtins): New variable.
12202 (this_target_builtins): New conditional variable.
12203 (apply_args_mode, apply_result_mode): Redefine as macros.
12204 * target-globals.h (this_target_builtins): Declare.
12205 (target_globals): Add a builtins field.
12206 (restore_target_globals): Copy the builtins field to
12207 this_target_builtins.
12208 * target-globals.c: Include builtins.h.
12209 (default_target_globals): Initialize the builtins field.
12210 (save_target_globals): Likewise.
12212 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12214 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
12215 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
12217 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
12218 (alg_hash, alg_hash_used_p): New macros.
12219 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
12220 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
12221 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
12223 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12225 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
12226 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
12227 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
12228 (this_op_costs, costs_classes): Redefine as macros.
12229 (record_reg_classes): Don't take op_costs as a parameter.
12230 (record_operand_costs): Likewise. Update calls to record_reg_classes.
12231 (scan_one_insn): Update call to record_operand_costs.
12233 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12235 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
12236 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
12237 (target_ira_int): New structure.
12238 (default_target_ira_int): Declare.
12239 (this_target_ira_int): Declare as a variable or define as a macro.
12240 (ira_reg_mode_hard_regset, ira_register_move_cost)
12241 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
12242 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
12243 (prohibited_class_mode_regs, ira_important_classes_num)
12244 (ira_important_classes, ira_reg_class_intersect)
12245 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
12246 (ira_reg_class_union): Redefine as macros.
12247 * ira.h (target_ira): New structure.
12248 (default_target_ira): Declare.
12249 (this_target_ira): Declare as a variable or define as a macro.
12250 (ira_available_class_regs, ira_hard_regno_cover_class)
12251 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
12252 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
12253 (ira_class_hard_regs_num): Redefine as macros.
12254 * ira.c (default_target_ira, default_target_ira_int): New variables.
12255 (this_target_ira, this_target_ira_int): New conditional variables.
12256 (ira_reg_mode_hard_regset, ira_memory_move_cost)
12257 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
12258 (ira_class_subset_p): Delete.
12259 (no_unit_alloc_regs): Redefine as a macro.
12260 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
12261 (ira_class_hard_regs_num, ira_class_hard_reg_index)
12262 (ira_available_class_regs): Delete.
12263 (alloc_reg_class_subclasses): Redefine as a macro.
12264 (ira_reg_class_cover_size, ira_reg_class_cover)
12265 (ira_important_classes_num, ira_important_classes)
12266 (ira_important_class_nums, ira_class_translate): Delete.
12267 (cover_class_order): Document the variable's lifetime.
12268 (reorder_important_classes): Don't set ira_important_class_nums.
12269 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
12270 (ira_reg_class_super_classes, ira_reg_class_union)
12271 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
12273 (setup_reg_class_nregs): Don't set ira_max_regs.
12274 (prohibited_class_mode_regs): Delete.
12275 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
12276 (target_globals): Add ira and ira_int fields.
12277 (restore_target_globals): Copy the ira field to this_target_ira
12278 and the ira_int field to this_target_ira_int.
12279 * target-globals.c: Include ira-int.h.
12280 (default_target_globals): Initialize the ira and ira_int fields.
12281 (save_target_globals): Likewise.
12283 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12285 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
12286 * cfgloop.h (target_cfgloop): New structure.
12287 (default_target_cfgloop): Declare.
12288 (this_target_cfgloop): Declare as a variable or define as a macro.
12289 (target_avail_regs, target_clobbered_regs, target_res_regs)
12290 (target_reg_cost, target_spill_cost): Redefine as macros.
12291 * cfgloopanal.c (default_target_cfgloop): New variable.
12292 (this_target_cfgloop): New conditional variable.
12293 (target_avail_regs, target_clobbered_regs, target_res_regs)
12294 (target_reg_cost, target_spill_cost): Delete.
12295 * target-globals.h (this_target_cfgloop): Declare.
12296 (target_globals): Add a cfgloop field.
12297 (restore_target_globals): Copy the cfgloop field to
12298 this_target_cfgloop.
12299 * target-globals.c: Include cfgloop.h.
12300 (default_target_globals): Initialize the cfgloop field.
12301 (save_target_globals): Likewise.
12303 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12305 * regs.h (target_regs): Add x_direct_load, x_direct_store and
12306 x_float_extend_from_mem.
12307 (direct_load, direct_store, float_extend_from_mem): New macros.
12308 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
12310 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12312 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
12313 (target-globals.o): Depend on $(LIBFUNCS_H).
12314 * libfuncs.h: Include hashtab.h.
12315 (libfunc_entry): Moved from optabs.c.
12316 (target_libfuncs): New structure.
12317 (default_target_libfuncs): Declare.
12318 (this_target_libfuncs): Declare as a variable or define as a macro.
12319 (libfunc_table): Redefine as a macro.
12320 * optabs.c (default_target_libfuncs): New variable.
12321 (this_target_libfuncs): New conditional variable.
12322 (libfunc_table): Delete.
12323 (libfunc_entry): Moved to optabs.h.
12324 (libfunc_hash): Redefine as a macro.
12325 (hash_libfunc, eq_libfunc): Fix comments.
12326 (init_optabs): Use libfunc_hash to detect cases where the function
12327 has already been called. Clear the hash table instead of
12329 * target-globals.h (this_target_libfuncs): Declare.
12330 (target_globals): Add a libfuncs field.
12331 (restore_target_globals): Copy the libfuncs field to
12332 this_target_libfuncs.
12333 * target-globals.c: Include libfuncs.h.
12334 (default_target_globals): Initialize the libfuncs field.
12335 (save_target_globals): Likewise.
12337 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12339 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
12340 in all dependency lists.
12342 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12344 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
12345 * optabs.h (target_optabs): New structure.
12346 (default_target_optabs): Declare.
12347 (this_target_optabs): Declare as a variable or define as a macro.
12348 (optab_table, convert_optab_table, direct_optab_table): Redefine
12350 * optabs.c (default_target_optabs): New variable.
12351 (this_target_optabs): New conditional variable.
12352 (optab_table, convert_optab_table, direct_optab_table): Delete.
12353 * target-globals.h (this_target_optabs): Declare.
12354 (target_globals): Add a optabs field.
12355 (restore_target_globals): Copy the optabs field to
12356 this_target_optabs.
12357 * target-globals.c: Include expr.h and optabs.h.
12358 (default_target_globals): Initialize the optabs field.
12359 (save_target_globals): Likewise.
12361 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12363 * flags.h (target_flagstate): Add x_flag_excess_precision.
12364 (flag_excess_precision): Redefine as a macro.
12365 * toplev.c (flag_excess_precision): Delete.
12367 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12369 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
12370 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
12371 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
12372 (no_caller_save_reg_set): Redefine as a macro.
12373 * reload.h (target_reload): Add x_caller_save_initialized_p and
12375 (caller_save_initialized_p): Redefine as a macro.
12376 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
12377 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
12378 (regno_save_mode): Redefine as a macro.
12380 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12382 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
12383 * expmed.h: New file.
12384 * expmed.c (default_target_costs): New variable.
12385 (this_target_costs): New conditional variable.
12386 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
12387 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
12388 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
12389 * target-globals.h (this_target_expmed): Declare.
12390 (target_globals): Add a expmed field.
12391 (restore_target_globals): Copy the expmed field to
12392 this_target_expmed.
12393 * target-globals.c: Include expmed.h.
12394 (default_target_globals): Initialize the expmed field.
12395 (save_target_globals): Likewise.
12397 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12399 * Makefile.in (target-globals.o): Depend on reload.h.
12400 * reload.h (target_reload): New structure.
12401 (default_target_reload): Declare.
12402 (this_target_reload): Declare as a variable or define as a macro.
12403 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
12404 * reload1.c (default_target_reload): New variable
12405 (this_target_reload): New conditional variable.
12406 (indirect_symref_ok, double_reg_address_ok): Delete.
12407 (spill_indirect_levels): Redefine as a macro.
12408 * target-globals.h (this_target_reload): Declare.
12409 (target_globals): Add a reload field.
12410 (restore_target_globals): Copy the reload field to
12411 this_target_reload.
12412 * target-globals.c: Include hard-reg-set.h.
12413 (default_target_globals): Initialize the reload field.
12414 (save_target_globals): Likewise.
12416 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12418 * rtl.h (target_rtl): Add x_static_reg_base_value.
12419 * alias.c (static_reg_base_value): Redefine as a macro.
12421 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12423 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
12424 (GTFILES): Remove reginfo.c.
12425 * rtl.h (target_rtl): Add x_top_of_stack.
12426 (top_of_stack): New macro.
12427 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
12428 (top_of_stack): Delete.
12430 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12432 * regs.h (target_regs): Add x_hard_regs_of_mode,
12433 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
12434 x_may_move_out_cost and x_last_mode_for_init_move_cost.
12435 (have_regs_of_mode, contains_reg_of_mode, move_cost)
12436 (may_move_in_cost, may_move_out_cost): Redefine as macros.
12437 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
12438 (may_move_in_cost, may_move_out_cost): Delete.
12439 (last_mode_for_init_move_cost): Redefine as a macro.
12441 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12443 * hard-reg-set.h (target_hard_regs): New structure.
12444 (default_target_hard_regs): Declare.
12445 (this_target_hard_regs): Declare as a variable or define as a macro.
12446 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
12447 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
12448 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
12449 (reg_class_size, reg_class_subclasses, reg_class_subunion)
12450 (reg_class_superunion, reg_names): Redefine as macros.
12451 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
12452 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
12453 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
12454 (reg_class_contents, reg_class_size, reg_class_subclasses)
12455 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
12456 (default_target_hard_regs): New variable
12457 (this_target_hard_regs, initial_call_really_used_regs)
12458 (initial_reg_alloc_order): New conditional variables.
12459 (initial_reg_names): New variable.
12460 (init_reg_sets): Assert that initial_call_really_used_regs,
12461 initial_reg_alloc_order and initial_reg_names
12462 are all the same size as their variable counterparts. Use them to
12463 initialize those counterparts.
12464 * target-globals.h (this_target_hard_regs): Declare.
12465 (target_globals): Add a hard_regs field.
12466 (restore_target_globals): Copy the hard_regs field to
12467 this_target_hard_regs.
12468 * target-globals.c: Include hard-reg-set.h.
12469 (default_target_globals): Initialize the hard_regs field.
12470 (save_target_globals): Likewise.
12472 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12474 * Makefile.in (target-globals.o): Depend on $(RTL_H).
12475 * rtl.h (target_rtl): New structure.
12476 (default_target_rtl): Declare.
12477 (this_target_rtl): Declare as a variable or define as a macro.
12478 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
12479 Redefine as macros.
12480 * emit-rtl.c (default_target_rtl): New variable.
12481 (this_target_rtl): New conditional variable.
12482 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
12483 (return_address_pointer_rtx): Delete.
12484 (initial_regno_reg_rtx): New macro.
12485 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
12486 (init_emit_regs): Likewise.
12487 * target-globals.h (this_target_rtl): Declare.
12488 (target_globals): Add a rtl field.
12489 (restore_target_globals): Copy the rtl field to this_target_rtl.
12490 * target-globals.c: Include rtl.h.
12491 (default_target_globals): Initialize the rtl field.
12492 (save_target_globals): Likewise.
12494 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12496 * Makefile.in (target-globals.o): Depend on $(REGS_H).
12497 * regs.h (target_reg_modes): New structure.
12498 (default_target_reg_modes): Declare.
12499 (this_target_reg_modes): Declare as a variable or define as a macro.
12500 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
12501 * reginfo.c (default_target_reg_modes): New variable.
12502 (this_target_reg_modes): New conditional variable.
12503 (hard_regno_nregs, reg_raw_mode): Delete.
12504 * target-globals.h (this_target_regs): Declare.
12505 (target_globals): Add a regs field.
12506 (restore_target_globals): Copy the regs field to this_target_regs.
12507 * target-globals.c: Include regs.h.
12508 (default_target_globals): Initialize the regs field.
12509 (save_target_globals): Likewise.
12511 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12513 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
12514 * doc/tm.texi: Regenerate.
12515 * Makefile.in (OBJS-common): Add target-globals.o.
12516 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
12517 and target-globals.h.
12518 (target-globals.o): New rule.
12519 (GTFILES): Include $(srcdir)/target-globals.h.
12520 * defaults.h (SWITCHABLE_TARGET): Define.
12521 * gengtype.c (open_base_files): Add target-globals.h to the
12523 * target-globals.h: New file.
12524 * target-globals.c: Likewise.
12526 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
12527 * flags.h (target_flag_state): New structure.
12528 (default_target_flag_state): Declare.
12529 (this_target_flag_state): Declare as a variable or define as a macro.
12530 (align_loops_log): Redefine as a macro.
12531 (align_loops_max_skip, align_jumps_log): Likewise.
12532 (align_jumps_max_skip, align_labels_log): Likewise.
12533 (align_labels_max_skip, align_functions_log): Likewise.
12534 * toplev.c (default_target_flag_state): New variable.
12535 (this_target_flag_state): New conditional variable.
12536 (align_loops_log): Delete.
12537 (align_loops_max_skip, align_jumps_log): Likewise.
12538 (align_jumps_max_skip, align_labels_log): Likewise.
12539 (align_labels_max_skip, align_functions_log): Likewise.
12540 * target-globals.h (this_target_flag_state): Declare.
12541 (target_globals): Add a flag_state field.
12542 (restore_target_globals): Copy the flag_state field to
12543 this_target_flag_state.
12544 * target-globals.c: Include flags.h.
12545 (default_target_globals): Initialize the flag_state field.
12546 (save_target_globals): Likewise.
12548 2010-07-12 Jie Zhang <jie@codesourcery.com>
12550 * postreload.c (reg_symbol_ref[]): New.
12551 (move2add_use_add2_insn): New.
12552 (move2add_use_add3_insn): New.
12553 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
12554 (move2add_note_store): Likewise.
12556 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
12558 PR rtl-optimization/44752
12559 * genautomata.c (main): Don't emit an empty file even if there
12562 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12564 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
12565 ix86_solaris_return_in_memory.
12566 * config/i386-protos.h: Reflect this.
12567 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12568 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12570 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
12572 2010-07-12 Jie Zhang <jie@codesourcery.com>
12574 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
12575 align the stack when it's going to be saved.
12577 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12580 * config/host-solaris.c (mmap_fixed): New function.
12581 (sol_gt_pch_get_address): Use it.
12582 (sol_gt_pch_use_address): Likewise.
12584 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12586 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12587 pentiumpro on Solaris 8 and 9/x86.
12588 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
12589 Document SSE/SSE2 support.
12590 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
12592 2010-07-12 Andi Kleen <ak@linux.intel.com>
12594 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
12595 instead of gcc_assert to print better error message for multiple
12598 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
12600 * config/i386/i386.c (ix86_asm_output_function_label): Change format
12601 string placeholder from 0x%x to %#x.
12602 (ix86_code_end): Use putc to output '\n'.
12603 (ix86_print_operand) <case ';'>: Use putc to output ';'.
12605 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
12607 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
12608 in directive -export.
12610 2010-07-10 Anatoly Sokolov <aesok@post.ru>
12612 * reginfo.h (reg_classes_intersect_p): Change arguments type to
12614 * rtl.h (reg_classes_intersect_p): Adjust prototype.
12616 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12618 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
12619 rs6000_memory_move_cost): Remove
12620 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
12621 TARGET_MEMORY_MOVE_COST): Define.
12622 (rs6000_register_move_cost): Make static. Change arguments type from
12623 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
12624 (rs6000_memory_move_cost): Make static. Change arguments type from
12625 'enum reg_class' to reg_class_t.
12627 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
12629 PR middle-end/42505
12630 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
12631 lookup code into....
12632 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
12634 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
12635 * cfgloopanal.c (target_clobbered_regs): Define.
12636 (init_set_costs): Initialize target_clobbered_regs.
12637 (estimate_reg_pressure_cost): Add call_p argument. When true,
12638 adjust the number of available registers to exclude the
12639 call-clobbered registers.
12640 * cfgloop.h (target_clobbered_regs): Declare.
12641 (estimate_reg_pressure_cost): Adjust declaration.
12642 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
12643 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
12644 (determine_set_costs): Dump target_clobbered_regs.
12645 (loop_body_includes_call): New function.
12646 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
12647 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
12648 call_p flag through.
12649 (best_gain_for_invariant): Likewise.
12650 (find_invariants_to_move): Likewise.
12651 (move_single_loop_invariants): Likewise, using already-computed
12654 2010-07-10 Richard Guenther <rguenther@suse.de>
12655 Joern Rennecke <joern.rennecke@embecosm.com>
12658 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
12659 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
12660 unless they have DECL_IGNORED_P set.
12662 2010-07-10 Richard Guenther <rguenther@suse.de>
12665 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
12667 (gimple_types_compatible_p): Similar to pointed-to
12668 types allow and merge a mix of complete and incomplete aggregate.
12669 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
12670 (iterative_hash_gimple_type): Adjust for that.
12672 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
12674 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
12676 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
12679 * config/darwin.c (output_objc_section_asm_op): Save and restore
12680 section when outputting ObjC section list.
12682 2010-07-09 Jan Hubicka <jh@suse.cz>
12684 * lto-streamer-out.c (produce_symtab): Do not write alias
12685 cgraph/varpool nodes.
12687 2010-07-09 Jan Hubicka <jh@suse.cz>
12689 * tree-inline.c (declare_return_variable): Fix ICE while
12690 inlining DECL_BY_VALUE function not in SSA form
12692 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
12694 PR tree-optimization/44576
12695 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
12696 New. Pull out from is_loop_prefetching_profitable to implement
12697 the trip count to ahead ratio heuristic.
12698 (mem_ref_count_reasonable_p): New. Pull out from
12699 is_loop_prefetching_profitable to implement the instruction to
12700 memory reference ratio heuristic. Also consider not reasonable if
12701 the memory reference count is above a threshold (to avoid
12702 explosive compilation time.
12703 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
12704 is_loop_prefetching_profitable to implement the instruction to
12705 prefetch ratio heuristic.
12706 (is_loop_prefetching_profitable): Removed.
12707 (loop_prefetch_arrays): Distribute the cost analysis across the
12708 function to allow early exit of the prefetch analysis.
12709 is_loop_prefetching_profitable is splitted into three functions,
12710 with each one called as early as possible.
12711 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
12712 number of memory references in a loop is considered too many.
12714 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12716 * reload.c (find_reloads): Don't clear badop if we have a winreg
12717 alternative, but not win, and the class only has fixed regs.
12718 * hard-reg-set.h (class_only_fixed_regs): Declare.
12719 * reginfo.c (class_only_fixed_regs): New array.
12720 (init_reg_sets_1): Initialize it.
12721 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
12722 discourage alternatives using the stack pointer.
12724 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
12726 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
12728 * config/arm/arm.md (cbranchqi4): Fix array size.
12729 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
12730 calculating length.
12732 2010-07-09 Richard Guenther <rguenther@suse.de>
12734 * gimple.c (struct type_fixup_s): New struct and VEC type.
12735 (gimple_register_type_fixups): New static global.
12736 (gimple_queue_type_fixup): New function.
12737 (gimple_types_compatible_p): Queue type fixups instead of
12738 applying them here.
12739 (gimple_register_type): Apply queued fixups for the
12740 canonical type. Empty the type fixup queue.
12742 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12744 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
12745 * configure: Regenerate.
12746 * config.in: Ditto.
12748 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12749 Denys Vlasenko <dvlasenk@redhat.com>
12750 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12752 PR tree-optimization/28632
12753 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
12754 (extract_range_from_binary_expr): Further optimize
12755 BIT_AND_EXPR and BIT_IOR_EXPR.
12757 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
12759 * tree-if-conv.c (fold_or_predicates): New.
12760 (add_to_predicate_list): Call it.
12762 2010-07-09 Richard Guenther <rguenther@suse.de>
12764 PR middle-end/44890
12765 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
12766 if base is a pointer.
12767 * tree-cfg.c (verify_expr): Update MEM_REF checking.
12769 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12772 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
12773 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
12774 builtin mask for load/store builtins.
12776 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12778 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
12780 * configure: Regenerate.
12781 * config/i386/i386.c (ix86_print_operand) <case ';'>:
12782 Remove TARGET_MACHO.
12784 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
12786 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
12788 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
12790 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
12792 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
12794 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12796 * config/picochip/picochip.md (commsTestPort): Emit more
12797 efficient sequence for tstport instruction.
12799 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12801 * config/i386/i386.c (ix86_veclib_handler): Make static.
12803 2010-07-09 Richard Guenther <rguenther@suse.de>
12805 PR tree-optimization/44852
12806 * tree-ssa-alias.c: Include toplev.h for exact_log2.
12807 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
12809 (indirect_refs_may_alias_p): Likewise.
12810 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
12812 2010-07-09 Richard Guenther <rguenther@suse.de>
12814 PR tree-optimization/44882
12815 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
12817 (vectorizable_load): Likewise.
12819 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12822 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
12823 All callers changed.
12824 Handle the case when we're called for the epilogue.
12825 (thumb_unexpanded_epilogue): Use it.
12826 (thumb1_expand_epilogue): Likewise.
12828 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12830 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
12831 both ranges are range_int_cst_p with non-negative minimum,
12832 try harder to derive smaller range.
12834 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12836 * genrecog.c: Include diagnostic-core.h before toplev.h.
12837 * genoutput.c: Likewise.
12838 * genextract.c: Likewise.
12839 * genautomata.c: Likewise.
12840 * genemit.c: Likewise.
12841 * genpeep.c: Likewise.
12842 * genattrtab.c: Likewise.
12843 * genconditions.c: Likewise.
12844 * genpreds.c: Likewise.
12846 2010-07-08 Andi Kleen <ak@linux.intel.com>
12848 * lto-section-in.c (lto_section_name): Add missing comma.
12850 2010-07-08 Anatoly Sokolov <aesok@post.ru>
12852 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
12853 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
12854 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
12855 (ia64_override_options): Rename to...
12856 (ia64_option_override): ... this one. Make static.
12858 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12860 PR middle-end/44843
12861 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
12862 pointed-to type of the offset in a MEM_REF to compute the alignment.
12864 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
12866 * final.c (final_scan_insn): Replace
12867 TARGET_UNWIND_INFO macro check by unwind_emit
12869 * targhooks.c (default_unwind_emit): Removed.
12870 * targhooks.h (default_unwind_emit): Likewise.
12871 * target.def (unwind_emit): Set default value to NULL.
12873 * config/i386/i386-protos.h (ix86_asm_output_function_label):
12875 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
12876 for NULL fntype argument and allow 64-bit targets.
12877 (ix86_asm_output_function_label): New function.
12878 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
12879 (ix86_handle_fndecl_attribute): Likewise.
12880 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
12881 * doc/doc/tm.texi: Regenerated.
12882 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
12883 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
12884 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
12885 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
12886 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12887 * config/elfos.h: Likewise.
12888 * config/i386/cygming.h: Likewise.
12889 * config/netbsd-aout.h: Likewise.
12890 * config/openbsd.h: Likewise.
12891 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
12892 by ix86_asm_output_function_label function call.
12893 * varasm.c (assemble_start_function): Use
12894 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12896 2010-07-08 Jan Hubicka <jh@suse.cz>
12898 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
12900 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
12902 * ipa-cp.c (ipcp_estimate_growth): Use it.
12903 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
12906 2010-07-08 Jan Hubicka <jh@suse.cz>
12908 * tree-inline.c (declare_return_variable): Allocate annotation for new
12911 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12913 PR tree-optimization/44710
12914 * tree-if-conv.c (parse_predicate): New.
12915 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
12916 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
12918 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12920 * common.opt (ftree-loop-if-convert): New flag.
12921 * doc/invoke.texi (ftree-loop-if-convert): Documented.
12922 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
12923 when flag_tree_loop_if_convert is set.
12925 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
12927 * config/i386/i386.c: Use short syntax for function calls
12928 through function pointers.
12929 * config/i386/i386.md: Ditto.
12931 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12933 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
12935 2010-07-08 Richard Guenther <rguenther@suse.de>
12937 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
12938 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
12940 2010-07-08 Jakub Jelinek <jakub@redhat.com>
12942 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
12943 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
12944 (loc_list_from_tree): Likewise.
12945 (output_loc_operands): Handle outputting DW_OP_const[48]u
12946 with loc->dtprel set.
12947 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
12949 2010-07-08 Jan Hubicka <jh@suse.cz>
12951 * ipa.c: Include pointer-set.h
12952 (cgraph_externally_visible_p): New attribute ALIASED;
12953 when in LTO, hidden symbols are local unless they are aliased.
12954 (function_and_variable_visibility): Compute aliased nodes;
12955 handle LTO and hidden symbol on functions and vars.
12956 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
12957 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
12959 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12961 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12962 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12963 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12964 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12965 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12966 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
12967 (ix86_gen_probe_stack_range): Likewise.
12968 (override_options): Set them.
12969 (ix86_target_stack_probe): New function.
12970 (ix86_compute_frame_layout): Force use of push instructions to
12971 save registers if stack checking with probes is enabled.
12972 (get_scratch_register_on_entry): New function.
12973 (release_scratch_register_on_entry): Likewise.
12974 (ix86_adjust_stack_and_probe): Likewise.
12975 (output_adjust_stack_and_probe): Likewise.
12976 (ix86_emit_probe_stack_range): Likewise.
12977 (output_probe_stack_range): Likewise.
12978 (ix86_expand_prologue): Emit stack checking code if static built-in
12979 stack checking is enabled.
12980 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
12981 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
12982 (output_adjust_stack_and_probe): Likewise.
12983 (output_probe_stack_range): Likewise.
12984 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12985 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
12986 TARGET_STACK_PROBE.
12987 (allocate_stack_worker_64): Likewise.
12988 (allocate_stack): Likewise.
12989 (adjust_stack_and_probe): New insn.
12990 (probe_stack_range): Likewise.
12992 2010-07-08 Richard Guenther <rguenther@suse.de>
12994 PR tree-optimization/44831
12995 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
12996 a MEM_REF preserving TBAA info of the original dereference.
12997 Dereference the original pointer if the address is not invariant.
12998 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
12999 at least one invariant address that we are going to dereference.
13001 2010-07-08 Richard Guenther <rguenther@suse.de>
13003 PR tree-optimization/44861
13004 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
13005 information when building MEM_REFs.
13006 (vectorizable_load): Likewise.
13007 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
13009 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13011 * config/sol2-c.c: Do not include diagnostic-core.h.
13013 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13016 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
13017 with respect to current_function_decl. Pass decl of the function.
13018 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
13019 * ipa-inline.c (compute_inline_parameters): Pass decl to
13020 estimated_stack_frame_size.
13022 2010-07-08 Richard Guenther <rguenther@suse.de>
13024 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13026 (valueize_refs): Call it.
13028 2010-07-08 Richard Guenther <rguenther@suse.de>
13030 PR rtl-optimization/44838
13031 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
13032 SSA form do not use pointer equivalence.
13034 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13036 * dwarf2out.c (AT_linkage_name): Delete.
13037 (add_linkage_attr): New function.
13038 (add_linkage_name): Call it to emit the linkage attribute.
13039 (dwarf2out_finish): Likewise.
13040 (move_linkage_attr): Explicitly accept both attribute variants.
13042 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13044 * toplev.h: Do not include diagnostic-core.h.
13045 Include diagnostic-core.h in every file that includes toplev.h.
13046 * c-tree.h: Do not include toplev.h.
13047 * pretty-print.h: Update comment.
13048 * Makefile.in: Update dependencies.
13049 * alias.c: Include diagnostic-core.h in every file that includes
13051 * attribs.c: Likewise.
13052 * auto-inc-dec.c: Likewise.
13053 * bb-reorder.c: Likewise.
13054 * bt-load.c: Likewise.
13055 * caller-save.c: Likewise.
13056 * calls.c: Likewise.
13058 * cfganal.c: Likewise.
13059 * cfgbuild.c: Likewise.
13060 * cfgcleanup.c: Likewise.
13061 * cfghooks.c: Likewise.
13062 * cfgloop.c: Likewise.
13063 * combine.c: Likewise.
13064 * config/alpha/alpha.c: Likewise.
13065 * config/arc/arc.c: Likewise.
13066 * config/arm/arm.c: Likewise.
13067 * config/arm/pe.c: Likewise.
13068 * config/avr/avr.c: Likewise.
13069 * config/bfin/bfin.c: Likewise.
13070 * config/cris/cris.c: Likewise.
13071 * config/crx/crx.c: Likewise.
13072 * config/darwin-c.c: Likewise.
13073 * config/darwin.c: Likewise.
13074 * config/fr30/fr30.c: Likewise.
13075 * config/frv/frv.c: Likewise.
13076 * config/h8300/h8300.c: Likewise.
13077 * config/host-darwin.c: Likewise.
13078 * config/i386/i386.c: Likewise.
13079 * config/i386/netware.c: Likewise.
13080 * config/i386/nwld.c: Likewise.
13081 * config/i386/winnt-cxx.c: Likewise.
13082 * config/i386/winnt-stubs.c: Likewise.
13083 * config/i386/winnt.c: Likewise.
13084 * config/ia64/ia64-c.c: Likewise.
13085 * config/ia64/ia64.c: Likewise.
13086 * config/iq2000/iq2000.c: Likewise.
13087 * config/lm32/lm32.c: Likewise.
13088 * config/m32c/m32c-pragma.c: Likewise.
13089 * config/m32c/m32c.c: Likewise.
13090 * config/m32r/m32r.c: Likewise.
13091 * config/m68hc11/m68hc11.c: Likewise.
13092 * config/m68k/m68k.c: Likewise.
13093 * config/mcore/mcore.c: Likewise.
13094 * config/mep/mep-pragma.c: Likewise.
13095 * config/mep/mep.c: Likewise.
13096 * config/mmix/mmix.c: Likewise.
13097 * config/mn10300/mn10300.c: Likewise.
13098 * config/moxie/moxie.c: Likewise.
13099 * config/pa/pa.c: Likewise.
13100 * config/pdp11/pdp11.c: Likewise.
13101 * config/picochip/picochip.c: Likewise.
13102 * config/rs6000/rs6000-c.c: Likewise.
13103 * config/rs6000/rs6000.c: Likewise.
13104 * config/rx/rx.c: Likewise.
13105 * config/s390/s390.c: Likewise.
13106 * config/score/score.c: Likewise.
13107 * config/score/score3.c: Likewise.
13108 * config/score/score7.c: Likewise.
13109 * config/sh/sh.c: Likewise.
13110 * config/sh/symbian-base.c: Likewise.
13111 * config/sh/symbian-c.c: Likewise.
13112 * config/sh/symbian-cxx.c: Likewise.
13113 * config/sol2-c.c: Likewise.
13114 * config/sol2.c: Likewise.
13115 * config/sparc/sparc.c: Likewise.
13116 * config/spu/spu.c: Likewise.
13117 * config/stormy16/stormy16.c: Likewise.
13118 * config/v850/v850-c.c: Likewise.
13119 * config/v850/v850.c: Likewise.
13120 * config/vax/vax.c: Likewise.
13121 * config/vxworks.c: Likewise.
13122 * config/xtensa/xtensa.c: Likewise.
13123 * convert.c: Likewise.
13125 * cselib.c: Likewise.
13126 * dbgcnt.c: Likewise.
13127 * dbxout.c: Likewise.
13129 * dominance.c: Likewise.
13130 * emit-rtl.c: Likewise.
13131 * explow.c: Likewise.
13132 * expmed.c: Likewise.
13133 * fixed-value.c: Likewise.
13134 * fold-const.c: Likewise.
13135 * fwprop.c: Likewise.
13136 * gcse.c: Likewise.
13137 * ggc-common.c: Likewise.
13138 * ggc-page.c: Likewise.
13139 * ggc-zone.c: Likewise.
13140 * gimple-low.c: Likewise.
13141 * gimplify.c: Likewise.
13142 * graph.c: Likewise.
13143 * haifa-sched.c: Likewise.
13144 * ifcvt.c: Likewise.
13145 * implicit-zee.c: Likewise.
13146 * integrate.c: Likewise.
13147 * ira-build.c: Likewise.
13148 * ira-color.c: Likewise.
13149 * ira-conflicts.c: Likewise.
13150 * ira-costs.c: Likewise.
13151 * ira-lives.c: Likewise.
13153 * lists.c: Likewise.
13154 * loop-doloop.c: Likewise.
13155 * loop-iv.c: Likewise.
13156 * lto-opts.c: Likewise.
13157 * lto-symtab.c: Likewise.
13158 * main.c: Likewise.
13159 * modulo-sched.c: Likewise.
13160 * optabs.c: Likewise.
13161 * params.c: Likewise.
13162 * plugin.c: Likewise.
13163 * postreload-gcse.c: Likewise.
13164 * postreload.c: Likewise.
13165 * predict.c: Likewise.
13166 * profile.c: Likewise.
13167 * real.c: Likewise.
13168 * regcprop.c: Likewise.
13169 * reginfo.c: Likewise.
13170 * regmove.c: Likewise.
13171 * reorg.c: Likewise.
13172 * resource.c: Likewise.
13174 * rtlanal.c: Likewise.
13175 * sched-deps.c: Likewise.
13176 * sched-ebb.c: Likewise.
13177 * sched-rgn.c: Likewise.
13178 * sdbout.c: Likewise.
13179 * sel-sched-dump.c: Likewise.
13180 * sel-sched-ir.c: Likewise.
13181 * simplify-rtx.c: Likewise.
13182 * stmt.c: Likewise.
13183 * stor-layout.c: Likewise.
13184 * store-motion.c: Likewise.
13185 * targhooks.c: Likewise.
13186 * tree-cfg.c: Likewise.
13187 * tree-cfgcleanup.c: Likewise.
13188 * tree-dump.c: Likewise.
13189 * tree-eh.c: Likewise.
13190 * tree-inline.c: Likewise.
13191 * tree-nomudflap.c: Likewise.
13192 * tree-object-size.c: Likewise.
13193 * tree-optimize.c: Likewise.
13194 * tree-outof-ssa.c: Likewise.
13195 * tree-phinodes.c: Likewise.
13196 * tree-profile.c: Likewise.
13197 * tree-ssa-ccp.c: Likewise.
13198 * tree-ssa-coalesce.c: Likewise.
13199 * tree-ssa-live.c: Likewise.
13200 * tree-ssa-loop-niter.c: Likewise.
13201 * tree-ssa-loop-prefetch.c: Likewise.
13202 * tree-ssa-loop.c: Likewise.
13203 * tree-ssa-structalias.c: Likewise.
13204 * tree-ssa-uninit.c: Likewise.
13205 * tree-ssa.c: Likewise.
13206 * tree-vect-data-refs.c: Likewise.
13207 * tree-vect-loop-manip.c: Likewise.
13208 * tree-vect-loop.c: Likewise.
13209 * tree-vect-patterns.c: Likewise.
13210 * tree-vect-stmts.c: Likewise.
13211 * tree-vrp.c: Likewise.
13212 * varasm.c: Likewise.
13215 * xcoffout.c: Likewise.
13217 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
13219 * gengtype.c (write_field_root): New function.
13220 (write_root): Use it.
13222 2010-07-07 Wei Guozhi <carrot@google.com>
13224 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13225 of lowest bits to lshift/compare): Add a missing line.
13227 2010-07-07 Wei Guozhi <carrot@google.com>
13229 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13230 of lowest bits to lshift/compare): New.
13232 2010-07-07 Tom Tromey <tromey@redhat.com>
13234 * doc/tm.texi: Update.
13235 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
13237 * target.def (want_debug_pub_sections): New hook.
13238 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
13239 * dwarf2out.c (add_pubname_string): Check
13240 targetm.want_debug_pub_sections.
13241 (add_pubname): Likewise.
13242 (add_pubtype): Likewise.
13244 2010-07-07 Jie Zhang <jie@codesourcery.com>
13246 * genautomata.c (output_automata_list_min_issue_delay_code):
13247 Correctly decompress min_issue_delay.
13249 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
13251 PR rtl-optimization/44404
13252 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
13253 possible, use reg_overlap_mentioned_p instead.
13255 2010-07-07 Duncan Sands <baldrick@free.fr>
13257 PR middle-end/41355
13258 * tree.c (build_function_type_skip_args): Copy the original type using
13259 build_distinct_type_copy rather than copy_node.
13261 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
13264 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
13266 (ix86_expand_prologue): Likewise.
13267 (ix86_handle_fndecl_attribute): Likewise.
13268 (ix86_asm_declare_function_name): Likewise.
13269 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13270 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13271 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
13272 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
13273 * doc/extend.texi: Likewise.
13275 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
13278 * config/i386/i386.md (rdrand<mode>): Changed to expand to
13279 retry if the carry flag isn't valid.
13280 (rdrand<mode>_1): New.
13282 2010-07-07 Richard Guenther <rguenther@suse.de>
13284 PR middle-end/44790
13285 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
13286 for expanding the constant offset for MEM_REFs.
13288 2010-07-07 Richard Guenther <rguenther@suse.de>
13290 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
13291 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
13292 * gimple.h (is_gimple_operand): Remove.
13293 * gimple.c (is_gimple_operand): Likewise.
13294 (walk_gimple_op): Fix wi->val_only setting for calls.
13295 * tree-cfg.c (verify_gimple_call): Fix argument validation.
13296 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
13297 invalid gimple calls.
13299 2010-07-06 Jan Hubicka <jh@suse.cz>
13301 * lto-cgraph.c (output_cgraph): Add missing declaration.
13303 2010-07-06 Jan Hubicka <jh@suse.cz>
13305 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
13308 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
13310 * doc/gimple.texi (GIMPLE_DEBUG): Document.
13311 * doc/rtl.texi (Debug Information): New node.
13312 (NOTE_INSN_VAR_LOCATION): Document.
13313 (debug_insn): Likewise.
13314 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
13316 2010-07-07 Jan Hubicka <jh@suse.cz>
13318 With parts by Richard Guenther.
13320 PR middle-end/44813
13321 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
13322 for functions passed by reference.
13323 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
13324 in memory when passed by reference.
13325 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
13327 * ipa-split.c (split_function): Cleanup way return value is passed;
13328 handle SSA DECL_BY_REFERENCE retvals.
13329 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
13330 DECL_BY_REFERENCE is set.
13331 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
13332 find_what_p_points_to): Handle RESULT_DECL.
13333 * tree-inline.c (declare_return_variable): Get new entry_block argument;
13334 when passing by reference ensure that RESULT_DECL is gimple_val.
13335 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
13336 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
13338 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
13340 PR rtl-optimization/44787
13341 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
13342 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
13344 2010-07-06 Jan Hubicka <jh@suse.cz>
13346 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
13347 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
13348 with body can prevail.
13349 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
13350 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
13351 * cgraph.c (cgraph_get_node_or_alias): New function.
13352 * cgraph.h (cgraph_get_node_or_alias): Declare.
13354 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
13356 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
13358 (ix86_expand_prologue): Likewise.
13359 (ix86_handle_fndecl_attribute): Likewise.
13360 (ix86_asm_declare_function_name): New function for
13361 ASM_DECLARE_FUNCTION_NAME.
13362 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
13363 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
13364 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
13365 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
13366 * doc/extend.texi: Adjust documentation about ms_hook_prologue
13369 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13371 * config/i386/i386.md (immediate_operand): New mode attribute.
13373 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
13374 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
13375 using P mode iterator.
13376 (pro_epilogue_adjust_stack_di_2): Rename from
13377 pro_epilogue_adjust_stack_rex64_2.
13379 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
13381 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13383 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
13384 through gen_mov_insv_1 function pointer.
13385 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
13386 gen_truncxf<mode>2 through gen_truncxf function pointer.
13387 (remainder<mode>3): Ditto.
13388 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
13389 (allocate_stack): Call gen_allocate_stack_worker_64 or
13390 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
13392 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
13395 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13397 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
13398 operand constraint instead of <r><i>m.
13400 2010-07-06 Richard Guenther <rguenther@suse.de>
13402 PR middle-end/44828
13403 * convert.c (convert_to_integer): Watch out for overflowing
13406 2010-07-05 Jan Hubicka <jh@suse.cz>
13408 * lto-streamer.c (write_symbol_vec): Rename to ...
13409 (write_symbol) ... this one; write only symbol given and when
13410 present in cache. Sanity check that what is defined is present
13411 in cgraph/varpool with body/finalized decl.
13412 (write_symbols_of_kind): Remove.
13413 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
13414 pairs to produce symtab.
13415 (produce_asm_for_decls): Update call of produce_symtab; don't do so
13416 when doing WPA streaming.
13418 2010-07-05 Jan Hubicka <jh@suse.cz>
13420 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
13421 function is still available to fold into.
13423 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13425 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
13426 * function.h (struct_function): Change type of local_decls field
13428 (add_local_decl): New function.
13429 (FOR_EACH_LOCAL_DECL): New macro.
13430 * cfgexpand.c (init_vars_expansion): Adjust for new type of
13432 (estimated_stack_frame_size): Likewise.
13433 (expand_used_vars): Likewise.
13434 * cgraphbuild.c (build_cgraph_edges): Likewise.
13435 * function.c (instantiate_decls_1): Likewise.
13436 * ipa-struct-reorg.c (build_data_structure): Likewise.
13437 * ipa-type-escape.c (analyze_function): Likewise.
13438 * lto-streamer-in.c (input_function): Likewise.
13439 * lto-streamer-out.c (output_function): Likewise.
13440 * tree-ssa-live.c (remove_unused_locals): Likewise.
13441 * tree.c (free_lang_data_in_decl): Likewise.
13442 (find_decls_types_in_node): Likewise.
13443 * omp-low.c (remove_exit_barrier): Likewise.
13444 (expand_omp_taskreg): Likewise.
13445 (list2chain): Rename to...
13446 (vec2chain): ...this. Adjust.
13447 * cgraphunit.c (assemble_thunk): Call add_local_decl.
13448 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
13449 * gimple-low.c (record_vars_into): Likewise.
13450 * tree-inline.c (remap_decls): Likewise.
13451 (declare_return_variable): Likewise.
13452 (declare_inline_vars): Likewise.
13453 (copy_forbidden): Adjust for new type of cfun->local_decls.
13454 (add_local_variables): New function.
13455 (expand_call_inline): Call it.
13456 (tree_function_versioning): Likewise.
13458 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
13460 AVX Programming Reference (June, 2010)
13461 * config/i386/cpuid.h (bit_F16C): New.
13462 (bit_RDRND): Likewise.
13463 (bit_FSGSBASE): Likewise.
13465 * config/i386/i386-builtin-types.def: Add
13466 "DEF_FUNCTION_TYPE (UINT16)", function types for
13467 float16 <-> float conversions and
13468 "DEF_FUNCTION_TYPE (VOID, UINT64)".
13470 * config/i386/i386-c.c (ix86_target_macros_internal): Support
13471 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
13472 OPTION_MASK_ISA_F16C.
13474 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
13475 (OPTION_MASK_ISA_RDRND_SET): Likewise.
13476 (OPTION_MASK_ISA_F16C_SET): Likewise.
13477 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
13478 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
13479 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
13480 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
13481 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
13482 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
13483 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
13484 (override_options): Handle them.
13485 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
13486 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
13487 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
13488 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
13489 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
13490 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
13491 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
13492 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
13493 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
13494 (bdesc_args): Likewise.
13495 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
13496 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
13497 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
13498 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
13499 Handle non-memory store.
13501 * config/i386/i386.h (TARGET_FSGSBASE): New.
13502 (TARGET_RDRND): Likewise.
13503 (TARGET_F12C): Likewise.
13505 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
13506 (UNSPEC_VCVTPS2PH): Likewise.
13507 (UNSPECV_RDFSBASE): Likewise.
13508 (UNSPECV_RDGSBASE): Likewise.
13509 (UNSPECV_WRFSBASE): Likewise.
13510 (UNSPECV_WRGSBASE): Likewise.
13511 (UNSPECV_RDRAND): Likewise.
13512 (rdfsbase<mode>): Likewise.
13513 (rdgsbase<mode>): Likewise.
13514 (wrfsbase<mode>): Likewise.
13515 (wrgsbase<mode>): Likewise.
13516 (rdrand<mode>): Likewise.
13518 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
13520 * config/i386/immintrin.h (_rdrand_u16): New.
13521 (_rdrand_u32): Likewise.
13522 (_readfsbase_u32): Likewise.
13523 (_readfsbase_u64): Likewise.
13524 (_readgsbase_u32): Likewise.
13525 (_readgsbase_u64): Likewise.
13526 (_writefsbase_u32): Likewise.
13527 (_writefsbase_u64): Likewise.
13528 (_writegsbase_u32): Likewise.
13529 (_writegsbase_u64): Likewise.
13530 (_rdrand_u64): Likewise.
13531 (_cvtsh_ss): Likewise.
13532 (_mm_cvtph_ps): Likewise.
13533 (_mm256_cvtph_ps): Likewise.
13534 (_cvtss_sh): Likewise.
13535 (_mm_cvtps_ph): Likewise.
13536 (_mm256_cvtps_ph): Likewise.
13538 * config/i386/sse.md (vcvtph2ps): New.
13539 (*vcvtph2ps_load): Likewise.
13540 (vcvtph2ps256): Likewise.
13541 (vcvtps2ph): Likewise.
13542 (*vcvtps2ph): Likewise.
13543 (*vcvtps2ph_store): Likewise.
13544 (vcvtps2ph256): Likewise.
13546 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
13548 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
13550 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
13553 * genenums.c (main): Output include of insn-constants.h
13554 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
13556 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
13558 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
13559 (override_options): Initialize it.
13560 (ix86_expand_prologue): Use it.
13562 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13564 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
13566 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13568 * double-int.h (fit_double_type): Remove declaration.
13569 * double-int.c (fit_double_type): Remove function.
13570 * tree.h (int_fits_type_p): Adjust prototype.
13571 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
13572 instead of fit_double_type.
13573 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13574 instead of fit_double_type and build_int_cst_wide.
13575 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
13576 instead of fit_double_type and build_int_cst_wide.
13577 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
13578 of fit_double_type.
13580 2010-07-05 Jan Hubicka <jh@suse.cz>
13582 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
13583 in_other_partition.
13584 * lto-cgraph.c (referenced_from_other_partition_p,
13585 reachable_from_other_partition_p): Use in_other_partition flags.
13586 (output_node, output_varpool_node): COMDAT nodes always have private
13587 copies and thus are never used from other partition.
13589 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13591 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13592 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
13593 * config/ia64/ia64.c Include reload.h.
13594 (ia64_memory_move_cost): New function.
13595 (TARGET_MEMORY_MOVE_COST): Define.
13596 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
13599 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
13601 PR middle-end/42505
13602 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
13603 comments about cost model.
13604 (try_add_cand_for): Add second strategy for choosing initial set
13605 based on original IVs, controlled by ORIGINALP argument.
13606 (get_initial_solution): Add ORIGINALP argument.
13607 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
13608 (find_optimal_iv_set): Try two different strategies for choosing
13609 the IV set, and return the one with lower cost.
13611 2010-07-05 Richard Guenther <rguenther@suse.de>
13613 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
13615 2010-07-05 Richard Guenther <rguenther@suse.de>
13617 * tree.c (reference_alias_ptr_type): New function.
13618 * tree.h (reference_alias_ptr_type): Declare.
13619 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
13620 allow non-TARGET_MEM_REF new refs.
13621 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
13622 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
13623 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
13624 (create_mem_ref): Get alias pointer type. Adjust calls to
13625 create_mem_ref_raw.
13626 (maybe_fold_tmr): Likewise.
13627 * tree-flow.h (create_mem_ref): Adjust prototype.
13629 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13632 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
13633 *from_p is VAR_DECL.
13635 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13637 * tree.h (build_call_list): Remove.
13638 * tree.c (build_call_list): Remove.
13640 2010-07-05 Richard Guenther <rguenther@suse.de>
13642 * double-int.h (double_int_sub): Declare.
13643 * double-int.c (double_int_sub): New function.
13644 * dwarf2out.c (field_byte_offset): Use it.
13645 * fixed-value.c (do_fixed_add): Likewise.
13646 (do_fixed_multiply): Likewise.
13647 (do_fixed_divide): Likewise.
13648 * tree-predcom.c (add_ref_to_chain): Likewise.
13649 (determine_roots_comp): Likewise.
13650 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13652 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13654 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
13657 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
13659 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
13660 * arm-modes.def (CC_NOTB): Don't define.
13661 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
13662 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
13663 (LTUGEU): New code_iterator.
13664 (cnb, optab): New corresponding code_attrs.
13665 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
13666 to canonical form. Operands 1 and 2 are commutative. Parametrize
13668 (addsi3_carryin_shift_<optab>): Likewise.
13669 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
13670 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
13671 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
13672 (subsi3_compare): Renamed from subsi3_compare0_c.
13673 Change CC_NOTB to CC.
13674 (arm_subsi3_insn): Allow constants for operand 0.
13675 (compare_scc peephole for eq case): New.
13676 (compare_scc splitters): Change CC_NOTB to CC.
13678 2010-07-05 Richard Guenther <rguenther@suse.de>
13680 * tree-ssa-loop-im.c (for_each_index): Do not handle
13681 ALIGN_INDIRECT_REF.
13682 (gen_lsm_tmp_name): Likewise.
13683 * tree-dump.c (dequeue_and_dump): Likewise.
13684 * tree-pretty-print.c (dump_generic_node): Likewise.
13685 (op_code_prio): Likewise.
13686 (op_symbol_code): Likewise.
13687 * tree.c (staticp): Likewise.
13688 (build1_stat): Likewise.
13689 * tree.h (INDIRECT_REF_P): Likewise.
13690 * fold-const.c (maybe_lvalue_p): Likewise.
13691 (operand_equal_p): Likewise.
13692 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13693 (ao_ref_init_from_vn_reference): Likewise.
13694 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13695 (find_interesting_uses_address): Likewise.
13696 * dwarf2out.c (loc_list_from_tree): Likewise.
13697 * gimplify.c (gimplify_expr): Likewise.
13698 * tree-eh.c (tree_could_trap_p): Likewise.
13699 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13700 * cfgexpand.c (expand_debug_expr): Likewise.
13701 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13702 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13703 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13704 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
13705 * tree-ssa-operands.c (get_expr_operands): Likewise.
13706 * expr.c (safe_from_p): Likewise.
13707 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
13708 * tree-vect-data-refs.c (vect_setup_realignment): Build
13709 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
13710 * tree-vect-stmts.c (vectorizable_load): Likewise.
13711 * tree.def (ALIGN_INDIRECT_REF): Remove.
13713 2010-07-05 Richard Guenther <rguenther@suse.de>
13715 PR tree-optimization/44784
13716 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
13717 for inserted stmts.
13718 (find_or_generate_expression): Fix SCCVN insertion check.
13720 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
13722 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
13723 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13724 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
13727 2010-07-05 Ira Rosen <irar@il.ibm.com>
13729 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
13730 statements that are not vectorized.
13731 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
13734 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
13737 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
13739 2010-07-05 Richard Guenther <rguenther@suse.de>
13741 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
13742 RESULT_DECLs properly.
13744 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
13746 PR rtl-optimization/44695
13747 * config/i386/i386.md (extract_code): Removed.
13748 (<u>divmodqi4): Likewise.
13750 (udivmodqi4): Likewise.
13751 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
13752 (udivmodhiqi3): Likewise.
13754 2010-07-04 Jan Hubicka <jh@suse.cz>
13756 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
13758 2010-07-04 Jan Hubicka <jh@suse.cz>
13760 * cgraphunit.c (init_cgraph): Only initialize dump file if it
13761 is not already initialized.
13763 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13765 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
13766 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
13767 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
13768 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
13769 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
13770 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
13771 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
13772 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
13773 (sync_new_nand_optab): Redefine as macros.
13774 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
13776 (direct_optab_index): New enum.
13777 (direct_optab_d): New structure.
13778 (direct_optab): New typedef.
13779 (direct_optab_table): Declare.
13780 (direct_optab_handler, set_direct_optab_handler): New functions.
13781 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
13782 (sync_lock_release_optab): New macros.
13783 * optabs.c (direct_optab_table): New variable.
13784 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
13785 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
13786 cmpstr_optab and cmpstrn_optab.
13787 (emit_conditional_move): Likewise for movcc_optab.
13788 (can_conditionally_move_p): Likewise for movcc_gen_code.
13789 (init_insn_codes): Clear direct_optab_table.
13790 (init_optabs): Don't initialize the new "direct optabs" here.
13791 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
13793 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
13794 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
13795 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
13796 (expand_sync_operation): Likewise other sync_*_optabs.
13797 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
13798 to sync_compare_and_swap_optab.
13799 (expand_sync_lock_test_and_set): Use direct_optab_handler for
13800 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
13801 to the names of both.
13802 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
13803 cmpstr_optab and cmpstrn_optab.
13804 (expand_builtin_lock_release): Likewise sync_lock_release.
13805 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
13806 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
13807 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
13808 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
13809 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
13810 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
13811 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
13812 (sync_lock_test_and_set, sync_lock_release): Delete.
13813 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
13814 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
13815 * genopinit.c (optabs): Use set_direct_optab_handler for the new
13817 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
13818 the "optab" local variable. Use direct_optab_handler for optab and
13819 sync_compare_and_swap_optab.
13820 * reload1.c (reload_in_optab, reload_out_optab): Delete.
13821 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
13822 reload_in_optab and reload_out_optab.
13823 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
13824 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
13825 * config/pa/pa.c (pa_secondary_reload): Likewise.
13826 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
13827 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
13828 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
13829 (VMSupportsCS8_builtin): Likewise.
13831 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13833 * optabs.h (optab_handlers): Change type of insn_code to int.
13834 (optab_handler, set_optab_handler, convert_optab_handler)
13835 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
13837 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
13838 (init_insn_codes): Zero both the above arrays.
13839 (init_optabs): Never call init_insn_codes first time around.
13841 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13843 * optabs.h (optab_handler, convert_optab_handler): Turn into
13844 inline functions that return an insn code.
13845 (set_optab_handler, set_convert_optab_handler): New functions.
13846 * builtins.c: Replace optab_handler(X)->insn_code with
13847 optab_handler or set_optab_handler thoughout. Likewise
13848 convert_optab_handler(X)->insn_code with convert_optab_handler
13849 and set_convert_optab_handler.
13850 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
13851 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
13852 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
13853 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13854 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
13855 config/spu/spu.c: Likewise.
13857 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
13860 * config.gcc (sh*-*-*): Use regular expressions instead of
13861 the 'i' modifier for sed substitutions.
13863 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
13865 * gimple.c (gimple_body): Comments added.
13867 2010-07-04 Richard Guenther <rguenther@suse.de>
13869 PR middle-end/44809
13870 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
13871 of an INDIRECT_REF.
13873 2010-07-04 Richard Guenther <rguenther@suse.de>
13875 PR tree-optimization/44479
13876 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13877 extra SSA name copy statements which preserves points-to
13879 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13880 Copy points-to information for all pointers. Properly handle
13882 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
13884 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
13887 2010-07-04 Richard Guenther <rguenther@suse.de>
13889 PR middle-end/44785
13890 * tree-inline.c (initialize_inlined_parameters): Do not
13891 re-use pointer-map slot over remap_type call.
13893 2010-07-04 Richard Guenther <rguenther@suse.de>
13895 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
13897 2010-07-04 Richard Guenther <rguenther@suse.de>
13899 PR tree-optimization/44656
13900 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
13901 again after value-replacing in the defintions lhs.
13903 2010-07-04 Ira Rosen <irar@il.ibm.com>
13904 Revital Eres <eres@il.ibm.com>
13906 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
13907 Document new arguments.
13908 * doc/tm.texi: Regenerate.
13909 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
13910 Handle unaligned store.
13911 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
13912 * target.def (builtin_vectorization_cost): Add new arguments.
13913 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
13914 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
13915 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
13916 (vect_vfa_segment_size): Fix indentation.
13917 * tree-vectorizer.h (struct _vect_peel_info): New.
13918 (struct _vect_peel_extended_info): New.
13919 (struct _loop_vec_info): Add new field for peeling hash table and a
13920 macro for its access.
13921 (VECT_MAX_COST): Define.
13922 (vect_get_load_cost): Declare.
13923 (vect_get_store_cost, vect_get_known_peeling_cost,
13924 vect_get_single_scalar_iteraion_cost): Likewise.
13925 (vect_supportable_dr_alignment): Add new argument.
13926 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
13928 (destroy_loop_vec_info): Free peeling hash table.
13929 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
13930 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
13931 vect_analyze_slp. Fix indentation.
13932 (vect_get_single_scalar_iteraion_cost): New function.
13933 (vect_get_known_peeling_cost): Likewise.
13934 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
13935 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
13936 statement. Move outside cost calculation inside unknown peeling case.
13937 Call vect_get_known_peeling_cost for known amount of peeling.
13938 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
13939 reference to the print message of forced alignment.
13940 (vect_verify_datarefs_alignment): Update call to
13941 vect_supportable_dr_alignment.
13942 (vect_get_data_access_cost): New function.
13943 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
13944 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
13945 vect_peeling_hash_choose_best_peeling): Likewise.
13946 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
13947 to store all the accesses in the loop and find best possible access to
13948 align using peeling for known alignment case. For unknown alignment
13949 check if stores are preferred or if peeling is worthy.
13950 (vect_find_same_alignment_drs): Analyze pairs of loads too.
13951 (vect_supportable_dr_alignment): Add new argument and check aligned
13952 accesses according to it.
13953 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
13954 (cost_for_stmt): Call vect_get_stmt_cost.
13955 (vect_model_simple_cost): Likewise.
13956 (vect_model_store_cost): Call vect_get_stmt_cost. Call
13957 vect_get_store_cost to calculate the cost of the statement.
13958 (vect_get_store_cost): New function.
13959 (vect_model_load_cost): Call vect_get_stmt_cost. Call
13960 vect_get_load_cost to calculate the cost of the statement.
13961 (vect_get_load_cost): New function.
13962 (vectorizable_store): Update call to vect_supportable_dr_alignment.
13963 (vectorizable_load): Likewise.
13964 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
13965 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
13966 arguments. Handle unaligned store.
13967 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
13968 (rs6000_builtin_support_vector_misalignment): Return true for word and
13969 double word alignments for VSX.
13970 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
13971 vect_supportable_dr_alignment and builtin_vectorization_cost.
13973 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13976 * config/pa/predicates.md (prefetch_cc_operand): Remove.
13977 (prefetch_nocc_operand): Likewise.
13978 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
13979 (prefetch_20): New insn.
13980 (prefetch_cc): Remove.
13981 (prefetch_nocc): Likewise.
13983 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13985 * expr.c (vector_mode_valid_p): Move to c-common.c.
13986 * expr.h (vector_mode_valid_p): Do not declare here.
13987 * system.h: Poison GCC_EXPR_H in front-ends.
13988 * Makefile.in: Update dependencies.
13990 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13993 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
13995 2010-07-03 Jan Hubicka <jh@suse.cz>
13997 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
13998 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
13999 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
14000 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
14003 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
14005 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
14006 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
14007 TV_IPA_LTO_DECL_OUT): New.
14008 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
14010 2010-07-03 Jan Hubicka <jh@suse.cz>
14012 * ipa-inline.c (update_edge_key): Break out from ...
14013 update_callers_keys): ... here;
14014 (update_callee_keys): Update only the edges from caller to callee.
14015 (update_all_calle_keys): Do what update_calle_keys did.
14016 (decide_inlining_of_small_functions): Avoid recomputing of all
14017 callees when badness increase.
14019 2010-07-03 Jie Zhang <jie@codesourcery.com>
14021 * config/arm/arm.c (arm_attr_length_move_neon): New.
14022 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
14023 * config/arm/neon.md (define_mode_attr V_slen): Remove.
14024 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
14025 to compute length attribute.
14027 2010-07-03 Jie Zhang <jie@codesourcery.com>
14029 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
14030 as predicate for operand 1 and remove its constraint.
14031 * config/arm/predicates.md (vfp_register_operand): New.
14032 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
14033 (*push_fp_multi): Likewise.
14035 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
14037 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
14039 2010-07-03 Jan Hubicka <jh@suse.cz>
14041 * config/i386/i386.c (override_options): Revert accidental commit.
14043 2010-07-02 Le-Chun Wu <lcwu@google.com>
14046 * doc/invoke.texi: Update documentation of -Wshadow.
14048 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
14049 Julian Brown <julian@codesourcery.com>
14050 Sandra Loosemore <sandra@codesourcery.com>
14052 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
14053 comparisons. Adjust to take both operands.
14054 (arm_select_cc_mode): Handle DImode comparisons.
14055 (arm_gen_compare_reg): Generate a scratch register for DImode
14056 comparisons which require one. Use xor for Thumb equality checks.
14057 (arm_const_double_by_immediates): New.
14058 (arm_print_operand): Allow 'Q' and 'R' for constants.
14059 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
14060 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
14061 arm_canonicalize_comparison.
14062 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
14063 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
14065 (arm_const_double_by_immediates): Declare.
14066 * config/arm/constraints.md (Di): New constraint.
14067 * config/arm/predicates.md (arm_immediate_di_operand)
14068 (arm_di_operand, cmpdi_operand): New.
14069 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
14070 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
14071 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
14072 (cstoredi4): Handle non-Cirrus also.
14074 2010-07-02 Julian Brown <julian@codesourcery.com>
14075 Sandra Loosemore <sandra@codesourcery.com>
14078 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
14079 (smax<mode>3): Disable for NEON float modes when
14080 flag_unsafe_math_optimizations is false.
14081 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
14083 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
14084 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
14085 for NEON float modes when flag_unsafe_math_optimizations is false.
14086 (quad_halves_<code>v4sf): Only enable if
14087 flag_unsafe_math_optimizations is true.
14088 * doc/invoke.texi (ARM Options): Add note about floating point
14089 vectorization requiring -funsafe-math-optimizations.
14091 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14092 Julian Brown <julian@codesourcery.com>
14094 * config/arm/neon.md (UNSPEC_VABA): Delete.
14095 (UNSPEC_VABAL): Delete.
14096 (UNSPEC_VABS): Delete.
14097 (UNSPEC_VMUL_N): Delete.
14098 (adddi3_neon): New.
14099 (subdi3_neon): New.
14100 (mul<mode>3add<mode>_neon): Make the pattern named.
14101 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14102 (neon_vadd<mode>): Replace with define_expand, and move the remaining
14104 (neon_vadd<mode>_unspec): ...to this.
14105 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
14106 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
14107 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
14108 (neon_vaba<mode>): Rewrite in terms of vabd.
14109 (neon_vabal<mode>): Rewrite in terms of vabdl.
14110 (neon_vabs<mode>): Rewrite without unspec.
14111 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
14112 (*arm_subdi3): Likewise.
14113 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
14114 No_op attribute to disable assembly output checks.
14115 * config/arm/arm_neon.h: Regenerated.
14116 * doc/arm-neon-intrinsics.texi: Regenerated.
14118 2010-07-02 Jan Hubicka <jh@suse.cz>
14120 * ipa-split.c (split_function): For aggregate values, set the return
14121 slot optimization bit. When passing DECL_BY_REFERENCE, produce
14122 *<retval> = fncall.part ().
14123 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
14125 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14127 * config/arm/neon.md (UNSPEC_VAND): Delete.
14128 (UNSPEC_VBIC): Delete.
14129 (UNSPEC_VCLZ): Delete.
14130 (UNSPEC_VCNT): Delete.
14131 (UNSPEC_VEOR): Delete.
14132 (UNSPEC_VORN): Delete.
14133 (UNSPEC_VORR): Delete.
14134 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
14135 core registers too.
14136 (anddi3_neon): Likewise.
14137 (orndi3_neon): Likewise.
14138 (bicdi3_neon): Likewise.
14139 (xordi3_neon): Likewise.
14140 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
14141 rid of unspec and handle unused operand.
14142 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
14143 * config/arm/predicates.md (imm_for_neon_logic_operand):
14144 Require TARGET_NEON.
14145 (imm_for_neon_inv_logic_operand): Likewise.
14146 * config/arm/arm.md (define_split for logical_binary_operator):
14147 Disable for NEON registers.
14148 (anddi3): Add new define_expand, and rename the insn. Disable
14149 this insn for NEON, where anddi3_neon now applies.
14150 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
14151 (iordi3): As for anddi3.
14152 (xordi3): Likewise.
14153 * config/arm/neon.ml (Vand): Split DImode variants and mark them
14154 as No_op to disable testing for exact instruction match.
14159 * config/arm/arm_neon.h: Regenerated.
14160 * doc/arm-neon-intrinsics.texi: Regenerated.
14162 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
14164 * expr.h (emit_stack_probe): Declare.
14165 * explow.c (emit_stack_probe): Make global.
14166 (anti_adjust_stack_and_probe): Fix comments.
14167 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14168 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14169 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14170 * config/sparc/sparc.c: Include except.h.
14171 (sparc_emit_probe_stack_range): New function.
14172 (output_probe_stack_range): Likewise.
14173 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
14174 built-in stack checking is enabled.
14175 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
14176 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14177 (probe_stack_range): New insn.
14179 2010-07-02 Richard Guenther <rguenther@suse.de>
14182 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
14183 for argument alignment.
14185 2010-07-02 Jan Hubicka <jh@suse.cz>
14187 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
14188 walk backwards from entry_bb to check only those basic block of header
14189 that might lead to execution of split part.
14190 (consider_split) ... here.
14191 (find_return_bb): Allow assignment in return BB.
14192 (find_retval): New.
14193 (split_function): Fix name of cloned function; take care of updating
14194 return value in return_bb containing move.
14196 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
14199 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
14200 used variable insn.
14202 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
14204 * implicit-zee.c (combine_reaching_defs): Fix long lines.
14205 (is_set_with_extension_DI): Delete.
14206 (struct zero_extend_info): New structure.
14207 (add_removable_zero_extend): New function.
14208 (find_removable_zero_extends): Use note_stores to find SETs.
14209 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
14211 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
14213 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
14214 is_miss_rate_acceptable. Pull total_positions computation
14215 out of the loops. Early return if miss_positions exceeds
14216 the acceptable threshold.
14217 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
14218 is_miss_rate_acceptable after renaming of compute_miss_rate.
14220 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
14222 PR middle-end/44576
14223 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
14224 of 1000) for miss rate if the address diference is greater than or
14225 equal to the cache line size (the two reference will never hit the
14228 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
14231 * config/arm/arm-modes.def (CC_NOTB): New mode.
14232 * config/arm/arm.c (get_arm_condition_code): Handle it.
14233 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
14234 * config/arm/arm.md (subsi3_compare0_c): New pattern.
14235 (compare_scc): Now a define_and_split. Add a number of extra
14236 splitters before it.
14239 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
14241 (arm_rtx_costs_1): Likewise.
14242 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
14243 * config/arm/arm.md (is_arch6): New attribute.
14244 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
14245 extendqisi2): Tighten the code somewhat, avoiding invalid
14246 RTL to occur in the expander patterns.
14247 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
14248 (thumb1_zero_extendhisi2_v6): Delete.
14249 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
14250 (thumb1_extendhisi2_v6): Delete.
14251 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
14252 (thumb1_extendqisi2_v6): Delete.
14253 (zero_extendhisi2 for register input splitter): New.
14254 (zero_extendqisi2 for register input splitter): New.
14255 (thumb1_extendhisi2 for register input splitter): New.
14256 (extendhisi2 for register input splitter): New.
14257 (extendqisi2 for register input splitter): New.
14258 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
14259 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
14260 and add support for a register alternative requiring a split.
14261 (thumb1_zero_extendqisi2): Likewise.
14262 (arm_zero_extendqisi2): Likewise.
14263 (arm_extendhisi2): Likewise.
14264 (arm_extendqisi2): Likewise.
14266 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14268 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
14269 instead of an unspec.
14270 (neon_expand_vector_init): Likewise.
14271 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
14272 (UNSPEC_VDUP_LANE): Delete.
14273 (UNSPEC VDUP_N): Delete.
14274 (UNSPEC_VGET_HIGH): Delete.
14275 (UNSPEC_VGET_LANE): Delete.
14276 (UNSPEC_VGET_LOW): Delete.
14277 (UNSPEC_VMVN): Delete.
14278 (UNSPEC_VSET_LANE): Delete.
14279 (V_double_vector_mode): New.
14280 (vec_set<mode>_internal): Make code emitted match that for the
14281 corresponding intrinsics.
14282 (vec_setv2di_internal): Likewise.
14283 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
14284 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
14285 (neon_vset_lane<mode>): Combine double and quad patterns and
14286 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
14287 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
14288 (neon_vdup_n<mode>): Rewrite RTL without unspec.
14289 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
14290 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
14291 with neon_vdup_lanev2di, adjusting the pattern from the latter
14292 to be predicable for consistency.
14293 (neon_vdup_lane<mode>_internal): New.
14294 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
14295 to avoid using an unspec.
14296 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
14297 (neon_vdup_lanev2di): Turn into a define_expand.
14298 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
14299 (neon_vget_high<mode>): Replace with....
14300 (neon_vget_highv16qi): New pattern using canonical RTL.
14301 (neon_vget_highv8hi): Likewise.
14302 (neon_vget_highv4si): Likewise.
14303 (neon_vget_highv4sf): Likewise.
14304 (neon_vget_highv2di): Likewise.
14305 (neon_vget_low<mode>): Replace with....
14306 (neon_vget_lowv16qi): New pattern using canonical RTL.
14307 (neon_vget_lowv8hi): Likewise.
14308 (neon_vget_lowv4si): Likewise.
14309 (neon_vget_lowv4sf): Likewise.
14310 (neon_vget_lowv2di): Likewise.
14312 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
14313 test for this emitting vmov.
14314 (Vset_lane): Likewise.
14315 (Vdup_n): Likewise.
14316 (Vmov_n): Likewise.
14318 * doc/arm-neon-intrinsics.texi: Regenerated.
14320 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14322 * config/arm/neon.md (vec_extractv2di): Correct error in register
14323 numbering to reconcile with neon_vget_lanev2di.
14325 2010-07-02 Richard Guenther <rguenther@suse.de>
14327 * tree-ssa-structalias.c (pt_solution_set_var): New function.
14328 * tree-ssa-alias.h (pt_solution_set_var): Declare.
14329 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
14330 points-to information.
14332 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
14334 * config/s390/s390.c (override_options): Adopt prefetching
14335 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
14337 2010-07-02 Jan Hubicka <jh@suse.cz>
14339 * df-problems.c (df_kill_notes): Do not collect dead notes.
14340 (df_set_note): Just call add_reg_note.
14341 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
14342 df_create_unused_note): Do not deal with lists of old notes.
14343 (df_note_bb_compute): Likewise.
14345 2010-07-02 Richard Guenther <rguenther@suse.de>
14347 * tree-ssa-structalias.c (find_func_aliases): Handle
14348 pointer alignment via BIT_AND_EXPR.
14349 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
14351 2010-07-02 Richard Guenther <rguenther@suse.de>
14353 * tree-data-ref.c (initialize_data_dependence_relation): Handle
14354 mismatching number of dimensions properly.
14356 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14359 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
14360 (lo_sum (high ...) ...) patterns generated by earlier passes.
14362 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14364 * doc/install.texi (Prerequisites): Document Perl requirement on
14366 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
14368 2010-07-02 Richard Guenther <rguenther@suse.de>
14370 PR middle-end/44777
14371 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
14373 2010-07-02 Jan Hubicka <jh@suse.cz>
14375 PR middle-end/44706
14376 * predict.c (predict_paths_for_bb): Handle case when control dependence
14377 BB has only abnormal edges.
14379 2010-07-02 Richard Guenther <rguenther@suse.de>
14381 PR tree-optimization/44748
14382 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
14383 the embedded conversion in MEM_REFs.
14385 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
14387 * reload.c: Include toplev.h.
14388 * recog.c: Likewise.
14389 * Makefile.in: Adjust dependencies.
14391 2010-07-01 Jakub Jelinek <jakub@redhat.com>
14394 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
14395 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
14397 2010-07-01 Richard Guenther <rguenther@suse.de>
14399 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
14402 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
14405 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
14406 Fix argument types.
14408 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
14411 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14412 Make sure operand 0 dies.
14414 2010-07-01 Richard Guenther <rguenther@suse.de>
14416 PR middle-end/42834
14417 PR middle-end/44468
14418 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
14419 * doc/generic.texi (References to storage): Document MEM_REF.
14420 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
14421 (print_call_name): Likewise.
14422 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
14423 (build_simple_mem_ref_loc): New function.
14424 (mem_ref_offset): Likewise.
14425 * tree.h (build_simple_mem_ref_loc): Declare.
14426 (build_simple_mem_ref): Define.
14427 (mem_ref_offset): Declare.
14428 * fold-const.c: Include tree-flow.h.
14429 (operand_equal_p): Handle MEM_REF.
14430 (build_fold_addr_expr_with_type_loc): Likewise.
14431 (fold_comparison): Likewise.
14432 (fold_unary_loc): Fold
14433 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
14434 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
14435 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
14436 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
14437 (ptr_deref_may_alias_ref_p_1): Likewise.
14438 (ao_ref_base_alias_set): Properly differentiate base object for
14440 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
14441 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
14442 (indirect_refs_may_alias_p): Likewise.
14443 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
14445 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
14446 (call_may_clobber_ref_p_1): Likewise.
14447 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
14448 * expr.c (expand_assignment): Handle MEM_REF.
14449 (store_expr): Handle MEM_REFs from STRING_CSTs.
14450 (store_field): If expanding a MEM_REF of a non-addressable
14451 decl use bitfield operations.
14452 (get_inner_reference): Handle MEM_REF.
14453 (expand_expr_addr_expr_1): Likewise.
14454 (expand_expr_real_1): Likewise.
14455 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
14456 * alias.c (ao_ref_from_mem): Handle MEM_REF.
14457 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
14458 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
14459 (dr_analyze_indices): Likewise.
14460 (dr_analyze_alias): Likewise.
14461 (object_address_invariant_in_loop_p): Likewise.
14462 * gimplify.c (mark_addressable): Handle MEM_REF.
14463 (gimplify_cond_expr): Build MEM_REFs.
14464 (gimplify_modify_expr_to_memcpy): Likewise.
14465 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
14466 (gimple_fold_indirect_ref): Adjust.
14467 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
14468 * tree.def (MEM_REF): New tree code.
14469 * tree-dfa.c: Include toplev.h.
14470 (get_ref_base_and_extent): Handle MEM_REF.
14471 (get_addr_base_and_unit_offset): New function.
14472 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
14473 * gimple-fold.c (may_propagate_address_into_dereference): Handle
14475 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
14476 accesses if the array has just one dimension. Remove always true
14477 parameter. Do not require type compatibility here.
14478 (maybe_fold_offset_to_component_ref): Remove.
14479 (maybe_fold_stmt_indirect): Remove.
14480 (maybe_fold_reference): Remove INDIRECT_REF handling.
14481 Fold back to non-MEM_REF.
14482 (maybe_fold_offset_to_address): Simplify. Deal with type
14484 (maybe_fold_reference): Likewise.
14485 (maybe_fold_stmt_addition): Likewise. Also handle
14486 &ARRAY + I in addition to &ARRAY[0] + I.
14487 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
14488 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
14489 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
14490 * tree-ssa.c (useless_type_conversion_p): Make most pointer
14491 conversions useless.
14492 (warn_uninitialized_var): Handle MEM_REF.
14493 (maybe_rewrite_mem_ref_base): New function.
14494 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
14496 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
14497 INDIRECT_REF handling.
14498 (copy_tree_body_r): Handle MEM_REF.
14499 * gimple.c (is_gimple_addressable): Adjust.
14500 (is_gimple_address): Likewise.
14501 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
14502 invariant base are invariant.
14503 (is_gimple_min_lval): Adjust.
14504 (is_gimple_mem_ref_addr): New function.
14505 (get_base_address): Handle MEM_REF.
14506 (count_ptr_derefs): Likewise.
14507 (get_base_loadstore): Likewise.
14508 * gimple.h (is_gimple_mem_ref_addr): Declare.
14509 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
14510 * tree-cfg.c (verify_address): New function, split out from ...
14511 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
14512 the address operand of MEM_REFs. Verify MEM_REFs. Reject
14514 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
14515 INDIRECT_REF. Allow conversions.
14516 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
14517 a register does not change its size.
14518 (verify_types_in_gimple_reference): Verify MEM_REF.
14519 (verify_gimple_assign_single): Disallow INDIRECT_REF.
14521 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
14523 (mark_address_taken): Handle MEM_REF.
14524 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
14525 (get_asm_expr_operands): Pass opf_not_non_addressable.
14526 (get_expr_operands): Handle opf_[not_]non_addressable.
14527 Handle MEM_REF. Remove INDIRECT_REF handling.
14528 * tree-vrp.c (check_array_ref): Handle MEM_REF.
14529 (search_for_addr_array): Likewise.
14530 (check_array_bounds): Likewise.
14531 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
14532 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
14533 (ref_always_accessed_p): Likewise.
14534 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
14535 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
14537 * cgraphbuild.c (mark_load): Properly check for NULL result
14538 from get_base_address.
14539 (mark_store): Likewise.
14540 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
14541 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
14542 handling for MEM_REF.
14543 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
14544 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
14545 * builtins.c (stabilize_va_list_loc): Use the function ABI
14546 valist type if we couldn't canonicalize the argument type.
14547 Always dereference with the canonical va-list type.
14548 (maybe_emit_free_warning): Handle MEM_REF.
14549 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
14551 * builtins.c (fold_builtin_memory_op): Use ref-all types
14552 for all memcpy foldings.
14553 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
14554 (build_outer_var_ref): Likewise.
14555 (scan_omp_1_op): Likewise.
14556 (lower_rec_input_clauses): Likewise.
14557 (lower_lastprivate_clauses): Likewise.
14558 (lower_reduction_clauses): Likewise.
14559 (lower_copyprivate_clauses): Likewise.
14560 (expand_omp_atomic_pipeline): Likewise.
14561 (expand_omp_atomic_mutex): Likewise.
14562 (create_task_copyfn): Likewise.
14563 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
14564 Remove old union trick. Initialize constant offsets.
14565 (ao_ref_init_from_vn_reference): Likewise. Do not handle
14566 INDIRECT_REF. Init base_alias_set properly.
14567 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
14568 (vn_reference_fold_indirect): Adjust for MEM_REFs.
14569 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
14571 (may_insert): Remove.
14572 (visit_reference_op_load): Do not test may_insert.
14573 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
14574 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14575 a field to store the constant offset this op applies.
14576 (run_scc_vn): Adjust prototype.
14577 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
14578 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
14579 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
14580 bother about volatile qualifiers on pointers.
14581 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
14582 * tree-ssa-loop-ivopts.c
14583 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
14584 (strip_offset_1): Likewise.
14585 (find_interesting_uses_address): Replace INDIRECT_REF handling with
14587 (get_computation_cost_at): Likewise.
14588 * ipa-pure-const.c (check_op): Handle MEM_REF.
14589 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
14590 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
14592 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
14593 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
14594 (eliminate_local_variables_1): Likewise.
14595 (create_call_for_reduction_1): Likewise.
14596 (create_loads_for_reductions): Likewise.
14597 (create_loads_and_stores_for_name): Likewise.
14598 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
14599 (ssa_accessed_in_tree): Handle MEM_REF.
14600 (ssa_accessed_in_assign_rhs): Likewise.
14601 (update_type_size): Likewise.
14602 (analyze_accesses_for_call_stmt): Likewise.
14603 (analyze_accesses_for_assign_stmt): Likewise.
14604 (transform_access_sites): Likewise.
14605 (transform_allocation_sites): Likewise.
14606 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
14607 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14608 not handle INDIRECT_REF.
14609 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
14610 (cond_store_replacement): Likewise.
14611 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14612 MEM_REF, no not handle INDIRECT_REFs.
14613 (insert_into_preds_of_block): Properly initialize avail.
14614 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
14615 for ARRAY_REFs. Properly handle reference lookups that
14616 require a bit re-interpretation.
14617 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
14618 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
14619 (build_ref_for_offset_1): Remove.
14620 (build_ref_for_offset): Build MEM_REFs.
14621 (gate_intra_sra): Disable for now.
14622 (sra_ipa_modify_expr): Handle MEM_REF.
14623 (ipa_early_sra_gate): Disable for now.
14624 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
14626 (disqualify_base_of_expr): Likewise.
14627 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
14629 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
14630 Use mem_ref_offset. Remove bogus folding.
14631 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
14632 (make_fancy_name_1): Add support for MEM_REF.
14633 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
14634 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
14635 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
14636 (compute_complex_ancestor_jump_func): Likewise.
14637 (ipa_analyze_virtual_call_uses): Likewise.
14638 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
14639 INDIRECT_REF folding with more generalized MEM_REF folding.
14640 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
14641 (forward_propagate_addr_into_variable_array_index): Also handle
14642 &ARRAY + I in addition to &ARRAY[0] + I.
14643 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
14644 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
14645 creates assignments with overlap.
14646 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
14647 (get_frame_field): Likewise.
14648 (get_nonlocal_debug_decl): Likewise.
14649 (convert_nonlocal_reference_op): Likewise.
14650 (struct nesting_info): Add mem_refs pointer-set.
14651 (create_nesting_tree): Allocate it.
14652 (convert_local_reference_op): Insert to be folded mem-refs.
14653 (fold_mem_refs): New function.
14654 (finalize_nesting_tree_1): Perform defered folding of mem-refs
14655 (free_nesting_tree): Free the pointer-set.
14656 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
14657 (vectorizable_load): Likewise.
14658 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
14659 (propagate_with_phi): Likewise.
14660 * tree-object-size.c (addr_object_size): Handle MEM_REFs
14661 instead of INDIRECT_REFs.
14662 (compute_object_offset): Handle MEM_REF.
14663 (plus_stmt_object_size): Handle MEM_REF.
14664 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
14666 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
14667 (symbol_marked_for_renaming): Likewise.
14668 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
14669 (fold-const.o): Add $(TREE_FLOW_H).
14670 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
14671 (find_func_clobbers): Likewise.
14672 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
14673 (decompose_access): Likewise.
14674 (replace_field_acc): Likewise.
14675 (replace_field_access_stmt): Likewise.
14676 (insert_new_var_in_stmt): Likewise.
14677 (get_stmt_accesses): Likewise.
14678 (reorg_structs_drive): Disable.
14679 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
14680 (ix86_canonical_va_list_type): Likewise.
14682 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14685 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
14686 * target.def (struct gcc_target): Replace enum reg_class with
14687 reg_class_t in hook argument / return types.
14688 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
14689 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
14690 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14691 * targhooks.h (default_branch_target_register_class): Likewise.
14692 (default_ira_cover_classes, default_secondary_reload): Likewise.
14693 (default_memory_move_cost, default_register_move_cost): Likewise.
14694 * targhooks.c (default_branch_target_register_class): Likewise.
14695 (default_ira_cover_classes, default_secondary_reload): Likewise.
14696 (default_memory_move_cost, default_register_move_cost): Likewise.
14697 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
14698 * bt-load.c (branch_target_load_optimize): Likewise.
14699 * ira.c (setup_cover_and_important_classes): Likewise.
14700 * ira-costs.c (copy_cost): Likewise.
14701 * reload1.c (emit_input_reload_insns): Likewise.
14702 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14703 * config/frv/frv.c (frv_secondary_reload): Likewise.
14704 * config/s390/s390.c (s390_secondary_reload): Likewise.
14705 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
14706 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
14707 (ix86_register_move_cost): Likewise.
14708 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
14709 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
14710 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
14711 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
14712 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
14713 (rs6000_ira_cover_classes): Likewise.
14714 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
14715 * config/picochip/picochip-protos.h (picochip_secondary_reload):
14717 * config/pa/pa.c (pa_secondary_reload): Likewise.
14718 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
14719 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
14720 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
14721 * doc/tm.texi: Regenerate.
14723 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
14725 PR bootstrrap/44726
14726 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
14728 (build_alias_set_optimal_p): Likewise.
14729 (build_base_obj_set_for_drs): Likewise.
14731 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14733 * target.def: Remove comment about licensing problems of function
14736 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
14737 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
14738 * doc/tm.texi: Regenerate.
14740 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
14741 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
14743 * target.def (enum_va_list_p): Use DEFHOOK.
14744 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
14745 Rename ptype to ptree.
14746 * doc/tm.texi: Regenerate.
14748 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
14749 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
14750 * doc/tm.texi: Regenerate.
14752 * target.def (memory_move_cost): Use DEFHOOK.
14753 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
14754 Rename regclass AKA class to rclass.
14755 * doc/tm.texi: Regenerate.
14757 * target.def (pragma_parse): Use DEFHOOK.
14758 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
14759 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
14760 * doc/tm.texi: Regenerate.
14762 * target.def (pass_by_reference): Use DEFHOOK.
14763 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
14764 * doc/tm.texi: Regenerate.
14766 * target.def (resolve_overloaded_builtin): Rename params to arglist.
14768 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
14769 * doc/tm.texi: Regenerate.
14771 * target.def (return_pops_args): Use DEFHOOK.
14772 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
14773 Rename stack-size to size.
14774 * doc/tm.texi: Regenerate.
14776 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
14777 last-sched_cycle to last_clock, cur_cycle to clock.
14778 * doc/tm.texi.in: Use @hook.
14779 * doc/tm.texi: Regenerate.
14781 * target.def (print_operand, print_operand_address): Update comment.
14782 (print_operand_punct_valid_p): Likewise.
14784 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14786 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
14788 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
14789 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
14790 * rtl-error.h: New.
14791 * regrename.c: Do not include toplev.h. Include rtl-error.h.
14792 * rtl-error.c: Likewise.
14793 * reload.c: Likewise.
14794 * recog.c: Likewise.
14795 * sel-sched.c: Likewise.
14796 * function.c: Likewise.
14797 * reg-stack.c: Likewise.
14798 * cfgrtl.c: Likewise.
14799 * reload1.c: Likewise.
14800 * final.c: Include rtl-error.
14801 * Makefile.in: Adjust dependencies.
14803 2010-06-30 Jan Hubicka <jh@suse.cz>
14805 PR middle-end/PR44706
14806 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
14807 to return the value.
14809 2010-06-30 Michael Matz <matz@suse.de>
14812 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
14813 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
14814 a gimple reg, attach the original VDEF to the last store in the
14817 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
14820 * config/darwin.c (darwin_override_options): Use renamed
14821 targetm.asm_out.emit_unwind_label.
14823 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14825 PR tree-optimization/39799
14826 * tree-inline.c (remap_ssa_name): Initialize variable only if
14827 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14829 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
14831 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
14833 2010-06-30 Richard Guenther <rguenther@suse.de>
14836 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
14837 against oscillation with reverse peephole2.
14839 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
14842 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14845 2010-06-30 Nick Clifton <nickc@redhat.com>
14847 * config/rx/rx-modes.def: New file.
14848 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
14849 (CC_REGNUM): Define.
14850 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
14852 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
14853 (SELECT_CC_MODE): Define.
14854 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
14855 (reg:CC CC_REG) instead of (cc0).
14856 (attr "cc"): Delete.
14857 (cbranchsi4): Do not split compare and branch here. Instead move
14859 (cbranchsi4_<code>): ... here. New patterns.
14860 (cmpsi): Call rx-compare_redundant to find out if it is necessary
14861 to emit the compare instruction.
14862 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
14864 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
14865 FIRST_PSEUDO_REGNUM.
14866 (rx_expand_prologue, rx_expand_epilogue): Likewise.
14867 (rx_notice_update_cc): Delete.
14868 (rx_cc_modes_compatible): New function.
14869 (flags_needed_for_conditional): New function.
14870 (flags_from_mode): New function.
14871 (rx_compare_redundant): New function - scans backwards through
14872 insn list to find out if condition flags are already set correctly.
14873 (TARGET_CC_MODES_COMPATIBLE): Define.
14874 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
14876 * config/rx/rx.h (BRANCH_COST): Define.
14877 (REGISTER_MOVE_COST): Define.
14878 * config/rx/predicates (rx_source_operand): Allow all constant types.
14879 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
14880 (tstsi4): New pattern.
14881 * config/rx/rx.c (rx_memory_move_cost): Define.
14882 (TARGET_MEMORY_MOVE_COST): Define.
14884 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14886 * tree.h (block_may_fallthru): Declare here.
14887 * tree-flow.h (block_may_fallthru): Do not declare here.
14888 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
14890 * Makefile.in (c-typeck.o): Update dependencies.
14892 2010-06-30 Jakub Jelinek <jakub@redhat.com>
14895 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
14896 * cselib.c (cfa_base_preserved_regno): New static variable.
14897 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
14898 of REGNO (cfa_base_preserved_val->locs->loc).
14899 (cselib_preserve_cfa_base_value): Add regno argument, set
14900 cfa_base_preserved_regno to it.
14901 (cselib_invalidate_regno): Allow removal of registers other than
14902 cfa_base_preserved_regno from cfa_base_preserved_val.
14903 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
14904 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
14905 of MEM addresses, if not on LHS.
14906 (reverse_op): Don't add reverse ops for cfa_base_rtx.
14907 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
14909 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14911 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
14913 (peep2_buf_position): New static function.
14914 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
14915 peephole2_optimize): Use it.
14916 (peep2_attempt, peep2_update_life): New static functions, broken out
14917 of peephole2_optimize.
14918 (peep2_fill_buffer): New static function.
14919 (peephole2_optimize): Change the main loop to try to fill the buffer
14920 with the maximum number of insns before matching them against
14921 peepholes. Use a forward scan. Remove special case for targets with
14922 conditional execution.
14923 * genrecog.c (change_state): Delete dead code.
14924 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14925 Rewrite so as not to expect the second insn to have had a peephole
14928 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14930 * genhooks.c (emit_findices): Cast field precision to int.
14931 (emit_documentation): Likewise.
14933 2010-06-29 Jakub Jelinek <jakub@redhat.com>
14935 PR tree-optimization/43801
14936 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
14937 if old_decl was DECL_ONE_ONLY.
14940 * dwarf2out.c (add_accessibility_attribute): New function.
14941 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
14942 instead of adding DW_AT_accessibility manually.
14943 (gen_enumeration_type_die, gen_struct_or_union_type_die,
14944 gen_typedef_die): Use it.
14946 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14948 * vmsdbgout.c (full_name): Just output the file name if not native.
14950 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14952 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
14953 (funcnam_table): New static table.
14954 (funcnum_table): New static table.
14955 (write_rtnbeg): Write value saved in funcnum_table.
14956 (write_rtnend): Write value saved in funcnum_table.
14957 (vmsdbgout_begin_function): Save current function info in
14958 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
14959 (vmsdbgout_finish): Iterate over funcnum_table.
14961 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14963 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
14964 (vmsdbgout_type_decl): Declare
14965 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
14966 (FUNC_EPILOGUE_LABEL): New macro
14967 (vmsdbgout_begin_epilogue): New function.
14968 (vmsdbgout_type_decl): New function.
14970 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14972 * vmsdbg.h: Update copyright.
14974 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14976 * vmsdbg.h (DST_K_TBG): New DST constant.
14977 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
14978 (write_modbeg): Cast module_language to avoid warning.
14979 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
14981 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14984 * target.def, doc/tm.texi.in, genhooks.c: New files.
14985 * target.h: Instead of defining individual hook members,
14986 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
14987 include target.def.
14988 * target-def.h: Instead of defining individual hook initializers,
14989 include target-hooks-def.h.
14990 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
14991 targetm.live_on_entry -> targetm.extra_live_on_entry
14992 targetm.sched.md_finish ->targetm.sched.finish
14993 targetm.sched.md_init -> targetm.sched.init
14994 targetm.sched.md_init_global -> targetm.sched.init_global
14995 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
14996 targetm.asm_out.except_table_label ->
14997 targetm.asm_out.emit_except_table_label
14998 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
14999 targetm.target_help -> targetm.help
15000 targetm.vectorize.builtin_support_vector_misalignment ->
15001 targetm.vectorize.support_vector_misalignment
15002 targetm.file_start_app_off -> targetm.asm_file_start_app_off
15003 targetm.file_start_file_directive ->
15004 targetm.asm_file_start_file_directive
15005 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
15006 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
15007 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
15008 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
15009 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
15010 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
15011 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
15012 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
15013 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
15014 * Makefile.in (TARGET_H): Depend on target.def.
15015 (TARGET_DEF_H): Depend on target-hooks-def.h.
15016 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
15017 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
15018 * doc/tm.texi: Regenerate.
15020 * Makefile.in (s-tm-texi): Remove stray tab / rule.
15022 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
15023 (targetm.sched.init): Likewise.
15025 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
15028 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
15029 (function_arg_advance_32): Const-ify TYPE parameter.
15030 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
15031 (ix86_function_arg_advance): Change type of NAMED to bool.
15032 (function_arg_32): Const-ify CUM and TYPE parameters.
15033 (function_arg_64): Likewise. Change type of NAMED to bool.
15034 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
15036 (ix86_function_arg): Change type of NAMED to bool.
15037 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
15038 last argument as a bool.
15040 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
15042 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
15043 (OVERRIDE_OPTIONS): Add note of obsolescence.
15044 Replace references with references to TARGET_OPTION_OVERRIDE.
15045 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
15047 * targhooks.c (default_target_option_override): New function.
15048 * targhooks.h (default_target_option_override): Declare.
15049 * target.h (struct gcc_target): Add override member to
15050 target_option member.
15051 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
15052 targetm.target_option.override call.
15053 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
15054 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
15056 2010-06-29 Jan Hubicka <jh@suse.cz>
15058 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
15060 2010-06-29 Jan Hubicka <jh@suse.cz>
15062 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
15064 (rebuild_frequencies): New function.
15065 * predict.h (rebuild_frequencies): Declare.
15066 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
15067 entry block and edge reaching new_entry.
15068 (tree_function_versioning): When doing partial cloning, rebuild
15069 frequencies when done.
15070 * passes.c (execute_function_todo): Use rebild_frequencies.
15072 2010-06-29 Richard Guenther <rguenther@suse.de>
15074 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
15075 * tree-flow.h (enum noalias_state): Remove.
15076 (struct var_ann_d): Remove noalias_state member.
15078 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
15081 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
15082 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
15083 (maddhidi4): Likewise.
15085 Revert parts of the change for PR25130.
15086 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
15089 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
15091 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
15092 targetm.calls.function_incoming_arg, and
15093 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
15094 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
15095 * target.h (struct gcc_target): Add function_arg_advance,
15096 function_arg, and function_incoming_arg fields.
15097 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
15098 (TARGET_FUNCTION_INCOMING_ARG): Define.
15099 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
15100 and TARGET_FUNCTION_INCOMING_ARG.
15101 * targhooks.h (default_function_arg_advance): Declare.
15102 (default_function_arg, default_function_incoming_arg): Declare.
15103 * targhooks.c (default_function_arg_advance): New function.
15104 (default_function_arg, default_function_incoming_arg): New function.
15105 * config/i386/i386.c (function_arg_advance): Rename to...
15106 (ix86_function_arg_advance): ...this. Make static.
15107 (function_arg): Rename to...
15108 (ix86_function_arg): ...this. Make static.
15109 (TARGET_FUNCTION_ARG_ADVANCE): Define.
15110 (TARGET_FUNCTION_ARG): Define.
15111 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
15112 (FUNCTION_ARG): Delete.
15113 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
15114 (function_arg): Delete prototype.
15116 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
15118 * reginfo.c (init_reg_sets_1): Adjust comments.
15119 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
15120 * calls.c (prepare_call_address): Likewise.
15121 (emit_call_1): Use targetm.calls.return_pops_args.
15122 (expand_call): Likewise.
15123 * function.c (assign_parms): Likewise.
15124 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
15125 * target.h (struct gcc_target) [struct calls]: Add
15126 return_pops_args field.
15127 * targhooks.h (default_return_pops_args): Declare.
15128 * targhooks.c (default_return_pops_args): Define.
15129 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
15130 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
15131 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
15132 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
15134 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
15135 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
15136 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
15137 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
15138 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
15139 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
15140 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
15141 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
15142 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
15143 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
15144 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
15145 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
15146 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
15147 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
15148 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
15149 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
15150 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
15151 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
15152 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
15153 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
15154 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
15155 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
15156 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
15157 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
15158 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
15159 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
15160 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
15161 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
15162 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
15163 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
15164 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
15165 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
15166 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
15167 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
15168 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
15169 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
15170 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
15171 * config/i386/i386.c (ix86_return_pops_args): Make static.
15172 Constify arguments.
15173 (TARGET_RETURN_POPS_ARGS): Define.
15174 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
15175 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
15176 (TARGET_RETURN_POPS_ARGS): Define.
15177 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
15178 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
15179 (TARGET_RETURN_POPS_ARGS): Define.
15181 2010-06-29 Richard Guenther <rguenther@suse.de>
15183 PR middle-end/44667
15184 * tree-inline.c (initialize_inlined_parameters): Make sure
15185 to remap the inlined parameter variable substitutions types.
15187 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
15189 PR rtl-optimization/44659
15190 * combine.c (make_compound_operation) <SUBREG>: Do not return the
15191 result of force_to_mode if it partially re-expanded the compound.
15193 2010-06-28 Jan Hubicka <jh@suse.cz>
15195 PR middle-end/44671
15196 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
15199 2010-06-28 Anatoly Sokolov <aesok@post.ru>
15201 * double-int.h (force_fit_type_double): Remove declaration.
15202 * double-int.c (force_fit_type_double): Move to tree.c.
15203 * tree.h (force_fit_type_double): Declare.
15204 * tree.h (force_fit_type_double): Moved from double-int.c. Use
15205 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
15206 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
15207 * convert.c (convert_to_pointer): Adjust call to
15208 force_fit_type_double.
15209 * tree-vrp.c (extract_range_from_assert,
15210 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
15211 * fold-const.c: Update comment.
15212 (int_const_binop, fold_convert_const_int_from_int,
15213 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
15214 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
15215 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
15216 round_up_loc): Adjust call to force_fit_type_double.
15218 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15220 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
15222 2010-06-28 Martin Jambor <mjambor@suse.cz>
15224 * tree-sra.c (convert_callers): New parameter, change fndecls of
15226 (modify_function): Pass the old decl to convert_callers.
15228 2010-06-28 Martin Jambor <mjambor@suse.cz>
15230 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
15231 ipa_check_create_node_params and ipa_initialize_node_params with
15232 checking asserts they are not necessary.
15234 2010-06-28 Jan Hubicka <jh@suse.cz>
15236 PR tree-optimization/44687
15237 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
15239 2010-06-28 Martin Jambor <mjambor@suse.cz>
15242 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
15243 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
15244 instead of BINFO_BASE_BINFO.
15246 2010-06-28 Michael Matz <matz@suse.de>
15248 PR middle-end/44592
15249 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
15250 proper VDEF chain for intermediate stores in the sequence.
15252 2010-06-28 Jan Hubicka <jh@suse.cz>
15254 PR tree-optimization/44357
15255 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
15256 uninlinable functions.
15258 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15260 * config.gcc (powerpc*-*-*): Handle titan.
15261 * config/rs6000/rs6000.c (titan_cost): New costs.
15262 (rs6000_override_options): Add "titan" to processor_target_table.
15263 Add Titan to branch alignment logic.
15264 Correctly set rs6000_cost for titan.
15265 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
15266 * config/rs6000/titan.md: New file.
15267 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
15269 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
15271 * tree-browser.c (TB_history_stack): Convert to a VEC.
15272 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
15273 (TB_history_prev): Likewise.
15275 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
15277 * vec.h (vec_heap_free): Add parentheses around free.
15279 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
15281 * system.h: Poison GCC_EXCEPT_H for front-end files.
15283 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
15285 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
15286 Define to NULL by default.
15287 * except.h: Define GCC_EXCEPT_H.
15288 (doing_eh): Remove prototype.
15289 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
15290 (lang_protect_cleanup_actions): Remove.
15291 * except.c (lang_protect_cleanup_actions): Remove.
15292 (doing_eh): Remove.
15293 (gen_eh_region): Don't check doing_eh here.
15294 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
15295 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
15296 instead of lang_protect_cleanup_actions.
15297 * omp-low.c (maybe_catch_exception): Likewise.
15298 * Makefile.in: Update dependencies.
15300 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
15302 * cgraph.h (struct varpool_node): new used_from_object_file flag.
15303 (struct cgraph_local_info): new used_from_object_file flag.
15304 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
15305 (cgraph_clone_node): initialize used_from_object_file.
15306 (cgraph_create_virtual_clone): initialize used_from_object_file.
15307 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
15308 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
15309 when compiling with -fwhole-program.
15310 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
15312 * ipa.c (function_and_variable_visibility): Set externally_visible
15313 flag of varpool_node if used_from_object_file flag is set.
15314 (cgraph_externally_visible_p): check used_from_object_file flag.
15315 * doc/invoke.texi (-fwhole-program option): Change description of
15316 externally_visible attribute accordingly.
15317 * doc/extend.texi (externally_visible): Ditto.
15319 2010-06-27 Jan Hubicka <jh@suse.cz>
15321 * params.def (max-inline-insns-auto): Default to 40.
15322 * doc/invoke.texi (max-inline-insns-auto): Document the change.
15324 2010-06-27 Jan Hubicka <jh@suse.cz>
15326 PR middle-end/44671
15327 PR middle-end/44686
15328 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
15330 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
15331 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15333 2010-06-27 Anatoly Sokolov <aesok@post.ru>
15335 * target.h (struct gcc_target): Add register_move_cost field.
15336 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
15337 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
15338 * targhooks.c (default_register_move_cost): New function.
15339 * targhooks.h (default_register_move_cost): Declare function.
15340 * defaults.h (REGISTER_MOVE_COST): Delete.
15341 * ira-int.h (ira_register_move_cost): Update comment.
15342 * ira.c (ira_register_move_cost): Update comment.
15343 * reload.h (register_move_cost): Declare.
15344 * reginfo.c (register_move_cost): New function.
15345 (move_cost): Update comment.
15346 (init_move_cost, memory_move_secondary_cost): Replace
15347 REGISTER_MOVE_COST with register_move_cost.
15348 * postreload.c (reload_cse_simplify_set): (Ditto.).
15349 * reload.c (find_valid_class, find_reloads): (Ditto.).
15350 * reload1.c (choose_reload_regs): (Ditto.).
15351 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
15352 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
15353 * doc/md.texi (can_create_pseudo_p): Update documentation.
15355 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15356 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15357 * config/i386/i386.h (ix86_memory_move_cost): Make static.
15358 (TARGET_MEMORY_MOVE_COST): Define.
15360 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15361 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
15362 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
15363 (TARGET_MEMORY_MOVE_COST): Define.
15365 2010-06-27 Richard Guenther <rguenther@suse.de>
15367 PR tree-optimization/44683
15368 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
15369 false edge from the inverted condition.
15371 2010-06-27 Richard Guenther <rguenther@suse.de>
15373 PR middle-end/44684
15374 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
15375 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
15376 for register LHS. Or non-store assignments.
15378 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
15380 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
15381 (sparc_emit_set_const64): Likewise. Remove disabled code.
15382 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
15383 (sparc_emit_set_const64): Likewise.
15385 2010-06-26 Catherine Moore <clm@codesourcery.com>
15387 * config/mips/mips.md (alu_type): New attribute.
15388 (type): Infer type from alu_type.
15389 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
15390 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
15391 *subsi3_extended, negsi2, negdi2, *low<mode>,
15392 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
15393 xor<mode>3, *nor<mode>3,
15394 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
15395 *zero_extendhi_truncqi): Set alu_type instead of type.
15397 2010-06-26 Douglas B Rupp <rupp@gnat.com>
15399 * config/alpha/alpha.c (alpha_need_linkage): Adjust
15400 splay_tree_new_ggc call.
15401 (alpha_use_linkage): Likewise.
15403 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15405 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
15406 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
15407 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
15408 (static_specs): Remove switches_need_spaces.
15409 (process_command, do_self_spec): Hardcode handling "-o" instead of
15410 checking switches_need_spaces.
15411 * system.h (SWITCHES_NEED_SPACES): Poison.
15413 2010-06-26 Richard Guenther <rguenther@suse.de>
15415 PR tree-optimization/44393
15416 * tree-loop-distribution.c (generate_loops_for_partition): Fix
15417 stmt removal and VOP renaming.
15418 (generate_memset_zero): Remove redundant stmt updating.
15419 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
15420 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
15422 2010-06-26 Jan Hubicka <jh@suse.cz>
15424 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
15425 edges comming from header are equivalent.
15426 (visit_bb): Handle PHIs correctly.
15427 * tree-inline.c (copy_phis_for_bb): Be able to copy
15428 PHI from entry edge.
15429 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
15431 2010-06-26 Richard Guenther <rguenther@suse.de>
15433 PR middle-end/44674
15434 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
15435 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
15437 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15439 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
15440 add_infile, alloc_switch): New.
15441 (process_command): Remove variable lang_n_infiles. Process
15442 options in a single pass. Use new functions for allocating
15443 infiles and switches arrays. Properly skip operands of
15444 -Xpreprocessor and -Xassembler.
15446 2010-06-26 Jan Hubicka <jh@suse.cz>
15448 PR middle-end/44671
15449 * cgraphunit.c (cgraph_function_versioning): Remove wrong
15450 cgraph_make_decl_local call; fix typo copying RTL data.
15452 2010-06-25 DJ Delorie <dj@redhat.com>
15454 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
15455 (m32c_output_aligned_common): Likewise.
15456 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15457 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15458 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
15459 (m32c_register_pragmas): Register it.
15460 * config/m32c/m32c.c (m32c_get_pragma_address): New.
15461 (m32c_insert_attributes): Set #pragma address decls volatile.
15462 (pragma_entry_eq): New.
15463 (pragma_entry_hash): New.
15464 (m32c_note_pragma_address): New.
15465 (m32c_get_pragma_address): New.
15466 (m32c_output_aligned_common): New.
15467 * doc/extend.texi: Document the new pragma.
15469 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
15471 * config/m32c/predicates.md (m32c_any_operand): Check the code
15472 instead of memory_operand so as to allow matching volatile MEMs.
15473 (m32c_nonimmediate_operand): Likewise.
15474 (mra_operand): Allow volatiles.
15476 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
15479 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
15480 address if the offset is unknown.
15482 2010-06-25 Douglas B Rupp <rupp@gnat.com>
15484 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
15485 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
15486 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
15487 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
15488 to ia64_start_function. Invoke it.
15489 * config/ia64/ia64.c (ia64_start_function): Call new function
15490 dwarf2out_vms_debug_main_pointer.
15492 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15494 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
15495 statements computing the true predicate.
15497 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15499 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
15500 to boolean_true_node.
15501 (reset_bb_predicate): New.
15502 (predicate_bbs): Call reset_bb_predicate.
15504 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15506 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
15507 (tree_if_conversion): Returns true when something has been changed.
15508 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
15511 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15513 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
15514 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
15515 * tree-if-conv.c: Include dbgcnt.h.
15516 (tree_if_conversion): Use if_conversion_tree to count the number of
15517 if-convertible loops.
15519 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
15521 * common.opt (fprefetch-loop-arrays): Re-define
15522 -fprefetch-loop-arrays as a tri-state option with the initial
15524 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
15525 pass only when flag_prefetch_loop_arrays > 0.
15526 * toplev.c (process_options): Note that, with tri-states,
15527 flag_prefetch_loop_arrays>0 means prefetching is enabled.
15528 * config/i386/i386.c (override_options): Enable prefetching at -O3
15529 for a set of CPUs that sw prefetching is helpful.
15530 (software_prefetching_beneficial_p): New. Return TRUE if software
15531 prefetching is beneficial for the given CPU.
15533 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
15535 PR rtl-optimization/44326
15536 * implicit-zee.c (find_removable_zero_extends): Replace
15537 INSN_P with NONDEBUG_INSN_P.
15539 2010-06-25 Martin Jambor <mjambor@suse.cz>
15541 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
15542 (struct ipa_node_params): Removed the modification_analysis_done flag.
15543 (ipa_is_param_modified): Removed.
15544 (ipa_analyze_node): Declare.
15545 (ipa_compute_jump_functions): Remove declaration.
15546 (ipa_count_arguments): Likewise.
15547 (ipa_detect_param_modifications): Likewise.
15548 (ipa_analyze_params_uses): Likewise.
15549 * ipa-prop.c (struct param_analysis_info): New type.
15550 (visit_store_addr_for_mod_analysis): Removed.
15551 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
15552 moved down in the file.
15553 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
15554 (ipa_count_arguments): Made static.
15555 (mark_modified): New function.
15556 (is_parm_modified_before_call): New function.
15557 (compute_pass_through_member_ptrs): New parameter parms_info, call
15558 is_parm_modified_before_call instead of ipa_is_param_modified.
15559 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
15560 it to compute_pass_through_member_ptrs.
15561 (ipa_compute_jump_functions): New parameter parms_info, pass it to
15562 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
15563 on the callee if it is analyzed. Made static.
15564 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
15565 is_parm_modified_before_call instead of ipa_is_param_modified.
15566 (ipa_analyze_call_uses): New parameter parms_info, pass it to
15567 ipa_analyze_indirect_call_uses.
15568 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
15569 ipa_analyze_call_uses.
15570 (ipa_analyze_params_uses): New parameter parms_info, pass it to
15571 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
15572 (ipa_analyze_node): New function.
15573 (ipa_print_node_params): Do not dump the modified flag.
15574 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
15575 it. Do not stream the modified parameter flag.
15576 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
15577 it. Do not stream the modified parameter flag.
15578 * ipa-cp.c (ipcp_analyze_node): Removed.
15579 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
15580 with only a call to ipa_analyze_node.
15581 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
15582 node with only a call to ipa_analyze_node.
15584 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15586 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
15588 2010-06-25 Jan Hubicka <jh@suse.cz>
15590 * tree-pass.h (pass_split_functions): Declare.
15591 * opts.c (decode_options): Enable function splitting at -O2
15592 * timevar.def (TV_IPA_FNSPLIT): New macro.
15593 * ipa-split.c: New file.
15594 * common.opt (-fpartial-inlining): New flag.
15595 * Makefile.in (ipa-split.o): New object file.
15596 * passes.c (init_optimization_passes): Add ipa-split.
15597 * params.def (partial-inlining-entry-probability): New parameters.
15598 * doc/invoke.texi (-fpartial-inlining): New.
15600 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15603 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
15604 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
15605 (gimplify_expr): Likewise.
15607 2010-06-25 Martin Jambor <mjambor@suse.cz>
15609 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
15610 statements instead of bailing out on them.
15611 (ipa_analyze_indirect_call_uses): Do not require that loads from the
15612 parameter are in the same BB as the condition. Update comments.
15614 2010-06-25 Jakub Jelinek <jakub@redhat.com>
15616 PR middle-end/43866
15617 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
15618 true or always false, return NULL_TREE.
15619 (tree_unswitch_single_loop): Optimize conditions even when reaching
15620 max-unswitch-level parameter. If num > 0, optimize first all conditions
15621 using entry checks, then do still reachable block discovery and consider
15622 only conditions in still reachable basic blocks in the loop.
15624 PR tree-optimization/44539
15625 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
15626 the call doesn't have LHS, but has VDEF.
15628 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15630 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
15631 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
15632 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
15633 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
15634 * system.h (MODIFY_TARGET_NAME): Poison.
15636 2010-06-25 Alan Modra <amodra@gmail.com>
15638 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
15639 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
15640 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15641 CMODEL_LARGE as default.
15642 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
15643 (offsettable_ok_by_alignment): Delete.
15644 (rs6000_emit_move): Remove mcmodel=medium optimization.
15646 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15648 With large parts from Jim Wilson:
15650 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
15651 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15652 * optabs.c (optab_for_tree_code): Likewise.
15653 (expand_widen_pattern_expr): Likewise.
15654 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
15655 out of execute_optimize_widening_mul.
15656 (convert_plusminus_to_widen): New function.
15657 (execute_optimize_widening_mul): Use the two new functions.
15658 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
15659 Remove code to generate widening multiply-accumulate. Add support
15660 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15661 * gimple-pretty-print.c (dump_ternary_rhs): New function.
15662 (dump_gimple_assign): Call it when appropriate.
15663 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
15664 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
15665 (expand_gimple_stmt_1): Likewise.
15666 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
15667 WIDEN_MULT_MINUS_EXPR.
15668 * tree-ssa-operands.c (get_expr_operands): Likewise.
15669 * tree-inline.c (estimate_operator_cost): Likewise.
15670 * gimple.c (extract_ops_from_tree_1): Renamed from
15671 extract_ops_from_tree. Add new arg for a third operand; fill it.
15672 (gimple_build_assign_stat): Support operations with three operands.
15673 (gimple_build_assign_with_ops_stat): Likewise.
15674 (gimple_assign_set_rhs_from_tree): Likewise.
15675 (gimple_assign_set_rhs_with_ops_1): Renamed from
15676 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
15677 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
15678 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
15679 WIDEN_MULT_MINUS_EXPR.
15680 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
15681 (extract_ops_from_tree_1): Adjust declaration.
15682 (gimple_assign_set_rhs_with_ops_1): Likewise.
15683 (gimple_build_assign_with_ops): Pass NULL for last operand.
15684 (gimple_build_assign_with_ops3): New macro.
15685 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
15686 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
15688 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
15689 (verify_gimple_assign): Call it.
15690 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
15691 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
15692 functions for dealing with three-operand statements.
15693 * tree.c (commutative_ternary_tree_code): New function.
15694 * tree.h (commutative_ternary_tree_code): Declare it.
15695 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
15696 ternary statements.
15697 (gimple_assign_nonzero_warnv_p): Likewise.
15698 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
15699 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
15700 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
15701 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
15702 (struct hashtable_expr): New member ternary in the union.
15703 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
15704 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
15705 (iterative_hash_hashable_expr): Likewise.
15706 (print_expr_hash_elt): Handle EXPR_TERNARY.
15707 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
15708 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
15709 statements. Handle GIMPLE_TERNARY_RHS.
15711 2010-06-25 Jan Hubicka <jh@suse.cz>
15713 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
15715 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
15718 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
15719 parameters are not good.
15720 (c_parser_parameter_declaration): Error unknown type name if the type
15721 name can't start declaration specifiers.
15723 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15725 * gcc.c (translate_options): Don't mention +e in comment.
15726 (process_command): Don't handle +e specially.
15728 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15730 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
15732 * ira-build.c (merge_hard_reg_conflicts): New function.
15733 (create_cap_allocno, copy_info_to_removed_store_destinations,
15734 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
15735 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
15736 (remove_unnecessary_allocnos, remove_low_level_allocnos)
15737 copy_nifo_to_removed_store_destination): Use them.
15738 * ira-lives.c (make_hard_regno_born): New function, split out of
15740 (make_allocno_born): Likewise.
15741 (make_hard_regno_dead): New function, split out of make_regno_dead.
15742 (make_allocno_dead): Likewise.
15743 (inc_register_pressure): New function, split out of set_allocno_live.
15744 (dec_register_pressure): New function, split out of clear_allocno_live.
15745 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
15746 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
15747 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
15748 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
15749 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
15750 mark_pseudo_regno_live.
15751 (process_bb_node_lives): Use mark_pseudo_regno_live,
15752 make_hard_regno_born and make_allocno_dead.
15753 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
15754 set_allocno_live, clear_allocno_live): Delete functions.
15756 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
15757 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
15759 (ira_flattening): Use ira_parent_allocno.
15760 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
15761 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
15763 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
15766 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
15767 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
15768 minmax_set_iter_cond, minmax_set_iter_next,
15769 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
15770 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
15771 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
15772 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
15775 * ira-int.h (struct live_range, live_range_t): Renamed from struct
15776 ira_allocno_live_range and allocno_live_range_t; all uses changed.
15777 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
15780 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
15782 * thumb2.md (thumb2_tlobits_cbranch): Delete.
15783 (peephole2 to convert zero_extract/compare of single bit to
15784 lshift/compare): New.
15786 2010-06-24 Anatoly Sokolov <aesok@post.ru>
15788 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
15789 recursive call and call to 'int_const_binop'.
15790 (build_range_check, fold_cond_expr_with_comparison, unextend,
15791 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
15792 multiple_of_p): Adjust call to const_binop.
15794 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
15796 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
15797 determine size of XFmode operand.
15798 (XFmode extended DFmode push splitter): Ditto.
15799 (XFmode extended SFmode push splitter): Ditto.
15801 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
15804 * config/i386/i386.md (extract_code): New.
15805 (<u>divmodqi4): Likewise.
15806 (divmodhiqi3): Likewise.
15807 (udivmodhiqi3): Likewise.
15808 (<u>divqi3): Remvoved.
15810 2010-06-24 Jakub Jelinek <jakub@redhat.com>
15812 PR middle-end/44492
15813 * recog.h (struct recog_data): Add is_asm field.
15814 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
15815 present in constraints of inline-asm operand and memory operand
15816 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
15817 (extract_insn): Initialize recog_data.is_asm.
15818 * doc/md.texi (Constraints): Document operand side-effect rules.
15820 2010-06-24 Andi Kleen <ak@linux.intel.com>
15822 * c-parser.c (c_parser_conditional_expression): Call
15823 warn_for_omitted_condop.
15824 * doc/invoke.texi: Document omitted condop warning.
15826 2010-06-24 Nick Clifton<nickc@redhat.com>
15828 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
15829 insn in the sequence is a jump insn before setting its label.
15831 2010-06-24 Alan Modra <amodra@gmail.com>
15833 * collect2.c (main): Match exactly --version and --help.
15835 2010-06-24 DJ Delorie <dj@redhat.com>
15837 * config/m32c/m32c-pragma.c: Don't include rtl.h.
15839 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
15841 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
15842 using X87MODEF mode iterator.
15843 (pushsf splitter): Macroize splitter using P mode iterator.
15844 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
15847 (*movxf_internal): Rename from *movxf_integer.
15848 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
15849 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
15850 (*movdf_internal): Rename from *movdf_integer.
15851 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
15852 (*movsf_internal): Rename from *movdf_1.
15854 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
15856 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
15857 (const_gimple_seq_node): Removed typedefs.
15859 * gimple.h (gimple_seq_node_d, gimple_seq_node)
15860 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
15862 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
15864 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
15865 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
15866 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
15867 and CODE_FOR_vec_extract_lo_v4df.
15869 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
15870 Changed to define_insn_and_split.
15871 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
15872 (vec_extract_lo_v16hi): Likewise.
15873 (vec_extract_lo_v32qi): Likewise.
15874 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
15875 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
15877 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
15880 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
15881 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
15882 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
15883 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
15884 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
15887 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
15890 * df-core.c (struct df): Rename to df_d.
15891 * df.h (struct df): Likewise.
15892 * dse.h (struct df): Remove forward declaration.
15893 * recog.h (struct insn_data): Rename to:
15894 (struct_insn_data_d). Adjusted all users.
15896 2010-06-23 Arnaud Charlet <charlet@adacore.com
15899 * doc/install.texi: Update requirements to build GNAT.
15901 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
15903 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
15905 (m68k_sched_attr_opx_type): Remove unreachable return.
15906 (m68k_sched_attr_opy_type): Likewise.
15907 (m68k_sched_attr_size): Likewise.
15908 (sched_get_opxy_mem_type): Likewise.
15909 (m68k_sched_attr_op_mem): Likewise.
15911 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
15913 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
15914 new statement and adjust VDEF only if necessary. Remove superfluous
15915 call to maybe_clean_or_replace_eh_stmt.
15916 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
15918 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
15919 * tree-inline.c (copy_bb): ...and not there.
15921 2010-06-22 Cary Coutant <ccoutant@google.com>
15923 * dwarf2out.c (is_nested_in_subprogram): New function.
15924 (should_move_die_to_comdat): Use it.
15925 (copy_ancestor_tree): Don't mark DIEs here.
15926 (copy_decls_walk): Start walk from root of newly-added tree;
15927 mark DIEs here instead.
15929 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
15931 * config/i386/i386.md (unit): Also check sseishft1.
15933 2010-06-22 Jan Hubicka <jh@suse.cz>
15935 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
15938 2010-06-22 Jan Hubicka <jh@suse.cz>
15940 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
15941 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
15942 Return true if something changed.
15943 * df.h (df_confluence_function_n): Return bool.
15944 * df-core.c (df_worklist_propagate_forward,
15945 df_worklist_propagate_backward): Track changes and ages.
15946 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
15948 * dse.c (dse_confluence_n): Return always true.
15950 2010-06-22 Jan Hubicka <jh@suse.cz>
15952 * bitmap.c (bitmap_clear_bit): Micro optimize.
15954 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
15956 * config/i386/i386.md (SWI1248x): New mode iterator.
15961 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
15962 SWI1248x mode iterator.
15963 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
15964 using SWI124 mode iterator.
15965 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
15967 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
15968 *pushdi2_prologue_rex64 using P mode iterator.
15969 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
15970 using SWI48 mode iterator.
15971 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
15972 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
15973 using SWI1248x mode iterator.
15974 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
15975 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
15976 SWI48 mode iterator.
15977 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
15979 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
15980 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
15981 SWI12 mode iterator.
15982 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
15983 SWI12 mode iterator.
15984 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
15985 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
15986 SWI24 mode iterator.
15987 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
15988 SWI48 mode iterator.
15989 (mov<mode>_insn_1): New expander.
15990 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
15991 using SWI48x mode iterator.
15993 (*movoi_internal_avx): Rename from *movoi_internal.
15994 (*movti_internal_rex64): Rename from *movti_rex64.
15995 (*movti_internal_sse): Rename from *movti_sse.
15996 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
15997 (*movdi_internal): Rename from *movdi_2.
15998 (*movsi_internal): Rename from *movsi_1.
15999 (*movhi_internal): Rename from *movhi_1.
16000 (*movqi_internal): Rename from *movqi_1.
16002 (insv): Update the call to gen_movsi_insv_1 for rename.
16003 * config/i386/i386.c (promote_duplicated_reg): Ditto.
16005 2010-06-22 Jan Hubicka <jh@suse.cz>
16007 * passes.c (execute_function_todo): Move call of statistics_fini_pass
16009 (execute_todo) ... this one.
16011 2010-06-22 Alan Modra <amodra@gmail.com>
16014 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16015 * caller-save.c (insert_restore, insert_save): Use non-validate
16016 form of adjust_address.
16018 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16021 * config/pa/pa.c (override_options): Disable
16022 -freorder-blocks-and-partition.
16024 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
16027 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
16029 * config/i386/i386.md (type): Add sseishft1
16031 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
16032 (ppro_insn_load): Likewise.
16033 (ppro_insn_store): Likewise.
16034 (ppro_insn_both): Likewise.
16036 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
16037 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
16039 (*vec_extractv2di_1_avx): Likewise.
16040 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
16041 type. Remove atom_unit.
16042 (*vec_extractv2di_1_sse2): Likewise.
16044 2010-06-21 DJ Delorie <dj@redhat.com>
16046 * diagnostic.h (diagnostic_classification_change_t): New.
16047 (diagnostic_context): Add history and push/pop list.
16048 (diagnostic_push_diagnostics): Declare.
16049 (diagnostic_pop_diagnostics): Declare.
16050 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
16051 from pragmas in a history chain instead of the global table.
16052 (diagnostic_push_diagnostics): New.
16053 (diagnostic_pop_diagnostics): New.
16054 (diagnostic_report_diagnostic): Scan history chain to find state
16055 of diagnostics as of the diagnostic location.
16056 * opts.c (set_option): Pass UNKNOWN_LOCATION to
16057 diagnostic_classify_diagnostic.
16058 (enable_warning_as_error): Likewise.
16059 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
16060 use in the history chain.
16061 * doc/extend.texi: Document pragma GCC diagnostic changes.
16063 2010-06-21 Jakub Jelinek <jakub@redhat.com>
16065 * dwarf2out.c (add_linkage_name): New function. Don't add
16066 anything to DW_TAG_member DIEs.
16067 (add_name_and_src_coords_attributes): Use it.
16068 (gen_variable_die): Call it for C++ static data members if
16069 specification is DW_TAG_member.
16071 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
16072 C++ char16_t and char32_t.
16074 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
16075 * genattrtab.c: Include vecprim.h.
16076 (cached_attrs, cached_attr_count, attrs_seen_once,
16077 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
16078 attrs_cached_after): New variables.
16079 (find_attrs_to_cache): New function.
16080 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
16081 (write_test_expr): Add attrs_cached argument, return it too,
16082 attempt to cache non-const attributes used more than once in
16083 a single case handling.
16084 (write_attr_get): Use find_attrs_to_cache, for caching candidates
16085 emit cached_* variables. Adjust write_attr_set callers.
16086 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
16087 to find attributes that should be cached in this block. Adjust
16088 write_test_expr callers.
16089 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
16091 (make_automaton_attrs): Adjust write_test_expr caller.
16093 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
16094 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
16095 (make_automaton_attrs): If find_tune_attr returns non-NULL,
16096 write separate internal_dfa_insn_code_* and insn_default_latency_*
16097 functions for each attribute's value and emit init_sched_attrs
16098 function and function pointers.
16099 * genattr.c (const_attrs, reservations): New variables.
16100 (gen_attr): Add const attributes to const_attrs vector.
16101 (check_tune_attr, find_tune_attr): New functions.
16102 (main): Add reservations to reservations vector. If find_tune_attr
16103 returns true, add prototype for init_sched_attrs and make
16104 internal_dfa_insn_code and insn_default_latency function pointers,
16105 otherwise define init_sched_attrs as dummy macro.
16106 * cfgexpand.c: Include insn-attr.h.
16107 (gimple_expand_cfg): Call init_sched_attrs.
16109 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
16112 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
16113 va_arg from a set of register save slots into a temporary,
16114 if the container is bigger than type size, do the copying
16115 using smaller mode or using memcpy.
16118 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
16120 (sel_print_to_dot): Remove macro.
16121 (sel_print): Likewise. New prototype.
16122 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
16123 (sel_print): New function.
16125 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16127 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
16128 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
16130 2010-06-21 Nick Clifton <nickc@redhat.com>
16132 * config/rx/rx.h (PTRDIFF_TYPE): Define.
16133 (SMALL_REGISTER_CLASS): Define (to zero).
16134 (PRINT_OPERAND): Delete.
16135 (PRINT_OPERAND_ADDRESS): Delete.
16136 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
16137 (rx_print_operand_address): Delete prototype.
16138 * config/rx/rx.c (rx_print_operand): Make static.
16139 Allow %H and %L to handle CONST_DOUBLEs.
16140 (rx_print_operand_address): Make static.
16141 (rx_gen_move_template): Rename local variable 'template' to
16143 (rx_function_arg): Do not pass unknown sized objects in registers.
16144 (TARGET_PRINT_OPERAND): Define.
16145 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16147 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16149 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
16151 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
16153 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
16154 stack-alignment for simple leaf-functions.
16156 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
16158 * doc/install.texi: Document bootstrap-lto.
16160 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
16163 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
16164 (input_function): Drop them here, if VTA is disabled.
16166 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
16169 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
16171 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
16172 ix86_swapped_fp_comparsion_operator instead of
16173 ix86_fp_comparison_operator.
16175 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
16176 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
16177 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
16178 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
16179 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
16180 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
16182 2010-06-20 Joseph Myers <joseph@codesourcery.com>
16185 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
16186 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
16187 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
16188 (decode_cmdline_option): Update for this return value. Set
16189 orig_option_with_args_text field. Set arg field for unknown
16190 options. Make static.
16191 (decode_cmdline_options_to_array): New.
16192 (prune_options): Update handling of find_opt return value.
16193 * opts.c (read_cmdline_option): Take decoded option. Return void.
16194 (read_cmdline_options): Take decoded options.
16195 (decode_options): Add parameters for decoded options. Use
16196 decode_cmdline_options_to_array. Use decoded options for -O
16197 scan. Use integral_argument for -O parameters. Update call to
16198 read_cmdline_options.
16199 (enable_warning_as_error): Update handling of find_opt return value.
16200 * opts.h: Update comment on unknown options.
16201 (struct cl_decoded_option): Update comments on opt_index and arg.
16202 Add orig_option_with_args_text.
16203 (decode_cmdline_option): Remove.
16204 (decode_cmdline_options_to_array): Declare.
16205 (decode_options): Update prototype.
16206 * toplev.c (save_argv): Remove.
16207 (save_decoded_options, save_decoded_options_count): New.
16208 (read_integral_parameter): Remove.
16209 (print_switch_values): Use decoded options.
16210 (toplev_main): Don't set save_argv. Update call to decode_options.
16211 * toplev.h (read_integral_parameter): Remove.
16212 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
16214 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
16217 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
16219 * constraints.md (Pw, Px): New constraints.
16220 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
16222 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
16224 * config/i386/sse.md (fma4modesuffixf4): Removed.
16225 (ssemodesuffixf2s): Likewise.
16226 (ssemodesuffixf4): Likewise.
16227 (ssemodesuffixf2c): Likewise.
16228 (ssescalarmodesuffix2s): Likewise.
16229 (avxmodesuffixf2c): Likewise.
16230 (ssemodesuffix): New.
16231 (ssescalarmodesuffix): Likewise.
16232 Update patterns with ssemodesuffix and ssescalarmodesuffix.
16234 2010-06-19 Philip Herron <herron.philip@googlemail.com>
16236 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
16238 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
16240 * stor-layout.c (debug_rli): Remove unused local variables.
16242 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
16244 PR rtl-optimization/40900
16245 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
16246 original expression for later reuse.
16247 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
16248 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
16250 2010-06-18 Anatoly Sokolov <aesok@post.ru>
16252 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
16253 double_int_fits_in_uhwi_p): Implement as static inline.
16254 (double_int_xor): New inline function.
16255 (double_int_lrotate, double_int_rrotate, double_int_max,
16256 double_int_umax, double_int_smax, double_int_min, double_int_umin,
16257 double_int_smin): Declare.
16258 (lrotate_double, rrotate_double): Remove declaration.
16259 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
16260 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
16261 (double_int_lrotate, double_int_rrotate, double_int_max,
16262 double_int_umax, double_int_smax, double_int_min, double_int_umin,
16263 double_int_smin): New function.
16264 * fold-const.c (int_const_binop): Clean up, use double_int_*
16266 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
16267 double_int_* and immed_double_int_const functions.
16269 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
16271 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
16272 * function.c (types_used_by_cur_var_decl): Likewise.
16273 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
16275 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
16277 * tree.h (record_layout_info): Change type of pending_statics field
16279 * stor-layout.c (start_record_layout): Store NULL into
16281 (debug_rli): Call debug_vec_tree instead of debug_tree.
16282 (place_field): Likewise.
16283 (finish_record_layout): Likewise.
16285 2010-06-18 Alan Modra <amodra@gmail.com>
16287 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
16289 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16292 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
16293 for SET source operand from SET destination operand.
16295 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
16297 PR rtl-optimization/39871
16298 * reload1.c (init_eliminable_invariants): For flag_pic, disable
16299 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
16300 (function_invariant_p): Rule out a plus of frame or arg pointer with
16302 * ira.c (find_reg_equiv_invariant_const): Likewise.
16304 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
16306 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
16307 print_operand_address and puts to output the operand for CONST.
16309 2010-06-17 Jakub Jelinek <jakub@redhat.com>
16312 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
16315 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16317 * v850-protos.h (print_operand): Delete.
16318 (print_operand_address): Delete.
16319 * v850.h (PRINT_OPERAND): Delete.
16320 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16321 (PRINT_OPERAND_ADDRESS): Delete.
16322 * v850.c (print_operand_address): Rename to...
16323 (v850_print_operand_address): ...this. Make static. Call
16324 v850_print_operand.
16325 (print_operand): Rename to...
16326 (v850_print_operand): ...this. Make static. Call
16327 v850_print_operand_address.
16328 (v850_print_operand_punct_valid_p): New function.
16329 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16330 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16332 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16334 * config/sh/sh-protos.h (print_operand): Delete.
16335 (print_operand_address): Delete.
16336 * config/sh/sh.h (PRINT_OPERAND): Delete.
16337 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16338 (PRINT_OPERAND_ADDRESS): Delete.
16339 * config/sh/sh.c (sh_print_operand_address): Make static.
16340 (sh_print_operand): Make static. Call sh_print_operand_address
16341 and sh_print_operand.
16342 (sh_print_operand_punct_valid_p): New function.
16343 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16344 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16346 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16348 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
16349 (mcore_print_operand_address): Delete.
16350 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
16351 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16352 (PRINT_OPERAND_ADDRESS): Delete.
16353 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
16354 (mcore_print_operand): Make static.
16355 (mcore_print_operand_punct_valid_p): New function.
16356 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
16357 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16359 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16361 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
16362 (print_operand_address): Delete.
16363 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
16364 (PRINT_OPERAND_ADDRESS): Delete.
16365 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
16367 (m68hc11_print_operand): Make static.
16368 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16370 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16372 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
16373 (m32r_print_operand_address): Delete.
16374 * config/m32r/m32r.h (m32r_punct_chars): Delete.
16375 (PRINT_OPERAND): Delete.
16376 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16377 (PRINT_OPERAND_ADDRESS): Delete.
16378 * config/m32r/m32r.c (m32r_punct_chars): Make static.
16379 (m32r_print_operand_address): Make static.
16380 (m32r_print_operand): Make static.
16381 (m32r_print_operand_punct_valid_p): New function.
16382 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16383 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16385 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16387 * config/iq2000/iq2000-protos.h (print_operand): Delete.
16388 (print_operand_address): Delete.
16389 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
16390 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16391 (PRINT_OPERAND_ADDRESS): Delete.
16392 (iq2000_print_operand_punct): Delete.
16393 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
16394 (iq2000_print_operand_address): Make static.
16395 (iq2000_print_operand): Make static.
16396 (iq2000_print_operand_punct_valid_p): New function.
16397 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16398 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16400 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16402 * config/frv/frv-protos.h (frv_print_operand): Delete.
16403 (frv_print_operand_address): Delete.
16404 * config/frv/frv.h (PRINT_OPERAND): Delete.
16405 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16406 (PRINT_OPERAND_ADDRESS): Delete.
16407 * config/frv/frv.c (frv_print_operand_address): Make static.
16408 (frv_print_operand): Make static.
16409 (frv_print_operand_punct_valid_p): New function.
16410 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16411 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16413 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16415 * tree.h (vec_member): Declare.
16416 * tree.c (vec_member): Define.
16418 2010-06-17 Richard Guenther <rguenther@suse.de>
16420 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
16421 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
16423 2010-06-17 Richard Guenther <rguenther@suse.de>
16425 * tree-inline.c (declare_return_variable): Remove bogus code.
16427 2010-06-17 Richard Guenther <rguenther@suse.de>
16429 * gimplify.c (gimplify_bind_expr): Always promote complex
16430 and vector variables to registers if possible.
16432 2010-06-17 Richard Guenther <rguenther@suse.de>
16434 * expr.c (get_inner_reference): Use double_int for bit_offset
16437 2010-06-16 DJ Delorie <dj@redhat.com>
16439 * common.opt (-fstrict-volatile-bitfields): new.
16440 * doc/invoke.texi: Document it.
16441 * fold-const.c (optimize_bit_field_compare): For volatile
16442 bitfields, use the field's type to determine the mode, not the
16444 * expr.c (expand_assignment): Likewise.
16445 (get_inner_reference): Likewise.
16446 (expand_expr_real_1): Likewise.
16447 * expmed.c (store_fixed_bit_field): Likewise.
16448 (extract_bit_field_1): Likewise.
16449 (extract_fixed_bit_field): Likewise.
16451 2010-06-16 Richard Guenther <rguenther@suse.de>
16453 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
16455 2010-06-16 Douglas B Rupp <rupp@gnat.com>
16457 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
16458 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
16459 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
16460 * debug.c: Likewise.
16461 * sdbout.c: Likewise.
16462 * vmsdbgout.c: Likewise.
16463 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
16464 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
16465 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
16466 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
16467 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
16468 * dwarf2out.c (dw_fde_struct): New fields
16469 dw_fde_vms_{end,begin}_prologue.
16470 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
16471 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
16472 (dwarf2out_vms_end_prologue): New function.
16473 (dwarf2out_vms_begin_epilogue): New function.
16474 (dw_val_struct): New value dw_val_class_vms_delta.
16475 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
16476 begin_epilogue for VMS.
16477 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
16478 new static functions.
16479 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
16480 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
16482 (print_die): New case dw_val_class_vms_delta.
16483 (attr_checksum): Likewise.
16484 (same_dw_val_p: Likewise.
16485 (size_of_die): Likewise.
16486 (value_format): Likewise.
16487 (output_die): Likewise.
16488 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
16489 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
16490 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
16491 dwarf2out_cfi_begin_epilogue
16492 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
16494 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16496 * config/cris/cris-protos.h (cris_print_operand): Delete.
16497 (cris_print_operand_address): Delete.
16498 * config/cris/cris.h (PRINT_OPERAND): Delete.
16499 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16500 (PRINT_OPERAND_ADDRESS): Delete.
16501 * config/cris/cris.c (cris_print_operand_address): Make static.
16502 (cris_print_operand): Make static.
16503 (cris_print_operand_punct_valid_p): New function.
16504 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16505 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16507 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16509 * config/arm/arm-protos.h (arm_print_operand): Delete.
16510 (arm_print_operand_address): Delete.
16511 * config/arm/arm.h (PRINT_OPERAND): Delete.
16512 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16513 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
16514 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
16515 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
16516 (arm_print_operand): Make static.
16517 (arm_print_operand_punct_valid_p): New function.
16518 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16519 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16521 2010-06-16 Nick Clifton <nickc@redhat.com>
16523 * config/rx/constraints.md (NEGint4): New constraint.
16524 * config/rx/rx.md (attr cc): Add set_zsc.
16525 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
16528 (call_internal): Clobber the cc0 register.
16529 (call_value_internal): Likewise.
16530 (cstoresi4): Likewise.
16531 (movsieq): Likewise.
16532 (movsine): Likewise.
16533 (addsi3): Add alternative to handle small negative constants.
16534 (sunsi3): Likewise.
16535 (addsi3): Do not set the O bit in the cc0 register.
16536 (adddi3): Likewise.
16537 (subsi3): Likewise.
16538 (subdi3): Likewise.
16539 (andsi3): Reorder alternatives to prefer shorter forms.
16540 (mulsi3): Likewise.
16541 (iorsi3): Likewise.
16542 (negsi2): Note that the cc0 flags are set.
16543 (rotlsi3): Note that only the Z and S bits are set in cc0.
16544 (lshrsi3): Likewise.
16545 (ashlsi3): Likewise.
16546 (subsf3): Use %Q for the MEM operand.
16547 (fix_truncsfsi2): Likewise.
16548 (floatsisf2): Likewise.
16549 (bitset): Remove early clobber from destination.
16550 (bitset_in_memory): Likewise.
16551 (lrintsf2): Clobber the cc0 register.
16552 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
16553 (rx_print_operand): Handle %N.
16555 2010-06-16 Jan Hubicka <jh@suse.cz>
16557 * df-core.c (df_compact_blocks): Free problem_temps vector.
16559 2010-06-16 Martin Jambor <mjambor@suse.cz>
16561 PR tree-optimization/43905
16562 * tree-sra.c: Include tree-inline.h.
16563 (create_abstract_origin): Removed.
16564 (modify_function): Version the call graph node instead of creating
16565 abstract origins and dealing with same_body aliases.
16566 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
16567 function is versionable.
16568 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
16570 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
16572 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
16573 (CHOOSE_DYNAMIC_LINKER): Update.
16575 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
16577 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
16578 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
16579 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
16580 *prefetch_3dnow_rex.
16582 2010-06-15 Anatoly Sokolov <aesok@post.ru>
16584 * target.h (struct asm_out):Add declare_constant_name field.
16585 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16586 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
16587 * output.h (default_asm_declare_constant_name): Declare.
16588 (assemble_label): Update prototype.
16589 * varasm.c (assemble_constant_contents): Use
16590 targetm.asm_out.declare_constant_name target hook.
16591 (assemble_label): Add 'file' argument.
16592 (default_asm_declare_constant_name): New function.
16593 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
16594 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
16595 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
16597 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
16598 * config/darwin.c (darwin_asm_declare_constant_name): New function.
16599 (machopic_output_indirection): Update assemble_label argument list.
16600 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
16601 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16603 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
16605 PR middle-end/44391
16606 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16607 size_one_node for pointer types. Do not call gmp_cst_to_tree.
16609 2010-06-15 Richard Guenther <rguenther@suse.de>
16611 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
16613 2010-06-15 Paul Brook <paul@codesourcery.com>
16615 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
16618 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
16620 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
16621 don't get a vector type for output.
16623 2010-06-15 Jakub Jelinek <jakub@redhat.com>
16626 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
16627 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
16628 (LANG_HOOKS_DECLS): Add it.
16629 * gimplify.c (omp_notice_variable): Call
16630 lang_hooks.decls.omp_report_decl.
16632 2010-06-15 Martin Jambor <mjambor@suse.cz>
16635 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
16636 on the newly dead SSA name.
16638 2010-06-15 Alan Modra <amodra@gmail.com>
16640 * doc/invoke.texi: Add mcmodel to powerpc options.
16641 * configure.ac: Add HAVE_LD_LARGE_TOC test.
16642 * configure: Regenerate.
16643 * config.in: Regenerate.
16644 * config/rs6000/linux64.opt (mcmodel): New.
16645 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
16646 (TARGET_CMODEL, SET_CMODEL): Define.
16647 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
16648 select CMODEL_MEDIUM default.
16649 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
16650 (TARGET_CMODEL): Define default.
16651 * config/rs6000/rs6000.c (cmodel): New variable.
16652 (rs6000_explicit_options): Add cmodel field.
16653 (rs6000_handle_option): Handle -mcmodel.
16654 (create_TOC_reference): Add largetoc_reg param. Generate high,
16655 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
16656 (rs6000_delegitimize_address): Recognise new toc reference rtl
16657 and minimal-toc rtl.
16658 (rs6000_legitimize_reload_address): Handle new toc references.
16659 (print_operand_address): Handle legitimate_constant_pool_address_p
16660 match before lo_sum.
16661 (rs6000_eliminate_indexed_memrefs): Tidy.
16662 (rs6000_emit_move): Tweak threshold for inlining constants.
16663 Keep rs6000_emit_allocate_stack large stack frame offsets
16664 loaded into r0 inline.
16665 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
16666 (tocrel_base, tocrel_offset): New variables.
16667 (toc_relative_expr_p): Set them here.
16668 (print_operand_address): Skip over any offset on constant pool address.
16669 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
16670 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
16671 (offsettable_ok_by_alignment): New function.
16672 (rs6000_emit_move): Address suitably aligned local symbol_refs
16673 relative to the toc pointer for -mcmodel=medium.
16674 (legitimate_constant_pool_address_p): Make param const_rtx. Add
16675 strict param. Allow lo_sum version of addressing. Verify reg
16676 used for -mminimal-toc and -mcmodel != small. Update all callers.
16677 * config/rs6000/constraints.md: Update for above change.
16678 * config/rs6000/predicates.md: Likewise.
16679 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
16681 (tls_gd): Split for -mcmodel=medium/large.
16682 (tls_gd_high, tls_gd_low): New.
16683 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
16684 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
16685 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
16686 (largetoc_high, largetoc_low): New.
16687 (cmptf_internal2): Add clobber.
16688 * config/rs6000/rs6000-protos.h: Update.
16690 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
16692 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
16693 true if no prefetch is going to be generated for a given group.
16694 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
16695 estimate the prefetch_count.
16696 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
16697 prefetch count by considering the unroll_factor and prefetch_mod
16698 for is_loop_prefetching_profitable.
16700 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
16702 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
16703 anything if the argument is not a MEM.
16705 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16710 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
16712 (canonicalize_loop_ivs): Likewise.
16714 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16717 * haifa-sched.c (setup_insn_reg_pressure_info,
16718 update_register_pressure): Reject debug insns.
16719 (ready_sort): Don't setup reg pressure for debug insns.
16720 (schedule_insn): Don't update reg pressure for debug insns.
16722 2010-06-14 Richard Guenther <rguenther@suse.de>
16724 * lto-streamer.c (cached_bp): Remove.
16725 (bitpack_delete): Likewise.
16726 (bitpack_create): Likewise.
16727 (bp_get_next_word): Likewise.
16728 (bp_pack_value, bp_unpack_value): Move ...
16729 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
16731 (struct bitpack_d): Likewise.
16732 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
16733 New inline functions.
16734 * lto-streamer-out.c (lto_output_bitpack): Remove.
16735 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16736 (pack_value_fields): Adjust.
16737 (lto_write_tree): Likewise.
16738 (output_gimple_stmt): Likewise.
16739 (output_function): Likewise.
16740 * lto-streamer-in.c (input_gimple_stmt): Adjust.
16741 (input_function): Likewise.
16742 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16743 (lto_input_bitpack): Remove.
16744 (lto_materialize_tree): Adjust.
16745 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
16746 * lto-cgraph.c (lto_output_edge): Adjust.
16747 (lto_output_node): Likewise.
16748 (lto_output_varpool_node): Likewise.
16749 (lto_output_ref): Likewise.
16750 (input_node): Likewise.
16751 (input_varpool_node): Likewise.
16752 (input_ref): Likewise.
16753 (input_edge): Likewise.
16754 (output_node_opt_summary): Likewise.
16755 (input_node_opt_summary): Likewise.
16756 * ipa-pure-const.c (pure_const_write_summary): Likewise.
16757 (pure_const_read_summary): Likewise.
16758 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
16759 (ipa_read_indirect_edge_info): Likewise.
16760 (ipa_write_node_info): Likewise.
16761 (ipa_read_node_info): Likewise.
16763 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
16766 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
16767 (vec_extract_lo_v16hi): Likewise.
16768 (vec_extract_lo_v32qi): Likewise.
16770 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16773 * tree.h (build_call_expr): Don't define as vararg macro, instead
16775 * builtins.c (build_call_nofold): Remove.
16776 (expand_builtin_int_roundingfn, expand_builtin_pow,
16777 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
16778 expand_builtin_memset_args, expand_builtin_strcmp,
16779 expand_builtin_strncmp, expand_builtin_memory_chk): Use
16780 build_call_nofold_loc instead of build_call_nofold.
16781 (build_call_expr): New function.
16783 PR tree-optimization/44508
16784 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
16785 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
16786 don't eliminate trivially dead stmts.
16787 * tree-vrp.c (vrp_finalize): Pass false as last argument
16788 to substitute_and_fold.
16789 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
16790 to substitute_and_fold.
16791 * tree-ssa-ccp.c (ccp_finalize): Likewise.
16794 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
16796 2010-06-14 Ira Rosen <irar@il.ibm.com>
16798 PR tree-optimization/44507
16799 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
16800 to build initial vector for BIT_AND_EXPR.
16801 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
16803 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16805 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
16806 adjust z10prop set_attr.
16808 2010-06-13 Jan Hubicka <jh@suse.cz>
16810 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
16811 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
16812 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
16813 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
16814 datastructure checks into checking asserts.
16815 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
16816 * tree-ssa-sccvn.c (VN_INFO): Likewise.
16817 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
16818 df_ref_create_structure): Likewise.
16819 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
16820 pool_free): Use gcc_checking_assert.
16821 * alias.c (get_alias_set): Likewise.
16822 * var-tracking.c (variable_htab_free, shared_hash_copy,
16823 canonicalize_values_mark, variable_merge_over_cur): Likewise.
16824 * lto-streamer.c (bp_unpack_value): Likewise.
16826 2010-06-13 Richard Guenther <rguenther@suse.de>
16828 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
16829 Do not stream but initialize TYPE_CANONICAL to NULL.
16830 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
16831 * gimple.c (gimple_types_compatible_p): Disregard
16832 TYPE_STRUCTURAL_EQUALITY_P.
16833 (gimple_register_type): Use TYPE_CANONICAL as cache.
16834 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
16835 before registering common types.
16836 * config/i386/i386.c (ix86_function_arg_boundary): Do not
16837 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
16838 * tree.h (TYPE_CANONICAL): Clarify documentation.
16840 2010-06-13 Anatoly Sokolov <aesok@post.ru>
16842 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16843 LIBCALL_VALUE): Remove macros.
16844 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
16845 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16846 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16847 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
16848 (ia64_function_value): Make static. Handle receiving the function
16849 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
16851 2010-06-12 Jan Hubicka <jh@suse.cz>
16853 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
16856 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
16858 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
16860 2010-06-12 Jan Hubicka <jh@suse.cz>
16862 * df-core.c (df_clear_bb_info): New function.
16863 (df_set_blocks): bb_info is always allocated.
16864 (df_get_bb_info): Use block_info_elt_size.
16865 (df_set_bb_info): Likewise.
16866 (df_compact_blocks): Update for new block_info.
16867 (grow_bb_info): New function.
16868 * df-problems.c (df_grow_bb_info): Move to df-core.c
16869 (df_rd_set_bb_info): Remove.
16870 (df_rd_free_bb_info): Do not free block pool.
16871 (df_rd_alloc): Do not create pool, use check for
16872 obstack presence instead of NULL pointer for new blocks.
16873 (df_rd_free): DO not free alloc pool; clear block_info.
16874 (problem_RD): Add size of block info structure.
16875 (df_lr_set_bb_info): Remove.
16876 (df_lr_free_bb_info): Do not free block pool.
16877 (df_lr_alloc): Do not create pool, use check for
16878 obstack presence instead of NULL pointer for new blocks.
16879 (df_lr_free): DO not free alloc pool; clear block_info.
16880 (problem_LR): Add size of block info structure.
16881 (df_live_set_bb_info): Remove.
16882 (df_live_free_bb_info): Do not free block pool.
16883 (df_live_alloc): Do not create pool, use check for
16884 obstack presence instead of NULL pointer for new blocks.
16885 (df_live_free): DO not free alloc pool; clear block_info.
16886 (problem_LIVE): Add size of block info structure.
16887 (problem_CHAIN): Add size of block info structure.
16888 (df_byte_lr_set_bb_info): Remove.
16889 (df_byte_lr_free_bb_info): Do not free block pool.
16890 (df_byte_lr_alloc): Do not create pool, use check for
16891 obstack presence instead of NULL pointer for new blocks.
16892 (df_byte_lr_free): DO not free alloc pool; clear block_info.
16893 (problem_BYTE_LR): Add size of block info structure.
16894 (problem_NOTE): Add size of block info structure.
16895 (df_byte_MD_set_bb_info): Remove.
16896 (df_byte_MD_free_bb_info): Do not free block pool.
16897 (df_byte_MD_alloc): Do not create pool, use check for
16898 obstack presence instead of NULL pointer for new blocks.
16899 (df_byte_MD_free): DO not free alloc pool; clear block_info.
16900 (problem_BD): Add size of block info structure.
16901 * df-scan.c (df_scan_free_internal): Free block pool.
16902 (df_scan_set_bb_info): Remove.
16903 (df_scan_free_bb_info): Check for artificial_defs instead
16904 of bb_info being non-NULL.
16905 (df_scan_alloc): DO not create df_scan_block pool.
16906 (problem_SCAN): Set size of block info.
16907 (df_bb_refs_record): Do not allocate bb_info.
16908 * df.h (df_problem): Add block_info_elt_size.
16909 (struct dataflow): Change block_info to void *.
16910 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
16911 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
16912 in-line structures.
16914 2010-06-12 Jan Hubicka <jh@suse.cz>
16916 PR tree-optimize/44485
16917 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
16918 containing use of return value of noreturn function.
16920 2010-06-12 Anatoly Sokolov <aesok@post.ru>
16922 * targhooks.c (default_function_value): Don't use
16923 FUNCTION_OUTGOING_VALUE.
16924 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
16925 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
16927 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
16929 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
16930 Add crtfastmath.o to extra_parts.
16931 * config/mips/crtfastmath.c: New.
16932 * config/mips/linux.h (ENDFILE_SPEC): New.
16934 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
16936 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
16937 old_type in parameter.
16938 (gcc_type_for_value): Update call to gcc_type_for_interval.
16939 (compute_type_for_level_1): Renamed compute_type_for_level.
16940 Update call to gcc_type_for_interval.
16942 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16944 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
16945 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
16947 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16949 * opts-common.c: Include options.h.
16950 (integral_argument): Move from opts.c.
16951 (decode_cmdline_option): New. Based on read_cmdline_option.
16952 * opts.c (integral_argument): Move to opts-common.c.
16953 (read_cmdline_option): Move most contents to
16954 decode_cmdline_option. Use %qs in diagnostics.
16955 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
16956 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
16957 decode_cmdline_option): New.
16959 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16962 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
16963 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
16964 (partiysi2_cmp): Ditto.
16965 (*partiyhi2_cmp): Ditto.
16966 (*parityqi2_cmp): Remove.
16968 2010-06-11 Jan Hubicka <jh@suse.cz>
16970 * bitmap.h (bmp_iter_next_bit): New.
16971 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
16973 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
16974 Eric Botcazou <ebotcazou@adacore.com>
16976 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
16979 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16981 * config/i386/i386.md (unspec): New define_c_enum.
16984 2010-06-10 Jakub Jelinek <jakub@redhat.com>
16986 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
16988 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
16990 PR middle-end/44483
16991 * tree-if-conv.c (bb_predicate_s): New struct.
16992 (bb_predicate_p): New.
16993 (bb_has_predicate): New.
16994 (bb_predicate): New.
16995 (set_bb_predicate): New.
16996 (bb_predicate_gimplified_stmts): New.
16997 (set_bb_predicate_gimplified_stmts): New.
16998 (add_bb_predicate_gimplified_stmts): New.
16999 (init_bb_predicate): New.
17000 (free_bb_predicate): New.
17001 (is_predicated): Use bb_predicate.
17002 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
17003 (predicate_bbs): Same. Gimplify the condition of the basic blocks
17004 before processing their successors.
17005 (clean_predicate_lists): Removed.
17006 (find_phi_replacement_condition): Use bb_predicate.
17007 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
17009 (insert_gimplified_predicates): New.
17010 (combine_blocks): Call insert_gimplified_predicates.
17011 (tree_if_conversion): Call free_bb_predicate instead of
17012 clean_predicate_lists.
17014 2010-10-11 Paul Brook <paul@codesourcery.com>
17016 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
17017 * config/arm/arm.c (all_architectures): Change v7e-m default to
17019 * config/arm/arm-cores.def: Add cortex-m4.
17020 * config/arm/arm-tune.md: Regenerate.
17022 2010-06-11 Jan Hubicka <jh@suse.cz>
17024 * ipa-pure-const.c (special_builtlin_state): New function.
17025 (check_call): Use it instead of special casign BUILT_IN_RETURN.
17026 (propagate_pure_const): Use it.
17028 2010-06-11 Jan Hubicka <jh@suse.cz>
17030 * df-problems.c (df_live_scratch): Convert to bitmap_head.
17031 (df_live_alloc): Initialize df_live_scratch when initializing
17033 (df_live_transfer_function): Update uses of df_live_scratch.
17034 (df_live_free): Free problem_data; clear df_live_scratch before
17035 releasing the obstack.
17036 (df_md_free): Free problem data.
17038 2010-06-11 Jan Hubicka <jh@suse.cz>
17040 * doc/invoke.texi (Wsuggest-attribute): Document.
17041 (Wmissing-noreturn): Remove.
17042 * ipa-pure-const.c (warn_function_noreturn): New function.
17043 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
17044 warn_missing_noreturn.
17045 * common.opt (Wsuggest-attribute=noreturn): New.
17046 * tree-flow.h (warn_function_noreturn): Declare.
17047 * tree-cfg.c (execute_warn_function_noreturn): Use
17048 warn_function_noreturn.
17049 (gate_warn_function_noreturn): New.
17050 (pass_warn_function_noreturn): Update.
17052 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17054 * c-typeck.c (handle_warn_cast_qual): Add loc
17055 parameter. Improve warning message.
17056 (build_c_cast): Pass location to handle_warn_cast_qual.
17058 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
17060 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
17061 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
17063 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
17065 2010-06-10 Dodji Seketeli <dodji@redhat.com>
17067 Fix bootstap on mips
17068 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
17069 be naming typedefs.
17071 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
17073 * system.h (helper_const_non_const_cast): New inline for
17074 gcc version <= 4.0.
17075 (CONST_CAST2): For gcc version <= 4.0 use
17076 new helper to do const/non-const casting.
17078 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17080 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
17081 * Makefile.in (OBJS-common): Include insn-enums.o.
17082 (insn-enums.o): New rule.
17083 (simple_generated_c): Add insn-enums.c.
17084 (build/genenums.o): New rule.
17085 (genprogmd): Add "enums".
17086 * genconstants.c (print_enum_type): Declare a C string array
17088 * genenums.c: New file.
17089 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
17090 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
17091 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
17093 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17095 * doc/md.texi (define_enum_attr): Document.
17096 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
17097 * read-md.h (lookup_enum_type): Declare.
17098 * read-md.c (lookup_enum_type): New function.
17099 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
17100 * genattrtab.c (attr_desc): Add an enum_name field.
17101 (evaluate_eq_attr): Take the associated attribute as argument.
17102 Get the enum prefix from the enum_name field, if defined.
17103 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
17104 (simplify_test_exp): Pass attr to evaluate_eq_attr.
17105 (add_attr_value): New function, split out from...
17106 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
17107 (write_test_expr): Pass attr to evaluate_eq_attr.
17108 (write_attr_get): Use the enum_name as the enum tag, if defined.
17109 (write_attr_valueq): Use the enum_name as a prefix, if defined.
17110 (find_attr): Initialize enum_name.
17111 (main): Handle DEFINE_ENUM_ATTR.
17112 * gensupport.c (process_rtx): Likewise.
17113 * config/mips/mips.h (mips_tune_attr): Delete.
17114 * config/mips/mips.md (cpu): Use define_attr_enum.
17116 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17118 * doc/md.texi (define_c_enum, define_enum): Document.
17119 * read-md.h (md_constant): Add a parent_enum field.
17120 (enum_value, enum_type): New structures.
17121 (upcase_string, traverse_enum_types): Declare.
17122 * read-md.c (enum_types): New variable.
17123 (upcase_string, add_constant): New functions.
17124 (handle_constants): Don't create the hash table here.
17126 (traverse_md_constants): Don't check for a null md_constants.
17127 (decimal_string, handle_enum, traverse_enum_types): New functions.
17128 (read_md_files): Initialize md_constants and md_enums.
17129 * genconstants.c (print_md_constant): Ignore info argument.
17130 Only print constants that belong to no enum.
17131 (print_enum_type): New function.
17132 (main): Don't pass stdout to print_md_constant. Call print_enum_type
17133 for each defined enum type.
17134 * config/mips/mips.md (processor): New define_enum.
17135 (unspec): New define_c_enum.
17136 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
17137 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
17138 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
17139 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
17140 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
17141 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
17142 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
17143 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
17144 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
17145 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
17146 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
17147 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
17148 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
17149 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
17150 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
17151 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
17152 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
17153 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
17154 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
17155 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
17156 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
17157 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
17158 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17159 (UNSPEC_RDDSP): Move to mips-dsp.md.
17160 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
17161 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
17162 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
17163 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
17164 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
17165 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
17166 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
17167 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
17168 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
17169 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
17170 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
17171 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
17172 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
17173 Moved to mips-dspr2.md.
17174 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
17175 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
17176 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
17177 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
17178 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
17179 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
17180 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17181 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17182 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17183 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17184 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17185 UNSPEC_LOONGSON_PSADBH)
17186 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17187 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17188 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
17189 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17190 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17191 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17192 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
17193 (cpu): Update comment.
17194 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
17195 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
17196 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
17197 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
17198 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
17199 UNSPEC_LOONGSON_PCMPEQ)
17200 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
17201 UNSPEC_LOONGSON_PINSR_0)
17202 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17203 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17204 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17205 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17206 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17207 UNSPEC_LOONGSON_PSADBH)
17208 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17209 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17210 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
17211 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17212 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17213 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17214 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
17215 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
17216 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
17217 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
17218 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
17219 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
17220 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
17221 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
17222 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
17223 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
17224 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
17225 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
17226 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
17227 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
17228 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
17229 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
17230 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
17231 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
17232 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
17233 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
17234 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17235 (UNSPEC_RDDSP): Moved from mips.md.
17236 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
17237 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
17238 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
17239 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
17240 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
17241 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
17242 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
17243 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
17244 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
17245 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
17246 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
17247 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
17248 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
17249 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
17250 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
17251 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
17252 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
17253 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
17254 (UNSPEC_SCC): Moved from mips.md.
17255 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
17256 "processor_type" to "processor".
17257 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
17258 * config/mips/mips.h (processor_type): Delete.
17259 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
17260 "processor_type" to "processor".
17262 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17264 * configure.ac (tm_include_list): Add insn-constants.h.
17265 * configure: Regenerate.
17266 * Makefile.in (GTM_H): Move insn-constants.h here from...
17268 * mkconfig.sh: Remove special handling for insn-constants.h.
17270 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17272 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
17273 (BUILD_MD): ...this new variable.
17274 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
17275 that include the old contents of simple_generated_h and
17276 simple_generated_c.
17277 (simple_generated_h, simple_generated_c): Include them. Add
17279 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
17280 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
17281 Remove these dependencies from the main rule and include
17282 insn-conditions.md in the command line only if it appears
17283 in the dependency list.
17284 (insn-constants.h, s-constants): Delete.
17285 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
17287 (build/genmddeps.o): Likewise.
17288 (genprogrtl): New variable that contains everything from genprogmd
17289 except mddeps and constants.
17290 (genprogmd): Redefine in terms of genprogrtl. Make these programs
17291 depend on $(BUILD_MD)
17292 (genprog): New variable. Make these programs depend on
17294 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
17295 (main): Use read_md_files instead of init_rtx_reader_args.
17296 * genconstants.c: As for genmddeps.c.
17297 * read-md.h (read_skip_construct): Declare.
17298 * read-md.c (read_skip_construct): New function.
17299 (handle_file): Allow a null handle_directive, skipping the
17301 (parse_include): Update the comment accordingly.
17303 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17305 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
17306 * genmddeps.c: Include read-md.h.
17307 (main): Call init_rtx_reader_args instead of init_md_reader_args.
17308 * genattr.c (main): Likewise.
17309 * genattrtab.c (main): Likewise.
17310 * genautomata.c (main): Likewise.
17311 * gencodes.c (main): Likewise.
17312 * genconditions.c (main): Likewise.
17313 * genconfig.c (main): Likewise.
17314 * genconstants.c (main): Likewise.
17315 * genemit.c (main): Likewise.
17316 * genextract.c (main): Likewise.
17317 * genflags.c (main): Likewise.
17318 * genopinit.c (main): Likewise.
17319 * genoutput.c (main): Likewise.
17320 * genpeep.c (main): Likewise.
17321 * genrecog.c (main): Likewise.
17322 * genpreds.c (main): Likewise.
17323 * gensupport.h (in_fname): Move to read-md.h.
17324 (init_md_reader_args_cb): Rename to...
17325 (init_rtx_reader_args_cb): ...this and return a bool.
17326 (init_md_reader_args): Rename to...
17327 (init_rtx_reader_args): ...this and return a bool.
17328 (include_callback): Move to read-md.h.
17329 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
17330 (file_name_list, first_dir_md_include): Move to read-md.c
17331 (first_bracket_include): Delete unused variable.
17332 (last_dir_md_include): Move to read-md.c.
17333 (process_include): Delete, moving code to read-md.c:handle_include.
17334 (process_rtx): Don't handle INCLUDE.
17335 (save_string): Delete.
17336 (rtx_handle_directive): New function.
17337 (init_md_reader_args_cb): Rename to...
17338 (init_rtx_reader_args_cb): ...this and return a boolean success value.
17340 (init_md_reader_args): Rename to...
17341 (init_rtx_reader_args): ...this and return a boolean success value.
17342 * rtl.def (INCLUDE): Delete.
17343 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
17345 * read-rtl.c (read_conditions): Don't gobble ')' here.
17346 (read_mapping): Likewise.
17347 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
17348 Handle top-level non-rtx constructs here rather than in read_rtx_1.
17349 Store the whole queue in *X. Remove call to init_md_reader.
17350 (read_rtx_1): Rename to...
17351 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
17352 Don't handle top-level non-rtx constructs here. Don't handle (nil)
17354 (read_nested_rtx): New function. Handle (nil) here rather than
17356 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
17358 * read-md.h (directive_handler_t): New type.
17359 (in_fname, include_callback): Moved from read-md.h.
17360 (read_constants, init_md_reader): Delete.
17361 (read_md_files): Declare.
17362 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
17363 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
17365 (read_constants): Rename to...
17366 (handle_constants): ...this. Don't gobble ')' here.
17367 (handle_include, handle_file, handle_toplevel_file)
17368 (parse_include): New functions, mostly taken from gensupport.c.
17369 (init_md_reader): Subsume into...
17370 (read_md_files): ...this new function.
17372 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17374 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
17375 (unread_char): Decrement read_md_lineno after putting back '\n'.
17376 * read-md.c (fatal_with_file_and_line): Push back any characters
17377 that we decide not to add to the context.
17378 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
17379 fatal_expected_char in cases where '/' ends a line (for example).
17380 (read_name): Don't increment read_md_lineno here.
17381 (read_escape): Likewise.
17382 (read_quoted_string): Likewise.
17383 (read_braced_string): Likewise.
17385 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17387 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
17388 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
17389 * genconstants.c: Include read-md.h.
17390 * read-rtl.c (md_constants): Move to read-md.c.
17391 (md_name): Move to read-md.h.
17392 (initialize_iterators): Use leading_string_hash instead of def_hash
17393 and leading_string_eq_p instead of def_name_eq_p.
17394 (read_name): Move to read-md.c.
17395 (def_hash, def_name_eq_p): Delete.
17396 (read_constants, traverse_md_constants): Move to read-md.c.
17397 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
17398 * read-md.h: Include hashtab.h.
17399 (md_name): Moved from read-rtl.c.
17400 (md_constant): Moved from read-md.h.
17401 (leading_string_hash, leading_string_eq_p, read_name)
17402 (read_constants, traverse_md_constants): Declare.
17403 * read-md.c (md_constants): Moved from read-rtl.c.
17404 (leading_string_hash, leading_string_eq_p): New functions.
17405 (read_name, read_constants, traverse_md_constants): Moved from
17408 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17410 * read-rtl.c (md_name): New structure.
17411 (read_name): Take an md_name instead of a buffer pointer.
17412 Use the "string" field instead of strcpy when expanding constants.
17413 (read_constants): Remove the tmp_char argument. Update the calls
17414 to read_name, using two local name buffers instead of the tmp_char
17415 argument. Merge the constant-creation code.
17416 (read_conditions): Remove the tmp_char argument. Update the calls
17417 to read_name, using a local name buffer instead of the tmp_char
17419 (read_mapping): Replace tmp_char variable with a local name buffer.
17420 Update the calls to read_name.
17421 (read_rtx_1): Likewise. Update the calls to read_constants and
17424 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17426 * Makefile.in (build/read-md.o): Depend on errors.h.
17427 * read-md.h (error_with_line): Declare.
17428 * read-md.c: Include errors.h.
17429 (message_with_line_1): New function, extracted from...
17430 (message_with_line): ...here.
17431 (error_with_line): New function.
17432 * genattrtab.c: If a call to message_with_line is followed by
17433 "have_error = 1;", replace both statements with a call to
17435 * genoutput.c: Likewise.
17436 * genpreds.c: Likewise.
17437 * genrecog.c: If a call to message_with_line is followed by
17438 "error_count++;", replace both statements with a call to
17440 (errorcount): Delete.
17441 (main): Don't check it.
17442 * gensupport.c: If a call to message_with_line is followed by
17443 "errors = 1;", replace both statements with a call to error_with_line.
17445 (process_define_cond_exec): Check have_error instead of errors.
17446 (init_md_reader_args_cb): Likewise. Don't set errors.
17448 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17450 * read-md.h (read_md_file): Declare.
17451 (read_char, unread_char): New functions.
17452 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17453 (read_quoted_string, read_string): Remove FILE * argument.
17454 * read-md.c (read_md_file): New variable.
17455 (read_md_filename, read_md_lineno): Update comments and remove
17456 unnecessary initialization.
17457 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17458 (read_escape, read_quoted_string, read_braced_string, read_string):
17459 Remove FILE * argument. Update calls accordingly, using read_char
17460 and unread_char instead of getc and ungetc.
17461 * rtl.h (read_rtx): Remove FILE * argument.
17462 * read-rtl.c (iterator_group): Remove FILE * argument from
17464 (iterator_traverse_data): Remove "infile" field.
17465 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
17466 (add_mapping, read_name, read_constants, read_conditions)
17467 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
17468 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
17469 Remove file arguments from all calls, using read_char and unread_char
17470 instead of getc and ungetc.
17471 * gensupport.c (process_include): Preserve read_md_file around
17472 the include. Set read_md_file to the handle of the included file.
17473 Update call to read_rtx.
17474 (init_md_reader_args_cb): Set read_md_file to the handle of the file
17475 and remove local FILE *. Update calls to read_rtx.
17477 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17479 * read-md.h (read_rtx_lineno): Rename to...
17480 (read_md_lineno): ...this.
17481 (read_rtx_filename): Rename to...
17482 (read_md_filename): ...this.
17483 (copy_rtx_ptr_loc): Rename to...
17484 (copy_md_ptr_loc): ...this.
17485 (print_rtx_ptr_loc): Rename to...
17486 (print_md_ptr_loc): ...this.
17487 * read-md.c: Likewise. Update references after renaming.
17488 (string_obstack): Replace RTL with MD in comment.
17489 (set_rtx_ptr_loc): Rename to...
17490 (set_md_ptr_loc): ...this.
17491 (get_rtx_ptr_loc): Rename to...
17492 (get_md_ptr_loc): ...this.
17493 * genconditions.c: Update references after renaming.
17494 * genemit.c: Likewise.
17495 * genoutput.c: Likewise.
17496 * genpreds.c: Likewise.
17497 * gensupport.c: Likewise.
17498 * read-rtl.c: Likewise.
17500 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17502 * Makefile.in (READ_MD_H): New variable.
17503 (BUILD_RTL): Add build/read-md.o.
17504 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
17505 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
17506 (build/genattrtab.o, build/genconditions.o build/genemit.o)
17507 (build/genextract.o, build/genflags.o, build/genoutput.o)
17508 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
17509 (build/read-md.o): New rule.
17510 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
17511 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
17512 * coretypes.h: ...here.
17513 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
17514 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
17515 * genattr.c: Include read-md.h.
17516 * genattrtab.c: Likewise.
17517 * genconditions.c: Likewise.
17518 * genemit.c: Likewise.
17519 * genextract.c: Likewise.
17520 * genflags.c: Likewise.
17521 * genoutput.c: Likewise.
17522 * genpreds.c: Likewise.
17523 * genrecog.c: Likewise.
17524 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17525 (join_c_conditions, print_c_condition, read_rtx_filename)
17526 (read_rtx_lineno): Move to read-md.h.
17527 * read-rtl.c: Include read-md.h.
17528 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
17529 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
17530 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
17531 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
17532 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17533 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
17534 (read_braced_string, read_string): Move to read-md.c.
17535 (read_rtx): Move some initialization to init_md_reader and call
17536 init_md_reader here.
17537 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
17539 * gensupport.c: Include read-md.h.
17540 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
17541 * read-md.h, read-md.c: New files.
17543 2010-06-10 Anatoly Sokolov <aesok@post.ru>
17545 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17546 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17547 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
17548 * config/moxie/moxie.c (moxie_function_value): Make static.
17549 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
17550 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17552 2010-06-10 Martin Jambor <mjambor@suse.cz>
17554 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
17555 * dbgcnt.def (tree_sra): New counter.
17556 * tree-sra.c: Include dbgcnt.h.
17557 (gate_intra_sra): Check tree_sra debug counter.
17559 2010-06-10 Martin Jambor <mjambor@suse.cz>
17561 PR tree-optimization/44258
17562 * tree-sra.c (build_access_subtree): Return false iff there is a
17564 (build_access_trees): Likewise.
17565 (analyze_all_variable_accesses): Disqualify candidates if
17566 build_access_trees returns true for them.
17568 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
17571 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
17572 tail-recurse into canonical node. Fast-forward over
17573 non-canonical VALUEs.
17575 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
17578 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
17579 (*addsi_1_zext) <TYPE_LEA>: Likewise.
17580 (add lea splitter): Likewise.
17581 (add_zext lea splitter): Likewise.
17583 2010-06-10 Joseph Myers <joseph@codesourcery.com>
17585 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
17587 2010-06-10 Jan Hubicka <jh@suse.cz>
17589 * df-problems.c (df_live_problem_data): Add live_bitmaps.
17590 (df_live_alloc): Initialize problem data and live_osbtacks.
17591 (df_live_finalize): Remove obstack, problem data; do not
17593 (df_live_top_dump, df_live_bottom_dump): Do not dump old
17594 data when not allocated.
17595 (df_live_verify_solution_start): Do not allocate problem data.
17596 (df_live_verify_solution_end): Check if out is allocated.
17597 (struct df_md_problem_data): New structure.
17598 (df_md_alloc): Allocate problem data.
17599 (df_md_free): Free problem data; do not clear bitmaps.
17601 2010-06-10 Jan Beulich <jbeulich@novell.com>
17604 * configure.ac: Replace $() with ${} when intending to expand
17605 variables rather than invoking commands.
17606 * configure: Re-generate.
17608 2010-06-10 Jan Hubicka <jh@suse.cz>
17610 PR rtl-optimization/44460
17611 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17612 TYPE_NEEDS_CONSTRUCTING sanity check.
17614 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17616 * doc/include/fdl.texi: Move to GFDL version 1.3.
17618 * doc/cpp.texi: Move to GFDL version 1.3.
17619 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
17620 * doc/gccint.texi: Move to GFDL version 1.3.
17621 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
17622 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
17623 * doc/invoke.texi: Move to GFDL version 1.3.
17625 2010-06-09 Jan Hubicka <jh@suse.cz>
17627 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
17629 (propagate) ... here; swap the order.
17631 2010-06-09 Jan Hubicka <jh@suse.cz>
17633 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
17634 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
17635 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
17636 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
17638 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17640 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
17641 Do not the gather memory reference in the outer loop if the step
17644 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17646 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
17647 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
17648 8 to 4. Minor change of the related comments.
17650 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17652 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
17653 the scev analysis when the variable is not used outside the loop
17654 in a close phi node: call compute_overall_effect_of_inner_loop.
17656 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17658 * graphite-sese-to-poly.c (single_pred_cond): Renamed
17659 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
17660 (build_sese_conditions_before): Renamed call to single_pred_cond.
17661 (build_sese_conditions_after): Same.
17663 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17665 * graphite-poly.h: Fix comments and indentation.
17666 * graphite-sese-to-poly.c: Same.
17667 (build_sese_conditions_before): Compute stmt and gbb only when needed.
17668 * tree-chrec.c: Fix comments and indentation.
17669 (tree-ssa-loop-niter.c): Same.
17671 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
17673 PR rtl-optimization/42461
17674 * dce.c (deletable_insn_p): Return true for const or pure calls again.
17675 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
17677 2010-06-09 Jan Hubicka <jh@suse.cz>
17679 * bitmap.c (bitmap_and): Walk array forward.
17680 (bitmap_and_compl_into): Likewise.
17681 (bitmap_xor): Likewise.
17682 (bitmap_xor_into): Likewise.
17683 (bitmap_equal_p): Likewise.
17684 (bitmap_intersect_p): Likewise.
17685 (bitmap_intersect_compl_p): Likewise.
17686 (bitmap_ior_and_into): Likewise.
17687 (bitmap_elt_copy): Likewise.
17688 (bitmap_and_compl): Likewise.
17689 (bitmap_elt_ior): Likewise.
17691 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
17693 * opts-common.c (prune_options): Ensure replacement argv array
17694 is correctly terminated by a NULL entry.
17696 2010-06-09 Jan Hubicka <jh@suse.cz>
17698 * cgraph.h (varpool_first_static_initializer,
17699 varpool_next_static_initializer): Make checking only when
17701 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
17702 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
17703 gcc_assert to gcc_checking_assert.
17704 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
17705 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
17706 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
17707 op_iter_init_phiuse, op_iter_init_phidef,
17708 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
17709 gcc_checking_assert.
17710 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
17711 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
17712 partition_is_global, live_on_entry, live_on_exit,
17713 live_merge_and_clear): Likewise.
17714 * system.h (gcc_checking_assert): New macro.
17715 * gimple.h (set_bb_seq): Use gcc_checking_assert.
17717 2010-06-09 Jason Merrill <jason@redhat.com>
17719 * Makefile.in (TAGS): Collect tags info from c-family.
17721 2010-06-09 Jan Hubicka <jh@suse.cz>
17723 * gimple.h (gcc_gimple_checking_assert): New macro.
17724 (gimple_set_def_ops, gimple_set_use_ops,
17725 gimple_set_vuse, gimple_set_vdef,
17726 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
17727 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
17728 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
17729 gimple_asm_output_op, gimple_asm_output_op_ptr,
17730 gimple_asm_set_output_op, gimple_asm_clobber_op,
17731 gimple_asm_set_clobber_op, gimple_asm_label_op,
17732 gimple_asm_set_label_op, gimple_try_set_kind,
17733 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
17734 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
17735 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
17736 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
17737 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
17738 gimple_omp_for_set_initial, gimple_omp_for_final,
17739 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
17740 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
17741 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
17742 conditional with ENABLE_GIMPLE_CHECKING.
17743 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
17745 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
17747 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
17748 (get_computation_cost_at): Use it.
17749 (determine_use_iv_cost_condition): Likewise.
17750 (determine_iv_cost): Likewise.
17752 2010-06-09 Richard Guenther <rguenther@suse.de>
17754 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
17757 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
17759 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
17761 2010-06-09 Martin Jambor <mjambor@suse.cz>
17763 PR tree-optimization/44423
17764 * tree-sra.c (dump_access): Dump also grp_assignment_read.
17765 (analyze_access_subtree): Pass negative allow_replacements to children
17766 if the current type is scalar.
17768 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17771 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
17772 * doc/plugins.texi (Plugin license check): Update information
17773 on type of plugin_is_GPL_compatible.
17774 * Makefile.in (PLUGINCC): Define as $(COMPILER).
17775 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
17777 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
17779 * config/arm/arm.c (thumb2_reorg): New function.
17780 (arm_reorg): Call it.
17781 * config/arm/thumb2.md (define_peephole2 for flag clobbering
17782 arithmetic operations): Delete.
17784 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
17787 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
17790 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17793 * gcc-plugin.h: Encapsulate all declarations in extern "C".
17795 2010-06-08 Jan Hubicka <jh@suse.cz>
17797 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
17798 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
17800 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
17802 PR tree-optimization/39874
17803 PR middle-end/28685
17804 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
17806 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
17807 same_bool_result_p): New.
17808 (and_var_with_comparison, and_var_with_comparison_1,
17809 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
17810 (or_var_with_comparison, or_var_with_comparison_1,
17811 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
17812 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
17813 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
17814 of combine_comparisons.
17815 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
17817 2010-06-08 Anatoly Sokolov <aesok@post.ru>
17819 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17820 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17821 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
17822 pdp11_function_value_regno_p): New functions.
17823 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17824 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17826 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
17828 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
17829 Thumb-2 in the MINUS case.
17831 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17833 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
17835 * doc/gty.texi (GTY Options): Document typed GC allocation and
17836 variable_size GTY option.
17838 * ggc-internal.h: New.
17840 * ggc.h: Update copyright year.
17841 (digit_string): Move to stringpool.c.
17842 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
17843 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
17844 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
17845 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
17846 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
17847 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
17848 (ggc_force_collect, ggc_get_size, ggc_statistics)
17849 (ggc_print_common_statistics): Move to ggc-internal.h.
17850 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
17851 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
17852 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
17853 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
17854 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
17855 (ggc_alloc_zone_pass_stat): Remove.
17856 (ggc_internal_alloc_stat, ggc_internal_alloc)
17857 (ggc_internal_cleared_alloc_stat): New.
17858 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
17859 (ggc_internal_vec_alloc_stat)
17860 (ggc_internal_cleared_vec_alloc_stat)
17861 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
17862 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
17863 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
17864 (ggc_cleared_alloc_ptr_array_two_args): New.
17865 (htab_create_ggc, splay_tree_new_ggc): Redefine.
17866 (ggc_splay_alloc): Change the type of the first argument to
17867 enum gt_types_enum.
17868 (ggc_alloc_string): Make macro.
17869 (ggc_alloc_string_stat): New.
17870 (ggc_strdup): Redefine.
17871 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
17872 (ggc_alloc_rtvec_sized): New.
17873 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
17874 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
17875 (ggc_internal_cleared_alloc_zone_stat)
17876 (ggc_internal_zone_alloc_stat)
17877 (ggc_internal_zone_cleared_alloc_stat)
17878 (ggc_internal_zone_vec_alloc_stat)
17879 (ggc_alloc_zone_rtx_def_stat)
17880 (ggc_alloc_zone_tree_node_stat)
17881 (ggc_alloc_zone_cleared_tree_node_stat)
17882 (ggc_alloc_cleared_gimple_statement_d_stat): New.
17884 * ggc-common.c: Include ggc-internal.h.
17885 (ggc_internal_cleared_alloc_stat): Rename from
17886 ggc_alloc_cleared_stat.
17887 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
17888 (ggc_calloc): Remove.
17889 (ggc_cleared_alloc_htab_ignore_args): New.
17890 (ggc_cleared_alloc_ptr_array_two_args): New.
17891 (ggc_splay_alloc): Add obj_type parameter.
17892 (init_ggc_heuristics): Formatting fixes.
17894 * ggc-none.c: Update copyright year.
17895 (ggc_alloc_stat): Rename to ggc_alloc_stat.
17896 (ggc_alloc_cleared_stat): Rename to
17897 ggc_internal_cleared_alloc_stat.
17898 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17900 * ggc-page.c: Update copyright year. Include ggc-internal.h.
17901 Remove references to ggc_alloc in comments.
17902 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
17903 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
17904 (new_ggc_zone, destroy_ggc_zone): Remove.
17905 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17907 * ggc-zone.c: Include ggc-internal.h. Remove references to
17908 ggc_alloc in comments.
17909 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
17910 (ggc_internal_alloc_zone_pass_stat): New.
17911 (ggc_internal_cleared_alloc_zone_stat): New.
17912 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
17913 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
17914 (new_ggc_zone, destroy_ggc_zone): Remove.
17916 * stringpool.c: Update copyright year. Include ggc-internal.h
17917 (digit_vector): Make static.
17918 (digit_string): Moved from ggc.h.
17919 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
17920 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
17922 * Makefile.in (GGC_INTERNAL_H): New.
17923 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
17924 $(GGC_INTERNAL_H) to dependencies.
17926 * gentype.c: Update copyright year.
17927 (walk_type): Accept variable_size GTY option.
17928 (USED_BY_TYPED_GC_P): New macro.
17929 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
17930 whitespace at the end of strings.
17931 (get_type_specifier, variable_size_p): New functions.
17932 (alloc_quantity, alloc_zone): New enums.
17933 (write_typed_alloc_def): New function.
17934 (write_typed_struct_alloc_def): Likewise.
17935 (write_typed_typed_typedef_alloc_def): Likewise.
17936 (write_typed_alloc_defns): Likewise.
17937 (output_typename, write_splay_tree_allocator_def): Likewise.
17938 (write_splay_tree_allocators): Likewise.
17939 (main): Call write_typed_alloc_defns and
17940 write_splay_tree_allocators.
17942 * lto-streamer.h (lto_file_decl_data_ptr): New.
17944 * passes.c (order): Define using cgraph_node_ptr.
17946 * strinpool.c (struct string_pool_data): Declare nested_ptr using
17949 * gimple.h (union gimple_statement_d): Likewise.
17951 * rtl.h (struct rtx_def): Likewise.
17952 (struct rtvec_def): Likewise.
17954 * tree.h (union tree_node): Likewise.
17956 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
17958 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
17960 * tree-scalar-evolution.c (scev_initialize): Likewise.
17962 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
17964 * dwarf2asm.c (dw2_force_const_mem): Likewise.
17966 * omp-low.c (lower_omp_critical): Likewise.
17968 * bitmap.h (struct bitmap_head_def): Update comment to not
17969 reference ggc_alloc.
17971 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
17973 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
17975 * ipa-prop.c (duplicate_ggc_array): Rename to
17976 duplicate_ipa_jump_func_array. Use typed GC allocation.
17977 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
17979 * gimple.c (gimple_alloc_stat): Use
17980 ggc_alloc_cleared_gimple_statement_d_stat.
17982 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
17984 * tree.c (make_node_stat): Use
17985 ggc_alloc_zone_cleared_tree_node_stat.
17986 (make_tree_vec_stat): Likewise.
17987 (build_vl_exp_stat): Likewise.
17988 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
17989 (make_tree_binfo_stat): Likewise.
17990 (tree_cons_stat): Likewise.
17992 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
17993 (shallow_copy_rtx_stat): Likewise.
17994 (make_node_stat): Likewise.
17996 * lto-symtab.c: Fix comment.
17998 * tree-cfg.c (create_bb): Update comment to not reference
18000 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
18002 * varpool.c (varpool_node): Use typed GC allocation.
18003 (varpool_extra_name_alias): Likewise.
18005 * varasm.c (emutls_decl): Likewise.
18006 (get_unnamed_section): Likewise.
18007 (get_noswitch_section): Likewise.
18008 (get_section): Likewise.
18009 (get_block_for_section): Likewise.
18010 (build_constant_desc): Likewise.
18011 (create_constant_pool): Likewise.
18012 (force_const_mem): Likewise.
18014 * tree.c (build_vl_exp_stat): Likewise.
18015 (build_real): Likewise.
18016 (build_string): Likewise.
18017 (decl_debug_expr_insert): Likewise.
18018 (decl_value_expr_insert): Likewise.
18019 (type_hash_add): Likewise.
18020 (build_omp_clause): Likewise.
18022 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
18024 * tree-ssa.c (init_tree_ssa): Likewise.
18026 * tree-ssa-structalias.c (heapvar_insert): Likewise.
18028 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18030 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18032 * tree-ssa-alias.c (get_ptr_info): Likewise.
18034 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18036 * tree-phinodes.c (allocate_phi_node): Likewise.
18038 * tree-iterator.c (tsi_link_before): Likewise.
18039 (tsi_link_after): Likewise.
18041 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18043 * tree-dfa.c (create_var_ann): Likewise.
18045 * tree-cfg.c (create_bb): Likewise.
18047 * toplev.c (alloc_for_identifier_to_locale): Likewise.
18048 (general_init): Likewise.
18050 * stringpool.c (stringpool_ggc_alloc): Likewise.
18051 (gt_pch_save_stringpool): Likewise.
18053 * sese.c (if_region_set_false_region): Likewise.
18055 * passes.c (do_per_function_toporder): Likewise.
18057 * optabs.c (set_optab_libfunc): Likewise.
18058 (set_conv_libfunc): Likewise.
18060 * lto-symtab.c (lto_symtab_register_decl): Likewise.
18062 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18063 (input_eh_region): Likewise.
18064 (input_eh_lp): Likewise.
18065 (make_new_block): Likewise.
18066 (unpack_ts_real_cst_value_fields): Likewise.
18068 * lto-section-in.c (lto_new_in_decl_state): Likewise.
18070 * lto-cgraph.c (input_node_opt_summary): Likewise.
18072 * loop-init.c (loop_optimizer_init): Likewise.
18074 * lambda.h (lambda_vector_new): Likewise.
18076 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
18078 * ira.c (update_equiv_regs): Likewise.
18080 * ipa.c (cgraph_node_set_new): Likewise.
18081 (cgraph_node_set_add): Likewise.
18082 (varpool_node_set_new): Likewise.
18083 (varpool_node_set_add): Likewise.
18085 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
18086 (duplicate_ipa_jump_func_array): Likewise.
18087 (ipa_read_node_info): Likewise.
18089 * ipa-cp.c (ipcp_create_replace_map): Likewise.
18091 * integrate.c (get_hard_reg_initial_val): Likewise.
18093 * gimple.c (gimple_alloc_stat): Likewise.
18094 (gimple_build_omp_for): Likewise.
18095 (gimple_seq_alloc): Likewise.
18096 (gimple_copy): Likewise.
18098 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
18099 (gsi_insert_after_without_update): Likewise.
18101 * function.c (add_frame_space): Likewise.
18102 (insert_temp_slot_address): Likewise.
18103 (assign_stack_temp_for_type): Likewise.
18104 (allocate_struct_function): Likewise.
18105 (types_used_by_var_decl_insert): Likewise.
18107 * except.c (init_eh_for_function): Likewise.
18108 (gen_eh_region): Likewise.
18109 (gen_eh_region_catch): Likewise.
18110 (gen_eh_landing_pad): Likewise.
18111 (add_call_site): Likewise.
18113 * emit-rtl.c (get_mem_attrs): Likewise.
18114 (get_reg_attrs): Likewise.
18115 (start_sequence): Likewise.
18116 (init_emit): Likewise.
18118 * dwarf2out.c (new_cfi): Likewise.
18119 (queue_reg_save): Likewise.
18120 (dwarf2out_frame_init): Likewise.
18121 (new_loc_descr): Likewise.
18122 (find_AT_string): Likewise.
18123 (new_die): Likewise.
18124 (add_var_loc_to_decl): Likewise.
18125 (clone_die): Likewise.
18126 (clone_as_declaration): Likewise.
18127 (break_out_comdat_types): Likewise.
18128 (new_loc_list): Likewise.
18129 (loc_descriptor): Likewise.
18130 (add_loc_descr_to_each): Likewise.
18131 (add_const_value_attribute): Likewise.
18132 (tree_add_const_value_attribute): Likewise.
18133 (add_comp_dir_attribute): Likewise.
18134 (add_name_and_src_coords_attributes): Likewise.
18135 (lookup_filename): Likewise.
18136 (store_vcall_insn): Likewise.
18137 (dwarf2out_init): Likewise.
18139 * dbxout.c (dbxout_init): Likewise.
18141 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18143 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18145 * config/score/score7.c (score7_output_external): Likewise.
18147 * config/score/score3.c (score3_output_external): Likewise.
18149 * config/s390/s390.c (s390_init_machine_status): Likewise.
18151 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18152 (rs6000_init_machine_status): Likewise.
18153 (output_toc): Likewise.
18155 * config/pa/pa.c (pa_init_machine_status): Likewise.
18156 (get_deferred_plabel): Likewise.
18158 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18160 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18162 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18164 * config/mep/mep.c (mep_init_machine_status): Likewise.
18165 (mep_note_pragma_flag): Likewise.
18167 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18169 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18171 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18173 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18174 (i386_pe_maybe_record_exported_symbol): Likewise.
18176 * config/i386/i386.c (get_dllimport_decl): Likewise.
18177 (ix86_init_machine_status): Likewise.
18178 (assign_386_stack_local): Likewise.
18180 * config/frv/frv.c (frv_init_machine_status): Likewise.
18182 * config/darwin.c (machopic_indirection_name): Likewise.
18184 * config/cris/cris.c (cris_init_machine_status): Likewise.
18186 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18188 * config/avr/avr.c (avr_init_machine_status): Likewise.
18190 * config/arm/arm.c (arm_init_machine_status): Likewise.
18192 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18193 (alpha_need_linkage): Likewise.
18194 (alpha_use_linkage): Likewise.
18196 * cgraph.c (cgraph_allocate_node): Likewise.
18197 (cgraph_create_edge_1): Likewise.
18198 (cgraph_create_indirect_edge): Likewise.
18199 (cgraph_add_asm_node): Likewise.
18201 * cfgrtl.c (init_rtl_bb_info): Likewise.
18203 * cfgloop.c (alloc_loop): Likewise.
18204 (rescan_loop_exit): Likewise.
18206 * cfg.c (init_flow): Likewise.
18207 (alloc_block): Likewise.
18208 (unchecked_make_edge): Likewise.
18210 * c-parser.c (c_parse_init): Likewise.
18211 (c_parse_file): Likewise.
18213 * c-decl.c (bind): Likewise.
18214 (record_inline_static): Likewise.
18215 (push_scope): Likewise.
18216 (make_label): Likewise.
18217 (lookup_label_for_goto): Likewise.
18218 (finish_struct): Likewise.
18219 (finish_enum): Likewise.
18220 (c_push_function_context): Likewise.
18222 * bitmap.c (bitmap_element_allocate): Likewise.
18223 (bitmap_gc_alloc_stat): Likewise.
18225 * alias.c (record_alias_subset): Likewise.
18226 (init_alias_analysis): Likewise.
18228 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
18230 * fold-const.c (fold_comparison): Remove redundant parenthesis.
18231 * tree-inline.c (expand_call_inline): Pass translated return value of
18232 cgraph_inline_failed_string to diagnostic function.
18234 2010-06-08 Andrew Pinski <pinskia@gmail.com>
18235 Shujing Zhao <pearly.zhao@oracle.com>
18238 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
18239 implicit bad conversions is initialization.
18240 (error_init): Use gmsgid instead of msgid for argument name and change
18241 the call for error.
18242 (pedwarn_init): Use gmsgid instead of msgid for argument name and
18243 change the call for pedwarn.
18244 (warning_init): Use gmsgid instead of msgid for argument name and
18245 change the call for warning.
18247 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
18249 * config/mips/mips-protos.h (mips_print_operand): Delete.
18250 (mips_print_operand_address): Delete.
18251 * config/mips/mips.h (mips_print_operand_punct): Delete.
18252 (PRINT_OPERAND): Delete.
18253 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18254 (PRINT_OPERAND_ADDRESS): Delete.
18255 * config/mips/mips.c (mips_print_operand_punct): Make static.
18256 (mips_print_operand_address): Make static.
18257 (mips_print_operand): Make static. Call
18258 mips_print_operand_punct_valid_p.
18259 (mips_print_operand_punct_valid_p): New function.
18260 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18261 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18263 2010-06-07 Jan Hubicka <jh@suse.cz>
18265 PR middle-end/44454
18266 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
18269 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
18271 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
18274 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18276 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18277 attributes): Document gas.
18279 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
18281 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
18282 <TYPE_LEA>: Split instruction.
18283 <default>: Remove alternative 2 handling.
18284 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
18285 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
18286 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
18288 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
18289 (ashift_zext lea splitter): Use DImode for multiplication.
18291 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
18292 to generate addition.
18294 2010-06-07 Joseph Myers <joseph@codesourcery.com>
18296 * common.opt (fira-verbose): Use Var.
18297 (fpcc-struct-return): Use Init instead of VarExists.
18298 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
18300 * flags.h (flag_signed_char, flag_short_enums,
18301 flag_pcc_struct_return, flag_ira_verbose,
18302 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
18303 * toplev.c (flag_detailed_statistics, flag_signed_char,
18304 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
18305 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
18306 * toplev.h (flag_crossjumping, flag_if_conversion,
18307 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
18308 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
18309 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
18310 flag_cprop_registers, time_report, flag_ira_loop_pressure,
18311 flag_ira_coalesce, flag_ira_move_spills,
18312 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
18314 2010-06-07 Jan Hubicka <jh@suse.cz>
18316 * df-core.c (df_analyze_problem): Do verification after allocation.
18318 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
18319 (df_lr_alloc): Initialize problem data; move bitmaps to
18320 lr_bitmaps obstack.
18321 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
18322 (df_lr_verify_solution_start): Do not initialize problem data;
18323 allocate bitmaps in lr_bitmaps.
18324 (df_lr_verify_solution_end): Do not free problem data.
18326 2010-06-07 Jan Hubicka <jh@suse.cz>
18328 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
18329 if caller is noreturn.
18330 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
18331 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
18332 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
18333 * ipa-pure-const.c (check_decl): Add IPA parameter.
18334 (state_from_flags): New function.
18335 (better_state, worse_state): New functions.
18336 (check_call): When in IPA mode, do not care about callees.
18337 (check_load, check_store): Update.
18338 (check_ipa_load, check_ipa_store): New.
18339 (check_stmt): When in IPA mode, use IPA checkers.
18340 (analyze_function): Use state_from_flags.
18341 (propagate): Check indirect edges and references.
18343 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
18345 PR rtl-optimization/44404
18346 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
18347 of count_occurrences to see if it's safe to modify mem_insn.
18349 2010-06-07 Richard Guenther <rguenther@suse.de>
18351 * gimplify.c (gimplify_cleanup_point_expr): For empty body
18352 and EH-only cleanup drop the cleanup instead of inserting it
18355 2010-06-07 Ira Rosen <irar@il.ibm.com>
18357 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
18359 * targhooks.c (default_builtin_vectorization_cost): New function.
18360 * targhooks.h (default_builtin_vectorization_cost): Declare.
18361 * target.h (enum vect_cost_for_stmt): Define.
18362 (builtin_vectorization_cost): Change argument and comment.
18363 * tree-vectorizer.h: Remove cost model macros.
18364 * tree-vect-loop.c: Include target.h.
18365 (vect_get_cost): New function.
18366 (vect_estimate_min_profitable_iters): Replace cost model macros with
18367 calls to vect_get_cost.
18368 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
18369 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
18370 default implementation.
18371 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
18372 calls to target hook builtin_vectorization_cost.
18373 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
18375 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
18376 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
18377 implementation to return costs.
18378 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18379 * config/spu/spu.h: Remove vectorizer cost model macros.
18380 * config/i386/i386.h: Likewise.
18381 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
18382 a call to target hook builtin_vectorization_cost.
18384 2010-06-06 Sriraman Tallam <tmsriram@google.com>
18387 * config/i386/i386.c (override_options): Turn zee pass on for level 2
18388 and above and defer till target is known.
18389 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
18390 turn off otherwise.
18392 2010-05-25 Jan Hubicka <jh@suse.cz>
18394 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
18395 (df_compact_blocks): Likewise.
18396 * df.h (struct df): Turn hardware_regs_used,
18397 regular_block_artificial_uses, eh_block_artificial_uses,
18398 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
18400 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
18401 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
18402 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
18403 df_scan_blocks, df_insn_delete, df_insn_rescan,
18404 df_insn_rescan_debug_internal, df_insn_rescan_all,
18405 df_process_deferred_rescans, df_process_deferred_rescans,
18406 df_notes_rescan, df_get_call_refs, df_get_call_refs,
18407 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
18408 df_record_entry_block_defs, df_record_exit_block_uses,
18409 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
18410 df_scan_verify): Update.
18412 2010-05-25 Dodji Seketeli <dodji@redhat.com>
18415 * c-common.c (is_typedef_decl): Move this definition ...
18416 * tree.c (is_typedef_decl): ... here.
18417 (typdef_variant_p): Move definition here from cp/tree.c.
18418 * c-common.h (is_typedef_decl): Move this declaration ...
18419 * tree.h (is_typedef_decl): ... here.
18420 (typedef_variant_p): Move declaration here from cp/cp-tree.h
18421 * dwarf2out.c (is_naming_typedef_decl): New function.
18422 (gen_tagged_type_die): Split out of ...
18423 (gen_type_die_with_usage): ... this function. When an anonymous
18424 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18425 is emitted for the typedef.
18426 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18427 anonymous tagged types.
18429 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
18432 * c-decl.c (grokdeclarator): Delete warning.
18434 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
18436 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
18437 newly built CALL_EXPR.
18438 * tree-profile.c (tree_profiling): Don't profile functions produced
18439 for built-in stuff.
18441 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
18445 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
18446 endianness-independent.
18448 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
18450 * c-common.c: Move to c-family/.
18451 * c-common.def: Likewise.
18452 * c-common.h: Likewise.
18453 * c-cppbuiltin.c: Likewise.
18454 * c-dump.c: Likewise.
18455 * c-format.c: Likewise.
18456 * c-format.h : Likewise.
18457 * c-gimplify.c: Likewise.
18458 * c-lex.c: Likewise.
18459 * c-omp.c: Likewise.
18461 * c-opts.c: Likewise.
18462 * c-pch.c: Likewise.
18463 * c-ppoutput.c: Likewise.
18464 * c-pragma.c: Likewise.
18465 * c-pragma.h: Likewise.
18466 * c-pretty-print.c: Likewise.
18467 * c-pretty-print.h: Likewise.
18468 * c-semantics.c: Likewise.
18469 * stub-objc.c: Likewise.
18471 * gengtype.c (get_file_langdir): Special-case files in c-family/.
18472 (get_output_file_with_visibility): Fix name for c-common.h.
18473 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
18475 * c-tree.h: Update include path for moved files.
18476 * c-lang.c: Likewise.
18477 * c-lang.h: Likewise.
18478 * c-parser.c: Likewise.
18479 * c-convert.c: Likewise.
18480 * c-decl.c: Likewise.
18481 * c-objc-common.c: Likewise.
18482 * configure.ac: Make sure c-family/ exists in the build directory.
18483 * configure: Regenerate.
18484 * Makefile.in: Update paths for moved files. Regroup files per
18485 location and update dependencies. Move generated_files down after
18488 * config/spu/spu-c.c: Update paths for moved files.
18489 * config/mep/mep-pragma.c: Likewise.
18490 * config/darwin-c.c: Likewise.
18491 * config/i386/msformat-c.c: Likewise.
18492 * config/i386/i386-c.c: Likewise.
18493 * config/avr/avr-c.c: Likewise.
18494 * config/sol2-c.c: Likewise.
18495 * config/ia64/ia64-c.c: Likewise.
18496 * config/rs6000/rs6000-c.c: Likewise.
18497 * config/arm/arm.c: Likewise.
18498 * config/arm/arm-c.c: Likewise.
18499 * config/h8300/h8300.c: Likewise.
18500 * config/v850/v850-c.c: Likewise.
18502 * config/t-darwin: Fix dependencies for moved files.
18503 * config/t-sol2: Fix dependencies for moved files.
18504 * config/mep/t-mep: Fix dependencies for moved files.
18505 * config/ia64/t-ia64: Fix dependencies for moved files.
18506 * config/rs6000/t-rs6000: Fix dependencies for moved files.
18507 * config/v850/t-v850: Fix dependencies for moved files.
18508 * config/v850/t-v850e: Fix dependencies for moved files.
18510 * config/m32c/m32c-pragma.c
18512 * po/exgettext: Look in c-family/ also.
18514 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
18516 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
18517 (mark_control_dependent_edges_necessary): Call it instead of marking
18518 the last statement manually.
18519 (propagate_necessity): Likewise.
18521 2010-06-05 Jan Hubicka <jh@suse.cz>
18523 * basic-block.h (compute_dominance_frontiers): Updated.
18524 (compute_idf): Likewise.
18526 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
18527 for dominance frontiers.
18528 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
18529 (insert_updated_phi_nodes_for): Likewise.
18530 (update_ssa): Likewise.
18531 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18532 (compute_dominance_frontiers): Likewise.
18533 (compute_idf): Likewise.
18534 * df-problems.c (df_md_local_compute): Likewise.
18536 2010-06-05 Anatoly Sokolov <aesok@post.ru>
18538 * target.h (struct gcc_target): Add memory_move_cost field.
18539 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
18540 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
18541 * targhooks.c (default_memory_move_cost): New function.
18542 * targhooks.h (default_memory_move_cost): Declare function.
18543 * reload.h (memory_move_cost): Declare.
18544 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18545 * reginfo.c (memory_move_cost): New function.
18546 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18547 * ira.h (ira_memory_move_cost): Update comment.
18548 * ira.c (ira_memory_move_cost): Update comment.
18549 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
18550 with memory_move_cost.
18551 * postreload.c (reload_cse_simplify_set): (Ditto.).
18552 * reload1.c (choose_reload_regs): (Ditto.).
18553 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
18554 (MEMORY_MOVE_COST): Revise documentation.
18556 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18557 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18558 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
18559 type of 'in' argument to bool.
18560 (TARGET_MEMORY_MOVE_COST): Define.
18562 2010-06-05 Jan Hubicka <jh@suse.cz>
18564 * ipa-pure-const.c (propagate): Fix typo in handling of functions
18565 that cannot return. Be more careful when merging the results with
18566 previously known ones.
18568 2010-06-05 Matthias Klose <doko@ubuntu.com>
18570 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
18571 function to add the -iplugindir option.
18572 (find_plugindir_spec_function): Add new declaration and function.
18573 (static_spec_func): Use it for "find-plugindir".
18575 2010-06-05 Jakub Jelinek <jakub@redhat.com>
18578 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
18579 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
18580 statement expression.
18582 2010-06-05 Jan Hubicka <jh@suse.cz>
18584 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
18585 (df_rd_problem_data): Convert sparse_invalidated_by_call,
18586 dense_invalidated_by_call to bitmap head.
18587 (df_rd_alloc, df_rd_bb_local_compute_process_def,
18588 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
18589 df_rd_start_dump, df_lr_verify_transfer_functions,
18590 df_live_verify_transfer_functions, df_chain_create_bb,
18591 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
18592 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
18593 df_simulate_one_insn_forwards, df_md_alloc,
18594 df_md_bb_local_compute_process_def,
18595 df_md_bb_local_compute_process_def, df_md_local_compute,
18596 df_md_transfer_function df_md_free): Update.
18598 2010-06-05 Joseph Myers <joseph@codesourcery.com>
18601 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
18602 target type for ADDR_EXPR; require no changes to qualifiers except
18603 for function types.
18604 * c-tree.h (c_build_type_variant): Remove.
18606 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18608 * genautomata.c (get_excl_set): Do work per element, not per char.
18609 (check_presence_pattern_sets): Similar.
18610 (check_absence_pattern_sets): Similar.
18612 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18614 * genautomata.c (curr_state_pass_num): Delete.
18615 (min_issue_delay_pass_states): Delete.
18616 (min_issue_delay): Delete.
18617 (initiate_min_issue_delay_pass_states): Delete.
18618 (output_min_issue_delay_table): Compute min_issue_delay_vect
18619 using a breadth-first search variant.
18620 (output_tables): Don't call initiate_min_issue_delay_pass_states.
18622 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
18625 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
18626 (df_byte_lr_bb_local_compute): Likewise.
18628 2010-06-03 Jason Merrill <jason@redhat.com>
18630 Implement noexcept operator (5.3.7)
18631 * c-common.c (c_common_reswords): Add noexcept.
18632 * c-common.h (enum rid): Add RID_NOEXCEPT.
18634 2010-06-04 Joseph Myers <joseph@codesourcery.com>
18636 * config/darwin-driver.c (darwin_default_min_version): Use
18637 GCC-specific formats in diagnostics.
18638 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
18640 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
18641 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
18642 eval_spec_function, handle_braces, process_brace_body, main,
18643 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
18644 getenv_spec_function, compare_version_strings,
18645 version_compare_spec_function): Use GCC-specific formats in
18648 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18650 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
18651 that operand 0 and operand 1 are equal.
18652 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
18653 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
18654 and operand 1 are equal.
18655 <default>: Ditto. Remove ??? comment.
18656 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
18657 and operand 1 are equal.
18658 <default>: Ditto. Remove ??? comment.
18659 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
18661 (*add<mode>_4) <default>: Ditto.
18662 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
18664 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
18666 * config/i386/i386-protos.h (ix86_print_operand): Declare.
18667 * config/i386/i386.c (ix86_print_operand): Make non-static.
18668 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
18669 * output.h (output_operand): Declare.
18670 * final.c (output_operand): Make non-static.
18672 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
18674 PR rtl-optimization/44013
18675 * sched-deps.c (add_dependence_list_and_free): Don't free lists
18676 when processing debug insns.
18679 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
18680 recursing. Check that recursion is bounded. Rename inner var
18681 to avoid hiding incoming argument.
18683 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18685 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
18686 operands[2] == 255.
18690 (*addqi_ext_1_rex64): Ditto.
18691 (*addqi_ext_1): Ditto.
18693 (*addqi_4): Check for incdec_operand in QImode.
18695 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
18696 using SWI mode iterator.
18697 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
18698 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18700 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
18701 using SWI mode iterator.
18703 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
18706 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
18707 * c-format.c (gcc_diag_flag_specs): Add hash.
18708 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
18709 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
18710 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
18711 pp_c_cv_qualifiers. Handle qualifiers spelling here.
18712 (pp_c_type_qualifier_list): Call the function above.
18713 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
18714 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
18715 (WARN_FOR_QUALIFIERS): New macro.
18716 (convert_for_assignment): Use it.
18718 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
18720 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
18722 2010-06-04 Jan Hubicka <jh@suse.cz>
18724 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
18725 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
18726 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
18727 DF_BYTE_LR_OUT): Update for embedded bitmaps.
18728 * fwprop.c (single_def_use_enter_block): Likewise.
18729 * ddg.c (create_ddg_dep_from_intra_loop_link,
18730 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
18731 * loop-iv.c (latch_dominating_def): Likewise.
18732 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
18733 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
18734 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
18735 df_rd_transfer_function, df_rd_top_dump,
18736 df_rd_bottom_dump): Update.
18737 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
18738 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
18739 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
18740 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
18741 df_lr_verify_solution_start, df_lr_verify_solution_end,
18742 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
18743 df_live_free_bb_info, df_live_alloc, df_live_reset,
18744 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
18745 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
18746 df_live_verify_solution_start, df_live_verify_solution_end,
18747 df_live_verify_transfer_functions, df_chain_create_bb,
18748 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
18749 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18750 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18751 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
18752 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18753 df_byte_lr_transfer_function, df_byte_lr_top_dump,
18754 df_byte_lr_bottom_dump, df_create_unused_note,
18755 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
18756 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
18757 df_md_transfer_function, df_md_init, df_md_confluence_0,
18758 df_md_confluence_n,
18759 df_md_top_dump, df_md_bottom_dump): Update.
18760 (struct df_lr_problem_data): Embedd bitmap headers.
18762 2010-06-04 Jan Hubicka <jh@suse.cz>
18764 * dce.c (dce_process_block): Do not re-scan already marked
18767 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
18769 PR rtl-optimization/39871
18770 PR rtl-optimization/40615
18771 PR rtl-optimization/42500
18772 PR rtl-optimization/42502
18773 * ira.c (init_reg_equiv_memory_loc: New function.
18774 (ira): Call it twice.
18775 * reload.h (calculate_elim_costs_all_insns): Declare.
18776 * ira-costs.c: Include "reload.h".
18777 (regno_equiv_gains): New static variable.
18778 (init_costs): Allocate it.
18779 (finish_costs): Free it.
18780 (ira_costs): Call calculate_elim_costs_all_insns.
18781 (find_costs_and_classes): Take estimated elimination costs
18783 (ira_adjust_equiv_reg_cost): New function.
18784 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
18785 * reload1.c (init_eliminable_invariants, free_reg_equiv,
18786 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
18787 (elim_bb): New static variable.
18788 (reload): Move code out of here into init_eliminable_invariants and
18789 free_reg_equiv. Call them.
18790 (calculate_elim_costs_all_insns): New function.
18791 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
18792 all callers changed. If FOR_COSTS is true, don't call alter_reg,
18793 but call note_reg_elim_costly if we turned a valid memory address
18794 into an invalid one.
18795 * Makefile.in (ira-costs.o): Depend on reload.h.
18797 2010-06-04 Julian Brown <julian@codesourcery.com>
18799 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
18802 2010-06-04 Richard Guenther <rguenther@suse.de>
18805 * cgraph.h (struct varpool_node): Add lto_file_data field.
18806 * lto-cgraph.c (input_varpool_node): Initialize it.
18808 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18810 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
18811 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
18812 predicate in "type" attribute calculation.
18813 (*addsi_1_zext): Ditto.
18814 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
18815 (*addsi_2_zext): Ditto.
18816 (*add<mode>_3): Ditto.
18817 (*addsi_3_zext): Ditto.
18818 (*add<mode>_5): Ditto.
18820 2010-06-03 Jan Hubicka <jh@suse.cz>
18822 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
18824 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18826 2010-06-03 Jan Hubicka <jh@suse.cz>
18828 * df-problems.c (df_create_unused_note, df_note_bb_compute):
18829 micro-optimize the checks when to add new note.
18831 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
18833 * final.c (output_asm_insn): Call
18834 targetm.asm_out.print_operand_punct_valid_p. Update comments.
18835 (output_operand): Call targetm.asm_out.print_operand. Update comments.
18836 (output_address): Call targetm.asm_out.print_operand_address.
18838 * target.h (struct gcc_target): Add print_operand,
18839 print_operand_address, and print_operand_punct_valid_p fields.
18840 * targhooks.h (default_print_operand): Declare.
18841 (default_print_operand_address): Declare.
18842 (default_print_operand_punct_valid_p): Declare.
18843 * targhooks.c (default_print_operand): Define.
18844 (default_print_operand_address): Define.
18845 (default_print_operand_punct_valid_p): Define.
18846 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
18847 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
18848 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
18849 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
18850 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
18851 * vmsdbgout.c (addr_const_to_string): Update comment.
18852 * config/i386/i386.c (print_operand): Rename to...
18853 (ix86_print_operand): ...this. Make static.
18854 (print_operand_address): Rename to...
18855 (ix86_print_operand_address): ...this. Make static. Call
18856 ix86_print_operand instead of PRINT_OPERAND.
18857 (ix86_print_operand_punct_valid_p): New function.
18858 (TARGET_PRINT_OPERAND): Define.
18859 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18860 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18861 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
18862 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18863 (PRINT_OPERAND): Delete.
18864 (PRINT_OPERAND_ADDRESS): Delete.
18865 * config/i386/i386-protos.h (print_operand): Delete prototype.
18866 (print_operand_address): Delete prototype.
18868 2010-06-03 Richard Guenther <rguenther@suse.de>
18870 PR tree-optimization/44403
18871 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18872 Preserve pointer qualifiers.
18873 (vect_create_data_ref_ptr): Likewise.
18875 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
18878 * defaults.h (MAX_FIXED_MODE_SIZE): New.
18880 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
18882 2010-06-03 Jakub Jelinek <jakub@redhat.com>
18885 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
18886 return false if merging the bbs would lead to goto_locus
18887 location being lost from the IL.
18889 2010-06-03 Jan Hubicka <jh@suse.cz>
18890 Jakub Jelinek <jakub@redhat.com>
18892 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
18893 set->regs[i] is NULL or has just one entry.
18895 2010-06-03 Jan Hubicka <jh@suse.cz>
18897 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
18898 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
18900 2010-06-03 Paul Brook <paul@codesourcery.com>
18902 * config/arm/arm.c (FL_TUNE): Define.
18903 (arm_default_cpu, arm_cpu_select): Remove.
18904 (all_cores): Populate core field.
18905 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
18906 (arm_find_cpu): New function.
18907 (arm_handle_option): Lookup cpu/architecture names.
18908 (arm_override_options): Cleanup mcpu/march/mtune handling.
18909 (arm_file_start): Ditto.
18911 2010-06-03 Alan Modra <amodra@gmail.com>
18914 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
18915 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
18916 rtx to gen_load_toc_v4_PIC_1b. Tidy.
18917 (rs6000_emit_load_toc_table): Likewise.
18919 2010-06-02 Jan Hubicka <jh@suse.cz>
18921 * passes.c (init_optimization_passes): Put ipa reference
18922 after ipa pure-const.
18924 2010-06-02 Jan Hubicka <jh@suse.cz>
18926 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
18927 calls_read_all and calls_write_all.
18928 (get_reference_optimization_summary): Fix formatting.
18929 (is_proper_for_analysis): Check that decl is not readonly.
18930 (propagate_bits): Check CONST/PURE/noreturn flags.
18931 (ipa_init): Move all_module_statics to optimization_summary_obstack.
18932 (analyze_function): Ignore indirect edges.
18933 (copy_global_bitmap): For all module statics, do nothing.
18934 (generate_summary): Do not print calls_read_all/calls_write_all.
18935 (read_write_all_from_decl): Take node as argument; check
18936 cgraph_node_cannot_return.
18937 (propagate): Reorganize read_all/write_all computation;
18938 check indirect edges; check ecf flags; use all_module_statics
18939 in the results; do not free all_module_statics.
18940 (stream_out_bitmap): Handle all_module_statics.
18941 (ipa_reference_write_optimization_summary): Likewise; use
18942 varpool/cgraph encoders to get boundaries.
18943 (ipa_reference_read_optimization_summary): Read in all_module_statics;
18944 use it when possible.
18946 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18949 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
18950 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
18952 * doc/extend.texi (powerpc builtins): Document vec_recip,
18953 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
18955 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
18956 (rs6000_emit_swrsqrt): Ditto.
18957 (rs6000_emit_swdivsf): Delete.
18958 (rs6000_emit_swdivdf): Ditto.
18959 (rs6000_emit_swrsqrtsf): Ditto.
18961 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
18962 describe the reciprocal estimate support for each type.
18963 (recip_options): Map -mrecip=<opt> into option bits.
18964 (gen_2arg_fn_t): New typedef for binary rtx gen function.
18965 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
18966 reciprocal estimate instructions.
18967 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
18968 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
18969 Set up rs6000_recip_bits based on the -mrecip* options. Print the
18970 cost information if -mdebug=cost or -mdebug=reg.
18971 (rs6000_override_options): Set -mrecip-precision for power6, and
18972 power7 machines. If -mvsx or -mdfp, enable various options that
18973 came in previous instruction set ISAs, unless the option was
18974 explicitly disabled by the command line option. Parse
18975 -mrecip=<opt> options.
18976 (rs6000_builtin_vectorized_function): Add support for vectorizing
18977 the reciprocal estimate builtins and expansions.
18978 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
18979 (bdesc_2arg): Add reciprocal estimate builtins.
18980 (bdesc_1arg): Add reciprocal square root estimate builtins.
18981 (rs6000_expand_builtin): Rewrite to use a switch statement,
18982 instead of multiple if/then/elses. Add reciprocal estimate builtins.
18983 (rs6000_init_builtins): Create declarations for reciprocal
18985 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
18986 sized, prefer traditional floating point registers, if integer
18987 vector types, prefer altivec registers. Don't actually look at
18988 the memory address any more.
18989 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
18991 (rs6000_load_constant_and_splat): New helper function to load up
18992 the constant for reciprocal estimate instructions.
18993 (rs6000_emit_madd): New helper function for generating
18994 multiply/add type instructions, based on the current switches.
18995 (rs6000_emit_msub): Ditto.
18996 (rs6000_emit_mnsub): Ditto.
18997 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
18998 replace a divide with a reciprocal estimate and fixup, adding
18999 support for machines with high precision and vectors.
19000 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
19001 low precision machines.
19002 (rs6000_emit_swdiv): New common function to be called to replace a
19003 division with reciprocal estimate and fixup.
19004 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
19005 for double and vector types. Add support for high precision machines.
19007 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
19008 the reciprocal estimate instructions can be generated.
19009 (TARGET_FRE): Ditto.
19010 (TARGET_FRSQRTES): Ditto.
19011 (TARGET_FRSQRTE): Ditto.
19012 (RS6000_RECIP_*): New macros for reciprocal estimate support.
19014 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
19015 square root estimate on vectors.
19016 (re<mode>2): New insn for reciprocal division estimate on vectors.
19018 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
19020 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
19021 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
19022 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
19023 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
19024 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
19025 (RS6000_BUILTIN_RSQRT): Ditto.
19026 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
19027 floating point builtin.
19029 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19030 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
19031 __RECIP_PRECISION__ based on the command line switches.
19032 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
19034 * config/rs6000/rs6000.opt (-mrecip): Document add support for
19035 replacing division instructions with reciprocal estimate and fixup.
19036 (-mrecip=<opt>): New option.
19037 (-mrecip-precision): Ditto.
19039 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
19040 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
19041 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
19044 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
19045 (UNSPEC_VREFP): Ditto.
19046 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
19047 conterparts with regard to support of -mno-fused-madd and -ffast-math.
19048 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
19049 reciprocal estimate instructions to be generated.
19050 (altivec_vrefp): Ditto.
19052 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
19054 (rreg): New mode attribute for reciprocal estimate support.
19055 (recip<mode>3): New insn for division using reciprocal estimate
19056 and fixup builtins.
19057 (divide define_split): New define_split to convert floating point
19058 division to use reciprocal estimate if the user used the
19059 appropriate options and the split is run when we can add new
19060 pseudo registers for the fixup.
19061 (rsqrt<mode>2): New insn for reciprocal square root support.
19062 (recipsf3): Move into recip<mode>3.
19064 (fres): Use TARGET_FRES.
19065 (rsqrtsf2): Move into rsqrt<mode>2.
19066 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
19067 (copysignsf3): Add support for VSX.
19068 (fred): Use TARGET_FRE.
19070 (rsqrtdf_internal1): New function for frsqrte instruciton.
19072 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
19073 (vec_rsqrt): Ditto.
19075 2010-06-03 Richard Guenther <rguenther@suse.de>
19077 PR middle-end/44291
19078 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
19079 (set_user_assembler_libfunc): Likewise.
19081 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
19083 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
19085 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
19087 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
19088 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
19089 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
19090 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
19091 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
19092 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
19093 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
19094 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
19095 * defaults.h: Updated for above mentioned changes.
19097 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
19099 * c-common.c: Remove header include of tm_p.h.
19100 * Makefile.in (c-common.o): Remove TM_P_H dependency.
19102 2010-06-02 Jakub Jelinek <jakub@redhat.com>
19104 * tree.h (struct tree_decl_map): New type.
19105 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
19106 (tree_decl_map_hash): New prototype.
19107 (debug_expr_for_decl, value_expr_for_decl): Change into
19108 tree_decl_map hashtab from tree_map.
19109 (init_ttree): Adjust initialization.
19110 (tree_decl_map_hash): New function.
19111 (decl_debug_expr_lookup, decl_debug_expr_insert,
19112 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
19114 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19116 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
19118 * configure: Regenerate.
19119 * config.in: Regenerate.
19121 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
19122 (X86_64_EMULATION): Define.
19123 (TARGET_LD_EMULATION): Use them.
19125 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
19126 (SPARC64_EMULATION): Define.
19127 (LINK_ARCH_SPEC): Use them.
19129 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
19131 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
19132 smallest_mode_for_size for computing the precision types of new
19133 graphite IVs. Do not call lang_hooks.types.type_for_size.
19135 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
19137 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
19139 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
19141 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
19143 PR middle-end/44363
19144 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
19145 return false instead.
19147 2010-06-02 Jan Hubicka <jh@suse.cz>
19149 PR middle-end/44295
19150 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
19151 create new cgraph node to check callee.
19153 2010-06-02 Richard Guenther <rguenther@suse.de>
19155 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
19157 2010-06-02 Richard Guenther <rguenther@suse.de>
19159 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
19160 (lto_wrapper_cleanup): ... this. Do not exit.
19161 (fatal): Adjust. Exit here.
19162 (fatal_perror): Likewise.
19163 (fatal_signal): New function.
19164 (main): Set up signal handlers to cleanup temporary files.
19165 * Makefile.in (lto-wrapper.o): Adjust dependencies.
19167 2010-06-02 Richard Guenther <rguenther@suse.de>
19169 PR tree-optimization/44377
19170 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
19172 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19174 * config/s390/2097.md (z10_fhex): Remove insn reservation.
19175 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
19176 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
19177 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
19179 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
19181 2010-06-02 Jan Hubicka <jh@suse.cz>
19183 * bitmap.c (bitmap_descriptor): Add search_iter.
19184 (bitmap_find_bit): Increment it.
19185 (print_statistics): Print it.
19187 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
19189 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
19190 instead of gimple_build_call_vec. Delete unnecessary local variable.
19192 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
19194 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
19195 change from yesterday.
19197 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
19199 * c-ada-spec.c: Clean up redundant includes.
19201 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
19203 * gimplify.c: Do not include except.h and optabs.h.
19204 (gimplify_body): Do not initialize RTL profiling.
19205 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
19206 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
19207 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
19208 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
19211 * tree-pretty-print.h: Include pretty-print.h.
19212 * gimple-pretty-print.h: Include pretty-print.h.
19214 * tree-pretty-print.c: Do not include diagnostic.h.
19215 * tree-vrp.c: Likewise.
19216 * tree-tailcall.c: Likewise
19217 * tree-scalar-evolution.c: Likewise
19218 * tree-ssa-dse.c: Likewise
19219 * tree-chrec.c: Likewise
19220 * tree-ssa-sccvn.c: Likewise
19221 * tree-ssa-copyrename.c: Likewise
19222 * tree-nomudflap.c: Likewise
19223 * tree-call-cdce.c: Likewise
19224 * tree-stdarg.c: Likewise
19225 * tree-ssa-math-opts.c: Likewise
19226 * tree-nrv.c: Likewise
19227 * tree-ssa-sink.c: Likewise
19228 * tree-browser.c: Likewise
19229 * tree-ssa-loop-ivcanon.c: Likewise
19230 * tree-ssa-loop.c: Likewise
19231 * tree-parloops.c: Likewise
19232 * tree-ssa-address.c: Likewise
19233 * tree-ssa-ifcombine.c: Likewise
19234 * tree-if-conv.c: Likewise
19235 * tree-data-ref.c: Likewise
19236 * tree-affine.c: Likewise
19237 * tree-ssa-phiopt.c: Likewise
19238 * tree-ssa-coalesce.c: Likewise
19239 * tree-ssa-pre.c: Likewise
19240 * tree-ssa-live.c: Likewise
19241 * tree-predcom.c: Likewise
19242 * tree-ssa-forwprop.c: Likewise
19243 * tree-ssa-dce.c: Likewise
19244 * tree-ssa-ter.c: Likewise
19245 * tree-ssa-loop-prefetch.c: Likewise
19246 * tree-optimize.c: Likewise
19247 * tree-ssa-phiprop.c: Likewise
19248 * tree-object-size.c: Likewise
19249 * tree-outof-ssa.c: Likewise
19250 * tree-ssa-structalias.c: Likewise
19251 * tree-switch-conversion.c: Likewise
19252 * tree-ssa-reassoc.c: Likewise
19253 * tree-ssa-operands.c: Likewise
19254 * tree-vectorizer.c: Likewise
19255 * tree-vect-data-refs.c: Likewise
19256 * tree-vect-generic.c: Likewise
19257 * tree-vect-stmts.c: Likewise
19258 * tree-vect-patterns.c: Likewise
19259 * tree-vect-slp.c: Likewise
19260 * tree-vect-loop.c: Likewise
19261 * tree-ssa-loop-ivopts.c: Likewise
19262 * tree-ssa-loop-im.c: Likewise
19263 * tree-ssa-loop-niter.c: Likewise
19264 * tree-ssa-loop-unswitch.c: Likewise
19265 * tree-ssa-loop-manip.c: Likewise
19266 * tree-ssa-loop-ch.c: Likewise
19267 * tree-dump.c: Likewise
19268 * tree-complex.c: Likewise
19270 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
19271 * tree-ssa-uninit.c: Likewise
19272 * tree-ssa-threadupdate.c: Likewise
19273 * tree-ssa-uncprop.c: Likewise
19274 * tree-ssa-ccp.c: Likewise
19275 * tree-ssa-dom.c: Likewise
19276 * tree-ssa-propagate.c: Likewise
19277 * tree-ssa-alias.c: Likewise
19278 * tree-dfa.c: Likewise
19279 * tree-cfgcleanup.c: Likewise
19280 * tree-sra.c: Likewise
19281 * tree-ssa-copy.c: Likewise
19282 * tree-ssa.c: Likewise
19283 * tree-profile.c: Likewise
19284 * tree-cfg.c: Likewise
19285 * tree-ssa-threadedge.c: Likewise
19286 * tree-vect-loop-manip.c: Likewise
19288 * tree-inline.c: Do not include diagnostic.h and expr.h.
19290 (copy_decl_for_dup_finish): Do not use NULL_RTX.
19292 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
19293 * tree-loop-distribution.c: Likewise.
19295 2010-06-01 Jan Hubicka <jh@suse.cz>
19297 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
19299 2010-06-01 Jan Hubicka <jh@suse.cz>
19301 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
19302 remove return value.
19303 (split_bbs_on_noreturn_calls) .... here.
19304 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
19305 * tree-flow.h (fixup_noreturn_call): New.
19307 2010-06-01 Jan Hubicka <jh@suse.cz>
19309 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
19311 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
19313 * tree.h (build_nt_call_list): Delete.
19314 * tree.c (build_nt_call_list): Delete.
19316 2010-06-01 Jan Hubicka <jh@suse.cz>
19318 * fwprop.c: Make emit-rtl.h include last.
19319 * rtlanal.c: Include emit-rtl.h.
19320 * genautomata.c: Output emit-rtl include into insn-automata.c
19321 * df-scan.c: Include emit-rtl.h.
19322 * haifa-sched.c: Indlude emit-rtl.h.
19323 * mode-switching.c: Indlude emit-rtl.h.
19324 * graph.c: Indlude emit-rtl.h.
19325 * sel-sched.c: Include emit-rtl.h.
19326 * sel-sched-ir.c: Include emit-rtl.h.
19327 * ira-build.c: Include emit-rtl.h.
19328 * emit-rtl.c (first_insn, last_insn): Remove defines.
19329 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
19330 Move to emit-rtl.h.
19331 (set_new_first_and_last_insn, get_last_insn_anywhere,
19332 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
19333 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
19334 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
19335 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
19336 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
19337 Use accessor functions.
19338 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19339 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19340 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19341 mem_expr_equal_p): Move here from rtl.h.
19342 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
19343 Move here from emit-rtl.c; make inline.
19344 * cfglayout.h: Include emit-rtl.h.
19345 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19346 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19347 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19348 mem_expr_equal_p, get_insns, set_first-insn,
19349 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
19350 * reg-stack.c: Include emit-rtl.h.
19353 2010-06-01 Jan Hubicka <jh@suse.cz>
19355 * cgraph.h (tree_function_versioning): Update prototype.
19356 (cgraph_function_versioning): Update prototype.
19357 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
19359 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
19360 (cgraph_materialize_clone, save_inline_function_body): Update use of
19361 tree_function_versioning.
19362 * tree-inline.c (copy_bb): Look for previous copied block to link
19363 after; fix debug output.
19364 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
19365 (copy_body): Likewise.
19366 (expand_call_inline): Update use of copy_body.
19367 (tree_function_versioning): Update use of copy body; accept
19368 blocks_to_copy and new_entry.
19370 2010-06-01 Jan Hubicka <jh@suse.cz>
19372 * gegenrtl.c: Remove unnecesary prototypes.
19374 (gendef): Produce static inline.
19376 (main): Do not decode parameters; generate header only.
19377 * Makefile.in (genrtl.c): Remove.
19379 2010-06-01 Jan Hubicka <jh@suse.cz>
19381 * tree-switch-conversion.c (build_one_array): Make it readonly.
19383 2010-06-01 Richard Guenther <rguenther@suse.de>
19385 * optabs.c (init_optabs): Guard all accesses to reinit.
19386 * ipa-pure-const.c (propagate): Fix another typo.
19387 * opts.c (common_handle_option): Split assignment to bool.
19388 * c-opts.c (c_common_handle_option): Likewise.
19390 2010-06-01 Arnaud Charlet <charlet@adacore.com>
19391 Matthew Gingell <gingell@adacore.com>
19393 * doc/invoke.texi: Mention -fdump-ada-spec.
19394 * tree-dump.c (dump_files): Add ada-spec.
19395 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
19396 * tree-pass.h (tree_dump_index): Add TDI_ada.
19397 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
19398 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
19399 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
19400 * c-decl.c: Include c-ada-spec.h.
19401 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
19403 (c_write_global_declarations): Add handling of -fdump-ada-spec.
19404 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
19405 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
19406 * c-ada-spec.h, c-ada-spec.c: New files.
19408 2010-06-01 Richard Guenther <rguenther@suse.de>
19411 * ipa-pure-const.c (get_function_state): Hand back varying state
19412 if we do not have one.
19413 (has_function_state): New function.
19414 (duplicate_node_data): Adjust.
19415 (remove_node_data): Likewise.
19416 (pure_const_write_summary): Likewise.
19417 (propagate): Likewise. Fix typo.
19419 2010-06-01 Jan Hubicka <jh@suse.cz>
19421 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
19422 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
19423 (execute_all_ipa_transforms): Do not play with the states.
19425 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
19427 * config/arm/t-linux-androideabi: New.
19428 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
19430 2010-06-01 Jan Hubicka <jh@suse.cz>
19432 * tree-inline.c (estimate_num_insns): For stdarg functions look
19433 into call statement to count cost of argument passing.
19435 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
19437 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
19438 argument for fprintf.
19439 (ix86_output_addr_diff_elt): Likewise.
19440 (x86_function_profiler): Likewise.
19441 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
19442 (LPREFIX): Likewise.
19443 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
19445 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19448 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
19449 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
19450 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
19451 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
19452 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
19453 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
19454 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
19455 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
19458 2010-05-31 Jan Hubicka <jh@suse.cz>
19460 * tree.h (tree_range_check_failed): Declare noreturn.
19462 2010-05-31 Jan Hubicka <jh@suse.cz>
19464 * gimple.c (gimple_call_builtin_p): New function.
19465 * gimple.h (gimple_call_builtin_p): Declare.
19466 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
19468 (execute_warn_function_return): BUILT_IN_RETURN is return.
19469 (split_critical_edges): Return edges are not critical.
19470 (is_ctrl_altering_stmt): Builtin_in_return is altering.
19471 (gimple_verify_flow_info): Handle built_in_return.
19472 (execute_warn_function_return): Handle built_in_return.
19473 * ipa-pure-const.c (check_call): Ignore builtin_return.
19475 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19477 PR middle-end/44337
19478 * expr.c (expand_assignment): Don't store anything for out-of-bounds
19479 array accesses with non-MEM.
19481 PR tree-optimization/44182
19482 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
19483 newly needs to end a bb is followed by debug stmts, instead return
19484 true from the function at the end.
19485 (maybe_move_debug_stmts_to_successors): New function.
19486 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
19488 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
19491 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
19493 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
19495 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
19496 for nested functions in non-optimized compilation.
19498 2010-05-31 Richard Guenther <rguenther@suse.de>
19500 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
19502 2010-05-30 Jan Hubicka <jh@suse.cz>
19504 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
19506 2010-05-30 Richard Guenther <rguenther@suse.de>
19509 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19510 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
19513 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
19515 * config/darwin.c (output_objc_section_asm_op): Add comment.
19516 (name_needs_quotes): Add '_' to list of valid comment chars.
19517 (machopic_output_function_base_name): Remove unneeded quotes.
19518 (darwin_encode_section_info): Adjust asm whitespace.
19519 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
19520 (ASM_OUTPUT_LOCAL): Ditto.
19521 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
19522 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
19523 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
19525 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
19527 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
19528 RS6000_OUTPUT_BASENAME unconditionally.
19529 (rs6000_output_function_epilogue): Likewise.
19531 2010-05-30 Jan Hubicka <jh@suse.cz>
19533 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
19536 2010-05-30 Richard Guenther <rguenther@suse.de>
19538 * tree-cfg.c (verify_gimple_assign_single): Implement
19539 verification for COND_EXPR rhs.
19541 2010-05-30 Jan Hubicka <jh@suse.cz>
19543 * cgraph.h (cgraph_dump_file): Declare.
19544 * cgraphunit.c (cgraph_dump_file): Export.
19545 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
19547 2010-05-30 Jan Hubicka <jh@suse.cz>
19549 * dwarf2out.c (reference_to_unused,
19550 premark_types_used_by_global_vars_helper): Avoid creation of new
19553 2010-05-30 Jan Hubicka <jh@suse.cz>
19555 * cgraph.h (cgraph_node_cannot_return,
19556 cgraph_edge_cannot_lead_to_return): New functions.
19557 * cgraph.c (cgraph_node_cannot_return,
19558 cgraph_edge_cannot_lead_to_return): Use them.
19559 * ipa-pure-const.c (pure_const_names): New static var.
19560 (check_call): Handle calls not leading to return.
19561 (pure_const_read_summary): Dump info read.
19562 (propagate): Dump info about propagation process; ignore side effects
19563 of functions not leading to exit; fix handling of pure functions.
19565 2010-05-30 Jan Hubicka <jh@suse.cz>
19567 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
19568 for tail call epilogues.
19570 2010-05-30 Jan Hubicka <jh@suse.cz>
19572 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
19573 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
19576 2010-05-29 Jan Hubicka <jh@suse.cz>
19578 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
19579 node; remove references in node we no longer keep in cgrpah but need
19582 2010-05-29 Jan Hubicka <jh@suse.cz>
19584 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
19586 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19589 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
19591 2010-05-29 Jan Hubicka <jh@suse.cz>
19593 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
19594 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
19595 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
19596 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
19597 debug_names_replaced_by, debug_update_ssa): Likewise.
19598 * sbitmap.c (debug_sbitmap): Likewise.
19599 * genrecog.c (debug_decision, debug_decision_list): Likewise.
19600 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
19601 debug_tree_chain): Likewise.
19602 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
19603 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
19604 * optabs.c (debug_optab_libfuncs): Likewise.
19605 (verify_loop_closed_ssa): Likewise.
19606 * value-prof.c (verify_histograms): Likewise.
19607 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
19608 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
19609 * cfghooks.c (verify_flow_info): Likewise.
19610 * fold-const.c (debug_fold_checksum): Likewise.
19611 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
19612 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
19614 * omega.c (debug_omega_problem): Likewise.
19615 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
19616 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
19617 * dominance.c (verify_dominators, debug_dominance_info,
19618 debug_dominance_tree): Likewise.
19619 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
19620 * df_regno_debug, df_ref_debug,
19621 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
19622 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
19623 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
19624 * sel-sched.c (debug_state): Likewise.
19625 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
19627 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
19628 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
19629 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
19630 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
19632 * c-pretty-print.c (debug_c_tree): Likewise.
19633 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
19634 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
19635 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
19636 * ebitmap.c (debug_ebitmap): Likewise.
19637 * function.c (debug_find_var_in_block_tree): Likewise.
19638 * print-rtl.c (debug_rtx): Likewise.
19639 (debug_rtx_count): Likewise.
19640 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
19641 * stor-layout.c (debug_rli): Likewise.
19642 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
19643 * tree-data-ref.c (debug_data_references,
19644 debug_data_dependence_relations, debug_data_reference,
19645 debug_data_dependence_relation, debug_rdg_vertex,
19646 debug_rdg_component, debug_rdg): Likewise.
19647 * tree-affine.c (debug_aff): Likewise.
19648 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
19650 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
19651 * emit-rtl.c (verify_rtl_sharing): Likewise.
19652 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
19653 debug_value_expressions): Likewise.
19654 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
19655 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
19656 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
19657 * cfglayout.c (verify_insn_chain): Likewise.
19658 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
19659 debug_clast_stmt, debug_generated_program): Likewise.
19660 * ggc-page.c (debug_print_page_list): Likewise.
19661 * tree-ssa-ter.c (debug_ter): Likewise.
19662 * graphite-dependences.c (debug_pddr): Likewise.
19663 * sched-deps.c (debug_ds): Likewise.
19664 * tree-ssa.c (verify_ssa): Likewise.
19665 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
19666 debug_scattering_functions, debug_iteration_domains, debug_pdr,
19667 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
19668 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
19669 * tree-inline.c (debug_find_tree): Likewise.
19670 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
19671 debug_ppl_powerset_matrix): Likewise.
19672 * var-tracking.c (debug_dv): Likewise.
19673 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
19674 * cfgloop.c (verify_loop_structure): Likewise.
19675 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
19676 * c-common.c (verify_sequence_points): Likewise.
19677 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
19678 debug_candidates, debug_rgn_dependencies): Likewise.
19679 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
19680 * debug_constraint_graph, debug_solution_for_var,
19681 debug_sa_points_to_info): Likewise.
19682 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
19684 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
19685 debug_loops, debug_loop, debug_loop_num): Likewise.
19686 * passes.c (debug_pass): Likewise.
19687 (dump_properties): Likewise; add cfglayout property.
19688 (debug_properties): Likewise.
19689 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
19690 * varpool.c (debug_varpool): Likewise.
19691 * regcprop.c (debug_value_data): Likewise.
19692 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
19693 debug_immediate_uses_for): Likewise.
19695 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19698 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
19699 Filter out insn-flags.h.
19701 2010-05-29 Jan Hubicka <jh@suse.cz>
19703 * cgraph.h (struct varpool_node_set_def,
19704 struct cgraph_node_set_def): Remove unused AUX pointer.
19705 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
19708 2010-05-29 Jan Hubicka <jh@suse.cz>
19710 PR middle-end/44324
19711 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
19713 2010-05-29 Richard Guenther <rguenther@suse.de>
19715 * lto-streamer.c (cached_bp): New global variable.
19716 (bitpack_create): Return the cached bitpack, if available.
19717 (bitpack_delete): Clear and cache the bitpack, if appropriate.
19718 (bp_pack_value): Remove redundant asserts.
19720 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19722 PR middle-end/44306
19723 * tree-if-conv.c (is_true_predicate): New.
19724 (is_predicated): Use is_true_predicate.
19725 (add_to_predicate_list): Same. Do not use unshare_expr.
19726 (add_to_dst_predicate_list): Same.
19728 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19730 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
19732 (predicate_bbs): Same.
19733 (clean_predicate_lists): Same.
19734 (find_phi_replacement_condition): Do not AND the predicate from
19737 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19740 * Makefile.in (build/gencondmd.o): Add a missing `\'.
19742 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19745 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
19746 (negdf2): Adjust expander pattern and use negdf2_slow.
19747 (negsf2): Likewise.
19749 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
19751 * basic-block.h (struct control_flow_graph): Move last_label_uid field
19753 * df.h (struct df_base_ref): Move regno field up.
19754 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
19755 * expr.h (struct separate_ops): Move location field up.
19756 * optabs.h (struct optab_d): Move libcall_basename field down.
19757 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
19758 * config/i386/i386.h (struct machine_function): Convert call_abi field
19759 into a bitfield. Move cfa field to the end of the structure.
19761 2010-05-29 Jan Hubicka <jh@suse.cz>
19763 * varpool.c (varpool_get_node): Fix lookup.
19765 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19767 * config/spu/spu-protos.h: Do not include rtl.h. Protect
19768 RTL specific prototypes with #ifdef RTX_CODE.
19769 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
19770 * config/spu/t-spu-elf: Fix dependencies.
19772 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
19774 2010-05-29 Mike Stump <mikestump@comcast.net>
19777 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
19778 TM_H when building to avoid dependency loops.
19780 2010-05-29 Jan Hubicka <jh@suse.cz>
19782 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
19783 refs and body; not the whole node for masters of materialized clones.
19785 2010-05-29 Mike Stump <mikestump@comcast.net>
19787 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
19789 2010-05-29 Jan Hubicka <jh@suse.cz>
19791 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
19792 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
19793 use of clone_function_name.
19794 * cgraph.h (cgraph_create_virtual_clone,
19795 cgraph_function_versioning): update prototypes.
19796 (clone_function_name): Declare.
19797 * ipa-cp.c (ipcp_insert_stage): Update call of
19798 cgraph_create_virtual_clone.
19799 * omp-low.c (create_omp_child_function_name): Use
19800 cgraph_create_virtual_clone.
19801 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
19802 (cgraph_function_versioning): Take SUFFIX argument; produce new name
19803 and make decl local.
19805 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19807 * vec.h: Include statistics.h
19808 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
19811 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19813 * c-lex.c: Do not include c-tree.h.
19814 * c-pretty-print.c: Likewise.
19815 * c-opts.c: Likewise.
19816 * c-gimplify.c: Likewise.
19817 * c-common.c: Likewise.
19818 * c-dump.c: Likewise. Include c-common.h.
19820 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19822 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19823 before including diagnostic-core.h.
19824 (c_cpp_error): New prototype moved from c-tree.h.
19825 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
19826 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
19827 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
19828 (c_cpp_error): Prototype moved to c-common.h.
19829 * Makefile.in: Update dependency for C_COMMON_H.
19831 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19833 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
19834 * c-common.c (c_register_addr_space): Remove here.
19835 * c-decl.c (c_register_addr_space): Re-add here.
19837 2010-05-28 Mike Stump <mikestump@comcast.net>
19839 * config/darwin-c.c: Remove c-tree.h include.
19841 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19843 * gcc.c: Include diagnostic.h.
19844 (error_count): Remove. All users changed to use errorcount.
19845 (programname): Remove. All users changed to use progname.
19846 (fancy_abort, internal_error, fatal_error, error, warning, inform,
19848 (execute): Don't include "Internal error" and bug reporting
19849 information in argument of internal_error call.
19850 (process_command): Don't increment error_count after calling
19852 (input_filename): Rename to gcc_input_filename. All users
19854 (main): Call diagnostic_initialize. Register delete_temp_files
19855 with atexit. Use seen_error to test for errors.
19856 * gcc.h: Include diagnostic-core.h.
19857 (fatal_error, error, warning): Remove.
19858 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
19859 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
19860 (gcc.o): Update dependencies.
19862 2010-05-28 Jeff Law <law@redhat.com>
19864 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
19866 * ira.h (ira_bad_reload_regno): Declare
19867 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
19869 * ira-color.c (update_curr_costs): Free updated hard reg costs.
19870 (ira_reassign_conflict_allocnos): Remove bogus asserts.
19871 (allocno_reload_assign): Likewise.
19873 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
19875 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
19878 2010-05-28 Richard Guenther <rguenther@suse.de>
19881 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
19882 Stream fixed-point constants mode.
19883 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
19884 and TYPE_PRECISION.
19885 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
19886 Stream fixed-point constants mode.
19887 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
19888 and TYPE_PRECISION.
19890 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19892 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
19893 only place it was called from.
19894 (number_of_latch_executions): Do not return chrec_dont_know when the
19895 may_be_zero is a runtime condition: instead, return a COND_EXPR
19896 including the may_be_zero condition.
19897 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
19899 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
19902 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19904 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
19905 generate COND_EXPRs for degenerate_phi_result.
19907 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19909 PR middle-end/44293
19910 * tree-if-conv.c (if_convertible_loop_p): Check the
19911 if-convertibility of phi nodes in non predicated BBs.
19913 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19915 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
19917 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19920 * gcc.c (inform, warning, inform): New functions.
19921 (fatal_ice): Rename to internal_error; change cmsgid parameter to
19922 gmsgid. All callers changed.
19923 (notice): Rename to fnotice; add parameter fp. All callers changed.
19924 (fatal_error): Rename to fatal_signal. All users changed.
19925 (fatal): Rename to fatal_error; change cmsgid parameter to
19926 gmsgid. All callers changed.
19927 (process_command): Use warning instead of error for warnings.
19928 (end_going_arg): Don't use _() around argument of error.
19929 (do_spec_1): Use inform for message from %n specs. Use warning
19930 instead of error for warnings.
19931 (main): Use inform for comparison messages. Use warning for
19932 message about unused linker input.
19933 (error): Increment error_count. Print "error: ".
19934 * gcc.h (fatal): Change to fatal_error.
19935 (warning): Declare.
19936 * config/darwin-driver.c (darwin_default_min_version): Use warning
19937 instead of fprintf for warnings.
19938 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
19940 2010-05-28 Julian Brown <julian@codesourcery.com>
19942 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
19943 (*thumb2_addsi3_compare0_scratch): New.
19944 * config/arm/constraints.md (Pv): New.
19945 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
19947 (*addsi3_compare0_scratch): Likewise.
19949 2010-05-28 Jan Hubicka <jh@suse.cz>
19951 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
19953 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
19954 only on local statics.
19956 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
19958 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
19960 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
19963 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
19964 (OPTION_GLIBC): Define.
19966 2010-05-28 Jakub Jelinek <jakub@redhat.com>
19969 * dwarf2out.c (double_int_type_size_in_bits): New function.
19970 (round_up_to_align): Change first argument and return value to
19972 (field_byte_offset): Work internally on double_ints.
19975 * builtins.c (expand_movstr): Use a temporary pseudo instead
19976 of target even when target is not NULL and not const0_rtx, but
19977 fails movstr predicate.
19978 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
19980 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19982 * final.c (rest_of_clean_state): Use %m in errors instead of
19984 * gengtype.c (read_input_list, close_output_files): Use xstrerror
19985 instead of strerror.
19986 * toplev.c (process_options): Use %m in errors instead of strerror
19988 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
19991 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
19993 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
19994 (ix86_canonical_va_list_type): Make static. Add declaration.
19995 (ix86_enum_va_list): Make static. Reindent.
19996 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
19997 (ix86_canonical_va_list_type): Ditto.
19998 (ix86_enum_va_list): Ditto.
20000 2010-05-28 Richard Guenther <rguenther@suse.de>
20002 * lto-wrapper.c (run_gcc): With -save-temps generate a
20003 user-visible ltrans filename. Fixup ltrans unit numbering.
20005 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
20007 * c-common.c (c_common_nodes_and_builtins): Replace use
20008 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
20009 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
20010 to ix86_enum_va_list.
20011 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
20012 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
20013 (TARGET_ENUM_VA_LIST_P): Add hook description.
20014 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
20015 * target.h (gcc_target): Add enum_va_list hook.
20018 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
20019 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
20020 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
20022 2010-05-28 Alan Modra <amodra@gmail.com>
20025 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20026 emit_library_call machinery to set up __tls_get_addr calls.
20028 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20030 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
20032 2010-05-28 Dodji Seketeli <dodji@redhat.com>
20034 Revert fix for PR c++/44188
20035 * c-common.c (is_typedef_decl): Revert the moving of this
20037 * tree.c (is_typedef_decl): ... here.
20038 (typdef_variant_p): Revert the moving of this definition
20039 here from cp/tree.c.
20040 * c-common.h (is_typedef_decl): Revert the moving of this
20042 * tree.h (is_typedef_decl): ... here.
20043 (typedef_variant_p): Revert the moving of this declaration here
20045 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
20046 (gen_tagged_type_die): Revert the splitting out of ...
20047 (gen_type_die_with_usage): ... this function. Revert the anonymous
20048 tagged type handling.
20049 (gen_typedef_die): Revert emitting DW_TAG_typedef for
20050 typedefs naming anonymous tagged types.
20052 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
20054 * config/rs6000/rs6000-modes.def (PSImode): Delete.
20056 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
20058 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
20059 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
20061 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
20063 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
20064 XER_REGS to CA_REGS throughout.
20065 * config/rs6000/rs6000.h: Same.
20066 (ADDITIONAL_REGISTER_NAMES): Add "xer".
20067 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
20068 that mode_iterator "P" is the size for arithmetic carries as well.
20069 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
20071 2010-05-28 Jakub Jelinek <jakub@redhat.com>
20074 * combine.c (struct rtx_subst_pair): Define unconditionally.
20075 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
20076 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
20077 Call make_compound_operation on pair->to.
20078 (propagate_for_debug): Don't call make_compound_operation here.
20079 Always use simplify_replace_fn_rtx.
20081 2010-05-27 Sterling Augustine <sterling@tensilica.com>
20083 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
20084 * config/xtensa/xtensa.c (override_options): Check
20085 TARGET_FORCE_NO_PIC and set flag_pic.
20086 * config/xtensa/xtensa.opt: Document -mforce-no-pic
20088 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
20091 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
20092 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
20094 2010-05-27 Joseph Myers <joseph@codesourcery.com>
20096 * diagnostic-core.h: New. Contents moved from diagnostic.h and
20098 * diagnostic.c: Don't include toplev.h.
20099 (progname): Define. Moved from toplev.c.
20100 (seen_error): New function.
20101 * diagnostic.h: Include diagnostic-core.h.
20102 (diagnostic_t, emit_diagnostic): Don't declare here.
20103 * toplev.c (progname): Move to toplev.c.
20104 (emit_debug_global_declarations, compile_file, finalize,
20105 do_compile, toplev_main): Use seen_error.
20106 * toplev.h: Include diagnostic-core.h.
20107 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
20108 internal_error, warning, warning_at, error, error_n, error_at,
20109 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
20110 verbatim, fnotice, progname): Move to diagnostic-core.h.
20111 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
20112 (expand_builtin_expect): Use seen_error.
20113 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
20114 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
20115 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
20116 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
20117 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
20118 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
20119 errorcount for errors.
20120 * c-opts.c (c_common_finish): Use seen_error.
20121 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
20122 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
20123 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
20124 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
20125 (get_coverage_counts): Use seen_error.
20126 * dwarf2out.c (dwarf2out_finish): Use seen_error.
20127 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
20128 gimplify_body): Use seen_error.
20129 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
20130 * ipa-pure-const.c (gate_pure_const): Use seen_error.
20131 * ipa-reference.c (gate_reference): Use seen_error.
20132 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
20133 * lambda-code.c: Include diagnostic-core.h instead of
20135 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
20136 * lto-compress.c: Include diagnostic-core.h instead of
20138 * lto-section-in.c: Include diagnostic-core.h instead of
20140 * lto-streamer-out.c: Include diagnostic-core.h instead of
20142 * lto-streamer.c: Include diagnostic-core.h instead of
20144 (gate_lto_out): Use seen_error.
20145 * matrix-reorg.c: Include diagnostic-core.h instead of
20147 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
20148 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
20149 (gate_expand_omp, lower_omp_1): Use seen_error.
20150 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
20151 (rest_of_decl_compilation, rest_of_type_compilation,
20152 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
20153 * tree-cfg.c (label_to_block_fn): Use seen_error.
20154 * tree-inline.c (optimize_inline_calls): Use seen_error.
20155 * tree-mudflap.c (mudflap_finish_file): Use
20157 * tree-optimize.c (gate_all_optimizations,
20158 gate_all_early_local_passes, gate_all_early_optimizations): Use
20160 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
20161 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
20162 (varpool_remove_unreferenced_decls,
20163 varpool_assemble_pending_decls): Use seen_error.
20164 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
20165 (TOPLEV_H, DIAGNOSTIC_H): Update.
20166 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
20167 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
20168 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
20169 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
20170 coverage.o, lambda-code.o): Update dependencies.
20172 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20175 * c-common.c (is_typedef_decl): Move this definition ...
20176 * tree.c (is_typedef_decl): ... here.
20177 (typdef_variant_p): Move definition here from cp/tree.c.
20178 * c-common.h (is_typedef_decl): Move this declaration ...
20179 * tree.h (is_typedef_decl): ... here.
20180 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20181 * dwarf2out.c (is_naming_typedef_decl): New function.
20182 (gen_tagged_type_die): Split out of ...
20183 (gen_type_die_with_usage): ... this function. When an anonymous
20184 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20185 is emitted for the typedef.
20186 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20187 anonymous tagged types.
20189 2010-05-27 Jason Merrill <jason@redhat.com>
20191 * print-tree.c (debug_vec_tree): New fn.
20192 (print_vec_tree): New fn.
20193 * tree.h: Declare them.
20194 * gdbinit.in (pvt): New command.
20196 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
20198 * gdbinit.in (pdd): New command.
20200 2010-05-27 Jan Hubicka <jh@suse.cz>
20202 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
20203 (update_caller_keys): Return early if there are no callers;
20204 only update fibheap when decresing the key.
20205 (update_callee_keys): Avoid recursion.
20206 (decide_inlining_of_small_functions): When badness does not match;
20207 re-insert into fibheap.
20209 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
20211 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
20212 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
20213 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
20214 (ALL_HOST_OBJS): Now a union of the above two.
20215 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
20216 all files in ALL_HOST_FRONTEND_OBJS.
20217 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
20219 * c-common.c: Pretend to be a backend file by undefining
20220 IN_GCC_FRONTEND (still need rtl.h here).
20222 2010-05-27 Jan Hubicka <jh@suse.cz>
20224 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
20225 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
20227 2010-05-27 Jan Hubicka <jh@suse.cz>
20229 * sched-ebb.c: Rename struct deps to struct deps_desc.
20231 * sel-sched-ir.c: Likewise.
20232 * sched-deps.c: Likewise.
20233 * sched-int.h: Likewise.
20234 * sched-rgn.c: Likewise.
20236 2010-05-27 Jon Beniston <jon@beniston.com>
20239 * config/lm32/lm32.h: Remove definition of
20240 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
20242 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
20245 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
20247 2010-05-27 Richard Guenther <rguenther@suse.de>
20249 PR tree-optimization/44284
20250 * tree-vect-stmts.c (vectorizable_assignment): Handle
20251 sign-changing conversions as simple copy.
20253 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20255 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
20257 (__gthread_active_p): Check for pthread_create if compiling against
20260 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20262 Support compilation for Android platform. Reimplement -mandroid.
20264 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
20265 (*android*): Set ANDROID_DEFAULT.
20266 (arm*-*-linux*): Include linux-android.h.
20267 (arm*-*-eabi*): Don't include previous -mandroid implementation.
20268 * config/arm/eabi.h: Remove, move Android-specific parts ...
20269 * config/linux-android.h: ... here. New file.
20270 * config/arm/eabi.opt: Rename to ...
20271 * config/linux-android.opt: ... this.
20272 (mandroid): Allow -mno-android option. Initialize based on
20274 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
20275 Move logic to corresponding LINUX_TARGET_* macros.
20276 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
20277 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
20278 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
20279 Android definitions.
20280 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
20281 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
20284 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20286 Add support for Bionic C library
20288 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
20290 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
20291 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
20293 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
20294 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
20295 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
20296 to support multiple C libraries. Handle Bionic.
20297 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
20298 (BIONIC_DYNAMIC_LINKER64): Define.
20299 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
20301 (TARGET_HAS_SINCOS): Enable for Bionic.
20303 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
20304 the last option specified on command line take effect.
20305 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
20307 (mglibc, muclibc): Update.
20309 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
20310 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
20313 * doc/invoke.texi (-mglibc, -muclibc): Update.
20314 (-mbionic): Document.
20316 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20318 * c-common.h (c_register_addr_space): Add prototype.
20319 (ADDR_SPACE_KEYWORD): Remove.
20320 * c-common.c (c_register_addr_space): New function.
20321 (c_addr_space_name): Reimplement.
20322 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
20324 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
20325 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
20327 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
20328 Remove TARGET_ADDR_SPACE_KEYWORDS.
20330 2010-05-27 Joseph Myers <joseph@codesourcery.com>
20332 * input.c: New file.
20333 * input.h (main_input_filename): Move declaration to toplev.h.
20334 * toplev.c (input_location, line_table): Move to input.c
20335 * toplev.h (main_input_filename): Move declaration from input.h.
20336 * tree.c (expand_location): Move to input.c.
20337 * Makefile.in (OBJS-common): Add input.o.
20338 (input.o): Add dependencies.
20340 2010-05-27 Richard Guenther <rguenther@suse.de>
20342 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
20343 for non-existant files.
20344 (fork_execute): Mark args_name file as deleted.
20346 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
20349 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
20350 (narrow_signed_type): Likewise.
20352 2010-05-26 Jan Hubicka <jh@suse.cz>
20354 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
20355 edge only when checking is enabled; check using former_clone_of;
20356 check inline clones too.
20357 (cgraph_materialize_clone): Record former_clone_of pointer.
20358 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
20359 combining redirections; dump args_to_skip bitmap
20360 (cgraph_materialize_all_clones): Do no redirection here.
20361 * ipa-inline.c (inline_transform): Do redirection here.
20362 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
20365 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20367 * config/avr/avr-c.c: Do not include regs.h.
20368 Include cpplib.h for cpp_define and tree.h for c-common.h.
20369 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
20370 * config/avr/t-avr: Fix dependencies for avr-c.o.
20372 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20374 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
20375 string instead of SYMBOL_REF rtx.
20376 * rtl.h (set_stack_check_libfunc): Move prototype from here...
20377 * libfuncs.h: ...to here. Adjust for explow.c change.
20379 2010-05-26 Joseph Myers <joseph@codesourcery.com>
20381 * pretty-print.c: Don't include ggc.h.
20382 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
20383 (identifier_to_locale): Use them for allocation.
20384 * pretty-print.h (identifier_to_locale_alloc,
20385 identifier_to_locale_free): Declare.
20386 * toplev.c (alloc_for_identifier_to_locale): New.
20387 (general_init): Set identifier_to_locale_alloc and
20388 identifier_to_locale_free.
20389 * Makefile.in (pretty-print.o): Update dependencies.
20391 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
20393 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
20394 pointer types if they have different alignment or mode.
20396 2010-05-26 Anatoly Sokolov <aesok@post.ru>
20398 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20399 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20400 * config/sparc/sparc-protos.h (function_value): Remove declaration.
20401 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
20402 sparc_function_value_regno_p): New functions.
20403 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20404 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20405 (function_value): Rename to...
20406 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
20407 argument to 'outgoing'.
20408 (function_arg_record_value, function_arg_union_value,
20409 function_arg_vector_value): Update comment.
20411 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
20413 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
20414 (fde_needed_for_eh_p): New predicate.
20415 (output_call_frame_info): Use it throughout to decide whether FDEs
20416 are needed for EH purpose.
20417 (dwarf2out_begin_prologue): Reorder assignments.
20419 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20421 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
20422 special case loop->header.
20423 (is_predicated): New.
20424 (if_convertible_loop_p): Call it.
20426 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20428 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
20429 iterator in parameter. Do not generate code during the analysis.
20430 (tree_if_convert_cond_stmt): Removed.
20431 (tree_if_convert_stmt): Removed.
20432 (predicate_bbs): New.
20433 (if_convertible_loop_p): Call predicate_bbs.
20434 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
20435 now contains all the analysis part.
20437 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20439 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
20440 statements in the analysis part.
20441 (tree_if_convert_stmt): Update comment.
20442 (remove_conditions_and_labels): New.
20443 (combine_blocks): Call remove_conditions_and_labels.
20444 (tree_if_conversion): Update comment.
20446 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20448 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
20449 than 2 predecessors or more than 2 successors.
20451 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20453 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
20454 of loops in which the data dependence analysis fails.
20456 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20458 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
20459 CDI_POST_DOMINATORS.
20460 (tree_if_conversion): Same.
20462 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20464 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
20466 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20468 * tree-if-conv.c: Update copyright years. Fix comments.
20471 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
20473 * builtin-types.def (BT_INT128): New primitive type.
20474 (BT_UINT128): Likewise.
20475 * c-common.c (c_common_r): Add __int128 keyword.
20476 (c_common_type_for_size): Handle __int128.
20477 (c_common_type_for_mode): Likewise.
20478 (c_common_signed_or_unsigned_type): Likewise.
20479 (c_common_nodes_and_builtins): Add builtin type
20480 if target supports 128-bit integer scalar.
20481 * c-common.h (enum rid): Add RID_INT128.
20482 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
20483 if target supports 128-bit integer scalar.
20484 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
20485 (finish_declspecs): Likewise.
20486 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
20487 (c_token_starts_declspecs): Likewise.
20488 (c_parser_declspecs): Likewise.
20489 (c_parser_attributes): Likewise.
20490 (c_parser_objc_selector): Likewise.
20491 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
20492 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
20493 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
20494 * tree.c (make_or_reuse_type): Likewise.
20495 (make_unsigned_type): Likewise.
20496 (build_common_tree_nodes_2): Likewise.
20497 * tree.h (enum integer_type_kind): Add itk_int128 and
20498 itk_unsigned_int128.
20499 (int128_integer_type_node): New define.
20500 (int128_unsigned_type_node): New define.
20501 * doc/extend.texi: Add documentation about __int128 type.
20503 2010-05-26 Richard Guenther <rguenther@suse.de>
20505 * tree-ssa-sccvn.c (copy_nary): Adjust.
20506 (copy_phis): Rename to ...
20507 (copy_phi): ... this. Adjust.
20508 (copy_references): Rename to ...
20509 (copy_reference): ... this. Adjust.
20510 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
20511 result into the valid table.
20513 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20515 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
20516 insn-config.h, insn-codes.h, recog.h, and optabs.h.
20518 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20520 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
20522 2010-05-26 Richard Guenther <rguenther@suse.de>
20524 * opts.c (common_handle_option): Handle OPT_Ofast.
20526 2010-05-26 Joseph Myers <joseph@codesourcery.com>
20528 * diagnostic.c: Don't include opts.h.
20529 (permissive_error_option): Define.
20530 (diagnostic_initialize): Take n_opts parameter. Allocate memory
20531 for classify_diagnostic. Don't use memset for
20532 classify_diagnostic. Initialize new and recently added fields.
20533 (diagnostic_classify_diagnostic): Use context->n_opts instead of
20535 (diagnostic_report_diagnostic): Pass context parameter to
20536 diagnostic_report_warnings_p. Use option_enabled and option_name
20537 hooks from context.
20538 (emit_diagnostic): Use permissive_error_option.
20539 (permerror): Likewise.
20540 * diagnostic.h: Don't include options.h.
20541 (struct diagnostic_context): Add n_opts, opt_permissive,
20542 inhibit_warnings, warn_system_headers, option_enabled and
20543 option_name fields. Change classify_diagnostic to a pointer.
20544 * opts-diagnostic.h: New file.
20545 * opts.c: Include opts-diagnostic.h.
20546 (common_handle_option): Set global_dc fields for -Wfatal-errors,
20547 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
20548 (option_name): New function.
20549 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
20550 (c_common_handle_option): Set global_dc->permissive for
20552 * c-common.c (c_cpp_error): Save and restore
20553 global_dc->warn_system_headers, not variable warn_system_headers.
20554 * toplev.c: Include opts-diagnostic.h.
20555 (general_init): Update call to diagnostic_initialize. Set
20556 global_dc->show_column, global_dc->option_enabled and
20557 global_dc->option_name.
20558 (process_options): Don't set global_dc fields here.
20559 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
20560 (diagnostic.o, opts.o, toplev.o): Update dependencies.
20562 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20564 * config/picochip/picochip.md (movsi): Split a movsi from a
20565 const after reload.
20567 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20569 * ggc-zone.c: Update copyright year.
20570 (poison_region): Mark memory for Valgrind as undefined before
20571 memset () call and inaccessible afterwards.
20572 (ggc_pch_total_size): Change type of i to int.
20574 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20576 * ggc-common.c (ggc_free_overhead): Allow empty slot.
20578 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20580 * ggc-common.c: Update copyright year.
20581 (ggc_rlimit_bound): Remove prototype. Compile only if
20582 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
20583 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
20584 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
20585 (ggc_min_heapsize_heuristic): Likewise.
20587 2010-05-26 Richard Guenther <rguenther@suse.de>
20589 PR rtl-optimization/44164
20590 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
20591 no-common access-path disambiguation.
20592 (indirect_ref_may_alias_decl_p): Adjust.
20593 (indirect_refs_may_alias_p): Likewise.
20594 (refs_may_alias_p_1): Likewise.
20596 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20598 * c-typeck.c: Do not include expr.h.
20600 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20602 * rtl.h (decl_default_tls_model): Move prototype from here...
20603 * output.h: ...to here.
20604 * c-decl.c: Do not include rtl.h.
20605 * c-pragma.c: Likewise.
20606 * c-parser.c: Likewise.
20607 * c-gimplify.c: Likewise. And also not hard-reg-set.
20608 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
20609 FIXME note for it. Add a FIXME note for expr.h.
20610 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
20611 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
20614 2010-05-26 Jakub Jelinek <jakub@redhat.com>
20617 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
20618 or total_size is larger than red zone size for non-V4 ABI, emit a
20619 stack_tie resp. frame_tie insn before stack pointer restore.
20620 * config/rs6000/rs6000.md (frame_tie): New insn.
20622 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
20624 * function.h (struct function): Add can_throw_non_call_exceptions bit.
20625 * lto-streamer-in.c (input_function): Stream it in.
20626 * lto-streamer-out.c (output_function): Stream it out.
20627 * function.c (allocate_struct_function): Set it.
20628 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
20629 for flag_non_call_exceptions.
20630 * cfgbuild.c (control_flow_insn_p): Likewise.
20631 (make_edges): Likewise.
20632 * cfgexpand.c (expand_stack_alignment): Likewise.
20633 * combine.c (distribute_notes): Likewise.
20634 * cse.c (cse_extended_basic_block): Likewise.
20635 * except.c (insn_could_throw_p): Likewise.
20636 * gcse.c (simple_mem): Likewise.
20637 * ipa-pure-const.c (check_call): Likewise.
20638 (check_stmt ): Likewise.
20639 * lower-subreg.c (lower-subreg.c): Likewise.
20640 * optabs.c (emit_libcall_block): Likewise.
20641 (prepare_cmp_insn): Likewise.
20642 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
20643 * postreload.c (rest_of_handle_postreload): Likewise.
20644 * reload1.c (reload_as_needed): Likewise.
20645 (emit_input_reload_insns): Likewise.
20646 (emit_output_reload_insns): Likewise.
20647 (fixup_abnormal_edges): Likewise.
20648 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
20649 * store-motion.c (find_moveable_store): Likewise.
20650 * tree-eh.c (stmt_could_throw_p): Likewise.
20651 (tree_could_throw_p): Likewise.
20652 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20653 * config/arm/arm.c (arm_expand_prologue): Likewise.
20654 (thumb1_expand_prologue): Likewise.
20655 * config/rx/rx.md (cbranchsf4): Likewise.
20657 * config/s390/s390.c (s390_emit_prologue): Likewise.
20658 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
20659 (inline_forbidden_into_p): New predicate.
20660 (expand_call_inline): Use it to forbid inlining.
20661 (tree_can_inline_p): Likewise.
20663 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20665 * config/i386/i386-c.c: Do not include rtl.h.
20666 * config/i386/t-i386: Update dependencies.
20668 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20670 * attribs.c: Do not include rtl.h.
20671 * Makefile.in: Update dependencies.
20673 2010-05-25 Anatoly Sokolov <aesok@post.ru>
20675 * double-int.h (double_int_and): New.
20676 * combine.c (try_combine): Clean up, use double_int_* and
20677 immed_double_int_const functions.
20679 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20681 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
20682 stderr to /dev/null instead of grep -q.
20683 * configure: Regenerate.
20685 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20687 * Makefile.in (EXCEPT_H): Fix typo.
20689 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
20691 * ira-build.c (update_conflict_hard_reg_costs): New.
20692 (ira_build): Call update_conflict_hard_reg_costs.
20694 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20697 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
20699 (intersect_loc_chains): Walk the s2var's loc_chain together
20700 with s1node chain as long as the locations are equal, don't
20701 call find_loc_in_1pdv in that case.
20704 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
20705 (copy_bind_expr): ... instead of here.
20706 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
20707 if the block hasn't been remapped.
20708 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
20709 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
20711 2010-05-25 Richard Guenther <rguenther@suse.de>
20713 PR middle-end/44069
20714 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
20715 out-of-bounds array accesses.
20717 2010-05-25 Richard Guenther <rguenther@suse.de>
20719 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
20720 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
20721 (run_gcc): Re-organize to make cleanup easier.
20723 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20725 * config/s390/s390.c (optimization_options): Fix and move the
20726 flag_prefetch_loop_arrays override ...
20727 (override_options): ... here.
20729 2010-05-25 Joseph Myers <joseph@codesourcery.com>
20731 * diagnostic.c: Don't include plugin.h.
20732 (diagnostic_report_diagnostic): Don't handle plugins specially
20733 here. Pass context to internal_error callback.
20734 * diagnostic.h (struct diagnostic_context): Add context parameter
20735 to internal_error callback.
20736 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
20737 * plugin.h (struct diagnostic_context): Declare.
20738 (warn_if_plugins, plugins_internal_error_function): Declare.
20739 * toplev.c (general_init): Set global_dc->internal_error.
20740 * Makefile.in (diagnostic.o): Update dependencies.
20742 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
20744 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
20745 * config/rs6000/t-darwin64: New.
20746 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
20749 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
20752 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
20753 match the original (and intended) behaviour before r159557. This
20754 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
20757 2010-05-25 Richard Guenther <rguenther@suse.de>
20759 * doc/invoke.texi: Document -Ofast.
20760 * target.h (struct gcc_target): Add handle_ofast.
20761 * target-def.h (TARGET_HANDLE_OFAST): Add.
20762 (TARGET_INITIALIZER): Adjust.
20763 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
20764 * common.opt (Ofast): Add.
20766 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20768 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
20769 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
20771 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20774 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
20775 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
20776 false_rtx. Use false_rtx to compute the correct *ptest for reversed
20777 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
20779 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20781 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
20782 DW_OP_minus with negated offset instead of DW_OP_plus.
20783 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
20785 2010-05-25 Wei Guozhi <carrot@google.com>
20787 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
20788 tst instruction and a new alternative.
20789 * config/arm/constraints.md (Pu): New constraint.
20791 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
20793 * function.c (assign_stack_local_1): Initialize variable
20794 to avoid warning when bootstrapping at -O3.
20796 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
20798 * configure.ac (all_lang_makefiles): Remove everything related to it.
20799 * configure: Regenerate.
20800 * Makefile.in: Fix reference to ada Make-lang.in.
20801 Remove support for LANG_MAKEFILES.
20803 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
20804 Sandra Loosemore <sandra@codesourcery.com>
20806 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
20807 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
20808 description. Add arm_neon_fp16_ok.
20809 (Add Options): Add arm_neon and arm_neon_fp16.
20811 2010-05-24 Joseph Myers <joseph@codesourcery.com>
20813 * diagnostic.c: Don't include flags.h.
20814 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
20815 context parameters. Check flags in the context passed as a parameter.
20816 (diagnostic_build_prefix): Add context parameter. Check
20817 show_column flag in context.
20818 (diagnostic_action_after_output): Check fatal_errors flag in context.
20819 (diagnostic_report_current_module): Check show_column flag in context.
20820 (default_diagnostic_starter): Update call to
20821 diagnostic_build_prefix.
20822 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
20823 (emit_diagnostic): Pass context to permissive_error_kind.
20824 (permerror): Pass context to permissive_error_kind.
20825 * diagnostic.h (struct diagnostic_context): Add show_column,
20826 pedantic_errors, permissive and fatal_errors fields.
20827 (diagnostic_build_prefix): Update prototype.
20829 * toplev.c (process_options): Set flags in global_dc from
20830 flag_show_column, flag_pedantic_errors, flag_permissive,
20832 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
20833 to diagnostic_build_prefix.
20834 * Makefile.in (diagnostic.o): Update dependencies.
20836 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
20838 * config/i386/ia32intrin.h (__crc32q): Define only if
20839 __SSE4_2__ is defined.
20841 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
20844 PR middle-end/43602
20845 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
20846 DECL_VISIBILITY_SPECIFIED.
20847 (emutls_decl): Set DECL_PRESERVE_P and copy
20848 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
20849 (emutls_finalize_control_var): New callback.
20850 (emutls_finish): Finalize emutls control variables.
20851 * toplev.c (compile_file): Move the call to emutls_finish ()
20852 before varpool_assemble_pending_decls ().
20854 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
20856 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
20857 added to the preprocessor condition.
20859 2010-05-24 Paul Brook <paul@codesourcery.com>
20861 * gengtype-lex.l: Add HARD_REG_SET.
20862 * expr.c (expand_expr_real_1): Record writes to hard registers.
20863 * function.c (rtl_data): Add asm_clobbers.
20864 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
20865 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
20866 Use crtl->asm_clobbers.
20868 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20870 * doc/makefile.texi (Makefile): Mention stages 'profile'
20871 and 'feedback' for profiledbootstrap.
20873 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
20876 * config/i386/i386.c (def_builtin): Properly check
20877 OPTION_MASK_ISA_64BIT.
20879 2010-05-23 Joseph Myers <joseph@codesourcery.com>
20881 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
20882 typedefs with different but compatible types. Allow duplicate
20883 typedefs with the same type except for pedantic non-C1X, but give
20884 warning for variably modified types.
20885 * c-typeck.c (tagged_types_tu_compatible_p,
20886 function_types_compatible_p, type_lists_compatible_p,
20887 comptypes_internal): Add parameter different_types_p; set
20888 *different_types_p for different but compatible types. All
20890 (comptypes_check_different_types): New.
20891 * c-tree.h (comptypes_check_different_types): Declare.
20893 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20895 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
20896 * jump.c: Include basic-block.h.
20897 * profile.c: Likewise.
20898 * tree-profile.c: Likewise.
20899 * coverage.c: Likewise.
20900 * basic-block.h (optimize_function_for_size_p): Move to function.h.
20901 (optimize_function_for_speed_p): Likewise.
20902 * function.h (optimize_function_for_size_p,
20903 optimize_function_for_speed_p): Moved here from basic-block.h.
20904 * Makefile.in: Update dependencies.
20906 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20908 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
20909 before calling make; allow override through $MAKE.
20910 * doc/invoke.texi (Optimize Options): Document override.
20912 2010-05-23 Anatoly Sokolov <aesok@post.ru>
20914 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
20915 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20916 (rs6000_mode_dependent_address_ptr): Make static.
20917 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20918 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
20921 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
20924 * config/i386/i386.c: Make sure that the correct regparm is passed.
20926 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20928 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
20929 * sbitmap.c: ...to here to internalize sbitmap element access.
20930 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
20931 Explain why basic-block.h is included.
20932 * function.h: Include tm.h for CUMULATIVE_ARGS.
20933 * Makefile.in: Update dependencies.
20935 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20937 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
20939 * sbitmap.h (struct sbitmap_def): Do not typedef here.
20940 * sbitmap.c: Include sbitmap.h.
20941 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
20942 hard-reg-set.h. Split everything related to regsets out from here...
20943 * regset.h: ...to here. New file.
20944 * df.h: Include regset.h and sbitmap.h.
20945 * tree-flow.h: Likewise.
20946 * cfgloop.h: Likewise.
20947 * except.h: Do not include sbitmap.h. Include hashtab.h.
20948 * cgraph.h: Include vec.h and function.h.
20949 * reload.h (struct insn_chain): Change types of live_throughout
20950 and dead_or_set from regset_head to bitmap_head.
20951 (compute_use_by_pseudos): Be defined also if regset.h is not included.
20952 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
20953 spilled_regs from regset_head to bitmap_head to avoid dependency
20955 * sel-sched-ir.h: Include regset.h.
20956 * reload.c: Include df.h before reload.h.
20957 * caller-save.c: Likewise.
20958 * reload1.c: Likewise.
20960 (mark_elimination): Update type of r to bitmap, consistent with
20962 * dominance.c: Include bitmap.h.
20963 * modulo-sched.c: Include df.h.
20964 * cfganal.c: Include bitmap.h and sbitmap.h.
20965 * cfgbuild.c: Include sbitmap.h.
20966 * lcm.c: Include sbitmap.h.
20967 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
20968 * domwalk.c: Include sbitmap.h, exclude ggc.h.
20969 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
20970 * cselib.c: Include bitmap.h.
20971 * tree-optimize.c: Include regset.h.
20972 * stmt.c: Include bitmap.h.
20973 * Makefile.in: Update dependencies.
20975 2010-05-22 Jan Hubicka <jh@suse.cz>
20977 * cgraph.h (struct varpool_node): Add same_comdat_group.
20978 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
20980 (output_varpool): Update call of lto_output_varpool_node.
20981 (input_varpool): Read same_comdat_group pointer.
20982 (input_varpool_1): Fixup same_comdat_group pointer.
20983 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
20984 group is needed, all are.
20985 * varpool.c (varpool_remove_node): Remove node from same comdat group
20987 (varpool_analyze_pending_decls): Walk same comdat groups.
20989 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20991 * rtl.h (union rtunion_def): Remove rt_bit member.
20992 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
20993 * print-rtl (print_rtx): Do not print the member.
20994 * gengtype.c (adjust_field_rtx_def): Do not handle it.
20995 * gengenrtl.c (type_from_format): Likewise.
20996 (accessor_from_format): Likewise.
20998 2010-05-22 Joseph Myers <joseph@codesourcery.com>
21000 * dbgcnt.c: Include toplev.h instead of errors.h.
21001 * ira-emit.c: Don't include errors.h.
21002 * ira.c: Include toplev.h instead of errors.h.
21003 * lto-compress.c: Include toplev.h instead of errors.h.
21004 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
21005 ira.o, dbgcnt.o): Update dependencies.
21007 2010-05-22 Richard Guenther <rguenther@suse.de>
21009 * gimple.c (gimple_types_compatible_p): Check type qualifications
21010 before merging pointer to complete and pointer to incomplete type.
21011 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
21012 we use our own resolution algorithm. The gold linker plugin
21013 doesn't do the job we want it to do here.
21015 2010-05-22 Anatoly Sokolov <aesok@post.ru>
21017 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21018 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21019 (sparc_mode_dependent_address_p): New function.
21021 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21023 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
21025 * timevar.c: Do not include any core headers.
21026 (timevar_print): De-i18n-ize.
21027 (print_time): Likewise.
21028 * timevar.h (timevar_push, timevar_pop): Make inline functions.
21030 2010-05-21 Joseph Myers <joseph@codesourcery.com>
21032 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
21034 (diagnostic_initialize): Initialize x_data not last_function.
21035 (diagnostic_report_current_function): Move to tree-diagnostic.c.
21036 (default_diagnostic_starter): Call
21037 diagnostic_report_current_module not
21038 diagnostic_report_current_function.
21039 (diagnostic_report_diagnostic): Initialize x_data not
21041 (verbatim): Likewise.
21042 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
21044 (struct diagnostic_context): Change last_function to x_data.
21045 (diagnostic_auxiliary_data): Replace with
21046 diagnostic_context_auxiliary_data and
21047 diagnostic_info_auxiliary_data.
21048 (diagnostic_last_function_changed, diagnostic_set_last_function,
21049 diagnostic_report_current_function): Move to tree-diagnostic.h.
21050 (print_declaration, dump_generic_node, print_generic_stmt,
21051 print_generic_stmt_indented, print_generic_expr,
21052 print_generic_decl, debug_c_tree, dump_omp_clauses,
21053 print_call_name, debug_generic_expr, debug_generic_stmt,
21054 debug_tree_chain, default_tree_printer): Move to
21055 tree-pretty-print.h.
21056 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
21057 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
21058 gimple-pretty-print.h.
21059 * pretty-print.c: Don't include tree.h
21060 (pp_base_format): Don't handle %K here.
21061 (pp_base_tree_identifier): Move to tree-pretty-print.c.
21062 * pretty-print.h (text_info): Change abstract_origin to x_data.
21063 (pp_tree_identifier, pp_unsupported_tree,
21064 pp_base_tree_identifier): Move to tree-pretty-print.h.
21065 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
21066 tree-pretty-print.h: New files.
21067 * tree-pretty-print.c: Include tree-pretty-print.h.
21068 (percent_K_format): New. Moved from pretty-print.c.
21069 (pp_base_tree_identifier): Move from pretty-print.c.
21070 * c-objc-common.c: Include tree-pretty-print.h.
21071 (c_tree_printer): Handle %K here.
21072 * langhooks.c: Include tree-diagnostic.h.
21073 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
21074 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
21075 (default_tree_printer): Handle %K using percent_K_format.
21076 (general_init): Use default_tree_diagnostic_starter.
21077 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
21078 (free_lang_data): Use default_tree_diagnostic_starter.
21079 * c-pretty-print.c: Include tree-pretty-print.h.
21080 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21081 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21082 * dwarf2out.c: Include tree-pretty-print.h.
21083 * except.c: Include tree-pretty-print.h.
21084 * gimple-pretty-print.c: Include tree-pretty-print.h and
21085 gimple-pretty-print.h.
21086 * gimplify.c: Include tree-pretty-print.h.
21087 * graphite-poly.c: Include tree-pretty-print.h and
21088 gimple-pretty-print.h.
21089 * ipa-cp.c: Include tree-pretty-print.h.
21090 * ipa-inline.c: Include gimple-pretty-print.h.
21091 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21092 * ipa-pure-const.c: Include gimple-pretty-print.h.
21093 * ipa-struct-reorg.c: Include tree-pretty-print.h and
21094 gimple-pretty-print.h.
21095 * ipa-type-escape.c: Include tree-pretty-print.h.
21096 * print-rtl.c: Include tree-pretty-print.h.
21097 * print-tree.c: Include gimple-pretty-print.h.
21098 * sese.c: Include tree-pretty-print.h.
21099 * tree-affine.c: Include tree-pretty-print.h.
21100 * tree-browser.c: Include tree-pretty-print.h.
21101 * tree-call-cdce.c: Include gimple-pretty-print.h.
21102 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
21103 * tree-chrec.c: Include tree-pretty-print.h.
21104 * tree-data-ref.c: Include tree-pretty-print.h and
21105 gimple-pretty-print.h.
21106 * tree-dfa.c: Include tree-pretty-print.h.
21107 * tree-if-conv.c: Include tree-pretty-print.h and
21108 gimple-pretty-print.h.
21109 * tree-inline.c: Include tree-pretty-print.h.
21110 * tree-into-ssa.c: Include tree-pretty-print.h and
21111 gimple-pretty-print.h.
21112 * tree-nrv.c: Include tree-pretty-print.h.
21113 * tree-object-size.c: Include tree-pretty-print.h and
21114 gimple-pretty-print.h.
21115 * tree-outof-ssa.c: Include tree-pretty-print.h and
21116 gimple-pretty-print.h.
21117 * tree-parloops.c: Include tree-pretty-print.h and
21118 gimple-pretty-print.h.
21119 * tree-predcom.c: Include tree-pretty-print.h and
21120 gimple-pretty-print.h.
21121 * tree-scalar-evolution.c: Include tree-pretty-print.h and
21122 gimple-pretty-print.h.
21123 * tree-sra.c: Include tree-pretty-print.h.
21124 * tree-ssa-address.c: Include tree-pretty-print.h.
21125 * tree-ssa-alias.c: Include tree-pretty-print.h.
21126 * tree-ssa-ccp.c: Include tree-pretty-print.h and
21127 gimple-pretty-print.h.
21128 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
21129 * tree-ssa-copy.c: Include tree-pretty-print.h and
21130 gimple-pretty-print.h.
21131 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
21132 * tree-ssa-dce.c: Include tree-pretty-print.h and
21133 gimple-pretty-print.h.
21134 * tree-ssa-dom.c: Include tree-pretty-print.h and
21135 gimple-pretty-print.h.
21136 * tree-ssa-dse.c: Include gimple-pretty-print.h.
21137 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
21138 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
21139 * tree-ssa-live.c: Include tree-pretty-print.h and
21140 gimple-pretty-print.h.
21141 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
21142 gimple-pretty-print.h.
21143 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
21144 gimple-pretty-print.h.
21145 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
21146 gimple-pretty-print.h.
21147 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
21148 gimple-pretty-print.h.
21149 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
21150 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
21151 * tree-ssa-operands.c: Include tree-pretty-print.h and
21152 gimple-pretty-print.h.
21153 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
21154 gimple-pretty-print.h.
21155 * tree-ssa-pre.c: Include tree-pretty-print.h and
21156 gimple-pretty-print.h.
21157 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
21158 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
21159 gimple-pretty-print.h.
21160 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
21161 gimple-pretty-print.h.
21162 * tree-ssa-sink.c: Include gimple-pretty-print.h.
21163 * tree-ssa-ter.c: Include tree-pretty-print.h and
21164 gimple-pretty-print.h.
21165 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
21166 * tree-ssa.c: Include tree-pretty-print.h and
21167 gimple-pretty-print.h.
21168 * tree-stdarg.c: Include gimple-pretty-print.h.
21169 * tree-switch-conversion.c: Include gimple-pretty-print.h.
21170 * tree-tailcall.c: Include tree-pretty-print.h and
21171 gimple-pretty-print.h.
21172 * tree-vect-data-refs.c: Include tree-pretty-print.h and
21173 gimple-pretty-print.h.
21174 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
21175 gimple-pretty-print.h.
21176 * tree-vect-loop.c: Include tree-pretty-print.h and
21177 gimple-pretty-print.h.
21178 * tree-vect-patterns.c: Include gimple-pretty-print.h.
21179 * tree-vect-slp.c: Include tree-pretty-print.h and
21180 gimple-pretty-print.h.
21181 * tree-vect-stmts.c: Include tree-pretty-print.h and
21182 gimple-pretty-print.h.
21183 * tree-vectorizer.c: Include tree-pretty-print.h.
21184 * tree-vrp.c: Include tree-pretty-print.h and
21185 gimple-pretty-print.h.
21186 * value-prof.c: Include tree-pretty-print.h and
21187 gimple-pretty-print.h.
21188 * var-tracking.c: Include tree-pretty-print.h.
21189 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
21190 (tree-diagnostic.o): New dependencies.
21191 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
21192 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
21193 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
21194 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
21195 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
21196 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
21197 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
21198 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
21199 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
21200 tree-ssa-address.o, tree-ssa-loop-niter.o,
21201 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
21202 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
21203 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
21204 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
21205 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
21206 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
21207 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
21208 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
21209 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
21210 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
21211 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
21212 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
21213 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
21214 tree-switch-conversion.o, var-tracking.o, value-prof.o,
21215 cfgexpand.o, pretty-print.o): Update dependencies.
21217 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
21219 * tree-ssa-structalias.c: Remove tm_p.h from include.
21221 2010-05-21 Jeff Law <law@redhat.com>
21223 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
21225 2010-05-21 Jason Merrill <jason@redhat.com>
21227 * tree-eh.c (cleanup_is_dead_in): New.
21228 (lower_try_finally): Don't generate a dead cleanup region.
21229 (lower_cleanup): Likewise.
21231 2010-05-21 Jakub Jelinek <jakub@redhat.com>
21234 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
21235 unchain each use from the cyclic next_regno_use chain first.
21237 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21239 * real: Do not include gmp.h, mpfr.h, and mpc.h.
21240 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
21241 (real_value_negate, real_value_abs): New prototypes.
21242 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
21243 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
21244 new include file for interface between MPFR and REAL_VALUE_TYPE.
21245 * real.c: Include realmpfr.h.
21246 (real_arithmetic2): Remove legacy function.
21247 (real_value_negate): New.
21248 (real_value_abs): New.
21249 (mfpr_from_real, real_from_mpfr): Move from here...
21250 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
21251 * builtins.c: Include realmpfr.h.
21252 * fold-const.c: Include realmpfr.h.
21253 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
21254 (fold_negate_const): Likewise.
21255 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
21256 * toplev.c: Include realmpfr.h.
21257 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
21258 and real_value_negate.
21259 * fixed-value.c (check_real_for_fixed_mode): Likewise.
21260 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
21261 (vfp3_const_double_index): Likewise.
21262 (arm_print_operand): Likewise.
21263 * Makefile.in: Update dependencies.
21265 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21267 * config/s390/s390.c (override_options): Increase the default
21268 of max-completely-peel-times.
21270 2010-05-21 Julian Brown <julian@codesourcery.com>
21271 Mark Mitchell <mark@codesourcery.com>
21273 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
21274 sibling calls for Thumb-1.
21275 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
21276 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
21278 (*call_insn, *call_value_insn): Don't use for Thumb-2.
21279 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
21281 (return): New expander.
21282 (*arm_return): New name for ARM return insn.
21283 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
21285 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
21287 * config.gcc (sparc64-*-rtems*): New target.
21289 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
21291 * tree.c (build_function_decl_skip_args): Fix grammar.
21292 (build_function_type_list_1): Fix typos, adjust formatting.
21294 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21296 * tree.h: Include real.h and fixed-value.h as basic datatypes.
21297 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
21298 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
21299 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
21300 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
21301 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
21302 tree-pretty-print.c, tree-loop-distribution.c,
21303 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
21304 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
21305 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
21306 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
21307 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
21308 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
21309 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
21310 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
21311 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
21312 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
21313 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
21314 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
21315 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
21316 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
21317 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
21318 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
21319 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
21320 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
21321 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
21322 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
21323 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
21324 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
21325 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
21326 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
21327 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
21328 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
21329 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
21330 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
21331 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
21332 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
21333 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
21334 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
21335 config/score/score7.c, config/score/score.c, config/arm/arm.c,
21336 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
21337 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
21338 config/bfin/bfin.c: Clean up redundant includes.
21339 * Makefile.in: Update accordingly.
21341 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
21343 PR middle-end/44204
21344 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
21345 statement has no arguments.
21347 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
21350 * varasm.c (emutls_decl): Merge attributes to new decl.
21352 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
21354 PR middle-end/44101
21355 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
21356 around the uniquized constructor if its type requires a conversion.
21358 2010-05-21 Jakub Jelinek <jakub@redhat.com>
21361 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
21362 at -O0 goto_locus of any of the incoming edges differs from
21363 goto_locus of outgoing edge, or gimple_location of any of the
21366 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
21368 * ira.c (ira_non_ordered_class_hard_regs): Define.
21369 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
21370 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
21371 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
21372 cost of unaligned hard regs when allocating multi-reg pseudos.
21374 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21376 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
21377 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
21378 for TARGET_NO_FLOAT.
21379 * config/mips/mips.c (mips_file_start): Expand conditional expression
21380 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
21381 (mips_override_options): Move -mno-float override -msoft-float and
21383 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
21384 Condition(TARGET_SUPPORTS_NO_FLOAT).
21385 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
21386 __mips_no_float here.
21387 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
21388 (TARGET_SUPPORTS_NO_FLOAT): Define.
21389 * config/mips/sdemtk.opt: Delete.
21391 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21393 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
21395 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
21398 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
21399 * configure: Regenerate.
21400 * config.in: Regenerate.
21401 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
21402 instead of sahf only for 64bit targets.
21404 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21407 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
21408 setup_ref_regs for DEBUG_INSNs.
21410 2010-05-20 Jan Hubicka <jh@suse.cz>
21412 PR middle-end/44197
21413 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
21415 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
21418 * df-scan.c (df_ref_compare): Stabilize sort.
21420 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21422 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
21423 argument. Don't use DW_OP_piece if offset is non-zero,
21424 put offset into second DW_OP_bit_piece argument.
21425 (dw_sra_loc_expr): Adjust callers. For memory expressions
21428 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
21431 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
21432 settings for 16-bit-constant "addo" alternative.
21434 2010-05-19 James E. Wilson <wilson@codesourcery.com>
21436 * config/mips/mips-dsp.md (add<DSPV:mode>3,
21437 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
21440 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
21441 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
21444 2010-05-19 Joseph Myers <joseph@codesourcery.com>
21446 * diagnostic.c (FLOAT, FFS): Don't undefine.
21447 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
21448 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
21451 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21453 * combine.c (propagate_for_debug): Call make_compound_operation
21454 on the source value.
21455 (try_combine): When implementing a split chosen by find_split_point,
21456 either copy i2src or set it to null. Assert that i2src is not null
21457 before substituting into CALL_INSN_FUNCTION_USAGE.
21459 2010-05-19 Anatoly Sokolov <aesok@post.ru>
21461 * double-int.h (double_int_ior): New function.
21462 * tree.h (build_int_cst_wide_type): Remove.
21463 * tree.c (build_int_cst_wide_type): Remove.
21464 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
21465 of build_int_cst_wide_type.
21466 * stor-layout.c (set_sizetype): (Ditto.).
21467 * dojump.c (do_jump): Use build_int_cstu instead of
21468 build_int_cst_wide_type.
21470 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
21472 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
21473 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
21474 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
21475 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
21476 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
21477 propagate the 'data' argument to copy_tree_r.
21478 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
21479 Propagate 'data' argument to walk_tree.
21480 (copy_if_shared): New function.
21481 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
21482 (unmark_visited): New function.
21483 (unshare_body): Call copy_if_shared instead of doing it manually.
21484 (unvisit_body): Call unmark_visited instead of doing it manually.
21486 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
21488 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
21489 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
21490 * hooks.c: Likewise.
21491 * target-def.h (TARGET_FOLD_BUILTIN): Define to
21492 hook_tree_tree_int_treep_bool_null.
21493 * target.h (struct gcc_target): Update signature of fold_builtin
21495 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
21496 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
21497 instead of the call expression.
21498 (fold_builtin_call_array): Pass n and argarray directly.
21499 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
21501 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
21502 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
21503 `i' and use it in place of `arity'.
21504 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
21505 Dereference `args' directly.
21506 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
21508 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21510 * doc/sourcebuild.texi (Effective-Target Keywords): Document
21512 (Directives): Document optional dg-require-effective-target
21515 2010-05-19 Richard Guenther <rguenther@suse.de>
21518 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
21520 2010-05-19 Richard Guenther <rguenther@suse.de>
21522 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
21523 * common.opt (fwhopr=): New.
21524 * opts.c (common_handle_option): Handle OPT_fwhopr.
21525 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
21526 * collect2.c (main): Match -fwhopr*.
21527 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
21528 Execute ltrans stage in parallel when jobs is bigger than 1.
21530 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21532 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21533 pentiumpro on Solaris 8/x86 with Sun as.
21534 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
21536 (gcc_cv_as_ix86_quad): Check for .quad directive.
21537 * configure: Regenerate.
21538 * config.in: Regenerate.
21539 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
21541 2010-05-19 Martin Jambor <mjambor@suse.cz>
21543 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
21544 also for indirect edges. Actual printing moved...
21545 (ipa_print_node_jump_functions_for_edge): ...here.
21546 (ipa_compute_jump_functions): Renamed to
21547 ipa_compute_jump_functions_for_edge and made static.
21548 (ipa_compute_jump_functions): New function.
21549 (make_edge_direct_to_target): Check if the number of arguments on
21550 the newly direct edge is the same as the number of parametrs of
21552 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
21553 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
21554 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21555 analysis functions unconditionally, call the new
21556 ipa_analyze_params_uses on the node instead of every edge.
21558 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
21560 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
21562 (dump_mem_ref): Adopt debug code to handle a tree as step. This
21563 also checks for a constant int vs. non-constant but
21564 loop-invariant steps.
21565 (find_or_create_group): Change the sort algorithm to only consider
21566 steps that are constant ints.
21567 (idx_analyze_ref): Adopt code to handle a tree instead of a
21568 HOST_WIDE_INT for step.
21569 (gather_memory_references_ref): Handle tree instead of int and be
21570 prepared to see a NULL_TREE.
21571 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
21572 prefetches if the step cannot be calculated at compile time.
21573 (issue_prefetch_ref): Issue prefetches for non-constant but
21574 loop-invariant steps.
21576 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21579 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21581 * tree.h (build_call_list): Remove.
21582 * tree.c (build_call_list): Remove.
21584 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21586 * tree.h (build_call_list): Remove.
21587 * tree.c (build_call_list): Remove.
21589 2010-05-18 Jan Hubicka <jh@suse.cz>
21591 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
21593 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
21595 PR rtl-optimization/43332
21596 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
21598 2010-05-18 Anatoly Sokolov <aesok@post.ru>
21600 * tree.h (build_int_cstu): Implement as static inline.
21601 * tree.c (build_int_cstu): Remove function.
21602 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
21605 2010-05-18 Richard Guenther <rguenther@suse.de>
21608 * lto-wrapper.c (verbose): New variable. Initialize from -v.
21609 (debug): Initialize from -save-temps.
21610 (collect_execute): Print command-line when verbose.
21611 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
21612 for ltrans invocation. Produce -dumpbase flag again.
21613 (process_args): Remove.
21615 * collect2.c (maybe_run_lto_and_relink): Only pass object
21616 files to lto-wrapper.
21617 * gcc.c (LINK_COMMAND_SPEC): Likewise.
21619 2010-05-18 Jan Hubicka <jh@suse.cz>
21621 * opts.c (decode_options): Do not disable whopr at ipa_cp.
21622 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
21624 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21627 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
21629 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
21632 2010-05-18 Jakub Jelinek <jakub@redhat.com>
21635 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
21636 rtx_equal_p inline.
21638 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21640 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
21641 lto-macho as lto_binary_reader.
21643 * darwin.c (darwin_asm_named_section): Do not add assembler comment
21644 after .section directive; just print it before the directive instead.
21646 2010-05-17 Jan Hubicka <jh@suse.cz>
21648 * cgraph.c (cgraph_create_virtual_clone): Only check
21649 versionable_function_p when not in wpa and checking is enabled.
21650 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
21651 there are no more functions to materialize.
21653 2010-05-17 Jan Hubicka <jh@suse.cz>
21655 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
21656 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
21658 (output_cgraph): Call output_cgraph_opt_summary.
21659 (input_cgrpah): Call input_cgraph_opt_summary.
21660 (output_cgraph_opt_summary_p, output_node_opt_summary,
21661 input_node_opt_summary, input_cgraph_opt_section): New functions.
21662 * lto-section-in.c (lto_section_name): Add cgraphopt.
21663 * tree-inline.c (tree_function_versioning): Handle parm_num.
21664 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
21665 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
21667 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21669 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
21670 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
21671 the insn to prefetch ratio heuristic to loops with known trip count.
21673 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21675 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
21676 (schedule_prefetches): Do not generate a prefetch if the unroll factor
21677 is far from what is required by the prefetch.
21679 2010-05-17 Jan Hubicka <jh@suse.cz>
21681 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
21682 (ipcp_estimate_growth): Likewise.
21683 (ipcp_const_param_count): Likewise.
21684 (ipcp_insert_stage): Likewise.
21685 * ipa-prop.c (visit_load_for_mod_analysis): New function.
21686 (visit_store_addr_for_mod_analysis): Set used flag.
21687 (ipa_detect_param_modifications): Set used flag for SSE params;
21688 update use of walk_stmt_load_store_addr_ops.
21689 (ipa_print_node_params): Print used flag.
21690 (ipa_write_node_info): Stream used flag.
21691 (ipa_read_node_info): Likewise.
21692 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
21693 (ipa_is_param_used): New function.
21694 (lto_ipa_fixup_call_notes): Remove unused declaration.
21696 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21699 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
21700 * configure: Regenerate.
21701 * config.in: Regenerate.
21702 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
21703 !HAVE_AS_IX86_REP_LOCK_PREFIX.
21704 Don't emit whitespace.
21705 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
21706 (*rep_movsi): Likewise.
21707 (*rep_movsi_rex64): Likewise.
21708 (*rep_movqi): Likewise.
21709 (*rep_movqi_rex64): Likewise.
21710 (*rep_stosdi_rex64): Likewise.
21711 (*rep_stossi): Likewise.
21712 (*rep_stossi_rex64): Likewise.
21713 (*rep_stosqi): Likewise.
21714 (*rep_stosqi_rex64): Likewise.
21715 (*cmpstrnqi_nz_1): Use {%;} after repz.
21716 (*cmpstrnqi_nz_rex_1): Likewise.
21717 (*cmpstrnqi_1): Likewise.
21718 (*cmpstrnqi_rex_1): Likewise.
21719 (*strlenqi_1): Use {%;} after repnz.
21720 (*strlenqi_rex_1): Likewise.
21721 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
21722 (*sync_compare_and_swap<mode>): Likewise.
21723 (sync_double_compare_and_swap<mode>): Likewise.
21724 (*sync_double_compare_and_swapdi_pic): Likewise.
21725 (sync_old_add<mode>): Likewise.
21726 (sync_add<mode>): Likewise.
21727 (sync_sub<mode>): Likewise.
21728 (sync_<code><mode>): Likewise.
21730 2010-05-17 Martin Jambor <mjambor@suse.cz>
21732 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
21733 otr_token and polymorphic.
21734 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
21735 (cgraph_clone_edge): Copy the above fields.
21736 * tree.c (get_binfo_at_offset): New function.
21737 * tree.h (get_binfo_at_offset): Declare.
21738 * ipa-prop.h (enum jump_func_type): Added known_type jump function
21739 type, reordered items, updated comments.
21740 (union jump_func_value): Added base_type field, reordered fields.
21741 (enum ipa_lattice_type): Moved down in the file.
21742 (struct ipa_param_descriptor): New field polymorphic.
21743 (ipa_is_param_polymorphic): New function.
21744 * ipa-prop.c: Include gimple.h and gimple-fold.h.
21745 (ipa_print_node_jump_functions): Print known type jump functions.
21746 (compute_complex_pass_through): Renamed to...
21747 (compute_complex_assign_jump_func): this.
21748 (compute_complex_ancestor_jump_func): New function.
21749 (compute_known_type_jump_func): Likewise.
21750 (compute_scalar_jump_functions): Create known type and complex ancestor
21752 (ipa_note_param_call): New parameter polymorphic, set the corresponding
21753 flag in the call note accordingly.
21754 (ipa_analyze_call_uses): Renamed to...
21755 (ipa_analyze_indirect_call_uses): this. New parameter target, define
21756 variable var only in the block where it is used.
21757 (ipa_analyze_virtual_call_uses): New function.
21758 (ipa_analyze_call_uses): Likewise.
21759 (combine_known_type_and_ancestor_jfs): Likewise.
21760 (update_jump_functions_after_inlining): Implemented handling of a
21761 number of new jump function types combination.
21762 (print_edge_addition_message): Removed.
21763 (make_edge_direct_to_target): New function.
21764 (try_make_edge_direct_simple_call): Likewise.
21765 (try_make_edge_direct_virtual_call): Likewise.
21766 (update_call_notes_after_inlining): Renamed to...
21767 (update_indirect_edges_after_inlining): this. Moved edge creation for
21768 indirect calls to try_make_edge_direct_simple_call, also calls
21769 try_make_edge_direct_virtual_call for virtual calls.
21770 (ipa_print_node_params): Changed the header message.
21771 (ipa_write_jump_function): Stream also known type jump functions.
21772 (ipa_read_jump_function): Likewise.
21773 (ipa_write_indirect_edge_info): Stream new fields in
21774 cgraph_indirect_call_info.
21775 (ipa_read_indirect_edge_info): Likewise.
21776 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
21779 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21781 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
21783 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21785 * tree.h (CALL_EXPR_ARGS): Delete.
21786 (call_expr_arglist): Delete.
21787 * tree.c (call_expr_arglist): Delete.
21788 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
21789 targetm.fold_builtin.
21790 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
21791 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
21792 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
21793 arglist parameter. Use CALL_EXPR_ARG.
21794 (picochip_expand_builtin_3op): Likewise.
21795 (picochip_expand_builtin_2opvoid): Likewise.
21796 (picochip_expand_array_get): Likewise.
21797 (picochip_expand_array_put): Likewise.
21798 (picochip_expand_array_testport): Likewise.
21799 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
21800 rather than arglist.
21801 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
21803 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
21804 than TREE_VALUE and TREE_CHAIN.
21805 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
21806 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
21809 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21812 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
21813 to have no fallthru edge.
21815 PR middle-end/44102
21816 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
21817 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
21818 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
21819 add BARRIER after previous bb if needed.
21821 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21823 * tree.c (build_function_type_list_1): Remove bogus assert condition.
21825 2010-05-17 Alan Modra <amodra@gmail.com>
21827 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
21828 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
21829 with copy_reg rtx param.
21830 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
21831 Correct cases where code for ABI_V4 did not initialise the reg
21832 used to access frame. Also leave frame_reg_rtx as sp for large
21833 frames that save no regs.
21835 2010-05-17 Martin Jambor <mjambor@suse.cz>
21837 PR middle-end/44133
21838 * tree-sra.c (create_access_replacement): New parameter rename, mark
21839 the replaement for renaming only when it is true.
21840 (get_access_replacement): Pass true in the rename parameter of
21841 create_access_replacement.
21842 (get_unrenamed_access_replacement): New function.
21843 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
21844 replacement declaration from it.
21846 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
21848 * function.c (try_fit_stack_local, add_frame_space): New static
21850 (assign_stack_local_1): Use them. Look for opportunities to use
21851 space previously wasted on alignment.
21852 * function.h (struct frame_space): New.
21853 (struct rtl_data): Add FRAME_SPACE_LIST member.
21854 * reload1.c (something_was_spilled): New static variable.
21855 (alter_reg): Set it.
21856 (reload): Test it in addition to testing if the frame size changed.
21858 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
21860 * config/s390/s390.c: Define sane prefetch settings and activate
21861 flag_prefetch_loop_arrays on -O3.
21862 * config/s390/s390.h: Declare that read can use write prefetch.
21864 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21866 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
21869 2010-05-16 Jan Hubicka <jh@suse.cz>
21871 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
21872 function body; do not check stdarg field of struct function.
21874 2010-05-16 Jan Hubicka <jh@suse.cz>
21876 * cgraph.c (dump_cgraph_node): Dump versionable flag.
21877 * cgraph.h (cgraph_local_info): Add versionable flag.
21878 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
21879 (ipcp_versionable_function_p): Use it.
21880 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21883 2010-05-16 Jan Hubicka <jh@suse.cz>
21885 * cgraph.c (cgraph_clone_node): Take decl argument and insert
21886 clone into hash when it is different from orig.
21887 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
21888 * cgraph.h (cgraph_clone_node): Update prototype.
21889 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
21890 (lto_cgraph_encoder_delete): Delete body map.
21891 (lto_cgraph_encoder_size): Move to header.
21892 (lto_cgraph_encoder_encode_body_p,
21893 lto_set_cgraph_encoder_encode_body): New.
21894 (lto_output_node): Do not take written_decls argument; output clone_of
21896 (add_node_to): Add include_body_argument; call
21897 lto_set_cgraph_encoder_encode_body on master of the clone.
21898 (add_references): Update use of add_node_to.
21899 (compute_ltrans_boundary): Likewise.
21900 (output_cgraph): Do not create written_decls bitmap.
21901 (input_node): Take nodes argument; stream in clone_of correctly.
21902 (input_cgraph_1): Update use of input_node.
21903 * lto-streamer-out.c (lto_output): Use encoder info to decide
21904 what bodies to output.
21905 * ipa-inline.c (cgraph_clone_inlined_nodes,
21906 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
21907 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
21908 (lto_cgraph_encoder_size): Define here.
21909 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
21912 2010-05-16 Richard Guenther <rguenther@suse.de>
21914 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
21916 * ipa-type-escape.c (gate_type_escape_vars): Run when
21917 -fipa-struct-reorg runs.
21918 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
21919 * common.opt (fipa-type-escape): Remove.
21921 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21923 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
21924 (decode_options): Likewise.
21925 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
21927 2010-05-16 Jan Hubicka <jh@suse.cz>
21929 * ipa.c (function_and_variable_visibility): Also bring local all
21932 2010-05-16 Richard Guenther <rguenther@suse.de>
21934 * alias.c (nonoverlapping_memrefs_p): Remove use of
21935 IPA type-escape information.
21937 2010-05-16 Joseph Myers <joseph@codesourcery.com>
21939 * c-common.c (c_common_reswords): Add _Static_assert for C.
21940 * c-parser.c (c_token_starts_declaration,
21941 c_parser_next_token_starts_declaration,
21942 c_parser_static_assert_declaration_no_semi,
21943 c_parser_static_assert_declaration): New.
21944 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
21945 Handle static assertions if static_assert_ok.
21946 (c_parser_external_declaration, c_parser_declaration_or_fndef,
21947 c_parser_compound_statement_nostart, c_parser_label,
21948 c_parser_for_statement, c_parser_objc_methodprotolist,
21949 c_parser_omp_for_loop): All callers of
21950 c_parser_declaration_or_fndef changed.
21951 (c_parser_struct_declaration): Handle static assertions.
21952 (c_parser_compound_statement_nostart): Use
21953 c_parser_next_token_starts_declaration and
21954 c_token_starts_declaration to detect start of declarations.
21955 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
21958 2010-05-16 Anatoly Sokolov <aesok@post.ru>
21960 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21961 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21962 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21963 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21964 (mmix_function_outgoing_value): Rename to...
21965 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
21966 (mmix_function_value_regno_p): Make static.
21967 (mmix_libcall_value): New function.
21968 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
21969 mmix_function_value_regno_p): Remove declaration.
21971 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21973 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
21974 BUILT_IN_ALLOCA if stack checking is enabled.
21976 2010-05-16 Richard Guenther <rguenther@suse.de>
21978 * var-tracking.c (vars_copy_1): Inline ...
21979 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
21980 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
21981 (variable_merge_over_cur): Adjust. Merge asserts.
21982 (variable_merge_over_src): Likewise.
21983 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
21984 (variable_post_merge_new_vals): Merge asserts.
21985 (variable_post_merge_perm_vals): Likewise.
21986 (find_mem_expr_in_1pdv): Likewise.
21987 (dataflow_set_different_value): Remove.
21988 (onepart_variable_different_p): Merge asserts.
21989 (variable_different_p): Likewise.
21990 (dataflow_set_different_1): Inline ...
21991 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
21992 (emit_notes_for_differences_1): Merge asserts.
21994 2010-05-16 Richard Guenther <rguenther@suse.de>
21996 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
21997 * optabs.c (libfunc_decl_hash): Likewise.
21998 * varasm.c (emutls_decl): Likewise.
22000 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
22002 * c-decl.c: Don't include gimple.h.
22003 (merge_decls): Do not copy gimple_body.
22005 2010-05-15 Jason Merrill <jason@redhat.com>
22007 * c.opt: Add -fnothrow-opt.
22009 2010-05-15 Jan Hubicka <jh@suse.cz>
22011 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
22013 * passes.c (ipa_write_summaries): Write all analyzed nodes.
22015 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
22017 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
22018 * Makefile.in: Add it.
22019 Fix all other Makefile dependencies for changes below.
22020 * tree.h: Include it instead of defining VEC primitives here.
22021 * gimple.h: Likewise.
22023 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
22024 * except.h: Include vecir.h, break dependence on tree.h.
22026 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
22028 * tree-iterator.c: ...to here.
22029 * tree-iterator.h: Fix file introduction comment. Add extern markers.
22031 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
22033 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
22034 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
22035 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
22036 tree-mudflap.h, and target.h.
22037 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
22038 predict.h, tree-inline.h, gimple.h, and langhooks.h.
22039 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
22040 Add FIXME for why gimple.h is still included (should be unnecessary
22041 since GCC 4.5 gimplification unit-at-a-time).
22042 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
22043 * c-pragma.c: Add FIXME for why function.h needs to be included just
22044 for cfun, at front-end level.
22045 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
22046 Do not include ggc.h, but include vecprim.h for VEC(char).
22047 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
22048 Explain why target.h is included.
22049 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
22050 Explain why gimple.h is included.
22051 * c-ppoutput.c: Do not include tm.h.
22052 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
22053 * c-parses.c: Explain why rtl.h is included, and that this (and only
22054 this) is also why tm.h must be included.
22055 Do not include except.h.
22056 * c-lang.c: Do not include ggc.h.
22058 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
22060 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
22062 2010-05-15 Joseph Myers <joseph@codesourcery.com>
22064 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
22065 unions by default if those structs and unions have no tags. Do
22066 not condition anonymous struct and unions handling on flag_iso.
22067 Allow anonymous structs and unions for C1X.
22068 (finish_struct): Do not diagnose lack of named fields when
22069 anonymous structs and unions present for C1X. Accept flexible
22070 array members in structure with anonymous structs or unions but no
22071 directly named fields.
22072 * doc/extend.texi (Unnamed Fields): Update.
22074 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
22076 * gimple.h (compare_field_offset): Rename into...
22077 (gimple_compare_field_offset): ...this.
22078 * gimple.c (compare_field_offset): Rename into...
22079 (gimple_compare_field_offset): ...this. Compare the full access if
22080 the offset is self-referential.
22081 (gimple_types_compatible_p): Adjust for above renaming.
22082 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
22083 DECL_NONADDRESSABLE_P flag of fields before merging them.
22085 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
22087 * tree.h (ctor_to_list): Delete.
22088 * tree.c (ctor_to_list): Delete.
22090 2010-05-15 Jan Hubicka <jh@suse.cz>
22092 * ipa-reference.c: Include toplev.h
22093 (is_proper_for_analysis): Only add to all_module_statics
22094 if it is allocated.
22095 (write_node_summary_p, stream_out_bitmap,
22096 ipa_reference_write_optimization_summary,
22097 ipa_reference_read_optimization_summary): New.
22098 (struct ipa_opt_pass_d pass_ipa_reference): Add
22099 optimization summary streaming.
22100 * lto-cgraph.c (referenced_from_this_partition_p,
22101 reachable_from_this_partition_p): New functions.
22102 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
22103 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
22104 * opts.c (decode_options): Enable ipa_reference.
22105 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
22106 * lto-streamer.h (referenced_from_this_partition_p,
22107 reachable_from_this_partition_p): Declare.
22109 2010-05-15 Richard Guenther <rguenther@suse.de>
22111 PR tree-optimization/44038
22112 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
22113 taking the address of a V_C_E of a constant.
22115 2010-05-14 Jan Hubicka <jh@suse.cz>
22117 * tree.h (memory_identifier_string): Remove.
22118 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
22119 (ipa_reference_global_vars_info_d): Remove statics_not_read and
22120 statics_not_written.
22121 (ipa_reference_optimization_summary_d): New structure.
22122 (ipa_reference_optimization_summary_t): New type and vector.
22123 (ipa_reference_vars_info_d): Embedd structures instead of using
22125 (reference_vars_to_consider): Remove out of GGC space.
22126 (module_statics_escape): Remove.
22127 (global_info_obstack): Rename to ...
22128 (optimization_summary_obstack): ... this one.
22129 (initialization_status_t): Remove.
22130 (memory_identifier_string): Remove.
22131 (get_reference_vars_info): Fix indenting.
22132 (set_reference_vars_info): Likewise.
22133 (get_reference_optimization_summary): New.
22134 (set_reference_optimization_summary): New.
22135 (get_global_reference_vars_info): Remove.
22136 (ipa_reference_get_read_global): Remove.
22137 (ipa_reference_get_written_global): Remove.
22138 (ipa_reference_get_not_read_global): Update.
22139 (ipa_reference_get_not_written_global): Update.
22140 (is_proper_for_analysis): Outlaw addressable.
22141 (propagate_bits): Update for new datastructures.
22142 (analyze_variable): Remove.
22143 (init_function_info): Update for new datastructures.
22144 (clean_function_local_data): Remove.
22145 (clean_function): Remove.
22146 (copy_global_bitmap): Use optimizations_summary_obstack.
22147 (duplicate_node_data): Duplicate optimization summary only.
22148 (remove_node_data): Remove optimization summary only.
22149 (generate_summary): Do not analyze variables; do not compute
22150 module_statics_escape; do not prune solutions by it.
22151 (read_write_all_from_decl): Fix typos in comments.
22152 (propagate): Doscover readonly and nonaddressable first;
22153 update for new datastructures; share global bitmaps.
22154 * ipa-reference.h (ipa_reference_get_read_global,
22155 ipa_reference_get_written_global): Remove.
22156 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
22157 * Makefile.in: Remove ipa-refereference from GT files.
22159 2010-05-14 Jakub Jelinek <jakub@redhat.com>
22162 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
22163 for all SYMBOL_REF_DECLs.
22165 2010-05-14 Jan Hubicka <jh@suse.cz>
22167 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
22168 (varpool_all_refs_explicit_p): New inline function.
22169 * ipa-reference.c: Update comment.
22170 (module_statics_written): Remove.
22171 (get_static_decl): Remove.
22172 (ipa_init): Do not initialize module_statics_written.
22173 (analyze_function): Likewise.
22174 (generate_summary): Likewise; do not compute module_statics_readonly
22175 and do not update variable flags.
22176 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
22177 * ipa.c: Inlucde flags.h
22178 (cgraph_local_node_p): New.
22179 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
22180 promote functions to local.
22181 (ipa_discover_readonly_nonaddressable_vars): New function.
22182 (function_and_variable_visibility): Use cgraph_local_node_p.
22183 * varpool.c (varpool_finalize_decl): Set force_output for
22184 DECL_PRESERVE_P vars.
22186 2010-05-14 Jan Hubicka <jh@suse.cz>
22188 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
22190 2010-05-14 Richard Guenther <rguenther@suse.de>
22192 PR tree-optimization/44119
22193 * tree-ssa-pre.c (eliminate): Properly mark replacement of
22194 a PHI node necessary.
22196 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
22198 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
22200 2010-05-14 Jason Merrill <jason@redhat.com>
22203 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
22204 (gimple_call_set_nothrow): New.
22205 * gimple.c (gimple_build_call_from_tree): Call it.
22206 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
22209 * gimplify.c (gimplify_seq_add_stmt): No longer static.
22210 * gimple.h: Declare it.
22211 * gimple.c (gimple_build_eh_filter): No ops.
22213 2010-05-14 Jan Hubicka <jh@suse.cz>
22215 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
22216 nodes already in queue.
22217 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
22218 re-enqueueing node.
22220 2010-05-14 Jakub Jelinek <jakub@redhat.com>
22223 * cfgexpand.c (expand_debug_expr): If non-memory op0
22224 has BLKmode, return NULL.
22226 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
22228 * config.gcc: Add support for --with-cpu option for bdver1.
22229 * config/i386/i386.h (TARGET_BDVER1): New macro.
22230 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
22231 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22232 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
22233 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22234 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
22235 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
22236 (processor_type): Add PROCESSOR_BDVER1.
22237 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
22238 processor_type in config/i386/i386.h.
22239 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
22240 movaps <reg, reg> instead of movapd <reg, reg> when replacing
22241 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
22242 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22243 to emit packed xor instead of packed double/packed integer
22244 xor for SSE and AVX when moving a zero value.
22245 * config/i386/sse.md: Add check for
22246 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
22247 movapd/movdqa for SSE and AVX.
22248 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
22249 single logical operations i.e and, or and xor instead of packed double
22250 logical operations for SSE and AVX.
22251 * config/i386/i386-c.c (ix86_target_macros_internal):
22252 Add PROCESSOR_BDVER1.
22253 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
22254 (has_fma4, has_xop): New.
22255 * config/i386/i386.c (bdver1_cost): New variable.
22256 (m_BDVER1): New macro.
22257 (m_AMD_MULTIPLE): Add m_BDVER1.
22258 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
22259 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
22260 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
22261 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
22262 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
22263 x86_tune_sse_partial_reg_dependency,
22264 x86_tune_sse_unaligned_load_optimal,
22265 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
22266 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
22267 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
22268 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
22269 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
22270 Enable/disable for bdver1.
22271 (processor_target_table): Add bdver1_cost.
22272 (cpu_names): Add bdver1.
22273 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
22274 processor_alias_table.
22275 (ix86_expand_vector_move_misalign): Change.
22276 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
22277 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
22278 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
22279 of movupd/movdqu for SSE and AVX.
22280 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
22281 (ix86_tune_adjust_cost): Add code for bdver1.
22282 (standard_sse_constant_opcode): Add check for
22283 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
22284 of packed double xor for SSE and AVX.
22286 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
22288 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
22289 result to unsigned.
22291 2010-05-14 Tristan Gingold <gingold@adacore.com>
22293 * toplev.c (default_debug_hooks): Remove this variable.
22294 (process_options): Remove assignments to default_debug_hooks.
22296 2010-05-14 Martin Jambor <mjambor@suse.cz>
22298 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
22299 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
22300 * langhooks.h (struct lang_hooks_for_decls): Removed field
22302 * tree.c (free_lang_data): Remove assignment to
22303 lang_hooks.fold_obj_type_ref.
22304 * tree.def (OBJ_TYPE_REF): Update comment.
22306 2010-05-14 Richard Guenther <rguenther@suse.de>
22308 PR tree-optimization/44124
22309 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
22311 2010-05-14 Alan Modra <amodra@gmail.com>
22314 * config/rs6000/rs6000.c (struct machine_function): Reorder
22315 fields for better packing. Add lr_save_state.
22316 (rs6000_ra_ever_killed): Return lr_save_state if set.
22317 (rs6000_emit_eh_reg_restore): Set lr_save_state.
22319 2010-05-13 Jan Hubicka <jh@suse.cz>
22321 * varpool.c (decide_is_variable_needed): Drop code checking
22322 TREE_SYMBOL_REFERENCED.
22324 2010-05-13 Jan Hubicka <jh@suse.cz>
22326 * final.c (output_addr_const): Do not call mark_decl_referenced.
22327 * cgraphunit.c (process_function_and_variable_attributes): Use
22328 mark_needed_node dirrectly.
22329 (assemble_thunk): Do not call mark_decl_referenced.
22331 2010-05-13 Anatoly Sokolov <aesok@post.ru>
22333 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
22335 2010-05-13 Jeff Law <law@redhat.com>
22337 * ira-conflicts.c (print_allocno_conflicts): New function broken out
22339 (print_conflicts): Call print_allocno_conflicts.
22341 2010-05-13 Jakub Jelinek <jakub@redhat.com>
22344 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
22347 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
22349 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
22350 t-mingw-w64 or t-mingw-w32 for multilib configuration.
22351 * config/i386/t-mingw-w32: New.
22352 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
22354 2010-05-13 Martin Jambor <mjambor@suse.cz>
22356 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
22358 * gimple-fold.c (get_base_binfo_for_type): New function.
22359 (gimple_get_relevant_ref_binfo): Likewise.
22360 (gimple_fold_obj_type_ref_known_binfo): Likewise.
22361 (gimple_fold_obj_type_ref): Likewise.
22362 (fold_gimple_call): Simplify condition for folding virtual calls
22363 and call gimple_fold_obj_type_ref.
22364 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
22365 (gimple_fold_obj_type_ref_known_binfo): Likewise.
22367 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
22369 * config/rs6000/rs6000-protos.h
22370 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
22371 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
22372 (rs6000_debug_mode_dependent_address)
22373 (rs6000_mode_dependent_address_ptr): Likewise.
22375 2010-05-13 Jakub Jelinek <jakub@redhat.com>
22378 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
22380 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
22381 * tree-sra.c (create_access_replacement): Call unshare_expr before
22382 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
22383 * dwarf2out.c: Include tree-flow.h.
22384 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
22385 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
22386 Handle DW_OP_bit_piece.
22387 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
22388 construct_piece_list, adjust_piece_list): New functions.
22389 (add_var_loc_to_decl): Handle SRA optimized variables.
22390 Adjust for var_loc_note to loc field renaming.
22391 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
22392 in VAR_LOCATION note.
22393 (new_loc_descr_op_bit_piece): New function.
22394 (dw_sra_loc_expr): New function.
22395 (dw_loc_list): Use it. Don't handle the last range after the
22396 loop, handle it inside of the loop. Adjust for var_loc_note
22397 to loc field renaming.
22398 (add_location_or_const_value_attribute): Only special case
22399 single entry loc lists if loc is NOTE_P. Adjust for
22400 var_loc_note to loc field renaming.
22401 (dwarf2out_var_location): Don't set newloc->var_loc_note
22402 and newloc->next here.
22404 2010-05-12 Jan Hubicka <jh@suse.cz>
22406 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
22408 * cgraph.h (cgraph_only_called_directly_p,
22409 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
22410 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
22411 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
22413 * ipa.c (cgraph_remove_unreachable_nodes): Use
22414 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
22416 * tree-inline.c (copy_bb): Check address_taken flag.
22417 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
22418 externally_visible flag.
22420 2010-05-12 Jason Merrill <jason@redhat.com>
22424 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
22425 * sdbout.c (plain_type_1): Likewise.
22426 * dwarf2out.c (is_base_type): Likewise.
22427 (gen_type_die_with_usage): Likewise. Generate
22428 DW_TAG_unspecified_type for any LANG_TYPE.
22430 2010-05-12 Jan Hubicka <jh@suse.cz>
22432 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
22434 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
22435 (cgraph_clone_edge): Update.
22436 (cgraph_node_remove_callees): Remove indirect calls too.
22437 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
22438 (cgraph_create_indirect_edge): Update prototype.
22439 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
22440 is_proper_for_analysis.
22441 (add_new_function, visited_nodes, function_insertion_hook_holder,
22442 get_local_reference_vars_info, mark_address_taken, mark_address,
22443 mark_load, mark_store, check_asm_memory_clobber, check_call,
22444 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
22445 (ipa_init): Do not initialize visited_nodes;
22446 function_insertion_hook_holder.
22447 (analyze_variable): Rewrite.
22448 (analyze_function): Rewrite.
22449 (copy_local_bitmap): Remove.
22450 (duplicate_node_dat): Do not duplicate local info.
22451 (generate_summary): Simplify to only walk cgraph.
22452 (write_node_summary_p, ipa_reference_write_summary,
22453 ipa_reference_read_summary): Remove.
22454 (propagate): Do not remove function insertion;
22456 (pass_ipa_reference): NULLify summary handling fields.
22457 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
22458 (input_edge): Input ecf_flags.
22459 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
22460 (update_indirect_edges_after_inlining): Ignore edges with unknown
22463 2010-05-12 Sriraman Tallam <tmsriram@google.com>
22465 * implicit-zee.c: New file.
22466 * tree-pass.h (pass_implicit_zee): Declare.
22467 * passes.c (init_optimization_passes): Add zee pass.
22468 * common.opt (fzee): New flag.
22469 * timevar.def (TV_ZEE): Define.
22470 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
22472 * Makefile.in (implicit-zee.o): Add new build file.
22474 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22475 Nathan Froyd <froydnj@codesourcery.com>
22477 * c-common.c (sync_resolve_params): Remove write-only variable.
22479 2010-05-12 Anatoly Sokolov <aesok@post.ru>
22481 * target.h (struct gcc_target): Add mode_dependent_address_p field.
22482 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22483 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
22484 * targhooks.c (default_mode_dependent_address_p): New function.
22485 * targhooks.h (default_mode_dependent_address_p): Declare function.
22486 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22487 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
22488 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
22489 target hook. Change return type to bool.
22490 * recog.h (mode_dependent_address_p): Change return type to bool.
22492 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22493 Nathan Froyd <froydnj@codesourcery.com>
22495 * tree-mudflap.c (build_function_type_0, build_function_type_1,
22496 build_function_type_2, build_function_type_3): Remove.
22497 (mudflap_init): Use build_function_type_list.
22499 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22500 Nathan Froyd <froydnj@codesourcery.com>
22502 * coverage.c (build_fn_info_value): Call build_constructor instead of
22503 build_constructor_from_list.
22504 (build_ctr_info_value): Likewise.
22505 (build_gcov_info): Likewise.
22507 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
22509 * tree.c (build_constructor): Compute TREE_CONSTANT for the
22510 resultant constructor.
22511 (build_constructor_single): Don't set TREE_CONSTANT.
22512 (build_constructor_from_list): Don't compute TREE_CONSTANT.
22514 2010-05-12 Jan Hubicka <jh@suse.cz>
22516 * cgraph.h (struct varpool_node): Add aux.
22517 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
22518 * varpool.c (varpool_remove_node): Do not remove initializer.
22519 (varpool_reset_queue): Export.
22520 (varpool_finalize_decl): Volatile vars are forced to be output.
22521 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
22523 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
22524 process_references, varpool_can_remove_if_no_refs): New functions.
22525 (cgraph_remove_unreachable_nodes): Handle variables too.
22527 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
22530 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
22532 2010-05-12 Jakub Jelinek <jakub@redhat.com>
22534 PR middle-end/44085
22535 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
22536 change value of ORT_TASK.
22537 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
22538 (omp_notice_threadprivate_variable): New function.
22539 (omp_notice_variable): Call it for threadprivate variables.
22540 If enclosing ctx is a task, print enclosing task rather than
22541 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
22542 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
22543 if task has untied clause.
22546 * dwarf2out.c (base_type_die): Don't add name attribute here.
22547 (modified_type_die): Instead of sizetype use
22548 its underlying original type. If a DW_TAG_base_type doesn't
22549 have name added, add __unknown__.
22550 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
22551 always call force_type_die instead.
22553 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
22555 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
22556 for __stack_chk_guard.
22558 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22560 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
22561 don't call start_source_file debug hook here...
22562 (finish_options): ... but here, after outputting predefined and
22563 command line defines and undefs.
22565 PR middle-end/44071
22566 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
22568 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
22569 optimizing away empty bb with no successors, move over its
22570 footer chain to fallthru predecessor.
22571 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
22572 (rtl_split_edge): For asm goto call patch_jump_insn even if
22573 splitting fallthru edge.
22576 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
22577 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
22578 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
22579 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
22583 * c-parser.c (c_parser_expression): Mark LHS of a comma
22584 expression as read if it is a decl, handled component or
22585 COMPOUND_EXPR with that on the RHS.
22586 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
22587 if it is a decl or handled component.
22589 2010-05-11 Jan Hubicka <jh@suse.cz>
22591 * lto-symtab.c (lto_symtab_free): New function.
22592 * lto-streamer.h (lto_symtab_free): Declare.
22594 2010-05-11 Jan Hubicka <jh@suse.cz>
22596 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
22597 that if function is needed it is reachable.
22598 (lto_output_node): See if it the function is reachable or referenced.
22599 (output_cgraph): Update call of lto_output_node.
22600 * lto-streamer.h (reachable_from_other_partition_p): Declare.
22602 2010-05-11 Jan Hubicka <jh@suse.cz>
22604 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
22607 2010-05-11 Jan Hubicka <jh@suse.cz>
22609 PR tree-optimize/44063
22610 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
22612 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
22614 (estimate_function_body_sizes): Compute sizes even when disregarding.
22616 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
22618 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
22620 2010-05-11 Jan Hubicka <jh@suse.cz>
22622 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
22623 into every boundary.
22625 2010-05-11 Jan Hubicka <jh@suse.cz>
22627 * matrix-reorg.c (matrix_reorg): Rebuild edges.
22629 2010-05-11 Jan Hubicka <jh@suse.cz>
22631 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
22632 lto_streamer_cache_delete): Put nodes into heap.
22633 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
22636 2010-05-11 Jan Hubicka <jh@suse.cz>
22638 * cgraphbuild.c (cgraph_rebuild_references): New.
22639 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
22640 out extern inlines.
22641 * cgraph.h (cgraph_rebuild_references): Declare.
22642 * tree-inline.c (tree_function_versioning): Use it.
22643 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
22645 2010-05-11 Jan Hubicka <jh@suse.cz>
22647 * cgraph.c: Include ipa-utils.h
22648 (cgraph_create_virtual_clone): Update references.
22649 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
22651 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22653 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
22654 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
22657 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22659 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
22661 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22663 * gcc.c (execute): For -### don't quote arguments that
22664 contain just alphanumerics and _/-. characters.
22665 * doc/invoke.texi: Document that change for -###.
22668 * df-problems.c (struct dead_debug): Add to_rescan field.
22669 (dead_debug_init): Clear to_rescan field.
22670 (dead_debug_finish): Rescan all debug insns in to_rescan
22671 bitmap and free the bitmap.
22672 (dead_debug_insert_before): Instead of rescanning debug insns
22673 immediately queue their rescanning until dead_debug_finish.
22674 (df_note_bb_compute): After dead_debug_add do continue instead
22677 2010-05-10 Jakub Jelinek <jakub@redhat.com>
22680 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
22681 clear also INSN_REG_USE_LIST.
22683 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22685 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
22687 2010-05-10 Jan Hubicka <jh@suse.cz>
22689 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
22692 2010-05-10 Jan Hubicka <jh@suse.cz>
22694 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
22696 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
22697 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
22698 (lto_streamer_cache_create): Init alloc pool.
22699 (lto_streamer_cache_delete): Free alloc pool.
22700 * lto-streamer.h: Include alloc pool.
22701 (lto_streamer_cache_d): Use alloc pool.
22702 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
22704 2010-05-10 Jan Hubicka <jh@suse.cz>
22706 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
22707 * cgraphbuild.c: Include except.h
22708 (record_type_list, record_eh_tables): New function.
22709 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
22711 2010-05-10 Jan Hubicka <jh@suse.cz>
22713 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
22714 __frame_dummy_init_array_entry, force_to_data): Attribute as used
22715 rather than unused.
22717 2010-05-10 Michael Matz <matz@suse.de>
22719 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
22720 (can_reassociate_p): Use FLOAT_TYPE_P.
22721 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
22722 (vect_force_simple_reduction): ... this.
22723 * tree-parloops.c (gather_scalar_reductions): Use
22724 vect_force_simple_reduction.
22725 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
22726 vect_is_simple_reduction, add modify argument, if true rewrite
22727 "a-b" into "a+(-b)".
22728 (vect_is_simple_reduction, vect_force_simple_reduction): New
22730 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
22732 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
22733 Vladimir Makarov <vmakarov@redhat.com>
22735 PR rtl-optimization/44012
22736 * ira-build.c (remove_unnecessary_allocnos): Nullify
22737 regno_allocno_map of the removed allocno.
22739 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22741 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
22743 * configure: Regenerate.
22745 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22747 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
22749 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
22750 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
22752 * configure: Regenerate.
22754 2010-05-10 Richard Guenther <rguenther@suse.de>
22756 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
22757 marked if the entry identifier is marked.
22759 2010-05-10 Richard Guenther <rguenther@suse.de>
22761 * c-common.c (struct c_common_attributes): Add fnspec attribute.
22762 (handle_fnspec_attribute): New function.
22763 * gimple.h (gimple_call_return_flags): Declare.
22764 (gimple_call_arg_flags): Likewise.
22765 * gimple.c (gimple_call_arg_flags): New function.
22766 (gimple_call_return_flags): Likewise.
22767 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
22768 New argument flags.
22769 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
22770 return value flags.
22771 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
22772 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
22774 (make_heapvar_for): ... this new function.
22775 (handle_rhs_call): Handle fnspec attribute argument specifiers.
22776 (handle_lhs_call): Likewise.
22777 (find_func_aliases): Adjust.
22779 2010-05-10 Richard Guenther <rguenther@suse.de>
22781 PR tree-optimization/44050
22782 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
22784 2010-05-10 Wei Guozhi <carrot@google.com>
22787 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
22789 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22792 * c-typeck.c (lookup_field): Take a type directly. Update
22794 (build_component_ref): Update call to lookup_field.
22795 (set_init_label): Use lookup_field to find initialized field.
22796 Handle returned list of fields like a sequence of designators.
22798 2010-05-09 Richard Guenther <rguenther@suse.de>
22800 PR middle-end/44024
22801 * fold-const.c (tree_single_nonzero_warnv_p): Properly
22802 handle &FUNCTION_DECL.
22804 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22807 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
22808 structures and unions recursively.
22809 (detect_field_duplicates): Move duplicate detection with a hash to
22810 detect_field_duplicates_hash. Always use a hash if anonymous
22811 structures or unions are present.
22812 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
22815 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
22818 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
22819 detect Atom, Core 2 and Core i7.
22821 2010-05-09 Richard Guenther <rguenther@suse.de>
22823 * gcc.c (store_arg): Handle temporary file deletion for
22826 2010-05-09 Richard Guenther <rguenther@suse.de>
22828 PR middle-end/44043
22829 * ipa-inline.c (estimate_function_body_sizes): Return after
22830 disregarding inline limits.
22832 2010-05-09 Richard Guenther <rguenther@suse.de>
22834 * gcc.c (store_arg): Revert last change.
22836 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
22838 PR middle-end/28685
22839 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
22840 (optimize_ops_list): Call it.
22842 2010-05-08 Richard Guenther <rguenther@suse.de>
22844 PR tree-optimization/44030
22845 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
22846 NECESSARY flag if we propagate from a inserted expression.
22848 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
22850 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
22851 domain types as equal if they are both PLACEHOLDER_EXPRs.
22853 2010-05-08 Richard Guenther <rguenther@suse.de>
22855 * lto-wrapper.c (run_gcc): Remove linker output from
22856 command line for LTRANS invocation.
22858 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22860 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22861 lto-macho as lto_binary_reader.
22862 * target.h (struct gcc_target): New hooks lto_start and lto_end.
22863 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
22864 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
22865 in lto_start and lto_end calls.
22866 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
22868 (scan_prog_file): Update is_elf_or_coff call.
22869 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
22871 * collect2.c (main): Fix enum comparison.
22873 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
22875 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
22876 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
22877 and TARGET_ASM_LTO_END.
22878 * darwin.c: Include obstack.h and lto-streamer.h.
22879 (lto_section_names_offset, lto_section_names_obstack,
22880 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
22882 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
22883 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
22884 to a temporary file.
22885 (darwin_asm_lto_end): New function. Restore asm_out_file.
22886 (darwin_asm_named_section): For LTO sections, replace the name with
22887 the offset of the section name in a string table, and build this
22889 (darwin_file_start): Initialize global vars for LTO support.
22890 (darwin_file_end): If output to asm_out_file was redirected, append it
22891 to the proper asm_out_file here. Add the section names section.
22893 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22895 * c-pragma.c (pending_weak_d, pending_weak): New.
22896 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
22897 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
22898 handle_pragma_weak): Update the uses of pending_weaks.
22900 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22902 PR documentation/44016
22903 * doc/standards.texi (Standards): Link to unversioned
22904 cxx0x_status.html page.
22906 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
22909 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
22910 in addition to TREE_USED, to avoid "set but unused" warnings.
22912 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22914 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
22915 (is_loop_prefetching_profitable): Do not insert prefetches
22916 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
22917 times the prefetch ahead distance.
22919 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22921 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
22922 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
22923 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
22926 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22928 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
22929 a diagnostic info when the insn-to-mem ratio is too small.
22931 2010-05-07 Richard Guenther <rguenther@suse.de>
22933 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
22935 (store_arg): Queue temp_filename for deletion instead of
22936 the whole argument.
22938 2010-05-07 Richard Guenther <rguenther@suse.de>
22940 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
22941 (run_gcc): Handle LTRANS phase invocation.
22942 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
22944 2010-05-07 Jakub Jelinek <jakub@redhat.com>
22946 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
22947 this is also meaningful on PARM_DECLs and RESULT_DECLs.
22949 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22951 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
22953 2010-05-07 Richard Guenther <rguenther@suse.de>
22955 PR tree-optimization/44020
22956 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
22957 code when PRE is not yet initialized.
22959 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22961 * config/mips/dbxmdebug.h: Remove.
22962 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
22964 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
22966 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
22967 with null pointer and also warn about ordered comparison of zero with
22968 pointer if -Wextra.
22970 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
22972 * graphite-blocking.c
22973 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
22974 * graphite-clast-to-gimple.c
22975 (clast_to_gcc_expression): Same.
22976 (precision_for_value): Same.
22977 (precision_for_interval): Same.
22978 (gcc_type_for_interval): Same.
22979 (graphite_create_new_guard): Same.
22980 (compute_bounds_for_level): Same.
22981 (graphite_create_new_loop_guard): Same.
22982 * graphite-interchange.c
22983 (build_linearized_memory_access): Same.
22984 (pdr_stride_in_loop): Same.
22985 (memory_strides_in_loop_1): Same.
22986 (memory_strides_in_loop): Same.
22987 (extend_scattering): Same.
22988 (psct_scattering_dim_for_loop_depth): Same.
22989 (pbb_number_of_iterations): Same.
22991 (debug_iteration_domains): Same.
22993 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
22994 (ppl_set_inhomogeneous_gmp): Same.
22995 (ppl_strip_loop): Same.
22996 (ppl_lexico_compare_linear_expressions): Same.
22997 (ppl_read_polyhedron_matrix): Same.
22998 (ppl_max_for_le_pointset): Same.
23000 (ppl_read_polyhedron_matrix): Same.
23001 (tree_int_to_gmp): Same.
23002 (gmp_cst_to_tree): Same.
23003 (ppl_set_inhomogeneous): Same.
23004 (ppl_set_inhomogeneous_tree): Same.
23005 (ppl_set_coef): Same.
23006 (ppl_set_coef_tree): Same.
23007 * graphite-sese-to-poly.c
23008 (build_pbb_scattering_polyhedrons): Same.
23009 (build_scop_scattering): Same.
23010 (scan_tree_for_params_right_scev): Same.
23011 (scan_tree_for_params): Same.
23012 (find_params_in_bb): Same.
23013 (find_scop_parameters): Same.
23014 (add_upper_bounds_from_estimated_nit): Same.
23015 (build_loop_iteration_domains): Same.
23016 (add_condition_to_domain): Same.
23017 (pdr_add_memory_accesses): Same.
23019 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
23021 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
23022 CLooG's value_* macros to their respective mpz_* counterparts.
23023 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
23024 (graphite_create_new_loop_guard): Same.
23025 * graphite-interchange.c (build_linearized_memory_access): Same.
23026 (pdr_stride_in_loop): Same.
23027 (memory_strides_in_loop_1): Same.
23028 (1st_interchange_profitable_p): Same.
23029 * graphite-poly.c (extend_scattering): Same.
23030 (psct_scattering_dim_for_loop_depth): Same.
23031 (pbb_number_of_iterations): Same.
23032 (pbb_number_of_iterations_at_time): Same.
23033 * graphite-poly.h (new_1st_loop): Same.
23034 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
23035 (oppose_constraint): Same.
23036 (insert_constraint_into_matrix): Same.
23037 (ppl_set_inhomogeneous_gmp): Same.
23038 (ppl_set_coef_gmp): Same.
23039 (ppl_strip_loop): Same.
23040 (ppl_lexico_compare_linear_expressions): Same.
23041 (ppl_max_for_le_pointset): Same.
23042 (ppl_min_for_le_pointset): Same.
23043 (ppl_build_realtion): Same.
23044 * graphite-ppl.h (gmp_cst_to_tree): Same.
23045 (ppl_set_inhomogeneous): Same.
23046 (ppl_set_inhomogeneous_tree): Same.
23047 (ppl_set_coef): Same.
23048 (ppl_set_coef_tree): Same.
23049 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23050 (build_scop_scattering): Same.
23051 (add_value_to_dim): Same.
23052 (scan_tree_for_params_right_scev): Same.
23053 (scan_tree_for_params_int): Same.
23054 (scan_tree_for_params): Same.
23055 (find_params_in_bb): Same.
23056 (find_scop_parameters): Same.
23057 (add_upper_bounds_from_estimated_nit): Same.
23058 (build_loop_iteration_domains): Same.
23059 (create_linear_expr_from_tree): Same.
23060 (add_condition_to_domain): Same.
23061 (pdr_add_memory_accesses): Same.
23063 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
23064 Jason Merrill <jason@redhat.com>
23066 * c-common.c (c_common_reswords): Add nullptr.
23067 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
23068 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
23069 (gen_type_die_with_usage): Likewise.
23070 * dbxout.c (dbxout_type): Likewise.
23071 * sdbout.c (plain_type_1): Likewise.
23073 2010-05-06 Jason Merrill <jason@redhat.com>
23075 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
23076 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
23078 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
23080 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
23081 stripping WITH_SIZE_EXPR.
23082 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
23085 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23087 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
23088 list of obsolete configurations.
23089 Disabled check for obsolete configurations.
23090 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
23091 Removed support for previous versions.
23092 * config/mips/iris.h: Removed.
23093 * config/mips/iris5.h: Removed.
23094 * config/mips/iris6.h: Merged old iris.h contents.
23095 (TARGET_IRIX): Removed.
23096 (DRIVER_SELF_SPECS): Removed mabi=32.
23097 (IDENT_ASM_OP): Removed undef.
23098 (STARTFILE_SPEC): Removed mabi=32.
23099 (ENDFILE_SPEC): Likewise.
23100 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
23101 (MACHINE_TYPE): Update for IRIX 6.5.
23102 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
23103 TARGET_IRIX by TARGET_IRIX6.
23104 (mips_file_start): Likewise.
23105 (mips_output_external): Remove IRIX 5/6 O32 support.
23106 (mips_output_function_prologue): Likewise.
23107 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
23109 (TARGET_CPU_CPP_BUILTINS): Likewise.
23110 (TARGET_IRIX): Removed.
23111 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
23112 (MULTILIB_DIRNAMES): Removed 32.
23113 (MULTILIB_OSDIRNAMES): Removed ../lib.
23114 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
23115 (Specific, mips-sgi-irix5): Document removal.
23116 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
23117 Remove references to older IRIX 6 releases and the O32 ABI.
23119 2010-05-06 Jakub Jelinek <jakub@redhat.com>
23122 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
23123 instead of DF_REF_REAL_REG.
23125 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
23128 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
23129 handling to still return true for x64 targets.
23131 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
23133 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
23135 2010-05-06 Jan Hubicka <jh@suse.cz>
23137 PR tree-optimization/43791
23138 * ipa-inline.c (update_caller_keys): Remove bogus
23139 disregard_inline_limits check.
23141 2010-05-06 Michael Matz <matz@suse.de>
23143 PR tree-optimization/43984
23144 * tree-ssa-pre.c (inserted_phi_names): Remove.
23145 (inserted_exprs): Change to bitmap.
23146 (create_expression_by_pieces): Set bits, don't append to vector.
23147 (insert_into_preds_of_block): Don't handle inserted_phi_names.
23148 (eliminate): Don't look at inserted_phi_names, remove deleted
23149 insns from inserted_exprs.
23150 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
23151 (init_pre, fini_pre): Allocate and free bitmaps.
23152 (execute_pre): Insert insns on edges before elimination.
23154 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
23156 * tree.c (initializer_zerop): Handle STRING_CST.
23158 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
23161 * doc/invoke.texi (Wimplicit): Document as C only.
23162 * opts.c (common_handle_option): Add argument kind.
23163 (handle_option): Rename as read_cmdline_option. Factor out code to...
23164 (handle_option): ... here. New.
23165 (handle_options): Rename as read_cmdline_options.
23166 (decode_options): Update call.
23167 (set_option): Use option index instead of option pointer. Classify
23168 diagnostics correctly.
23169 (enable_warning_as_error): Call handle_option.
23170 * opts.h (set_option): Update declaration.
23171 (handle_option): Declare.
23172 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
23173 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
23174 * c-opts.c (set_Wimplicit): Delete.
23175 (c_family_lang_mask): New static constant.
23176 (c_common_handle_option): Add argument kind. Use handle_option
23177 instead of set_Wimplicit.
23178 (c_common_post_options): warn_implicit and warn_implicit_int
23179 are disabled by default.
23180 * c-common.c (warn_implicit): Do not define here.
23181 * c-common.h (warn_implicit): Do not declare here.
23182 (c_common_handle_option): Update declaration.
23183 * lto-opts.c (lto_reissue_options): Update call to set_option.
23185 2010-05-06 Richard Guenther <rguenther@suse.de>
23187 PR tree-optimization/43571
23188 * domwalk.c (walk_dominator_tree): Walk the dominator
23189 sons in more optimal order.
23191 2010-05-06 Richard Guenther <rguenther@suse.de>
23193 PR tree-optimization/43934
23194 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
23195 (stmt_cost): Likewise.
23196 (extract_true_false_args_from_phi): New helper.
23197 (determine_max_movement): For PHI nodes verify we can hoist them
23198 and compute their cost.
23199 (determine_invariantness_stmt): Handle PHI nodes.
23200 (move_computations_stmt): Likewise. Hoist PHI nodes in
23201 if-converted form using COND_EXPRs.
23202 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
23203 (tree_ssa_lim): Likewise.
23204 * tree-flow.h (tree_ssa_lim): Adjust prototype.
23205 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
23207 2010-05-06 Richard Guenther <rguenther@suse.de>
23209 PR tree-optimization/43987
23210 * tree-ssa-structalias.c (could_have_pointers): For possibly
23211 address-taken variables force pointers to be recorded.
23212 (create_variable_info_for_1): Likewise.
23213 (push_fields_onto_fieldstack): Pass in wheter all fields
23214 must have pointers.
23215 (find_func_aliases): Query types instead of vars whether
23216 they contain pointers where appropriate.
23218 2010-05-06 Jan Hubicka <jh@suse.cz>
23220 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
23221 (record_reference, mark_address, mark_load, mark_store): Record
23223 (record_references_in_initializer): Update call of record_references.
23224 (rebuild_cgraph_edges): Remove all references before rebuiding.
23225 * cgraph.c (cgraph_create_node): Clear ref list.
23226 (cgraph_remove_node): Remove references.
23227 (dump_cgraph_node): Dump references.
23228 (cgraph_clone_node): Clone references.
23229 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
23230 (struct cgraph_node, varpool_node): Add ref_lst.
23231 * ipa-ref.c: New file.
23232 * ipa-ref.h: New file.
23233 * ipa-ref-inline.h: New file.
23234 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
23235 (referenced_from_other_partition_p): New function.
23236 (lto_output_varpool_node): Take set arugment; call
23237 referenced_from_other_partition.
23238 (lto_output_ref): New.
23239 (add_references): New.
23240 (output_refs): New.
23241 (output_cgraph): Compute boundary based on references; output refs.
23242 (output_varpool): Accept cgraph_node_set argument.
23245 (input_cgraph): Call input_refs.
23246 * lto-section-in.c (lto_section_name): Add refs.
23247 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
23248 (ipa-ref.o): New file.
23249 * varpool.c (varpool_node): Clear ipa ref list.
23250 (varpool_remove_node): Remove references.
23251 (dump_varpool_node): Dump references.
23252 (varpool_assemble_decl): Only compile finalized ones.
23253 (varpool_extra_name_alias): Initialize ref list.
23254 * lto-streamer.c (lto-get_section_name): Add .refs section.
23255 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
23256 (referenced_from_other_partition_p): Declared.
23258 2010-05-06 Ira Rosen <irar@il.ibm.com>
23260 PR tree-optimization/43901
23261 * tree-vect-stmts.c (vectorizable_call): Assert that vector
23262 type is not NULL if it's transformation phase, and return
23263 FALSE if it's analysis.
23264 (vectorizable_conversion, vectorizable_operation,
23265 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
23267 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
23269 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23271 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23273 * config/mips/mips-protos.h
23274 (mips_small_register_classes_for_mode_p): Delete prototype.
23276 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
23278 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
23279 * config/arm/arm.c (multiple_operation_profitable_p,
23280 compute_offset_order): New static functions.
23281 (load_multiple_sequence, store_multiple_sequence): Use them.
23282 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
23283 memory offsets, not register numbers.
23284 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
23286 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
23288 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
23289 (get_pending_sizes, put_pending_size, put_pending_sizes):
23290 Update the uses of pending_sizes.
23291 * c-decl.c (store_parm_decls): Likewise.
23292 * c-tree.h (struct c_arg_info): Likewise.
23293 * tree.h: Update the prototype for get_pending_sizes and
23296 2010-05-05 Jason Merrill <jason@redhat.com>
23299 * c-common.c (handle_aligned_attribute): Respect
23300 ATTR_FLAG_TYPE_IN_PLACE.
23303 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
23304 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23305 (TARGET_INITIALIZER): Use it.
23306 * c-common.c (attribute_takes_identifier_p): Call it.
23307 * c-common.h: Update prototype.
23308 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
23309 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23311 2010-05-05 Jakub Jelinek <jakub@redhat.com>
23314 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
23315 DW_ID_down_case for Fortran compilation units.
23317 2010-05-05 Jan Hubicka <jh@suse.cz>
23319 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
23322 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
23324 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
23325 a variable-sized RESULT_DECL.
23327 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
23329 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
23331 2010-05-05 Jason Merrill <jason@redhat.com>
23334 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
23336 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
23338 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
23339 Jakub Jelinek <jakub@redhat.com>
23342 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
23343 (dead_debug_init, dead_debug_finish): New functions.
23344 (dead_debug_add, dead_debug_insert_before): Likewise.
23345 (df_note_bb_compute): Initialize a dead_debug object, add dead
23346 debug uses to it, insert debug bind insns before death insns,
23347 reset debug insns that refer to pending uses at the end.
23348 * rtl.h (make_debug_expr_from_rtl): New prototype.
23349 * varasm.c (make_debug_expr_from_rtl): New function.
23351 2010-05-05 Jan Hubicka <jh@suse.cz>
23353 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
23354 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
23355 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
23356 lto_varpool_encoder_deref, lto_varpool_encoder_size,
23357 lto_varpool_encoder_encode_initializer_p,
23358 lto_set_varpool_encoder_encode_initializer): New functions.
23359 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
23360 call output_varpool.
23361 (input_varpool_node): Do not always set analyzed.
23362 (input_cgraph_1): Return vector of cgraph nodes.
23363 (input_varpool_1): Return vector of varpools.
23364 (input_cgraph): Free the vectors.
23365 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23366 output only initializers needed.
23367 (lto_output): Only call output_cgraph.
23368 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
23369 * lto-section-out.c (lto_new_out_decl_state): Initialize
23370 state->varpool_node_encoder.
23371 * lto-streamer.h (lto_varpool_encoder_d): New.
23372 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
23373 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
23374 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
23375 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
23376 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
23378 (output_varpool, input_varpool): Remove declarations.
23380 2010-05-05 Jan Hubicka <jh@suse.cz>
23382 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
23383 with body can prevail.
23385 2010-05-05 Jan Hubicka <jh@suse.cz>
23387 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
23390 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23392 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
23394 * gengtype.h (erro_at_line): Constify pos argument.
23396 * gengtype.c: Include hashtab.h.
23397 (enum gc_used): Document GC_MAYBE_POINTED_TO.
23398 (error_at_line): Constify pos argument.
23399 (do_typedef): Initialize p->opt field.
23400 (get_file_gtfilename): Fix comment typo.
23401 (struct walk_type_data): Constify line field.
23402 (get_output_file_for_structure): New function.
23403 (write_local_func_for_structure): Constify orig_s argument.
23404 Use get_output_file_for_structure.
23405 (write_func_for_structure): Use get_output_file_for_structure.
23406 (INDENT): New define.
23407 (dump_pair, dump_type, dump_type_list, dump_typekind)
23408 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
23409 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
23411 (seen_types): New variable.
23412 (main): New variable do_dump. Process "-d" command line option.
23413 Call dump_everything if dump requested.
23415 2010-05-05 Jakub Jelinek <jakub@redhat.com>
23417 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
23418 in a temporary instead of invoking the macro multiple times.
23419 (track_expr_p): Likewise.
23421 2010-05-04 Neil Vachharajani <nvachhar@google.com>
23423 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
23425 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
23426 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
23427 conditions for printing notes.
23428 * common.opt (-Wcoverage-mismatch): Allow negative, default to
23429 true, update documentation.
23430 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
23432 2010-05-04 Jakub Jelinek <jakub@redhat.com>
23435 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
23438 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23441 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
23442 (*sse_prologue_save_insn1): Likewise.
23443 (SSE prologue save splitter): Likewise.
23445 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
23447 * tree.c (free_lang_data_in_one_sizepos): New inline function.
23448 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
23449 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
23450 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
23451 all decls. Call it on DECL_FIELD_OFFSET of fields.
23452 (find_decls_types_r): Follow DECL_VALUE_EXPR.
23453 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
23455 2010-05-04 Martin Jambor <mjambor@suse.cz>
23457 * tree-sra.c (build_access_from_expr_1): The first parameter type
23458 changed to simple tree.
23459 (build_access_from_expr): Likewise, gsi parameter was eliminated.
23460 (scan_assign_result): Renamed to assignment_mod_result, enum elements
23462 (build_accesses_from_assign): Removed all parameters except for a
23463 simple gimple statement. Now returns a simple bool.
23464 (scan_function): All non-analysis parts moved to separate functions
23465 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
23466 parameters and updated both callers.
23467 (sra_modify_expr): Removed parameter data.
23468 (sra_modify_function_body): New function.
23469 (perform_intra_sra): Call sra_modify_function_body to modify the
23471 (replace_removed_params_ssa_names): Parameter data changed into
23472 adjustments vector.
23473 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
23474 changed the parameter dont_convert to convert with the opposite
23476 (sra_ipa_modify_assign): Parameter data changed into adjustments
23477 vector, return value changed to bool.
23478 (ipa_sra_modify_function_body): New function.
23479 (sra_ipa_reset_debug_stmts): Updated a comment.
23480 (modify_function): Use ipa_sra_modify_function_body to modify function
23483 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23485 PR middle-end/43671
23486 * alias.c (true_dependence): Handle the same VALUE in x and mem.
23487 (canon_true_dependence): Likewise.
23488 (write_dependence_p): Likewise.
23490 2010-05-04 Jan Hubicka <jh@suse.cz>
23492 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
23493 * cgraphbuild.c: Include ipa-utils.h
23494 (record_reference_ctx): New struct.
23495 (record_reference): Simplify to work on initializers; not statements.
23496 (mark_address, mark_load, mark_store): New.
23497 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23498 walk PHI nodes too.
23499 (record_references_in_initializer): Update use of record_reference.
23500 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23501 walk PHI nodes too.
23503 2010-05-04 Jan Hubicka <jh@suse.cz>
23505 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
23506 node will be removed anyway.
23507 (lto_varpool_replace_node): Allow also unanalyzed nodes;
23508 relink aliases of node into prevailing node.
23509 * varpool.c (varpool_remove_node): Remove aliases properly;
23510 when removing node, remove all its aliases too; remove DECL_INITIAL
23511 of removed node; ggc_free the varpool node.
23513 2010-05-04 Richard Guenther <rguenther@suse.de>
23515 PR tree-optimization/43879
23516 * tree-ssa-structalias.c (alias_get_name): Use
23517 DECL_ASSEMBLER_NAME if available.
23518 (create_function_info_for): Return the varinfo node.
23519 (ipa_pta_execute): Associate same-body aliases and extra names
23520 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
23522 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23524 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
23526 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
23529 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
23530 only if HONOR_REG_ALLOC_ORDER is not defined.
23532 2010-05-04 Richard Guenther <rguenther@suse.de>
23534 PR tree-optimization/43949
23535 * tree-vrp.c (extract_range_from_binary_expr): Only handle
23538 2010-04-26 Jason Merrill <jason@redhat.com>
23540 * c.opt (-fstrict-enums): New.
23541 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
23543 2010-05-03 David Ung <davidu@mips.com>
23544 James E. Wilson <wilson@codesourcery.com>
23546 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
23547 emit the trap instruction before the divide for TUNE_74K.
23549 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
23551 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
23552 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
23553 based on the above, for new target hook.
23555 * hooks.c (hook_bool_mode_true): New generic hook.
23556 * hooks.h (hook_bool_mode_true): Add prototype.
23558 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
23560 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
23561 target hook, set to hook_bool_mode_false.
23562 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
23563 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
23564 with targetm.small_register_classes_for_mode_p.
23565 (find_reusable_reload): Likewise.
23566 (combine_reloads): Likewise.
23567 * reload1.c (reload_as_needed): Likewise.
23568 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
23569 * ifcvt.c (noce_process_if_block, check_cond_move_block,
23570 dead_or_predicable): Likewise.
23571 * regmove.c (optimize_reg_copy_1): Likewise.
23572 * calls.c (prepare_call_address): Likewise.
23573 (precompute_register_parameters): Likewise.
23575 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
23577 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
23578 implementation of the hook that considers all register classes
23579 small except for SH64.
23580 (sh_override_options): Use the new hook.
23581 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
23584 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
23586 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
23587 implementation of the hook that considers all register classes
23589 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
23592 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
23594 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
23595 implementation of the hook that considers all register classes
23597 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
23600 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
23602 * config/m32c/m32c.h: Likewise.
23603 * config/pdp11/pdp11.h: Likewise.
23604 * config/avr/avr.h: Likewise.
23605 * config/xtensa/xtensa.h: Likewise.
23606 * config/m68hc11/m68hc11.h: Likewise.
23607 * config/mn10300/mn10300.h: Likewise.
23608 * config/mcore/mcore.h: Likewise.
23609 * config/h8300/h8300.h: Likewise.
23610 * config/bfin/bfin.h: Likewise.
23612 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
23613 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
23615 2010-05-03 Anatoly Sokolov <aesok@post.ru>
23617 * double-int.h (tree_to_double_int): Remove macro.
23618 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
23619 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23620 (tree_to_double_int): New function.
23621 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
23623 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23625 2010-05-03 Richard Guenther <rguenther@suse.de>
23627 PR tree-optimization/43971
23628 * tree-ssa-structalias.c (get_constraint_for_1): Fix
23629 constraints in the !flag_delete_null_pointer_checks case.
23631 2010-05-03 Jakub Jelinek <jakub@redhat.com>
23634 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
23635 result mode matches original rtl mode.
23637 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
23640 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
23642 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23644 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
23645 when processing flag options.
23647 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23649 * gcov-iov.c (main): Change format string placeholder
23650 from %#08x to 0x%08x.
23651 * genchecksum.c (dosum): Change format string placeholder
23652 from %#02x to 0x%02x.
23654 2010-05-02 Richard Guenther <rguenther@suse.de>
23656 PR tree-optimization/43879
23657 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
23659 2010-05-02 Bruno Haible <bruno@clisp.org>
23661 * doc/extend.texi (Function Attributes): Fix a typo.
23663 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23666 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
23667 placeholder from 0x%x to %#x.
23668 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23669 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23670 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23671 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23672 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23673 * config/i386/i386.c (ix86_target_string): Ditto.
23674 * config/i386/i386.c (output_pic_addr_const): Ditto.
23675 (print_operand): Ditto.
23677 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23679 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
23680 placeholder from 0x%x to %#x.
23681 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
23682 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
23683 (ASM_OUTPUT_DEBUG_DATA): Ditto.
23684 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
23685 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
23686 * optc-gen.awk: Ditto.
23687 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
23688 (HOST_WIDE_INT_PRINT_HEX): Ditto.
23689 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
23690 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23692 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23694 * target.h (struct calls): Add function_value_regno_p field.
23695 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
23696 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
23697 * targhooks.c (default_function_value_regno_p): New function.
23698 * targhooks.h (default_function_value_regno_p): Declare function.
23699 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
23700 * builtins.c. (apply_result_size): (Ditto.).
23701 * combine.c. (likely_spilled_retval_p): (Ditto.).
23702 * mode-switching.c. Include 'target.h'.
23703 (create_pre_exit): Use function_value_regno_p hook.
23704 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
23705 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
23706 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
23708 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
23709 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
23710 (ix86_function_value_regno_p): Declare as static, change argument
23711 type to const unsigned int.
23712 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
23714 2010-05-01 Richard Guenther <rguenther@suse.de>
23716 PR tree-optimization/43949
23717 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
23719 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
23721 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23723 * rtl.h (CONST_DOUBLE_P): Define.
23724 (rtx_to_double_int): Declare.
23725 * emit-rtl.c (rtx_to_double_int): New function.
23726 * dwarf2out.c (insert_double): New function.
23727 (loc_descriptor, add_const_value_attribute): Clean up, use
23728 rtx_to_double_int and insert_double functions.
23730 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
23732 * doc/extend.texi (Inline): Add missing return keyword to examples.
23733 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
23736 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
23738 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
23739 the variable part of the offset as well. Use highest_pow2_factor for
23740 all alignment checks.
23742 2010-04-30 Richard Guenther <rguenther@suse.de>
23744 PR tree-optimization/43879
23745 * tree-ssa-structalias.c (type_could_have_pointers): Functions
23748 2010-04-30 Jan Hubicka <jh@suse.cz>
23750 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
23752 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
23754 2010-04-30 Jan Hubicka <jh@suse.cz>
23756 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
23758 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
23759 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
23760 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
23761 cgraph_node_set_needs_ltrans_p): Remove.
23763 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23765 * sdbout.c: Include vec.h, do not include varray.h.
23766 (deferred_global_decls, sdbout_global_decl,
23767 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
23768 * toplev.c: Do not include varray.h.
23769 (dump_memory_report): Do not dump VARRAY statistics.
23770 * gengtype.c (open_base_file): Ignore varray.h.
23771 * Makefile.in: Update for abovementioned changes.
23772 Remove all traces of varray.c and varray.h.
23773 * varray.c: Remove file.
23774 * varray.h: Remove file.
23776 2010-04-30 Jan Hubicka <jh@suse.cz>
23778 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
23781 2010-04-30 Jan Hubicka <jh@suse.cz>
23783 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
23786 2010-04-30 Richard Guenther <rguenther@suse.de>
23788 * tree-ssa-structalias.c (get_constraint_for_1): Generate
23789 constraints for CONSTRUCTOR.
23791 2010-04-30 Richard Guenther <rguenther@suse.de>
23794 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
23795 first after all lowering passes.
23797 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23799 * toplev.c: Include varray.h for statistics dumping.
23800 * tree.h: Do not declare varray_head_tag.
23801 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
23802 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
23803 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
23804 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
23805 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
23806 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
23807 c-common.c, c-common.h, reg-stack.c, basic-block.h,
23808 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
23810 * Makefile.in: Update for abovementioned changes.
23812 2010-04-30 Jakub Jelinek <jakub@redhat.com>
23815 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
23817 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23819 * config/picochip/picochip.c (picochip_legitimize_address): Define.
23820 Use this function to do machine-specific conversion.
23821 (picochip_legitimize_reload_address): Likewise.
23822 (picochip_legitimate_address_p): Check valid base register only if
23824 (picochip_check_conditional_copy): Check for modw only if opnd is
23826 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
23827 to call the function in c.
23828 * config/picochip/picochip-protos.h
23829 (picochip_legitimize_reload_address): Define.
23830 * config/picochip/picochip.md (supported_compare1): Define.
23832 2010-04-30 Jan Hubicka <jh@suse.cz>
23834 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
23835 (cgraph_global_info): Remove inlined.
23836 (LTO_cgraph_tag_names): Remove.
23837 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
23838 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
23839 simplify cgraph tags and document.
23840 (lto_output_node): Use only LTO_cgraph_unavail_node and
23841 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
23842 for_functions_valid, global info, process and output flags.
23843 (input_overwrite_node): Initialize estimated stack size and
23844 estimated growth. Do not read flags we no longer store.
23845 (input_node): Likewise do not read info no longer stored.
23846 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
23849 2010-04-30 Richard Guenther <rguenther@suse.de>
23851 PR tree-optimization/43879
23852 * tree-ssa-structalias.c (get_constraint_for_1): Properly
23853 handle non-zero initializers.
23855 2010-04-30 Richard Guenther <rguenther@suse.de>
23857 * builtins.c (fold_builtin_1): Delete free (0).
23859 2010-04-29 Jan Hubicka <jh@suse.cz>
23861 * gengtype.c (open_base_files): Add lto-streamer.h
23862 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
23863 (pass_ipa_cp): GGC collect.
23864 * toplev. (compile_file): Do not output symbols.
23865 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
23866 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
23867 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
23868 * lto-section-in.c: Include ggc.h
23869 (lto_new_in_decl_state): Alloc in GGC.
23870 (lto_delete_in_decl_state): Likewise.
23871 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
23874 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23877 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
23878 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
23879 (HONOR_REG_ALLOC_ORDER): Describe new macro.
23880 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
23881 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
23882 account only if HONOR_REG_ALLOC_ORDER is not defined.
23883 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
23884 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
23886 2010-04-29 Jon Grant <04@jguk.org>
23888 * collect2.c (vflag): Change type from int to bool.
23890 (helpflag): New global bool.
23891 (main): Set vflag and debug with boolean, not integer truth values.
23892 Accept new "--help" option and output usage text if found.
23893 * collect2.h (vflag): Update prototype.
23896 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23899 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
23901 2010-04-29 Richard Guenther <rguenther@suse.de>
23904 * plugin.h (invoke_plugin_callbacks): Annotate arguments
23905 with ATTRIBUTE_UNUSED.
23907 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23910 * config/i386/i386.c (get_some_local_dynamic_name): Replace
23911 INSN_P with NONDEBUG_INSN_P.
23912 (distance_non_agu_define): Likewise.
23913 (distance_agu_use): Likewise.
23915 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23917 From Dominique d'Humieres <dominiq@lps.ens.fr>
23919 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
23922 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
23924 * plugin.h (invoke_plugin_callbacks): New inline function.
23925 * plugin.c (flag_plugin_added): New global flag.
23926 (add_new_plugin): Initialize above flag.
23927 (invoke_plugin_callbacks): Rename to ...
23928 (invoke_plugin_callbacks_full): ... this.
23930 2010-04-28 Jan Hubicka <jh@suse.cz>
23932 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
23933 (lto_varpool_replace_node): New.
23934 (lto_symtab_resolve_symbols): Resolve varpool nodes.
23935 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
23936 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
23937 * cgraph.h (varpool_node_ptr): New type.
23938 (varpool_node_ptr): New vector.
23939 (varpool_node_set_def): New structure.
23940 (varpool_node_set): New type.
23941 (varpool_node_set): New vector.
23942 (varpool_node_set_element_def): New structure.
23943 (varpool_node_set_element, const_varpool_node_set_element): New types.
23944 (varpool_node_set_iterator): New type.
23945 (varpool_node): Add prev pointers, add used_from_other_partition,
23946 in_other_partition.
23947 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
23948 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
23949 varpool_get_node, varpool_remove_node): Declare.
23950 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
23951 varpool_node_set_size): New inlines.
23952 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
23953 * tree-pass.h (varpool_node_set_def): Forward declare.
23954 (ipa_opt_pass_d): Summary writting takes vnode sets too.
23955 (ipa_write_optimization_summaries): Update prototype.
23956 * ipa-cp.c (ipcp_write_summary): Update.
23957 * ipa-reference.c (ipa_reference_write_summary): Update.
23958 * lto-cgraph.c (lto_output_varpool_node): New static function.
23959 (output_varpool): New function.
23960 (input_varpool_node): New static function.
23961 (input_varpool_1): New function.
23962 (input_cgraph): Input varpool.
23963 * ipa-pure-const.c (pure_const_write_summary): Update.
23964 * lto-streamer-out.c (lto_output): Update, output varpool too.
23965 (write_global_stream): Kill WPA hack.
23966 (produce_asm_for_decls): Update.
23967 (output_alias_pair_p): Handle variables.
23968 (output_unreferenced_globals): Output only needed partition of varpool.
23969 * ipa-inline.c (inline_write_summary): Update.
23970 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
23972 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
23973 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
23974 varpool_node_set_new, varpool_node_set_add,
23975 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
23976 debug_varpool_node_set): New functions.
23977 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
23978 (execute_one_pass): Process new decls too.
23979 (ipa_write_summaries_2): Pass around vsets.
23980 (ipa_write_summaries_1): Likewise.
23981 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
23983 (ipa_write_optimization_summaries_1): Pass around vsets.
23984 (ipa_write_optimization_summaries): Likewise.
23985 * varpool.c (varpool_get_node): New.
23986 (varpool_node): Update doubly linked lists.
23987 (varpool_remove_node): New.
23988 (dump_varpool_node): More dumping.
23989 (varpool_enqueue_needed_node): Update doubly linked lists.
23990 (decide_is_variable_needed): Kill ltrans hack.
23991 (varpool_finalize_decl): Kill lto hack.
23992 (varpool_assemble_decl): Skip decls in other partitions.
23993 (varpool_assemble_pending_decls): Update doubly linkes lists.
23994 (varpool_empty_needed_queue): Likewise.
23995 (varpool_extra_name_alias): Likewise.
23996 * lto-streamer.c (lto_get_section_name): Add vars section.
23997 * lto-streamer.h (lto_section_type): Update.
23998 (output_varpool, input_varpool): Declare.
24000 2010-04-28 Mike Stump <mikestump@comcast.net>
24002 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
24004 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24006 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
24007 record or union type with RECORD_OR_UNION_TYPE_P predicate.
24008 (lto_input_ts_type_tree_pointers): Likewise.
24009 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
24010 (lto_output_ts_type_tree_pointers): Likewise.
24012 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24014 Uniquization of constants at the Tree level
24015 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
24016 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
24018 (tree_output_constant_def): Declare.
24019 * gimplify.c (gimplify_init_constructor): When using block copy, first
24020 uniquize the constant constructor on the RHS.
24021 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
24022 DECL_IN_CONSTANT_POOL flag.
24023 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
24024 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
24026 (assemble_variable): Deal with symbols belonging to the tree constant
24028 (get_constant_section): Add ALIGN parameter and simplify.
24029 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
24030 (assemble_constant_contents): Use the expression of the VAR_DECL.
24031 (output_constant_def_contents): Use the alignment of the VAR_DECL.
24032 (tree_output_constant_def): New global function.
24033 (mark_constant): Use the expression of the VAR_DECL.
24034 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
24036 (output_object_block): Likewise and assemble the expression.
24038 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24040 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
24041 hash_tree, eq_tree): New tree hash table.
24042 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
24043 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
24044 lto_orig_address_remove): Reimplement.
24046 2010-04-28 Xinliang David Li <davidxl@google.com>
24049 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
24050 (compute_uninit_opnds_pos): New function.
24051 (is_non_loop_exit_postdominating): New function.
24052 (compute_control_dep_chain): New function.
24053 (find_pdom): New function.
24054 (convert_control_dep_chain_into_preds): New function.
24055 (find_predicates): New function.
24056 (find_control_equiv_block): New function.
24057 (collect_phi_def_edges): New function.
24058 (find_def_preds): New function.
24059 (find_dom): New function.
24060 (dump_predicates): New function.
24061 (get_cmp_code): New function.
24062 (is_value_included_in): New function.
24063 (find_matching_predicate_in_rest_chains): New function.
24064 (use_pred_not_overlap_with_undef_path_pred): New function.
24065 (is_use_properly_guarded): New function.
24066 (normalize_cond_1): New function.
24067 (is_and_or_or): New function.
24068 (normalize_cond): New function.
24069 (is_gcond_subset_of): New function.
24070 (is_subset_of_any): New function.
24071 (is_or_set_subset_of): New function.
24072 (is_and_set_subset_of): New function.
24073 (is_norm_cond_subset_of): New function.
24074 (is_pred_expr_subset_of): New function.
24075 (is_pred_chain_subset_of): New function.
24076 (is_included_in): New function.
24077 (is_superset_of): New function.
24078 (find_uninit_use): New function.
24079 (warn_uninitialized_phi): New function.
24080 (compute_possibly_undefined_names): New function.
24081 (ssa_undefined_value_p): New function.
24082 (execute_late_warn_uninitialized): New function.
24083 * tree-ssa.c (ssa_undefined_value_p): Removed.
24084 (warn_uninit): Changed to extern.
24085 (warn_uninitialized_phi): Removed.
24086 (warn_uninitialized_vars): Changed to extern.
24087 (execute_late_warn_uninitialized): Removed
24088 * tree-flow.h: Add new prototypes.
24089 * timevar.def: Add new time variable.
24090 * Makefile.in: Add new build file.
24092 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
24094 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
24097 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24100 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
24102 2010-04-28 Martin Jambor <mjambor@suse.cz>
24104 * cgraph.h (struct cgraph_node): New field indirect_calls.
24105 (struct cgraph_indirect_call_info): New type.
24106 (struct cgraph_edge): Removed field indirect_call. New fields
24107 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
24108 (cgraph_create_indirect_edge): Declare.
24109 (cgraph_make_edge_direct): Likewise.
24110 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
24111 * ipa-prop.h (struct ipa_param_call_note): Removed.
24112 (struct ipa_node_params): Removed field param_calls.
24113 (ipa_create_all_structures_for_iinln): Declare.
24114 * cgraph.c: Described indirect edges and uids in initial comment.
24115 (cgraph_add_edge_to_call_site_hash): New function.
24116 (cgraph_edge): Search also among the indirect edges, use
24117 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
24118 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
24119 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
24121 (initialize_inline_failed): Assign a reason to indirect edges.
24122 (cgraph_create_edge_1): New function.
24123 (cgraph_create_edge): Moved some functionality to
24124 cgraph_create_edge_1.
24125 (cgraph_create_indirect_edge): New function.
24126 (cgraph_edge_remove_callee): Add an assert checking for
24128 (cgraph_edge_remove_caller): Special-case indirect edges.
24129 (cgraph_remove_edge): Likewise.
24130 (cgraph_set_edge_callee): New function.
24131 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
24132 (cgraph_make_edge_direct): New function.
24133 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
24134 the declaration of the call statement matches.
24135 (cgraph_node_remove_callees): Special-case indirect edges.
24136 (cgraph_clone_edge): Likewise.
24137 (cgraph_clone_node): Clone also the indirect edges.
24138 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
24139 indirect_call, dump count of indirect_calls edges.
24140 * ipa-prop.c (iinlining_processed_edges): New variable.
24141 (ipa_note_param_call): Create indirect edges instead of
24142 creating notes. New parameter node.
24143 (ipa_analyze_call_uses): New parameter node, pass it on to
24144 ipa_note_param_call.
24145 (ipa_analyze_stmt_uses): Likewise.
24146 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
24147 (print_edge_addition_message): Work on edges rather than on notes.
24148 (update_call_notes_after_inlining): Likewise, renamed to
24149 update_indirect_edges_after_inlining.
24150 (ipa_create_all_structures_for_iinln): New function.
24151 (ipa_free_node_params_substructures): Do not free notes.
24152 (ipa_edge_duplication_hook): Propagate bits within
24153 iinlining_processed_edges bitmap.
24154 (ipa_node_duplication_hook): Do not duplicate notes.
24155 (free_all_ipa_structures_after_ipa_cp): Renamed to
24156 ipa_free_all_structures_after_ipa_cp.
24157 (free_all_ipa_structures_after_iinln): Renamed to
24158 ipa_free_all_structures_after_iinln.
24159 (ipa_write_param_call_note): Removed.
24160 (ipa_read_param_call_note): Removed.
24161 (ipa_write_indirect_edge_info): New function.
24162 (ipa_read_indirect_edge_info): Likewise.
24163 (ipa_write_node_info): Do not stream notes, do stream information
24165 (ipa_read_node_info): Likewise.
24166 (lto_ipa_fixup_call_notes): Removed.
24167 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
24168 * ipa-inline.c (pass_ipa_inline): Likewise.
24169 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
24170 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
24171 * tree-inline.c (copy_bb): Removed an unnecessary double check for
24173 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
24175 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
24176 (output_cgraph): Stream also indirect edges.
24177 (lto_output_edge): Added capability to stream indirect edges.
24178 (input_edge): Likewise.
24179 (input_cgraph_1): Likewise.
24180 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
24183 2010-04-28 Richard Guenther <rguenther@suse.de>
24185 PR tree-optimization/43879
24186 PR tree-optimization/43909
24187 * tree-ssa-structalias.c (struct variable_info): Add
24188 only_restrict_pointers flag.
24189 (new_var_info): Initialize it. Increment stats.total_vars here.
24190 (create_function_info_for): Do not increment stats.total_vars here.
24191 (get_function_part_constraint): Fix build with C++.
24192 (insert_into_field_list): Remove.
24193 (push_fields_onto_fieldstack): Properly merge fields.
24194 (create_variable_info_for): Split and simplify.
24195 (create_variable_info_for_1): New piece.
24196 (intra_create_variable_infos): Properly make restrict constraints
24199 2010-04-28 Richard Guenther <rguenther@suse.de>
24202 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
24204 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
24205 Jan Hubicka <hubicka@ucw.cz>
24207 * doc/invoke.texi (-Wsuggest-attribute=const,
24208 -Wsuggest-attribute=pure): Document.
24209 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
24210 (function_always_visible_to_compiler_p,
24211 suggest_attribute, warn_function_pure, warn_function_const):
24213 (check_call): Improve debug info.
24214 (analyze_function): Do not check availability.
24215 (add_new_function): Check availability.
24216 (propagate): Output warnings.
24217 (skip_function_for_local_pure_const): New function.
24218 (local_pure_const): Use it; output warnings.
24219 * common.opt (Wsuggest-attribute=const,
24220 Wsuggest-attribute=pure): New.
24222 2010-04-27 Jakub Jelinek <jakub@redhat.com>
24224 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
24225 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
24226 or DW_CFA_def_cfa_offset{,_sf}.
24228 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
24230 * tree.h: Fix truncated long macros.
24232 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
24234 * collect2.c (TARGET_64BIT): Redefine to target's default.
24235 * tlink.c: Likewise.
24236 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
24237 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
24238 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
24239 for underscoring __USER_LABEL_PREFIX__.
24240 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
24241 (SUB_LINK_ENTRY32): New.
24242 (SUB_LINK_ENTRY64): New.
24243 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
24244 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
24245 (SUB_LINK_ENTRY64): New.
24246 (SUB_LINK_ENTRY): New.
24247 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
24248 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
24249 x64 target is choosen.
24250 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
24251 * configure: Regenerated.
24252 * configure.ac (leading-mingw64-underscores): Option added.
24254 2010-04-27 Jan Hubicka <jh@suse.cz>
24256 * doc/invoke.texi (-fipa-profile): Document.
24257 * opts.c (decode_options): Enable ipa-profile at -O1.
24258 * timevar.def (TV_IPA_PROFILE): Define.
24259 * common.opt (fipa-profile): Add.
24260 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
24262 (cgraph_propagate_frequency): Handle only local ones.
24263 * tree-pass.h (pass_ipa_profile): Declare.
24264 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
24265 (pass_ipa_profile): Use TV_IPA_PROFILE.
24266 * ipa.c (ipa_profile): New function.
24267 (gate_ipa_profile): Likewise.
24268 (pass_ipa_profile): New global variable.
24269 * passes.c (pass_ipa_profile): New.
24271 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
24273 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
24275 2010-04-27 Martin Jambor <mjambor@suse.cz>
24277 PR middle-end/43812
24278 * ipa.c (dissolve_same_comdat_group_list): New function.
24279 (function_and_variable_visibility): Call
24280 dissolve_same_comdat_group_list when comdat group contains external or
24282 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
24283 lists are circular and that they contain only DECL_ONE_ONLY nodes.
24285 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
24287 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
24288 (const_hash_1) <VECTOR_CST>: New case.
24289 (compare_constant) <VECTOR_CST>: Likewise.
24290 <ADDR_EXPR>: Deal with LABEL_REFs.
24291 (copy_constant) <VECTOR_CST>: New case.
24293 2010-04-27 Jan Hubicka <jh@suse.cz>
24295 * cgraph.c (cgraph_propagate_frequency): New function.
24296 * cgraph.h (cgraph_propagate_frequency): Declare.
24297 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
24298 cgraph_propagate_frequency.
24300 2010-04-27 Jakub Jelinek <jakub@redhat.com>
24302 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
24304 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
24307 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
24308 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
24309 here to determine which regs to push and how much stack to reserve.
24311 2010-04-27 Jie Zhang <jie@codesourcery.com>
24313 * doc/gimple.texi (gimple_statement_with_ops): Remove
24314 addresses_taken field.
24315 (gimple_statement_with_memory_ops): Likewise.
24317 2010-04-27 Jan Hubicka <jh@suse.cz>
24319 * tree-inline.c (eni_inlining_weights): Remove.
24320 (estimate_num_insns): Special case more builtins.
24322 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
24325 * c-typeck.c (build_binary_op): Move forward check for comparison
24326 pointer with null pointer constant and adjust the diagnostic message.
24328 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
24331 * configure.ac (gcc_cv_as_section_has_align): Set if installed
24332 binutils supports extended .section directive needed by LTO, or
24333 warn if older binutils found.
24334 (LTO_BINARY_READER): New AC_SUBST'd variable.
24335 (LTO_USE_LIBELF): Likewise.
24336 * config.gcc (lto_binary_reader): New target-specific configure
24338 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
24339 (LTO_USE_LIBELF): Likewise.
24340 * configure: Regenerate.
24342 * collect2.c (is_elf): Rename from this ...
24343 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
24344 object files in addition to ELF-formatted ones.
24345 (scan_prog_file): Caller updated. Also allow for LTO info marker
24346 symbol to be prefixed or not by an extra underscore.
24348 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
24349 * config/i386/winnt.c: Also #include lto-streamer.h
24350 (i386_pe_asm_named_section): Specify 1-byte section alignment for
24351 LTO named sections.
24352 (i386_pe_asm_output_aligned_decl_common): Add comment.
24353 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
24355 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
24358 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
24359 Add missing earlyclobber for second alternative.
24361 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
24363 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
24364 bits for artificial defs at the top of the block.
24365 * fwprop.c (single_def_use_enter_block): Don't call it.
24367 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
24370 * configure.ac: Use "$gcc_cv_nm -g" on darwin
24371 instead of "$gcc_cv_objdump -T".
24372 Use "-undefined dynamic_lookup" on darwin.
24373 * configure: Regenerate.
24375 2010-04-26 Jakub Jelinek <jakub@redhat.com>
24378 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
24380 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
24382 * c-parser.c (struct c_token): Move location field up.
24383 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
24384 (struct c_declspecs): Convert typespec_word, storage_class, and
24385 default_int_p into bitfields.
24386 (struct c_declarator): Move loc field up.
24388 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
24390 * cfgloop.h (struct loop): Move can_be_parallel field up.
24391 * ipa-prop.h (struct ip_node_params): Move bitfields up.
24392 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
24394 (struct iv_cand): Convert pos field into a bitfield.
24395 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
24397 (struct _stmt_vec_info): Shuffle fields for better packing.
24399 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
24401 * varasm.c (IN_NAMED_SECTION): Remove guard.
24402 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
24403 (IN_NAMED_SECTION_P): ...this.
24404 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
24405 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
24407 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
24409 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
24410 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
24411 of shadowing it. Fix comments.
24413 2010-04-26 Jan Hubicka <jh@suse.cz>
24415 * cgraph.c (cgraph_create_node): Set node frequency to normal.
24416 (cgraph_clone_node): Copy function frequency.
24417 * cgraph.h (node_frequency): New enum
24418 (struct cgraph_node): Add.
24419 * final.c (rest_of_clean_state): Update.
24420 * lto-cgraph.c (lto_output_node): Output node frequency.
24421 (input_overwrite_node): Input node frequency.
24422 * tre-ssa-loop-ivopts (computation_cost): Update.
24423 * lto-streamer-out.c (output_function): Do not output function
24425 * predict.c (maybe_hot_frequency_p): Update and handle functions
24427 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
24429 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
24430 (compute_function_frequency): Set noreturn functions to be executed
24432 (choose_function_section): Update.
24433 * lto-streamer-in.c (input_function): Do not input function frequency.
24434 * function.c (allocate_struct_function): Do not initialize function
24436 * function.h (function_frequency): Remove.
24437 (struct function): Remove function frequency.
24438 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
24439 (try_update): Update.
24440 * tree-inline.c (initialize_cfun): Do not update function frequency.
24441 * passes.c (pass_init_dump_file): Update.
24442 * i386.c (ix86_compute_frame_layout): Update.
24443 (ix86_pad_returns): Update.
24445 2010-04-26 Jie Zhang <jie@codesourcery.com>
24447 PR tree-optimization/43833
24448 * tree-vrp.c (range_int_cst_p): New.
24449 (range_int_cst_singleton_p): New.
24450 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
24451 when both operands are constants. Use range_int_cst_p in
24454 2010-04-26 Jan Hubicka <jh@suse.cz>
24456 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
24458 2010-04-26 Richard Guenther <rguenther@suse.de>
24461 * gimple.c (gimple_decl_printable_name): Deal gracefully
24462 with a NULL DECL_NAME.
24464 2010-04-26 Richard Guenther <rguenther@suse.de>
24467 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
24468 if emitting debug information and it is either a function
24469 or a namespace decl.
24471 2010-04-26 Ira Rosen <irar@il.ibm.com>
24473 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
24474 determine if the statement is vectorizable, and a macro to access it.
24475 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24476 Skip statements that can't be vectorized. If the analysis fails,
24477 mark the statement as unvectorizable if vectorizing basic block.
24478 (vect_compute_data_refs_alignment): Likewise.
24479 (vect_verify_datarefs_alignment): Skip statements marked as
24480 unvectorizable. Add print.
24481 (vect_analyze_group_access): Skip statements that can't be
24482 vectorized. If the analysis fails, mark the statement as
24483 unvectorizable if vectorizing basic block.
24484 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
24485 * tree-vect-stmts.c (vectorizable_store): Fix the number of
24486 generated stmts for SLP.
24487 (new_stmt_vec_info): Initialize the new field.
24488 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
24489 statements marked as unvectorizable.
24491 2010-04-25 Joseph Myers <joseph@codesourcery.com>
24493 * c-common.c (flag_isoc1x): New.
24494 (flag_isoc99): Update comment.
24495 * c-common.h (flag_isoc1x): New.
24496 (flag_isoc99): Update comment.
24497 * c-cppbuiltin.c (builtin_define_float_constants): Also define
24498 __<type>_DECIMAL_DIG__.
24499 * c-opts.c (set_std_c1x): New.
24500 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
24501 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
24502 * c.opt (-std=c1x, -std=gnu1x): New options.
24503 * doc/cpp.texi: Mention -std=c1x.
24504 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
24505 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
24506 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
24507 * doc/standards.texi: Mention C1X.
24508 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
24509 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
24510 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
24513 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
24515 * config/i386/gmon-sol2.c (_mcleanup): Change format string
24516 placeholder from 0x%x to %#x.
24517 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24518 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24519 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24520 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24521 * config/i386/i386.c (ix86_target_string): Ditto.
24522 (output_pic_addr_const): Ditto.
24523 (print_operand): Ditto.
24525 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
24527 * combine.c (find_split_point): Add third argument. Use it
24528 to find nested multiply-accumulate instructions. Adjust calls.
24529 (try_combine): Adjust call to find_split_point.
24531 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
24533 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
24535 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
24537 PR tree-optimization/41442
24538 * fold-const.c (merge_truthop_with_opposite_arm): New function.
24539 (fold_binary_loc): Call it.
24541 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
24543 * toplev.c (general_init): Set default for fdiagnostics-show-option.
24544 * opts.c (common_handle_option): Allow disabling it.
24545 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
24547 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
24549 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
24550 between modes if both types are integral.
24552 2010-04-23 Richard Guenther <rguenther@suse.de>
24554 PR tree-optimization/43572
24555 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
24557 2010-04-23 Richard Guenther <rguenther@suse.de>
24560 * tree-inline.c (tree_can_inline_p): Also check compatibility
24563 2010-04-23 Martin Jambor <mjambor@suse.cz>
24565 PR tree-optimization/43846
24566 * tree-sra.c (struct access): New flag grp_assignment_read.
24567 (build_accesses_from_assign): Set grp_assignment_read.
24568 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
24569 (enum mark_read_status): New type.
24570 (analyze_access_subtree): Propagate grp_assignment_read, create
24571 accesses also if both direct_read and root->grp_assignment_read.
24573 2010-04-23 Martin Jambor <mjambor@suse.cz>
24575 PR middle-end/43835
24576 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
24577 function does not have type attributes.
24579 2010-04-23 Richard Guenther <rguenther@suse.de>
24582 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
24585 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24587 * sese.h (create_if_region_on_edge): Remove.
24589 * sese.c (create_if_region_on_edge): Make static.
24591 * tree-inline.c: Do not include ggc.h.
24593 * expr.c: Do not include ggc.h.
24595 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
24598 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
24601 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24602 in the middle of insns for casesi_worker_2.
24604 2010-04-22 David Edelsohn <edelsohn@gnu.org>
24606 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
24608 2010-04-22 Ira Rosen <irar@il.ibm.com>
24610 PR tree-optimization/43842
24611 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
24612 loop unrolling in update of exit phis. Fix comment.
24613 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
24614 least two reduction statements in the loop before starting SLP
24617 2010-04-22 Nick Clifton <nickc@redhat.com>
24619 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
24621 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
24623 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
24624 to simplify a + ~a.
24626 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24628 * tree-parloops.c (loop_parallel_p): New argument
24629 parloop_obstack. Pass it down.
24630 (parallelize_loops): New variable parloop_obstack. Initialize it,
24631 pass it down, free it.
24633 * tree-loop-linear.c (linear_transform_loops): Pass down
24636 * tree-data-ref.h (lambda_compute_access_matrices): New argument
24637 of type struct obstack *.
24639 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
24640 scratch_obstack. Initialize it, pass down, free it.
24642 * lambda.h (lambda_loop_new): Remove.
24643 (lambda_matrix_new, lambda_matrix_inverse)
24644 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
24645 argument of type struct obstack *.
24647 * lambda-trans.c (lambda_trans_matrix_new): New argument
24648 lambda_obstack. Pass it down, use obstack allocation for ret.
24649 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
24652 * lambda-mat.c (lambda_matrix_get_column)
24653 (lambda_matrix_project_to_null): Remove.
24654 (lambda_matrix_new): New argument lambda_obstack. Use obstack
24655 allocation for mat.
24656 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
24659 * lambda-code.c (lambda_loop_new): New function.
24660 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
24661 (lambda_compute_auxillary_space, lambda_compute_target_space)
24662 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
24663 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
24664 (build_access_matrix): New argument lambda_obstack. Use obstack
24666 (lambda_compute_step_signs, lambda_compute_access_matrices): New
24667 argument lambda_obstack. Pass it down.
24669 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24671 * optabs.h (expand_widening_mult): Declare.
24673 2010-04-22 Richard Guenther <rguenther@suse.de>
24675 PR tree-optimization/43845
24676 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
24677 lookup the CALL_EXPR function and arguments.
24679 2010-04-22 Nick Clifton <nickc@redhat.com>
24681 * config/stormy16/stormy16.c
24682 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
24683 * config/stormy16/stormy16.h: Tidy up formatting.
24684 (DONT_USE_BUILTIN_SETJMP): Remove definition.
24685 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
24686 (ineqbranchsi): Delete pattern.
24687 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
24688 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
24689 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
24690 stormy16-lib2-ucmpsi2.c.
24692 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24694 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
24695 df_simulate_find_noclobber_defs as appropriate. Keep track of an
24696 extra set merge_set_noclobber, and use it to relax the final test
24698 * df.h (df_simulate_find_noclobber_defs): Declare.
24699 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
24701 (df_simulate_find_noclobber_defs): New function.
24703 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
24705 * config/i386/i386.md: Use {} around multi-line preparation statements.
24707 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24709 * c-tree.h (push_init_level, pop_init_level, set_init_index)
24710 (process_init_element): New argument of type struct obstack *.
24712 * c-typeck.c (push_init_level, pop_init_level, set_designator)
24713 (set_init_index, set_init_label, set_nonincremental_init)
24714 (set_nonincremental_init_from_string, find_init_member)
24715 (output_init_element, output_pending_init_elements)
24716 (process_init_element): New argument braced_init_obstack. Pass it
24718 (push_range_stack, add_pending_init): New argument
24719 braced_init_obstack. Use obstack allocation.
24721 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
24722 braced_init_obstack. Pass it down.
24723 (c_parser_braced_init): New variables ret, braced_init_obstack.
24724 Initialize obstack, pass it down and finally free it.
24726 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24728 PR middle-end/29274
24729 * tree-pass.h (pass_optimize_widening_mul): Declare.
24730 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
24731 gate_optimize_widening_mul): New static functions.
24732 (pass_optimize_widening_mul): New.
24733 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
24734 <case MULT_EXPR>: Remove support for widening multiplies.
24735 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
24736 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
24737 simplify_gen_unary rather than directly building extensions.
24738 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
24740 * expmed.c (expand_widening_mult): New function.
24741 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
24743 2010-04-21 Jan Hubicka <jh@suse.cz>
24745 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
24746 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
24747 * lto-wpa-fixup.c: Remove.
24748 * Makefile.in (lto-wpa-fixup.o): Remove.
24749 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
24750 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
24751 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
24753 2010-04-21 Jan Hubicka <jh@suse.cz>
24755 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
24756 add write_optimization_summary, read_optimization_summary.
24757 (ipa_write_summaries_of_cgraph_node_set): Remove.
24758 (ipa_write_optimization_summaries): Declare.
24759 (ipa_read_optimization_summaries): Declare.
24760 * ipa-cp.c (pass_ipa_cp): Update.
24761 * ipa-reference.c (pass_ipa_reference): Update.
24762 * ipa-pure-const.c (pass_ipa_pure_const): Update.
24763 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
24765 * ipa-inline.c (pass_ipa_inline): Update.
24766 * ipa.c (pass_ipa_whole_program): Update.
24767 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
24768 * passes.c (ipa_write_summaries_1): Do not test wpa.
24769 (ipa_write_optimization_summaries_1): New.
24770 (ipa_write_optimization_summaries): New.
24771 (ipa_read_summaries): Do not test ltrans.
24772 (ipa_read_optimization_summaries_1): New.
24773 (ipa_read_optimization_summaries): New.
24775 2010-04-21 Jan Hubicka <jh@suse.cz>
24777 * lto-cgraph.c (lto_output_node): Do not output comdat groups
24778 for boundary nodes.
24779 (output_cgraph): Do not arrange comdat groups for boundary nodes.
24781 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24784 * dwarf2out.c (add_name_and_src_coords_attributes): Add
24785 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
24787 2010-04-21 Jan Hubicka <jh@suse.cz>
24789 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
24791 2010-04-21 Jan Hubicka <jh@suse.cz>
24793 * varpool.c (decide_is_variable_needed): Variable is always needed
24796 2010-04-21 Jan Hubicka <jh@suse.cz>
24798 * opts.c (decode_options): Enable pure-const pass for whopr.
24800 2010-04-21 Jan Hubicka <jh@suse.cz>
24802 * cgraph.c (dump_cgraph_node): Dump also assembler name.
24803 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
24805 (cgraph_decide_inlining): Do not expect callee to be removed in all
24808 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
24810 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
24812 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24814 * config/i386/i386.md (x86_shrd): Add athlon_decode and
24815 amdfam10_decode attributes.
24817 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24819 PR middle-end/43570
24820 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
24821 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
24822 (lower_copyprivate_clauses): Use private var in outer
24823 context instead of original var. Make sure the types
24824 are correct for VLAs.
24826 2010-04-21 Richard Guenther <rguenther@suse.de>
24828 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
24829 to non-pointer objects.
24831 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24833 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
24834 last chain entry if it starts with the still current label.
24835 (add_location_or_const_value_attribute): Check that
24836 loc_list->first->next is NULL instead of comparing ->first with ->last.
24837 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
24838 to add_var_loc_to_decl.
24840 * dwarf2out.c (output_call_frame_info): For dw_cie_version
24841 >= 4 add also address size and segment size fields into CIE header.
24843 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
24844 long as address size is the same as sizeof (void *) and
24846 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
24847 address size or segment size is unexpected, return DW_EH_PE_omit.
24848 (classify_object_over_fdes): If get_cie_encoding returned
24849 DW_EH_PE_omit, return -1.
24850 (init_object): If classify_object_over_fdes returned -1,
24851 pretend there were no FDEs at all.
24853 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24855 * config/i386/i386.md (bswap<mode>2): Macroize expander from
24856 bswap{si,di}2 using SWI48 mode iterator.
24857 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
24858 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
24859 set modrm attribute of bswap insn to 0 and remove length attribute.
24860 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
24861 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
24862 set mode attribute to <MODE> and remove length attribute.
24864 2010-04-20 James E. Wilson <wilson@codesourcery.com>
24866 PR rtl-optimization/43520
24867 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
24868 zero available registers.
24870 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24872 * builtins.c (fold_builtin_cproj): Fold more cases.
24874 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24876 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
24877 (fold_builtin_1): Fold builtin cproj.
24878 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
24879 Use ATTR_CONST_NOTHROW_LIST.
24881 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
24883 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
24884 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
24885 ffsi2_no_cmove for !TARGET_CMOVE.
24886 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
24887 (ffssi2): Remove expander.
24888 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
24890 (ctz<mode>2): Ditto from ctz{si,di}2.
24891 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
24893 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
24896 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24898 * dwarf2out.c (AT_linkage_name): Define.
24899 (clone_as_declaration): Handle DW_AT_linkage_name.
24900 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
24901 of DW_AT_MIPS_linkage_name.
24902 (move_linkage_attr): Likewise.
24903 (dwarf2out_finish): Likewise.
24905 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
24907 PR middle-end/41952
24908 * fold-const.c (fold_comparison): New folding rule.
24910 2010-04-20 Anatoly Sokolov <aesok@post.ru>
24912 * double-int.h (double_int_setbit): Declare.
24913 * double-int.c (double_int_setbit): New function.
24914 * rtl.h (immed_double_int_const): Declare.
24915 * emit-rtl.c (immed_double_int_const): New function.
24916 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
24917 and immed_double_int_const functions.
24918 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
24919 expand_copysign_bit): (Ditto.).
24920 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
24921 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
24922 * dojump.c (prefer_and_bit_test): (Ditto.).
24923 * expr.c (convert_modes, reduce_to_bit_field_precision,
24924 const_vector_from_tree): (Ditto.).
24925 * expmed.c (mask_rtx, lshift_value): (Ditto.).
24927 2010-04-20 Jan Hubicka <jh@suse.cz>
24929 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
24930 (dump_cgraph_node): Dump new flags.
24931 * cgraph.h (struct cgraph_node): Add flags
24932 reachable_from_other_partition and in_other_partition.
24933 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
24934 other partition can not be removed.
24935 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
24936 the other partition must be output; silence sanity checking on
24937 leaking functions bodies from other paritition.
24938 * lto-cgraph.c (reachable_from_other_partition_p): New function.
24939 (lto_output_node): Output new flags; do not sanity check that inline
24940 clones are output; drop lto_forced_extern_inline_p code; do not mock
24941 visibility flags at partition boundaries.
24942 (add_node_to): New function.
24943 (output_cgraph): Use it to sort functions so masters appear before
24945 (input_overwrite_node): Input new flags.
24946 * passes.c (ipa_write_summaries): Do not call
24947 lto_new_extern_inline_states.
24948 * lto-section-out.c (forced_extern_inline,
24949 lto_new_extern_inline_states lto_delete_extern_inline_states,
24950 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
24951 * lto-streamer.h (lto_new_extern_inline_states,
24952 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
24953 lto_forced_extern_inline_p): Kill.
24955 2010-04-20 Richard Guenther <rguenther@suse.de>
24957 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
24958 from vars that can have pointers.
24959 (process_constraint): Dump useless constraints.
24961 2010-04-20 Richard Guenther <rguenther@suse.de>
24963 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
24964 (dump_sa_points_to_info): Remove asserts.
24965 (init_base_vars): nothing_id isn't an escape point nor does it
24968 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24970 * tree.h (TYPE_REF_IS_RVALUE): Define.
24971 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
24972 should_move_die_to_comdat, prune_unused_types_walk): Handle
24973 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
24974 (modified_type_die, gen_reference_type_die): Emit
24975 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
24976 if TYPE_REF_IS_RVALUE and -gdwarf-4.
24978 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24981 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
24982 calls for -fpic -m31 if they have been sibcall optimized.
24984 2010-04-19 James E. Wilson <wilson@codesourcery.com>
24986 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
24987 ar.lc fixed and call-used.
24989 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
24991 2010-04-19 Jan Hubicka <jh@suse.cz>
24993 * opts.c (decode_options): Disable whpr incompatible passes.
24994 * lto/lto.c (lto_1_to_1_map): Skip clones.
24995 (read_cgraph_and_symbols): Do not mark everything as needed.
24996 (do_whole_program_analysis): Do map only after optimizing;
24997 set proper cgraph_state; use passmanager.
24999 2010-04-19 DJ Delorie <dj@redhat.com>
25001 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
25002 POINTER_PLUS_EXPR and fix them.
25004 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
25006 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
25007 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
25008 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
25009 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
25010 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
25011 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
25012 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
25013 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
25014 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
25015 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
25016 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
25018 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
25020 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
25021 (check_cond_move_block): Likewise.
25022 (cond_move_process_if_block): Likewise.
25023 (noce_find_if_block): Improve formatting.
25024 (find_if_header): Pass 0 to memset and tweak conditions.
25025 (cond_exec_find_if_block): Fix long lines and tweak conditions.
25027 2010-04-19 Jakub Jelinek <jakub@redhat.com>
25029 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
25032 PR middle-end/43337
25033 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
25034 with non-local decl doesn't need chain.
25036 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
25038 * ira-color.c (allocno_reload_assign): Avoid accumulating
25039 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
25041 2010-04-19 Martin Jambor <mjambor@suse.cz>
25043 * gimple.h (create_tmp_reg): Declare.
25044 * gimplify.c (create_tmp_reg): New function.
25045 (gimplify_return_expr): Use create_tmp_reg.
25046 (gimplify_omp_atomic): Likewise.
25047 (gimple_regimplify_operands): Likewise.
25048 * tree-dfa.c (make_rename_temp): Likewise.
25049 * tree-predcom.c (predcom_tmp_var): Likewise.
25050 (reassociate_to_the_same_stmt): Likewise.
25051 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
25052 (get_replaced_param_substitute): Likewise.
25053 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
25054 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
25055 * tree-ssa-pre.c (get_representative_for): Likewise.
25056 (create_expression_by_pieces): Likewise.
25057 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
25058 (create_tailcall_accumulator): Likewise.
25060 2010-04-19 Martin Jambor <mjambor@suse.cz>
25062 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
25064 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
25066 2010-04-19 Richard Guenther <rguenther@suse.de>
25068 PR tree-optimization/43796
25069 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
25070 from SCEV in the lattice.
25071 (vrp_visit_phi_node): Dump change.
25073 2010-04-19 Richard Guenther <rguenther@suse.de>
25075 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
25076 * configure: Re-generated.
25078 2010-04-19 Richard Guenther <rguenther@suse.de>
25080 PR tree-optimization/43783
25081 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
25082 constant ARRAY_REF operands two and three if possible.
25084 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
25087 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
25089 2010-04-19 Jie Zhang <jie@codesourcery.com>
25092 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
25094 2010-04-19 Ira Rosen <irar@il.ibm.com>
25096 PR tree-optimization/37027
25097 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
25098 and macro to access it.
25099 (vectorizable_reduction): Add argument.
25100 (vect_get_slp_defs): Likewise.
25101 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
25102 statements for possible use in SLP.
25103 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
25104 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
25105 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
25107 (vectorizable_reduction): Likewise.
25108 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
25110 (vectorizable_type_demotion, vectorizable_type_promotion,
25111 vectorizable_store): Likewise.
25112 (vect_analyze_stmt): Update call to vectorizable_reduction.
25113 (vect_transform_stmt): Likewise.
25114 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
25115 (vect_build_slp_tree): Fix indentation. Check that there are no loads
25116 from different interleaving chains in same node.
25117 (vect_slp_rearrange_stmts): New function.
25118 (vect_supported_load_permutation_p): Allow load permutations for
25119 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
25120 inside SLP nodes if necessary.
25121 (vect_analyze_slp_instance): Handle reductions.
25122 (vect_analyze_slp): Try to build SLP instances originating from groups
25124 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
25125 (vect_get_constant_vectors): Create initial vectors for reductions
25126 according to reduction code. Add new argument.
25127 (vect_get_slp_defs): Add new argument, pass it to
25128 vect_get_constant_vectors.
25129 (vect_schedule_slp_instance): Remove SLP tree root statements.
25131 2010-04-19 Jakub Jelinek <jakub@redhat.com>
25133 * tree.h (ENUM_IS_SCOPED): Define.
25134 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
25135 for ENUM_IS_SCOPED enums.
25137 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
25139 * fold-const.c (fold_comparison): Use ssizetype.
25140 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
25141 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
25142 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
25143 * tree-object-size.c (compute_object_sizes): Use size_type_node.
25145 * tree.h (initialize_sizetypes): Remove parameter.
25146 (build_common_tree_nodes): Remove second parameter.
25147 * stor-layout.c (initialize_sizetypes): Remove parameter.
25148 Always create an unsigned type.
25149 (set_sizetype): Assert that the passed type is unsigned and simplify.
25150 * tree.c (build_common_tree_nodes): Remove second parameter.
25151 Adjust call to initialize_sizetypes.
25152 * c-decl.c (c_init_decl_processing): Remove second argument in call to
25153 build_common_tree_nodes.
25155 2010-04-18 Matthias Klose <doko@ubuntu.com>
25157 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
25159 2010-04-18 Ira Rosen <irar@il.ibm.com>
25161 PR tree-optimization/43771
25162 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
25163 load permutation doesn't have gaps.
25165 2010-04-18 Jan Hubicka <jh@suse.cz>
25167 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
25168 (sse_prologue_save_insn expander): Use new pattern.
25169 (sse_prologue_save_insn1): New pattern and splitter.
25170 (sse_prologue_save_insn): Update to deal also with 64bit aligned
25172 * i386.c (setup_incoming_varargs_64): Do not compute jump
25174 (ix86_gimplify_va_arg): Update alignment needed.
25175 (ix86_local_alignment): Do not align all local arrays to 128bit.
25177 2010-04-17 Jan Hubicka <jh@suse.cz>
25179 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
25181 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25183 * arm.md (negdi2): Remove redundant code to force values into a
25186 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25188 * arm/bpabi.S: Add EABI alignment attributes to objects.
25189 * arm/bpabi-v6m.S: Likewise.
25190 * arm/crti.asm: Likewise.
25191 * arm/crtn.asm: Likewise.
25192 * arm/lib1funcs.asm: Likewise.
25193 * arm/libunwind.S: Likewise.
25195 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25197 * arm-protos.h (tune_params): New structure.
25198 * arm.c (current_tune): New variable.
25199 (arm_constant_limit): Delete.
25200 (struct processors): Add pointer to the tune parameters.
25201 (arm_slowmul_tune): New tuning option.
25202 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
25203 (all_cores): Adjust to pick up the tuning model.
25204 (arm_constant_limit): New function.
25205 (arm_override_options): Select the appropriate tuning model. Delete
25206 initialization of arm_const_limit.
25207 (arm_split_constant): Use the new constant-limit model.
25208 (arm_rtx_costs): Pick up the current tuning model.
25209 * arm.md (is_strongarm, is_xscale): Delete.
25210 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
25211 for Xscale variant architectures.
25212 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
25214 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25216 * config/arm/arm.c (arm_gen_constant): Remove unused variable
25218 (arm_rtx_costs_1): Remove unused variable extra_cost.
25219 (arm_unwind_emit_set): Use variable offset.
25220 (thumb1_output_casesi): Remove unused variable flags.
25222 2010-04-16 Jeff Law <law@redhat.com>
25224 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
25225 needing assignment rather than doing a two-phase assignment. Remove
25226 unused variable 'm'.
25228 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25231 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
25233 2010-04-16 Doug Kwan <dougkwan@google.com>
25235 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
25236 (next_operand_entry_id): New static variable.
25237 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
25238 (add_to_ops_vec): Assigned unique ID to operand entry.
25239 (struct oecount_s): New field ID.
25240 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
25241 (undistribute_ops_list): Assign unique IDs to oecounts.
25242 (init_reassoc): reset next_operand_entry_id.
25244 2010-04-16 Doug Kwan <dougkwan@google.com>
25246 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
25247 missing left parenthesis.
25249 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
25251 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
25252 *btdi_rex64 using SWI48 mode iterator.
25253 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
25254 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
25255 *jcc_btdi_mask_rex64.
25257 2010-04-16 Anatoly Sokolov <aesok@post.ru>
25259 * double-int.h (tree_to_double_int): Convert to macro.
25260 * double-int.c (tree_to_double_int): Remove.
25262 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25265 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
25266 with want_address 2 and in case a single element list might be
25267 possible, call it again with want_address 0.
25269 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25271 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
25272 case 'W' print operands for HI mode.
25273 * config/h8300/h8300.h (Y0, Y2) : New constraints.
25274 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
25275 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
25276 * config/h8300/predicate.md (bit_register_indirect_operand): New.
25278 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
25280 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
25281 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
25282 #xx:3 and #xx:4 mode.
25284 * config/h8300/h8300.md (inverted load with HImode dest): Add
25285 support for H8300SX.
25287 * config/h8300/predicate.md (bit_operand): Allow immediate values that
25288 satisfy 'U' constraint.
25290 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25292 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
25293 * configure: Regenerate.
25294 * config.in: Regenerate.
25295 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
25298 2010-04-16 Richard Guenther <rguenther@suse.de>
25300 * tree.h (struct tree_decl_minimal): Move pt_uid ...
25301 (struct tree_decl_common): ... here.
25302 (DECL_PT_UID): Adjust.
25303 (SET_DECL_PT_UID): Likewise.
25304 (DECL_PT_UID_SET_P): Likewise.
25306 2010-04-16 Richard Guenther <rguenther@suse.de>
25308 PR tree-optimization/43572
25309 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
25310 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
25311 * tree-flow.h (is_call_clobbered): Remove.
25312 * tree-flow-inline.h (is_call_clobbered): Likewise.
25313 * tree-dfa.c (dump_variable): Do not dump call clobber state.
25314 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
25315 (execute_return_slot_opt): Adjust.
25316 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
25317 check for call clobbered vars here.
25318 (find_tail_calls): Move tailcall verification to the
25321 2010-04-16 Diego Novillo <dnovillo@google.com>
25323 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
25325 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
25328 * config/arm/arm.md (cbranchqi4): New pattern.
25329 * config/arm/predicates.md (const0_operand,
25330 cbranchqi4_comparison_operator): New predicates.
25332 2010-04-16 Richard Guenther <rguenther@suse.de>
25334 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
25335 (dump_gimple_stmt): Likewise.
25337 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
25339 * recog.h (struct recog_data): New field is_operator.
25340 (struct insn_operand_data): New field is_operator.
25341 * recog.c (extract_insn): Set recog_data.is_operator.
25342 * genoutput.c (output_operand_data): Emit code to set the
25344 * reload.c (find_reloads): Use it rather than testing for an
25345 empty constraint string.
25348 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
25349 If the previous insn is a cbranchsi4_insn with the same arguments,
25350 omit the compare instruction.
25352 * config/arm/arm.md (addsi3_cbranch): If destination is a high
25353 register, inputs must be low registers and we need a low register
25354 scratch. Handle alternative 2 like alternative 3.
25356 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25358 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
25359 don't call get_addr on both. If one expression is a VALUE and
25360 the other a REG, check VALUE's locs if the REG isn't among them.
25362 2010-04-16 Christian Bruel <christian.bruel@st.com>
25364 * config/sh/sh.h (sh_frame_pointer_required): New function.
25365 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
25366 (flag_omit_frame_pointer) Set.
25367 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
25368 (rounded_frame_size): Adjust size with outgoing_args_size.
25369 (sh_set_return_address): Must return from stack pointer.
25370 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
25371 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
25372 (ACCUMULATE_OUTGOING_ARGS): Define.
25373 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
25374 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
25376 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
25379 * config/sh/sh.c (sh_legitimize_reload_address): Use
25380 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
25381 Remove a unneeded check for offset_base.
25383 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
25385 * configure: Regenerated.
25387 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25389 * config/s390/s390.c (s390_call_save_register_used): Switch back
25390 to HARD_REGNO_NREGS.
25392 2010-04-15 Richard Guenther <rguenther@suse.de>
25394 * alias.c (alias_set_subset_of): Handle alias-set zero
25397 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
25398 Julian Brown <julian@codesourcery.com>
25400 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
25401 alternatives according to use of high and low regs.
25402 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
25403 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
25404 optimizing for size on Thumb-2.
25406 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
25408 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
25410 2010-04-15 Richard Guenther <rguenther@suse.de>
25412 * tree-ssa-structalias.c (struct variable_info): Add
25414 (new_var_info): Initialize it.
25415 (dump_constraints): Support printing last added constraints.
25416 (debug_constraints): Adjust.
25417 (dump_constraint_graph): Likewise.
25418 (make_heapvar_for): Check for NULL cfun.
25419 (get_function_part_constraint): New function.
25420 (get_fi_for_callee): Likewise.
25421 (find_func_aliases): Properly implement IPA PTA constraints.
25422 (process_ipa_clobber): New function.
25423 (find_func_clobbers): Likewise.
25424 (insert_into_field_list_sorted): Remove.
25425 (create_function_info_for): Properly allocate vars for IPA mode.
25426 Do not use insert_into_field_list_sorted.
25427 (create_variable_info_for): Properly generate constraints for
25428 global vars in IPA mode.
25429 (dump_solution_for_var): Always dump the solution.
25430 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
25431 (find_what_var_points_to): Adjust.
25432 (pt_solution_set): Change.
25433 (pt_solution_ior_into): New function.
25434 (pt_solution_empty_p): Export.
25435 (pt_solution_includes_global): Adjust.
25436 (pt_solution_includes_1): Likewise.
25437 (pt_solutions_intersect_1): Likewise.
25438 (dump_sa_points_to_info): Check some invariants.
25439 (solve_constraints): Move constraint dumping ...
25440 (compute_points_to_sets): ... here.
25441 (ipa_pta_execute): ... and here.
25442 (compute_may_aliases): Do not re-compute points-to info
25443 locally if IPA info is available.
25444 (ipa_escaped_pt): New global var.
25445 (ipa_pta_execute): Properly implement IPA PTA.
25446 * tree-into-ssa.c (dump_decl_set): Support dumping
25447 decls not in referenced-vars.
25448 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
25449 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
25450 (dump_points_to_solution): Likewise.
25451 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
25452 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
25453 (remap_gimple_stmt): Reset call clobber/use information if necessary.
25454 (copy_decl_to_var): Copy DECL_PT_UID.
25455 (copy_result_decl_to_var): Likewise.
25456 * tree.c (make_node_stat): Initialize DECL_PT_UID.
25457 (copy_node_stat): Copy it.
25458 * tree.h (DECL_PT_UID): New macro.
25459 (SET_DECL_PT_UID): Likewise.
25460 (DECL_PT_UID_SET_P): Likewise.
25461 (struct tree_decl_minimal): Add pt_uid member.
25462 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
25463 (pt_solution_empty_p): Declare.
25464 (pt_solution_set): Adjust.
25465 (ipa_escaped_pt): Declare.
25466 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
25467 * gimple-pretty-print.c (pp_points_to_solution): New function.
25468 (dump_gimple_call): Dump call clobber/use information.
25469 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
25470 * tree-pass.h (TDF_ALIAS): New dump option.
25471 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
25472 * doc/invoke.texi (-fipa-pta): Update documentation.
25474 2010-04-15 Richard Guenther <rguenther@suse.de>
25476 * Makefile.in (OBJS-common): Add gimple-fold.o.
25477 (gimple-fold.o): New rule.
25478 * tree.h (maybe_fold_offset_to_reference,
25479 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
25481 * gimple.h: ... here.
25482 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
25483 may_propagate_address_into_dereference): Move prototypes ...
25484 * gimple.h: ... here.
25485 * tree-ssa-ccp.c (get_symbol_constant_value,
25486 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
25487 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
25488 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
25489 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
25490 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
25491 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
25492 gimplify_and_update_call_from_tree): Move ...
25493 * gimple-fold.c: ... here. New file.
25494 (ccp_fold_builtin): Rename to ...
25495 (gimple_fold_builtin): ... this.
25496 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
25498 2010-04-15 Richard Guenther <rguenther@suse.de>
25500 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
25501 fit_double_type, force_fit_type_double, add_double_with_sign,
25502 neg_double, mul_double_with_sign, lshift_double, rshift_double,
25503 lrotate_double, rrotate_double, div_and_round_double): Move ...
25504 * double-int.c: ... here.
25505 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
25506 add_double, neg_double, mul_double_with_sign, mul_double,
25507 lshift_double, rshift_double, lrotate_double, rrotate_double,
25508 div_and_round_double): Move prototypes ...
25509 * double-int.h: ... here.
25511 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
25514 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
25515 matching constraints to ensure inputs match the output.
25517 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
25520 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
25521 in an input-only operand.
25523 2010-04-15 Anatoly Sokolov <aesok@post.ru>
25525 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
25526 (double_int_not, double_int_lshift, double_int_rshift): Declare.
25527 (double_int_negative_p): Convert to static inline function.
25528 * double-int.c (double_int_lshift, double_int_lshift): New functions.
25529 (double_int_negative_p): Remove.
25530 * tree.h (lshift_double, rshift_double):
25531 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
25532 * fold-const.c (fold_convert_const_int_from_real,
25533 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
25534 (lshift_double): Change type of arith argument to bool.
25535 (rshift_double): Change type of arith argument to bool. Correct
25537 * expmed.c (mask_rtx, lshift_value): (Ditto.).
25539 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
25542 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
25543 at the start and end of the then/else blocks, and omit them from the
25545 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
25546 argument; all callers changed. Pass zero to old_insns_match_p instead.
25547 (flow_find_head_matching_sequence): New function.
25548 (old_insns_match_p): Check REG_EH_REGION notes for calls.
25549 * basic-block.h (flow_find_cross_jump,
25550 flow_find_head_matching_sequence): Declare functions.
25552 2010-04-14 Jason Merrill <jason@redhat.com>
25555 * c-common.c (attribute_takes_identifier_p): New fn.
25556 * c-common.h: Declare it.
25558 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25560 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
25561 splitter condition.
25562 (*udivmod<mode>4): Ditto.
25564 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25566 * config/i386/i386.md (maxmin_int): Rename code attribute from
25567 maxminiprefix and update all users.
25568 (maxmin_float): Ditto from maxminfprefix.
25569 (logic): Ditto from logicprefix.
25570 (absneg_mnemonic): Ditto from absnegprefix.
25571 * config/i386/mmx.md: Update all users of maxminiprefix,
25572 maxminfprefix and logicprefix for rename.
25573 * config/i386/sse.md: Ditto.
25574 * config/i386/sync.md (sync_<code><mode>): Update for
25575 logicprefix rename.
25577 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
25580 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
25581 warnings converted to errors.
25583 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25585 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
25586 used insn_type variable.
25587 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
25588 to avoid set-but-not-used warning.
25590 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25592 * df-core.c (df_ref_debug): Change format string placeholder
25594 * dwarf2asm.c (dw2_asm_output_data_raw,
25595 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
25596 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
25597 * dwarf2out.c (output_cfi, output_cfi_directive,
25598 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
25599 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
25601 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
25602 * print-rtl.c (print_rtx): Ditto.
25604 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25606 PR middle-end/42694
25607 * builtins.c (expand_builtin_pow_root): New function to expand pow
25608 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
25609 series of sqrt and cbrt calls under -ffast-math.
25610 (expand_builtin_pow): Call it.
25612 2010-04-14 Michael Matz <matz@suse.de>
25614 PR tree-optimization/42963
25615 * tree-cfg.c (touched_switch_bbs): New static variable.
25616 (group_case_labels_stmt): New function broken out from ...
25617 (group_case_labels): ... here, use the above.
25618 (start_recording_case_labels): Allocate touched_switch_bbs.
25619 (end_recording_case_labels): Deallocate it, call
25620 group_case_labels_stmt.
25621 (gimple_redirect_edge_and_branch): Remember index of affected BB.
25623 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25625 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
25626 from insn template.
25628 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25630 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
25632 2010-04-13 Jan Hubicka <jh@suse.cz>
25634 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
25635 of optimized out static functions.
25636 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
25637 cost computation. Also sanity check for overflows.
25638 (update_caller_keys): Update cgraph_edge_badness call; properly
25639 update fibheap and sanity check that it is up to date.
25640 (add_new_edges_to_heap): Update cgraph_edge_badness.
25641 (cgraph_decide_inlining_of_small_function): Likewise;
25642 add sanity checking that badness in heap is up to date;
25643 improve dumping of reason; Update badness of calls to the
25644 offline copy of function currently inlined; dump badness
25645 of functions not inlined because of unit growth limits.
25647 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25649 PR middle-end/32628
25650 * c-common.c (pointer_int_sum): Disregard overflow that occured only
25651 because of sign-extension change when converting to sizetype here...
25652 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
25654 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
25655 the folding to constants. Remove redundant final conversion.
25656 (fold_binary) <associate>: Do not associate if the re-association of
25657 constants alone overflows.
25658 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
25659 to the end of the list.
25660 (multiple_of_p) <COND_EXPR>: New case.
25662 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
25664 * opt-functions.awk (opt_sanitized_name): New.
25666 * optc-gen.awk: Use it
25667 * opth-gen.awk: Use it.
25669 2010-04-13 Martin Jambor <mjambor@suse.cz>
25671 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
25672 (sra_modify_assign): Delete stmts loading dead data even if racc has no
25673 children. Call replace_uses_with_default_def_ssa_name to handle
25676 2010-04-13 Michael Matz <matz@suse.de>
25678 PR middle-end/43730
25679 * builtins.c (expand_builtin_interclass_mathfn): Also create
25680 a register if the predicate doesn't match.
25682 2010-04-13 Diego Novillo <dnovillo@google.com>
25684 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
25685 * c-pch.c: Include timevar.h.
25686 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
25687 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
25688 * ggc-common.c: Include timevar.h.
25689 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
25690 * timevar.def (TV_PCH_SAVE): Define.
25691 (TV_PCH_CPP_SAVE): Define.
25692 (TV_PCH_PTR_REALLOC): Define.
25693 (TV_PCH_PTR_SORT): Define.
25694 (TV_PCH_RESTORE): Define.
25695 (TV_PCH_CPP_RESTORE): Define.
25697 2010-04-13 Michael Matz <matz@suse.de>
25699 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
25701 (can_reassociate_p): New function.
25702 (break_up_subtract_bb, reassociate_bb): Use it.
25704 2010-04-13 Richard Guenther <rguenther@suse.de>
25707 * builtins.c (c_readstr): Fix assert.
25709 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
25711 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
25712 when generating cltd insn.
25714 (*ashl<mode>3_1): Remove special handling for register operand 2.
25715 (*ashlsi3_1_zext): Ditto.
25716 (*ashlhi3_1): Ditto.
25717 (*ashlhi3_1_lea): Ditto.
25718 (*ashlqi3_1): Ditto.
25719 (*ashlqi3_1_lea): Ditto.
25720 (*<shiftrt_insn><mode>3_1): Ditto.
25721 (*<shiftrt_insn>si3_1_zext): Ditto.
25722 (*<shiftrt_insn>qi3_1_slp): Ditto.
25723 (*<rotate_insn><mode>3_1): Ditto.
25724 (*<rotate_insn>si3_1_zext): Ditto.
25725 (*<rotate_insn>qi3_1_slp): Ditto.
25727 2010-04-13 Richard Guenther <rguenther@suse.de>
25729 * tree-ssa-structalias.c (callused_id): Remove.
25730 (call_stmt_vars): New.
25731 (get_call_vi): Likewise.
25732 (lookup_call_use_vi): Likewise.
25733 (lookup_call_clobber_vi): Likewise.
25734 (get_call_use_vi): Likewise.
25735 (get_call_clobber_vi): Likewise.
25736 (make_transitive_closure_constraints): Likewise.
25737 (handle_const_call): Adjust to do per-call call-used handling.
25738 (handle_pure_call): Likewise.
25739 (find_what_var_points_to): Remove general callused handling.
25740 (init_base_vars): Likewise.
25741 (init_alias_vars): Initialize call_stmt_vars.
25742 (compute_points_to_sets): Process call-used and call-clobbered
25743 vars for call statements.
25744 (delete_points_to_sets): Free call_stmt_vars.
25746 2010-04-13 Richard Guenther <rguenther@suse.de>
25748 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25749 Only add RW dependence for dependence distance zero.
25750 Adjust maximal vectorization factor according to dependences.
25751 Move alignment handling ...
25752 (vect_find_same_alignment_drs): ... here. New function.
25753 (vect_analyze_data_ref_dependences): Adjust.
25754 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
25755 (vect_analyze_data_refs): Adjust minimal vectorization factor
25756 according to data references.
25757 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
25758 dependences before determining the vectorization factor.
25759 Analyze alignment after determining the vectorization factor.
25760 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
25761 dependences before alignment.
25762 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
25764 (vect_analyze_data_refs): Likewise.
25765 (MAX_VECTORIZATION_FACTOR): New define.
25767 2010-04-13 Duncan Sands <baldrick@free.fr>
25769 * except.h (lang_eh_type_covers): Remove.
25770 * except.c (lang_eh_type_covers): Likewise.
25772 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25773 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25775 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
25776 * config/s390/s390.c: Replace UNTIS_PER_WORD with
25777 UNITS_PER_LONG where it is ABI relevant.
25778 (s390_return_addr_rtx): Likewise.
25779 (s390_back_chain_rtx): Likewise.
25780 (s390_frame_area): Likewise.
25781 (s390_frame_info): Likewise.
25782 (s390_initial_elimination_offset): Likewise.
25783 (save_gprs): Likewise.
25784 (s390_emit_prologue): Likewise.
25785 (s390_emit_epilogue): Likewise.
25786 (s390_function_arg_advance): Likewise.
25787 (s390_function_arg): Likewise.
25788 (s390_va_start): Likewise.
25789 (s390_gimplify_va_arg): Likewise.
25790 (s390_function_profiler): Likewise.
25791 (s390_optimize_prologue): Likewise.
25792 (s390_rtx_costs): Likewise.
25793 (s390_secondary_reload): Likewise.
25794 (s390_promote_function_mode): Likewise.
25795 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
25796 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
25797 registers available.
25798 (s390_unwind_word_mode): New function.
25799 (s390_function_value): Split 64 bit values into register pair if
25800 used as return value.
25801 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
25802 function call parameters. Handle parallels.
25803 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
25804 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
25805 (DWARF_CIE_DATA_ALIGNMENT): New macro.
25806 (s390_expand_setmem): Remove unused variable src_addr.
25807 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
25808 deal with 64 bit registers.
25809 * config/s390/s390.h: Define __zarch__ predefined macro.
25810 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
25811 (UNITS_PER_LONG): New macro.
25812 * libjava/include/s390-signal.h: Define extended ucontext
25813 structure containing the upper halfs of the 64 bit registers.
25815 2010-04-13 Simon Baldwin <simonb@google.com>
25817 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
25819 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25821 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
25822 rvalue on the RHS if the LHS is of a non-renamable type.
25823 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
25825 2010-04-13 Matthias Klose <doko@ubuntu.com>
25827 * gcc.c (cc1_options): Handle -iplugindir before processing
25828 the cc1 spec. Only add -iplugindir once.
25829 (cpp_unique_options): Add -iplugindir option if -fplugin* options
25831 * common.opt (iplugindir): Remove `Separate' property, initialize.
25832 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
25834 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
25835 (distclean): Remove plugin dir.
25836 * doc/invoke.texi: Document -iplugindir.
25838 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
25840 * doc/plugins.texi (Loading Plugins): Document short
25841 -fplugin=foo option.
25842 (Plugin API): Mention default_plugin_dir_name function.
25844 * gcc.c (find_file_spec_function): Add new declaration.
25845 (static_spec_func): Use it for "find-file".
25846 (find_file_spec_function): Add new function.
25847 (cc1_options): Add -iplugindir option if -fplugin* options found.
25849 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
25851 * plugin.c (add_new_plugin): Updated comment, and handle short
25853 (default_plugin_dir_name): Added new function.
25855 * common.opt (iplugindir): New option to set the plugin directory.
25857 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
25859 * config/i386/i386.md (any_rotate): New code iterator.
25860 (rotate_insn): New code attribute.
25862 (SWIM124): New mode iterator.
25863 (<rotate_insn>ti3): New expander.
25864 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
25865 any_rotate code iterator.
25866 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
25867 using any_rotate code iterator and SWIM124 mode iterator.
25868 (ix86_rotlti3): New insn_and_split pattern.
25869 (ix86_rotrti3): Ditto.
25870 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
25871 ix86_rotl{di,ti}3 patterns.
25872 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
25873 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
25874 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
25875 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
25876 code iterator and SWI mode iterator.
25877 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
25878 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
25880 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
25881 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
25882 (bswap rotatert splitter): Add splitter.
25883 (bswap splitter): Macroize splitter using any_rotate code iterator.
25884 Add insn predicate to split only for TARGET_USE_XCHGB or when
25885 optimizing function for size.
25887 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25889 * config/pa/pa.c (emit_move_sequence): Remove use of
25890 deleted variable flag_argument_noalias.
25892 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25894 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
25896 Add to unsupported targets list.
25897 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
25898 sparc*-sun-solaris2.[567]* from target lists.
25899 * configure: Regenerate.
25900 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
25902 Remove Solaris 7 patch references.
25903 (Specific, sparc-sun-solaris2.7): Removed.
25904 (sparc-sun-solaris2*): Update Solaris 7 example.
25905 (sparc64-*-solaris2*): Likewise.
25907 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25909 * config.build (alpha*-dec-osf4*): Remove.
25910 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
25911 of obsolete configurations.
25912 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
25914 * config/alpha/t-osf4: Renamed to ...
25915 * config/alpha/t-osf5: ... this.
25916 * config/alpha/osf.h: Renamed to ...
25917 * config/alpha/osf5.h: ... this.
25918 Merged old osf5.h contents.
25920 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
25921 (EXTRA_SPECS): Removed.
25922 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
25923 reflect removal of Tru64 UNIX V4.0/V5.0 support.
25926 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25928 * doc/contrib.texi (Contributors, Rainer Orth): Update.
25930 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
25933 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
25934 __thiscall convention.
25936 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25938 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
25940 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
25942 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25944 * function.c (assign_parms_initialize_all): Add unused attribute
25947 2010-04-12 Richard Guenther <rguenther@suse.de>
25949 * gsstruct.def (GSS_CALL): New.
25950 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
25951 * gimple.h: Include tree-ssa-alias.h.
25952 (struct gimple_statement_call): New.
25953 (union gimple_statement_struct_d): Add gimple_call member.
25954 (gimple_call_reset_alias_info): Declare.
25955 (gimple_call_use_set): New function.
25956 (gimple_call_clobber_set): Likewise.
25957 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
25958 * gimple.c (gimple_call_reset_alias_info): New function.
25959 (gimple_build_call_1): Call it.
25960 * lto-streamer-in.c (input_gimple_stmt): Likewise.
25961 * tree-inline.c (remap_gimple_stmt): Likewise.
25962 (expand_call_inline): Remove callused handling.
25963 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
25964 * tree-dfa.c (dump_variable): Likewise.
25965 * tree-parloops.c (parallelize_loops): Likewise.
25966 * tree-ssa.c (init_tree_ssa): Likewise.
25967 (delete_tree_ssa): Likewise.
25968 * tree-flow-inline.h (is_call_used): Remove.
25969 * tree-flow.h (struct gimple_df): Remove callused member.
25970 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
25971 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
25972 (ref_maybe_used_by_call_p_1): Simplify.
25973 (call_may_clobber_ref_p_1): Likewise.
25974 * tree-ssa-structalias.c (compute_points_to_sets): Set
25975 the call stmt used and clobbered sets.
25976 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
25977 (find_tail_calls): Verify the tail call.
25979 2010-04-12 Richard Guenther <rguenther@suse.de>
25981 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
25982 single-iteration always-inline inlining.
25983 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
25984 (cgraph_decide_inlining): Do not handle always-inline specially.
25985 (try_inline): Remove always-inline cycle detection special case.
25986 Do not recurse on always-inlines.
25987 (cgraph_early_inlining): Do not iterate if not optimizing.
25988 (cgraph_gate_early_inlining): remove.
25989 (pass_early_inline): Run unconditionally.
25990 (gate_cgraph_decide_inlining): New function.
25991 (pass_ipa_inline): Use it. Do not run the IPA inliner if
25992 not inlining or optimizing.
25993 (cgraph_decide_inlining_of_small_functions): Also consider
25994 always-inline functions.
25995 (cgraph_default_inline_p): Return true for nodes which should
25996 disregard inline limits.
25997 (estimate_function_body_sizes): Assume zero size and time for
25998 nodes which are marked as disregarding inline limits.
25999 (cgraph_decide_recursive_inlining): Do not perform recursive
26000 inlining on always-inline nodes.
26002 2010-04-12 Jakub Jelinek <jakub@redhat.com>
26005 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
26006 for exprs satisfying handled_component_p.
26008 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
26010 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
26011 non-constant aggregate elements.
26013 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
26014 is a real initialization.
26016 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
26019 * c-decl.c (start_function): Move forward check for nested function.
26021 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
26023 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
26024 * config/sh/sh.c: Include reload.h.
26025 (sh_legitimize_reload_address): New.
26026 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
26027 sh_legitimize_reload_address.
26029 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26031 * config/sh/sh.md (*movqi_pop): New insn pattern.
26032 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
26034 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
26036 * config/i386/i386.md (any_shiftrt): New code iterator.
26037 (shiftrt_insn): New code attribute.
26039 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
26040 using any_shiftrt code iterator.
26041 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
26042 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
26043 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
26044 pattern from corresponding peephole2 patterns.
26045 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
26046 using any_shiftrt code iterator.
26047 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
26048 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
26049 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
26050 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
26051 *{ashr,lshr}<mode>3_cmp_zext.
26052 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
26054 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
26056 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
26058 (*lshr<mode>3_cconly): Ditto.
26060 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
26062 * config/i386/i386.md (lshr<mode>3): Macroize expander from
26063 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
26064 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
26065 pattern from *lshr{di,ti}3_1 and corresponding splitters using
26067 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
26068 from corresponding peephole2 patterns.
26069 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
26070 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
26071 and *lshrdi3_1_rex64 using SWI mode iterator.
26072 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
26073 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
26074 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
26075 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
26076 and *lshrdi3_cmp_rex64 using SWI mode iterator.
26077 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
26078 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
26079 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
26080 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
26083 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
26085 * config/i386/i386.md (ashr<mode>3): Macroize expander from
26086 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
26087 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
26088 pattern from *ashr{di,ti}3_1 and corresponding splitters using
26090 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
26091 from corresponding peephole2 patterns.
26092 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
26093 (ashrsi3_cvt): Rename from ashrsi3_31.
26094 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
26095 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
26096 and x86_64_shift_adj_3 using SWI48 mode iterator.
26097 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
26098 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
26099 and *ashrdi3_1_rex64 using SWI mode iterator.
26100 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
26101 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
26102 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
26103 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
26104 and *ashrdi3_cmp_rex64 using SWI mode iterator.
26105 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
26106 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
26107 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
26108 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
26110 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
26111 * config/i386/i386.c (ix86_split_ashr): Update for renamed
26112 x86_shift<mode>_adj_3 expanders.
26114 2010-04-10 Wei Guozhi <carrot@google.com>
26117 * config/arm/arm.c (arm_pic_static_addr): New function.
26118 (legitimize_pic_address): Call arm_pic_static_addr when it detects
26120 (arm_output_addr_const_extra): Output expression for new pattern.
26121 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
26123 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
26125 * ira-costs.c (record_reg_classes): Ignore alternatives that are
26128 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
26129 * web.c: Include "insn-config.h" and "recog.h".
26130 (union_match_dups): New function.
26131 (web_main): Call it.
26132 (union_defs): Don't try to recognize match_dups.
26134 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
26135 if doing so would replace the entire pattern.
26137 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
26141 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
26142 and splitter pattern. Change splitter operand 1 predicate to
26145 2010-04-09 Martin Jambor <mjambor@suse.cz>
26147 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
26148 lattices are addresses of CONST_DECLs with the same initial value.
26149 (ipcp_print_all_lattices): Print values of CONST_DECLs.
26150 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
26152 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
26153 Bernd Schmidt <bernds@codesourcery.com>
26155 * loop-invariant.c (replace_uses): New static function.
26156 (move_invariant_reg): Use it to ensure we can replace the uses.
26158 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
26160 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
26162 (picochip_override_options): Enable section anchors only above -O1.
26163 (picochip_reorg): Fixed a couple of build warnings.
26165 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26167 * configure.ac (plugin -rdynamic test): Log result.
26168 * configure: Regenerate.
26169 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
26170 (RDYNAMIC_SPEC): Define.
26171 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
26173 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26175 * configure.ac: Determine Sun ld version numbers.
26176 (comdat_group): Restrict GNU ld version checks to gld.
26177 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
26178 (enable_comdat): Support --enable-comdat.
26179 * configure: Regenerate.
26180 * doc/install.texi (Configuration): Document --enable-comdat.
26182 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26184 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
26185 * config/sol2-gld.h: ... here.
26186 * config.gcc (sparc*-*-solaris2*): Reflect this.
26187 (i[34567]86-*-solaris2*): Use it.
26189 2010-04-09 Steve Ellcey <sje@cup.hp.com>
26191 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
26193 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
26195 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
26198 * diagnostic.c (diagnostic_initialize): Initialize
26199 some_warnings_are_errors.
26200 (diagnostic_finish): New.
26201 (diagnostic_action_after_output): Call it before exiting.
26202 (diagnostic_report_diagnostic): Do not print message here. Set
26203 some_warnings_are_errors.
26204 * diagnostic.h (diagnostic_context): Delete
26205 issue_warnings_are_errors_message. Add some_warnings_are_errors.
26206 (diagnostic_finish): Declare.
26207 * toplev.c (toplev_main): Call it before exit.
26209 2010-04-09 Jason Merrill <jason@redhat.com>
26212 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
26213 for incomplete type.
26216 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
26217 based on a warning flag.
26219 2010-04-09 Richard Guenther <rguenther@suse.de>
26221 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
26223 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
26226 * varasm.c (default_assemble_visibility): Wrap vars that are
26227 set, but unused, by targets without GAS.
26228 * config/rs6000/rs6000.c (paired_emit_vector_compare):
26229 Remove set, but unused, vars.
26230 (rs6000_legitimize_tls_address): Likewise.
26231 (altivec_expand_dst_builtin): Likewise.
26232 * config/darwin.c (machopic_classify_symbol): Likewise.
26233 (machopic_indirection_name): Likewise.
26235 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
26237 * config/i386/i386.md (DWI): New mode iterator.
26238 (S): New mode attribute.
26239 (shift_operand): Ditto.
26240 (shift_immediate_operand): Ditto.
26241 (ashl_input_operand): Ditto.
26242 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
26243 using SDWIM mode iterator.
26244 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
26245 pattern from *ashl{di,ti}3_1 and corresponding splitters using
26247 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
26248 from corresponding peephole2 patterns.
26249 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
26250 and x86_64_shift_adj_1 using SWI48 mode iterator.
26251 (x86_shift<mode>_adj_2): Ditto.
26252 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
26253 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
26254 using SWI48 mode iterator.
26255 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
26256 *ashldi3_cmp_rex64 using SWI mode iterator.
26257 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
26258 *ashldi3_cconly_rex64 using SWI mode iterator.
26259 * config/i386/i386.c (ix86_split_ashl): Update for renamed
26260 x86_shift<mode>_adj_{1,2}.
26261 (ix86_split_ashr): Ditto.
26262 (ix86_split_lshr): Ditto.
26264 2010-04-09 Richard Guenther <rguenther@suse.de>
26266 * target.h (builtin_conversion): Pass in input and output types.
26267 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
26268 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
26269 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
26270 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
26272 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
26274 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
26276 2010-04-09 Richard Guenther <rguenther@suse.de>
26279 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
26281 2010-04-09 Richard Guenther <rguenther@suse.de>
26283 * tree-vectorizer.h (struct _stmt_vec_info): Document
26284 that vectype is the type of the LHS.
26285 (supportable_widening_operation, supportable_narrowing_operation):
26286 Get both input and output vector types as arguments.
26287 (vect_is_simple_use_1): Declare.
26288 (get_same_sized_vectype): Likewise.
26289 * tree-vect-loop.c (vect_determine_vectorization_factor):
26290 Set STMT_VINFO_VECTYPE to the vector type of the def.
26291 (vectorizable_reduction): Adjust.
26292 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
26293 Adjust. Specify the output vector type.
26294 (vect_pattern_recog_1): Adjust.
26295 * tree-vect-stmts.c (get_same_sized_vectype): New function.
26296 (vectorizable_call): Adjust.
26297 (vectorizable_conversion): Likewise.
26298 (vectorizable_operation): Likewise.
26299 (vectorizable_type_demotion): Likewise.
26300 (vectorizable_type_promotion): Likewise.
26301 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
26303 (vect_is_simple_use_1): New function.
26304 (supportable_widening_operation): Get both input and output
26306 (supportable_narrowing_operation): Likewise.
26307 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
26309 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
26311 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
26312 __thiscall and _thiscall as predefined macros.
26313 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
26314 thiscall attribute handling.
26315 (ix86_comp_type_attributes): Likewise.
26316 (ix86_function_regparm): Likewise.
26317 (ix86_return_pops_args): Likewise.
26318 (init_cumulative_args): Likewise.
26319 (find_drap_reg): Likewise.
26320 (ix86_static_chain): Likewise.
26321 (x86_this_parameter): Likewise.
26322 (x86_output_mi_thunk): Likewise.
26323 (ix86_attribute_table): Add description for thiscall attribute.
26324 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
26325 * doc/extend.texi: Add documentation for thiscall.
26327 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
26330 * c.opt (Wint-to-pointer-cast): Available in C++.
26331 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
26333 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
26335 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
26336 * calls.c (expand_call): Pass the function type to aggregate_value_p.
26337 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
26338 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
26339 function type instead. Reorder and simplify checks.
26341 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
26343 2010-04-08 Jing Yu <jingyu@google.com>
26344 Zdenek Dvorak <ook@ucw.cz>
26346 PR tree-optimization/42720
26347 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
26348 loop unswitch conditions here from ...
26349 (tree_unswitch_single_loop): ... here.
26351 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
26353 * tree-if-conv.c: Fix comments and simplify logic.
26355 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
26357 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
26358 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
26359 (main_tree_if_conversion): Update call to tree_if_conversion.
26361 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26364 * doc/invoke.texi (-b,-V): Delete.
26365 * doc/tm.texi: Do not mention -b.
26366 * gcc.c (display_help): Delete -b and -V.
26367 (process_command): Delete -b and -V.
26368 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
26370 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
26371 Wolfgang Gellerich <gellerich@de.ibm.com>
26373 Implement target hook for loop unrolling
26374 * target.h (loop_unroll_adjust): Add a new target hook function.
26375 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
26376 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
26377 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
26378 (s390_loop_unroll_adjust): Implement the new target hook for s390.
26379 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
26381 (decide_unroll_stupid): Likewise.
26383 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26386 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
26388 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26390 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
26391 (Specific, *-*-solaris2*): Likewise.
26392 Don't prefer Sun as over GNU as.
26394 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
26396 * config/s390/s390.c (override_options): Adjust the z10 defaults
26397 for max-unroll-times, max-completely-peeled-insns
26398 and max-completely-peel-times.
26400 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26402 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
26403 instructions for z10.
26404 (s390_expand_setmem): Likewise.
26405 (s390_expand_cmpmem): Likewise.
26407 2010-04-08 Richard Guenther <rguenther@suse.de>
26409 PR tree-optimization/43679
26410 * tree-ssa-pre.c (eliminate): Only propagate copies.
26412 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26415 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
26416 set but not used variable warning.
26418 2010-04-08 Wei Guozhi <carrot@google.com>
26421 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
26422 (arm_size_rtx_costs): Call the new function when optimized for size.
26424 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26427 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
26428 op0 is not a MEM, just return NULL instead of assertion
26430 (discover_nonconstant_array_refs): Don't walk debug stmts.
26432 2010-04-08 Doug Kwan <dougkwan@google.com>
26434 * configure.ac: Recognize gold and do not use its version number
26435 to test ld features.
26436 * configure: Regenerate.
26438 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
26440 PR middle-end/40815
26441 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
26442 (negate_value): Move code to push elements to broken_up_substracts ...
26443 (eliminate_plus_minus_pair): ... here. Push operands that have no
26444 negative pair to plus_negates.
26445 (repropagate_negates, init_reassoc, fini_reassoc): Update.
26447 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26449 * doc/install.texi (Configuration): Move description of
26450 --enable-lto, --with-libelf*, --enable-gold from Java section to
26453 * doc/generic.texi (Working with declarations)
26454 (Function Properties, C and C++ Trees): Fix typos.
26455 * doc/sourcebuild.texi (Top Level): Likewise.
26457 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26460 * tree.h (DECL_READ_P): Define.
26461 (struct tree_decl_common): Add decl_read_flag.
26462 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
26463 a set but not used warning.
26464 (merge_decls): Merge DECL_READ_P flag.
26465 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
26466 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
26467 * c-common.c (handle_used_attribute, handle_unused_attribute):
26469 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
26471 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
26473 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
26474 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
26475 c_parser_binary_expression, c_parser_cast_expression,
26476 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
26477 Call default_function_array_read_conversion instead of
26478 default_function_array_conversion where needed.
26479 (c_parser_unary_expression, c_parser_conditional_expression,
26480 c_parser_postfix_expression_after_primary, c_parser_initelt):
26481 Likewise. Call mark_exp_read where needed.
26482 (c_parser_statement_after_labels, c_parser_asm_operands,
26483 c_parser_typeof_specifier, c_parser_sizeof_expression,
26484 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
26486 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
26488 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
26489 (warn_unused_but_set_parameter): Default to warn_unused
26491 * doc/invoke.texi: Document -Wunused-but-set-variable and
26492 -Wunused-but-set-parameter.
26494 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
26495 used count variable.
26496 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
26497 when operandN variables aren't used in the body of the expander
26499 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
26500 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
26501 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
26502 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
26503 FOR_EACH_IMM_USE_ON_STMT): Likewise.
26504 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
26505 * tree.c (PROCESS_ARG): Likewise.
26507 2010-04-07 Simon Baldwin <simonb@google.com>
26509 * diagnostic.h (diagnostic_override_option_index): New macro to
26510 set a diagnostic's option_index.
26511 * c-tree.h (c_cpp_error): Add warning reason argument.
26512 * opts.c (_warning_as_error_callback): New.
26513 (register_warning_as_error_callback): Store callback for
26514 warnings enabled via enable_warning_as_error.
26515 (enable_warning_as_error): Call callback, minor code tidy.
26516 * opts.h (register_warning_as_error_callback): Declare.
26517 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
26518 response to -Werror=.
26519 (c_common_init_options): Register warning_as_error_callback in opts.c.
26520 * common.opt: Add -Wno-cpp option.
26521 * c-common.c (struct reason_option_codes_t): Map cpp warning
26522 reason codes to gcc option indexes.
26523 * (c_option_controlling_cpp_error): New function, lookup the gcc
26524 option index for a cpp warning reason code.
26525 * (c_cpp_error): Add warning reason argument, call
26526 c_option_controlling_cpp_error for diagnostic_override_option_index.
26527 * doc/invoke.texi: Document -Wno-cpp.
26529 2010-04-07 Richard Guenther <rguenther@suse.de>
26531 * ipa-reference.c (mark_load): Use get_base_address.
26532 (mark_store): Likewise.
26534 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
26535 inserting GIMPLE_NOPs into the IL.
26536 * tree-ssa-structalias.c (get_constraint_for_component_ref):
26537 Explicitly strip handled components and indirect references.
26539 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
26540 folding address expressions.
26541 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
26542 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
26543 operand_equal_p to compare decls.
26544 (ptr_deref_may_alias_decl_p): Likewise.
26545 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
26546 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
26547 Handle reversed comparison ops.
26548 * tree-sra.c (asm_visit_addr): Use get_base_address.
26549 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
26550 * ipa-reference.c (mark_address): Use get_base_address.
26552 2010-04-07 Richard Guenther <rguenther@suse.de>
26554 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
26555 Propagate constants everywhere.
26557 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26560 * tree.c (MAX_INT_CACHED_PREC): Define.
26561 (nonstandard_integer_type_cache): New array.
26562 (build_nonstandard_integer_type): Cache results for precision
26563 <= MAX_INT_CACHED_PREC.
26565 2010-04-07 Richard Guenther <rguenther@suse.de>
26567 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
26568 -fargument-noalias-global, -fargument-noalias-anything): Remove.
26569 * common.opt: Likewise.
26570 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
26571 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
26572 (nonoverlapping_memrefs_p): Likewise.
26573 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
26574 * opts.c (common_handle_option): Handle OPT_fargument_alias,
26575 OPT_fargument_noalias, OPT_fargument_noalias_anything and
26576 OPT_fargument_noalias_global for backward compatibility.
26578 2010-04-07 Richard Guenther <rguenther@suse.de>
26580 PR tree-optimization/43270
26581 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
26582 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
26583 * tree-ssa-pre.c (phi_translate_1): Adjust.
26584 (fully_constant_expression): Split out vn_reference handling to ...
26585 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
26586 Fold reads from constant strings.
26587 (vn_reference_lookup): Handle fully constant references.
26588 (vn_reference_lookup_pieces): Likewise.
26589 * Makefile.in (expmed.o-warn): Add -Wno-error.
26591 2010-04-07 Martin Jambor <mjambor@suse.cz>
26593 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
26595 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
26598 * gcc.c: Add -static-libstdc++ to list of recognized options.
26600 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26602 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
26604 2010-04-07 Richard Guenther <rguenther@suse.de>
26606 PR middle-end/42617
26607 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
26608 bases build simple mem attributes to retain points-to information.
26610 2010-04-07 Richard Guenther <rguenther@suse.de>
26612 PR middle-end/42617
26613 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
26614 preserve points-to related information.
26616 2010-04-07 Richard Guenther <rguenther@suse.de>
26618 PR middle-end/42617
26619 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
26620 discard plain indirect references.
26621 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
26622 * tree.c (tree_nop_conversion): Likewise.
26624 2010-04-07 Dodji Seketeli <dodji@redhat.com>
26627 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
26629 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
26631 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
26632 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
26634 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26636 * tree-if-conv.c: Fix indentation and comments.
26638 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26640 * tree-if-conv.c: Sort static functions in topological order.
26642 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26644 * tree-if-conv.c: Fix indentation and comments.
26646 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26648 PR middle-end/43519
26649 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
26650 lang_hooks.types.type_for_size instead of
26651 build_nonstandard_integer_type.
26652 When converting an unsigned type to signed, double its precision.
26653 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
26654 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
26655 (graphite_create_new_loop_guard): When ub + 1 wraps around,
26658 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26660 PR middle-end/43519
26661 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
26662 POINTER_PLUS_EXPR for pointer types.
26664 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26666 PR middle-end/43519
26667 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
26668 * graphite-clast-to-gimple.c: Include langhooks.h.
26669 (max_signed_precision_type): New.
26670 (max_precision_type): Takes two types as arguments.
26671 (precision_for_value): New.
26672 (precision_for_interval): New.
26673 (gcc_type_for_interval): New.
26674 (gcc_type_for_value): New.
26675 (gcc_type_for_clast_term): New.
26676 (gcc_type_for_clast_red): New.
26677 (gcc_type_for_clast_bin): New.
26678 (gcc_type_for_clast_expr): Split up into several functions.
26679 (gcc_type_for_clast_eq): Rewritten.
26680 (compute_bounds_for_level): New.
26681 (compute_type_for_level_1): New.
26682 (compute_type_for_level): New.
26683 (gcc_type_for_cloog_iv): Removed.
26684 (gcc_type_for_iv_of_clast_loop): Rewritten.
26685 (graphite_create_new_loop): Compute the lower and upper bound types
26686 with gcc_type_for_clast_expr.
26687 (graphite_create_new_loop_guard): Same.
26688 (find_cloog_iv_in_expr): Removed.
26689 (compute_cloog_iv_types_1): Removed.
26690 (compute_cloog_iv_types): Removed.
26691 (gloog): Do not call compute_cloog_iv_types.
26692 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
26693 GBB_CLOOG_IV_TYPES.
26694 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
26695 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
26696 (GBB_CLOOG_IV_TYPES): Removed.
26698 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26700 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
26701 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
26702 (detect_commutative_reduction): Same.
26704 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26706 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
26707 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
26709 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
26710 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
26711 (rewrite_commutative_reductions_out_of_ssa): Same.
26712 * passes.c (execute_function_todo): Call verify_ssa for every pass
26713 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
26714 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
26715 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
26716 with an extra argument.
26717 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
26718 verify_ssa only when the extra argument is true.
26719 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
26720 with an extra argument.
26721 (tree_transform_and_unroll_loop): Same.
26723 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26725 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
26726 for all the passes of the LNO having LOOP_CLOSED_SSA.
26727 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
26728 * tree-loop-distribution.c (pass_loop_distribution): Same.
26729 * tree-pass.h (TODO_verify_loops): Removed.
26730 * tree-ssa-loop.c (pass_tree_loop_init): Same.
26732 (pass_tree_unswitch): Same.
26733 (pass_predcom): Same.
26734 (pass_vectorize): Same.
26735 (pass_linear_transform): Same.
26736 (pass_graphite_transforms): Same.
26737 (pass_iv_canon): Same.
26738 (pass_complete_unroll): Same.
26739 (pass_complete_unrolli): Same.
26740 (pass_parallelize_loops): Same.
26741 (pass_loop_prefetch): Same.
26742 (pass_iv_optimize): Same.
26744 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
26746 PR middle-end/32824
26747 * passes.c (init_optimization_passes): Move pass_lim before
26748 pass_copy_prop and pass_dce_loop.
26750 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26753 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
26754 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
26755 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
26756 MULTI_* defines for 4 argument vpermil2p* builtins.
26758 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26760 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
26761 * config/i386/i386.c (x86_maybe_negate_const_int): New.
26762 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
26763 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
26764 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
26765 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
26766 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
26767 Use x86_maybe_negate_const_int to output insn mnemonic.
26768 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
26769 check from instruction predicate. Update comments.
26770 * config/i386/sync.md (sync_add<mode>): Use
26771 x86_maybe_negate_const_int to output insn mnemonic.
26773 2010-04-06 Jan Hubicka <jh@suse.cz>
26775 PR tree-optimization/42906
26776 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
26777 IGNORE_SELF argument. Set visited_control_parents for fully
26779 (find_obviously_necessary_stmts): Update call of
26780 mark_control_dependent_edges_necessary.
26781 (propagate_necessity): Likewise. Handle PHI edges more curefully.
26783 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26785 * config/i386/i386.md: Remove comment about 'e' and 'E'
26788 2010-04-06 Richard Guenther <rguenther@suse.de>
26790 PR tree-optimization/43627
26791 * tree-vrp.c (extract_range_from_unary_expr): Widenings
26792 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
26795 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26797 * BASE-VER: Change to 4.6.0.
26800 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
26803 2010-04-06 Richard Guenther <rguenther@suse.de>
26805 PR middle-end/43661
26806 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
26808 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26810 * doc/invoke.texi (Optimize Options): Document that LTO
26811 won't remove object access purely due to incompatible
26814 2010-04-04 Matthias Klose <doko@ubuntu.com>
26816 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
26817 Initialize variable.
26819 2010-04-03 Richard Guenther <rguenther@suse.de>
26821 PR middle-end/42509
26822 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
26823 require a non-NULL MEM_OFFSET.
26825 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
26827 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
26828 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
26829 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
26830 config/alpha/predicates.md, config/arm/arm.md,
26831 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
26832 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
26833 config/darwin9.h, config/darwin.c, config/darwin.h,
26834 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
26835 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
26836 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
26837 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
26838 config/mips/mips.md, config/mn10300/mn10300.c,
26839 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
26840 config/rs6000/aix.h, config/rs6000/dfp.md,
26841 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
26842 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
26843 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
26844 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
26845 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
26846 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
26847 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
26848 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
26849 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
26850 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
26851 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
26852 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
26853 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
26854 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
26855 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
26856 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
26857 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
26858 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
26859 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
26860 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
26861 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
26862 opt-functions.awk, opth-gen.awk, params.def, passes.c,
26863 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
26864 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
26865 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
26866 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
26867 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
26868 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
26869 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
26870 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
26871 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
26872 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
26873 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
26874 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
26875 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
26876 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
26878 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26881 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
26882 * aclocal.m4: Regenerate.
26884 2010-04-02 Richard Guenther <rguenther@suse.de>
26886 PR tree-optimization/43629
26887 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
26888 if we have seen a constant value.
26890 2010-04-02 Joseph Myers <joseph@codesourcery.com>
26892 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
26894 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
26897 * arm.c (legitimize_tls_address): Adjust call to
26898 gen_tls_load_dot_plus_four.
26899 (arm_note_pic_base): New function.
26900 (arm_cannot_copy_insn_p): Use it.
26901 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
26904 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26909 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26911 * Makefile.in ($(out_object_file)): Depend on
26912 gt-$(basename $(notdir $(out_file))).h.
26914 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
26916 * config.gcc (lm32-*-rtems*): Add t-lm32.
26918 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
26920 * config.gcc: Add lm32-*-rtems*.
26921 * config/lm32/rtems.h: New file.
26923 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
26926 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
26928 2010-04-01 Jakub Jelinek <jakub@redhat.com>
26930 * dwarf2out.c (output_compilation_unit_header): For
26931 -gdwarf-4 use version 4 instead of version 3.
26932 (output_line_info): For version 4 and above emit additional
26933 maximum ops per insn header field.
26934 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
26936 * dwarf2out.c (is_c_family, is_java): Remove.
26937 (lower_bound_default): New function.
26938 (add_bound_info, gen_descr_array_type_die): Use it.
26940 2010-04-01 Dodji Seketeli <dodji@redhat.com>
26943 * dwarf2out.c (gen_variable_die): Allow debug info for variable
26944 re-declaration when it happens in a function.
26946 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
26948 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
26949 (cgraph_remove_function_insertion_hook): Same.
26950 (cgraph_call_function_insertion_hooks): Same.
26952 2010-04-01 Richard Guenther <rguenther@suse.de>
26954 PR middle-end/43614
26955 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
26956 and TREE_THIS_VOLATILE.
26957 (copy_ref_info): Likewise.
26958 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
26959 * tree.c (build6_stat): Ignore side-effects of all but arg5
26960 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
26963 2010-04-01 Richard Guenther <rguenther@suse.de>
26965 PR tree-optimization/43607
26966 * ipa-type-escape.c (check_call): Do not access non-existing
26969 2010-04-01 Richard Guenther <rguenther@suse.de>
26971 PR middle-end/43602
26973 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
26974 Jack Howarth <howarth@bromo.med.uc.edu>
26976 * tree-profile.c (tree_init_ic_make_global_vars): Make static
26979 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26981 * doc/install.texi (Prerequisites): Document libelf usability on
26982 IRIX 5/6 and Solaris 2.
26983 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
26984 Update GNU as, GNU ld requirements.
26985 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
26986 Document Sun Studio compiler download.
26987 Update and simplify as, ld recommendations.
26988 (Specific, *-*-solaris2.7): Note obsoletion, removal.
26990 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26992 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
26993 with_tune_32 to pentium4.
26995 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
26997 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
26999 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27001 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
27002 obsoletion, removal.
27004 Document GNU as requirement.
27005 Update configure requirements.
27006 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
27007 Recomment IRIX 6.5.18+.
27008 Document IDF/IDL requirement.
27009 Document GNU as requirement.
27010 Document GNU ld bootstrap failure.
27011 Remove freeware.sgi.com reference.
27013 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27015 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
27016 UNIX V4.0, V5.0 obsoletion, removal.
27017 Remove --with-gc=simple reference.
27018 Update VM requirements during bootstrap.
27019 Remove -oldas bootstrap description.
27020 Update binutils reference.
27021 Remove comparison failure note.
27023 2010-03-31 Richard Guenther <rguenther@suse.de>
27024 Zdenek Dvorak <ook@ucw.cz>
27025 Sebastian Pop <sebastian.pop@amd.com>
27027 PR middle-end/43464
27028 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
27029 with multiple arguments.
27030 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
27032 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
27034 * graphite-dependences.c (print_pddr): Call print_pdr with an
27036 * graphite-poly.c (debug_pdr): Add an extra argument for the
27039 (print_pbb_domain): Same.
27041 (print_scop_context): Same.
27042 (print_scop): Same.
27043 (print_cloog): Same.
27044 (debug_pbb_domain): Same.
27046 (print_pdrs): Same.
27047 (debug_pdrs): Same.
27048 (debug_scop_context): Same.
27049 (debug_scop): Same.
27050 (debug_cloog): Same.
27051 (print_scop_params): Same.
27052 (debug_scop_params): Same.
27053 (print_iteration_domain): Same.
27054 (print_iteration_domains): Same.
27055 (debug_iteration_domain): Same.
27056 (debug_iteration_domains): Same.
27057 (print_scattering_function): Same.
27058 (print_scattering_functions): Same.
27059 (debug_scattering_function): Same.
27060 (debug_scattering_functions): Same.
27061 * graphite-poly.h (debug_pdr): Update declaration.
27063 (print_pbb_domain): Same.
27065 (print_scop_context): Same.
27066 (print_scop): Same.
27067 (print_cloog): Same.
27068 (debug_pbb_domain): Same.
27070 (print_pdrs): Same.
27071 (debug_pdrs): Same.
27072 (debug_scop_context): Same.
27073 (debug_scop): Same.
27074 (debug_cloog): Same.
27075 (print_scop_params): Same.
27076 (debug_scop_params): Same.
27077 (print_iteration_domain): Same.
27078 (print_iteration_domains): Same.
27079 (debug_iteration_domain): Same.
27080 (debug_iteration_domains): Same.
27081 (print_scattering_function): Same.
27082 (print_scattering_functions): Same.
27083 (debug_scattering_function): Same.
27084 (debug_scattering_functions): Same.
27086 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
27088 * graphite-poly.c (print_scattering_function_1): New.
27089 (print_scattering_function): Call it.
27090 (print_scop_params): Remove spaces at the end of lines.
27091 (print_cloog): New.
27092 (debug_cloog): New.
27093 * graphite-poly.h (print_cloog): Declared.
27094 (debug_cloog): Declared.
27096 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
27098 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
27100 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
27101 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
27102 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
27103 to switch between adding the IV bump in loop->latch or in loop->header.
27105 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
27107 * graphite-poly.c (print_scattering_function): Pretty print following
27108 the scoplib format.
27110 (print_pbb_domain): Same.
27111 (dump_gbb_cases): Same.
27112 (dump_gbb_conditions): Same.
27113 (print_pdrs): Same.
27115 (print_scop_params): Same.
27116 (print_scop_context): Same.
27117 (print_scop): Same.
27118 (print_pbb_body): New.
27119 (lst_indent_to): New.
27120 (print_lst): Start new lines with a #.
27121 * graphite-poly.h (pbb_bb): New.
27122 (pbb_index): Use pbb_bb.
27123 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
27125 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
27127 2010-03-31 Jakub Jelinek <jakub@redhat.com>
27129 * dwarf2out.c (size_of_die): For -gdwarf-4 use
27130 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
27131 and 0 instead of 1 for dw_val_class_flag.
27132 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
27133 dw_val_class_range_list, dw_val_class_loc_list,
27134 dw_val_class_lineptr and dw_val_class_macptr, use
27135 DW_FORM_flag_present for dw_val_class_flag and
27136 DW_FORM_exprloc for dw_val_class_loc.
27137 (output_die): For -gdwarf-4 print dw_val_class_loc
27138 size as uleb128 instead of 1 or 2 bytes and don't print
27139 anything for dw_val_class_flag.
27141 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
27142 instead of cselib_lookup following by tweaking locs->setting_insn.
27145 * cselib.c (cselib_process_insn): Clear cselib_current_insn
27146 even before returning from label, setjmp call or volatile asm
27149 2010-03-31 Richard Guenther <rguenther@suse.de>
27151 PR middle-end/43600
27152 * cgraphunit.c (cgraph_output_in_order): Do not allocate
27153 temporary data on stack.
27155 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27157 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
27158 (PUSHSECTION_ASM_OP): Remove.
27159 (POPSECTION_ASM_OP): Remove.
27160 (PUSHSECTION_FORMAT): Remove.
27161 * config/sol2.h (PUSHSECTION_FORMAT): Define.
27162 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
27163 * config/sol2.c (solaris_output_init_fini): Use it.
27165 2010-03-31 Jie Zhang <jie@codesourcery.com>
27168 * opt-functions.awk (var_type_struct): Use signed char type
27169 for simple variables.
27171 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27173 * config/sol2.c: Include output.h.
27174 (solaris_assemble_visibility): New function.
27175 * config/t-sol2 (sol2.o): Add output.h dependency.
27176 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
27177 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
27180 2010-03-31 Jakub Jelinek <jakub@redhat.com>
27183 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
27184 V2SImode or XFmode on PRE_DEC.
27187 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
27190 2010-03-31 Jie Zhang <jie@codesourcery.com>
27193 * reload.h (caller_save_initialized_p): Declare.
27194 * toplev.c (backend_init_target): Don't call
27195 init_caller_save but set caller_save_initialized_p to false.
27196 * caller-save.c (caller_save_initialized_p): Define.
27197 (init_caller_save): Check caller_save_initialized_p.
27198 * ira.c (ira): Call init_caller_save if flag_caller_saves.
27200 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27203 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
27204 and soft-fp/t-softfp to tmake_file.
27205 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
27206 (LIBGCC2_TF_CEXT): Define.
27209 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
27212 * cselib.c (n_useless_values): Document handling of debug locs.
27213 (n_useless_debug_values, n_debug_values): New variables.
27214 (new_elt_loc_list): Don't add to debug values, keep count.
27215 (promote_debug_loc): New.
27216 (cselib_reset_table): Zero new variables.
27217 (entry_and_rtx_equal_p): Promote debug locs.
27218 (discard_useless_locs): Increment n_useless_debug_values for
27220 (remove_useless_values): Adjust n_useless_values and n_debug_values
27221 with n_useless_debug_values.
27222 (add_mem_for_addr): Promote debug locs.
27223 (cselib_lookup_mem): Likewise.
27224 (cselib_lookup_addr): Renamed to...
27225 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
27226 (cselib_log_lookup): ... this. Turn into...
27227 (cselib_lookup_addr): ... new wrapper.
27228 (cselib_lookup_from_insn): New.
27229 (cselib_invalidate_regno): Increment n_useless_debug_values for
27231 (cselib_invalidate_mem): Likewise.
27232 (cselib_process_insn): Take n_deleted and n_debug_values into
27233 account to guard remove_useless_value call.
27234 (cselib_finish): Zero n_useless_debug_values.
27235 * cselib.h (cselib_lookup_from_insn): Declare.
27236 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
27237 (sched_analyze_2): Likewise.
27239 2010-03-30 Jakub Jelinek <jakub@redhat.com>
27241 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
27243 (adjust_mems): Replace narrowing SUBREG of expression containing
27244 just PLUS, MINUS, MULT and ASHIFT of registers and constants
27245 with operations in the narrower mode.
27248 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
27249 regs_invalidated_by_call instead all call_used_reg_set registers.
27251 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
27253 PR middle-end/43430
27254 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
27255 pointer comparisons with types_compatible_p.
27256 * tree-vect-stmts.c (vectorizable_call): Same.
27257 (vectorizable_condition): Same.
27259 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27261 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
27262 stack check if the mask would be zero.
27264 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
27265 Jack Howarth <howarth@bromo.med.uc.edu>
27267 * tree-profile.c (tree_init_ic_make_global_vars): Make static
27270 2010-03-30 Joseph Myers <joseph@codesourcery.com>
27273 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
27275 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
27276 Include ___unordxf2 and ___unordtf2.
27277 * config/i386/libgcc-glibc.ver: Do not define inheritance from
27280 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
27282 * config/lm32/t-lm32: New file.
27283 * config.gcc: Use the above file when targetting lm32.
27285 2010-03-28 Duncan Sands <baldrick@free.fr>
27287 * Makefile.in (PLUGIN_HEADERS): Add except.h.
27289 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
27291 PR middle-end/43431
27292 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
27293 Improve vectorization cost model diagnostic.
27295 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
27297 PR middle-end/43436
27298 * tree-vect-data-refs.c (vect_analyze_data_refs): When
27299 compute_data_dependences_for_loop returns false, early exit
27300 and output an extra diagnostic for the failed data reference
27303 2010-03-29 Richard Guenther <rguenther@suse.de>
27305 PR tree-optimization/43560
27306 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
27307 (can_sm_ref_p): Treat stores to readonly locations as trapping.
27309 2010-03-29 Jie Zhang <jie@codesourcery.com>
27312 * toplev.c (process_options): Set optimization_default_node
27313 and optimization_current_node.
27314 * opts.c (decode_options): Don't set optimization_default_node
27315 and optimization_current_node.
27317 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
27319 * config/rtems.h: Abandon -qrtems_debug.
27321 2010-03-28 Jan Hubicka <jh@suse.cz>
27323 PR tree-optimization/43505
27324 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
27325 map should not be copied.
27327 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27329 PR middle-end/41674
27330 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
27331 cdtors, set DECL_PRESERVE_P.
27332 * ipa.c (cgraph_externally_visible_p): Return true if declaration
27333 should be preseved.
27335 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
27337 PR tree-optimization/43528
27338 * stor-layout.c (place_field): Check that constant fits into
27339 unsigned HWI when skipping calculation of MS bitfield layout.
27341 2010-03-27 Jan Hubicka <jh@suse.cz>
27343 PR middle-end/43391
27344 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
27345 notice_global_symbol work.
27347 2010-03-27 Jakub Jelinek <jakub@redhat.com>
27349 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
27350 instead of dwarf2out_decl.
27351 (struct var_loc_node): Remove section_label field.
27352 (dwarf2out_function_decl): New function.
27353 (dwarf2out_var_location): Don't set section_label field.
27354 (dwarf2out_begin_function): Don't empty decl_loc_table here.
27356 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
27358 PR tree-optimization/43544
27359 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27360 First argument for builtin vectorized function hook is now a
27361 tree to be able to distinguish between machine specific and
27363 * targhooks.c (default_builtin_vectorized_function): Ditto.
27364 * targhooks.h (default_builtin_vectorized_function): Ditto.
27365 * target.h (struct gcc_target): Ditto.
27366 * tree-vect-stmts.c (vectorizable_function): Ditto.
27367 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
27368 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
27371 2010-03-26 Joseph Myers <joseph@codesourcery.com>
27374 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
27375 nested binding iff it is a FUNCTION_DECL.
27376 (store_parm_decls_newstyle): Pass nested=true to bind for
27377 FUNCTION_DECLs amongst parameters.
27379 2010-03-26 Jakub Jelinek <jakub@redhat.com>
27381 * var-tracking.c (vt_expand_loc_callback): Don't run
27382 cselib_expand_value_rtx_cb in dummy mode if
27383 cselib_dummy_expand_value_rtx_cb returned false.
27385 * var-tracking.c (emit_note_insn_var_location): For one part
27386 notes with offset 0, don't add EXPR_LIST around the location.
27387 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
27388 add_location_or_const_value_attribute): Adjust for that change.
27391 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
27392 into first operand and location into second.
27393 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
27394 dw_cfi_oprnd_loc for DW_CFA_expression.
27395 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
27396 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
27397 assume first argument is regnum and second argument is location.
27399 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
27402 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
27403 of scratch register to DImode. Split to DImode comparison operator.
27404 Use SImode subreg of scratch register in the multiplication.
27405 (*cmp_sadd_sidi): Ditto.
27406 (*cmp_ssub_si): Ditto.
27407 (*cmp_ssub_sidi): Ditto.
27409 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
27412 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
27413 Remove invalid assert and wrong comment.
27415 2010-03-26 Jakub Jelinek <jakub@redhat.com>
27418 * flags.h (final_insns_dump_p): New extern.
27419 * final.c (final_insns_dump_p): New variable.
27420 (rest_of_clean_state): Set it before -fdump-final-insns=
27421 dumping, clear afterwards.
27422 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
27423 MEM_ALIAS_SET on MEMs.
27425 2010-03-26 David S. Miller <davem@davemloft.net>
27427 * configure.ac: Fix sparc GOTDATA_OP bug check.
27428 * configure: Rebuild.
27430 2010-03-26 Alan Modra <amodra@gmail.com>
27432 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
27434 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27436 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
27437 TLS_SECTION_ASM_FLAG.
27439 2010-03-25 Jakub Jelinek <jakub@redhat.com>
27442 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
27443 Clear first_function_block_is_cold.
27446 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
27447 argument if the argument is truth_value_p.
27449 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27451 * config/rs6000/constraints.md: Update copyright year for my changes.
27454 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
27455 used in reg+reg addressing, swap registers.
27457 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27460 * target.h (struct gcc_target): Add code_end hook.
27461 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
27462 if not yet defined.
27463 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
27464 * toplev.c (compile_file): Call targetm.asm_out.code_end
27465 hook before unwind info/debug info output.
27466 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
27467 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
27468 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27469 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
27470 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27471 * config/i386/i386.c (ix86_file_end): Renamed to...
27472 (ix86_code_end): ... this. Make static. Don't call
27473 file_end_indicate_exec_stack. Emit unwind info using
27474 final_start_function/final_end_function.
27475 (darwin_x86_file_end): Remove.
27476 (TARGET_ASM_CODE_END): Define.
27477 * config/i386/i386.h (TARGET_ASM_FILE_END,
27478 NEED_INDICATE_EXEC_STACK): Don't define.
27479 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
27480 (TARGET_ASM_FILE_END): Define to darwin_file_end.
27481 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
27482 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
27485 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
27486 at the beginning and final_end_function at the end.
27487 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27489 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27491 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
27492 and Sun as TLS syntax.
27493 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
27494 * configure: Regenerate.
27495 * config.in: Regenerate.
27496 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
27497 (default_elf_asm_named_section): Use it.
27498 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
27499 (i386_output_dwarf_dtprel): Likewise.
27500 (output_addr_const_extra): Likewise.
27501 (output_pic_addr_const): Lowercase @GOTTPOFF.
27502 (output_addr_const_extra): Likewise.
27503 (output_pic_addr_const): Lowercase @GOTNTPOFF.
27504 (output_addr_const_extra): Likewise.
27505 (output_pic_addr_const): Lowercase @INDNTPOFF.
27506 (output_addr_const_extra): Likewise.
27507 (output_pic_addr_const): Lowercase @NTPOFF.
27508 (output_addr_const_extra): Likewise.
27509 (output_pic_addr_const): Lowercase @TPOFF.
27510 (output_addr_const_extra): Likewise.
27511 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
27512 (*tls_global_dynamic_64): Likewise.
27513 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
27514 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
27516 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
27517 (ASM_OUTPUT_TLS_COMMON): Use it.
27518 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
27521 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
27522 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27523 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
27524 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
27525 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27526 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
27528 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27530 * config/i386/i386.c (override_options): Don't accept
27531 -mtls-dialect=sun any longer.
27532 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
27533 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
27534 (*tls_local_dynamic_base_32_sun): Likewise.
27535 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27537 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27540 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27541 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
27544 * ira.c (adjust_cleared_regs): New function.
27545 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
27549 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
27551 * expr.c (expand_expr_real): Restore previous
27552 curr_insn_source_location and curr_insn_block after
27553 expand_expr_real_1 call.
27554 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
27555 instead of expand_expr_real_1.
27557 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
27559 PR rtl-optimization/43413
27560 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
27563 2010-03-22 James E. Wilson <wilson@codesourcery.com>
27566 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
27567 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
27569 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
27571 * config/i386/i386.c (ix86_target_string): Add -mfma.
27572 Fix a typo in comment.
27574 2010-03-22 Mike Stump <mikestump@comcast.net>
27577 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
27578 Don't overly align based upon packed packed fields.
27580 2010-03-22 Jason Merrill <jason@redhat.com>
27582 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
27583 Use () rather than [], and move before the element type.
27585 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27587 * doc/configfiles.texi (Configuration Files): Removed
27588 fixinc/Makefile*, intl/Makefile.*.
27589 * doc/makefile.texi: Fixed markup. Abstract from version
27590 control system used.
27591 (Makefile): Removed obsolete java/parse.y example.
27592 * doc/sourcebuild.texi: Likewise.
27593 (Top Level): Added config, gnattools, libdecnumber, libgcc,
27594 libgomp, libssp. Removed fastjar.
27595 (Miscellaneous Docs): Clarify location.
27596 Added COPYING3, COPYING3.LIB.
27597 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
27599 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27602 * config/i386/i386.c (x86_function_profiler)
27603 [!NO_PROFILE_COUNTERS]: Fix typo.
27604 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
27607 2010-03-22 Janis Johnson <janis187@us.ibm.com>
27608 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27610 * doc/sourcebuild.texi (Test Directives): Split into six
27611 subsections, with most of the current text in new subsections
27612 Directives, Selectors, and Final Actions.
27613 (Directives): Split list of test directives into multiple
27615 (Selectors): Describe use and syntax of selectors.
27616 (Effective-Target Keywords): Describe all existing keywords.
27617 (Add Options): Describe features for dg-add-options.
27618 (Require Support): Describe variants of dg-require-support.
27619 (Final Actions): Describe commands to use in dg-final.
27621 2010-03-22 Michael Matz <matz@suse.de>
27623 PR middle-end/43475
27624 * recog.c (validate_replace_rtx_group): Replace also in
27625 REG_EQUAL and REG_EQUIV notes.
27627 2010-03-22 Richard Guenther <rguenther@suse.de>
27629 PR tree-optimization/43390
27630 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
27631 sure vector extracts are type correct.
27633 2010-03-22 Richard Guenther <rguenther@suse.de>
27635 PR middle-end/40106
27636 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
27637 x * sqrt (x) even when optimizing for size if the target
27638 has native support for sqrt.
27640 2010-03-22 Jakub Jelinek <jakub@redhat.com>
27642 * varasm.c (make_decl_rtl_for_debug): Also clear
27643 flag_mudflap for the duration of make_decl_rtl call.
27646 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
27647 locs from preserved VALUEs.
27649 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27651 PR middle-end/42718
27652 * pa.md (movmemsi): Set align to one if zero.
27653 (movmemdi): Likewise.
27655 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
27658 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
27659 with their corresponding prologue pushes.
27661 2010-03-20 Andrew Pinski <pinskia@gmail.com>
27664 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
27665 at the begining or end.
27666 (spu_expand_epilogue): Likewise.
27668 2010-03-20 Richard Guenther <rguenther@suse.de>
27670 PR rtl-optimization/43438
27671 * combine.c (make_extraction): Properly zero-/sign-extend an
27672 extraction of the low part of a CONST_INT. Also handle
27675 2010-03-19 Mike Stump <mikestump@comcast.net>
27677 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
27678 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
27679 (override_options): Use SUBTARGET32_DEFAULT_CPU.
27681 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
27684 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
27687 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
27689 PR rtl-optimization/42258
27690 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
27691 use that may match DEF.
27694 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
27695 the cost of loading the constant rather than assuming
27697 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
27698 outer code is AND, do the same tests as the andsi3 expander and
27699 return COSTS_N_INSNS (1) if and is cheap.
27701 * optabs.c (avoid_expensive_constant): Fix formatting.
27703 2010-03-19 Michael Matz <matz@suse.de>
27706 * attribs.c (decl_attributes): When rebuilding a function pointer
27707 type use the same qualifiers as the original pointer type.
27709 2010-03-19 Martin Jambor <mjambor@suse.cz>
27711 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
27712 and is_gimple_ip_invariant_address.
27714 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27717 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27719 * config/arm/arm.c (arm_override_options): Turn off
27720 flag_dwarf2_cfi_asm for AAPCS variants.
27722 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27725 * config/arm/arm.c (emit_multi_reg_push): Update comments.
27726 Use PRE_MODIFY instead of PRE_DEC.
27727 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
27728 (vfp_emit_fstmd): Likewise.
27730 2010-03-19 Michael Matz <matz@suse.de>
27733 * builtins.c (expand_builtin_interclass_mathfn,
27734 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
27737 2010-03-19 Richard Guenther <rguenther@suse.de>
27739 PR tree-optimization/43415
27740 * tree-ssa-pre.c (phi_translate): Split out worker to ...
27741 (phi_translate_1): ... this.
27742 (phi_translate): Move all caching here. Cache all NARY
27743 and REFERENCE translations.
27745 2010-03-19 David S. Miller <davem@davemloft.net>
27747 With help from Eric Botcazou.
27748 * config/sparc/sparc.c: Include dwarf2out.h.
27749 (emit_pic_helper): Delete.
27750 (pic_helper_symbol_name): Delete.
27751 (pic_helper_emitted_p): Delete.
27752 (pic_helper_needed): New.
27753 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
27754 (get_pc_thunk_name): New.
27755 (load_pic_register): Remove 'delay_pic_helper' arg. Use
27756 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
27757 Set pic_helper_needed to true. Don't call emit_pic_helper.
27758 (sparc_expand_prologue): Update load_pic_register call.
27759 (sparc_output_mi_thunk): Likewise.
27760 (sparc_file_end): Emit a hidden comdat symbol for the PIC
27761 thunk if possible. Output CFI information as needed.
27763 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27764 Jack Howarth <howarth@bromo.med.uc.edu>
27767 * config/i386/i386.h: Fix ABI on darwin x86-32.
27769 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
27771 * tree.h: Declare make_decl_rtl_for_debug.
27772 * varasm.c (make_decl_rtl_for_debug): New.
27773 * dwarf2out.c (rtl_for_decl_location): Call it.
27774 * cfgexpand.c (expand_debug_expr): Call it.
27776 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27779 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
27783 * var-tracking.c (vt_init_cfa_base): Do nothing if
27784 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
27786 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
27789 * var-tracking.c (canonicalize_vars_star): New.
27790 (dataflow_post_merge_adjust): Use it.
27792 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27795 * var-tracking.c (non_suitable_const): New function.
27796 (add_uses): For DEBUG_INSNs with constants, don't record any
27797 value, instead just the constant value itself.
27798 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
27799 is not VAR_LOC_UNKNOWN_P, set var to the constant.
27800 (emit_notes_in_bb): Likewise.
27801 (emit_note_insn_var_location): For onepart variables if
27802 cur_loc is a VOIDmode constant, use DECL_MODE.
27804 2010-03-18 Martin Jambor <mjambor@suse.cz>
27806 PR middle-end/42450
27807 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
27808 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
27809 all non-clones. Moved call redirection...
27810 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
27811 (cgraph_materialize_all_clones): Dispose of all
27812 combined_args_to_skip bitmaps.
27813 (verify_cgraph_node): Do not check for edges pointing to wrong
27814 nodes in inline clones.
27815 * tree-inline.c (copy_bb): Call
27816 cgraph_redirect_edge_call_stmt_to_callee.
27817 * ipa.c (cgraph_remove_unreachable_nodes): Call
27818 cgraph_node_remove_callees even when there are used clones.
27820 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27822 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
27824 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27827 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
27830 2010-03-18 Michael Matz <matz@suse.de>
27832 PR middle-end/43419
27833 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
27834 into sqrt(x) if we need to preserve signed zeros.
27836 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
27837 Eric Botcazou <ebotcazou@adacore.com>
27839 PR rtl-optimization/43360
27840 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
27841 note if we don't know its invariant status.
27843 2010-03-18 Michael Matz <matz@suse.de>
27845 PR tree-optimization/43402
27846 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
27847 PHI chains of ssa names registered for update.
27849 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
27852 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
27853 non-offsettable and pre_modify update addressing.
27854 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
27855 and "2" alternatives "#".
27856 (*movdd_softfloat32): Make all alternatives "#";
27857 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
27858 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
27859 (*movdf_softfloat32): Make all alternatives "#";
27860 (movdi): Use the new DIFD mode iterator to create a common splitter
27861 for movdi, movdf and movdd patterns.
27863 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
27865 * common.opt (dumpdir): Remove redundant tab.
27867 2010-03-17 Martin Jambor <mjambor@suse.cz>
27869 PR tree-optimization/43347
27870 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
27871 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
27873 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
27875 PR rtl-optimization/42216
27876 * regrename.c (create_new_chain): New function, broken out from...
27877 (scan_rtx_reg): ... here. Call it. Handle the case where we are
27878 appending a use to an empty chain.
27879 (build_def_use): Remove previous changes that convert OP_INOUT to
27880 OP_OUT operands; instead detect the case where an OP_INOUT operand
27881 uses a previously untracked register and create an empty chain for it.
27883 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27885 * doc/extend.texi (Function Attributes): Rewrite unfinished
27886 sentence in ms_abi documentation.
27888 2010-03-17 Alan Modra <amodra@gmail.com>
27890 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
27891 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
27892 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
27893 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
27895 2010-03-16 Richard Henderson <rth@redhat.com>
27897 PR middle-end/43365
27898 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
27899 (lower_try_finally): Save and restore eh_seq around the expansion
27900 of the try-finally.
27902 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27904 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
27905 statements before splitting block.
27907 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27909 * doc/sourcebuild.texi (Testsuites): Fix markup.
27910 Use pathnames relative to gcc/testsuite.
27911 (Test Directives): Move description of how timeout is determined.
27912 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
27913 (C Tests): Correct gcc.misc-tests directory.
27914 Framework tests now live in gcc.test-framework.
27916 2010-03-16 Richard Guenther <rguenther@suse.de>
27918 PR middle-end/43379
27919 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
27920 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
27922 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27923 Alexandre Oliva <aoliva@redhat.com>
27925 PR tree-optimization/42917
27926 * lambda-code.c (remove_iv): Skip debug statements.
27927 (lambda_loopnest_to_gcc_loopnest): Likewise.
27928 (not_interesting_stmt): Debug statements are not interesting.
27930 2010-03-16 Jakub Jelinek <jakub@redhat.com>
27934 * cselib.c (cselib_preserve_constants,
27935 cfa_base_preserved_val): New static variables.
27936 (preserve_only_constants): New function.
27937 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
27938 clear its REG_VALUES. If cselib_preserve_constants, don't
27939 empty the whole hash table, but preserve there VALUEs with constants,
27940 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
27941 (cselib_preserve_cfa_base_value): New function.
27942 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
27943 (cselib_init): Change argument to int bitfield. Set
27944 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
27946 (cselib_finish): Clear cselib_preserve_constants and
27947 cfa_base_preserved_val.
27948 * cselib.h (enum cselib_record_what): New enum.
27949 (cselib_init): Change argument to int.
27950 (cselib_preserve_cfa_base_value): New prototype.
27951 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
27952 * dse.c (dse_step1): Likewise.
27953 * cfgcleanup.c (thread_jump): Likewise.
27954 * sched-deps.c (sched_analyze): Likewise.
27955 * gcse.c (local_cprop_pass): Likewise.
27956 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
27957 If FN is non-NULL, call the callback always and whenever it returns
27958 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
27959 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
27960 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
27961 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
27962 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
27963 * var-tracking.c: Include recog.h.
27964 (bb_stack_adjust_offset): Remove.
27965 (vt_stack_adjustments): Don't call it, instead just gather the
27966 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
27967 (adjust_stack_reference): Remove.
27968 (compute_cfa_pointer): New function.
27969 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
27970 (struct adjust_mem_data): New type.
27971 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
27973 (get_address_mode): New function.
27974 (replace_expr_with_values): Use it.
27975 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
27976 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
27977 (adjust_sets): Remove.
27978 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
27979 Use get_address_mode.
27980 (get_adjusted_src): Remove.
27981 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
27982 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
27983 (add_with_sets): Don't call adjust_sets.
27984 (fp_setter, vt_init_cfa_base): New functions.
27985 (vt_initialize): Change return type to bool. Move most of pool etc.
27986 initialization to the beginning of the function from end. Pass
27987 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
27988 If !frame_pointer_needed, call vt_stack_adjustment before mos
27989 vector is filled, call vt_init_cfa_base if argp/framep has been
27990 eliminated to sp. If frame_pointer_needed and argp/framep has
27991 been eliminated to hard frame pointer, set
27992 hard_frame_pointer_adjustment and call vt_init_cfa_base after
27993 encountering fp setter in the prologue. For MO_ADJUST, call
27994 log_op_type before pusing the op into mos vector, not afterwards.
27995 Call adjust_insn before cselib_process_insn/add_with_sets,
27996 call cancel_changes (0) afterwards.
27997 (variable_tracking_main_1): Adjust for vt_initialize calling
27998 vt_stack_adjustments and returning whether it succeeded or not.
28000 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
28002 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
28005 2010-03-15 Jakub Jelinek <jakub@redhat.com>
28007 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
28009 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
28010 drap_reg has not been set.
28012 2010-03-15 Michael Matz <matz@suse.de>
28014 PR middle-end/43300
28015 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
28016 use it to expand block copies.
28017 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
28018 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
28019 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
28021 2010-03-15 Richard Guenther <rguenther@suse.de>
28023 PR tree-optimization/43367
28024 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
28027 2010-03-15 Richard Guenther <rguenther@suse.de>
28029 PR tree-optimization/43317
28030 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
28032 2010-03-15 Martin Jambor <mjambor@suse.cz>
28034 PR tree-optimization/43141
28035 * tree-sra.c (create_abstract_origin): New function.
28036 (modify_function): Call create_abstract_origin.
28038 2010-03-15 Chris Demetriou <cgd@google.com>
28040 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
28043 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28045 PR middle-end/43354
28046 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
28047 call insert_out_of_ssa_copy for default definitions.
28049 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28051 * graphite-clast-to-gimple.c (my_long_long): Defined.
28052 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
28053 * graphite-sese-to-poly.c (my_long_long): Defined.
28054 (scop_ivs_can_be_represented): Use it.
28056 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28058 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
28059 graphite-max-bbs-per-function, and loop-block-tile-size.
28060 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
28062 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
28064 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28066 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
28067 forward declaration.
28068 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
28069 (add_upper_bounds_from_estimated_nit): New.
28070 (build_loop_iteration_domains): Use it.
28072 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28074 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
28076 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28078 PR middle-end/43306
28079 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
28080 should be an INTEGER_CST. Also handle CASE_CONVERT.
28082 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28084 * graphite.c (graphite_initialize): To bound the number of bbs per
28085 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
28086 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
28087 * doc/invoke.texi: Document it.
28089 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28091 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
28092 * graphite-sese-to-poly.h (build_poly_scop): Same.
28094 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28096 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
28097 the number of parameters in the scop. Use as an upper bound
28098 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
28099 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
28100 * doc/invoke.texi: Document it.
28102 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
28104 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
28105 * doc/c-tree.texi: Remove.
28106 * doc/generic.texi: Merge c-tree.texi here.
28107 * doc/gccint.texi (Trees): Remove menu entry.
28108 (c-tree.texi): Remove @include.
28109 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
28110 * doc/languages.texi (Reading RTL): Ditto.
28112 2010-03-12 Steve Ellcey <sje@cup.hp.com>
28115 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
28117 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28119 PR middle-end/42431
28120 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
28121 code added to work around reload clobbering CONST insns.
28123 2010-03-12 Jakub Jelinek <jakub@redhat.com>
28125 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
28126 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
28127 (cselib_preserve_only_values): Remove retain argument, don't
28128 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
28129 * cselib.h (cselib_preserve_only_values): Remove retain argument.
28130 * var-tracking.c (micro_operation): Move insn field before union.
28131 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
28132 (struct variable_tracking_info_def): Remove n_mos field, change
28133 mos into a vector of micro_operations.
28134 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
28135 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
28136 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
28137 changing into a vector.
28138 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
28139 come before all other uops generated by add_stores.
28140 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
28142 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
28143 a vector. Run just one pass over the bbs instead of separate counting
28144 and computation phase.
28145 (vt_finalize): Free VTI (bb)->mos vector instead of array.
28148 * tree-inline.c (remap_decls): Put old_var rather than origin_var
28149 into *nonlocalized_list vector.
28150 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
28151 even if origin is non-NULL.
28152 (gen_variable_die): Likewise.
28153 (process_scope_var): Don't change origin.
28154 (gen_decl_die): Likewise.
28155 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
28156 before adding new edges instead of after it, fix moving over
28159 2010-03-11 David S. Miller <davem@davemloft.net>
28161 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
28163 * configure: Rebuild.
28165 2010-03-11 Martin Jambor <mjambor@suse.cz>
28167 PR tree-optimization/43257
28168 * tree.c (assign_assembler_name_if_neeeded): New function.
28169 (free_lang_data_in_cgraph): Assembler name assignment moved to the
28170 above new function.
28171 * tree.h (assign_assembler_name_if_neeeded): Declare.
28172 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
28173 the function if needed.
28175 2010-03-11 Chris Demetriou <cgd@google.com>
28177 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
28178 include/stdint-gcc.h, and include/stdint.h world-readable.
28180 2010-03-11 Richard Guenther <rguenther@suse.de>
28182 PR tree-optimization/43255
28183 * tree-vrp.c (process_assert_insertions_for): Do not insert
28184 asserts for trivial conditions.
28186 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28188 PR tree-optimization/43280
28189 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
28190 generation. Move calculation of size out of the if branch.
28191 (find_bswap): Modify compare number generation.
28193 2010-03-11 Richard Guenther <rguenther@suse.de>
28196 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
28197 (input_gimple_stmt): Fixup handled component types during
28198 operand read. Also fix up decls in ADDR_EXPRs.
28200 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
28202 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
28203 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
28205 2010-03-10 Jan Hubicka <jh@suse.cz>
28208 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
28209 * varasm.c (get_variable_section): Don't do that here...
28210 (make_decl_rtl): ... and here.
28211 (do_assemble_alias): Produce decl RTL.
28212 (assemble_alias): Likewise.
28214 2010-03-10 Jakub Jelinek <jakub@redhat.com>
28217 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
28218 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
28220 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
28221 (based_loc_descr): Only express drap or vdrap regno based expressions
28222 using DW_OP_fbreg when not optimizing.
28223 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
28224 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
28225 REG_CFA_SET_VDRAP note.
28227 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
28229 PR tree-optimization/43236
28230 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
28231 error in calculation of base address in reverse iteration case.
28232 (generate_builtin): Take number of latch executions if the statement
28235 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
28237 PR middle-end/42859
28238 * tree-eh.c: Include pointer-set.h.
28239 (lower_eh_dispatch): Filter out duplicate case labels and
28240 remove the unneeded edge when the label is unused. Return
28241 true when some edges are removed.
28242 (execute_lower_eh_dispatch): When any lowering resulted in
28243 removing an edge, also delete unreachable blocks.
28245 2010-03-10 Jakub Jelinek <jakub@redhat.com>
28248 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28249 UNSPEC_MACHOPIC_OFFSET.
28251 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
28254 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
28255 (m68k_delegitimize_address): New function.
28257 2010-03-09 Jakub Jelinek <jakub@redhat.com>
28260 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
28263 * var-tracking.c (adjust_sets): New function.
28264 (count_with_sets, add_with_sets): Use it.
28265 (get_adjusted_src): New inline function.
28266 (add_stores): Use it.
28269 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
28270 call cselib_dummy_expand_value_rtx_cb instead of
28271 cselib_expand_value_rtx_cb.
28274 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
28275 * config/i386/i386.c: Include debug.h and dwarf2out.h.
28276 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
28277 and .cfi_endproc around the pic thunks.
28278 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
28279 all queued unwind info register saves are saved before the call.
28280 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
28281 considered as sp-=4 for unwind info and the pop as sp+=4 which
28282 also clobbers dest, but doesn't actually restore it.
28285 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
28286 RTX_FRAME_RELATED_P.
28288 2010-03-09 Jie Zhang <jie@codesourcery.com>
28290 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
28291 whitespaces in output template.
28293 2010-03-09 Jie Zhang <jie@codesourcery.com>
28295 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
28296 out array boundary.
28298 2010-03-08 Jakub Jelinek <jakub@redhat.com>
28300 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
28301 builtins.exp in a separate job.
28303 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28305 * graphite-sese-to-poly.c (add_param_constraints): Use
28306 lower_bound_in_type and upper_bound_in_type.
28308 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28310 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
28311 instead of unsigned_type_node.
28313 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28314 Reza Yazdani <reza.yazdani@amd.com>
28316 PR middle-end/43065
28317 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
28318 on pointer type parameters.
28320 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
28322 PR middle-end/42644
28323 PR middle-end/42130
28324 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
28325 handle conversions from pointer to integers.
28326 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
28327 induction variable, to be able to work with code generated by CLooG.
28328 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
28329 (build_poly_scop): Bail out if we cannot codegen a loop.
28331 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
28333 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
28334 code generation with gloog_error.
28336 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28338 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
28339 Call fold_convert on all the returned values.
28340 (expand_scalar_variables_expr): Pass to
28341 expand_scalar_variables_ssa_name the type of the resulting expression.
28343 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28345 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
28346 ppl_min_for_le_pointset.
28347 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
28348 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
28350 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28352 * graphite-dependences.c (map_into_dep_poly): Removed.
28353 (dependence_polyhedron_1): Use combine_context_id_scat.
28355 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28357 * graphite-poly.h (struct poly_scattering): Add layout documentation.
28358 (struct poly_bb): Same.
28359 (combine_context_id_scat): New.
28361 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28363 PR middle-end/42326
28364 * sese.c (name_defined_in_loop_p): Return false for default
28367 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28369 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
28370 and clean up the logic.
28372 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28374 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
28377 2010-03-08 Jakub Jelinek <jakub@redhat.com>
28379 * var-tracking.c (remove_cselib_value_chains): Define only for
28381 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
28382 delete_slot_part, emit_notes_for_differences_1): Don't call
28383 remove_cselib_value_chains here.
28384 (set_slot_part, emit_notes_for_differences_2): Don't call
28385 add_cselib_value_chains here.
28386 (preserved_values): New vector.
28387 (preserve_value): New function.
28388 (add_uses, add_stores, vt_add_function_parameters): Use it
28389 instead of cselib_preserve_value.
28390 (changed_values_stack): New vector.
28391 (check_changed_vars_0): New function.
28392 (check_changed_vars_1, check_changed_vars_2): Use it.
28393 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
28394 changed_values_stack VALUEs.
28395 (vt_emit_notes): For all preserved_values call
28396 add_cselib_value_chains. If ENABLE_CHECKING call
28397 remove_cselib_value_chains before verifying value_chains is empty.
28398 Initialize and free changed_values_stack.
28399 (vt_initialize): Initialize preserved_values.
28400 (vt_finalize): Free preserved_values.
28402 2010-03-08 Richard Guenther <rguenther@suse.de>
28404 PR tree-optimization/43269
28405 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
28408 2010-03-08 Martin Jambor <mjambor@suse.cz>
28410 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
28411 (ipa_is_param_called): Removed.
28412 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
28413 (ipa_print_node_params): Do not print the called flag.
28414 (ipa_write_node_info): Do not stream the called flag.
28415 (ipa_read_node_info): Likewise.
28417 2010-03-07 Jakub Jelinek <jakub@redhat.com>
28420 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
28421 * cselib.c (struct expand_value_data): Add dummy field.
28422 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
28424 (cselib_dummy_expand_value_rtx_cb): New function.
28425 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
28427 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
28428 * var-tracking.c: Include pointer-set.h.
28429 (variable): Change n_var_parts to char from int. Add
28430 cur_loc_changed and in_changed_variables fields.
28431 (variable_canonicalize): Remove.
28432 (shared_var_p): New inline function.
28433 (unshare_variable): Maintain cur_loc_changed and
28434 in_changed_variables fields. If var was in changed_variables,
28435 replace it there with new_var. Just copy cur_loc instead of
28436 resetting it to something else.
28437 (variable_union): Don't recompute cur_loc. Use shared_var_p.
28438 (dataflow_set_union): Don't call variable_canonicalize.
28439 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
28440 of their DEBUG_EXPR_TREE_DECLs.
28441 (canonicalize_loc_order_check): Verify that cur_loc is NULL
28442 and in_changed_variables and cur_loc_changed is false.
28443 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
28444 and cur_loc_changed. Don't update cur_loc here.
28445 (variable_merge_over_src): Don't call variable_canonicalize.
28446 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
28447 removing loc that is equal to cur_loc, clear cur_loc,
28448 set cur_loc_changed and ensure variable_was_changed is called.
28449 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
28450 compare pointers in cur_loc check, if it is equal to loc,
28451 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
28452 (variable_different_p): Remove compare_current_location argument,
28453 don't compare cur_loc.
28454 (dataflow_set_different_1): Adjust variable_different_p caller.
28455 (variable_was_changed): If dv had some var in changed_variables
28456 already, reset in_changed_variables flag for it and propagate
28457 cur_loc_changed over to the new variable. On empty var
28458 always set cur_loc_changed. Set in_changed_variables on whatever
28459 var is added to changed_variables.
28460 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
28461 Use shared_var_p. When removing loc that is equal to cur_loc,
28462 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
28463 end, don't set it to something else, just call variable_was_changed.
28464 (delete_slot_part): Use shared_var_p. When cur_loc equals to
28465 loc being removed, clear cur_loc and set cur_loc_changed.
28466 Set cur_loc_changed if all locations have been removed.
28467 (struct expand_loc_callback_data): New type.
28468 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
28469 allocated. Always create SUBREGs if simplify_subreg failed.
28470 Prefer to use cur_loc, when that fails and still in
28471 changed_variables (and seen first time) recompute it. Set
28472 cur_loc_changed of variables which had to change cur_loc and
28473 compute elcd->cur_loc_changed if any of the subexpressions used
28474 had to change cur_loc.
28475 (vt_expand_loc): Adjust to pass arguments in
28476 expand_loc_callback_data structure.
28477 (vt_expand_loc_dummy): New function.
28478 (emitted_notes): New variable.
28479 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
28480 that weren't used for any other decl in current
28481 emit_notes_for_changes call call vt_expand_loc_dummy to update
28482 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
28483 first loc_chain location if NULL before. Always use just
28484 cur_loc instead of first loc_chain location. When cur_loc_changed
28485 is false, when not --enable-checking=rtl just don't emit any note.
28486 When rtl checking, compute the note and assert it is the same
28487 as previous note. Clear cur_loc_changed and in_changed_variables
28488 at the end before removing from changed_variables.
28489 (check_changed_vars_3): New function.
28490 (emit_notes_for_changes): Traverse changed_vars to call
28491 check_changed_vars_3 on each changed var.
28492 (emit_notes_for_differences_1): Clear cur_loc_changed and
28493 in_changed_variables. Recompute cur_loc of new_var.
28494 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
28495 (vt_emit_notes): Initialize and destroy emitted_notes.
28497 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
28499 PR rtl-optimization/42220
28500 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
28501 Use verify_reg_tracked to determine if we should use OP_OUT rather
28503 (build_def_use): If we see an in-out operand for a register that we
28504 know nothing about, treat is an output if possible, fail the block if
28507 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28510 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
28513 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28516 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
28517 uses of relevant DEFs that are dead outside the loop too.
28519 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28521 * var-tracking.c (dataflow_set_merge): Swap src and src2.
28523 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28525 * var-tracking.c (values_to_unmark): New variable.
28526 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28527 values_to_unmark vector. Moved body to...
28528 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28529 instead queue it into values_to_unmark vector.
28530 (vt_find_locations): Free values_to_unmark vector.
28532 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
28534 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
28535 (site.exp): Export them when plugins are enabled.
28537 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
28539 PR middle-end/42326
28540 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
28541 that contain scevs.
28542 (chrec_fold_multiply): Same.
28544 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
28547 * c-decl.c (build_compound_literal): Return early if init is
28548 an error_mark_node.
28550 2010-03-04 Martin Jambor <mjambor@suse.cz>
28552 PR tree-optimization/43164
28553 PR tree-optimization/43191
28554 * tree-sra.c (type_consists_of_records_p): Reject records with
28555 zero-size bit-fields at the end.
28557 2010-03-04 Mike Stump <mikestump@comcast.net>
28559 * Makefile.in (TAGS): Remove *.y.
28561 2010-03-04 Richard Guenther <rguenther@suse.de>
28563 PR tree-optimization/40761
28564 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
28566 (my_rev_post_order_compute): New function.
28567 (init_pre): Call it.
28569 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
28571 PR middle-end/43209
28572 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
28573 decrease the cost of an IV candidate when the cost is infinite.
28575 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28577 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
28578 Use '3DNow!' for the extension of that name, ensure normal space
28580 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
28582 2010-03-03 Jeff Law <law@redhat.com>
28584 * PR middle-end/32693
28585 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
28586 than gen_rtx_SUBREG.
28587 (extract_bit_field_1): Likewise.
28589 2010-03-03 Janis Johnson <janis187@us.ibm.com>
28591 * doc/sourcebuild.texi (Test directives): Document that arguments
28592 include-opts and exclude-opts are now optional for dg-skip-if,
28593 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
28595 2010-03-03 Jason Merrill <jason@redhat.com>
28598 * cgraph.h (varpool_node): Add extra_name field.
28599 * varpool.c (varpool_extra_name_alias): New.
28600 (varpool_assemble_decl): Emit extra name aliases.
28601 (varpool_mark_needed_node): Look past an extra name alias.
28602 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
28603 * lto-streamer-in.c (lto_input_tree): Read it.
28604 * lto-streamer-out.c (output_unreferenced_globals): Write it.
28606 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
28608 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
28609 (sparc*-*-solaris2*): ...this.
28611 2010-03-03 Jakub Jelinek <jakub@redhat.com>
28614 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
28615 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
28616 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
28617 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
28620 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
28621 fallthrough to default handling, just with want_address 0 instead of 2.
28622 For single element lists, add_AT_loc directly, otherwise create an
28623 artificial variable DIE and stick location list to it.
28626 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
28627 (VAL_EXPR_HAS_REVERSE): Define.
28628 (reverse_op): New function.
28629 (add_stores): For reversible operations add an extra MO_VAL_USE.
28631 2010-03-02 Jason Merrill <jason@redhat.com>
28633 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
28635 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
28637 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
28638 (sparc64-*-linux*): Likewise.
28639 (sparc64-*-solaris2*): Include assembler files before linker ones.
28640 (sparc-*-solaris2*): Simplify and reorder to match previous case.
28641 * config/sparc/gas.h: Delete.
28642 * config/sparc/sol2-64.h: Add copyright notice.
28643 * config/sparc/sol2-gas-bi.h: Likewise.
28644 * config/sparc/sol2-gld.h: Likewise.
28645 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
28646 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
28647 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
28648 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
28649 (sparc_elf_asm_named_section): Rename into...
28650 (sparc_solaris_elf_asm_named_section): ...this. Always define.
28652 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
28654 * config/alpha/alpha.c (override_options): Fix -mtune error message.
28656 2010-03-02 Jeff Law <law@redhat.com>
28658 PR middle-end/42431
28659 * reload1.c (rtx_p, substitute_stack): Declare.
28660 (substitute): Record addresses of changed rtxs.
28661 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
28662 Restore the original rtx when complete.
28663 (reload): Free subsitute_stack when complete.
28665 2010-03-02 Janis Johnson <janis187@us.ibm.com>
28667 * doc/gccint.texi (menu): Add Testsuites as a chapter.
28668 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
28670 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
28671 LTO Testing, gcov Testing, profopt Testing, compat Testing,
28672 Torture Tests): Change from subsection to section.
28674 2010-03-02 Jakub Jelinek <jakub@redhat.com>
28675 Steven Bosscher <steven@gcc.gnu.org>
28677 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
28680 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
28682 PR middle-end/42640
28683 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
28684 the assignment from the new induction variable to the assignment
28685 of the value from the original loop PHI function.
28687 2010-03-01 Janis Johnson <janis187@us.ibm.com>
28688 Daniel Jacobowitz <dan@codesourcery.com>
28690 * doc/sourcebuild.texi (Test directives): Clarify options to
28693 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28695 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
28696 Disable cfi directives unless GCC and gas agree on using read-only
28697 .eh_frame sections for 64-bit.
28698 * configure: Regenerate.
28700 2010-03-01 Richard Guenther <rguenther@suse.de>
28702 PR tree-optimization/43220
28703 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
28704 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
28706 2010-03-01 Richard Guenther <rguenther@suse.de>
28707 Martin Jambor <mjambor@suse.cz>
28709 PR middle-end/41250
28710 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
28711 gimplified parameters.
28713 2010-03-01 Christian Bruel <christian.bruel@st.com>
28715 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
28717 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
28719 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
28721 2010-03-01 Richard Guenther <rguenther@suse.de>
28723 PR middle-end/43213
28724 * expr.c (expand_assignment): Use the alias-oracle to tell
28725 if the rhs aliases the result decl.
28727 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28730 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
28731 to sol_gt_pch_get_address.
28732 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
28733 64-bit, SPARC and x86.
28734 (sol_gt_pch_get_address): New function.
28736 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
28738 * toplev.h (inform_n, error_n): Declare.
28739 * diagnostic.c (inform_n, error_n): New function.
28741 2010-03-01 Jakub Jelinek <jakub@redhat.com>
28743 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
28744 has no rtl yet when processing local_decls, queue it and recheck
28745 if deferred stack allocation hasn't assigned it rtl.
28747 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
28749 * config/sh/sh.c (unspec_bbr_uid): New.
28750 (gen_block_redirect): Use it instead of INSN_UID.
28751 (gen_far_branch): Likewise.
28753 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
28755 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
28756 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
28758 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28760 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
28761 (Warning Options): -Wno-conversion-null is valid for
28762 Objective-C++ as well.
28763 * doc/tm.texi (Named Address Spaces): Likewise.
28764 * doc/plugins.texi (Plugins): Replace TABs with spaces.
28765 * doc/tree-ssa.texi (Tree SSA): Likewise.
28767 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28770 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
28771 by default. Don't set the default arch for
28772 i[34567]86-*-darwin*|x86_64-*-darwin*.
28774 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28777 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
28778 default. Set the default 32bit/64bit archs with $with_arch
28779 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
28781 2010-02-27 Richard Guenther <rguenther@suse.de>
28783 PR tree-optimization/43186
28784 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
28785 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
28786 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
28787 unroller iterations.
28789 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28791 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
28792 required and i[34567]86-*-* targets don't support 64bit ISA.
28794 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
28797 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
28798 the same alias set.
28800 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28802 * config.gcc: Set the default arch at least to Prescott for
28803 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
28804 if SSE math is enabled.
28806 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28808 * diagnostic.c (diagnostic_initialize): Update.
28809 (diagnostic_report_diagnostic): Test inhibit_notes_p for
28811 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
28812 (diagnostic_inhibit_notes): New.
28813 * toplev.c (process_options): inhibit notes with -fcompare-debug.
28815 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28818 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
28819 * doc/standards.texi: Likewise.
28820 * doc/extend.texi: Likewise.
28821 * doc/trouble.texi: Likewise.
28822 * doc/cppopts.texi: Likewise.
28823 * doc/install.texi: Likewise.
28824 * c.opt (std=c90,std=gnu90): New options.
28825 * c-opts.c (c_common_handle_option): Handle them.
28827 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28830 * c-decl.c (undeclared_variable): Use an informative note.
28832 2010-02-26 Richard Guenther <rguenther@suse.de>
28834 PR tree-optimization/43186
28835 * gimple.h (gimple_fold): Remove.
28836 * gimple.c (gimple_fold): Remove. Inline into single user ...
28837 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
28838 Try harder for conditions.
28840 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28843 * function.c (used_types_insert): Don't skip through named pointer
28844 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
28845 and it is different from the main variant's type.
28847 2010-02-26 Nick Clifton <nickc@redhat.com>
28849 * config/rx/rx.md (sminsi3): Remove bogus alternative.
28851 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28853 * config.gcc: Support --with-fpmath=sse for x86.
28855 * config/i386/ssemath.h: New.
28857 * doc/install.texi (--with-fpmath=sse): Documented.
28859 2010-02-26 Richard Guenther <rguenther@suse.de>
28861 PR tree-optimization/43188
28862 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
28863 vector types of over-aligned element type.
28865 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
28868 * config/i386/i386.c (expand_vec_perm_blend): Use correct
28869 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
28871 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
28873 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
28875 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28877 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
28878 * var-tracking.c: Include diagnostic.h.
28879 (debug_dv): New function.
28880 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
28883 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
28884 (add_value_chain, add_value_chains, remove_value_chain,
28885 remove_value_chains): Handle DEBUG_EXPRs.
28886 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
28889 * regcprop.c (struct queued_debug_insn_change): New type.
28890 (struct value_data_entry): Add debug_insn_changes field.
28891 (struct value_data): Add n_debug_insn_changes field.
28892 (debug_insn_changes_pool): New variable.
28893 (free_debug_insn_changes, apply_debug_insn_changes,
28894 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
28895 (kill_value_one_regno): Call free_debug_insn_changes if needed.
28896 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
28898 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
28900 (copyprop_hardreg_forward_1): Don't call apply_change_group for
28901 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
28902 changes, call cprop_find_used_regs via note_stores.
28903 (copyprop_hardreg_forward): When copying vd from predecessor
28904 which has any queued DEBUG_INSN changes, make sure the pointers are
28905 cleared. At the end call df_analyze and then if there are any
28906 DEBUG_INSN changes queued at the end of some basic block for still
28907 live registers, apply them.
28908 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
28910 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
28912 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
28915 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
28917 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
28918 targets. Set the default with_cpu/with_arch from arch/cpu.
28919 Allow x86-64 and native for with_cpu/with_arch.
28921 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
28923 * ebitmap.c: Change calls to verify_popcount with calls to
28924 sbitmap_verify_popcount.
28925 (ebitmap_clear_bit): Fixed map->cacheindex test and
28926 map>cache update when bit clearing results in an empty
28929 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28932 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
28933 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
28934 and support both V2DF and V2DI modes.
28935 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
28936 support both V2DF and V2DI modes.
28937 (general): Delete trailing whitespace from a few patterns.
28939 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28940 V2DF/V2DI interleave high/low builtins.
28942 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
28945 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
28946 interleave high/low functions.
28948 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28950 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
28951 #pragma extern_prefix.
28953 2010-02-25 Jakub Jelinek <jakub@redhat.com>
28956 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
28957 BLKmode, assert op0 is a MEM and just adjust its mode.
28960 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
28961 if bitpos isn't multiple of mode's bitsize.
28963 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28965 * c.opt (-ftemplate-depth=): New.
28966 (-ftemplate-depth-): Deprecate.
28967 * optc-gen.awk: Handle -ftemplate-depth=.
28968 * opth-gen.awk: Likewise.
28969 * c-opts.c (c_common_handle_option): Likewise.
28970 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
28972 2010-02-24 Jason Merrill <jason@redhat.com>
28974 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
28976 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28978 * cfg.c (alloc_aux_for_block): Remove inline.
28979 (alloc_aux_for_edge): Likewise.
28981 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28983 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
28985 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28987 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
28988 * config/i386/sol2-gas.h: New file.
28989 * config.gcc (i[34567]86-*-solaris2*): Use it.
28991 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28994 * c-typeck.c (ep_convert_and_check): New.
28995 (build_conditional_expr): Use it.
28996 (build_binary_op): Likewise.
28998 2010-02-24 Jakub Jelinek <jakub@redhat.com>
29000 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
29003 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
29004 bounds even for -O+.
29005 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
29006 expr needs to have DECL_NAME set.
29008 2010-02-24 Nick Clifton <nickc@redhat.com>
29010 * config/mep/mep.c: Include gimple.h.
29011 (mep_function_uses_sp): Delete unused function.
29012 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
29013 parameters. Use unsigned integers to count args. Return a
29014 NULL_RTX instead of an error_mark_node. Toidy up formatting.
29016 2010-02-23 Jakub Jelinek <jakub@redhat.com>
29019 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
29020 greater or equal to nelt instead of 2 * nelt.
29021 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
29024 2010-02-23 Jason Merrill <jason@redhat.com>
29027 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
29028 in cfun->local_decls even if they have register types.
29031 * stor-layout.c (place_field): Don't warn about unnecessary
29032 DECL_PACKED if the type is packed.
29034 2010-02-23 Jakub Jelinek <jakub@redhat.com>
29037 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
29038 GOTOFF relocs, even when the base reg isn't pic pointer.
29040 2010-02-23 Michael Matz <matz@suse.de>
29043 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
29044 (expand_gimple_basic_block): Generate and use debug temps if there
29045 are debug uses left after the last real use of TERed ssa names.
29046 Unlink debug immediate uses when they are expanded.
29048 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
29051 * config/i386/i386.c (override_options): Reorganise to provide
29052 better error messages.
29054 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
29056 PR middle-end/43083
29057 * graphite-scop-detection.c (create_single_exit_edge): Move
29058 the call to find_single_exit_edge to....
29059 (create_sese_edges): ...here. Don't handle multiple edges
29060 exiting the function.
29061 (build_graphite_scops): Don't handle multiple edges
29062 exiting the function.
29064 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
29066 PR middle-end/43097
29067 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
29068 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
29070 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
29072 PR middle-end/43026
29073 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
29075 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
29078 * c-typeck.c (convert_arguments): Print declaration location.
29079 * c-common.c (validate_nargs): Rename as
29080 builtin_function_validate_nargs.
29081 (check_builtin_function_arguments): Update.
29083 2010-02-22 Richard Guenther <rguenther@suse.de>
29086 * tree-inline.c (declare_return_variable): Use the type of
29087 the call stmt lhs if available.
29089 2010-02-22 Duncan Sands <baldrick@free.fr>
29091 * passes.c (register_pass): Always consider all pass lists when
29092 ref_pass_instance_number is zero.
29094 2010-02-22 Richard Guenther <rguenther@suse.de>
29096 PR tree-optimization/42749
29097 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
29098 parameter. Do arithmetic in the original type.
29099 (update_accumulator_with_ops): Likewise.
29100 (adjust_accumulator_values): Adjust.
29102 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29104 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
29105 (QI to BLKmode splitter): New splitter.
29107 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
29109 * config/i386/i386.c (initial_ix86_tune_features): Turn on
29110 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
29112 2010-02-22 Richard Guenther <rguenther@suse.de>
29114 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
29116 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
29118 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
29119 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
29120 ($(T)crti.o, $(T)crtn.o): Remove rules.
29122 2010-02-21 Tobias Burnus <burnus@net-b.de>
29125 * doc/invoke.texi (-fassociative-math): Document that this
29126 option is automatically enabled for Fortran.
29128 2010-02-20 David S. Miller <davem@davemloft.net>
29130 * configure.ac: Test if linker and assembler properly support
29131 GOTDATA_OP relocations.
29132 * configure: Rebuild.
29133 * config.in: Likewise.
29134 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
29135 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
29136 (movsi_high_pic): Likewise.
29137 (movdi_lo_sum_pic): Likewise.
29138 (movdi_high_pic): Likewise.
29139 (movsi_pic_gotdata_op): New pattern.
29140 (movdi_pic_gotdata_op): Likewise.
29141 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
29142 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
29144 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
29147 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
29148 attribute to ssemul.
29149 (xop_mulv2div2di3_high): Ditto.
29151 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29154 * c.opt (Wconversion-null): New option.
29155 * doc/invoke.texi (Wconversion-null): Document.
29157 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29159 * common.opt (Wlarger-than-): Add Undocumented.
29161 2010-02-19 Mike Stump <mikestump@comcast.net>
29163 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
29165 2010-02-19 Jason Merrill <jason@redhat.com>
29168 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
29169 * configure: Likewise.
29171 2010-02-20 Alan Modra <amodra@gmail.com>
29173 PR middle-end/42344
29174 * cgraph.h (cgraph_make_decl_local): Declare.
29175 * cgraph.c (cgraph_make_decl_local): New function.
29176 (cgraph_make_node_local): Use it.
29177 * cgraphunit.c (cgraph_function_versioning): Likewise.
29178 * ipa.c (function_and_variable_visibility): Likewise.
29180 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29183 * except.c (sjlj_emit_function_enter): Don't call
29184 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
29186 * rtl.h (add_reg_br_prob_note): Remove prototype.
29188 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
29191 * c-common.c (conversion_warning): Remove widening conversions
29192 before checking the conversion of integers to reals.
29194 2010-02-19 Mike Stump <mikestump@comcast.net>
29196 PR middle-end/43125
29197 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
29200 * cgraphunit.c (process_function_and_variable_attributes): Check
29201 DECL_PRESERVE_P instead of looking up attribute "used".
29202 * ipa-pure-const.c (check_decl): Likewise.
29203 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
29204 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
29205 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
29206 instead of attribute "used".
29207 * config/sol2-c.c (solaris_pragma_init): Likewise.
29208 (solaris_pragma_fini): Likewise.
29210 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29212 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
29213 Use XCNEW instead of xcalloc.
29214 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
29215 XNEW instead of xmalloc.
29216 (get_fields): Use XNEWVEC instead of xmalloc.
29219 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
29220 populate vars array.
29221 (create_new_general_access): For debug stmts just reset value.
29222 (get_stmt_accesses): For accesses within debug stmts just record them
29223 using add_access_to_acc_sites instead of preventing the peeling or
29224 counting them as accesses.
29226 PR middle-end/42233
29227 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
29229 2010-02-19 Richard Guenther <rguenther@suse.de>
29231 PR tree-optimization/42916
29232 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
29235 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
29237 * configure.ac: Replace all uses of changequote in macro arguments
29238 with proper quoting.
29240 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29242 PR middle-end/42233
29243 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
29245 2010-02-19 Richard Guenther <rguenther@suse.de>
29247 PR tree-optimization/42944
29248 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
29249 test for aliasing with errno.
29251 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29253 PR middle-end/42233
29254 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
29255 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
29256 * dojump.c: Include output.h.
29257 (inv): New inline function.
29258 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
29259 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
29260 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
29261 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
29262 argument, pass it down to other calls.
29263 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
29264 add REG_BR_PROB note to the conditional jump.
29265 * cfgexpand.c (add_reg_br_prob_note): Removed.
29266 (expand_gimple_cond): Don't call it, add the probability
29267 as last argument to jumpif_1/jumpifnot_1.
29268 * Makefile.in (dojump.o): Depend on output.h.
29269 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
29271 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
29272 * stmt.c (do_jump_if_equal): Likewise.
29273 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
29274 * loop-unswitch.c (compare_and_jump_seq): Likewise.
29275 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
29277 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
29278 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
29279 jumpifnot_1 callers.
29280 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
29282 (store_expr): Adjust jumpifnot caller.
29283 (store_constructor): Adjust jumpif caller.
29285 PR middle-end/42233
29286 * gimplify.c (gimple_boolify): For __builtin_expect call
29287 gimple_boolify also on its first argument.
29289 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
29291 * configure.ac (gnu-unique-object): Wrap regexps using [] in
29293 (__stack_chk_fail): Ditto. Remove quadrigraphs.
29294 * configure: Regenerated.
29296 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29298 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
29299 lang_hooks.types_compatible_p instead of comptypes.
29301 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
29303 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
29304 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
29305 if __prefer_thumb__ is defined.
29307 2010-02-18 Martin Jambor <mjambor@suse.cz>
29309 PR tree-optimization/43066
29310 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
29311 array with zero-sized element type.
29313 2010-02-18 Jakub Jelinek <jakub@redhat.com>
29315 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
29316 rtx, allocate struct var_loc_node here and return it to the
29317 caller, and only if it is actually needed.
29318 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
29319 move it earlier and return immediately if it returns NULL.
29321 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
29323 * config/sparc/gas.h: New file. Restore
29324 TARGET_ASM_NAMED_SECTION to its ELF default.
29325 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
29326 check !HAVE_GNU_AS.
29327 * config/sparc/sparc.c (sparc_elf_asm_named_section):
29328 Likewise. Add ATTRIBUTE_UNUSED to prototype.
29329 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
29330 after sparc/sysv4.h.
29332 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
29334 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
29336 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
29338 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
29339 patterns from predicated pattern.
29341 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
29344 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
29345 for insn mnemonic suffix.
29347 2010-02-17 Richard Guenther <rguenther@suse.de>
29349 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
29352 2010-02-17 Jakub Jelinek <jakub@redhat.com>
29355 * caller-save.c (save_call_clobbered_regs): If BB ends with
29356 a DEBUG_INSN, move any notes in between last real insn and the last
29357 DEBUG_INSN after the last DEBUG_INSN.
29359 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
29361 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
29362 Fix return type. Fix argument type. Explain meaning of return value.
29364 2010-02-16 Richard Guenther <rguenther@suse.de>
29366 PR tree-optimization/41043
29367 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
29368 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
29370 (vrp_visit_phi_node): ... but only for loop PHI nodes.
29372 2010-02-16 Ira Rosen <irar@il.ibm.com>
29374 PR tree-optimization/43074
29375 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
29376 * tree-vect-loop.c (vect_analyze_loop_operations): Add
29377 vectorizable cycles in hybrid SLP check.
29378 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
29380 2010-02-16 Richard Guenther <rguenther@suse.de>
29382 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
29383 (true_dependence): If memrefs_conflict_p computes must-alias
29384 trust it. Move TBAA check after offset-based disambiguation.
29385 (canon_true_dependence): Likewise.
29387 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
29389 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
29390 * doc/invoke.texi: Document it.
29391 * var-tracking.c: Include toplev.h and params.h.
29392 (vt_find_locations): Return bool indicating success. Compute
29393 hash sizes unconditionally. Check new parameter, report.
29394 (variable_tracking_main_1): Check vt_find_locations results and
29395 retry. Renamed from...
29396 (variable_tracking_main): ... this. New wrapper to preserve
29397 flag_var_tracking_assignments.
29398 * Makefile.in (var-tracking.o): Adjust dependencies.
29400 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
29401 Jakub Jelinek <jakub@redhat.com>
29404 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
29405 if weak_import attribute is present.
29406 * config/darwin.c (machopic_select_section): Likewise.
29408 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
29410 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
29411 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
29412 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
29413 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
29415 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
29418 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29419 Fix argument types.
29421 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
29422 Rewrite text to refer to the names.
29424 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
29426 * config/i386/i386-builtin-types.def
29427 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
29428 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
29429 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
29430 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
29431 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
29432 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
29433 IX86_BUILTIN_VPERMIL2PS256.
29434 (MULTI_ARG_4_DF2_DI_I): Defined.
29435 (MULTI_ARG_4_DF2_DI_I1): Defined.
29436 (MULTI_ARG_4_SF2_SI_I): Defined.
29437 (MULTI_ARG_4_SF2_SI_I1): Defined.
29438 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
29439 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
29440 __builtin_ia32_vpermil2ps256.
29441 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29442 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29443 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
29444 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29445 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29446 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
29447 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
29448 CODE_FOR_xop_vpermil2v8sf3.
29449 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
29450 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
29451 * config/i386/xopintrin.h (_mm_permute2_pd): New.
29452 (_mm256_permute2_pd): New.
29453 (_mm_permute2_ps): New.
29454 (_mm256_permute2_ps): New.
29456 2010-02-15 Nick Clifton <nickc@redhat.com>
29458 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
29459 boolean parameters. Use emit_jump_insn when emitting a pop
29460 instruction containing a return insn.
29461 (push): Use 'true' rather than '1' as second parameter to F.
29462 (h8300_expand_prologue): Likewise.
29463 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
29464 (h8300_expand_epilogue): Likewise.
29466 2010-02-15 Richard Guenther <rguenther@suse.de>
29468 PR middle-end/43068
29469 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
29472 2010-02-15 Nick Clifton <nickc@redhat.com>
29474 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
29477 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
29479 * intl.c (fake_ngettext): New function.
29480 * intl.h (fake_ngettext): Declare.
29481 (ngettext): Define macro.
29482 * collect2.c (notice_translated): New function.
29483 (main): Use notice_translated and ngettext.
29484 * collect2.h (notice_translated): Declare.
29486 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
29488 * reorg.c (delete_computation): Comment fixes.
29489 * caller-save.c (setup_save_areas): Idem.
29490 * sel-sched-dump.c (dump_lv_set): Idem.
29493 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29495 * config/s390/s390.c (s390_sched_init): New function.
29496 (TARGET_SCHED_INIT): Target hook defined.
29498 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
29499 Jack Howarth <howarth@bromo.med.uc.edu>
29500 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29503 Partial revert of unintended change in fix for PR41605.
29504 * config/darwin.h: Fix typo.
29505 * config/darwin9.h: Same.
29507 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29509 * c-pch.c (pch_init): Clear v.
29511 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29513 PR middle-end/42930
29514 * graphite-scop-detection.c (graphite_can_represent_scev): Call
29515 graphite_can_represent_init for MULT_EXPR.
29517 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29519 PR middle-end/42914
29520 PR middle-end/42530
29521 * graphite-sese-to-poly.c (remove_phi): New.
29522 (translate_scalar_reduction_to_array): Call remove_phi.
29524 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29526 PR middle-end/42771
29527 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
29528 * graphite-clast-to-gimple.h (gloog): Update declaration.
29529 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
29530 * graphite-poly.h (struct poly_bb): Add missing comments.
29531 (struct scop): Add poly_scop_p field.
29532 (POLY_SCOP_P): New.
29533 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
29534 * graphite.c (graphite_transform_loops): Build the polyhedral
29535 representation for each scop before code generation.
29536 * sese.c (rename_variables_in_operand): Removed.
29537 (rename_variables_in_expr): Return the renamed expression.
29538 (rename_sese_parameters): New.
29539 * sese.h (rename_sese_parameters): Declared.
29541 2010-02-11 Richard Guenther <rguenther@suse.de>
29543 PR tree-optimization/42998
29544 * tree-ssa-pre.c (create_expression_by_pieces): Treat
29545 POINTER_PLUS_EXPR properly.
29547 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29548 Changpeng Fang <changpeng.fang@amd.com>
29550 PR middle-end/40886
29551 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
29552 the cost of an IV candidate when the IV is used in a test against zero.
29554 * gcc.dg/tree-ssa/ivopts-3.c: New.
29556 2010-02-11 Richard Guenther <rguenther@suse.de>
29559 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
29560 pointer-vs-decl case by swapping refs. Handle some cases
29561 of pointer-vs-decl disambiguations more conservatively.
29562 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
29563 to false after expanding.
29565 2010-02-11 Richard Guenther <rguenther@suse.de>
29568 * gcc.c (process_command): Handle LTO file@offset case more
29571 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29573 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
29574 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
29576 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
29578 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
29579 if MEM's mode size isn't DWARF2_ADDR_SIZE.
29580 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
29581 Optimize eq/ne comparisons when both arguments are known to be
29583 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
29584 Don't mask operands unnecessarily if they are known to be already
29587 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
29589 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
29592 2010-02-10 Richard Guenther <rguenther@suse.de>
29594 PR tree-optimization/43017
29595 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
29596 for wrapping signed arithmetic.
29598 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29601 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
29602 if no debug info should be emitted for it.
29604 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
29606 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
29607 note when flag_exceptions is set.
29609 2010-02-10 Duncan Sands <baldrick@free.fr>
29611 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
29613 2010-02-10 Richard Guenther <rguenther@suse.de>
29616 * tree.c (get_unwidened): Handle constants.
29617 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
29619 2010-02-10 Martin Jambor <mjambor@suse.cz>
29622 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
29623 check for variable argument counts independently.
29625 2010-02-10 Christian Bruel <christian.bruel@st.com>
29628 * config/sh/sh.c (find_barrier): Increase length for non delayed
29629 conditional branches.
29631 2010-02-10 Christian Bruel <christian.bruel@st.com>
29633 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
29635 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29637 * builtins.c (set_builtin_user_assembler_name): Also handle
29638 ffs if int is smaller than word.
29640 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
29642 PR middle-end/42973
29643 * ira-conflicts.c (get_dup): Remove.
29644 (process_reg_shuffles): Add new parameter. Use it as an
29645 additional guard for copy generation.
29646 (add_insn_allocno_copies): Rewrite.
29648 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
29650 * common.opt (fsched2-use-traces): Preserved for backward
29652 * doc/invoke.texi: Remove the documentation about option
29653 -fsched2-use-traces.
29654 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
29655 flag_sched2_use_traces.
29656 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
29657 the backward compatibility flag section.
29659 2010-02-09 Richard Guenther <rguenther@suse.de>
29661 PR tree-optimization/43008
29662 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
29663 make HEAP variables initialized from global memory if they
29664 are not known builtin functions.
29665 (find_func_aliases): Adjust.
29667 2010-02-09 Richard Guenther <rguenther@suse.de>
29669 PR tree-optimization/43000
29670 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
29671 arithmetic manually.
29673 2010-02-08 Jakub Jelinek <jakub@redhat.com>
29675 PR tree-optimization/42931
29676 * tree-loop-linear.c (try_interchange_loops): Don't call
29677 double_int_mul if estimated_loop_iterations failed.
29679 2010-02-08 Martin Jambor <mjambor@suse.cz>
29681 PR middle-end/42898
29682 * tree-sra.c (build_accesses_from_assign): Do not mark in
29683 should_scalarize_away_bitmap if stmt has volatile ops.
29684 (sra_modify_assign): Do not process assigns piecemeal if if stmt
29687 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
29689 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
29691 2010-02-07 Adam Nemet <adambnmet@gmail.com>
29693 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
29694 before the pattern.
29696 2010-02-07 Andrew Pinski <pinskia@gmail.com>
29698 PR middle-end/42946
29699 * df-core.c (df_finish_pass): Change type of saved_flags to int.
29701 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29703 PR middle-end/42988
29704 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
29705 to unknown_dependence.
29706 (graphite_legal_transform_dr): Handle the unknown_dependence.
29707 (graphite_carried_dependence_level_k): Same.
29709 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29711 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
29713 2010-02-07 Richard Guenther <rguenther@suse.de>
29715 PR middle-end/42991
29716 * expr.c (get_inner_reference): Always initialize *pbitsize.
29718 2010-02-07 Richard Guenther <rguenther@suse.de>
29720 PR middle-end/42956
29721 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
29722 new ARRAY_REFs on variable size element or minimal index arrays.
29724 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
29725 gimple_fold_indirect_ref.
29727 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
29730 * arm.c (arm_override_options): Just return if the user has specified
29731 an invalid fpu name.
29733 2010-02-03 Jason Merrill <jason@redhat.com>
29736 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
29737 i386_pe_maybe_record_exported_symbol.
29739 2010-02-05 Steve Ellcey <sje@cup.hp.com>
29742 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29743 (pa_delegitimize_address): New function.
29745 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
29747 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
29748 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
29750 2010-02-05 Richard Guenther <rguenther@suse.de>
29753 * lto-streamer-in.c (get_resolution): Deal with references
29754 to undefined functions.
29756 2010-02-05 Richard Guenther <rguenther@suse.de>
29758 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
29759 (fold_const_aggregate_ref): Likewise.
29760 (ccp_fold_stmt): Substitute loads.
29761 (maybe_fold_reference): Verify types before substituting.
29763 (fold_gimple_assign): Unshare properly.
29764 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
29766 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
29768 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
29769 for rs6000_gen_cell_microcode.
29771 2010-02-04 Richard Guenther <rguenther@suse.de>
29773 PR rtl-optimization/42952
29774 * dse.c (const_or_frame_p): Remove MEM handling.
29776 2010-02-04 Nick Clifton <nickc@redhat.com>
29778 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
29779 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29780 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
29781 (mn10300_asm_output_mi_thunk): New function.
29782 (mn10300_can_output_mu_thunk): New function.
29783 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
29784 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
29785 (FUNCTION_ARG): Delete incorrect comment.
29787 2010-02-03 Jason Merrill <jason@redhat.com>
29790 * fold-const.c (operand_equal_p): Handle erroneous types.
29792 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29794 * config/h8300/h8300.md (can_delay): Fix attibute condition.
29796 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
29798 PR rtl-optimization/42941
29799 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
29802 2010-02-03 Jason Merrill <jason@redhat.com>
29805 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
29807 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
29810 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
29811 (cselib_reset_table): Renamed from...
29812 (cselib_reset_table_with_next_value): ... this.
29813 (cselib_get_next_uid): Renamed from...
29814 (cselib_get_next_unknown_value): ... this.
29815 * cselib.c (next_uid): Renamed from...
29816 (next_unknown_value): ... this.
29817 (cselib_clear_table): Adjust.
29818 (cselib_reset_table): Adjust. Renamed from...
29819 (cselib_reset_table_with_next_value): ... this.
29820 (cselib_get_next_uid): Adjust. Renamed from...
29821 (cselib_get_next_unknown_value): ... this.
29822 (get_value_hash): Use hash.
29823 (cselib_hash_rtx): Likewise.
29824 (new_cselib_val): Adjust. Set and dump uid.
29825 (cselib_lookup_mem): Pass next_uid as hash.
29826 (cselib_subst_to_values): Likewise.
29827 (cselib_log_lookup): Dump uid.
29828 (cselib_lookup): Pass next_uid as hash. Adjust.
29829 (cselib_process_insn): Adjust.
29830 (cselib_init): Initialize next_uid.
29831 (cselib_finish): Adjust.
29832 (dump_cselib_table): Likewise.
29833 * dse.c (canon_address): Dump value uid.
29834 * print-rtl.c (print_rtx): Print value uid.
29835 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
29837 (dv_uid): New function, sort of renamed from...
29838 (dv_htab_hash): ... this, reimplemented in terms of it and...
29839 (dv_uid2hash): ... this. New.
29840 (variable_htab_eq): Drop excess assertions.
29841 (tie_break_pointers): Removed.
29842 (canon_value_cmp): Compare uids.
29843 (variable_post_merge_New_vals): Print uids.
29844 (vt_add_function_parameters): Adjust.
29845 (vt_initialize): Reset table. Adjust.
29847 2010-02-03 Richard Guenther <rguenther@suse.de>
29849 PR tree-optimization/42944
29850 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
29851 (call_may_clobber_ref_p_1): Likewise. Properly handle
29852 malloc and calloc clobbering errno.
29854 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
29856 * doc/invoke.texi: Fix name of sched1 dump.
29858 * opts.c (decode_options): Set flag_tree_switch_conversion
29859 only conditionally on optimize >= 2.
29861 * gcse.c: Assorted comment fixes in pass description.
29863 2010-02-03 Anthony Green <green@moxielogic.com>
29865 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
29866 nop padding in order to maintain alignment of storage location of
29867 target function address.
29868 (moxie_trampoline_init): Store target function address at newly
29870 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
29872 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
29874 2010-02-03 Richard Guenther <rguenther@suse.de>
29876 PR middle-end/42927
29877 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
29879 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29881 * config.gcc: Reenable check for obsolete targets.
29882 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
29883 mips-sgi-irix6.[0-4]*.
29885 2010-02-02 Nick Clifton <nickc@redhat.com>
29887 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
29888 constant size of 4 as being the same as 0.
29889 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
29890 can take values in the range 0..4.
29892 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
29895 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
29896 as _darwin10_Unwind_FindEnclosingFunction().
29897 * libgcc-libsystem.ver: New.
29899 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
29902 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
29903 implicitly set registers.
29905 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
29907 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
29908 (arm_override_options): Allow automatic selection of the thread
29909 pointer register if thumb2.
29910 (legitimize_pic_address): Improve code sequences for Thumb2.
29911 (arm_call_tls_get_addr): Likewise.
29912 (legitimize_tls_address): Likewise.
29913 * arm.md (pic_load_addr_arm): Delete. Replace with ...
29914 (pic_load_addr_32bit): ... this. New named pattern.
29915 * thumb2.md (pic_load_addr_thumb2): Delete.
29916 (pic_load_dot_plus_four): Delete.
29917 (tls_load_dot_plus_four): New named pattern.
29919 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29922 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
29923 Document fix for TLS bug.
29925 2010-01-31 Richard Guenther <rguenther@suse.de>
29927 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
29928 conservatively correct.
29930 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29934 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29936 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29938 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29940 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
29942 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
29944 * config.gcc: Adjust order of makefile fragments for mingw targets.
29946 2010-01-31 Richard Guenther <rguenther@suse.de>
29948 PR middle-end/42898
29949 * gimplify.c (gimplify_init_constructor): For volatile LHS
29950 initialize a temporary.
29952 2010-01-31 Matthias Klose <doko@ubuntu.com>
29954 * configure.ac: Fix __stack_chk_fail check for cross builds configured
29956 * configure: Regenerate.
29958 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
29960 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29961 the same alias set and their sizes different constantness.
29962 (aliasing_component_refs_p): Revert 2009-10-24 change.
29964 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29966 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
29969 2010-01-29 Richard Guenther <rguenther@suse.de>
29971 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
29972 Assert we successfully updated the call.
29974 2010-01-29 Jakub Jelinek <jakub@redhat.com>
29976 PR rtl-optimization/42889
29977 * df.h (df_set_bb_dirty_nonlr): New prototype.
29978 * df-core.c (df_set_bb_dirty_nonlr): New function.
29979 * df-scan.c (df_insn_rescan): Call it instead of
29980 df_set_bb_dirty for DEBUG_INSNs.
29982 2010-01-29 Richard Guenther <rguenther@suse.de>
29984 PR middle-end/37448
29985 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
29986 quadratic behavior in most cases.
29988 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
29991 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
29992 in the call to gen_x86_movsicc_0_m1.
29994 2010-01-28 Richard Guenther <rguenther@suse.de>
29996 PR tree-optimization/42871
29997 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
29999 2010-01-28 Richard Guenther <rguenther@suse.de>
30001 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
30002 into call arguments.
30004 2010-01-28 Richard Guenther <rguenther@suse.de>
30006 PR middle-end/42883
30007 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
30008 the forwarder if the destination is an EH landing pad.
30010 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
30012 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
30013 block list passed to gimple_duplicate_sese_tail.
30014 (parallelize_loops): Avoid parallelization when the function
30015 has_nonlocal_label.
30016 Avoid parallelization when the preheader is IRREDUCIBLE.
30017 Try to optimize when estimated_loop_iterations_int is unresolved.
30018 Add the loop's location to the dump file.
30019 * tree-cfg.c (add_phi_args_after_redirect): Remove.
30020 (gimple_duplicate_sese_tail): Remove the check for the latch.
30021 Redirect nexits to the exit block.
30022 Remove handling of the incoming edges to the latch.
30023 Redirect the backedge from the copied latch to the exit bb.
30025 2010-01-28 Michael Matz <matz@suse.de>
30028 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
30029 Wrap force_reg into a sequence, emit it before user.
30031 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
30033 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
30035 (arm_legacy_rev): Likewise.
30036 (thumb_legacy_rev): Likewise.
30038 2010-01-27 Jakub Jelinek <jakub@redhat.com>
30040 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
30041 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
30042 on MEM's address failed, try avoid_constant_pool_reference and
30043 recurse if it returned something different.
30044 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
30045 address, try avoid_constant_pool_reference and recurse if it
30046 returned something different.
30047 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
30048 address and avoid_constant_pool_reference returned something
30049 different, don't set have_address.
30051 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
30054 * var-tracking.c (val_store): Add modified argument, obey it.
30056 (count_uses): Move down logging of main.
30057 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
30058 don't need resolution.
30059 (emit_notes_in_bb): Likewise.
30061 2010-01-27 Richard Guenther <rguenther@suse.de>
30063 PR middle-end/42878
30064 * tree-inline.c (remap_decl): Delay remapping of SSA name
30065 default definitions until we need them.
30067 2010-01-27 Jakub Jelinek <jakub@redhat.com>
30069 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
30070 (rs6000_delegitimize_address): New function.
30072 * config/s390/s390.c (s390_delegitimize_address): Call
30073 delegitimize_mem_from_attrs.
30075 PR middle-end/42874
30076 * tree-inline.c (cannot_copy_type_1): Removed.
30077 (copy_forbidden): Don't forbid copying of functions containing
30078 records/unions with variable length fields.
30080 2010-01-27 Christian Bruel <christian.bruel@st.com>
30084 * config/sh/sh.c (find_barrier): Increase length for non delayed
30085 conditional branches.
30087 2010-01-27 Matthias Klose <doko@ubuntu.com>
30089 * configure.ac (gnu-unique-object): Fix ldd version check.
30090 * configure: Regenerate.
30092 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30094 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
30096 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
30097 Test for HAVE_GNU_AS value.
30099 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30101 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
30102 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
30103 INT64_TYPE): Define.
30104 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
30105 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30106 INT_LEAST64_TYPE): Define.
30107 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
30108 UINT_LEAST64_TYPE): Define.
30109 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
30110 INT_FAST64_TYPE): Define.
30111 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30112 UINT_FAST64_TYPE): Define.
30113 (INTMAX_TYPE, UINTMAX_TYPE): Define.
30114 (INTPTR_TYPE, UINTPTR_TYPE): Define.
30115 (SIG_ATOMIC_TYPE): Define.
30117 2010-01-26 Richard Guenther <rguenther@suse.de>
30119 * df-scan.c (df_scan_set_bb_info): Remove assert.
30120 (df_insn_rescan_debug_internal): Merge asserts.
30121 (df_install_ref): Likewise.
30122 (df_mark_reg): Use bitmap_set_range.
30123 (df_hard_reg_used_p): Remove assert.
30124 (df_hard_reg_used_count): Likewise.
30126 2010-01-26 Richard Guenther <rguenther@suse.de>
30128 PR rtl-optimization/42685
30129 * web.c (web_main): Ignore DEBUG_INSNs.
30131 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
30133 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
30135 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
30136 Fix types of fndecl and arglist parameters.
30138 2010-01-26 Richard Guenther <rguenther@suse.de>
30140 PR middle-end/42806
30141 * tree-eh.c (unsplit_eh): Skip debug insns.
30143 2010-01-26 Richard Guenther <rguenther@suse.de>
30145 PR tree-optimization/42250
30146 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
30148 2010-01-26 Jakub Jelinek <jakub@redhat.com>
30151 * omp-low.c (expand_omp_sections): Only use single_pred if
30152 l2_bb is single_pred_p.
30154 2010-01-25 Christian Bruel <christian.bruel@st.com>
30157 * config/sh/sh.c (find_barrier): Increase length for non delayed
30158 conditional branches.
30159 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
30161 2010-01-24 David S. Miller <davem@davemloft.net>
30163 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
30164 define if not using GAS.
30165 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30166 Likewise. Delete SECTION_MERGE code, which is only applicable
30169 2010-01-24 Mark Mitchell <mark@codesourcery.com>
30172 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
30173 mangling of va_list in system headers.
30175 2010-01-23 Toon Moene <toon@moene.org>
30177 * tree-predcom.c (combine_chains): Return NULL, not false.
30179 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
30181 * tree-loop-distribution.c (distribute_loop): Fix declaration and
30182 initialization of variable res to agree with return type.
30184 2010-01-22 Steve Ellcey <sje@cup.hp.com>
30186 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
30187 * tree-sra.c: Add include of expr.h.
30189 2010-01-22 Jakub Jelinek <jakub@redhat.com>
30191 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
30192 insert the debug stmt on the single non-EH edge from the stmt.
30194 2010-01-22 Richard Henderson <rth@redhat.com>
30197 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
30198 the RHS until after generate_subtree_copies has insertted its
30199 code before the current statement.
30201 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
30203 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
30205 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
30207 2010-01-21 Martin Jambor <mjambor@suse.cz>
30209 PR tree-optimization/42585
30210 * tree-sra.c (struct access): New field grp_total_scalarization.
30211 (dump_access): Dump the new field.
30212 (should_scalarize_away_bitmap): New variable.
30213 (cannot_scalarize_away_bitmap): Likewise.
30214 (sra_initialize): Allocate new bitmaps.
30215 (sra_deinitialize): Free new bitmaps.
30216 (create_access_1): New function.
30217 (create_access): Parts moved to create_access_1.
30218 (type_consists_of_records_p): New function.
30219 (completely_scalarize_record): Likewise.
30220 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
30221 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
30222 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
30224 (analyze_all_variable_accesses): Completely scalarize small eligible
30227 2010-01-21 Martin Jambor <mjambor@suse.cz>
30229 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
30231 2010-01-21 Andrew Haley <aph@redhat.com>
30233 * gcc.c (process_command): Move lang_specific_driver before
30234 setting cc_libexec_prefix.
30236 2010-01-21 Richard Guenther <rguenther@suse.de>
30238 PR middle-end/19988
30239 * fold-const.c (negate_expr_p): Pretend only negative
30240 real constants are easily negatable.
30242 2010-01-20 Janis Johnson <janis187@us.ibm.com>
30243 Jason Merrill <jason@redhat.com>
30245 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
30246 (TYPE_TRANSPARENT_AGGR): this, for union and record.
30247 * calls.c (initialize argument_information): Handle it.
30248 * c-common.c (handle_transparent_union_attribute): Use new name.
30249 * c-decl.c (finish_struct): Ditto.
30250 * c-typeck.c (type_lists_compatible_p): Ditto.
30251 (convert_for_assignment): Use new name and also handle record.
30252 * function.c (aggregate_value_p): Handle it.
30253 (pass_by_reference): Ditto.
30254 (assign_parm_data_types): Ditto.
30255 * print-tree.c (print_node): Ditto.
30256 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
30257 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
30258 * tree.c (first_field): New fn.
30260 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
30263 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
30264 even when linking statically, for now.
30266 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
30269 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
30270 without a cselib val.
30271 (count_uses): Accept MO_VAL_SET with no val on stores.
30272 (add_stores): Likewise.
30274 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30276 * var-tracking.c (check_value_val): Add a compile time assertion.
30277 (dv_is_decl_p): Simplify.
30278 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
30279 gcc_assert if ENABLE_CHECKING.
30281 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
30284 * var-tracking.c: Include tree-flow.h.
30285 (mem_dies_at_call): New.
30286 (dataflow_set_preserve_mem_locs): Use it.
30287 (dataflow_set_remove_mem_locs): Likewise.
30288 (dump_var): Renamed from dump_variable. Adjust all callers.
30289 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
30290 * Makefile.in (var-tracking.o): Adjust deps.
30292 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
30294 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
30296 2010-01-20 Richard Guenther <rguenther@suse.de>
30298 PR tree-optimization/42717
30299 * tree-ssa-dce.c (get_live_post_dom): Remove.
30300 (forward_edge_to_pdom): Take an arbitrary edge to copy
30301 degenerate PHI args from.
30302 (remove_dead_stmt): Use the first post-dominator even if it
30303 does not contain live statements as redirection destination.
30305 2010-01-20 Richard Guenther <rguenther@suse.de>
30307 * tree-inline.c (estimate_num_insns): Handle EH builtins.
30309 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30311 * sel-sched.c (create_speculation_check): Remove set but not used
30313 (try_transformation_cache): Remove set but not used variable ds.
30314 (calculate_privileged_insns): Remove set but not used variables
30315 cur_insn and min_spec_insn.
30316 (find_best_expr): Remove set but not used variable avail_n.
30317 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
30319 * cgraphunit.c (assemble_thunk): Remove set but not used variable
30321 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
30322 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
30323 new_scop_exit_edge.
30325 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
30328 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
30329 cpu types. Add support for *-sse3 cpu types.
30330 (x86_64-*-*): Ditto.
30332 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30334 PR middle-end/42803
30335 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
30336 argument, call initializer_constant_valid_p_1 instead of
30337 initializer_constant_valid_p, pass CACHE to it, return NULL
30338 immediately if first call returns NULL.
30339 (initializer_constant_valid_p_1): New function.
30340 (initializer_constant_valid_p): Use it.
30342 2010-01-20 Thomas Quinot <quinot@adacore.com>
30344 * tree.def (PLACEHOLDER_EXPR): Fix comment.
30346 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30348 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
30349 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
30350 (loc_list_from_tree): Don't handle unsigned division. Handle
30351 signed modulo using DW_OP_{over,over,div,mul,minus}.
30352 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
30353 modulo instead of signed.
30355 2010-01-20 DJ Delorie <dj@redhat.com>
30357 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
30359 (h8300_emit_stack_adjustment): Propogate it.
30361 (h8300_expand_prologue): Likewise.
30362 (h8300_expand_epilogue): Likewise.
30364 2010-01-19 Michael Matz <matz@suse.de>
30366 PR tree-optimization/41783
30367 * tree-data-ref.c (toplevel): Include flags.h.
30368 (dump_data_dependence_relation): Also dump the inputs if the
30369 result will be unknown.
30370 (split_constant_offset_1): Look through some conversions.
30371 * tree-predcom.c (determine_roots_comp): Restart a new chain if
30372 the offset from last element is too large.
30373 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
30374 (reassociate_to_the_same_stmt): Handle vector registers.
30375 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
30376 (e.g. conversions).
30377 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
30378 wide_prolog_niters argument, emit widening instructions.
30379 (vect_do_peeling_for_alignment): Adjust caller, use widened
30380 variant of the iteration cound.
30381 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
30383 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30386 * config/arm/neon-testgen.m (emit_automatics): New parameter
30387 features. Adjust for Fixed_return_reg feature.
30388 (test_intrinsic): Call emit_automatics with new feature.
30389 * config/arm/neon.ml: Update copyright years.
30390 (features): New Fixed_return_reg feature.
30391 (ops): Update feature for Vget_low.
30393 2010-01-19 Jakub Jelinek <jakub@redhat.com>
30395 PR tree-optimization/42719
30396 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
30400 * fwprop.c (all_uses_available_at): Return false if def_set dest
30401 is a REG that is used in def_insn.
30403 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
30405 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
30407 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
30408 Add argument names.
30410 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
30412 * target.h (struct gcc_target) <secondary_reload>: Change type
30413 of last argument to secondary_reload_info *.
30415 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
30418 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
30419 memory references with unaligned offsets. Remove CQImode handling.
30420 (unaligned_memory_operand): Return 1 for memory references with
30421 unaligned offsets. Remove CQImode handling.
30423 2010-01-18 Richard Guenther <rguenther@suse.de>
30425 PR middle-end/39954
30426 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
30429 2010-01-18 Richard Guenther <rguenther@suse.de>
30431 PR tree-optimization/42781
30432 * tree-ssa-structalias.c (find_what_var_points_to): Skip
30433 restrict processing only if the original variable was artificial.
30435 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
30437 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
30438 find number of popped argument bytes.
30440 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
30441 Fix the text that describes the return value for invalid insns.
30443 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
30445 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
30446 Clarify what 'cost of the -dependence' is. Fix quoting.
30448 * toplev.c (default_get_pch_validity): Rename argument to "sz".
30449 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
30451 2010-01-17 Jakub Jelinek <jakub@redhat.com>
30453 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30454 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
30456 2010-01-17 Richard Guenther <rguenther@suse.de>
30458 PR middle-end/42248
30459 * function.c (split_complex_args): Take a VEC to modify.
30460 (assign_parms_augmented_arg_list): Build a VEC instead of
30461 a chain of PARM_DECLs.
30462 (assign_parms_unsplit_complex): Take a VEC of arguments.
30463 Do not fixup unmodified parms.
30464 (assign_parms): Deal with the VEC.
30465 (gimplify_parameters): Likewise.
30467 2010-01-17 Richard Guenther <rguenther@suse.de>
30469 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
30470 node existence check.
30471 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
30472 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
30473 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
30474 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
30475 (gimple_execute_on_growing_pred): Likewise.
30477 2010-01-17 Richard Guenther <rguenther@suse.de>
30479 PR tree-optimization/42773
30480 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
30481 (compute_antic_aux): Likewise.
30482 (compute_partial_antic_aux): Likewise.
30484 2010-01-17 Jie Zhang <jie.zhang@analog.com>
30487 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
30490 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
30492 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
30495 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
30496 Fix markup for strict argument.
30498 (TARGET_SCHED_REORDER2): Fix argument types.
30500 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
30501 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
30503 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
30504 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
30506 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
30509 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
30510 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
30511 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
30512 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
30513 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
30515 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
30517 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
30519 (TARGET_ASM_RELOC_RW_MASK): Add return type.
30520 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
30522 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
30524 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
30527 (TARGET_ASM_NAMED_SECTION): Fix argument list.
30529 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
30530 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
30532 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
30534 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
30536 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
30537 referring to it. Fix language.
30539 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
30541 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
30543 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
30545 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
30547 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
30548 '@var{stream}. Remove stray 'and'.
30550 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
30552 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
30554 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
30556 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
30557 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
30559 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
30560 Fix description of return value.
30561 Rename argument "sz" to "len."
30563 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
30564 Clarify meaning of 'true' return value.
30566 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
30568 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
30569 rep_mode versus mode_rep.
30571 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
30573 (TARGET_BUILTIN_DECL): Fix name.
30575 (TARGET_COMMUTATIVE_P): Fix type of first argument.
30577 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
30579 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
30581 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
30583 (TARGET_RELAXED_ORDERING): Use @deftypevr.
30585 (TARGET_GET_DRAP_RTX): Note that this is a hook.
30588 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
30589 Rename argument tm_fn to md_fn.
30591 (TARGET_OPTION_PRINT): Fix argument list.
30593 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
30596 * config/i386/i386.c (ix86_fixup_binary_operands):
30597 Revert FMA4 fixup of operands.
30599 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30602 * Makefile.in (write_entries_to_file, install-plugin):
30603 Use \012 instead of \n with tr.
30605 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
30607 * configure.ac (HAVE_AS_REF): New C macro.
30608 * configure: Regenerate.
30609 * config.in: Likewise.
30610 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
30612 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
30615 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
30617 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
30619 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
30621 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
30623 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
30625 (TARGET_IN_SMALL_DATA_P): Fix argument type.
30627 (TARGET_BINDS_LOCAL_P): Fix argument type.
30629 (TARGET_ASM_FILE_END): Use prototype.
30631 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
30633 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
30635 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
30637 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
30639 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
30640 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
30642 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
30643 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
30645 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
30646 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
30647 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
30648 (TARGET_ADDR_SPACE_CONVERT): Likewise.
30650 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
30652 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
30654 (TARGET_INIT_BUILTINS): Use prototype.
30656 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
30657 Put 'const char *' in braces. Fix parameter types.
30658 (TARGET_INVALID_CONVERSION): Fix parameter types.
30659 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
30660 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
30662 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
30665 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
30667 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
30669 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
30671 * doc/tm.texi (TARGET_HELP): Fix return type.
30673 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
30674 in braces. Fix argument types.
30676 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
30678 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
30680 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
30682 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
30683 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
30685 (TARGET_MANGLE_TYPE): Fix argument types.
30687 (TARGET_IRA_COVER_CLASSES): Use prototype.
30689 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
30691 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
30693 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
30695 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
30697 (TARGET_CALLEE_COPIES): Fix argument types.
30699 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
30701 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
30703 (TARGET_FUNCTION_VALUE): Fix argument types.
30705 (TARGET_RETURN_IN_MSB): Fix argument type.
30707 (TARGET_RETURN_IN_MEMORY): Fix argument types.
30709 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
30711 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
30713 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
30714 agree with return type.
30716 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
30718 2010-01-15 Jing Yu <jingyu@google.com>
30720 PR rtl-optimization/42691
30721 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
30722 a pseudo to a constant and are merged, and adjust comments.
30724 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
30726 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
30728 2010-01-15 Richard Guenther <rguenther@suse.de>
30730 PR middle-end/42739
30731 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
30732 labels of computed or non-local gotos to the destination.
30733 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
30734 landing pad label is the first label.
30736 2010-01-15 Richard Guenther <rguenther@suse.de>
30738 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
30740 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30743 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
30744 to allow generation of the xssqrtdp instruction on power7.
30745 (sqrtdf2_fpr): Ditto.
30747 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30749 PR middle-end/42674
30750 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
30751 functions with noreturn attribute.
30754 * varasm.c (declare_weak): Add weak attribute to decl if it
30755 doesn't have one already.
30756 (assemble_external): Only add decls to weak_decls if they also
30757 have weak attribute.
30759 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
30761 * var-tracking.c (var_reg_delete): Don't delete the association
30762 between REGs and values or one-part variables if the register
30765 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30768 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
30769 because its first operand is a non-localized variable.
30771 2010-01-14 Martin Jambor <mjambor@suse.cz>
30773 PR tree-optimization/42706
30774 * tree-sra.c (encountered_recursive_call): New variable.
30775 (encountered_unchangable_recursive_call): Likewise.
30776 (sra_initialize): Initialize both new variables.
30777 (callsite_has_enough_arguments_p): New function.
30778 (scan_function): Call decl and flags check only for IPA-SRA, check
30779 whether there is a recursive call and whether it has enough arguments.
30780 (all_callers_have_enough_arguments_p): New function.
30781 (convert_callers): Look for recursive calls only when
30782 encountered_recursive_call is set.
30783 (ipa_early_sra): Bail out either if
30784 !all_callers_have_enough_arguments_p or
30785 encountered_unchangable_recursive_call.
30787 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30789 * sel-sched.c: Add 2010 to copyright years.
30790 * sel-sched-ir.c: Likewise.
30791 * sel-sched-ir.h: Likewise.
30793 2010-01-14 Martin Jambor <mjambor@suse.cz>
30795 PR tree-optimization/42714
30796 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
30797 constructors specially.
30799 2010-01-14 Andi Kleen <ak@linux.intel.com>
30801 * config/i386/drivers-i386.c (detect_caches_intel):
30802 Add l2sizekb parameter and fill in.
30803 (host_detect_local_cpu): Add l2sizekb, fill in.
30804 Add Atom small cache heuristic.
30806 2010-01-14 Andi Kleen <ak@linux.intel.com>
30808 * config/i386/drivers-i386.c (detect_caches_cpuid4):
30809 Add level3 parameter and fill in.
30810 (detect_caches_intel): Handle level3 cache.
30812 2010-01-14 Andi Kleen <ak@linux.intel.com>
30814 * config/i386/drivers-i386.c (host_detect_local_cpu):
30815 Fix core duo detection.
30817 2010-01-14 Andi Kleen <ak@linux.intel.com>
30819 * config/i386/drivers-i386.c (host_detect_local_cpu):
30820 Fix Atom detection.
30822 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30824 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
30825 (rs6000_variable_issue_1): this. Use...
30826 (rs6000_variable_issue): here. Reimplement. Print debug info.
30828 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30830 * sel-sched-ir.c (sel_restore_other_notes): Rename to
30831 sel_restore_notes. Update all callers. Call reemit_notes
30834 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30836 PR rtl-optimization/42246
30837 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
30840 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30842 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
30843 all successors is the same as number of successors in current region.
30845 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30847 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
30848 to rename is not separable. Otherwise check that its LHS is not NULL.
30850 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30852 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
30854 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30856 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
30857 available registers when failed to discover LHS register class.
30858 Fix indentation. Update comment.
30860 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30861 Alexander Monakov <amonakov@ispras.ru>
30863 PR rtl-optimization/42389
30864 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
30866 (advance_state_on_fence): Likewise.
30867 (sel_target_adjust_priority): Print debug output only when
30868 sched_verbose >= 4, not 2.
30869 (get_expr_cost): Do not issue all unique insns on the next cycle.
30870 (fill_insns): Initialize can_issue_more from the value saved
30872 * sel-sched-ir.c (flist_add): New parameter issue_more.
30873 Init FENCE_ISSUE_MORE with it.
30874 (merge_fences): Likewise.
30875 (init_fences): Update call to flist_add.
30876 (add_to_fences, add_clean_fence_to_fences)
30877 (add_dirty_fence_to_fences): Likewise.
30878 (move_fence_to_fences): Update call to merge_fences.
30879 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
30881 * sel-sched-ir.h (struct _fence): New field issue_more.
30882 (FENCE_ISSUE_MORE): New accessor macro.
30884 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30886 PR rtl-optimization/42388
30887 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
30888 that have no predecessors nor successors. Do not call move_bb_info
30889 for empty blocks outside of current region.
30891 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30893 PR rtl-optimization/42294
30894 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
30895 * sel-sched.c (move_exprs_to_boundary): Transitively add all
30896 originators' originators.
30898 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30900 PR rtl-optimization/39453
30901 PR rtl-optimization/42246
30902 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
30904 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
30906 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30907 Alexander Monakov <amonakov@ispras.ru>
30909 PR middle-end/42245
30910 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
30911 (maybe_tidy_empty_bb): ... here. Make static. Add new
30912 argument. Update all callers.
30913 (tidy_control_flow): ... and here. Recompute topological order
30914 of basic blocks in region if necessary.
30915 (sel_redirect_edge_and_branch): Change return type. Return true
30916 if topological order might have been invalidated.
30917 (purge_empty_blocks): Export and move from...
30918 * sel-sched.c (purge_empty_blocks): ... here.
30919 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
30920 (maybe_tidy_empty_bb): Delete prototype.
30921 (purge_empty_blocks): Declare.
30923 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30925 PR rtl-optimization/42249
30926 * sel-sched.c (try_replace_dest_reg): When chosen register
30927 and original register is the same, do not bail out early, but
30928 still check all original insns for validity of replacing destination
30929 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
30932 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30935 Port from no-undefined-overflow branch:
30936 2009-03-09 Richard Guenther <rguenther@suse.de>
30938 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
30940 2010-01-14 Richard Guenther <rguenther@suse.de>
30943 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
30945 2010-01-14 Ira Rosen <irar@il.ibm.com>
30947 PR tree-optimization/42709
30948 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
30949 as scalar type in creation of constant vector operand.
30951 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30954 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
30955 (check-parallel-%): Match `testsuite' directory component only
30958 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
30960 PR translation/39521
30961 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
30964 2010-01-13 Richard Guenther <rguenther@suse.de>
30966 PR tree-optimization/42730
30967 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
30970 2010-01-13 Steve Ellcey <sje@cup.hp.com>
30973 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
30974 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
30977 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
30979 * config/bfin/libgcc-bfin.ver: Regenerate based on current
30980 libgcc-std.ver. Add entries for ___smulsi3_highpart and
30981 ___umulsi3_highpart.
30983 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
30984 rather than schedule_insns if the pass is enabled.
30986 2010-01-13 Martin Jambor <mjambor@suse.cz>
30988 PR tree-optimization/42704
30989 * tree-sra.c (sra_modify_assign): Do not delete assignments to
30992 2010-01-13 Martin Jambor <mjambor@suse.cz>
30994 PR tree-optimization/42703
30995 * tree-sra.c (analyze_access_subtree): Check that we can build a
30996 reference to the original data within the aggregate.
30998 2010-01-13 Richard Guenther <rguenther@suse.de>
31000 PR tree-optimization/42705
31001 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
31003 2010-01-13 Richard Guenther <rguenther@suse.de>
31005 PR middle-end/42716
31006 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
31008 2010-01-13 Jakub Jelinek <jakub@redhat.com>
31011 * var-tracking.c (values_to_unmark): New variable.
31012 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31013 values_to_unmark vector. Moved body to...
31014 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
31015 instead queue it into values_to_unmark vector.
31016 (vt_find_locations): Free values_to_unmark vector.
31018 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
31020 * config/s390/s390.c (override_options): Set
31021 default of max-pending-list-length to 256
31023 2010-01-13 Richard Guenther <rguenther@suse.de>
31026 * tree-pass.h (PROP_gimple_lcx): New.
31027 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
31028 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
31029 before the final cleanup_eh.
31030 (dump_properties): Dump PROP_gimple_lcx.
31031 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
31032 (tree_lower_complex_O0): Remove.
31033 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
31034 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
31035 tree_lower_complex, schedule TODO_update_ssa.
31036 * lto-streamer-out.c (output_function): Stream the functions
31038 * lto-streamer-in.c (input_function): Likewise.
31039 (lto_read_body): Do not override them here.
31041 2010-01-12 Joseph Myers <joseph@codesourcery.com>
31044 * c-typeck.c (build_c_cast): Fold value cast to union type before
31045 wrapping it in a CONSTRUCTOR.
31047 2010-01-12 Jakub Jelinek <jakub@redhat.com>
31049 PR rtl-optimization/42699
31050 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
31053 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31055 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
31056 SUBTARGET_WARN_UNUSED_SPEC): Move ...
31057 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
31058 SUBTARGET_WARN_UNUSED_SPEC): ... here
31059 * config/mips/iris5.h (LIBGCC_SPEC): Define.
31061 2010-01-12 Julian Brown <julian@codesourcery.com>
31063 * config/arm/neon-schedgen.ml (Utils): Don't try to
31064 open missing module.
31065 (find_with_result): New.
31067 2010-01-12 Jakub Jelinek <jakub@redhat.com>
31070 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
31071 sharing when canonicalizing ({lt,ge}u (plus a b) b).
31073 PR tree-optimization/42645
31074 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
31075 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
31076 decl_map, set processing_debug_stmt to -1 and return name without
31079 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
31081 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
31082 binutils version, and reword target configuration description.
31084 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
31086 * config/avr/avr.h (LINKER_NAME): Remove.
31088 2010-01-11 Janis Johnson <janis187@us.ibm.com>
31091 * config/rs6000/rs6000.c (rs6000_override_options): On targets
31092 that support VSX, warn for -mno-altivec if vsx is not disabled,
31095 2010-01-11 Joseph Myers <joseph@codesourcery.com>
31096 Shujing Zhao <pearly.zhao@oracle.com>
31098 PR translation/42469
31099 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
31100 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
31101 character between option name and help text.
31102 * c.opt (imultilib): Likewise.
31104 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
31106 * lto-streamer-out.c (output_unreferenced_globals): Output static
31109 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
31111 PR rtl-optimization/42621
31112 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
31113 optimizing for size.
31114 (duplicate_computed_gotos): Remove now-redundant check.
31116 2010-01-10 Steve Ellcey <sje@cup.hp.com>
31119 * configure.ac: Save and restore LDFLAGS and LIBS
31120 * configure: Regenerate.
31122 2010-01-10 Richard Guenther <rguenther@suse.de>
31124 PR middle-end/42667
31125 * builtins.c (fold_builtin_strlen): Add type argument and
31126 convert the resulting length to it.
31127 (fold_builtin_1): Adjust.
31129 2010-01-09 Jakub Jelinek <jakub@redhat.com>
31131 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
31132 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
31134 (num_insns_constant_wide): Adjust for that change.
31136 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31139 * web.c (union_defs): Add used argument, to combine uses of
31140 uninitialized regs.
31141 (entry_register): Adjust type and tests of used argument.
31142 (web_main): Widen used for new use. Pass it to union_defs.
31143 * df.h (union_defs): Adjust prototype.
31145 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31148 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
31149 uses in new incoming argument. Free body.
31150 (reset_debug_uses_in_loop): New.
31151 (analyze_insn_to_expand_var): Call the latter if the former found
31152 anything. Fix whitespace. Reject invalid dest overlaps before
31153 going through all insns in the loop.
31155 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31158 * haifa-sched.c (dying_use_p): Debug insns don't count.
31160 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31162 PR middle-end/42363
31163 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
31164 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
31165 (verify_gimple_call): Reject LHS in noreturn calls.
31167 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31171 * tree-vect-loop-manip.c (adjust_info): New type.
31172 (adjust_vec): New pointer to vector.
31173 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
31174 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
31175 (slpeel_update_phis_for_duplicate_loop): Use them.
31176 (slpeel_update_phi_nodes_for_guard1): Likewise.
31177 (slpeel_update_phi_nodes_for_guard2): Likewise.
31178 (slpeel_tree_peel_loop_to_edge): Likewise.
31179 (vect_update_ivs_after_vectorizer): Likewise.
31181 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31183 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
31184 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
31186 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31188 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
31189 bogus uninitialized warning.
31191 2010-01-09 Richard Guenther <rguenther@suse.de>
31193 PR middle-end/42512
31194 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
31195 the evolution is compatible with the initial condition.
31197 2010-01-09 Jakub Jelinek <jakub@redhat.com>
31199 * gcc.c (process_command): Update copyright notice dates.
31200 * gcov.c (print_version): Likewise.
31201 * gcov-dump.c (print_version): Likewise.
31202 * mips-tfile.c (main): Likewise.
31203 * mips-tdump.c (main): Likewise.
31205 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
31208 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
31210 (rotlhi3_8): Delete.
31212 (rotlsi3_8): Delete.
31213 (rotlsi3_16): Delete.
31214 (rotlsi3_24): Delete.
31215 (rotl<mode>3): New.
31216 (*rotw<mode>3): New.
31217 (*rotb<mode>3): New.
31218 * config/avr/avr.c (avr_rotate_bytes): New function.
31219 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
31221 2010-01-08 Steve Ellcey <sje@cup.hp.com>
31224 * configure.ac: Modify -rdynamic check.
31225 * configure: Regenerate.
31227 2010-01-08 DJ Delorie <dj@redhat.com>
31229 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
31230 register popping order.
31232 2010-01-08 Richard Guenther <rguenther@suse.de>
31235 * c.opt (fsigned-char): Also let LTO handle this option.
31236 (funsigned-char): Likewise.
31238 2010-01-07 Richard Guenther <rguenther@suse.de>
31240 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
31241 (gimple_op): Likewise.
31242 (gimple_op_ptr): Likewise.
31243 (gimple_assign_set_lhs): Remove gcc_assert.
31244 (gimple_assign_set_rhs1): Likewise.
31245 (gimple_assign_set_rhs2): Likewise.
31246 (gimple_call_set_lhs): Likewise.
31247 (gimple_call_set_fn): Likewise.
31248 (gimple_call_set_fndecl): Likewise.
31249 (gimple_call_fndecl): Likewise.
31250 (gimple_call_return_type): Likewise.
31251 (gimple_call_set_chain): Likewise.
31252 (gimple_call_num_args): Likewise.
31253 (gimple_call_set_arg): Likewise.
31254 (gimple_cond_set_code): Likewise.
31255 (gimple_cond_set_lhs): Likewise.
31256 (gimple_cond_set_rhs): Likewise.
31257 (gimple_cond_set_true_label): Likewise.
31258 (gimple_cond_set_false_label): Likewise.
31259 (gimple_label_set_label): Likewise.
31260 (gimple_goto_set_dest): Likewise.
31261 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
31262 (gimple_debug_bind_get_value): Likewise.
31263 (gimple_debug_bind_get_value_ptr): Likewise.
31264 (gimple_debug_bind_set_var): Likewise.
31265 (gimple_debug_bind_set_value): Likewise.
31266 (gimple_debug_bind_reset_value): Likewise.
31267 (gimple_debug_bind_has_value_p): Likewise.
31268 (gimple_return_retval_ptr): Remove gcc_assert.
31269 (gimple_return_retval): Likewise.
31270 (gimple_return_set_retval): Likewise.
31271 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
31272 (safe_referenced_var_iterator): Remove.
31273 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
31274 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
31275 (fill_referenced_var_vec): Remove.
31276 (first_readonly_imm_use): Remove redundant gcc_assert.
31277 (phi_arg_index_from_use): Combine gcc_asserts.
31278 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
31279 (first_imm_use_stmt): Remove redundant gcc_assert.
31280 * tree-cfg.c (verify_gimple_call): Verify function and chain
31281 operands. Verify arguments.
31282 (verify_types_in_gimple_stmt): Verify condition code and labels.
31284 2010-01-07 Richard Guenther <rguenther@suse.de>
31286 PR tree-optimization/42641
31287 * sese.c (rename_map_elt_info): Use the SSA name version, do
31290 2010-01-07 Jakub Jelinek <jakub@redhat.com>
31292 PR tree-optimization/42625
31293 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
31294 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
31296 2010-01-07 Duncan Sands <baldrick@free.fr>
31298 * Makefile.in (PLUGIN_HEADERS): Add version.h.
31300 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
31303 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
31304 note itself is not function_invariant_p.
31306 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
31308 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
31309 Do not add the DF_NOTE problem.
31310 * store-motion.c (execute_rtl_store_motion): Likewise.
31312 2010-01-07 Martin Jambor <mjambor@suse.cz>
31314 PR tree-optimization/42157
31315 * tree-sra.c (compare_access_positions): Stabilize sort if both
31316 accesses have integer types, return zero immediately if they are the
31319 2010-01-06 Richard Henderson <rth@redhat.com>
31321 PR middle-end/41883
31322 * haifa-sched.c (add_to_note_list): Merge into ...
31323 (concat_note_lists): ... here, and ...
31324 (unlink_other_notes, rm_other_notes): Merge into...
31325 (remove_notes): ... here. Create REG_SAVE_NOTEs for
31326 NOTE_INSN_EPILOGUE_BEG.
31328 2010-01-06 Richard Guenther <rguenther@suse.de>
31330 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
31331 not inline regular functions into always-inline functions.
31333 2010-01-06 Nick Clifton <nickc@redhat.com>
31335 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
31336 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
31338 (OVERRIDE_OPTIONS): Delete.
31339 (OPTIMIZATION_OPTIONS): Define.
31340 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
31341 * config/rx/rx.c (rx_handle_option): Issue an error message if
31342 -mcpu=rx200 and -fpu are used together.
31343 (rx_set_optimization_options): New function. Issue an error
31344 message if an optimization attribute attempts to reset the FPU/
31345 math optimization pairing.
31346 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
31347 * config/rx/rx.opt: Set the default to 32-bit doubles.
31348 * config/rx/t-rx: Add multilibs for -nofpu option.
31349 * doc/invoke.texi: Update documentation of RX options.
31351 2010-01-06 Richard Guenther <rguenther@suse.de>
31353 * tree-ssa-pre.c (name_to_id): New global.
31354 (alloc_expression_id): Simplify SSA name handling.
31355 (lookup_expression_id): Likewise.
31356 (init_pre): Zero name_to_id.
31357 (fini_pre): Free it.
31359 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
31361 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
31363 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
31366 * config/i386/sse.md (smaxv2di3): New.
31367 (umaxv2di3): Likewise.
31368 (sminv2di3): Likewise.
31369 (uminv2di3): Likewise.
31371 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
31374 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
31375 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
31376 (legitimize_tls_address): Likewise.
31377 (sparc_tls_referenced_p): Likewise.
31378 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
31379 and adjust calls to legitimize_pic_address.
31380 (legitimate_constant_p) Use sparc_tls_referenced_p.
31381 (legitimate_pic_operand_p): Likewise.
31382 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
31383 (sparc_tls_symbol_ref_1): Delete.
31384 (sparc_tls_referenced_p): Make static, recognize specific patterns.
31385 (legitimize_tls_address): Make static, handle CONST patterns.
31386 (legitimize_pic_address): Make static, remove unused parameter and
31387 adjust recursive calls.
31388 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
31389 and adjust call to legitimize_pic_address.
31390 (sparc_output_mi_thunk): Likewise.
31392 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
31393 H.J. Lu <hongjiu.lu@intel.com>
31396 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
31397 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
31398 operands to make them signed.
31401 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31404 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31405 GTU to GT for V4SI and V2DI.
31407 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31408 (umin<mode>3): Removed.
31410 (uminv4si3): Likewise.
31412 2010-01-05 Martin Jambor <mjambor@suse.cz>
31414 PR tree-optimization/42462
31415 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
31416 current_function_decl to helper functions and macros.
31418 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31421 * flags.h: Don't include real.h.
31422 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
31423 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
31424 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
31425 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
31426 * dominance.c: Update copyright.
31427 * gimple.c (walk_gimple_op): Remove inline.
31428 * tree-ssa-reassoc.c: Include real.h.
31429 * Makefile.in (FLAGS_H): Remove $(REAL_H).
31430 (tree-ssa-reassoc.o): Depend on $(REAL_H).
31432 2010-01-05 Nick Clifton <nickc@redhat.com>
31434 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
31435 register to push into the stack frame when the accumulator has to
31436 be saved during interrupts.
31438 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
31440 * doc/invoke.texi: Remove the documentation about option
31441 -Wunreachable-code.
31442 * common.opt (Wunreachable-code): Preserved for backward
31444 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
31445 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
31446 the backward compatibility flag section.
31448 2010-01-05 Richard Guenther <rguenther@suse.de>
31450 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
31452 2010-01-05 Jakub Jelinek <jakub@redhat.com>
31455 * cfgexpand.c (expand_one_var): Diagnose too large variables.
31457 PR tree-optimization/42508
31458 * tree-sra.c (convert_callers): Check for recursive call
31459 by comparing cgraph nodes instead of decls.
31460 (modify_function): Call ipa_modify_formal_parameters also
31461 on all same_body aliases.
31463 * cgraphunit.c (cgraph_materialize_all_clones): Compare
31464 cgraph nodes when checking for same_body aliases.
31466 2010-01-05 Richard Guenther <rguenther@suse.de>
31468 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
31469 allocation and lookup.
31470 (get_or_alloc_expr_for_constant): Likewise.
31471 (phi_translate): Sink allocation.
31473 2010-01-04 Richard Guenther <rguenther@suse.de>
31475 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
31476 a new entry only if needed.
31477 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
31478 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
31480 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
31482 (phi_translate): Handle CONSTANTs early.
31484 2010-01-04 Martin Jambor <mjambor@suse.cz>
31486 PR tree-optimization/42398
31487 * tree-sra.c (struct access): Removed flag grp_different_types.
31488 (dump_access): Do not dump the removed flag.
31489 (sort_and_splice_var_accesses): Do not set the removed flag.
31490 (sra_modify_expr): Check for type compatibility directly.
31492 2010-01-04 Martin Jambor <mjambor@suse.cz>
31494 PR tree-optimization/42366
31495 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
31496 edges with variable number of parameters.
31497 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
31498 flag instead of asserting it.
31499 (ipa_read_node_info): Read uses_analysis_done flag.
31501 2010-01-04 Richard Guenther <rguenther@suse.de>
31503 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
31504 iterative_hash_* as intended.
31505 (vn_reference_compute_hash): Likewise. Simplify hashing
31507 (vn_reference_lookup_2): Likewise.
31508 (vn_nary_op_compute_hash): Likewise.
31509 (vn_phi_compute_hash): Likewise.
31510 (expressions_equal_p): Remove strange code.
31511 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
31512 (pre_expr_hash): Likewise. Simplify hashing SSA names.
31513 (bitmap_insert_into_set_1): Take value-id as parameter.
31514 (add_to_value): Pass it.
31515 (bitmap_insert_into_set): Likewise.
31516 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
31518 2010-01-04 Jakub Jelinek <jakub@redhat.com>
31521 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
31522 (do_self_spec): For switches with SWITCH_IGNORE set set also
31523 SWITCH_IGNORE_PERMANENTLY.
31524 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
31527 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
31529 * lto-streamer-out.c (output_unreferenced_globals): Output the full
31530 tree of an unreferenced global var.
31532 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31535 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31536 GTU to GT for V4SI and V2DI.
31538 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31539 (umin<mode>3): Removed.
31541 (uminv4si3): Likewise.
31543 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31546 * collect2.c (main): Turn on trace in collect2 if -v is passed
31549 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
31551 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
31552 description of expression operand.
31554 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
31556 * configure.ac: Add install-html to target_list for Make-hooks.
31557 * configure: Regenerate.
31558 * fortran/Make-lang.in (F95_HTMLFILES): New.
31559 (fortran.html): Use it.
31560 (fortran.install-html): New.
31561 * Makefile.in (install-html): Add lang.install-html.
31562 * java/Make-lang.in (JAVA_HTMLFILES): New.
31563 (java.html): Use it.
31564 (java.install-html): New.
31565 * objc/Make-lang.in (objc.install-html): New.
31566 * objcp/Make-lang.in (obj-c++.install-html): New.
31567 * cp/Make-lang.in (c++.install-html): New.
31568 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
31569 * lto/Make-lang.in (lto.install-html): New.
31571 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31574 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
31576 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
31578 PR rtl-optimization/41862
31579 * store-motion.c (store_killed_in_insn, compute_store_table,
31580 remove_reachable_equiv_notes, replace_store_insn,
31581 build_store_vectors): Ignore all DEBUG_INSNs.
31583 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31586 * common.opt: Add dumpdir.
31588 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
31590 (option_map): Add --dumpdir.
31592 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
31594 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
31596 * opts.c (decode_options): Try dump_dir_name first if
31597 dump_base_name isn't an absolute path.
31598 (common_handle_option): Handle OPT_dumpdir.
31600 * toplev.c (dump_dir_name): New.
31601 (print_switch_values): Also ignore -dumpdir.
31603 * toplev.h (dump_dir_name): New.
31605 2010-01-03 Richard Guenther <rguenther@suse.de>
31607 PR tree-optimization/42589
31608 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
31609 double-word expansion of bswap32.
31611 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
31613 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
31614 with BLOCK_FOR_INSN.
31615 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
31616 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
31617 noce_process_if_block): Likewise.
31618 * gcse.c (compute_local_properties, insert_expr_in_table,
31619 insert_set_in_table, canon_list_insert, find_avail_set,
31620 pre_insert_copy_insn): Likewise.
31622 * basic-block.h (BLOCK_NUM): Move from here...
31623 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
31625 2010-01-03 Richard Guenther <rguenther@suse.de>
31627 PR tree-optimization/42438
31628 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
31629 contains_may_not_return_call flag.
31630 (BB_MAY_NOTRETURN): New.
31631 (valid_in_sets): Trapping nary operations are not valid
31632 in blocks that may not return.
31633 (insert_into_preds_of_block): Remove check for trapping expressions.
31634 (compute_avail): Compute also BB_MAY_NOTRETURN.
31636 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
31638 * doc/invoke.texi: Add 2010 to copyright years.
31640 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
31642 * config/sparc/sparc.c: Fix formatting nits.
31644 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
31645 Alexander Monakov <amonakov@ispras.ru>
31647 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
31649 2010-01-02 Richard Guenther <rguenther@suse.de>
31651 PR middle-end/42577
31652 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
31653 (simplify_switch_using_ranges): Mark to be removed edges
31656 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31658 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31660 * collect2.c (scan_libraries): Add missing argument in call to
31663 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
31666 * config/alpha/predicates.md (aligned_memory_operand): Return false
31668 (unaligned_memory_operand): Return true for CQImode.
31669 * config/alpha/alpha.c (get_aligned_mem): Assert that location
31670 doesn not cross aligned SImode word boundary.
31672 2010-01-02 Anatoly Sokolov <aesok@post.ru>
31674 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
31676 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
31677 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
31679 2010-01-02 Richard Guenther <rguenther@suse.de>
31682 * toplev.c (compile_file): Emit LTO marker properly. Change
31683 it to __gnu_lto_v1.
31684 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
31686 2010-01-01 Richard Guenther <rguenther@suse.de>
31689 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
31691 2010-01-01 Richard Guenther <rguenther@suse.de>
31694 * c-decl.c (grokdeclarator): For zero-size arrays force
31695 structural equality checks as layout_type does.
31697 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31699 * builtins.c: Update copyright to 2010.
31701 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31704 * lto-streamer-out.c (produce_asm): Revert the last change.
31705 (copy_function): Likewise.
31707 * lto-streamer.c (lto_get_section_name): Skip any leading
31710 2010-01-01 Richard Guenther <rguenther@suse.de>
31712 PR middle-end/42559
31713 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
31717 Copyright (C) 2010 Free Software Foundation, Inc.
31719 Copying and distribution of this file, with or without modification,
31720 are permitted in any medium without royalty provided the copyright
31721 notice and this notice are preserved.