1 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2 Uros Bizjak <ubizjak@gmail.com>
4 * config/i386/cpuid.h (bit_MOVBE): New.
6 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
8 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
9 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
10 (ix86_handle_option): Handle OPT_mmovbe.
11 (ix86_target_string): Add -mmovbe.
12 (pta_flags): Add PTA_MOVBE.
13 (processor_alias_table): Add PTA_MOVBE to "atom".
14 (override_options): Handle PTA_MOVBE.
16 * config/i386/i386.h (TARGET_MOVBE): New.
18 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
19 (*bswapsi_movbe): New.
20 (*bswapdi_movbe): Likewise.
21 (bswapdi2): Renamed to ...
23 (bswapdi2): New expander.
25 * config/i386/i386.opt (mmovbe): New.
27 * doc/invoke.texi: Document -mmovbe.
29 2009-05-21 Taras Glek <tglek@mozilla.com>
31 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
32 * gcc-plugin.h (plugin_init): Updated signature.
33 * gcc-plugin.h (plugin_name_args): Moved to this header.
34 * doc/plugins.texi (plugin_init): Updated documention to reflect
36 * doc/plugins.texi (plugin_name_args): Added to documention.
38 2009-05-21 Mark Mitchell <mark@codesourcery.com>
40 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
41 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
43 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
45 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
46 JUMP_TABLE_DATA_P predicates where applicable.
47 * config/i386/predicates.md: Ditto.
48 * config/i386/sse.md: Ditto.
50 2009-05-21 Jakub Jelinek <jakub@redhat.com>
52 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
53 operand2 -128 override length_immediate attribute to 1.
54 * config/i386/predicates.md (constm128_operand): New predicate.
56 * config/i386/i386.c (memory_address_length): Handle %r12
57 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
59 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
60 mode look through optional ZERO_EXTEND and SUBREG.
61 * config/i386/i386.md (R12_REG): New define_constant.
62 (prefix_data16): For sse unit set also for MODE_TI insns.
63 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
64 insns set if operand 1 is ext_QIreg_operand.
65 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
66 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
68 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
69 mode from MODE_DI to MODE_SI.
70 (movdi_1_rex64): Override modrm and length_immediate attributes
71 only for movabs (TYPE_IMOV, alternative 2).
72 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
73 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
74 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
75 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
76 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
77 prefix_rex attribute if DImode.
78 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
79 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
80 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
81 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
82 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
83 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
84 Likewise. For TYPE_IMOV clear length_immediate attribute.
85 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
86 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
87 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
88 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
89 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
90 or one operand TYPE_ISHIFT.
91 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
92 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
93 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
94 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
95 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
96 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
97 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
98 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
99 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
100 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
101 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
102 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
103 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
104 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
105 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
106 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
107 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
108 set mode attribute, don't override length attribute.
109 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
111 (return_internal_long): Set length attribute to 2 instead of 1.
112 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
113 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
114 prefix_rex attribute.
115 * config/i386/predicates.md (ext_QIreg_operand,
116 const128_operand): New predicates.
117 (memory_displacement_only_operand): Always return 0 for
120 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
122 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
124 2009-05-20 Ian Lance Taylor <iant@google.com>
126 * tree.c (build_tree_list_vec_stat): New function.
127 (ctor_to_vec): New function.
128 (build_nt_call_vec): New function.
129 (build_call_array): Change args to be a const pointer.
130 (build_call_vec): New function.
131 * tree.h (build_nt_call_vec): Declare.
132 (build_tree_list_vec_stat): Declare.
133 (build_tree_list_vec): Define.
134 (build_call_array): Update declaration.
135 (build_call_vec): Declare.
136 (ctor_to_vec): Declare.
137 * c-common.c (tree_vector_cache): New static variable.
138 (make_tree_vector): New function.
139 (release_tree_vector): New function.
140 (make_tree_vector_single): New function.
141 (make_tree_vector_copy): New function.
142 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
143 (make_tree_vector_single, make_tree_vector_copy): Declare.
144 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
145 (c_parser_expr_list): Don't manage cache here, instead call
147 (c_parser_release_expr_list): Remove static function.
148 (c_parser_vec_to_tree_list): Remove static function.
149 (c_parser_attributes): Call build_tree_list_vec instead of
150 c_parser_vec_to_tree_list. Call release_tree_vector instead of
151 c_parser_release_expr_list.
152 (c_parser_postfix_expression_after_primary): Likewise.
153 (c_parser_objc_keywordexpr): Likewise.
155 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
157 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
158 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
159 TARGET_CONVERT_TO_TYPE.
160 * hooks.c (hook_tree_const_tree_null): Define.
161 * hooks.h (hook_tree_const_tree_null): Declare.
162 * target.h (struct gcc_target): Add invalid_parameter_type,
163 invalid_return_type, promoted_type, and convert_to_type fields.
164 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
165 (TARGET_INVALID_RETURN_TYPE): Define.
166 (TARGET_PROMOTED_TYPE): Define.
167 (TARGET_CONVERT_TO_TYPE): Define.
168 (TARGET_INITIALIZER): Update for new fields.
169 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
170 (grokparms): Check targetm.invalid_parameter_type.
171 * c-typeck.c (default_conversion): Check targetm.promoted_type.
172 * c-convert.c (convert): Check targetm.convert_to_type.
174 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
176 * config/mips/mips.md (*extenddi_truncate<mode>,
177 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
179 (*extendhi_truncateqi): New define_insn_and_sptit.
181 2009-05-20 Jakub Jelinek <jakub@redhat.com>
184 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
185 recursion if build_int_cst_type returns the same INTEGER_CST as
188 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
190 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
191 the operand of VIEW_CONVERT_EXPR.
193 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
195 * config/i386/driver-i386.c (host_detect_local_cpu): Check
196 extended family and model for Intel processors. Support Intel
199 2009-05-20 Olivier Hainque <hainque@adacore.com>
201 * gstab.h (stab_code_type): Define, to be used instead of the
202 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
204 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
205 occurrences by stab_code_type.
206 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
208 2009-05-20 Martin Jambor <mjambor@suse.cz>
210 * tree-flow.h (insert_edge_copies_seq): Undeclare.
211 (sra_insert_before): Likewise.
212 (sra_insert_after): Likewise.
213 (sra_init_cache): Likewise.
214 (sra_type_can_be_decomposed_p): Likewise.
215 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
216 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
217 (sra_insert_before): Likewise.
218 (sra_insert_after): Likewise.
219 (sra_init_cache): Likewise.
220 (insert_edge_copies_seq): Made static and moved upwards.
222 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
225 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
227 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
228 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
231 2009-05-20 Richard Guenther <rguenther@suse.de>
233 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
234 with mismatched comparison modes.
236 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
238 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
239 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
240 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
241 with shifts for Thumb2.
242 (orsi_notsi): New for orn.
243 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
244 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
245 * config/arm/arm.c (const_ok_for_op): Split case for IOR for
247 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add
248 comments. Don't invert remainder for IOR.
250 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
252 PR tree-optimization/40087
253 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
254 number_of_iterations_ne): Rename never_infinite argument.
255 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
256 number_of_iterations_le): Handle pointer-type ivs when
257 exit_must_be_taken is false.
258 (number_of_iterations_cond): Do not always assume that
259 exit_must_be_taken if the control variable is a pointer.
261 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
263 * c-typeck.c (build_binary_op): Allow % on integal vectors.
264 * doc/extend.texi (Vector Extension): Document that % is allowed too.
266 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
268 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
269 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
271 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
274 * c.opt (Wlogical-op): Disabled by default.
275 * c-opt (c_common_post_options): Do not enable Wlogical-op with
277 * doc/invoke.texi (Wlogical-op): Likewise.
279 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
281 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
283 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
284 Propagate the type of the first operand.
285 <ASSERT_EXPR>: Simplify.
286 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
287 Rewrite using the RHS code as discriminant.
288 <NOP_EXPR>: Turn into CASE_CONVERT.
289 <PLUS_EXPR>: Propagate the type of the first operand.
291 2009-05-19 Steve Ellcey <sje@cup.hp.com>
293 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
294 (ia64_dconst_0_375): New.
295 * config/ia64/ia64.c (ia64_override_options): Remove
296 -minline-sqrt-min-latency warning.
297 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
298 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
299 * config/ia64/ia64.md (*sqrt_approx): Remove.
300 (sqrtsf2): Remove #if 0.
301 (sqrtsf2_internal_thr): Rewrite and move to div.md.
302 (sqrtdf): Remove assert.
303 (sqrtdf2_internal_thr): Rewrite and move to div.md.
304 (sqrtxf2): Remove #if 0.
305 (sqrtxf2_internal_thr): Rewrite and move to div.md.
306 * div.md (sqrt_approx_rf): New.
307 (sqrtsf2_internal_thr): New implementation.
308 (sqrtsf2_internal_lat): New.
309 (sqrtdf2_internal_thr: New implementation.
310 (sqrtxf2_internal): New implementation.
312 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
313 Hans-Peter Nilsson <hp@axis.com>
315 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
316 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
317 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
318 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
319 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
320 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
321 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
322 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
323 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
324 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
325 * c-common.c: ...from here.
327 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
329 * c-common.c (warn_logical_operator): Remove unnecessary
332 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
334 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
336 2009-05-19 Ben Elliston <bje@au.ibm.com>
338 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
339 assignments with memcpy calls.
340 (add_fdes): Likewise.
341 (binary_search_unencoded_fdes): Likewise.
342 (linear_search_fdes): Eliminate type puns.
344 2009-05-19 Richard Guenther <rguenther@suse.de>
346 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
347 not falsely claim to have propagated into all uses.
349 2009-05-19 Ben Elliston <bje@au.ibm.com>
351 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
354 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
356 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
357 * config/sh/sh.c (sh_legitimate_address_p): Make static.
358 (TARGET_LEGITIMATE_ADDRESS_P): New.
359 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
360 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
362 2009-05-18 Dodji Seketeli <dodji@redhat.com>
365 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
366 child of the containing namespace's DIE.
368 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
370 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
371 *zero_extendhi_truncqi): Move after the zero_extend patterns.
372 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
375 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
378 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
379 gen_align with gen_pad.
380 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
381 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
383 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
384 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
386 * config/i386/i386.md (align): Renamed to ...
387 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
388 ASM_OUTPUT_MAX_SKIP_PAD.
390 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
392 * config.gcc: Fix variable syntax.
395 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
396 before calling exact_log2.
397 (output_iorsi3): Likewise.
398 (output_xorsi3): Likewise.
400 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
402 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
403 for the none zero constant operand except for EQ and NE
404 comprisons even when the first operand is R0.
406 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
408 * config/s390/2064.md: Remove trailing whitespaces.
409 * config/s390/2084.md: Likewise.
410 * config/s390/constraints.md: Likewise.
411 * config/s390/fixdfdi.h: Likewise.
412 * config/s390/libgcc-glibc.ver: Likewise.
413 * config/s390/s390-modes.def: Likewise.
414 * config/s390/s390-protos.h: Likewise.
415 * config/s390/s390.c: Likewise.
416 * config/s390/s390.h: Likewise.
417 * config/s390/s390.md: Likewise.
418 * config/s390/tpf-unwind.h: Likewise.
420 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
422 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
424 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
427 * configure.ac (m68k-*-*): Check if binutils support TLS.
428 * configure: Regenerate.
429 * config/m68k/predicates.md (symbolic_operand): Extend comment.
430 * config/m68k/constraints.md (Cu): New constraint.
431 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
432 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
433 (movsi): Handle TLS symbols.
434 (addsi3_5200): Handle XTLS symbols, indent.
435 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
436 (m68k_tls_reference_p): Declare.
437 (m68k_legitimize_address): Declare.
438 (m68k_unwrap_symbol): Declare.
439 * config/m68k/m68k.opt (mxtls): New option.
440 * config/m68k/m68k.c (ggc.h): Include.
441 (m68k_output_dwarf_dtprel): Implement hook.
442 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
443 (m68k_expand_prologue): Load GOT pointer when function needs it.
444 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
445 (m68k_legitimate_constant_address_p): Same.
446 (m68k_decompose_address): Handle TLS references.
447 (m68k_get_gp): New static function.
448 (enum m68k_reloc): New contants.
449 (TLS_RELOC_P): New macro.
450 (m68k_wrap_symbol): New static function.
451 (m68k_unwrap_symbol): New function.
452 (m68k_final_prescan_insn_1): New static function.
453 (m68k_final_prescan_insn): New function.
454 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
456 (legitimize_pic_address): Handle TLS references..
457 (m68k_tls_get_addr, m68k_get_tls_get_addr)
458 (m68k_libcall_value_in_a0_p)
459 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
460 (m68k_call_m68k_read_tp): Helper variables and functions for ...
461 (m68k_legitimize_tls_address): Handle TLS references.
462 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
464 (m68k_legitimize_address): Handle TLS symbols.
465 (m68k_get_reloc_decoration): New static function.
466 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
468 (m68k_output_dwarf_dtprel): Implement hook.
469 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
470 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
471 m68k_call_* routines.
472 (sched_attr_op_type): Handle TLS symbols.
473 (gt-m68k.h): Include.
474 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
475 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
477 2009-05-18 Martin Jambor <mjambor@suse.cz>
479 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
480 (visit_store_addr_for_mod_analysis): New function.
481 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
482 (determine_cst_member_ptr): Use gimple_assign_single_p.
483 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
484 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
485 operands. Don't check number of operands of a NOP_EXPR.
487 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
489 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
491 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
494 * c-common.c (warn_logical_operator): Don't warn if one of
495 expression isn't always true or false.
497 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
499 * config/i386/biarch32.h: New file.
500 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
502 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
504 * config/mips/mips.md (*zero_extend<mode>_trunchi,
505 *zero_extend<mode>_truncqi): Merge these into ...
506 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
507 Name the pattern following this as *zero_extendhi_truncqi.
509 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
512 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
513 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
514 (output_info): Make field HOST_WIDEST_INT.
515 (print_statistics): Use HOST_WIDEST_INT_PRINT.
516 (dump_bitmat_statistics): Same.
518 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
520 * config.gcc (use_gcc_stdint): Set to wrap.
521 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
522 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
523 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
524 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
525 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
526 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
527 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
528 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
530 2009-05-16 Joseph Myers <joseph@codesourcery.com>
532 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
534 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
535 Move definitions earlier.
536 (OPT_ARCH64, OPT_ARCH32): Define.
537 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
540 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
543 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
546 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
548 * arm.md (movdi2): Copy non-reg values to DImode registers.
550 2009-05-16 Jakub Jelinek <jakub@redhat.com>
553 * final.c (label_to_max_skip): New function.
554 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
555 CODE_LABEL_NUMBER <= max_labelno.
556 * output.h (label_to_max_skip): New prototype.
557 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
558 (ix86_avoid_jump_mispredicts): ... this. Don't define if
559 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
560 Handle CODE_LABELs with >= 16 byte alignment or with
561 max_skip == (1 << align) - 1.
562 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
563 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
566 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
567 .p2align 3 if MAX_SKIP is smaller than 7.
568 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
570 2009-05-15 Ian Lance Taylor <iant@google.com>
572 * alias.c (struct alias_set_entry_d): Rename from struct
573 alias_set_entry. Change all uses.
574 * except.c (struct call_site_record_d): Rename from struct
575 call_site_record. Change all uses.
576 * except.h (struct eh_region_d): Rename from struct eh_region.
578 * gcse.c (struct hash_table_d): Rename from struct hash_table.
580 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
581 ivtype_map_elt. Change all uses.
582 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
584 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
585 * graphite.h (struct name_tree_d): Rename from struct name_tree.
587 (struct sese_d): Rename from struct sese. Change all uses.
588 * omega.h (struct eqn_d): Rename from struct eqn. Change all
590 (struct omega_pb_d): Rename from struct omega_pb. Change all
592 * optabs.h (struct optab_d): Rename from struct optab. Change all
594 (struct convert_optab_d): Rename from struct convert_optab.
596 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
597 ipa_opt_pass. Change all uses.
598 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
601 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
602 defined as a typedef.
603 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
606 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
609 * fold-const.c (make_range,build_range_check,merge_ranges): Move
611 (merge_ranges): Returns bool.
612 * tree.h (make_range): .. to here.
613 (build_range_check): Likewise.
614 (merge_ranges): Likewise. Renamed from merge_ranges.
615 * c-typeck.c (parser_build_binary_op): Update calls to
616 warn_logical_operator.
617 * c-common.c (warn_logical_operator): Add new warning.
618 * c-common.h (warn_logical_operator): Update declaration.
620 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
622 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong
625 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
627 * doc/install.texi: Document MPC requirements, flags etc.
629 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
630 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
631 Evaluate constant arguments.
632 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
633 (fold_builtin_1): Likewise, also evaluate constant arguments.
634 Remove superfluous break.
635 (do_mpc_ckconv): New.
636 * real.h: Include mpc.h.
637 * toplev.c (print_version): Output MPC version info if available.
639 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
641 * fold-const.c (fold_convert_const_real_from_real): Check for
644 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
646 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
649 2009-05-15 Jan Hubicka <jh@suse.cz>
651 * doc/invoke.texi (max-early-inliner-iterations): New flag.
652 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
653 (try_inline): Fix return value.
654 (cgraph_decide_inlining_incrementally): Honor new value.
655 (cgraph_early_inlining): Handle indirect inlining.
656 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
658 2009-05-15 Jan Hubicka <jh@suse.cz>
660 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
661 * cgraphunit.c (cgraph_finalize_function): Set it.
662 (cgraph_expand_function): Use it.
664 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
666 * real.c (encode_ieee_half): Define.
667 (decode_ieee_half): Define.
668 (ieee_half_format): Define.
669 (arm_half_format): Define.
670 * real.h (ieee_half_format): Declare.
671 (arm_half_format): Declare.
673 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
675 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
676 swapped, and reversed optabs exist before trying to use them.
678 2009-05-15 Paul Brook <paul@codesourcery.com>
679 Sandra Loosemore <sandra@codesourcery.com>
681 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
682 loads. Allow PRE_DEC.
683 (output_move_neon): Handle PRE_DEC.
684 (arm_print_operand): Add 'A' for neon structure loads.
685 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
686 * config/arm/neon.md (neon_mov): Update comment.
687 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
689 (Um): New constraint.
691 2009-05-15 Jan Hubicka <jh@suse.cz>
693 Revert the following patch until testsuite fallout is fixed:
694 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
695 * cgraph.h (struct inline_summary): New filed self_wize,
696 size_inlining_benefit, self_time and time_inlining_benefit.
697 (struct cgraph_global_info): Replace insns by time ans size fields.
698 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
699 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
700 (ipcp_update_callgraph): Do not touch function bodies.
701 * ipa-inline.c: Include except.h
702 MAX_TIME: New constant.
703 (overall_insns): Remove
704 (overall_size, max_benefit): New static variables.
705 (cgraph_estimate_time_after_inlining): New function.
706 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
707 (cgraph_clone_inlined_nodes): Update size.
708 (cgraph_mark_inline_edge): Update size.
709 (cgraph_estimate_growth): Use size info.
710 (cgraph_check_inline_limits): Check size.
711 (cgraph_default_inline_p): Likewise.
712 (cgraph_edge_badness): Compute badness based on benefit and size cost.
713 (cgraph_decide_recursive_inlining): Check size.
714 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and
716 (cgraph_decide_inlining): Likewise.
717 (cgraph_decide_inlining_incrementally): Likewise; honor
718 PARAM_EARLY_INLINING_INSNS.
719 (likely_eliminated_by_inlining_p): New predicate.
720 (estimate_function_body_sizes): New function.
721 (compute_inline_parameters): Use it.
722 * except.c (must_not_throw_labels): New function.
723 * except.h (must_not_throw_labels): Declare.
724 * tree-inline.c (init_inline_once): Kill inlining_weigths
725 * tree-ssa-structalias.c: Avoid uninitialized warning.
726 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
727 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
728 (PARAM_INLINE_CALL_COST): Remove.
729 (PARAM_EARLY_INLINING_INSNS): New.
731 2009-05-15 Richard Guenther <rguenther@suse.de>
733 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
736 2009-05-15 Richard Guenther <rguenther@suse.de>
738 PR tree-optimization/39999
739 * gimple.h (gimple_expr_type): Use the expression type looking
740 through useless conversions.
741 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
742 (vn_nary_op_insert_stmt): Likewise.
743 (simplify_binary_expression): Likewise.
745 2009-05-15 Richard Guenther <rguenther@suse.de>
747 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
748 New options, enabled by default.
749 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
751 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
752 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
753 * tree-ssa-structalias.c (gate_tree_pta): New function.
754 (pass_build_alias): Use it.
756 2009-05-15 Joseph Myers <joseph@codesourcery.com>
758 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
759 recurse on an invariant address if a conversion from a pointer
760 type to a wider integer type is involved.
762 2009-05-15 Jan Hubicka <jh@suse.cz>
764 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
765 * cgraph.h (struct inline_summary): New filed self_wize,
766 size_inlining_benefit, self_time and time_inlining_benefit.
767 (struct cgraph_global_info): Replace insns by time ans size fields.
768 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
769 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
770 (ipcp_update_callgraph): Do not touch function bodies.
771 * ipa-inline.c: Include except.h
772 MAX_TIME: New constant.
773 (overall_insns): Remove
774 (overall_size, max_benefit): New static variables.
775 (cgraph_estimate_time_after_inlining): New function.
776 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
777 (cgraph_clone_inlined_nodes): Update size.
778 (cgraph_mark_inline_edge): Update size.
779 (cgraph_estimate_growth): Use size info.
780 (cgraph_check_inline_limits): Check size.
781 (cgraph_default_inline_p): Likewise.
782 (cgraph_edge_badness): Compute badness based on benefit and size cost.
783 (cgraph_decide_recursive_inlining): Check size.
784 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and
786 (cgraph_decide_inlining): Likewise.
787 (cgraph_decide_inlining_incrementally): Likewise; honor
788 PARAM_EARLY_INLINING_INSNS.
789 (likely_eliminated_by_inlining_p): New predicate.
790 (estimate_function_body_sizes): New function.
791 (compute_inline_parameters): Use it.
792 * except.c (must_not_throw_labels): New function.
793 * except.h (must_not_throw_labels): Declare.
794 * tree-inline.c (init_inline_once): Kill inlining_weigths
795 * tree-ssa-structalias.c: Avoid uninitialized warning.
796 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
797 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
798 (PARAM_INLINE_CALL_COST): Remove.
799 (PARAM_EARLY_INLINING_INSNS): New.
800 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
801 (inline-call-cost): Remove.
802 (early-inlining-insns): New.
804 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
806 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
808 (print_int_cst_bounds_in_octal_p): Likewise.
809 (dbxout_type): Adjust calls to above functions. Be prepared to deal
811 * dwarf2out.c (base_type_die): Likewise.
812 (is_subrange_type): Delete.
813 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
814 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
815 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it if
816 the destination type is boolean.
817 (build_range_check): Do not special-case subtypes.
818 (fold_sign_changed_comparison): Likewise.
819 (fold_unary): Likewise.
820 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
821 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
822 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
823 * tree.c (subrange_type_for_debug_p): New predicate based on the former
825 * tree.h (subrange_type_for_debug_p): Declare.
826 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
827 (convert_affine_scev): Remove call to above function.
828 (chrec_convert_aggressive): Likewise.
829 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
830 false for conversions involving subtypes.
831 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
832 (vrp_val_min): Likewise.
833 (needs_overflow_infinity): Likewise.
834 (extract_range_from_unary_expr): Likewise.
836 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
838 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
839 * config/frv/frv.c: Likewise.
840 * config/s390/s390.c: Likewise.
841 * config/sparc/sparc.h: Likewise.
842 * config/i386/i386.h: Likewise.
843 * config/i386/i386.c: Likewise.
844 * config/crx/crx.c: Likewise.
845 * config/m68hc11/m68hc11.h: Likewise.
846 * config/iq2000/iq2000.c: Likewise.
847 * config/mn10300/mn10300.h: Likewise.
848 * config/mn10300/mn10300.c: Likewise.
849 * config/m68k/m68k.c: Likewise.
850 * config/rs6000/rs6000.c: Likewise.
851 * config/rs6000/xcoff.h: Likewise.
852 * config/rs6000/linux64.h: Likewise.
853 * config/rs6000/sysv4.h: Likewise.
854 * config/score/score3.c: Likewise.
855 * config/score/score7.c: Likewise.
856 * config/score/score.c: Likewise.
857 * config/arm/arm.md: Likewise.
858 * config/mips/mips.c: Likewise.
859 * config/mips/mips.md: Likewise.
860 * config/bfin/bfin.h: Likewise.
861 * config/pa/pa.c: Likewise.
862 * config/pa/constraints.md: Likewise.
864 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
865 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
866 * config/pdp11/pdp11.h: Use memory_address_p instead.
868 2009-05-14 Ian Lance Taylor <iant@google.com>
870 * passes.c (finish_optimization_passes): Change i to int.
871 * plugin.c (plugins_active_p): Change event to int.
872 (dump_active_plugins): Likewise.
873 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
875 * tree.c (tree_range_check_failed): Change c to unsigned int.
876 (omp_clause_range_check_failed): Likewise.
877 (build_common_builtin_nodes): Change mode to int. Add cast.
878 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
879 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
881 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
882 ++ or -- with a variable of enum type.
884 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
887 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
889 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
891 * store-motion.c: Do not include params.h
892 * Makefile.in: Fix dependencies for various files.
894 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
896 * auto-inc-dec.c: Fix pass description, remove apparent
897 accidental duplication.
899 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
902 * ipa-utils.h (memory_identifier_string): Moved to ...
903 * tree.h (memory_identifier_string): Here. Add GTY(()).
905 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
907 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
908 in the former documentation of...
909 (GO_IF_LEGITIMATE_ADDRESS): ... this.
910 * ira-conflicts.c (get_dup_num): Use address_operand.
911 * targhooks.c (default_legitimate_address_p): New.
912 * targhooks.h (default_legitimate_address_p): New.
913 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
915 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
916 * target.h (struct target): Add legitimate_address_p.
917 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
918 (TARGET_INITIALIZER): Include it.
920 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
921 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
922 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
923 (TARGET_LEGITIMATE_ADDRESS_P): New.
925 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
926 (REG_OK_STRICT_P): Delete.
927 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
928 (frv_legitimate_address_p_1): ... this.
929 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
930 (frv_legitimate_address_p_1): ... the renamed old
931 frv_legitimate_address_p.
932 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
933 (TARGET_LEGITIMATE_ADDRESS_P): New.
935 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
936 * config/s390/s390-protos.h (legitimate_address_p): Remove.
937 * config/s390/s390.c (legitimate_address_p): Rename to...
938 (s390_legitimate_address_p): ... this, make static.
939 (legitimize_address): Adjust call.
940 (TARGET_LEGITIMATE_ADDRESS_P): New.
941 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
943 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
944 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
945 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
946 (TARGET_LEGITIMATE_ADDRESS_P): New.
948 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
949 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
950 * config/spu/spu.c (spu_legitimate_address): Rename to...
951 (spu_legitimate_address_p): ... this, make static.
952 (TARGET_LEGITIMATE_ADDRESS_P): New.
954 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
955 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
956 * config/sparc/sparc.c (legitimate_address_p): Rename to...
957 (sparc_legitimate_address_p): ... this, make static and return bool.
958 (legitimize_address): Adjust call.
959 (TARGET_LEGITIMATE_ADDRESS_P): New.
961 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
962 * config/i386/i386-protos.h (legitimate_address_p): Remove.
963 * config/i386/i386.c (legitimate_address_p): Rename to...
964 (ix86_legitimate_address_p): ... this, make static.
965 (constant_address_p): Move after it, adjust call.
966 (TARGET_LEGITIMATE_ADDRESS_P): New.
968 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
969 * config/avr/avr-protos.h (legitimate_address_p): Remove.
970 * config/avr/avr.c (legitimate_address_p): Rename to...
971 (avr_legitimate_address_p): ... this, make static.
972 (legitimize_address): Adjust call.
973 (TARGET_LEGITIMATE_ADDRESS_P): New.
975 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
976 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
977 * config/crx/crx.c (crx_legitimate_address_p): Make static.
978 (TARGET_LEGITIMATE_ADDRESS_P): New.
980 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
981 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
982 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
983 (TARGET_LEGITIMATE_ADDRESS_P): New.
985 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
986 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
988 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
990 (TARGET_LEGITIMATE_ADDRESS_P): New.
992 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
993 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
995 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
997 (m68hc11_legitimate_address_p): ... this, make static.
998 (go_if_legitimate_address_internal): Rename to...
999 (m68hc11_legitimate_address_p_1): ... this.
1000 (legitimize_address): Adjust call.
1001 (TARGET_LEGITIMATE_ADDRESS_P): New.
1003 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1004 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p):
1006 * config/iq2000/iq2000.c (iq2000_legitimate_address_p):
1008 (TARGET_LEGITIMATE_ADDRESS_P): New.
1010 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1011 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
1012 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
1013 (mn10300_legitimate_address_p): ... this, make static.
1014 (TARGET_LEGITIMATE_ADDRESS_P): New.
1016 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1017 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
1018 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
1019 (TARGET_LEGITIMATE_ADDRESS_P): New.
1021 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1022 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
1023 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
1024 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1025 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
1026 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
1027 (rs6000_legitimate_address_p): ... this, make static.
1028 (TARGET_LEGITIMATE_ADDRESS_P): New.
1029 (REG_MODE_OK_FOR_BASE_P): Delete.
1030 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
1032 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1033 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
1035 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
1036 static, adjust types.
1037 (TARGET_LEGITIMATE_ADDRESS_P): New.
1039 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1040 * config/score/score.c (score_address_p): Rename to...
1041 (score_legitimate_address_p): ... this.
1042 (TARGET_LEGITIMATE_ADDRESS_P): New.
1043 * config/score/score3.c (score3_address_p): Rename to...
1044 (score3_legitimate_address_p): ... this.
1045 * config/score/score7.c (score7_address_p): Rename to...
1046 (score7_legitimate_address_p): ... this.
1048 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
1049 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
1050 GO_IF_LEGITIMATE_ADDRESS): Delete.
1051 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
1052 thumb2_legitimate_address_p): Delete.
1053 (arm_legitimate_address_p): Rename to...
1054 (arm_legitimate_address_outer_p): ... this.
1055 * config/arm/constraints.md ("Uq"): Adjust call.
1056 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
1057 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one to...
1058 (arm_legitimate_address_outer_p): ... this.
1059 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make static.
1060 (TARGET_LEGITIMATE_ADDRESS_P): New.
1062 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1063 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
1064 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
1065 (TARGET_LEGITIMATE_ADDRESS_P): New.
1067 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1068 * config/vax/vax-protos.h (legitimate_address_p): Remove.
1069 * config/vax/vax.c (legitimate_address_p): Rename to...
1070 (vax_legitimate_address_p): ... this, make static.
1071 (TARGET_LEGITIMATE_ADDRESS_P): New.
1073 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1074 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
1075 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
1076 (TARGET_LEGITIMATE_ADDRESS_P): New.
1078 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1079 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
1080 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
1081 (mmix_legitimate_address_p): ... this, make static.
1082 (TARGET_LEGITIMATE_ADDRESS_P): New.
1084 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1085 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
1086 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
1087 (TARGET_LEGITIMATE_ADDRESS_P): New.
1089 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
1091 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
1092 of MODE_COMPLEX_INT.
1094 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1096 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
1097 LCT_NORMAL in function call.
1098 * mips-tdump.c (print_file_desc): Add cast to enum type.
1099 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
1100 (mark_stabs): Add casts to enum types.
1101 (parse_stabs_common): Add casts to enum types.
1103 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
1105 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
1106 Check for invalid values of LETTER.
1108 2009-05-13 Taras Glek <tglek@mozilla.com>
1110 * attribs.c (register_attribute): moved out attribute registration into
1112 * doc/plugins.texi: Documented register_attribute and PLUGIN_ATTRIBUTES.
1113 * gcc-plugin.h: Added forward decl for register_attribute.
1114 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
1115 * plugin.c (register_callback, invoke_plugin_callbacks): Added
1116 PLUGIN_ATTRIBUTES boilerplate.
1118 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
1120 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
1121 values even in sentinel and empty entries.
1122 (ms_printf_flag_specs): Likewise.
1123 (ms_scanf_flag_specs): Likewise.
1124 (ms_strftime_flag_specs): Likewise.
1125 (ms_print_char_table): Likewise.
1126 (ms_scan_char_table): Likewise.
1127 (ms_time_char_table): Likewise.
1129 2009-05-13 Doug Kwan <dougkwan@google.com>
1131 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
1133 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
1135 * config/mips/mips.md (store): Add attributes for QI and HI.
1137 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
1138 (truncdi<mode>2): ... this new pattern.
1140 2009-05-13 Brad Hards <bradh@kde.org>
1142 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
1144 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1145 Ben Elliston <bje@au.ibm.com>
1148 * dse.c (check_mem_read_rtx): Guard against width == -1.
1150 2009-05-13 Michael Matz <matz@suse.de>
1153 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
1154 (trivially_conflicts_p): New function.
1155 (insert_backedge_copies): Use it.
1157 2009-05-13 Janis Johnson <janis187@us.ibm.com>
1159 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
1160 (handle_stdc_pragma): Use new enum constant names.
1161 (handle_pragma_float_const_decimal64): Ditto.
1163 2009-05-13 Ian Lance Taylor <iant@google.com>
1165 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
1168 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
1170 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
1171 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
1173 * config/m68k/m68k.h (FL_UCLINUX): Define.
1175 2009-05-13 Jan Hubicka <jh@suse.cz>
1177 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
1179 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
1181 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
1182 unless -fschedule-insns is specified.
1184 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
1187 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
1188 TARGET_EXPAND_CBRANCHDI4.
1189 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
1190 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
1191 (cmpeqdi): Fix comment.
1193 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
1195 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
1196 (sh_legitimate_address_p): Likewise.
1197 * config/sh/sh.c (sh_legitimate_index_p): New.
1198 (sh_legitimate_address_p): Likewise.
1199 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
1200 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
1201 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
1202 (MAYBE_BASE_REGISTER_RTX_P): New macro.
1203 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
1204 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
1205 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
1206 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
1207 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
1209 2009-05-12 Jan Hubicka <jh@suse.cz>
1211 * tree-inline.c (estimate_operator_cost): Add operands;
1212 when division happens by constant, it is cheap.
1213 (estimate_num_insns): Loads and stores are not having cost of 0;
1214 EH magic stuff is cheap; when computing runtime cost of switch,
1215 use log2 base of amount of its cases; builtin_expect has cost of 0;
1216 compute cost for moving return value of call.
1217 (init_inline_once): Initialize time_based flags.
1218 * tree-inline.h (eni_weights_d): Add time_based flag.
1220 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1222 * df-core.c: Update head documentation.
1224 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1227 * rs6000.c (rs6000_generate_compare): Use op1b instead of
1228 shadowing exisiting variable op1.
1230 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
1233 * config/i386/driver-i386.c (processor_signatures): New enum.
1234 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
1235 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
1236 processor signature to detect geode processor.
1238 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1242 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1244 * optabs.c (prepare_cmp_insn): Temporarily disable test that
1245 causes spurious differences between trunk and cond-optab branch.
1247 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1249 * dojump.c (compare_from_rtx): Delete.
1250 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
1251 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
1252 if the comparison does not satisfy the predicate; test predicates for
1253 operands 2 and 3 of a cstore pattern. Don't try cstore optab
1254 further if one existing pattern fails.
1255 * expr.h (compare_from_rtx): Delete.
1256 (prepare_operand): Declare it.
1257 * optabs.c: Change "lib call" to "libcall" throughout.
1258 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
1259 HAVE_conditional_trap, emit_cmp_insn): Delete.
1260 (can_compare_p): Delete cmp_optab case.
1261 (prepare_float_lib_cmp): Return an rtx and a machine mode.
1262 Accept other parameters by value.
1263 (prepare_operand): Make non-static.
1264 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
1265 other parameters by value. Try to widen operands here based on
1266 an optab_methods argument and looking at cbranch_optab.
1267 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
1268 loop. Use cbranch_optab directly.
1269 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
1270 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
1272 (emit_conditional_move, emit_conditional_add): Inline what's needed
1273 of compare_from_rtx, using new prepare_cmp_insn for the rest.
1274 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
1275 with COMPARE. Move cmov_optab and cstore_optab above
1276 with cbranch_optab, move cmp_optab down with ucmp_optab,
1277 remove tst_otpab. Do not initialize trap_rtx.
1278 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
1279 for trap code. Do not check HAVE_conditional_trap. Use
1280 prepare_cmp_insn. Accept no predicate for operand 3.
1281 * optabs.h (OTI_cmp): Mark as used only for libcalls.
1282 (OTI_ctrap, ctrap_optab): New.
1283 (tst_optab): Delete.
1284 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
1285 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
1286 with lookup of ctrap_optab.
1287 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn,
1288 setcc_gen_code): Delete.
1291 * combine.c (combine_simplify_rtx, simplify_set): Do not
1292 special case comparing against zero for cc0 machines.
1293 * simplify-rtx.c (simplify_binary_operation_1): Never remove
1294 COMPARE on cc0 machines.
1295 (simplify_relational_operation): Return a new expression when
1296 a COMPARE could be removed.
1297 * final.c (final_scan_insn): Compare cc_status values
1298 against LHS of a (compare FOO (const_int 0)) cc0 source.
1299 Also check if cc_status.value is the full compare.
1301 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
1302 (cstoreMM4): Document.
1303 (conditional_trap): Document ctrapMM4 instead.
1304 (sync_compare_and_swapMM): Refer to cbranchcc4.
1305 (Dependent Patterns): Eliminate obsolete information referring to
1306 the old jump optimization phase.
1307 (Canonicalization): Include cbranchcc4 case, omit canonicalization
1308 of compares with 0 on cc0 machines.
1309 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
1310 avoiding references to cc0. Remove text about storing operands
1312 * doc/tm.texi (Condition Codes): Include blurb on different
1313 condition code representations, separate into subsections for
1314 CC0, MODE_CC and conditional execution.
1316 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
1317 alpha_emit_setcc): Accept operands and a machine mode.
1318 * config/alpha/alpha.c (alpha_emit_conditional_branch):
1319 Get code/op0/op1 from operands, use machine mode argument
1320 instead of alpha_compare.fp_p. Emit the branch here.
1321 (alpha_emit_setcc): Likewise, and return boolean.
1322 (alpha_emit_conditional_move): Likewise. Assert that
1323 cmp_op_mode == cmp_mode, and simplify accordingly.
1324 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
1325 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
1326 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
1328 (stack probe test): Use cbranchdi4.
1329 * config/alpha/predicates.md (alpha_cbranch_operator): New.
1331 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
1332 * config/arc/arc.h (movsicc, movsfcc): Use it.
1333 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
1334 (cbranchsi4, cstoresi4): New.
1335 (cmpsi, bCC and sCC expanders): Remove.
1337 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
1338 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
1339 * config/arm/predicates.md (arm_comparison_operator): Only include
1340 floating-point operators if there is a hardware floating-point unit.
1341 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
1342 deferring to cbranch_cc and cstore_cc respectively.
1343 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
1344 cbranch_cc, cstore_cc): New.
1345 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
1347 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
1349 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
1350 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
1352 (adjust_insn_length): Adjust calls.
1353 (avr_reorg): Handle (compare (foo) (const_int 0)).
1354 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
1355 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
1356 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
1357 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
1359 (cbranchqi4, cbranchhi4, cbranchsi4): New.
1360 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
1362 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
1363 (cbranchsi4, cstorebi4, cstoresi4): New.
1364 (movbisi): This insn is duplicate, split it to zero_extend.
1365 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
1366 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
1367 (bfin_optimize_loop): Use cbranch expander.
1368 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
1369 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
1370 (bfin_bimode_comparison_operator): ... this.
1371 (bfin_direct_comparison_operator): New.
1373 * config/cris/cris.c (cris_normal_notice_update_cc): Look
1374 inside (compare FOO (const_int 0)).
1375 (cris_rtx_costs): Handle ZERO_EXTRACT.
1376 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
1377 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
1378 (*tstdi_v32): Delete.
1379 (*cmpdi_non_v32): Add M alternative for operand 1.
1380 (cmpsi, cmp<mode>): Make private.
1381 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
1383 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
1385 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
1386 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
1387 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
1388 (cc_reg_operand): New.
1390 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
1391 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
1392 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
1393 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
1394 crx_expand_scond): Delete.
1396 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
1398 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
1399 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
1401 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
1402 cstoresi4, cstoresf4, cstoredf4): New.
1403 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
1404 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1405 Receive the entire operands array.
1406 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
1407 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
1408 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1409 Get test/op0/op1 from the operands array.
1410 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
1412 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
1413 (h8300_expand_store): New.
1414 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
1416 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
1417 (h8300_expand_store): New.
1418 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
1419 or do not try to produce (set (cc0) REG).
1420 (peepholes): Wrap arguments with COMPARE. Add a peephole to
1421 change a compare into a move to a scratch register. Disable some
1422 peepholes when comparing with zero.
1423 (tstsi, tsthi, tstsi, cmpqi): Make private.
1426 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
1429 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
1430 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
1431 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
1432 (ix86_emit_i387_log1p): Use cbranchxf2.
1433 (ix86_expand_setcc): Return void.
1434 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
1435 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
1436 cmp<MODEF>, cmpcc): Remove.
1437 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
1438 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
1439 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
1440 (sCC and bCC expanders): Remove.
1441 (stack_protect_test): Use cbranchcc4.
1443 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
1445 (ia64_expand_compare): Accept three rtx by reference and return void.
1446 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
1447 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
1448 from *expr. Update *expr with the BImode comparison to do.
1449 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
1450 cmptf, bCC, sCC, conditional_trap): Delete.
1451 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
1452 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
1453 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
1454 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
1455 * config/ia64/predicates.md (ia64_cbranch_operator): New.
1457 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
1458 type of last argument.
1459 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
1460 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
1461 use machine mode argument instead of branch_type. Remove dead
1462 code for floating-point comparisons.
1463 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
1464 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
1466 (cbranchsi4, cstoresi4): New.
1467 * config/iq2000/predicates.md (reg_or_const_operand): New.
1469 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
1470 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
1471 (b<code>_op): Rewrite to...
1472 (bcc_op): ... this, using match_operator.
1473 (s<code>_op): Rewrite to...
1474 (scc_op): ... this, using match_operator.
1475 (s<code>_24_op): Rewrite to...
1476 (scc_op_24): ... this, using match_operator.
1477 (s<code>_<mode>): Rewrite to...
1478 (cstore<mode>4): ... this, using match_operator.
1479 (s<code>_<mode>_24): Rewrite to...
1480 (cstore<mode>4_24): ... this, using match_operator.
1481 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
1482 m32c_unpend_compare, m32c_expand_scc): Delete.
1483 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
1484 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
1485 (m32c_expand_movcc): Change NE to EQ if necessary.
1486 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
1488 * config/m32r/m32r-protos.h (gen_cond_store): New.
1489 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
1490 (gen_cond_store): New, from sCC patterns.
1491 (m32r_expand_block_move): Use cbranchsi4.
1492 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
1493 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
1494 (cbranchsi4, cstoresi4): New.
1496 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
1498 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
1499 (m68hc11_notice_update_cc): Look into a compare with 0.
1500 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
1502 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
1503 cmphi, cmpqi, bCC): Delete.
1504 (cbranchsi4, cbranchhi4, cbranchqi4): New.
1505 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
1506 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
1509 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
1510 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
1511 * config/m68k/constraints.md (H): New.
1512 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
1513 the define_insn below.
1514 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
1515 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
1516 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
1517 patterns): Wrap RHS with COMPARE.
1518 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
1519 (*cmpdi_internal): Name this pattern.
1520 (cmpdi): Change to define_insn.
1521 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
1522 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
1523 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
1525 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
1526 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
1527 (conditional_trap): Change to...
1528 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
1529 (*conditional_trap): Use the ordered_comparison_operator and
1530 const1_operand predicates.
1531 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
1532 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
1533 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
1534 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
1536 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
1537 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
1538 (mcore_gen_compare): New.
1539 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
1540 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
1541 (mcore_gen_compare): ... this.
1542 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
1543 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
1544 (stack probe pattern): Use cbranchsi4.
1546 * config/mips/predicates.md (mips_cstore_operator): New.
1547 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
1548 * config/mips/mips.md (any_cond): Delete.
1549 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
1551 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
1552 fixuns_truncsfdi2): Use cbranch patterns.
1553 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
1554 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
1555 Adjust call to mips_expand_conditional_branch.
1556 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
1558 * config/mips/mips-protos.h (mips_expand_conditional_branch,
1559 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
1560 * config/mips/mips.c (cmp_operands): Delete.
1561 (mips_emit_compare): Get comparison operands from *op0/*op1.
1562 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
1563 that it succeeds. Use op0/op1 instead of cmp_operands.
1564 (mips_expand_conditional_branch, mips_expand_conditional_move,
1565 mips_expand_conditional_trap): Likewise.
1566 (mips_block_move_loop): Use cbranch patterns.
1567 * config/mips/mips.h (cmp_operands): Delete.
1569 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
1570 (mmix_gen_compare_reg): Just return a register in the right CC mode.
1571 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
1572 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
1573 (*cmpcc_folded): Rename to...
1574 (*cmpdi_folded): this.
1575 (*cmpcc): Rename to...
1577 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
1580 (cbranchdf4): New. Handle invalid comparisons here.
1581 * config/mmix/predicates.md (float_comparison_operator): New.
1583 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
1584 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
1585 * config/mn10300/mn10300.md (tst): Delete.
1586 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
1587 Name these patterns and wrap RHS in a compare.
1588 (*cmpsi): Make this pattern private. Include tst.
1589 (*cmpsf): Make this pattern private.
1590 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
1591 (compare with zero peepholes): Likewise.
1593 (cbranchsi4, cbranchsf4): New.
1594 (casesi): Use cbranchsi4.
1596 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
1597 hppa_branch_type): Delete.
1598 (return_addr_rtx): Use cbranchsi4.
1599 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
1600 Emit CCFPmode comparison here.
1601 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
1602 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
1603 hppa_branch_type): Delete.
1604 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
1605 (movsicc, movdicc): Remove references to hppa_compare_op0,
1606 hppa_compare_op1 and compare_from_rtx.
1607 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
1608 (casesi): Use cbranchsi4.
1610 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
1611 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
1612 * config/pdp11/pdp11.md (register_or_const0_operand): New.
1613 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
1614 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
1616 (cbranchdf4, cbranchhi4, cbranchqi4): New.
1617 (*branch, *branch_inverted): New.
1619 * config/picochip/picochip.md (cbranchhi4): Use
1620 ordered_comparison_operator.
1621 (cmphi, bCC): Remove.
1623 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
1624 (trap_comparison_operator): Delete.
1625 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
1626 rs6000_emit_cbranch): Accept mode and operands.
1627 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
1628 rs6000_compare_fp_p): Delete.
1629 (rs6000_generate_compare): Accept mode and comparison. Extract code
1630 and op0/op1 from there. Replace references to rs6000_compare_op0
1631 and rs6000_compare_op1.
1632 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
1633 extract result from passed operands.
1634 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
1635 extract loc from passed operands.
1636 (rs6000_emit_cmove): Likewise.
1637 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
1638 rs6000_compare_fp_p): Delete.
1639 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
1640 (cbranch<GPR>4, cbranch<FP>4): New.
1641 (cstore<mode>4): New. Consolidate here all choices about when to use
1642 portable or specialized sCC sequences.
1643 (stack_protect_test): Use cbranchsi4.
1644 (conditional_trap): Replace with ctrap<GPR>4.
1645 (conditional trap insn): Replace trap_comparison_operator with
1646 ordered_comparison_operator.
1648 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
1649 (s390_emit_prologue): Use ctrap.
1650 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
1651 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
1652 New predicates replacing...
1653 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
1654 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
1655 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
1656 (add<mode>cc): Do not use s390_compare_op0/op1.
1657 (s<code>): Change to...
1658 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
1660 (cstorecc4): ... this. Handle EQ or NE equally.
1661 (*sne): Un-privatize for use in cstorecc4.
1662 (b<code>): Change to...
1663 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
1664 (conditional_trap): Replace with...
1665 (ctrap<GPR>4, ctrap<FP>4): ... these.
1666 (stack_protect): Use cbranchcc4.
1668 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
1669 * config/score/score-protos.h (score_gen_cmp): Delete.
1670 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
1671 (score_block_move-loop): Use cbranchsi4.
1672 * config/score/score.md (cbranchsi4): New.
1673 (cmpsi, bCC): Delete.
1674 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
1675 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1676 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
1677 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1678 * config/score/score3.h (score3_gen_cmp): Delete.
1679 * config/score/score7.h (score7_gen_cmp): Delete.
1681 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
1682 (sh_emit_scc_to_t): ... this. Return void.
1683 (from_compare): Rename to...
1684 (sh_emit_compare_and_branch): ... this.
1685 (sh_emit_compare_and_set): New.
1686 (sh_expand_t_scc): Accept operands.
1687 * config/sh/predicates.md (sh_float_comparison_operator): New.
1688 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
1689 (prepare_scc_operands): Rename to...
1690 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
1692 (sh_emit_cheap_store_flag): New.
1693 (sh_emit_set_t_insn): New.
1694 (from_compare): Rename to...
1695 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
1696 handling of TARGET_SH2E floating point to avoid recursive call.
1697 Generate branch here.
1698 (sh_emit_compare_and_set): New.
1699 (sh_expand_t_scc): Get op0/op1 from arguments.
1700 (sh_emit_cheap_store_flag): New.
1701 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
1703 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
1704 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
1705 (movsicc, movdicc): Do nothing when it recreated operands from
1706 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
1707 prepare_scc_operands (now sh_emit_scc_to_t).
1708 (udivdi3): Use cstoresi4.
1709 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
1710 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
1711 (cbranchint4_media, cbranchfp4_media): New.
1712 (casesi): Use cbranchdi4.
1713 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
1715 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
1716 (movnegt): Remove second operand.
1717 (cbranchsf4, cbranchdf4): New.
1718 (stack_protect): Use cbranchdi4/cbranchsi4.
1720 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
1721 (gen_compare_reg): Accept comparison, extract part of it to...
1722 (gen_compare_reg_1): ... this.
1723 (gen_compare_operator): Delete.
1724 (gen_v9_scc): Accept separate destination, comparison code and arms.
1725 Do not use sparc_compare_op0/sparc_compare_op1.
1726 (emit_scc_insn, emit_conditional_branch_insn): New.
1727 (emit_v9_brxx): Make static. Remove useless assertion.
1728 (sparc_emit_float_lib_cmp): Return RTL instead of calling
1730 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
1731 * config/sparc/sparc-protos.h (gen_compare_reg,
1732 sparc_emit_float_lib_cmp): Adjust prototype.
1733 (emit_scc_insn, emit_conditional_branch_insn): New.
1734 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
1735 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
1736 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
1737 iterators to the top.
1738 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
1739 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
1740 snedi_special_trunc): Delete.
1741 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
1742 and snedi_special_trunc.
1743 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
1744 cbranchdi4, cbranch<F:mode>4): New.
1745 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
1746 here. Use gen_compare_reg instead of gen_compare_operator.
1747 (conditional_trap): Replace with...
1748 (ctrapsi4, ctrapdi4): ... this.
1749 (stack_protect_test): Use cbranchcc4.
1751 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
1753 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
1754 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
1755 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
1756 from operands[0] or operands[3] depending on is_set.
1757 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
1758 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
1759 cmpdf, bCC), sCC: Remove.
1760 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
1761 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
1763 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
1764 spu_emit_branch_or_set.
1766 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
1768 * config/stormy16/stormy16.h (xstormy16_compare_op0,
1769 xstormy16_compare_op1): Delete.
1770 * config/stormy16/stormy16.c (xstormy16_compare_op0,
1771 xstormy16_compare_op1): Delete.
1772 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
1774 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
1775 (cmphi, cmpsi, bCC): Remove.
1777 * config/v850/v850.md (tstsi, cmpsi): Fold into...
1778 (*cmpsi): ... this one.
1779 (cbranchsi4, cstoresi4): New.
1780 (bCC expanders): Delete.
1781 (sCC insns): Fold into...
1782 (*setcc): ... this one.
1783 (casesi): Do not use gen_cmpsi and gen_bgtu.
1784 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
1785 (movsicc): Simplify.
1786 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
1788 * config/vax/vax-protos.h (cond_name): New.
1789 (vax_output_conditional_branch): Remove.
1790 * config/vax/vax.c (cond_name): New.
1791 (vax_output_conditional_branch): Remove.
1792 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
1793 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
1794 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
1795 (bit<VAXint>): Wrap source with (compare).
1796 (b<code> and following unnamed pattern): Rename to *branch and
1797 *branch_reversed. Change macroization to match_operator.
1798 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
1800 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
1801 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
1802 Change last argument to machine_mode.
1803 (xtensa_expand_scc): Add machine_mode argument.
1804 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
1805 (gen_conditional_move, xtensa_expand_conditional_branch,
1806 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
1807 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
1808 Adjust operand numbers.
1809 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
1811 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
1812 (cmpsi, cmpsf, b<code>, s<code>): Delete.
1813 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
1815 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1817 * optabs.c (prepare_cmp_insn): Temporarily disable test that
1818 causes spurious differences between trunk and cond-optab branch.
1820 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
1823 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
1825 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
1827 * tree.c (iterative_hash_pointer): Delete.
1828 (iterative_hash_expr): Short-circuit handling of NULL pointer.
1829 Hash UIDs and versions of SSA names. Don't special-case built-in
1830 function declarations.
1832 2009-05-11 Ian Lance Taylor <iant@google.com>
1835 * graphite.c: Force -Wc++-compat to only be a warning before
1836 #including "cloog/cloog.h".
1838 2009-05-11 Martin Jambor <mjambor@suse.cz>
1840 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
1842 2009-05-11 Jan Hubicka <jh@suse.cz>
1844 * tree-ssa-loop-ivcanon.c: Include target.h
1845 (struct loop_size): new structure.
1846 (constant_after_peeling): New predicate.
1847 (tree_estimate_loop_size): New function.
1848 (estimated_unrolled_size): Rewrite for new estimates.
1849 (try_unroll_loop_completely): Use new estimates.
1850 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
1852 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1854 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
1855 libcpp interface change.
1856 (spu_macro_to_expand): Likewise.
1858 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
1860 PR tree-optimization/40026
1861 * gimplify.c (gimplify_init_constructor): Change initial conditional
1862 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
1863 optimize_compound_literals_in_ctor.
1865 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
1867 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
1869 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
1871 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
1873 * tree-vect-data-refs.c (vect_analyze_group_access): Use
1874 HOST_WIDE_INT for gap.
1876 2009-05-11 Ira Rosen <irar@il.ibm.com>
1878 PR tree-optimization/40074
1879 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
1880 account in group size and step comparison.
1882 2009-05-11 Richard Guenther <rguenther@suse.de>
1884 * passes.c (init_optimization_passes): Strip now incorrect comment.
1885 (execute_function_todo): Do not set PROP_alias.
1886 * tree-pass.h (PROP_alias): Remove.
1887 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
1888 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
1889 * tree-nrv.c (pass_return_slot): Likewise.
1890 * tree-object-size.c (pass_object_sizes): Likewise.
1891 * tree-ssa-dom.c (pass_dominator): Likewise.
1892 (pass_phi_only_cprop): Likewise.
1893 * tree-ssa-dse.c (pass_dse): Likewise.
1894 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
1895 (pass_cselim): Likewise.
1896 * tree-ssa-pre.c (pass_pre): Likewise.
1897 (pass_fre): Likewise.
1898 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1899 * tree-ssa-sink.c (pass_sink_code): Likewise.
1900 * tree-stdarg.c (pass_stdarg): Likewise.
1901 * tree-tailcall.c (pass_tail_calls): Likewise.
1902 * tree-vrp.c (pass_vrp): Likewise.
1904 2009-05-10 Ian Lance Taylor <iant@google.com>
1906 * basic-block.h (enum profile_status): Break out of struct
1908 * cgraph.h (struct inline_summary): Break out of struct
1910 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
1911 of struct cgraph_order_sort.
1912 * combine.c (enum undo_kind): New enum, broken out of struct undo.
1913 * cse.c (struct branch_path): Break out of struct
1914 cse_basic_block_data.
1915 * except.h (enum eh_region_type): Break out of struct eh_region.
1916 * gcc.c (enum add_del): Break out of struct modify_target.
1917 * genrecog.c (enum decision_type): Break out of struct decision_test.
1918 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
1920 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
1921 * regmove.c (enum match_use): New enum, broken out of struct match.
1922 * sched-int.h (enum post_call_group): New enum, broken out of
1924 (struct deps_reg): Break out of struct deps.
1925 * target.h (struct asm_int_op): Break out of struct gcc_target.
1926 * tree-eh.c (struct goto_queue_node): Break out of struct
1928 * tree-inline.h (enum copy_body_cge_which): Break out of
1930 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
1932 * c-decl.c (in_struct, struct_types): New static variables.
1933 (pushtag): Add loc parameter. Change all callers.
1934 (lookup_tag): Add ploc parameter. Change all callers.
1935 (check_compound_literal_type): New function.
1936 (parser_xref_tag): Add loc parameter. Change all callers. If
1937 -Wc++-compat, warn about struct/union/enum types defined within a
1939 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
1940 and loc parameters. Change all callers. Change error calls to
1941 error_at, using loc. For a redefinition, if the location of the
1942 original definition is known, report it. Set in_struct and
1943 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
1944 (finish_struct): Add new parameters enclosing_in_struct and
1945 enclosing_struct_types. Change all callers. Set
1946 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
1947 in the struct. If in a struct, add this struct to struct_types.
1948 (start_enum): Add loc parameter. Change all callers. Use
1949 error_at for errors, using loc. For a redefinition, if the
1950 location of the original definition is known, report it. If in a
1951 struct, add this enum type to struct_types. If -Wc++-compat warn
1952 if in sizeof, typeof, or alignof.
1953 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
1954 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
1955 (c_parser_enum_specifier): Get enum location for start_enum.
1956 (c_parser_struct_or_union_specifier): Get struct location for
1957 start_struct. Save in_struct and struct_types status between
1958 start_struct and finish_struct.
1959 (c_parser_cast_expression): Get location of cast.
1960 (c_parser_alignof_expression): Get location of type.
1961 (c_parser_postfix_expression): Likewise.
1962 (c_parser_postfix_expression_after_paren_type): Add type_loc
1963 parameter. Change all callers. Call check_compound_literal_type.
1964 Use type_loc for error about variable size type.
1965 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
1966 of an enum constant from an enum type defined in a struct or union.
1967 (c_cast_expr): Add loc parameter. Change all callers. If
1968 -Wc++-compat, warn about defining a type in a cast.
1969 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
1970 (start_enum, start_struct, finish_struct): Update declarations.
1971 (parser_xref_tag, c_cast_expr): Update declarations.
1972 (check_compound_literal_type): Declare.
1974 2009-05-11 Ben Elliston <bje@au.ibm.com>
1976 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
1977 for recent libcpp interface change.
1978 (rs6000_macro_to_expand): Likewise.
1980 2009-05-10 Michael Matz <matz@suse.de>
1983 * config/arm/arm.c (require_pic_register): Emit on entry edge,
1984 not at entry of function.
1986 2009-05-10 Richard Guenther <rguenther@suse.de>
1988 PR tree-optimization/40081
1990 * tree-sra.c (instantiate_element): Instantiate scalar replacements
1991 using the main variant of the element type. Do not fiddle with
1992 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
1994 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
1995 structs with volatile fields.
1997 2009-05-10 Jan Hubicka <jh@suse.cz>
1999 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
2000 (estimate_move_cost): Assert that it does not get called for
2002 (estimate_num_insns): Skip VOID types in argument handling.
2003 (optimize_inline_calls): Delete unreachable blocks and verify that
2006 2009-05-10 Jan Hubicka <jh@suse.cz>
2008 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
2009 * cgraph.c (cgraph_mark_address_taken_node): New function.
2010 (dump_cgraph_node): Dump new flag.
2011 * cgraph.h (struct cgraph_node): Add address_taken.
2012 (cgraph_mark_address_taken_node): New function.
2013 * ipa.c (cgraph_postorder): Prioritize functions with address taken
2014 since new direct calls can be born.
2016 2009-05-10 Joseph Myers <joseph@codesourcery.com>
2018 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
2021 2009-05-10 Jan Hubicka <jh@suse.cz>
2024 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
2026 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
2027 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
2028 * tree-inline.c (copy_bb): Set frequency correctly.
2029 (fold_marked_statements): Update call to
2030 cgraph_update_edges_for_call_stmt.
2032 2009-05-10 Joseph Myers <joseph@codesourcery.com>
2034 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
2035 identifiers in diagnostics.
2036 * config/arm/arm.c (arm_handle_fndecl_attribute,
2037 arm_handle_isr_attribute): Likewise.
2038 * config/avr/avr.c (avr_handle_progmem_attribute,
2039 avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
2041 * config/bfin/bfin.c (handle_int_attribute,
2042 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
2043 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
2044 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
2046 * config/darwin.c (darwin_handle_kext_attribute,
2047 darwin_handle_weak_import_attribute): Likewise.
2048 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
2049 h8300_handle_eightbit_data_attribute,
2050 h8300_handle_tiny_data_attribute): Likewise.
2051 * config/i386/i386.c (ix86_handle_cconv_attribute,
2052 ix86_handle_abi_attribute, ix86_handle_struct_attribute):
2054 * config/i386/winnt.c (ix86_handle_shared_attribute,
2055 ix86_handle_selectany_attribute): Likewise.
2056 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
2057 * config/m32c/m32c.c (function_vector_handler): Likewise.
2058 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
2059 m68hc11_handle_fntype_attribute): Likewise.
2060 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
2061 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
2062 * config/mips/mips.c (mips_insert_attributes,
2063 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
2064 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
2065 rs6000_handle_struct_attribute): Likewise.
2066 * config/sh/sh.c (sh_insert_attributes,
2067 sh_handle_resbank_handler_attribute,
2068 sh_handle_interrupt_handler_attribute,
2069 sh2a_handle_function_vector_handler_attribute,
2070 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
2072 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
2073 * config/spu/spu.c (spu_handle_fndecl_attribute,
2074 spu_handle_vector_attribute): Likewise.
2075 * config/stormy16/stormy16.c
2076 (xstormy16_handle_interrupt_attribute): Likewise.
2077 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
2078 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
2080 2009-05-10 Joseph Myers <joseph@codesourcery.com>
2082 * pretty-print.h (struct pretty_print_info): Add
2083 translate_identifiers.
2084 (pp_translate_identifiers): New.
2085 (pp_identifier): Only conditionally translate identifier to locale
2087 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
2088 (pp_base_tree_identifier): Only conditionally translate identifier
2089 to locale character set.
2090 * c-pretty-print.c (M_): Define.
2091 (pp_c_type_specifier, pp_c_primary_expression): Mark English
2092 fragments for conditional translation with M_.
2093 * tree-pretty-print.c (maybe_init_pretty_print): Disable
2094 identifier translation.
2096 2009-05-10 Richard Guenther <rguenther@suse.de>
2098 PR tree-optimization/40081
2099 * tree-sra.c (instantiate_element): Instantiate scalar replacements
2100 using the main variant of the element type. Do not fiddle with
2101 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
2103 2009-05-09 Jan Hubicka <jh@suse.cz>
2106 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
2107 indirect calls; verify cgraph afterwards.
2109 2009-05-09 Jan Hubicka <jh@suse.cz>
2112 * ipa.c (update_inlined_to_pointer): New function.
2113 (cgraph_remove_unreachable_nodes): Use it.
2115 2009-05-09 Jan Hubicka <jh@suse.cz>
2117 * tree-eh.c (struct leh_state): Remove prev_try.
2118 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
2120 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
2121 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
2122 remove_eh_handler_and_replace, foreach_reachable_handler,
2123 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
2124 * except.h (struct eh_region): Remove eh_region_u_cleanup.
2125 (gen_eh_region_cleanup): Update prototype.
2127 2009-05-09 Jan Hubicka <jh@suse.cz>
2130 * except.c (copy_eh_region): Always set prev_try.
2131 (redirect_eh_edge_to_label): Find outer try.
2132 (foreach_reachable_handler): When looking for prev try
2133 handle case where previous try is not going to be taken.
2135 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
2137 PR tree-optimization/40049
2138 * tree-vect-stmts.c (vectorizable_operation): If the machine has
2139 only vector/vector shifts, convert the type of the constant to the
2140 appropriate type to avoid building incorrect trees, which
2141 eventually have problems with garbage collection.
2143 2009-05-08 Joseph Myers <joseph@codesourcery.com>
2145 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
2146 -1 for complex floating-point types if honoring signed zeros.
2148 2009-05-08 Jan Hubicka <jh@suse.cz>
2150 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
2151 argument; handle correctly when profile is absent.
2152 (build_cgraph_edges): Update.
2153 (rebuild_cgraph_edges): Update.
2154 * cgraph.c: Do not include varray.h.
2155 (cgraph_set_call_stmt_including_clones): New function.
2156 (cgraph_create_edge_including_clones): Likewise
2157 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
2158 (cgraph_update_edges_for_call_stmt): Handle clones.
2159 (cgraph_remove_node): Handle clone tree.
2160 (cgraph_remove_node_and_inline_clones): New function.
2161 (dump_cgraph_node): Dump clone tree.
2162 (cgraph_clone_node): Handle clone tree.
2163 (clone_function_name): Bring here from tree-inline.c.
2164 (cgraph_create_virtual_clone): New function.
2165 * cgraph.h (ipa_replace_map): Move here from ipa.h.
2166 (cgraph_clone_info): New function.
2167 (strut cgraph_node): Add clone_info and new clone tree pointers.
2168 (cgraph_remove_node_and_inline_clones,
2169 cgraph_set_call_stmt_including_clones,
2170 cgraph_create_edge_including_clones,
2171 cgraph_create_virtual_clone): Declare.
2172 (cgraph_function_versioning): Use VEC argument.
2173 (compute_call_stmt_bb_frequency): Update prototype.
2174 (cgraph_materialize_all_clones): New function.
2175 * ipa-cp.c (ipcp_update_cloned_node): Remove.
2176 (ipcp_create_replace_map): Update to VECtors.
2177 (ipcp_update_callgraph): Use virtual clones.
2178 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
2179 (ipcp_update_profiling): Do not update local profiling.
2180 (ipcp_insert_stage): Use VECtors and virtual clones.
2181 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
2182 (clone_of_p): New function.
2183 (cgraph_preserve_function_body_p): Use clone tree.
2184 (cgraph_optimize): Materialize clones.
2185 (cgraph_function_versioning): Update for VECtors.
2186 (save_inline_function_body): Use clone tree.
2187 (cgraph_materialize_clone): New function.
2188 (cgraph_materialize_all_clones): Likewise.
2189 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
2190 * ipa.c: Include gimple.h.
2191 (cgraph_remove_unreachable_nodes): Use clone tree.
2192 * ipa-prop.c (ipa_note_param_call): Update call to
2193 compute_call_stmt_bb_frequencycall.
2194 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
2195 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
2196 (copy_bb): Handle updating of clone tree; add new edge when new call
2198 (expand_call_inline): Be strict about every call having edge.
2199 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
2200 (delete_unreachable_blocks_update_callgraph): New function.
2201 (tree_function_versioning): Use VECtors; always remove unreachable
2202 blocks and fold conditionals.
2203 * tree-inline.h: Do not include varray.h.
2204 (tree_function_versioning): Remove.
2205 * Makefile.in (GTFILES): Remove tree-inline.c
2206 * passes.c (do_per_function): Do only functions having body.
2207 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
2210 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
2211 Andrew Morrow <acm@google.com>
2214 * c-common.c (c_common_attribute_table): Permit deprecated
2215 attribute to take an optional argument.
2216 (handle_deprecated_attribute): If the optional argument to
2217 __attribute__((deprecated)) is not a string ignore the attribute
2220 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
2221 * c-typeck.c (build_component_ref): Likewise.
2222 (build_external_ref): Likewise.
2224 * toplev.c (warn_deprecated_use): Add an attribute argument.
2225 Emit the message associated with __attribute__((deprecated)).
2227 * toplev.h (warn_deprecated_use): Updated.
2229 * doc/extend.texi: Document new optional parameter to
2230 __attribute__((deprecated))
2232 2009-05-08 Michael Eager <eager@eagercon.com>
2234 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
2235 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
2237 2009-05-08 Richard Guenther <rguenther@suse.de>
2239 PR tree-optimization/40062
2240 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2241 Avoid exponential behavior.
2243 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
2245 PR rtl-optimization/33928
2247 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
2248 process_uses, build_single_def_use_links): New.
2249 (update_df): Update use_def_ref.
2250 (forward_propagate_into): Use get_def_for_use instead of use-def
2252 (fwprop_init): Call build_single_def_use_links and let it initialize
2254 (fwprop_done): Free use_def_ref.
2255 (fwprop_addr): Eliminate duplicate call to df_set_flags.
2256 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
2257 df_rd_simulate_one_insn): New.
2258 (df_rd_bb_local_compute_process_def): Update head comment.
2259 (df_chain_create_bb): Use the new RD simulation functions.
2260 * df.h (df_rd_simulate_artificial_defs_at_top,
2261 df_rd_simulate_one_insn): New.
2262 * opts.c (decode_options): Enable fwprop at -O1.
2263 * doc/invoke.texi (-fforward-propagate): Document this.
2265 2009-05-08 Joseph Myers <joseph@codesourcery.com>
2268 * c-typeck.c (build_binary_op): Handle arithmetic between one real
2269 and one complex operand specially.
2270 * tree-complex.c (some_nonzerop): Do not identify a real value as
2271 zero if flag_signed_zeros.
2273 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
2275 PR rtl-optimization/33928
2276 * loop-invariant.c (record_use): Fix && vs. || mishap.
2278 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
2280 PR rtl-optimization/33928
2281 * loop-invariant.c (struct use): Add addr_use_p.
2282 (struct def): Add n_addr_uses.
2283 (struct invariant): Add cheap_address.
2284 (create_new_invariant): Set cheap_address.
2285 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
2286 (record_uses): Pass df_ref to record_use.
2287 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
2290 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
2292 * config/sh/sh.c: Do not include c-pragma.h.
2294 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
2296 * config/spu/spu.c: Remove include of c-common.h.
2298 2009-05-07 Janis Johnson <janis187@us.ibm.com>
2301 * c-common.h (mark_valid_location_for_stdc_pragma,
2302 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
2303 clear_float_const_decimal64, float_const_decimal64_p): New.
2304 * c.opt (Wunsuffixed-float-constants): New.
2305 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
2306 unsuffixed float constant, handle new warning.
2307 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
2308 * c-decl.c (c_scope): New flag float_const_decimal64.
2309 (set_float_const_decimal64, clear_float_const_decimal64,
2310 float_const_decimal64_p): New.
2311 (push_scope): Set new flag.
2312 * c-parser.c (c_parser_translation_unit): Mark when it's valid
2313 to use STDC pragmas.
2314 (c_parser_external_declaration): Ditto.
2315 (c_parser_compound_statement_nostart): Ditto.
2316 * c-pragma.c (valid_location_for_stdc_pragma,
2317 mark_valid_location_for_stdc_pragma,
2318 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
2319 handle_pragma_float_const_decimal64): New.
2320 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
2321 * cp/semantics.c (valid_location_for_stdc_pragma_p,
2322 set_float_const_decimal64, clear_float_const_decimal64,
2323 float_const_decimal64_p): New dummy functions.
2324 * doc/extend.texi (Decimal Float): Remove statement that the
2325 pragma, and suffix for double constants, are not supported.
2326 * doc/invoke.texi (Warning Options): List new option.
2327 (-Wunsuffixed-float-constants): New.
2329 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
2331 * config/i386/i386.c: Do not include c-common.h.
2333 2009-05-07 Mark Heffernan <meheff@google.com>
2335 * doc/invoke.texi (Debugging Options): Document change of debugging
2337 * opts.c (decode_options): Make dump_base_name relative to
2338 aux_base_name directory.
2340 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
2342 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
2343 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
2345 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
2347 * Makefile.in (install-plugin): Simplify a bit.
2349 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
2351 * Makefile.in (OBJS-common): Add regcprop.o.
2353 * timevar.def (TV_CPROP_REGISTERS): New.
2354 * regrename.c (regrename_optimize): Return 0.
2355 (rest_of_handle_regrename): Delete.
2356 (pass_rename_registers): Point to regrename_optimize.
2357 (struct value_data_entry, struct value_data,
2358 kill_value_one_regno, kill_value_regno, kill_value,
2359 set_value_regno, init_value_data, kill_clobbered_value,
2360 kill_set_value, kill_autoinc_value, copy_value,
2361 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
2362 replace_oldest_value_reg, replace_oldest_value_addr,
2363 replace_oldest_value_mem, copyprop_hardreg_forward_1,
2364 debug_value_data, validate_value_data): Move...
2365 * regcprop.c: ... here.
2366 (rest_of_handle_cprop): Delete.
2367 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
2369 2009-05-07 Jakub Jelinek <jakub@redhat.com>
2372 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
2373 GEN_INT for 1 << bitnum.
2374 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
2377 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
2379 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
2380 Remove wrong description of "nand" operation.
2382 2009-05-06 Richard Guenther <rguenther@suse.de>
2383 Adam Nemet <anemet@caviumnetworks.com>
2385 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
2386 comment. Add that if LHS is not a gimple register, then RHS1 has
2387 to be a single object (GIMPLE_SINGLE_RHS).
2389 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
2391 * expr.c (get_def_for_expr): Move it up in the file.
2392 (store_field): When expanding a bit-field store, look at the
2393 defining gimple stmt for the masking conversion.
2395 2009-05-06 Janis Johnson <janis187@us.ibm.com>
2398 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2399 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
2400 32-bit memcpy into long.
2402 2009-05-06 Jakub Jelinek <jakub@redhat.com>
2404 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
2405 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
2407 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
2408 instead of appending DW_OP_deref*.
2410 2009-05-06 Michael Matz <matz@suse.de>
2413 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
2414 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
2416 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
2418 * Makefile.in (install-plugin): Fix srcdir handling.
2420 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
2422 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
2423 when processing for not_regs_needed bitmap.
2424 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
2425 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
2426 handling it for rhs.
2428 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2430 * config/i386/i386.md (unnamed inc/dec peephole): Use
2431 optimize_insn_for_size_p instead of optimize_size.
2432 * config/i386/predicates.md (incdec_operand): Likewise.
2433 (aligned_operand): Likewise.
2434 * config/i386/sse.md (divv8sf3): Likewise.
2435 (sqrtv8sf2): Likewise.
2437 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2439 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
2441 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
2443 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2445 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
2446 ssemodesuffixf2c with avxmodesuffixf2c.
2448 2009-05-06 Joseph Myers <joseph@codesourcery.com>
2451 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
2453 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2455 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
2456 (struct tree_base): Adjust spacing for 8 bit boundaries.
2457 (struct tree_decl_common): Add decl_by_reference_flag bit.
2458 (DECL_BY_REFERENCE): Adjust.
2459 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
2460 print DECL_BY_REFERENCE bit.
2461 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
2462 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
2463 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
2464 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
2468 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
2469 range of the type, but default label is missing, add it with one
2470 of the existing labels instead of adding a new label for it.
2472 2009-05-05 Joseph Myers <joseph@codesourcery.com>
2476 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
2478 * Makefile.in (enable_plugin, plugin_includedir): New.
2479 (install): Depend on install-plugin.
2480 (PLUGIN_HEADERS): New.
2481 (install-plugin): New.
2482 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
2484 2009-05-05 Richard Guenther <rguenther@suse.de>
2486 PR tree-optimization/40022
2487 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
2489 (phivn_valid_p): Fix tuplification error, simplify.
2490 (phiprop_insert_phi): Add dumps.
2491 (propagate_with_phi): Simplify.
2493 2009-05-05 Richard Guenther <rguenther@suse.de>
2496 * builtins.c (gimplify_va_arg_expr): Properly build the address.
2498 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
2500 * tree.h (strip_float_extensions): Remove duplicate declaration.
2501 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
2502 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
2503 block_ultimate_origin): Rearrange the declarations line to match the
2504 comment that indicates the .c file which the functions are defined.
2505 (dwarf2out_*, set_decl_rtl): Add comment.
2506 (get_base_address): Adjust comment.
2507 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
2508 declarations line and add comment.
2509 (is_builtin_name): Add blank after function name, for clarity.
2511 2009-05-04 Joseph Myers <joseph@codesourcery.com>
2513 * attribs.c (decl_attributes): Use %qE for identifiers in
2515 * cgraphunit.c (verify_cgraph_node): Translate function names to
2516 locale character set in diagnostics.
2517 * coverage.c (get_coverage_counts): Use %qE for identifiers in
2519 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
2520 Document that functions are named in UTF-8.
2521 * expr.c (expand_expr_real_1): Translate function names to locale
2522 character set in diagnostics.
2523 * gimplify.c (omp_notice_variable, omp_is_private,
2524 gimplify_scan_omp_clauses): Use %qE for identifiers in
2526 * langhooks.c (lhd_print_error_function): Translate function names
2527 to locale character set.
2528 * langhooks.h (decl_printable_name): Document that return value is
2529 in internal character set.
2530 * stmt.c: Include pretty-print.h
2531 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
2533 (resolve_operand_name_1): Translate named operand name to locale
2535 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
2537 * toplev.c (announce_function): Translate function names to locale
2539 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
2540 (default_tree_printer): Use pp_identifier or translate identifiers
2541 to locale character set. Mark "<anonymous>" for translation.
2542 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
2543 for identifiers in diagnostics.
2544 * tree.c (handle_dll_attribute): Use %qE for identifiers in
2546 * varasm.c (output_constructor): Use %qE for identifiers in
2549 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
2551 * configure.ac: use ` ` instead of $()
2552 * configure: Regenerate.
2554 2009-05-05 Ben Elliston <bje@au.ibm.com>
2556 * config/pa/linux-atomic.c: Eliminate conditional include of
2557 errno.h on non-LP64 systems to simplify build requirements.
2559 2009-05-04 Joseph Myers <joseph@codesourcery.com>
2561 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
2563 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
2564 and pass value to identifier_to_locale.
2565 (warn_variable_length_array): Make name a tree.
2566 (grokdeclarator): Separate diagnostic texts for named and unnamed
2567 declarators. Use %qE for named declarators.
2568 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
2570 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
2571 identifiers in diagnostics.
2572 * c-typeck.c (push_member_name, start_init): Pass identifiers to
2573 identifier_to_locale. Mark "anonymous" strings for translation.
2575 2009-05-04 Michael Eager <eager@eagercon.com>
2577 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
2578 address for DImode/DFmode only if double-precision FP regs.
2580 2009-05-04 Michael Eager <eager@eagercon.com>
2582 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
2583 TARGET_SINGLE_FLOAT check.
2585 2009-05-04 Michael Eager <eager@eagercon.com>
2587 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
2589 2009-05-04 Michael Eager <eager@eagercon.com>
2591 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
2592 * config/rs6000/t-xilinx: New
2594 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
2596 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
2597 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
2598 * gcc/explow.c (memory_address): Use target hook.
2599 * gcc/targhooks.c (default_legitimize_address): New.
2600 * gcc/targhooks.h (default_legitimize_address): New.
2601 * gcc/target.h (legitimize_address): New.
2602 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
2603 (TARGET_INITIALIZER): Include it.
2604 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
2606 * config/bfin/bfin-protos.h (legitimize_address): Remove.
2607 * config/bfin/bfin.c (legitimize_address): Remove.
2608 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
2609 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
2611 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
2612 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
2614 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
2615 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
2616 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
2617 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
2618 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
2619 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
2620 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
2621 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
2622 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
2623 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
2624 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
2625 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
2626 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
2627 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
2628 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
2629 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
2630 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
2631 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
2632 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
2633 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
2634 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
2635 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
2636 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
2638 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
2639 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
2640 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
2641 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
2642 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
2643 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
2644 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
2645 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
2646 (thumb_legitimize_address): Delete.
2647 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
2648 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
2649 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
2650 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
2651 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
2652 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
2654 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
2657 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
2658 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
2659 * config/m32r/m32r.c (m32r_legitimize_address): New.
2660 * config/m68k/m68k.c (m68k_legitimize_address): New.
2661 * config/score/score.c (score_legitimize_address): Standardize.
2662 * config/score/score3.c (score3_legitimize_address): Standardize.
2663 * config/score/score3.h (score3_legitimize_address): Adjust.
2664 * config/score/score7.c (score7_legitimize_address): Standardize.
2665 * config/score/score7.h (score7_legitimize_address): Adjust.
2666 * config/sh/sh.c (sh_legitimize_address): New.
2667 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
2669 * gcc/config/s390/s390.c (legitimize_address): Rename to...
2670 (s390_legitimize_address): ... this.
2671 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
2672 (sparc_legitimize_address): ... this.
2673 * gcc/config/i386/i386.c (legitimize_address): Rename to...
2674 (ix86_legitimize_address): ... this.
2675 * gcc/config/avr/avr.c (legitimize_address): Rename to...
2676 (avr_legitimize_address): ... this.
2677 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
2678 (mn10300_legitimize_address): ... this.
2679 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
2680 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
2681 (alpha_expand_mov): Adjust call.
2683 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
2684 * config/spu/spu.c (spu_legitimize_address): Likewise.
2685 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
2686 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
2688 2009-05-04 Joseph Myers <joseph@codesourcery.com>
2690 * intl.c (locale_encoding, locale_utf8): New.
2691 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
2692 * intl.h (locale_encoding, locale_utf8): Declare.
2693 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
2694 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
2696 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
2698 (pp_tree_identifier): Define to call pp_base_tree_identifier.
2699 (pp_base_tree_identifier): Declare as function.
2700 (identifier_to_locale): Declare.
2701 * Makefile.in (pretty-print.o): Update dependencies.
2702 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
2704 2009-05-04 Richard Guenther <rguenther@suse.de>
2707 * builtins.c (fold_builtin_memory_op): Do not decay to element
2708 type if the size matches the whole array.
2710 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
2712 * expmed.c (synth_mult): When trying out a shift, pass the result
2715 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
2717 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
2718 (shiftsub1_cost): New.
2719 (init_expmed): Compute shiftsub1_cost.
2720 (synth_mult): Optimize multiplications by constants of the form
2721 -(2^^m-1) for some constant positive integer m.
2723 2009-05-03 Richard Guenther <rguenther@suse.de>
2726 * c-typeck.c (array_to_pointer_conversion): Do not built
2727 ADDR_EXPRs of arrays of pointer-to-element type.
2728 * c-gimplify.c (c_gimplify_expr): Revert change fixing
2729 up wrong ADDR_EXPRs after-the-fact.
2730 * c-common.c (strict_aliasing_warning): Strip pointer
2731 conversions for obtaining the original type.
2732 * builtins.c (fold_builtin_memset): Handle array types.
2733 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
2736 2009-05-03 Richard Guenther <rguenther@suse.de>
2739 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
2740 Do not lose casts from array types with unknown extent to array
2741 types with known extent.
2742 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
2743 alias set compatibility.
2745 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2747 * flags.h (extra_warnings): Delete.
2748 * toplev.c (process_options): Handle Wuninitialized here.
2749 * opts.c (extra_warnings): Delete.
2750 (set_Wextra): Delete.
2751 (common_handle_option): -Wextra can be handled automatically.
2752 * c-opts.c (c_common_handle_option): Delete obsolete code.
2753 (c_common_post_options): Simplify comment.
2754 * common.opt (W): Add Var.
2756 (Wuninitialized): Initialize to -1.
2758 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
2759 Richard Guenther <rguenther@suse.de>
2761 * expr.c (get_def_for_expr): New function.
2762 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
2763 SSA rather than trees.
2764 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
2765 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
2767 2009-05-03 Joseph Myers <joseph@codesourcery.com>
2769 * c-common.c (reswords): Add _Imaginary.
2770 * c-common.c (enum rid): Add RID_IMAGINARY.
2772 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
2774 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
2775 Patch by Richard Guenther.
2777 2009-05-03 Anatoly Sokolov <aesok@post.ru>
2779 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
2780 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2781 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
2782 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
2783 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
2784 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
2785 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
2786 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
2787 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
2788 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
2789 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
2790 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
2791 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
2792 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
2793 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
2794 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
2795 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
2796 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
2798 2009-05-02 Richard Guenther <rguenther@suse.de>
2800 PR tree-optimization/39940
2801 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
2804 2009-05-02 Richard Guenther <rguenther@suse.de>
2807 * tree-ssa.c (execute_update_addresses_taken): Properly check
2808 if we can mark a variable DECL_GIMPLE_REG_P.
2809 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
2810 back to the end of the function.
2811 (is_gimple_reg_type): Remove complex type special casing.
2812 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
2815 2009-05-02 Ben Elliston <bje@au.ibm.com>
2817 * doc/collect2.texi (Collect2): Document search path behaviour
2818 when configured with --with-ld.
2820 2009-05-02 Jan Hubicka <jh@suse.cz>
2822 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
2823 parameter; update callers.
2824 (coalesce_cost_edge): EH edges are costier because they needs
2825 splitting even if not critical and even more costier when there are
2826 multiple EH predecestors.
2828 2009-05-02 Jan Hubicka <jh@suse.cz>
2830 * except.c (remove_eh_handler_and_replace): Handle updating after
2831 removing TRY blocks.
2833 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
2835 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
2837 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
2839 * varasm.c: Do not include c-pragma.h.
2840 * attribs.c: Do not incude c-common.h.
2842 2009-05-01 Michael Matz <matz@suse.de>
2844 * calls.c (initialize_argument_information): Handle SSA names like
2845 decls with a non MEM_P DECL_RTL.
2847 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2849 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
2850 * ipa-utils.c: Likewise.
2851 * ipa-type-escape.c: Likewise.
2852 * cgraphunit.c Do not include c-common.h.
2853 * ipa-pure-const.c: Likewise.
2854 * tree-if-conv.c: Likewise.
2855 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
2856 * ipa-struct-reorg.c: Likewise.
2857 * tree-nomudflap.c: Likewise.
2858 * tree-ssa-structalias.c: Likewise.
2860 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2862 * store-motion.c: Many cleanups to make this pass a first-class
2863 citizen instead of an appendix to gcse load motion. Add TODO list
2864 to make this pass faster/cleaner/better.
2866 (struct ls_expr): Post gcse.c-split cleanups.
2867 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
2868 "stores" field to "avail_stores".
2869 (pre_ldst_mems): Rename to store_motion_mems.
2870 (pre_ldst_table): Rename to store_motion_mems_table.
2871 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
2872 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
2873 (ldst_entry): Rename to st_expr_entry, update users.
2874 (free_ldst_entry): Rename to free_st_expr_entry, update users.
2875 (free_ldst_mems): Rename to free_store_motion_mems, update users.
2876 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
2878 (first_ls_expr): Rename to first_st_expr, update users.
2879 (next_ls_expr): Rename to next_st_expr, update users.
2880 (print_ldst_list): Rename to print_store_motion_mems. Print names of
2881 fields properly for store motion instead of names inherited from load
2883 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
2884 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
2887 (ae_kill): Rename to st_kill, update users.
2888 (ae_gen): Rename to st_avloc, update users.
2889 (transp): Rename to st_transp, update users.
2890 (pre_insert_map): Rename to st_insert_map, update users.
2891 (pre_delete_map): Rename to st_delete_map, update users.
2892 (insert_store, build_store_vectors, free_store_memory,
2893 one_store_motion_pass): Update for abovementioned changes.
2895 (gcse_subst_count, gcse_create_count): Remove.
2896 (one_store_motion_pass): New statistics counters "n_stores_deleted"
2897 and "n_stores_created", local variables.
2899 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
2902 (regvec, compute_store_table_current_insn): Remove.
2903 (reg_set_info, reg_clear_last_set): Remove.
2904 (compute_store_table): Use DF caches instead of local dataflow
2907 2009-05-01 Joseph Myers <joseph@codesourcery.com>
2909 * c-objc-common.c (c_tree_printer): Print identifiers with
2910 pp_identifier, not pp_string. Mark "({anonymous})" for
2912 * c-pretty-print.c (pp_c_ws_string): New.
2913 (pp_c_cv_qualifier, pp_c_type_specifier,
2914 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
2915 pp_c_storage_class_specifier, pp_c_function_specifier,
2916 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
2917 pp_c_primary_expression, pp_c_postfix_expression,
2918 pp_c_unary_expression, pp_c_shift_expression,
2919 pp_c_relational_expression, pp_c_equality_expression,
2920 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
2921 use pp_string and pp_c_ws_string in place of pp_identifier and
2922 pp_c_identifier for non-identifiers. Mark English strings for
2924 * c-pretty-print.h (pp_c_ws_string): Declare.
2926 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2927 Roland McGrath <roland@redhat.com>
2929 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
2930 (ENABLE_LD_BUILDID): New configuration option.
2931 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
2932 (LINK_BUILDID_SPEC): New macro.
2933 (init_spec): If defined, prepend it between LINK_EH_SPEC and
2935 * doc/install.texi: Document --enable-linker-build-id option.
2936 * configure: Rebuild.
2937 * config.in: Rebuild.
2939 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
2941 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
2942 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
2943 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
2944 MIPS_GP_SAVE_AREA_SIZE.
2945 * config/mips/mips.c (struct mips_frame_info): Update comment
2946 before arg_pointer_offset and hard_frame_pointer_offset.
2947 (mips_compute_frame_info): Update diagram before function: to
2948 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
2949 indicate the position of frame_pointer_rtx with -fstack-protector and
2950 to show args_size. Don't allocate cprestore area for leaf functions
2951 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
2953 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
2955 2009-04-30 Michael Matz <matz@suse.de>
2957 PR tree-optimization/39955
2958 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
2960 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
2962 * ira.c (setup_cover_and_important_classes): Use safe macro
2963 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
2965 * genpreds.c (write_tm_preds_h): Output suitable definition of
2966 REG_CLASS_FOR_CONSTRAINT.
2968 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
2970 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
2972 * bitmap.c (bitmap_descriptor): Likewise.
2973 * ggc-common.c (loc_descriptor): Likewise.
2974 * varray.c (varray_descriptor): Likewise.
2975 * vec.c (vec_descriptor): Likewise.
2977 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
2979 * Makefile.in (dce.o): Add $(EXCEPT_H).
2980 * dce.c: Include except.h and delete redundant vector definitions.
2981 (deletable_insn_p): Return false for non-call insns that can throw
2984 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
2986 * gcse.c (ae_gen): Remove.
2987 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
2988 and make non-static function to make it available in store-motion.c.
2989 Update call sites with search-and-replace.
2990 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
2991 extract_mentioned_regs, extract_mentioned_regs_helper,
2992 find_moveable_store, compute_store_table, load_kills_store, find_loads,
2993 store_killed_in_insn, store_killed_after, store_killed_before,
2994 build_store_vectors, insert_insn_start_basic_block, insert-store,
2995 remove_reachable_equiv_notes, replace_store_insn, delete_store,
2996 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
2997 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
2998 * store-motion.c: ...new file. Also copy data structures from gcse.c
2999 and clean up to remove parts not used by store motion.
3000 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
3001 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
3003 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3006 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
3007 when optimizing for size.
3009 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
3011 * gcse.c (gcse_constant_p): Fix typo in last change.
3013 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
3015 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
3017 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
3019 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
3021 2009-04-29 James E. Wilson <wilson@codesourcery.com>
3023 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
3024 CONST_HIGH_PART result.
3026 2009-04-29 Anatoly Sokolov <aesok@post.ru>
3028 * config/avr/avr.c (initial_elimination_offset): Rename to
3029 avr_initial_elimination_offset.
3030 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
3031 change return type to bool.
3032 (avr_can_eliminate): New function.
3033 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
3034 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
3035 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
3036 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
3037 avr_initial_elimination_offset.
3038 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
3039 (avr_initial_elimination_offset): Define.
3041 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3042 Steven Bosscher <steven@gcc.gnu.org>
3044 PR rtl-optimization/39938
3045 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
3046 * cfgrtl.c: Include insn-attr.h.
3047 (rest_of_pass_free_cfg): New function.
3048 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
3049 * resource.c (init_resource_info): Remove call to df_analyze.
3051 2009-04-29 Richard Guenther <rguenther@suse.de>
3054 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
3055 allow conversion to signed integers.
3057 2009-04-29 Richard Guenther <rguenther@suse.de>
3059 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
3060 shifts of floating point vectors if the shift amount is
3061 a constant multiple of the element size.
3063 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
3064 Michael Matz <matz@suse.de>
3068 * tree-outof-ssa.c (emit_partition_copy): New function.
3069 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
3070 insert_part_to_rtx_on_edge): Perform the partition base var
3071 copy using emit_partition_copy.
3072 (insert_value_copy_on_edge): Convert constants to the right mode.
3073 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
3074 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
3076 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
3078 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
3079 scan backwards to try to find a constant to initialize it.
3081 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
3082 insn before the loop_end instruction, don't look past labels.
3084 2009-04-29 Richard Guenther <rguenther@suse.de>
3087 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
3088 loose type conversions.
3089 (forward_propagate_addr_expr): Fix tuplification bug. Remove
3090 stmts only if there are no uses of its definition.
3092 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
3094 * config/bfin/bfin.h (splitting_loops): Declare.
3095 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
3096 Reorder bit definitions to be ascending.
3097 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
3098 * config/bfin/bfin.c (splitting_loops): New variable.
3099 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
3100 (struct loop_info): Remove members INIT and LOOP_INIT.
3101 (bfin_optimize_loop): Don't set them. Reorder the code that generates
3102 the LSETUP sequence. Allow LC to be loaded from any register, but
3103 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
3104 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
3106 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
3107 of reload_completed.
3110 * config/bfin/bfin.md (movsi_insn): Refine constraints.
3112 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
3114 * Makefile.in (PLUGIN_VERSION_H): New.
3115 (OBJS-common): Remove plugin-version.o.
3116 (plugin.o): Depend on (PLUGIN_VERSION_H).
3117 (plugin-version.o): Remove.
3118 * configure: Regenerate
3119 * configure.ac: Create plugin-version.h.
3120 * gcc-plugin.h (plugin_gcc_version): Remove.
3121 (plugin_default_version_check): Change signature.
3122 * plugin-version.c: Remove.
3123 * plugin.c: Include plugin-version.h.
3124 (str_plugin_gcc_version_name): Remove.
3125 (try_init_one_plugin): Pass gcc version to plugin_init.
3126 (plugin_default_version_check): Both gcc and plugin versions are now
3129 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
3131 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
3132 problematic last insns. Test for TYPE_CALL rather than CALL_P.
3133 Remove special case testing for last insn of inner loops. Don't fail
3134 if the loop ends with a jump, emit an extra nop instead.
3136 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
3137 DREGS rather than comparing directly. Remove code that tries to
3138 account for latencies.
3140 2009-04-29 Richard Guenther <rguenther@suse.de>
3142 PR tree-optimization/39941
3143 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
3144 eliminating an indirect call.
3146 2009-04-29 Richard Guenther <rguenther@suse.de>
3148 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
3149 parameter. Allow invariants as base if !require_lvalue.
3150 (verify_gimple_assign_single): Adjust.
3152 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
3154 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
3155 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
3156 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
3157 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
3158 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
3160 * config/bfin/bfin.c (bfin_expand_builtin,
3161 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
3163 2009-04-28 Richard Guenther <rguenther@suse.de>
3165 * tree-vect-loop.c (get_initial_def_for_induction): Use
3166 correct types for pointer increment.
3168 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3170 * toplev.c (print_version): Update GMP version string calculation.
3172 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
3174 PR rtl-optimization/39938
3175 * resource.c (init_resource_info): Add call to df_analyze.
3177 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
3179 * config/alpha/alpha.md (usegp): Cast the result of
3180 alpha_find_lo_sum_using_gp to enum attr_usegp.
3181 * config/alpha/alpha.c (override_options): Remove end-of-structure
3182 marker element from cpu_table. Use array size of cpu_table to handle
3183 -mcpu and -mtune options.
3184 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
3186 2009-04-28 Joseph Myers <joseph@codesourcery.com>
3188 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
3189 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
3190 tune_32 and tune_64.
3191 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3193 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
3194 * config/rs6000/option-defaults.h: ... here. New file.
3195 (OPT_64, OPT_32): Define.
3196 (MASK_64BIT): Define to 0 if not already defined.
3197 (OPT_ARCH64, OPT_ARCH32): Define.
3198 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
3201 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3203 * config/arm/arm.c (arm_override_options): Emit error on using
3206 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
3208 PR rtl-optimization/39914
3209 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
3210 registers for allocnos created from user-defined variables only
3211 when not optimizing.
3213 2009-04-28 Richard Guenther <rguenther@suse.de>
3216 * fold-const.c (fold_binary): Use distribute_real_division only
3219 2009-04-28 Steve Ellcey <sje@cup.hp.com>
3221 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
3222 add hpux-stdint.h to tm_file.
3223 (hppa[12]*-*-hpux11*): Ditto.
3224 (ia64*-*-hpux*): Ditto.
3225 * config/hpux-stdint.h: New.
3226 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
3227 __STDC_EXT__ for all compiles.
3228 * config/pa/pa-hpux.h: Ditto.
3229 * config/pa/pa-hpux10.h: Ditto.
3230 * config/pa/pa-hpux11.h: Ditto.
3232 2009-04-28 Catherine Moore <clm@codesourcery.com>
3234 * debug.h (set_name): Add comment.
3236 2009-04-28 Andrew Pinski <pinskia@gmail.com>
3239 * config/darwin.c (machopic_gen_offset): Check
3240 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
3241 * config/arm/arm.c (require_pic_register): Likewise.
3243 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
3245 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
3246 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
3247 m32c_promote_prototypes): Delete.
3249 2009-04-28 Michael Matz <matz@suse.de>
3252 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
3255 2009-04-28 Richard Guenther <rguenther@suse.de>
3257 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
3259 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3261 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
3262 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
3263 * config/arm/arm-tune.md: Regenerate.
3265 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
3267 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
3268 block if there are complex incoming edges.
3269 (sel_merge_blocks): Remove useless assert.
3270 (sel_redirect_edge_and_branch): Check that edge was redirected.
3271 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
3272 (sel_find_rgns): Delete declaration.
3273 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
3274 the region when it is not a preheader.
3276 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
3279 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
3281 2009-04-28 Richard Guenther <rguenther@suse.de>
3283 * tree.h (SSA_NAME_VALUE): Remove.
3284 (struct tree_ssa_name): Remove value_handle member.
3285 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
3286 array for jump threading.
3287 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
3289 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
3290 * tree-flow.h (threadedge_initialize_values): Declare.
3291 (threadedge_finalize_values): Likewise.
3292 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
3293 (SSA_NAME_VALUE): Define.
3294 (threadedge_initialize_values): New function.
3295 (threadedge_finalize_values): Likewise.
3296 * tree-ssa-dom.c (ssa_name_values): New global variable.
3297 (SSA_NAME_VALUE): Define.
3298 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
3300 2009-04-28 Ira Rosen <irar@il.ibm.com>
3302 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3303 Use REPORT_VECTORIZED_LOCATIONS instead
3304 REPORT_VECTORIZED_LOOPS.
3305 * tree-vectorizer.c (vect_verbosity_level): Make static.
3306 (vect_loop_location): Rename to vect_location.
3307 (vect_set_verbosity_level): Update comment.
3308 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
3310 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
3311 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
3312 instead REPORT_UNVECTORIZED_LOOPS.
3313 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
3314 and vect_loop_def to vect_external_def and vect_internal_def.
3315 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
3316 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
3317 REPORT_UNVECTORIZED_LOCATIONS.
3318 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
3319 and vect_used_in_loop and to vect_unused_in_scope and
3321 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
3322 (vect_verbosity_level): Remove declaration.
3323 (vect_analyze_operations): Likewise.
3324 (vect_analyze_stmt): Declare.
3325 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
3326 REPORT_UNVECTORIZED_LOCATIONS.
3327 (vect_get_loop_niters): Fix indentation.
3328 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
3329 (vect_analyze_loop_operations): New function.
3330 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
3331 vect_analyze_operations.
3332 (vect_is_simple_reduction): Use new names.
3333 (vectorizable_live_operation, vect_transform_loop): Likewise.
3334 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
3335 to specify whether the data references can be a part of interleaving
3337 (vect_analyze_data_ref_dependence): Use new names.
3338 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
3339 (vect_create_addr_base_for_vector_ref): Remove redundant code.
3340 * tree-vect-patterns.c (widened_name_p): Use new names.
3341 (vect_recog_dot_prod_pattern): Likewise.
3342 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
3343 (process_use, vect_mark_stmts_to_be_vectorized,
3344 vect_model_simple_cost, vect_model_store_cost,
3345 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
3346 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
3347 vectorizable_operation, vectorizable_type_demotion,
3348 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
3349 vectorizable_condition): Likewise.
3350 (vect_analyze_operations): Split into vect_analyze_loop_operations
3352 (vect_analyze_stmt): ... new function.
3353 (new_stmt_vec_info): Use new names.
3354 (vect_is_simple_use): Use new names and fix comment.
3355 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
3356 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
3358 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
3361 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
3362 and integer modes for x87 operands. Do not ICE for unsupported size,
3363 generate error instead. Generate error for unsupported operand types.
3364 ['z']: Do not handle HImode memory operands specially. Warning
3365 for floating-point operands. Fallthru to 'Z' for unsupported operand
3366 types. Do not ICE for unsupported size, generate error instead.
3367 (output_387_binary_op): Use %Z to output operands.
3368 (output_fp_compare): Ditto.
3369 (output_387_reg_move): Ditto.
3371 2009-04-28 Ben Elliston <bje@au.ibm.com>
3376 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3378 * builtins.c (c_strlen): Do not warn here.
3379 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
3380 * c-common.c (pointer_int_sum): Take an explicit location.
3381 Warn about offsets out of bounds.
3382 * c-common.h (pointer_int_sum): Adjust declaration.
3384 2009-04-27 Ian Lance Taylor <iant@google.com>
3386 * collect2.c (is_ctor_dtor): Change type of ret field in struct
3388 * dce.c (run_fast_df_dce): Change type of old_flags to int.
3389 * df-core.c (df_set_flags): Change return type to int. Change
3390 type of old_flags to int.
3391 (df_clear_flags): Likewise.
3392 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
3393 (df_get_conditional_uses): Likewise.
3394 * df.h (df_set_flags, df_clear_flags): Update declarations.
3395 * dwarf2out.c (struct indirect_string_node): Change type of form
3396 field to enum dwarf_form.
3397 (AT_string_form): Change return type to enum dwarf_form.
3398 * fixed-value.c (fixed_compare): Add cast to enum type.
3399 * fwprop.c (update_df): Change 0 to VOIDmode.
3400 * gensupport.c: Change 0 to UNKNOWN.
3401 * gimple.h (gimple_cond_code): Add cast to enum type.
3402 * haifa-sched.c (reemit_notes): Add cast to enum type.
3403 * hooks.c (hook_int_void_no_regs): Remove function.
3404 * hooks.h (hook_int_void_no_regs): Remove declaration.
3405 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
3406 * predict.c (combine_predictions_for_insn): Add casts to enum type.
3407 * real.c (real_arithmetic): Add cast to enum type.
3408 (real_compare): Likewise.
3409 * target.h (struct gcc_target): Change return type of
3410 branch_target_register_class to enum reg_class.
3411 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
3412 default_branch_target_register_class.
3413 * targhooks.c (default_branch_target_register_class): New function.
3414 * targhooks.h (default_branch_target_register_class): Declare.
3415 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
3416 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
3418 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
3420 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
3421 vect_uninitialized_def. Change 0 to ERROR_MARK.
3422 * tree-vect-stmts.c (supportable_widening_operation): Don't
3423 initialize icode1 and icode2.
3424 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
3425 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
3427 (cmn_err_flag_specs): Change 0 to STD_C89.
3428 (cmn_err_char_table): Likewise.
3429 * config/arm/arm.c (get_arm_condition_code): Change type of code
3430 to enum arm_cond_code.
3431 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
3432 (IWMMXT_BUILTIN2): Likewise.
3433 (neon_builtin_type_bits): Don't define typedef.
3434 (neon_builtin_datum): Change type of bits field to int.
3435 (arm_expand_neon_args): Add cast to enum type.
3436 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
3438 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
3440 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
3442 * config/mips/mips.md (jal_macro): Return enum constant.
3443 (single_insn): Likewise.
3444 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
3446 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3448 * config/s390/s390.c (s390_tune_flags): Change type to int.
3449 (s390_arch_flags): Likewise.
3450 (s390_handle_arch_option): Change flags field of struct pta to int.
3451 * config/s390/s390.h (s390_tune_flags): Update declaration.
3452 (s390_arch_flags): Likewise.
3453 * config/sh/sh.c (prepare_move_operands): Compare
3454 tls_symbolic_operand result with enum constant.
3455 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
3456 (sh_expand_prologue): Add cast to enum type.
3457 (sh_expand_epilogue): Likewise.
3458 (tls_symbolic_operand): Change return type to enum tls_model.
3459 (fpscr_set_from_mem): Add cast to enum type.
3460 (legitimize_pic_address): Compare tls_symbolic_operand result with
3462 (sh_target_reg_class): Change return type to enum reg_class.
3463 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
3465 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
3466 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
3467 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
3468 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
3469 (delayed_branch, tls_call_delay): Likewise.
3470 (eligible_for_sibcall_delay): Likewise.
3471 (eligible_for_return_delay): Likewise.
3472 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
3473 (spu_expand_builtin_1): Likewise.
3475 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
3476 for all types of conversions.
3477 (output_init_element): Issue -Wc++-compat warning if needed when
3478 initializing a bitfield with enum type.
3479 * c-parser.c (c_parser_expression): Set original_type to
3480 original_type of right hand operand of comman operator.
3482 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3484 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
3486 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
3487 * doc/cpp.texi (Standard Predefined Macros)
3488 (Implementation-defined behavior): Likewise.
3489 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
3490 * doc/gimple.texi (GIMPLE Exception Handling)
3491 (@code{GIMPLE_ASSIGN}): Likewise.
3492 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
3493 * doc/invoke.texi (Warning Options, Optimize Options)
3494 (AVR Options, Darwin Options): Likewise.
3495 (Optimize Options): Reformulate -fwhole-program description.
3496 * doc/loop.texi (Lambda): Likewise.
3497 * doc/md.texi (Output Template, Define Constraints)
3498 (Standard Names, Insn Splitting): Likewise.
3499 * doc/options.texi (Option properties): Likewise.
3500 * doc/passes.texi (Tree-SSA passes): Likewise.
3501 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
3502 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
3503 (File Names and DBX): Likewise.
3504 * doc/trouble.texi (Incompatibilities): Likewise.
3506 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3508 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
3509 instruction is correct.
3511 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3513 Allow non-constant arguments to conversion intrinsics.
3514 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
3515 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
3516 * spu.c (print_operand): Handle 'v' and 'w'.
3517 (exp2_immediate_p, spu_gen_exp2): Define.
3518 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
3519 spu_convtf_1): Update parameter descriptions.
3520 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
3521 * constraints.md ('v', 'w'): New.
3522 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
3524 (i2f, I2F): New define_mode_attr.
3525 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
3526 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
3527 fixuns_truncv4sfv4si2): Update to use mode attribute.
3528 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
3529 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
3530 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
3531 patterns for combine.
3533 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
3535 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
3536 (cprop, hoist, pre, store_motion): New debug counters.
3537 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
3538 is not an RTL pass anymore.
3539 (pass_profiling): Remove extern decl for pass removed in 2005.
3540 (pass_gcse, pass_jump_bypass): Remove.
3541 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
3542 to 0 for clean state.
3543 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
3544 * cse.c (gate_handle_cse_after_global_opts,
3545 rest_of_handle_cse_after_global_opts): New functions.
3546 (pass_cse_after_global_opts): New pass, does local CSE.
3547 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
3548 (TV_CPROP): New timevar.
3549 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
3550 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
3551 (gcse_main, recompute_all_luids): Remove.
3552 (compute_hash_table_work): Call max_reg_num instead of reading
3554 (cprop_jump): Don't set run_jump_opt_after_gcse.
3555 (constprop_register): Always allow to alter jumps.
3556 (cprop_insn): Likewise.
3557 (do_local_cprop): Likewise.
3558 (local_cprop_pass): Likewise. Return non-zero if something changed.
3559 (cprop): Remove function, fold interesting bits into one_cprop_pass.
3560 (find_implicit_sets): Add note about missed optimization opportunity.
3561 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
3562 pass_rtl_cprop execute function.
3563 Don't bother tracking the pass number, each pass gets its own dumpfile
3565 Always allow to alter jumpsand bypass jumps.
3566 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
3567 will just find no suitable set.
3568 (pre_edge_insert): Fix dumping, this function is for PRE only.
3569 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
3570 pass_rtl_pre execute function.
3571 (hoist_code): Return non-zero if something changed. Keep track of
3572 substitutions and insertions for statistics gathering similar to PRE.
3573 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
3574 called from the pass_rtl_hoist execute function. Show pass statistics.
3575 (compute_store_table): Use max_reg_num directly instead of using the
3576 formerly global max_gcse_regno.
3577 (build_store_vectors): Likewise.
3578 (replace_store_insn): Fix dumping.
3579 (store_motion): Rename to ...
3580 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
3581 pass, called from the pass_rtl_store_motion execute function. Keep
3582 track of substitutions and insertions for statistics gathering similar
3584 (bypass_jumps): Remove, fold interesting bits into ...
3585 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
3586 from the pass_rtl_cprop execute function.
3587 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3588 pass_jump_bypass): Remove.
3589 (gate_handle_gcse, rest_of_handle_gcse): Remove.
3590 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
3591 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
3592 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
3593 (gate_rtl_store_motion, execute_rtl_store_motion,
3594 pass_rtl_store_motion): New.
3595 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
3596 make it clear that -fcse-skip-blocks is a no-op for backward compat.
3597 * passes.c (init_optimization_passes): Remove pass_gcse and
3598 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
3599 and cse_after_global_opts in place of pass_gcse. Schedule cprop
3600 instead of pass_jump_bypass.
3602 2009-04-27 Richard Guenther <rguenther@suse.de>
3605 * gimplify.c (gimplify_expr): If we are required to create
3606 a temporary make sure it ends up as register.
3608 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
3611 * config/i386/i386.c (construct_container): Don't call
3612 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
3613 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
3615 2009-04-27 Michael Matz <matz@suse.de>
3617 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
3618 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
3619 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
3620 (dump_replaceable_exprs): Take a bitmap.
3621 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
3623 (expand_gimple_basic_block): Likewise.
3624 * tree-ssa-ter.c (struct temp_expr_table_d): Make
3625 replaceable_expressions member a bitmap.
3626 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
3627 (mark_replaceable): Likewise.
3628 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
3629 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
3631 2009-04-27 Richard Guenther <rguenther@suse.de>
3633 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
3634 (verify_stmts): Dispatch to gimple/type verification code.
3635 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
3636 issue with call argument types.
3638 2009-04-27 Michael Matz <matz@suse.de>
3640 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
3641 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
3644 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
3645 Eric Botcazou <ebotcazou@adacore.com>
3647 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
3648 a label's basic block.
3649 (mark_target_live_regs): Tidy and rework obsolete comments.
3650 Change back DF problem to LIVE. If a label starts a basic block,
3651 assume that all registers that used to be live then still are.
3652 (init_resource_info): If a label starts a basic block, set its
3653 BLOCK_FOR_INSN accordingly.
3654 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
3656 2009-04-27 Richard Guenther <rguenther@suse.de>
3658 * tree-flow-inline.h (function_ann): Remove.
3659 (get_function_ann): Likewise.
3660 * tree-dfa.c (create_function_ann): Remove.
3661 * tree-flow.h (struct static_var_ann_d): Remove.
3662 (struct function_ann_d): Likewise.
3663 (union tree_ann_d): Remove fdecl member.
3664 (function_ann_t): Remove.
3665 (function_ann, get_function_ann, create_function_ann): Remove
3668 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
3670 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
3672 2009-04-27 Jan Hubicka <jh@suse.cz>
3674 * ipa-pure-const.c (struct funct_state_d): New fields
3675 state_previously_known, looping_previously_known; remove
3676 state_set_in_source.
3677 (analyze_function): Use new fields.
3678 (propagate): Avoid assumption that state_set_in_source imply
3681 * tree-ssa-loop-niter.c (finite_loop_p): New function.
3682 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
3683 * cfgloop.h (finite_loop_p): Declare.
3685 2009-04-26 Michael Matz <matz@suse.de>
3687 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
3689 2009-04-26 Michael Matz <matz@suse.de>
3691 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
3692 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
3693 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
3694 pass_mark_used_blocks): Remove.
3695 * tree-optimize.c (pass_free_datastructures,
3696 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
3697 * passes.c (init_optimization_passes): Don't call
3698 pass_mark_used_blocks, remove dead code.
3700 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
3702 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
3703 * tree-ssa-live.h (register_ssa_partition): Likewise.
3705 2009-04-26 Michael Matz <matz@suse.de>
3708 * builtins.c (fold_builtin_next_arg): Handle SSA names.
3709 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
3710 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
3712 (compare_pairs): Swap cost comparison.
3713 (coalesce_ssa_name): Don't use change_partition_var.
3714 * tree-nrv.c (struct nrv_data): Add modified member.
3715 (finalize_nrv_r): Set it.
3716 (tree_nrv): Use it to update statements.
3717 (pass_nrv): Require PROP_ssa.
3718 * tree-mudflap.c (mf_decl_cache_locals,
3719 mf_build_check_statement_for): Use make_rename_temp.
3720 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
3721 * alias.c (find_base_decl): Handle SSA names.
3722 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
3723 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
3724 * rtl.h (set_reg_attrs_for_parm): Declare.
3725 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
3726 to "optimized", remove unused locals at finish.
3727 (execute_free_datastructures): Make global, call
3728 delete_tree_cfg_annotations.
3729 (execute_free_cfg_annotations): Don't call
3730 delete_tree_cfg_annotations.
3732 * ssaexpand.h: New file.
3733 * expr.c (toplevel): Include ssaexpand.h.
3734 (expand_assignment): Handle SSA names the same as register variables.
3735 (expand_expr_real_1): Expand SSA names.
3736 * cfgexpand.c (toplevel): Include ssaexpand.h.
3737 (SA): New global variable.
3738 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
3739 (SSAVAR): New macro.
3740 (set_rtl): New helper function.
3741 (add_stack_var): Deal with SSA names, use set_rtl.
3742 (expand_one_stack_var_at): Likewise.
3743 (expand_one_stack_var): Deal with SSA names.
3744 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
3745 before unique numbers.
3746 (expand_stack_vars): Use set_rtl.
3747 (expand_one_var): Accept SSA names, add asserts for them, feed them
3748 to above subroutines.
3749 (expand_used_vars): Expand all partitions (without default defs),
3750 then only the local decls (ignoring those expanded already).
3751 (expand_gimple_cond): Remove edges when jumpif() expands an
3753 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
3754 or remove abnormal edges. Ignore insns setting the LHS of a TERed
3756 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
3757 members of SA; deal with PARM_DECL partitions here; expand
3758 all PHI nodes, free tree datastructures and SA. Commit instructions
3759 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
3760 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
3761 info and statements at start, collect garbage at finish.
3762 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
3763 (VAR_ANN_PARTITION) Remove.
3764 (change_partition_var): Don't declare.
3765 (partition_to_var): Always return SSA names.
3766 (var_to_partition): Only accept SSA names.
3767 (register_ssa_partition): Only check argument.
3768 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
3770 (delete_var_map): Don't free it.
3771 (var_union): Only accept SSA names, simplify.
3772 (partition_view_init): Mark only useful SSA names as used.
3773 (partition_view_fini): Only deal with SSA names.
3774 (change_partition_var): Remove.
3775 (dump_var_map): Use ssa_name instead of partition_to_var member.
3776 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
3778 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
3779 (struct _elim_graph): New member const_dests; nodes member vector of
3781 (set_location_for_edge): New static helper.
3782 (create_temp): Remove.
3783 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
3784 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
3785 (new_elim_graph): Allocate const_dests member.
3786 (clean_elim_graph): Truncate const_dests member.
3787 (delete_elim_graph): Free const_dests member.
3788 (elim_graph_size): Adapt to new type of nodes member.
3789 (elim_graph_add_node): Likewise.
3790 (eliminate_name): Likewise.
3791 (eliminate_build): Don't take basic block argument, deal only with
3792 partition numbers, not variables.
3793 (get_temp_reg): New static helper.
3794 (elim_create): Use it, deal with RTL temporaries instead of trees.
3795 (eliminate_phi): Adjust all calls to new signature.
3796 (assign_vars, replace_use_variable, replace_def_variable): Remove.
3797 (rewrite_trees): Only do checking.
3798 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
3799 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
3800 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
3801 contains_tree_r, MAX_STMTS_IN_LATCH,
3802 process_single_block_loop_latch, analyze_edges_for_bb,
3803 perform_edge_inserts): Remove.
3804 (expand_phi_nodes): New global function.
3805 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
3806 functions, initialize new parameter, remember partitions having a
3808 (finish_out_of_ssa): New global function.
3809 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
3810 don't reset in_ssa_p here, don't disable TER when mudflap.
3811 (pass_del_ssa): Remove.
3812 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
3814 (execute_free_datastructures): Declare.
3815 * Makefile.in (SSAEXPAND_H): New variable.
3816 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
3817 * basic-block.h (commit_one_edge_insertion): Declare.
3818 * passes.c (init_optimization_passes): Move pass_nrv and
3819 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
3820 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
3821 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
3822 (redirect_branch_edge): Deal with super block when expanding, split
3823 out jump patching itself into ...
3824 (patch_jump_insn): ... here, new static helper.
3826 2009-04-26 Michael Matz <matz@suse.de>
3828 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
3829 beyond num_ssa_names.
3830 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3831 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3833 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3836 * fwprop.c (forward_propagate_asm): New function.
3837 (forward_propagate_and_simplify): Propagate also into __asm, if it
3838 doesn't increase the number of referenced registers.
3841 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
3843 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3845 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
3846 note_nonlocal_vla_type for nonlocal VLAs.
3847 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
3848 contains_remapped_vars, remap_vla_decls): New functions.
3849 (convert_nonlocal_reference_stmt): If not optimizing, call
3850 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
3851 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
3852 if it wasn't found in var_map.
3853 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
3854 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
3855 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
3857 * gimplify.c (nonlocal_vlas): New variable.
3858 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
3860 (gimplify_body): Create and destroy nonlocal_vlas.
3862 * dwarf2out.c (loc_descr_plus_const): New function.
3863 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
3864 mem_loc_descriptor, loc_descriptor_from_tree_1,
3865 descr_info_loc, gen_variable_die): Use it.
3867 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
3868 !TREE_STATIC VAR_DECLs.
3869 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
3870 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
3871 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
3872 DECL_BY_REFERENCE is valid.
3873 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
3874 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
3875 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
3876 Copy DECL_BY_REFERENCE.
3877 (struct nesting_copy_body_data): New type.
3878 (nesting_copy_decl): New function.
3879 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
3880 if they have variable length.
3882 2009-04-26 Michael Matz <matz@suse.de>
3884 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
3885 mark new temporaries for renaming.
3887 2009-04-26 Joseph Myers <joseph@codesourcery.com>
3890 * c-decl.c (global_bindings_p): Return negative value.
3891 (c_variable_size): New. Based on variable_size from
3893 (grokdeclarator): Call c_variable_size not variable_size.
3895 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
3897 * config/i386/i386.c (print_operand) ['z']: Fix typo.
3899 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
3901 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
3902 Redefine it to just use mingw/include.
3903 (ASM_SPEC): Rules for -m32 and -m64.
3904 (LINK_SPEC): Use Likewise.
3905 (SPEC_32): New define.
3906 (SPEC_64): Likewise.
3907 (SUB_LINK_SPEC): Likewise.
3908 (MULTILIB_DEFAULTS): New define.
3909 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
3910 Add multilib options.
3911 (MULTILIB_DIRNAMES): Likewise.
3912 (MULTILIB_OSDIRNAMES): Likewise.
3914 (INSTALL_LIBGCC): Likewise.
3916 2009-04-26 Joseph Myers <joseph@codesourcery.com>
3919 * c-tree.h (enum c_inline_static_type): New.
3920 (record_inline_static): Declare.
3921 * c-decl.c (struct c_inline_static, c_inline_statics,
3922 record_inline_static, check_inline_statics): New.
3923 (pop_file_scope): Call check_inline_statics.
3924 (start_decl): Call record_inline_static instead of pedwarning
3925 directly for static in inline function.
3926 * c-typeck.c (build_external_ref): Call record_inline_static
3927 instead of pedwarning directly for static referenced in inline
3930 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
3932 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
3933 not new but only being rescanned.
3934 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
3935 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
3936 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
3937 record_set_info, compute_set, grealloc): Remove.
3938 (recompute_all_luids): New function.
3939 (gcse_main): Don't compute sets, and don't do related memory
3940 allocations/free-ing. If something changed before the end of the
3941 pass, update LUIDs using recompute_all_luids.
3942 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
3943 (free_gcse_mem): Don't free it either.
3944 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
3945 Use the df insn LUIDs.
3946 (load_killed_in_block): Likewise.
3947 (compute_hash_table_work): Don't compute reg_set_in_block.
3948 (compute_transp): Use DF_REG_DEF_CHAINs.
3949 (local_cprop_pass): Don't use compute_sets and related functions.
3950 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
3951 Use get_max_uid() instead of max_cuid.
3952 (insert_insn_end_basic_block, pre_insert_copy_insn,
3953 update_ld_motion_stores): Don't try to
3954 keep reg_set tables up to date.
3955 (pre_insert_copies): Use df insn LUIDs.
3956 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
3957 (reg_set_info): Don't use extra bitmap argument.
3958 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
3959 information to compute regs_set_in_block.
3960 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
3961 (bypass_jumps): Don't use compute_sets and friends.
3963 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3966 * opts.c (undocumented_msg): Do not leave blank even with
3969 2009-04-25 Joseph Myers <joseph@codesourcery.com>
3971 * c-decl.c (build_enumerator): Allow values folding to integer
3972 constants but not integer constant expressions with a pedwarn if
3975 2009-04-25 Joseph Myers <joseph@codesourcery.com>
3978 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
3979 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
3980 type is an integer constant.
3982 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
3985 * config/i386/i386.c (print_operand) ['z']: Revert handling of
3988 2009-04-25 Joseph Myers <joseph@codesourcery.com>
3991 * c-decl.c (grokdeclarator): Diagnose declarations of functions
3992 with variably modified return type and no storage class
3993 specifiers, except for the case of nested functions. Distinguish
3994 extern declarations of functions with variably modified return
3995 types from those of objects with variably modified types.
3997 2009-04-25 Jan Hubicka <jh@suse.cz>
3999 * tree.c (list_equal_p): New function.
4000 * tree.h (list_equal_p): Declare.
4001 * coretypes.h (edge_def, edge, const_edge, basic_block_def
4002 basic_block_def, basic_block, const_basic_block): New.
4003 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
4004 (redirect_eh_edge): New function.
4005 (make_eh_edge_update_phi): EH edges are not abnormal.
4006 * except.c: Include tree-flow.h.
4007 (list_match): New function.
4008 (eh_region_replaceable_by_p): New function.
4009 (replace_region): New function.
4010 (hash_type_list): New function.
4011 (hash_eh_region): New function.
4012 (eh_regions_equal_p): New function.
4013 (merge_peers): New function.
4014 (remove_unreachable_regions): Verify EH tree when checking;
4016 (copy_eh_region_1): New function.
4017 (copy_eh_region): New function.
4018 (push_reachable_handler): New function.
4019 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
4020 regions without label but with live RESX.
4021 * except.h (redirect_eh_edge_to_label): New.
4022 * tree-flow.h (redirect_eh_edge): New.
4023 * coretypes.h (edge_def, edge, const_edge, basic_block_def
4024 basic_block_def, basic_block, const_basic_block): Remove.
4025 * Makefile.in (except.o): Add dependency on tree-flow.h
4026 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
4027 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
4030 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4033 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
4034 on the destination of memcpy.
4036 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
4038 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
4039 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
4040 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
4042 2009-04-25 Jan Hubicka <jh@suse.cz>
4044 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
4045 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
4046 to be reached by different label than left.
4047 (update_eh_edges): Update comment; remove edge_to_remove if possible
4048 and return true if suceeded.
4049 (cleanup_empty_eh): Accept sharing map; handle shared regions.
4050 (cleanup_eh): Compute sharing map.
4051 * except.c (remove_eh_handler_and_replace): Add argument if we should
4053 (remove_unreachable_regions): Update for label sharing.
4054 (label_to_region_map): Likewise.
4055 (get_next_region_sharing_label): New function.
4056 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
4058 (remove_eh_handler): Update.
4059 (remove_eh_region_and_replace_by_outer_of): New function.
4060 * except.h (struct eh_region): Add next_region_sharing_label.
4061 (remove_eh_region_and_replace_by_outer_of,
4062 get_next_region_sharing_label): Declare.
4063 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
4065 2009-04-25 Jan Hubicka <jh@suse.cz>
4067 * tree-cfg.c (split_critical_edges): Split also edges where we can't
4068 insert code even if they are not critical.
4070 2009-04-25 Jan Hubicka <jh@suse.cz>
4072 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
4073 (gimple_can_remove_branch_p): EH edges won't remove branch by
4075 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
4076 updating of non-abnormal EH edges.
4077 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
4078 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
4079 (split_critical_edges): Split also edges where emitting code on them
4080 will lead to splitting later.
4082 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
4083 H.J. Lu <hongjiu.lu@intel.com>
4086 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
4087 the configured assembler supports fildq and fistpq mnemonics.
4088 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
4089 * configure: Regenerated.
4092 * config/i386/i386.c (print_operand): Handle 'Z'.
4093 ['z']: Remove handling of special fild/fist suffixes.
4094 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
4095 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
4096 suffix of fild insn.
4097 (*floatsi<mode>2_vector_mixed): Ditto.
4098 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
4099 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
4100 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
4101 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
4102 * config/i386/gas.h (GAS_MNEMONICS): Remove.
4104 2009-04-25 Ben Elliston <bje@au.ibm.com>
4106 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
4107 the source of a set operation.
4109 2009-04-25 Anatoly Sokolov <aesok@post.ru>
4111 * target.h (struct gcc_target): Add case_values_threshold field.
4112 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
4113 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
4114 * targhooks.c (default_case_values_threshold): New function.
4115 * targhooks.h (default_case_values_threshold): Declare function.
4116 * stmt.c (expand_case): Use case_values_threshold target hook.
4117 * expr.h (case_values_threshold): Remove declartation.
4118 * expr.c (case_values_threshold): Remove function.
4119 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
4121 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
4122 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4123 (avr_case_values_threshold): Declare as static.
4124 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
4126 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
4127 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4128 (mn10300_case_values_threshold): New function.
4130 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
4132 * ira.c (setup_cover_and_important_classes): Add enum cast.
4134 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
4136 * genpreds.c (write_enum_constraint_num): Output definition of
4137 CONSTRAINT_NUM_DEFINED_P macro.
4138 * ira.c (setup_cover_and_important_classes): Use
4139 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
4141 2009-04-24 DJ Delorie <dj@redhat.com>
4143 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
4144 __SH2A_SINGLE_ONLY__ also.
4146 2009-04-24 Steve Ellcey <sje@cup.hp.com>
4148 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
4149 (movdf_internal): Ditto.
4150 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
4151 SFmode and DFmode constants.
4152 (ia64_print_operand): Add 'G' format for printing
4153 floating point constants.
4155 2009-04-24 Richard Guenther <rguenther@suse.de>
4157 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
4158 from unsigned additions.
4160 2009-04-24 Joseph Myers <joseph@codesourcery.com>
4162 * c-typeck.c (set_init_index): Allow array designators that are
4163 not integer constant expressions with a pedwarn if pedantic.
4165 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
4167 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
4168 zero if no overlap in nonzero bits between the operands.
4170 2009-04-24 Ian Lance Taylor <iant@google.com>
4172 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
4173 (record_dead_and_set_regs): Likewise.
4174 * df.h (struct df_mw_hardreg): Change flags field to int.
4175 (struct df_base_ref): Likewise.
4176 (struct df): Change changeable_flags field to int.
4177 * df-scan.c (df_defs_record): Change clobber_flags to int.
4178 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
4179 constants rather than #define macros.
4180 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
4181 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
4182 (enum dwarf_calling_convention): Likewise.
4183 (enum dwarf_line_number_x_ops): Likewise.
4184 (enum dwarf_call_frame_info): Likewise.
4185 (enum dwarf_source_language): Likewise.
4186 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
4187 (add_calling_convention_attribute): Likewise.
4188 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
4189 (combine_comparisons): Change compcode to int. Add cast to enum type.
4190 * genrecog.c (maybe_both_true_2): Change c to int.
4191 (write_switch): Likewise. Add cast to enum type.
4192 * gimplify.c (gimplify_omp_for): Handle return values from
4193 gimplify_expr using MIN rather than bitwise or.
4194 (gimplify_expr): Add cast to enum type.
4195 * ipa-prop.c (update_jump_functions_after_inlining): Change
4196 IPA_BOTTOM to IPA_JF_UNKNOWN.
4197 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
4198 Add casts to enum type.
4199 (setup_cover_and_important_classes): Change cl to int. Add casts
4201 (setup_class_translate): Change cl and mode to int.
4202 (ira_init_once): Change mode to int.
4203 (free_register_move_costs): Likewise.
4204 (setup_prohibited_mode_move_regs): Add casts to enum type.
4205 * langhooks.c (add_builtin_function_common): Rework assertion that
4206 value fits bitfield.
4207 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
4208 * omega.c (omega_do_elimination): Avoid math on enum types.
4209 * optabs.c (expand_vec_shift_expr): Remove casts to int.
4210 * opts.c (set_debug_level): Change 2 to enum constant. Use new
4211 int local to handle integral_argment value.
4212 * regmove.c (try_auto_increment): Change PUT_MODE to
4214 * reload.c (push_secondary_reload): Add casts to enum type.
4215 (secondary_reload_class, find_valid_class): Likewise.
4216 * reload1.c (emit_input_reload_insns): Likewise.
4217 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
4218 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
4219 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
4221 * tree.c (build_common_builtin_nodes): Add casts to enum type.
4222 * tree-complex.c (complex_lattice_t): Typedef to int rather than
4224 (expand_complex_libcall): Add casts to enum type.
4225 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
4226 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
4227 with ERROR_MARK, not NUM_TREE_CODES.
4228 (vect_create_epilog_for_reduction): Likewise.
4229 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
4230 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
4231 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
4233 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
4234 vect_unused_in_loop. Change 0 to loop_vect.
4235 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
4236 * var-tracking.c (get_init_value): Change return type to enum
4238 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
4239 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
4241 (arm_override_options): Add casts to enum type.
4242 (arm_emit_tls_decoration): Likewise.
4243 * config/i386/i386.c (ix86_function_specific_restore): Add casts
4245 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
4246 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
4247 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
4249 * config/s390/s390.c (code_for_builtin_64): Change to array of
4251 (code_for_builtin_31): Likewise.
4252 (s390_expand_builtin): Change code_for_builtin to enum insn_code
4254 * config/sparc/sparc.c (sparc_override_options): Change value
4255 field in struct code_model to enum cmodel. In initializer change
4256 0 to NULL and add cast to enum type.
4258 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
4259 Change all callers. Issue a -Wc++-compat warning using
4260 lhs_origtype if necessary.
4261 (convert_for_assignment): Issue -Wc++-compat warnings about
4262 invalid conversions to enum type on assignment.
4263 * c-common.h (build_modify_expr): Update declaration.
4265 2009-04-24 Nick Clifton <nickc@redhat.com>
4267 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
4268 (function_arg_advance): Likewise.
4269 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
4272 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
4274 * config/s390/constraints.md ('I', 'J'): Fix condition.
4276 2009-04-24 Diego Novillo <dnovillo@google.com>
4278 * gengtype-parse.c (parse_error): Add newline after message.
4280 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
4282 * config/i386/sse.md (avxmodesuffixs): Removed.
4283 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
4284 (*avx_pinsr<ssevecsize>): This.
4286 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
4288 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
4289 follow chains of regs with a single definition, and allow expressions
4290 that are function_invariant_p.
4291 (simple_rhs_p): Allow expressions that are function_invariant_p.
4293 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
4296 * fold-const.c (fold_cond_expr_with_comparison): When folding
4297 > and >= to MAX, make sure the MAX uses the same type as the
4298 comparison's operands.
4300 2009-04-24 Nick Clifton <nickc@redhat.com>
4302 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
4303 addressing for DImode accesses.
4304 (frv_print_operand_address): Handle PLUS case.
4305 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
4307 2009-04-24 Jakub Jelinek <jakub@redhat.com>
4309 PR rtl-optimization/39794
4310 * alias.c (canon_true_dependence): Add x_addr argument.
4311 * rtl.h (canon_true_dependence): Adjust prototype.
4312 * cse.c (check_dependence): Adjust canon_true_dependence callers.
4313 * cselib.c (cselib_invalidate_mem): Likewise.
4314 * gcse.c (compute_transp): Likewise.
4315 * dse.c (scan_reads_nospill): Likewise.
4316 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
4317 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
4318 canon_base_addr of the group, plus optional offset.
4319 (struct group_info): Rename canon_base_mem to
4321 (get_group_info): Set canon_base_addr to canon_rtx of base, not
4322 canon_rtx of base_mem.
4324 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
4326 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
4327 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
4329 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4331 * config/spu/spu-builtins.h: Delete file.
4333 * config/spu/spu.h (enum spu_builtin_type): Move here from
4335 (struct spu_builtin_description): Likewise. Add GTY marker.
4336 Do not use enum spu_function_code or enum insn_code.
4337 (spu_builtins): Add extern declaration.
4339 * config/spu/spu.c: Do not include "spu-builtins.h".
4340 (enum spu_function_code, enum spu_builtin_type_index,
4341 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
4342 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
4343 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
4344 unsigned_V2DI_type_node): Move here from spu-builtins.h.
4345 (spu_builtin_types): Make static. Add GTY marker.
4346 (spu_builtins): Add extern declaration with GTY marker.
4349 * config/spu/spu-c.c: Do not include "spu-builtins.h".
4350 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
4351 Check programmatically whether all parameters are scalar.
4353 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
4355 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4357 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
4358 assignment from the constructor either if the target is volatile.
4360 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4362 * config/arm/arm.md (insv): Do not share operands[0].
4364 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
4366 * config/vxlib-tls.c (active_tls_threads): Delete.
4367 (delete_hook_installed): New.
4368 (tls_delete_hook): Don't delete the delete hook.
4369 (tls_destructor): Delete it here.
4370 (__gthread_set_specific): Adjust installing the delete hook.
4371 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
4372 __gthread_leave_tsd_dtor_context.
4374 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
4376 * c-format.c (gcc_tdiag_char_table): Add support for %E.
4378 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
4380 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
4382 (alpha_rtx_costs): Ditto.
4383 (emit_unlikely_jump): Use add_reg_note.
4384 (emit_frame_store_1): Ditto.
4385 (alpha_expand_prologue): Ditto.
4386 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
4387 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
4389 2009-04-23 Nick Clifton <nickc@redhat.com>
4391 * config/v850/v850.md (epilogue): Remove suppressed code.
4392 (return): Rename to return_simple and remove test of frame size.
4393 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
4394 to gen_return_simple.
4396 2009-04-22 Jing Yu <jingyu@google.com>
4399 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
4401 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4404 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
4405 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
4406 value is a VECTOR_CST, the element type is the element type of the
4409 2009-04-22 DJ Delorie <dj@redhat.com>
4411 * config/m32c/m32c.h: Update GTY annotations to new syntax.
4413 2009-04-22 Jakub Jelinek <jakub@redhat.com>
4415 * alias.c (find_base_term): Move around LO_SUM case, so that
4416 CONST falls through into PLUS/MINUS handling.
4419 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
4420 into 0, use omit_one_operand.
4422 2009-04-23 Ben Elliston <bje@au.ibm.com>
4424 * config/rs6000/linux-unwind.h (get_regs): Remove type
4425 puns. Change the type of `pc' to an array of unsigned ints and
4426 update all users. Constify frame24.
4428 2009-04-22 DJ Delorie <dj@redhat.com>
4430 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
4431 declarations before code.
4432 (current_function_special_page_vector): Likewise.
4433 (m32c_expand_insv): Silence a warning.
4435 2009-04-21 Taras Glek <tglek@mozilla.com>
4437 * alias.c: Update GTY annotations to new syntax.
4438 * basic-block.h: Likewise.
4439 * bitmap.h: Likewise.
4440 * c-common.h: Likewise.
4441 * c-decl.c: Likewise.
4442 * c-parser.c: Likewise.
4443 * c-pragma.c: Likewise.
4444 * c-tree.h: Likewise.
4445 * cfgloop.h: Likewise.
4446 * cgraph.h: Likewise.
4447 * config/alpha/alpha.c: Likewise.
4448 * config/arm/arm.h: Likewise.
4449 * config/avr/avr.h: Likewise.
4450 * config/bfin/bfin.c: Likewise.
4451 * config/cris/cris.c: Likewise.
4452 * config/darwin.c: Likewise.
4453 * config/frv/frv.c: Likewise.
4454 * config/i386/i386.c: Likewise.
4455 * config/i386/i386.h: Likewise.
4456 * config/i386/winnt.c: Likewise.
4457 * config/ia64/ia64.h: Likewise.
4458 * config/iq2000/iq2000.c: Likewise.
4459 * config/mips/mips.c: Likewise.
4460 * config/mmix/mmix.h: Likewise.
4461 * config/pa/pa.c: Likewise.
4462 * config/pa/pa.h: Likewise.
4463 * config/rs6000/rs6000.c: Likewise.
4464 * config/s390/s390.c: Likewise.
4465 * config/sparc/sparc.c: Likewise.
4466 * config/xtensa/xtensa.c: Likewise.
4467 * cselib.h: Likewise.
4468 * dbxout.c: Likewise.
4469 * dwarf2out.c: Likewise.
4470 * except.c: Likewise.
4471 * except.h: Likewise.
4472 * fixed-value.h: Likewise.
4473 * function.c: Likewise.
4474 * function.h: Likewise.
4475 * gimple.h: Likewise.
4476 * integrate.c: Likewise.
4477 * optabs.c: Likewise.
4478 * output.h: Likewise.
4481 * stringpool.c: Likewise.
4482 * tree-data-ref.c: Likewise.
4483 * tree-flow.h: Likewise.
4484 * tree-scalar-evolution.c: Likewise.
4485 * tree-ssa-address.c: Likewise.
4486 * tree-ssa-alias.h: Likewise.
4487 * tree-ssa-operands.h: Likewise.
4490 * varasm.c: Likewise.
4491 * varray.h: Likewise.
4493 * coretypes.h: Do not define GTY macro if it is already defined.
4494 * doc/gty.texi: Update GTY documentation to new syntax.
4495 * gengtype-lex.l: Enforce attribute-like syntax for GTY
4496 annotations on structs.
4497 * gengtype-parse.c: Likewise.
4499 2009-04-22 Mark Heffernan <meheff@google.com>
4501 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
4503 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
4505 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
4508 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
4510 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
4511 the same as a PLUS without a shift. Increase the cost of a
4514 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4516 * Makefile.in: Update dependencies.
4517 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
4518 * errors.h: Remove bogus comment about compatibility.
4519 (warning): Update declaration.
4520 * genautomata.c: Update all calls to warning.
4521 * gimple.c: Do not include errors.h. Include toplev.h.
4522 * tree-ssa-structalias.c: Do not include errors.h.
4523 * omega.c: Likewise.
4524 * tree-ssa-reassoc.c: Likewise.
4525 * config/spu/spu-c.c: Likewise.
4526 * config/spu/t-spu-elf: Update dependencies.
4528 2009-04-22 Richard Guenther <rguenther@suse.de>
4530 PR tree-optimization/39824
4531 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
4532 make sure the types are compatible.
4534 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4537 * c-common.c (c_parse_error): Take a token_flags parameter.
4538 Use token_type for the token type instead.
4539 Pass token_flags to cpp_type2name.
4540 * c-common.h (c_parse_error): Update declaration.
4541 * c-parser.c (c_parser_error): Pass 0 as token flags.
4543 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
4545 PR rtl-optimization/39580
4546 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
4548 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4550 * function.c (expand_function_end): Do not emit a jump to the "naked"
4551 return label for fall-through returns.
4552 * except.c (sjlj_emit_function_exit): Always place the call to the
4553 unregister function at the location installed by expand_function_end.
4555 2009-04-22 Richard Guenther <rguenther@suse.de>
4557 PR tree-optimization/39845
4558 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
4559 (gen_inbound_check): Likewise.
4561 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
4563 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
4565 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
4566 * config/vxlib.c (__gthread_once): Add race guard for PPC.
4568 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
4570 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
4571 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
4572 shift counts to avoid out-of-bounds array accesses.
4574 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
4576 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
4577 (Pmode): Move above.
4579 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
4581 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
4582 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
4583 GET_CODE macro. Use IN_RANGE macro where appropriate.
4584 * config/alpha/alpha.h: Ditto.
4585 * config/alpha/alpha.md: Ditto.
4586 * config/alpha/constraints.md: Ditto.
4587 * config/alpha/predicates.md: Ditto.
4589 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
4591 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
4592 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4593 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4594 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4595 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4596 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4597 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4598 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4599 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4600 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4601 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4602 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4603 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4604 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4605 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4606 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4607 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4608 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4609 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4610 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4611 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4612 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4613 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4614 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4615 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4616 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4617 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4619 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4621 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
4622 references from comments.
4623 * cfgbuild.c: (count_basic_blocks): Delete.
4624 (find_basic_blocks_1): Delete.
4625 (find_basic_blocks): Delete.
4626 * except.c (finish_eh_generation): Make static. Move comment from
4627 except.h here. Remove find_basic_blocks references from comments.
4628 * except.h (finish_eh_generation): Delete.
4629 * basic-block.h (find_basic_blocks): Delete.
4630 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
4632 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
4634 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
4635 (sdbout_parms): Likewise.
4637 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
4639 * config/sh/sh.c (prepare_cbranch_operands): Use
4640 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
4641 (expand_cbranchdi4): Likewise.
4642 (from_compare): Add cast to enum type.
4643 (expand_cbranchsi4): Use add_reg_note.
4644 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
4645 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
4646 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
4647 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
4648 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
4649 instead of CODE_FOR_nothing.
4650 (cbranchdi4): Likewise. Fix the order of arguments for
4652 (push_fpscr): Use add_reg_note.
4653 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
4654 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
4656 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4658 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
4659 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4660 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4661 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
4662 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
4663 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
4664 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
4665 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
4666 config/alpha/x-vms, config/arc/t-arc,
4667 config/arm/README-interworking, config/arm/arm-c.c,
4668 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
4669 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
4670 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
4671 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
4672 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
4673 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
4674 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
4675 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
4676 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
4677 config/cris/t-elfmulti, config/crx/t-crx,
4678 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
4679 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
4680 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
4681 config/h8300/t-h8300, config/i386/athlon.md,
4682 config/i386/darwin-libgcc.10.4.ver,
4683 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
4684 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
4685 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
4686 config/i386/t-linux64, config/i386/t-nwld,
4687 config/i386/t-rtems-i386, config/i386/t-sol2-10,
4688 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
4689 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
4690 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
4691 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
4692 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
4693 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
4694 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
4695 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
4696 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
4697 config/m68k/t-uclinux, config/mcore/t-mcore,
4698 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
4699 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
4700 config/mips/crtn.asm, config/mips/irix-crti.asm,
4701 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
4702 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
4703 config/mips/mips-fixed.md, config/mips/sb1.md,
4704 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
4705 config/mips/t-iris6, config/mips/t-isa3264,
4706 config/mips/t-libgcc-mips16, config/mips/t-linux64,
4707 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
4708 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
4709 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
4710 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
4711 config/mn10300/t-linux, config/mn10300/t-mn10300,
4712 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
4713 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
4714 config/picochip/libgccExtras/clzsi2.asm,
4715 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
4716 config/rs6000/darwin-libgcc.10.4.ver,
4717 config/rs6000/darwin-libgcc.10.5.ver,
4718 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
4719 config/rs6000/t-aix43, config/rs6000/t-aix52,
4720 config/rs6000/t-darwin, config/rs6000/t-fprules,
4721 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
4722 config/rs6000/t-lynx, config/rs6000/t-netbsd,
4723 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
4724 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
4725 config/rs6000/t-rtems, config/rs6000/t-spe,
4726 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
4727 config/score/t-score-elf, config/sh/divcost-analysis,
4728 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
4729 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
4730 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
4731 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
4732 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
4733 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
4734 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
4735 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
4736 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
4737 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
4738 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
4739 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
4740 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
4741 limitx.h, version.c, xcoff.h: Add copyright and license notices.
4742 * config/h8300/genmova.sh: Include copyright and license notices
4743 in generated output.
4744 * config/h8300/mova.md: Regenerate.
4745 * doc/install.texi2html: Include word "Copyright" in copyright
4746 notice and use name "Free Software Foundation, Inc.".
4747 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4748 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4749 ChangeLog-2007, ChangeLog-2008: Correct dates.
4751 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4753 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
4754 NE_EXPR operations as well.
4755 * c-parser.c (c_parser_condition): Do not set location information on
4757 (c_parser_conditional_expression): Likewise.
4758 (c_parser_binary_expression): Set location information on operators.
4759 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
4760 TRUTH_NOT_EXPR has been folded.
4761 * fold-const.c (fold_truth_not_expr): Copy location information from
4762 the incoming expression to the outgoing one.
4763 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
4764 recursive calls on the LHS of the operator but pass that of the
4765 operator to recursive calls on the RHS of the operator. Set it
4767 (shortcut_cond_expr): Set the locus of the operator on the second
4768 COND_EXPR and that of the expression on the first in degenerate cases.
4769 Pass the locus of the expression to calls to shortcut_cond_r.
4770 Set the locus of the 'then' block on the associated jump, if any.
4771 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
4772 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
4773 expression to call to gimplify_boolean_expr.
4775 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
4777 * config.gcc: Add additional configuration for
4778 i686-w64-mingw* and x86_64-w64-mingw* triplet.
4779 * config/i386/mingw-w64.h: New mingw-w64 specific header.
4780 (CPP_SPEC): Redefine for allowing -municode option.
4781 (STARTFILE_SPEC): Likewise.
4782 * config/i386/t-mingw-w64: New.
4783 * config/i386/mingw-w64.opt: New.
4784 (municode): Add new target option.
4785 * doc/invoke.texi (municode): Add documentation for new option.
4787 2009-04-21 Ian Lance Taylor <iant@google.com>
4789 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4790 Correct test for number of arguments.
4791 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
4793 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
4795 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
4796 argument of emit_library_call.
4798 2009-04-21 Richard Guenther <rguenther@suse.de>
4801 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
4802 inside VIEW_CONVERT_EXPRs.
4804 2009-04-21 Martin Jambor <mjambor@suse.cz>
4806 * tree-switch-conversion.c (build_constructors): Split a long line.
4807 (constructor_contains_same_values_p): New function.
4808 (build_one_array): Create assigns of constants if possible, do not
4809 call mark_sym_for_renaming, call update_stmt.
4810 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
4811 make_rename_temp. Do not call mark_symbols_for_renaming, call
4813 (gen_def_assigns): Do not call mark_symbols_for_renaming or
4814 find_new_referenced_vars, call update_stmt.
4815 (gen_inbound_check): Use create_tmp_var and create ssa names manually
4816 instead of calling make_rename_temp. Do not call
4817 find_new_referenced_vars or mark_symbols_for_renaming, call
4820 2009-04-21 Richard Guenther <rguenther@suse.de>
4822 PR tree-optimization/39827
4823 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
4824 (tree_ssa_phiprop): Pass the correct array size.
4826 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
4828 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
4830 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4833 * c-typeck.c (lvalue_p): Move declaration ...
4834 * c-common.h (lvalue_p): ... to here.
4835 * c-common.c (candidate_equal_p): New.
4836 (add_tlist): Use it.
4837 (merge_tlist): Use it.
4838 (warn_for_collisions_1): Likewise.
4839 (warning_candidate_p): Accept more candidates.
4840 (verify_tree): A warning candidate can be an expression. Use
4843 2009-04-21 Ben Elliston <bje@au.ibm.com>
4846 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4847 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
4848 options. Remove -mcall-solaris documentation.
4850 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4853 * doc/invoke.texi (-Wlong-long): Update description.
4854 * c-lex (interpret_integer): Only warn if there was no previous
4855 overflow and -Wlong-long is enabled.
4856 * c-decl.c (declspecs_add_type): Drop redundant flags.
4857 * c.opt (Wlong-long): Init to -1.
4858 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
4859 and front-end warn_long_long. Wlong-long only depends on other
4860 flags if it is uninitialized.
4861 * c-parser.c (disable_extension_diagnostics): warn_long_long is
4862 the same for CPP and FE.
4863 (restore_extension_diagnostics): Likewise.
4865 2009-04-20 Ian Lance Taylor <iant@google.com>
4867 Fix enum conversions which are invalid in C++:
4868 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
4869 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
4870 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
4871 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
4872 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
4873 (dbxout_parms): Likewise.
4874 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
4875 (df_clear_flags): Likewise.
4876 * df-problems.c (df_rd_bb_local_compute_process_def): Change
4877 top_flag parameter to int.
4878 (df_chain_create_bb_process_use): Likewise.
4879 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
4881 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
4882 (df_ref_create_structure, df_def_record_1): Likewise.
4883 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
4884 (df_notes_rescan): Change 0 to VOIDmode in function call.
4885 (df_get_call_refs, df_insn_refs_collect): Likewise.
4886 (df_bb_regs_collect): Likewise.
4887 (df_entry_block_defs_collect): Likewise.
4888 (df_exit_block_uses_collect): Likewise.
4889 * df.h: Update declarations.
4890 * double-int.c (double_int_divmod): Add cast to enum type.
4891 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
4892 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
4893 (based_loc_descr): Likewise.
4894 (loc_descriptor_from_tree_1): Change first_op and second_op to
4895 enum dwarf_location_atom. Add cast to enum type.
4896 * expmed.c (init_expmed): Change 0 to SET in function call.
4897 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
4898 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
4899 (do_store_flag): Likewise.
4900 * fixed-value.h (struct fixed_value): Change mode to enum
4902 * function.c (assign_parms): Change 0 to VOIDmode in function call.
4903 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
4905 (insert_insn_decl, insert_decl, insert_state): Likewise.
4906 (automata_list_finish): Likewise.
4907 * genrecog.c (process_define_predicate): Add cast to enum type.
4908 * gensupport.c (init_predicate_table): Add cast to enum type.
4909 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
4911 (gimple_build_call_1, gimple_build_label): Likewise.
4912 (gimple_build_goto, gimple_build_asm_1): Likewise.
4913 (gimple_build_switch_1, gimple_build_cdt): Likewise.
4914 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
4915 (enum fallback): Rename from enum fallback_t.
4916 (fallback_t): Typedef as int.
4917 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
4918 GSI_SAME_STMT in function call.
4919 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
4921 (setup_reg_class_relations): Likewise.
4922 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
4923 (setup_prohibited_class_mode_regs): Add cast to enum type.
4924 (setup_prohibited_mode_move_regs): Likewise.
4925 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
4926 (record_address_regs): Change i to enum reg_class.
4927 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
4928 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
4929 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
4930 (GET_MODE_2XWIDER_MODE): Likewise.
4931 (GET_CLASS_NARROWEST_MODE): Likewise.
4932 * omp-low.c (expand_omp_for): Add cast to enum type.
4933 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
4934 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
4935 * postreload.c (reload_cse_simplify_operands): Change rclass local
4937 * predict.c (combine_predictions_for_insn): Change best_predictor
4938 and predictor to enum br_predictor.
4939 (combine_predictions_for_bb): Likewise.
4940 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
4941 use SET_PREDICT_EXPR_OUTCOME.
4942 * real.c (real_arithmetic): Change icode to code in function call.
4943 * reginfo.c (init_move_cost): Add casts to enum type.
4944 (init_reg_sets_1, init_fake_stack_mems): Likewise.
4945 * regmove.c (regclass_compatible_p): Change class0 and class1 to
4947 * reload.c (find_valid_class): Add casts to enum type.
4948 (push_reload): Change 0 to NO_REGS in function call.
4949 (find_reloads): Change this_alternative to array of enum
4950 reg_class. Remove some now-unnecessary casts.
4951 (make_memloc): Change 0 to VOIDmode in function call.
4952 * reload1.c (reload): Change 0 to VOIDmode in function call.
4953 (eliminate_regs_1, elimination_effects): Likewise.
4954 (eliminate_regs_in_insn): Likewise.
4955 (emit_input_reload_insns): Add cast to enum type.
4956 (delete_output_reload): Change 0 to VOIDmode in function call.
4957 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
4958 to enum type in function call.
4959 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
4960 (SET_PREDICT_EXPR_OUTCOME): Define.
4961 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
4962 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
4963 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
4964 (dump_function): Likewise.
4965 * tree-dump.h: Update declarations.
4966 * tree-pass.h: Update declarations.
4967 * varasm.c (assemble_integer): Change mclass to enum mode_class.
4968 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
4970 (arm_rtx_costs_1): Correct parenthesization.
4971 (arm_rtx_costs): Add casts to enum type.
4972 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
4973 (vfp_emit_fstmd): Use add_rg_note.
4974 (emit_multi_reg_push, emit_sfm): Likewise.
4975 (thumb_set_frame_pointer): Likewise.
4976 (arm_expand_prologue): Likewise.
4977 (arm_regno_class): Change return type to enum reg_class.
4978 (thumb1_expand_prologue): Use add_reg_note.
4979 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
4980 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
4982 * config/arm/gentune.sh: Add cast to enum type.
4983 * config/arm/arm-tune.md: Rebuild.
4984 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
4985 (ix86_split_fp_branch, predict_jump): Likewise.
4986 (ix86_expand_multi_arg_builtin): Change sub_code from enum
4987 insn_code to enum rtx_code.
4988 (ix86_builtin_vectorized_function): Add cast to enum type.
4989 * config/i386/i386.md (truncdfsf2): Change slot to enum
4991 (truncxf<mode>2, isinf<mode>2): Likewise.
4992 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
4994 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
4995 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
4996 (insert_bundle_state): Change 1 to INSERT in function call.
4997 (ia64_add_bundle_selector_before): Likewise.
4998 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
4999 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
5000 (restore_stack_nonlocal): Likewise.
5001 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
5003 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
5005 (mips_rtx_costs): Likewise.
5006 (mips_override_options): Add casts to enum type.
5007 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
5009 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
5010 (store_reg, set_reg_plus_d): Likewise.
5011 (hppa_expand_prologue, hppa_profile_hook): Likewise.
5012 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
5014 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
5016 (emit_unlikely_jump): Use add_reg_note.
5017 (rs6000_emit_allocate_stack): Likewise.
5018 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
5019 (output_toc): Change 1 to INSERT in function call.
5020 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
5021 (rs6000_initialize_trampoline): Likewise.
5022 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
5024 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
5025 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
5026 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
5027 (save_gprs): Use add_reg_note.
5028 (s390_emit_prologue): Likewise.
5029 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
5030 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
5031 (sparc_fold_builtin): Add cast to enum type.
5032 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
5034 (spu_expand_prologue): Use add_reg_note.
5035 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
5037 2009-04-20 Ian Lance Taylor <iant@google.com>
5039 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
5040 (c_parser_postfix_expression_after_primary): Get VEC for list of
5041 arguments. Get original types of arguments. Call
5042 build_function_call_vec.
5043 (cached_expr_list_1, cached_expr_list_2): New static variables.
5044 (c_parser_expr_list): Change return type to VEC *. Add
5045 p_orig_types parameter. Change all callers.
5046 (c_parser_release_expr): New static function.
5047 (c_parser_vec_to_tree_list): New static function.
5048 * c-typeck.c (build_function_call): Rewrite to build a VEC and
5049 call build_function_call_vec.
5050 (build_function_call_vec): New function, based on old
5051 build_function_call.
5052 (convert_arguments): Remove nargs and argarray parameters. Change
5053 values to a VEC. Add origtypes parameter.
5054 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
5055 (convert_for_assignment): Add origtype parameter. Change all
5056 callers. If warn_cxx_compat, check for conversion to an enum
5057 type when calling a function.
5058 (store_init_value): Add origtype parameter. Change all callers.
5059 (digest_init): Likewise.
5060 (struct init_node): Add origtype field.
5061 (add_pending_init): Add origtype parameter. Change all callers.
5062 (output_init_element): Likewise.
5063 (output_pending_init_elements): Pass origtype from init_node to
5064 output_init_element.
5065 (process_init_element): Pass origtype from c_expr to
5066 output_init_element.
5067 (c_finish_return): Add origtype parameter. Change all callers.
5068 * c-common.c (sync_resolve_size): Change params to VEC *. Change
5070 (sync_resolve_params): Likewise.
5071 (sync_resolve_return): Change params to first_param. Change caller.
5072 (resolve_overloaded_builtins): Change params to VEC *. Change
5073 callers. Save first parameter around call to build_function_call_vec.
5074 * c-decl.c (finish_decl): Add origtype parameter. Change all
5075 callers. Call build_function_call_vec rather than
5076 build_function_call for cleanup.
5077 * c-tree.h: Update declarations.
5078 * c-common.h: Update declarations.
5079 * stub-objc.c (objc_rewrite_function_call): Change parameter from
5080 params to first_param.
5081 * target.h (struct gcc_target): Change resolve_overloaded_builtin
5082 params parameter from tree to void *.
5083 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5084 Change arglist parameter to have type void *, and to be a pointer
5086 * config/rs6000/rs6000-protos.h
5087 (altivec_resolve_overloaded_builtin): Update declaration.
5088 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
5089 fnargs parameter to have type void *, and to be a pointer to a
5090 VEC. Call build_function_call_vec instead of
5091 build_function_call.
5092 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
5094 2009-04-20 Joey Ye <joey.ye@intel.com>
5095 Xuepeng Guo <xuepeng.guo@intel.com>
5096 H.J. Lu <hongjiu.lu@intel.com>
5098 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
5100 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
5101 (IX86_LEA_PRIORITY): Likewise.
5102 (distance_non_agu_define): New function.
5103 (distance_agu_use): Likewise.
5104 (ix86_lea_for_add_ok): Likewise.
5105 (ix86_dep_by_shift_count): Likewise.
5107 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
5108 should split for LEA.
5110 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
5112 (ix86_dep_by_shift_count): Likewise.
5114 2009-04-20 Richard Guenther <rguenther@suse.de>
5116 * expr.c (handled_component_p): Move ...
5117 * tree.h (handled_component_p): ... here.
5118 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
5119 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
5120 and REALPART_EXPR to be in one group.
5122 2009-04-20 Richard Guenther <rguenther@suse.de>
5124 * basic-block.h (get_all_dominated_blocks): Declare.
5125 * dominance.c (get_all_dominated_blocks): New function.
5126 * tree-cfg.c (get_all_dominated_blocks): Remove.
5127 (remove_edge_and_dominated_blocks): Adjust.
5128 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
5129 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
5130 instead of recursing.
5132 2009-04-20 Doug Kwan <dougkwan@google.com>
5134 * cgraph.h (cgraph_node_ptr): New type for vector functions.
5135 (struct cgraph_node_set_def): New type.
5136 (cgraph_node_set) New type. Also declare vector functions.
5137 (struct cgraph_node_set_element_def): New type.
5138 (cgraph_node_set_element): Ditto.
5139 (cgraph_node_set_iterator): New iterator type.
5140 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
5141 cgraph_node_set_remove, dump_cgraph_node_set,
5142 debug_cgraph_node_set): New prototypes.
5143 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
5144 cgraph_node_set_size): New inlines.
5145 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
5147 (struct ipa_opt_pass): Add struct cgraph_node_set_def
5148 argument to function 'write_summary'.
5149 * ipa.c: Include ggc.h.
5150 (hash_cgraph_node_set_element,
5151 eq_cgraph_node_set_element, cgraph_node_set_new,
5152 cgraph_node_set_add, cgraph_node_set_remove,
5153 cgraph_node_set_find, dump_cgraph_node_set,
5154 debug_cgraph_node_set): New functions.
5155 * Makefile.in (ipa.o): Add dependency on GGC_H.
5157 2009-04-20 Ira Rosen <irar@il.ibm.com>
5159 PR tree-optimization/39675
5160 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
5161 check of the return code of vect_schedule_slp. Check that
5162 stmt_vec_info still exists for the statement, before checking its
5165 2009-04-20 Michael Matz <matz@suse.de>
5167 * Makefile.in (generated_files): Take out $(simple_generated_c).
5169 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
5171 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
5172 (UINTPTR_TYPE): Likewise.
5174 2009-04-19 Joseph Myers <joseph@codesourcery.com>
5177 * c-typeck.c (digest_init): Check for initializing an array with a
5180 2009-04-19 Joseph Myers <joseph@codesourcery.com>
5183 * c-semantics.c (pop_stmt_list): Propagate
5184 STATEMENT_LIST_HAS_LABEL to parent statement list.
5186 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
5188 * config/mips/mips.h (mips_tune_attr): New macro.
5189 * config/mips/mips.md (cpu): Use it.
5191 2009-04-19 Joseph Myers <joseph@codesourcery.com>
5194 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
5197 2009-04-19 Diego Novillo <dnovillo@google.com>
5199 * toplev.c (compile_file): Move call to coverage_finish ...
5200 * cgraphunit.c (ipa_passes): ... here.
5201 Call cgraph_process_new_functions.
5202 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
5203 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
5205 2009-04-19 Jan Hubicka <jh@suse.cz>
5207 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
5209 (dump_cgraph_node): Dump can throw external flag.
5210 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
5212 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5216 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
5217 * common.opt (Wlogical-op): Move from here...
5218 * c.opt (Wlogical-op): ... to here.
5219 * c-typeck.c (parser_build_binary_op): Update call to
5220 warn_logical_operator.
5221 * c-opts.c (c_common_post_options): Enable warn_logical_op with
5223 * c-common.c (warn_logical_op): Update.
5224 * c-common.h (warn_logical_op): Update declaration.
5226 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5228 * tree.c (protected_set_expr_location): Fix formatting.
5230 2009-04-18 Joseph Myers <joseph@codesourcery.com>
5233 * c-typeck.c (readonly_warning): new.
5234 (build_unary_op, build_modify_expr): Use readonly_warning for
5235 storing into something readonly but not const-qualified.
5237 2009-04-18 Joseph Myers <joseph@codesourcery.com>
5240 * c-typeck.c (build_unary_op): Check for taking address of
5241 expression of type void.
5243 2009-04-18 Joseph Myers <joseph@codesourcery.com>
5246 * c-typeck.c (build_function_call): Check for calling a function
5247 with qualified void return types. Call require_complete_type when
5250 2009-04-18 Jan Hubicka <jh@suse.cz>
5252 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
5254 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
5255 can_throw_external flag.
5256 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
5257 * ipa-pure-const.c (ignore_edge): New function.
5258 (propagate): Compute order for NOTHROW computation; set NOTHROWs
5259 only over can_throw_external edges.
5260 (local_pure_const): Add nothrow flag.
5261 * ipa-utils.c (searchc): Add ignore_edge callback.
5262 (ipa_utils_reduced_inorder): Add ignore_edge callback.
5263 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
5264 (set_nothrow_function_flags): Update cgraph.
5265 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
5267 2009-04-18 Richard Guenther <rguenther@suse.de>
5270 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
5271 (fold_stmt): ... this and ...
5272 (fold_stmt_inplace): ... this.
5273 (fold_stmt_1): Fold references in calls and asms.
5274 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
5276 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
5278 * tree-vrp.c (ssa_name_nonzero_p): Remove.
5279 * tree.h: Remove the prototype for ssa_name_nonzero_p.
5281 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
5283 * tree.c (function_args_count): Remove.
5284 * tree.h: Remove the prototype for function_args_count.
5286 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
5288 * tree-iterator.c (expr_only): Remove.
5289 * tree.h: Remove the prototype for expr_only.
5291 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
5293 * reginfo.c (cannot_change_mode_set_regs): Remove.
5294 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
5296 2009-04-08 Anatoly Sokolov <aesok@post.ru>
5298 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
5299 whether operands 0 and 1 overlaps.
5301 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5304 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
5305 pointer. Use warning_at instead of warning.
5306 (search_for_addr_array): Likewise.
5307 (check_array_bounds): Likewise.
5308 (check_all_array_refs): Check that the incoming edge is not in the
5309 list of edges to be removed.
5310 (check_all_array_refs): Avoid the temporal pointer.
5311 (vrp_visit_cond_stmt): Fix typo.
5312 (simplify_switch_using_ranges): Handle the case where the switch
5313 index is an integer constant.
5315 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
5317 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
5319 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
5321 * doc/extend.texi, doc/invoke.texi: Fix typos.
5323 2009-04-17 Cary Coutant <ccoutant@google.com>
5325 * tree-flow-inline.h (get_lineno): Fix inverted test.
5327 2009-04-17 Diego Novillo <dnovillo@google.com>
5329 * tree-ssa-pre.c (create_expression_by_pieces): Remove
5330 assertion for AVAIL_OUT.
5332 2009-04-17 Mike Frysinger <vapier@gentoo.org>
5335 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
5336 * config/sh/linux-atomic.asm: Likewise.
5338 2009-04-17 Diego Novillo <dnovillo@google.com>
5340 * except.c (debug_eh_tree): New.
5341 (struct eh_region, struct eh_status): Move ...
5342 * except.h: ... here.
5343 (add_type_for_runtime): Declare extern.
5344 (lookup_type_for_runtime): Likewise.
5345 (debug_eh_tree): Declare.
5346 * Makefile.in (GTFILES): List except.h before except.c
5348 2009-04-17 Diego Novillo <dnovillo@google.com>
5350 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
5351 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5352 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
5353 (find_vars_r): ... here.
5354 * tree-flow.h (find_referenced_vars_in): Declare.
5355 * tree-ssa-pre.c (create_expression_by_pieces): Assert
5356 that AVAIL_OUT exists for BLOCK.
5357 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
5358 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
5359 (tree-parloops.o): Likewise.
5361 2009-04-17 Simon Baldwin <simonb@google.com>
5363 * toplev.c (default_tree_printer): Add handling for %E format.
5365 2009-04-17 Diego Novillo <dnovillo@google.com>
5367 * tree-pretty-print.c (dump_generic_node): Add break after
5368 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
5369 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
5370 FUNCTION_TYPE together. Call print_struct_decl when printing
5371 structures and TDF_SLIM is not given.
5372 (print_struct_decl): Fix logic for detecting recursion.
5374 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
5377 * gcc.c (create_at_file): New.
5378 (compile_input_file_p): New.
5379 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
5380 * main.c (main): Update call to toplev_main.
5381 * toplev.c (toplev_main): Change signature. Call expandargv.
5382 * toplev.h (toplev_main): Change signature.
5384 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5386 * dwarf2out.c (field_byte_offset): Use the type size as the field size
5387 if the latter is not constant.
5389 2009-04-17 David Edelsohn <edelsohn@gnu.org>
5391 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
5393 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5395 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
5396 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
5398 2009-04-17 Richard Guenther <rguenther@suse.de>
5400 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5401 Handle component references view-converting an invariant address.
5403 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
5405 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
5406 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
5407 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
5408 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
5409 Use @deftypevr rather than @deftypevar.
5411 2009-04-17 Richard Guenther <rguenther@suse.de>
5413 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
5414 (get_prop_source_stmt): Likewise.
5415 (can_propagate_from): Likewise.
5417 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
5419 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
5420 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
5421 (--with-multilib-list): Add default value.
5422 * configure: Regenerate.
5423 * Makefile.in (TM_ENDIAN_CONFIG): Define.
5424 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
5425 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
5426 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
5427 Don't add default cpu to multilib list unnecessarily, but do enable
5428 the relevant compiler option..
5429 Add support for --with-multilib-list=<blank> and
5430 --with-multilib-list=!<somelib> to supress unwanted multilibs.
5431 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
5432 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
5433 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
5435 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
5436 (MULTILIB_OSDIRNAMES): New variable.
5437 * config/sh/t-1e: Delete file.
5438 * config/sh/t-mlib-sh1: Delete file.
5439 * config/sh/t-mlib-sh2: Delete file.
5440 * config/sh/t-mlib-sh2a: Delete file.
5441 * config/sh/t-mlib-sh2a-nofpu: Delete file.
5442 * config/sh/t-mlib-sh2a-single: Delete file.
5443 * config/sh/t-mlib-sh2a-single-only: Delete file.
5444 * config/sh/t-mlib-sh2e: Delete file.
5445 * config/sh/t-mlib-sh3e: Delete file.
5446 * config/sh/t-mlib-sh4: Delete file.
5447 * config/sh/t-mlib-sh4-nofpu: Delete file.
5448 * config/sh/t-mlib-sh4-single: Delete file.
5449 * config/sh/t-mlib-sh4-single-only: Delete file.
5450 * config/sh/t-mlib-sh4a: Delete file.
5451 * config/sh/t-mlib-sh4a-nofpu: Delete file.
5452 * config/sh/t-mlib-sh4a-single: Delete file.
5453 * config/sh/t-mlib-sh4a-single-only: Delete file.
5454 * config/sh/t-mlib-sh4al: Delete file.
5455 * config/sh/t-mlib-sh5-32media: Delete file.
5456 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
5457 * config/sh/t-mlib-sh5-64media: Delete file.
5458 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
5459 * config/sh/t-mlib-sh5-compact: Delete file.
5460 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
5461 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
5462 * doc/install.texi (Options specification): Add
5463 --with-multilib-list and --with-endian.
5465 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
5467 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
5469 (OBJS-common): Add plugin-version.o.
5470 (plugin-version.o): New.
5471 * gcc-plugin.h (plugin_gcc_version): New.
5472 (plugin_default_version_check): New.
5473 (plugin_init_func, plugin_init): Add version argument.
5474 * plugin-version.c: New.
5475 * plugin.c (str_plugin_gcc_version_name): New.
5476 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
5477 pass it to the init function.
5478 (plugin_default_version_check): New.
5480 2009-04-17 Richard Guenther <rguenther@suse.de>
5482 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
5483 for decl-vs-decl disambiguation.
5485 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5487 * config/s390/s390.h (s390_tune_attr): New macro definition.
5488 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
5490 2009-04-17 Richard Guenther <rguenther@suse.de>
5492 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
5493 (fold_stmt_r): Likewise.
5494 (maybe_fold_reference): New function.
5495 (fold_gimple_assign): Handle cases fold_stmt_r did.
5496 (fold_stmt): Do not use fold_stmt_r.
5497 (fold_stmt_inplace): Likewise.
5499 2009-04-17 Richard Guenther <rguenther@suse.de>
5501 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
5502 (record_equivalences_from_stmt): Remove useless checks and
5504 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
5505 the type is already suitable.
5507 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
5509 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
5511 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
5513 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
5514 (CMPtype): Define as __gcc_CMPtype.
5516 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
5518 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
5519 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
5521 2009-04-17 Richard Guenther <rguenther@suse.de>
5523 PR tree-optimization/39746
5524 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
5525 special-casing for builtins and static variable use/def.
5526 (call_may_clobber_ref_p_1): Likewise.
5528 2009-04-16 Ian Lance Taylor <iant@google.com>
5530 * df.h: Include "timevar.h".
5531 (struct df_problem): Change tv_id field to timevar_id_t.
5532 * tree-pass.h: Include "timevar.h".
5533 (struct opt_pass): Change tv_id field to timevar_id_t.
5534 * timevar.h (timevar_id_t): Define TV_NONE.
5535 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
5536 TV_NONE rather than tv_id != 0.
5537 (execute_one_pass): Likewise.
5538 * Makefile.in (DF_H): Add $(TIMEVAR_H).
5539 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
5540 dependencies to $(TREE_PASS_H).
5541 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
5543 (pass_branch_target_load_optimize2): Likewise.
5544 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
5545 (pass_outof_cfg_layout_mode): Likewise.
5546 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
5547 (pass_rebuild_cgraph_edges): Likewise.
5548 (pass_remove_cgraph_callee_edges): Likewise.
5549 * df-core.c (pass_df_initialize_opt): Likewise.
5550 (pass_df_initialize_no_opt): Likewise.
5551 (pass_df_finish): Likewise.
5552 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5553 * except.c (pass_set_nothrow_function_flags): Likewise.
5554 (pass_convert_to_eh_region_ranges): Likewise.
5555 * final.c (pass_compute_alignments): Likewise.
5556 * function.c (pass_instantiate_virtual_regs): Likewise.
5557 (pass_init_function): Likewise.
5558 (pass_leaf_regs): Likewise.
5559 (pass_match_asm_constraints): Likewise.
5560 * gimple-low.c (pass_lower_cf): Likewise.
5561 (pass_mark_used_blocks): Likewise.
5562 * init-regs.c (pass_initialize_regs): Likewise.
5563 * integrate.c (pass_initial_value_sets): Likewise.
5564 * ira.c (pass_ira): Likewise.
5565 * jump.c (pass_cleanup_barriers): Likewise.
5566 * omp-low.c (pass_expand_omp): Likewise.
5567 (pass_lower_omp): Likewise.
5568 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
5569 * recog.c (pass_split_all_insns): Likewise.
5570 (pass_split_after_reload): Likewise.
5571 (pass_split_before_regstack): Likewise.
5572 (pass_split_before_sched2): Likewise.
5573 (pass_split_for_shorten_branches): Likewise.
5574 * reginfo.c (pass_reginfo_init): Likewise.
5575 (pass_subregs_of_mode_init): Likewise.
5576 (pass_subregs_of_mode_finish): Likewise.
5577 * passes.c (pass_postreload): Likewise.
5578 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
5579 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
5580 (pass_warn_function_return): Likewise.
5581 (pass_warn_function_noreturn): Likewise.
5582 * tree-complex.c (pass_lower_complex): Likewise.
5583 (pass_lower_complex_O0): Likewise.
5584 * tree-if-conv.c (pass_if_conversion): Likewise.
5585 * tree-into-ssa.c (pass_build_ssa): Likewise.
5586 * tree-mudflap.c (pass_mudflap_1): Likewise.
5587 (pass_mudflap_2): Likewise.
5588 * tree-nomudflap.c (pass_mudflap_1): Likewise.
5589 (pass_mudflap_2): Likewise.
5590 * tree-nrv.c (pass_return_slot): Likewise.
5591 * tree-object-size.c (pass_object_sizes): Likewise.
5592 * tree-optimize.c (pass_all_optimizations): Likewise.
5593 (pass_early_local_passes): Likewise.
5594 (pass_all_early_optimizations): Likewise.
5595 (pass_cleanup_cfg): Likewise.
5596 (pass_cleanup_cfg_post_optimizing): Likewise.
5597 (pass_free_datastructures): Likewise.
5598 (pass_free_cfg_annotations): Likewise.
5599 (pass_fixup_cfg): Likewise.
5600 (pass_init_datastructures): Likewise.
5601 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
5602 (pass_late_warn_uninitialized): Likewise.
5603 (pass_update_address_taken): Likewise.
5604 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
5605 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
5606 (pass_cse_sincos): Likewise.
5607 (pass_convert_to_rsqrt): Likewise.
5608 * tree-ssa-structalias.c (pass_build_alias): Likewise.
5609 * tree-stdarg.c (pass_stdarg): Likewise.
5610 * tree-tailcall.c (pass_tail_recursion): Likewise.
5611 (pass_tail_calls): Likewise.
5612 * tree-vect-generic.c (pass_lower_vector): Likewise.
5613 (pass_lower_vector_ssa): Likewise.
5614 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
5616 2009-04-16 Joseph Myers <joseph@codesourcery.com>
5618 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
5620 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
5622 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
5623 logical and signext.
5625 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
5628 * config/sh/predicates.md (arith_operand): Check if the operand
5629 of TRUNCATE is a REG.
5631 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5633 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
5634 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
5636 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5638 * tree-iterator.c (tsi_split_statement_list_after,
5639 tsi_split_statement_list_before): Remove.
5640 * tree-iterator.h: Remove the prototypes for
5641 tsi_split_statement_list_after and tsi_split_statement_list_before.
5643 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5645 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
5646 * tree-ssa-propagate.h: Remove the prototype for
5647 stmt_makes_single_load.
5649 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5651 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
5652 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
5654 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5656 * tree-iterator.c (EXPR_LAST_BODY): Remove.
5658 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5660 * except.c (eh_region_outer_p): Remove.
5661 * except.h: Remove the prototype for eh_region_outer_p.
5663 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
5665 * function.c (current_function_assembler_name): Remove.
5666 * function.h: Remove the prototype for
5667 current_function_assembler_name.
5669 2009-04-16 Ian Lance Taylor <iant@google.com>
5671 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
5672 (add_reg_note): Call alloc_reg_note.
5673 * rtl.h (alloc_reg_note): Declare.
5674 * combine.c (try_combine): Use alloc_reg_note.
5675 (recog_for_combine, move_deaths): Likewise.
5676 (distribute_notes): Use alloc_reg_note and add_reg_note.
5677 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
5678 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
5679 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
5681 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
5683 PR rtl-optimization/39762
5684 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
5685 ira_may_move_out_cost): Add comments about way of their usage.
5686 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
5688 * ira-conflicts.c (process_regs_for_copy): Use function
5689 ira_get_register_move_cost instead of global
5690 ira_register_move_cost.
5692 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
5693 color_pass, move_spill_restore, update_curr_costs): Ditto.
5695 * ira-lives.c (process_single_reg_class_operands): Ditto.
5697 * ira-emit.c (emit_move_list): Ditto.
5699 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
5700 (record_reg_classes): Ditto. Use functions
5701 ira_get_register_move_cost and ira_get_may_move_cost instead of
5702 global vars ira_register_move_cost, ira_may_move_out_cost and
5703 ira_may_move_in_cost.
5704 (record_address_regs): Don't call ira_init_register_move_cost.
5705 Use function ira_get_may_move_cost instead of global
5706 ira_may_move_in_cost.
5707 (process_bb_node_for_hard_reg_moves): Use function
5708 ira_get_register_move_cost instead of global ira_register_move_cost.
5709 (ira_costs): Don't call ira_init_register_move_cost.
5711 2009-04-16 Richard Guenther <rguenther@suse.de>
5713 * tree-cfg.c (verify_gimple_assign_binary):
5714 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
5715 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
5716 (create_general_new_stmt): Note that this function is broken.
5718 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
5720 * common.opt (fhelp): Add Var(help_flag).
5721 * gcc-plugin.h (plugin_info): Add help.
5722 * plugin.c (plugin_name_args): Add help.
5723 (register_plugin_info): Set plugin->help.
5724 (print_help_one_plugin): New.
5725 (print_plugins_help): New.
5726 * plugin.h (print_plugins_help): New.
5727 * toplev.c (toplev_main): Call print_plugins_help if needed.
5729 2009-04-16 Richard Guenther <rguenther@suse.de>
5731 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
5732 (gimple_ior_addresses_taken_1): New function.
5733 (gimple_ior_addresses_taken): Likewise.
5734 * gimple.h (struct gimple_statement_with_ops_base): Remove
5735 addresses_taken member.
5736 (gimple_ior_addresses_taken): Declare.
5737 (gimple_addresses_taken, gimple_addresses_taken_ptr,
5738 gimple_set_addresses_taken): Remove.
5739 * ipa-reference.c (mark_address): New function.
5740 (scan_stmt_for_static_refs): Use it for marking addresses taken.
5741 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
5742 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
5743 (gimple_add_to_addresses_taken): Remove.
5744 (get_tmr_operands): Call mark_address_taken.
5745 (get_asm_expr_operands): Likewise.
5746 (get_expr_operands): Likewise.
5747 (build_ssa_operands): Do not clear the addresses_taken bitmap.
5748 (free_stmt_operands): Do not free it.
5749 * tree-ssa.c (delete_tree_ssa): Likewise.
5750 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
5752 2009-04-16 Richard Guenther <rguenther@suse.de>
5754 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
5755 (walk_stmt_load_store_ops): Likewise.
5756 * gimple.c (get_base_loadstore): New function.
5757 (walk_stmt_load_store_addr_ops): Likewise.
5758 (walk_stmt_load_store_ops): Likewise.
5759 * ipa-pure-const.c (check_op): Simplify.
5760 (check_load, check_store): New functions.
5761 (check_stmt): Use walk_stmt_load_store_ops.
5762 * ipa-reference.c (mark_load): Adjust signature.
5763 (mark_store): Likewise.
5764 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
5766 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
5768 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
5770 * opts.c (common_handle_option): Don't call print_version.
5771 * plugin.c (plugin_name_args): Add version.
5772 (register_plugin_info): New.
5773 (register_callback): Handle PLUGIN_INFO.
5774 (try_init_one_plugin): New.
5775 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
5777 (finalize_one_plugin): New.
5778 (finalize_plugins): New.
5779 (print_one_plugin): New.
5780 (print_plugins_versions): New.
5781 * plugin.h (print_plugins_versions): New.
5782 (finalize_plugins): New.
5783 * toplev.c (compile_file): Don't call initialize_plugins.
5784 (print_version): Call print_plugins_versions.
5785 (toplev_main): Call initialize_plugins. Print version if needed.
5786 Call finalize_plugins.
5788 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
5790 * common.opt (fversion): New.
5791 * gcc.c (print_version): New.
5792 (process_command): Don't print the version. Just set print_version.
5793 (main): Print version. Call subprocesses if print_version and
5794 verbose_flag are set.
5795 * opts.c (common_handle_option): Handle OPT_fversion.
5797 2009-04-16 Richard Guenther <rguenther@suse.de>
5798 Ira Rosen <irar@il.ibm.com>
5800 PR tree-optimization/39698
5801 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
5802 type of the reduction variable. Only generate the def if
5805 * omp-low.c (expand_omp_for_generic): When converting to a pointer
5806 make sure to first convert to an integer of the same precision.
5807 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
5808 the type of the evolution correctly in computing the new
5809 induction variable base.
5811 2009-04-16 Richard Guenther <rguenther@suse.de>
5814 * tree-cfg.c (make_blocks): Split statements with to-be
5815 abnormal SSA names on the lhs.
5817 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
5819 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
5820 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
5821 * c-typeck.c (really_start_incremental_init): Likewise.
5822 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
5823 (TARGET_INITIALIZER): Remove it.
5824 * target.h (struct target): Remove vector_opaque_p.
5825 * tree.c (build_opaque_vector_type): New.
5826 * tree.h (TYPE_VECTOR_OPAQUE): New.
5827 (build_opaque_vector_type): Declare.
5828 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
5829 * config/rs6000/rs6000.c (build_opaque_vector_type,
5830 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
5831 (rs6000_init_builtins): Use build_opaque_vector_type for
5832 opaque_V4SI_type_node.
5834 2009-04-15 Catherine Moore <clm@codesourcery.com>
5836 * debug.h (set_name): Declare.
5837 * dwarf2out.c (dwarf2out_set_name): Declare.
5838 (dwarf2_debug_hooks): Add set_name.
5839 (find_AT_string): New.
5840 (add_AT_string): Call find_AT_string.
5841 (dwarf2out_set_name): New.
5842 * cp/decl.c (grokdeclarator): Call set_name.
5843 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
5844 * debug.c (do_nothing_debug_hooks): Likewise.
5845 * dbxout.c (dbx_debug_hooks): Likewise.
5846 * sdbout.c (sdb_debug_hooks): Likewise.
5848 2009-04-15 Michael Eager <eager@eagercon.com>
5850 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
5851 reg for single-precision FPU.
5852 * config/rs6000/rs6000.md (movsi_internal1): Only for
5854 (movsi_internal1_single): New. Add pattern to move SI values to/from
5855 single-precision FP regs.
5857 2009-04-15 Richard Guenther <rguenther@suse.de>
5859 * omp-low.c (lower_rec_input_clauses): Build correct address
5861 (expand_omp_for_generic): Fix multiplication type.
5862 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
5863 (generate_memset_zero): Fix types.
5864 * tree-profile.c (prepare_instrumented_value): Correctly
5867 2009-04-15 Ian Lance Taylor <iant@google.com>
5869 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
5870 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
5871 for -Wall and for -Wc++-compat.
5872 (c_common_post_options): For C++, set warn_enum_compare if not
5874 * c-tree.h (struct c_expr): Add field original_type.
5875 (build_external_ref): Update declaration.
5876 * c-parser.c (c_parser_braced_init): Set original_type.
5877 (c_parser_initelt): Likewise.
5878 (c_parser_expr_no_commas): Likewise.
5879 (c_parser_conditional_expression): Likewise.
5880 (c_parser_cast_expression): Likewise.
5881 (c_parser_unary_expression): Likewise. Pull setting of
5882 original_code to top of function.
5883 (c_parser_sizeof_expression): Set original_type.
5884 (c_parser_alignof_expression): Likewise.
5885 (c_parser_postfix_expression): Likewise. Pull setting of
5886 original_code to top of function.
5887 (c_parser_postfix_expression_after_paren_type): Set original_type.
5888 (c_parser_postfix_expression_after_primary): Likewise.
5889 (c_parser_expression): Likewise.
5890 * c-typeck.c (build_external_ref): Add type parameter. Change all
5892 (c_expr_sizeof_expr): Set original_type field.
5893 (parser_build_unary_op): Likewise.
5894 (parser_build_binary_op): Likewise. Optionally warn about
5895 comparisons of enums of different types.
5896 (digest_init): Set original_type field.
5897 (really_start_incremental_init): Likewise.
5898 (push_init_level, pop_init_level): Likewise.
5899 * doc/invoke.texi (Warning Options): -Wenum-compare now
5902 2009-04-15 Richard Guenther <rguenther@suse.de>
5904 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
5905 out a necessary conversion.
5906 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
5907 names we didn't value number.
5908 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
5910 2009-04-15 Richard Guenther <rguenther@suse.de>
5912 PR tree-optimization/39764
5913 * tree-ssa-ccp.c (get_value): Canonicalize value with
5914 canonicalize_float_value.
5916 2009-04-15 Jan Hubicka <jh@suse.cz>
5918 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
5919 Wrong version of patch.
5921 2009-04-15 Jan Hubicka <jh@suse.cz>
5923 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
5925 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
5927 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
5928 our distinct integral and vector types.
5930 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
5932 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
5933 * init.c (build_vtbl_address): Remove call to assemble_external.
5935 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5937 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
5938 output for other floating point modes.
5940 2009-04-14 Diego Novillo <dnovillo@google.com>
5942 * diagnostic.c (diagnostic_report_diagnostic): Do not
5943 warn about loaded plugins for DK_ERROR and DK_WARNING.
5944 * c-decl.c (declspecs_add_type): Move call to
5945 invoke_plugin_callbacks ...
5946 * c-parser.c (c_parser_declspecs): ... here.
5947 * plugin.c (dump_active_plugins): Tidy output.
5949 2009-04-14 Diego Novillo <dnovillo@google.com>
5950 Le-Chun Wu <lcwu@google.com>
5952 * configure.ac: Add --enable-plugin support.
5953 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
5954 * Makefile.in (PLUGIN_H): Define.
5955 Export ENABLE_PLUGIN and GMPINC to site.exp.
5956 Add PLUGINLIBS to link command.
5957 Add/modify dependencies for plugin.o and files including plugin.h.
5959 * config.in: Regenerate.
5961 * opts.c (common_handle_option): Handle OPT_fplugin_ and
5964 2009-04-14 Le-Chun Wu <lcwu@google.com>
5966 * tree-pass.h (register_one_dump_file): Add a prototype for
5967 register_one_dump_file.
5968 * toplev.c (compile_file): Call initialize_plugins.
5969 (do_compile): Call invoke_plugin_callbacks.
5970 (toplev_main): Call invoke_plugin_callbacks.
5971 * common.opt: Add -fplugin= and -fplugin-arg-.
5972 * gcc-plugin.h: New public header file for plugins to include.
5973 * plugin.c: New source file.
5974 * plugin.h: New internal header file.
5975 * passes.c (register_one_dump_file): Make it external.
5977 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
5979 2009-04-14 Diego Novillo <dnovillo@google.com>
5981 * doc/plugins.texi: New.
5982 * doc/gccint.texi: Add reference to Plugins chapter.
5983 * doc/invoke.texi: Document -fplugin and -fplugin-arg
5984 * diagnostic.c (diagnostic_report_diagnostic): Warn about
5985 loaded plugins, if any.
5986 * timevar.def (TV_PLUGIN_INIT): Define.
5987 (TV_PLUGIN_RUN): Define.
5988 * plugin.c: Include timevar.h
5989 (plugins_active_p): New.
5990 (dump_active_plugins): New.
5991 (debug_active_plugins): New.
5993 2009-04-14 Joseph Myers <joseph@codesourcery.com>
5995 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
5997 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
5999 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
6001 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
6002 the same as a minus without a shift.
6004 2009-04-14 Nick Clifton <nickc@redhat.com>
6006 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
6007 comparisons with small integers will always produce a short
6010 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
6013 2008-12-19 Diego Novillo <dnovillo@google.com>
6015 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
6017 2009-04-14 Richard Guenther <rguenther@suse.de>
6019 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
6021 (verify_gimple_assign_binary): Likewise. Handle shifts and
6023 (verify_gimple_phi): Print the mismatched argument position.
6024 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6026 (vect_update_init_of_dr): Likewise.
6027 * matrix-reorg.c (transform_access_sites): Do what the
6029 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
6031 2009-04-13 Michael Eager <eager@eagercon.com>
6033 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
6034 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
6035 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
6036 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
6037 remove duplicate config
6039 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6041 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
6042 file_name:line_number type locator of the call site.
6044 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
6046 * genautomata.c: Put blank after comma.
6047 (automaton_decls): New.
6048 (struct unit_usage): Add comments to member next.
6049 (store_alt_unit_usage): Keep the list ordered.
6050 (unit_present_on_list_p, equal_alternatives_p): New.
6051 (check_regexp_units_distribution): Check units distribution
6052 correctness correctly.
6053 (main): Don't write automata if error is found. Return correct
6056 * config/m68k/cf.md (cfv4_ds): Remove.
6057 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
6058 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
6060 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
6061 power4-load-ext, power4-store, power4-store-update,
6062 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
6063 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
6064 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
6065 power4-sqrt, power4-isync): Modify reservation to make correct
6066 unit distribution to automata.
6068 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
6069 power5-store-update, power5-two, power5-three, power5-lmul,
6070 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
6072 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
6074 * except.c (pass_set_nothrow_function_flags): Set name and add
6076 (set_nothrow_function_flags): Mention in the dump file when
6077 changing a function to nothrow.
6079 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
6082 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
6083 instead of unsigned long.
6085 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6087 * config/arm/arm.c (return_used_this_function): Remove.
6088 (arm_output_function_prologue): Remove use of
6089 return_used_this_function.
6090 (output_return_instruction): Replace use of
6091 return_used_this_function
6092 by cfun->machine->return_used_this_function.
6093 (arm_output_epilogue): Likewise.
6094 (arm_output_function_epilogue): Likewise.
6095 (thumb_unexpanded_epilogue): Likewise.
6096 * config/arm/arm.h (struct machine_function):
6097 New member return_used_this_function.
6099 2009-04-12 Mark Mitchell <mark@codesourcery.com>
6101 * doc/install.texi: Correct description of default directory for
6102 --with-gxx-include-dir.
6104 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
6106 * fold-const.c (build_range_check): Properly deal with enumeral and
6109 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
6111 * doc/invoke.texi (max_gcse_passes): Remove documentation.
6112 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
6113 * params.h (MAX_GCSE_PASSES): Remove.
6114 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
6115 in sequence. Remove ability to run multiple passes.
6116 (bypass_jumps): Report run as third CPROP pass.
6118 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
6121 * except.c (can_throw_external): Look at each insn in a SEQUENCE
6122 when deciding whether the whole SEQUENCE can throw.
6124 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
6127 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
6128 offseted label references.
6130 2009-04-11 Jan Hubicka <jh@suse.cz>
6132 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
6134 2009-04-11 Richard Guenther <rguenther@suse.de>
6137 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
6138 return variables as TREE_ADDRESSABLE.
6140 2009-04-11 Richard Guenther <rguenther@suse.de>
6142 PR tree-optimization/39713
6143 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
6144 reference trees have SSA_NAME operands.
6146 2009-04-11 Richard Guenther <rguenther@suse.de>
6149 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
6150 address expressions.
6152 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
6154 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
6155 match changes in Cygwin 1.7
6156 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
6157 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
6159 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
6161 PR tree-optimization/39701
6162 * doc/invoke.texi (Optimization Options): Document change in
6163 meaning and initialization of -fdelete-null-pointer-checks.
6165 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
6168 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
6170 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
6173 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
6175 2009-04-10 Chao-ying Fu <fu@mips.com>
6177 * doc/tm.texi (Instruction Output): Document
6178 TARGET_ASM_FINAL_POSTSCAN_INSN.
6179 * target.h (final_postscan_insn): New field in asm_out.
6180 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
6181 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
6182 * final.c (final_scan_insn): Call
6183 targetm.asm_out.final_postscan_insn after outputting
6184 an asm macro and a normal instruction.
6186 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
6187 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
6188 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
6189 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
6190 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
6192 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
6195 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
6196 variables as non-NULL even with -fdelete-null-pointer-checks.
6198 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
6200 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
6202 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
6205 * config/i386/i386.c (classify_argument): Handle SCmode with
6206 (bit_offset % 64) != 0.
6208 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
6210 * doc/invoke.texi (Optimize Options): Add cross-reference to
6211 -Q --help=optimizers examples.
6213 2009-04-10 Ben Elliston <bje@au.ibm.com>
6216 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
6217 regalign for the reg == fpr and TDmode case.
6219 2009-04-09 David Ayers <ayers@fsfe.org>
6222 * objc/objc-act.c (warn_with_method): Remove helper function.
6223 (check_duplicates): Call warning and inform directly.
6224 (really_start_method): Likewise.
6226 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
6228 * expmed.c (expand_divmod): Always use a comparison for a division
6229 by a large unsigned integer.
6231 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
6232 for things others than variables or functions as nonzero.
6234 2009-04-09 Nick Clifton <nickc@redhat.com>
6236 * unwind-compat.c: Change copyright header to refer to version
6237 3 of the GNU General Public License with version 3.1 of the
6238 GCC Runtime Library Exception and to point readers at the
6239 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
6240 * config/alpha/crtfastmath.c: Likewise.
6241 * config/alpha/linux-unwind.h: Likewise.
6242 * config/alpha/qrnnd.asm: Likewise.
6243 * config/alpha/vms-crt0-64.c: Likewise.
6244 * config/alpha/vms-crt0.c: Likewise.
6245 * config/alpha/vms-dwarf2.asm: Likewise.
6246 * config/alpha/vms-dwarf2eh.asm: Likewise.
6247 * config/alpha/vms-psxcrt0-64.c: Likewise.
6248 * config/alpha/vms-psxcrt0.c: Likewise.
6249 * config/alpha/vms_tramp.asm: Likewise.
6250 * config/arc/initfini.c: Likewise.
6251 * config/arc/lib1funcs.asm: Likewise.
6252 * config/arm/bpabi-v6m.S: Likewise.
6253 * config/arm/bpabi.S: Likewise.
6254 * config/arm/bpabi.c: Likewise.
6255 * config/arm/crti.asm: Likewise.
6256 * config/arm/crtn.asm: Likewise.
6257 * config/arm/ieee754-df.S: Likewise.
6258 * config/arm/ieee754-sf.S: Likewise.
6259 * config/arm/lib1funcs.asm: Likewise.
6260 * config/arm/libunwind.S: Likewise.
6261 * config/arm/linux-atomic.c: Likewise.
6262 * config/arm/mmintrin.h: Likewise.
6263 * config/arm/pr-support.c: Likewise.
6264 * config/arm/unaligned-funcs.c: Likewise.
6265 * config/arm/unwind-arm.c: Likewise.
6266 * config/arm/unwind-arm.h: Likewise.
6267 * config/avr/libgcc.S: Likewise.
6268 * config/bfin/crti.s: Likewise.
6269 * config/bfin/crtlibid.s: Likewise.
6270 * config/bfin/crtn.s: Likewise.
6271 * config/bfin/lib1funcs.asm: Likewise.
6272 * config/bfin/linux-unwind.h: Likewise.
6273 * config/cris/arit.c: Likewise.
6274 * config/cris/cris_abi_symbol.c: Likewise.
6275 * config/darwin-64.c: Likewise.
6276 * config/darwin-crt2.c: Likewise.
6277 * config/darwin-crt3.c: Likewise.
6278 * config/darwin.h: Likewise.
6279 * config/dbxelf.h: Likewise.
6280 * config/dfp-bit.c: Likewise.
6281 * config/dfp-bit.h: Likewise.
6282 * config/elfos.h: Likewise.
6283 * config/fixed-bit.c: Likewise.
6284 * config/fixed-bit.h: Likewise.
6285 * config/fp-bit.c: Likewise.
6286 * config/fp-bit.h: Likewise.
6287 * config/fr30/crti.asm: Likewise.
6288 * config/fr30/crtn.asm: Likewise.
6289 * config/fr30/lib1funcs.asm: Likewise.
6290 * config/freebsd-spec.h: Likewise.
6291 * config/frv/cmovd.c: Likewise.
6292 * config/frv/cmovh.c: Likewise.
6293 * config/frv/cmovw.c: Likewise.
6294 * config/frv/frvbegin.c: Likewise.
6295 * config/frv/frvend.c: Likewise.
6296 * config/frv/lib1funcs.asm: Likewise.
6297 * config/glibc-stdint.h: Likewise.
6298 * config/h8300/clzhi2.c: Likewise.
6299 * config/h8300/crti.asm: Likewise.
6300 * config/h8300/crtn.asm: Likewise.
6301 * config/h8300/ctzhi2.c: Likewise.
6302 * config/h8300/fixunssfsi.c: Likewise.
6303 * config/h8300/lib1funcs.asm: Likewise.
6304 * config/h8300/parityhi2.c: Likewise.
6305 * config/h8300/popcounthi2.c: Likewise.
6306 * config/i386/ammintrin.h: Likewise.
6307 * config/i386/att.h: Likewise.
6308 * config/i386/avxintrin.h: Likewise.
6309 * config/i386/biarch64.h: Likewise.
6310 * config/i386/bmmintrin.h: Likewise.
6311 * config/i386/cpuid.h: Likewise.
6312 * config/i386/cross-stdarg.h: Likewise.
6313 * config/i386/crtfastmath.c: Likewise.
6314 * config/i386/crtprec.c: Likewise.
6315 * config/i386/cygming-crtbegin.c: Likewise.
6316 * config/i386/cygming-crtend.c: Likewise.
6317 * config/i386/cygwin.asm: Likewise.
6318 * config/i386/emmintrin.h: Likewise.
6319 * config/i386/gmm_malloc.h: Likewise.
6320 * config/i386/gthr-win32.c: Likewise.
6321 * config/i386/i386.h: Likewise.
6322 * config/i386/immintrin.h: Likewise.
6323 * config/i386/linux-unwind.h: Likewise.
6324 * config/i386/linux64.h: Likewise.
6325 * config/i386/mm3dnow.h: Likewise.
6326 * config/i386/mmintrin-common.h: Likewise.
6327 * config/i386/mmintrin.h: Likewise.
6328 * config/i386/nmmintrin.h: Likewise.
6329 * config/i386/pmm_malloc.h: Likewise.
6330 * config/i386/pmmintrin.h: Likewise.
6331 * config/i386/smmintrin.h: Likewise.
6332 * config/i386/sol2-c1.asm: Likewise.
6333 * config/i386/sol2-ci.asm: Likewise.
6334 * config/i386/sol2-cn.asm: Likewise.
6335 * config/i386/sol2-gc1.asm: Likewise.
6336 * config/i386/tmmintrin.h: Likewise.
6337 * config/i386/unix.h: Likewise.
6338 * config/i386/w32-unwind.h: Likewise.
6339 * config/i386/wmmintrin.h: Likewise.
6340 * config/i386/x86-64.h: Likewise.
6341 * config/i386/x86intrin.h: Likewise.
6342 * config/i386/xmmintrin.h: Likewise.
6343 * config/ia64/crtbegin.asm: Likewise.
6344 * config/ia64/crtend.asm: Likewise.
6345 * config/ia64/crtfastmath.c: Likewise.
6346 * config/ia64/crti.asm: Likewise.
6347 * config/ia64/crtn.asm: Likewise.
6348 * config/ia64/fde-glibc.c: Likewise.
6349 * config/ia64/lib1funcs.asm: Likewise.
6350 * config/ia64/linux-unwind.h: Likewise.
6351 * config/ia64/quadlib.c: Likewise.
6352 * config/ia64/unwind-ia64.c: Likewise.
6353 * config/linux.h: Likewise.
6354 * config/m32c/m32c-lib1.S: Likewise.
6355 * config/m32c/m32c-lib2-trapv.c: Likewise.
6356 * config/m32c/m32c-lib2.c: Likewise.
6357 * config/m32r/initfini.c: Likewise.
6358 * config/m68hc11/larith.asm: Likewise.
6359 * config/m68hc11/m68hc11-crt0.S: Likewise.
6360 * config/m68k/cf.md: Likewise.
6361 * config/m68k/crti.s: Likewise.
6362 * config/m68k/crtn.s: Likewise.
6363 * config/m68k/lb1sf68.asm: Likewise.
6364 * config/m68k/linux-unwind.h: Likewise.
6365 * config/mcore/crti.asm: Likewise.
6366 * config/mcore/crtn.asm: Likewise.
6367 * config/mcore/lib1.asm: Likewise.
6368 * config/mips/linux-unwind.h: Likewise.
6369 * config/mips/loongson.h: Likewise.
6370 * config/mips/mips16.S: Likewise.
6371 * config/mmix/crti.asm: Likewise.
6372 * config/mmix/crtn.asm: Likewise.
6373 * config/pa/fptr.c: Likewise.
6374 * config/pa/hpux-unwind.h: Likewise.
6375 * config/pa/lib2funcs.asm: Likewise.
6376 * config/pa/linux-atomic.c: Likewise.
6377 * config/pa/linux-unwind.h: Likewise.
6378 * config/pa/milli64.S: Likewise.
6379 * config/pa/quadlib.c: Likewise.
6380 * config/pa/stublib.c: Likewise.
6381 * config/picochip/libgccExtras/adddi3.asm: Likewise.
6382 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
6383 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
6384 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
6385 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
6386 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
6387 * config/picochip/libgccExtras/divmod15.asm: Likewise.
6388 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
6389 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
6390 * config/picochip/libgccExtras/longjmp.asm: Likewise.
6391 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
6392 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
6393 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
6394 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
6395 * config/picochip/libgccExtras/setjmp.asm: Likewise.
6396 * config/picochip/libgccExtras/subdi3.asm: Likewise.
6397 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
6398 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
6399 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
6400 * config/rs6000/750cl.h: Likewise.
6401 * config/rs6000/altivec.h: Likewise.
6402 * config/rs6000/biarch64.h: Likewise.
6403 * config/rs6000/crtresfpr.asm: Likewise.
6404 * config/rs6000/crtresgpr.asm: Likewise.
6405 * config/rs6000/crtresxfpr.asm: Likewise.
6406 * config/rs6000/crtresxgpr.asm: Likewise.
6407 * config/rs6000/crtsavfpr.asm: Likewise.
6408 * config/rs6000/crtsavgpr.asm: Likewise.
6409 * config/rs6000/darwin-asm.h: Likewise.
6410 * config/rs6000/darwin-fallback.c: Likewise.
6411 * config/rs6000/darwin-fpsave.asm: Likewise.
6412 * config/rs6000/darwin-ldouble.c: Likewise.
6413 * config/rs6000/darwin-tramp.asm: Likewise.
6414 * config/rs6000/darwin-unwind.h: Likewise.
6415 * config/rs6000/darwin-vecsave.asm: Likewise.
6416 * config/rs6000/darwin-world.asm: Likewise.
6417 * config/rs6000/e500crtres32gpr.asm: Likewise.
6418 * config/rs6000/e500crtres64gpr.asm: Likewise.
6419 * config/rs6000/e500crtres64gprctr.asm: Likewise.
6420 * config/rs6000/e500crtrest32gpr.asm: Likewise.
6421 * config/rs6000/e500crtrest64gpr.asm: Likewise.
6422 * config/rs6000/e500crtresx32gpr.asm: Likewise.
6423 * config/rs6000/e500crtresx64gpr.asm: Likewise.
6424 * config/rs6000/e500crtsav32gpr.asm: Likewise.
6425 * config/rs6000/e500crtsav64gpr.asm: Likewise.
6426 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6427 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
6428 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
6429 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
6430 * config/rs6000/eabi-ci.asm: Likewise.
6431 * config/rs6000/eabi-cn.asm: Likewise.
6432 * config/rs6000/eabi.asm: Likewise.
6433 * config/rs6000/linux-unwind.h: Likewise.
6434 * config/rs6000/linux64.h: Likewise.
6435 * config/rs6000/paired.h: Likewise.
6436 * config/rs6000/paired.md: Likewise.
6437 * config/rs6000/ppc64-fp.c: Likewise.
6438 * config/rs6000/ppu_intrinsics.h: Likewise.
6439 * config/rs6000/rs6000.h: Likewise.
6440 * config/rs6000/si2vmx.h: Likewise.
6441 * config/rs6000/sol-ci.asm: Likewise.
6442 * config/rs6000/sol-cn.asm: Likewise.
6443 * config/rs6000/spe.h: Likewise.
6444 * config/rs6000/spu2vmx.h: Likewise.
6445 * config/rs6000/sysv4.h: Likewise.
6446 * config/rs6000/tramp.asm: Likewise.
6447 * config/rs6000/vec_types.h: Likewise.
6448 * config/s390/linux-unwind.h: Likewise.
6449 * config/s390/tpf-unwind.h: Likewise.
6450 * config/score/crti.asm: Likewise.
6451 * config/score/crtn.asm: Likewise.
6452 * config/sh/crt1.asm: Likewise.
6453 * config/sh/crti.asm: Likewise.
6454 * config/sh/crtn.asm: Likewise.
6455 * config/sh/divtab-sh4-300.c: Likewise.
6456 * config/sh/divtab-sh4.c: Likewise.
6457 * config/sh/divtab.c: Likewise.
6458 * config/sh/lib1funcs-4-300.asm: Likewise.
6459 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
6460 * config/sh/lib1funcs.asm: Likewise.
6461 * config/sh/lib1funcs.h: Likewise.
6462 * config/sh/linux-atomic.asm: Likewise.
6463 * config/sh/linux-unwind.h: Likewise.
6464 * config/sh/shmedia.h: Likewise.
6465 * config/sh/sshmedia.h: Likewise.
6466 * config/sh/ushmedia.h: Likewise.
6467 * config/sparc/crtfastmath.c: Likewise.
6468 * config/sparc/linux-unwind.h: Likewise.
6469 * config/sparc/sol2-c1.asm: Likewise.
6470 * config/sparc/sol2-ci.asm: Likewise.
6471 * config/sparc/sol2-cn.asm: Likewise.
6472 * config/spu/divmodti4.c: Likewise.
6473 * config/spu/divv2df3.c: Likewise.
6474 * config/spu/float_disf.c: Likewise.
6475 * config/spu/float_unsdidf.c: Likewise.
6476 * config/spu/float_unsdisf.c: Likewise.
6477 * config/spu/float_unssidf.c: Likewise.
6478 * config/spu/mfc_multi_tag_release.c: Likewise.
6479 * config/spu/mfc_multi_tag_reserve.c: Likewise.
6480 * config/spu/mfc_tag_release.c: Likewise.
6481 * config/spu/mfc_tag_reserve.c: Likewise.
6482 * config/spu/mfc_tag_table.c: Likewise.
6483 * config/spu/multi3.c: Likewise.
6484 * config/spu/spu_internals.h: Likewise.
6485 * config/spu/spu_intrinsics.h: Likewise.
6486 * config/spu/spu_mfcio.h: Likewise.
6487 * config/spu/vec_types.h: Likewise.
6488 * config/spu/vmx2spu.h: Likewise.
6489 * config/stormy16/stormy16-lib2.c: Likewise.
6490 * config/svr4.h: Likewise.
6491 * config/sync.c: Likewise.
6492 * config/v850/lib1funcs.asm: Likewise.
6493 * config/vxlib-tls.c: Likewise.
6494 * config/vxlib.c: Likewise.
6495 * config/vxworks-dummy.h: Likewise.
6496 * config/xtensa/crti.asm: Likewise.
6497 * config/xtensa/crtn.asm: Likewise.
6498 * config/xtensa/ieee754-df.S: Likewise.
6499 * config/xtensa/ieee754-sf.S: Likewise.
6500 * config/xtensa/lib1funcs.asm: Likewise.
6501 * config/xtensa/lib2funcs.S: Likewise.
6502 * config/xtensa/linux-unwind.h: Likewise.
6503 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6504 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
6505 * coretypes.h: Likewise.
6506 * crtstuff.c: Likewise.
6507 * defaults.h: Likewise.
6508 * dwarf2.h: Likewise.
6509 * emutls.c: Likewise.
6510 * gbl-ctors.h: Likewise.
6511 * gcov-io.h: Likewise.
6512 * ginclude/float.h: Likewise.
6513 * ginclude/iso646.h: Likewise.
6514 * ginclude/stdarg.h: Likewise.
6515 * ginclude/stdbool.h: Likewise.
6516 * ginclude/stddef.h: Likewise.
6517 * ginclude/stdfix.h: Likewise.
6518 * ginclude/stdint-gcc.h: Likewise.
6519 * ginclude/tgmath.h: Likewise.
6520 * gthr-aix.h: Likewise.
6521 * gthr-dce.h: Likewise.
6522 * gthr-gnat.c: Likewise.
6523 * gthr-gnat.h: Likewise.
6524 * gthr-lynx.h: Likewise.
6525 * gthr-mipssde.h: Likewise.
6526 * gthr-nks.h: Likewise.
6527 * gthr-posix.c: Likewise.
6528 * gthr-posix.h: Likewise.
6529 * gthr-posix95.h: Likewise.
6530 * gthr-rtems.h: Likewise.
6531 * gthr-single.h: Likewise.
6532 * gthr-solaris.h: Likewise.
6533 * gthr-tpf.h: Likewise.
6534 * gthr-vxworks.h: Likewise.
6535 * gthr-win32.h: Likewise.
6537 * libgcc2.c: Likewise.
6538 * libgcc2.h: Likewise.
6539 * libgcov.c: Likewise.
6540 * tsystem.h: Likewise.
6541 * typeclass.h: Likewise.
6542 * unwind-c.c: Likewise.
6543 * unwind-compat.h: Likewise.
6544 * unwind-dw2-fde-compat.c: Likewise.
6545 * unwind-dw2-fde-darwin.c: Likewise.
6546 * unwind-dw2-fde-glibc.c: Likewise.
6547 * unwind-dw2-fde.c: Likewise.
6548 * unwind-dw2-fde.h: Likewise.
6549 * unwind-dw2.c: Likewise.
6550 * unwind-dw2.h: Likewise.
6551 * unwind-generic.h: Likewise.
6552 * unwind-pe.h: Likewise.
6553 * unwind-sjlj.c: Likewise.
6554 * unwind.inc: Likewise.
6555 * config/arm/neon-gen.ml: Change generated copyright header to
6556 refer to version 3 of the GNU General Public License with
6557 version 3.1 of the GCC Runtime Library Exception and to point
6558 readers at the COPYING3 and COPYING3.RUNTIME files and the
6559 FSF's license web page.
6560 * config/arm/arm_neon.h: Regenerate.
6562 2009-04-09 Jakub Jelinek <jakub@redhat.com>
6564 * config/cris/cris.md: Change copyright header to refer to version
6565 3 of the GNU General Public License.
6566 * doc/install.texi2html: Change copyright header to refer to version
6567 3 of the GNU General Public License and to point readers at the
6568 COPYING3 file and the FSF's license web page.
6569 * config/vax/linux.h: Likewise.
6571 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
6573 * config/i386/i386.md (cmpcc): New.
6574 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
6575 (sync_compare_and_swap_cc*): Delete.
6577 * config/s390/s390.c (s390_compare_emitted): Remove.
6578 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
6579 s390_compare_emitted used to be handled. Assert that modes match.
6580 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
6581 refer to sync_compare_and_swap_ccsi.
6582 * config/s390/s390.h (s390_compare_emitted): Remove.
6583 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
6584 instead of s390_compare_emitted.
6585 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
6586 instead of s390_compare_emitted.
6587 * config/s390/s390.md (cmpcc): New.
6588 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
6589 CC_REGNUM, do not pretend it's set.
6590 (sync_compare_and_swap_cc*): Delete.
6591 * config/s390/predicates.md (cc_reg_operand): New.
6593 * expr.c (sync_compare_and_swap_cc): Delete.
6594 * optabs.h (sync_compare_and_swap_cc): Delete.
6595 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
6596 is being used with can_compare_p.
6597 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
6599 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
6600 look for a MODE_CC set instead. Use emit_store_flag.
6601 (expand_compare_and_swap_loop): Likewise, with some additional
6602 complication to avoid a force_reg when useless. Use
6603 emit_cmp_and_jump_insns.
6604 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
6605 * doc/md.texi (sync_compare_and_swap_cc): Merge with
6606 sync_compare_and_swap documentation.
6608 2009-04-09 Jan Hubicka <jh@suse.cz>
6610 * except.c (find_prev_try): Break out from ....
6611 (duplicate_eh_regions): ... here; properly update prev_try pointers
6612 when duplication part of tree.
6613 (dump_eh_tree): Improve dumping.
6614 (verify_eh_region): New.
6615 (verify_eh_tree): Use it.
6617 2009-04-06 Richard Guenther <rguenther@suse.de>
6619 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
6620 &ARRAY addresses by adjusting their types and prepending
6622 * tree-cfg.c (verify_gimple_assign_single): Verify that
6623 addresses are correct.
6625 2009-04-09 Richard Guenther <rguenther@suse.de>
6627 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
6628 indices into an array reference if possible.
6629 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6630 Fold POINTER_PLUS_EXPR statements with invariant address.
6632 2009-04-09 Alan Modra <amodra@bigpond.net.au>
6635 * config.gcc (powerpc64-*-linux*): Always build biarch.
6637 2009-04-09 Joseph Myers <joseph@codesourcery.com>
6640 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
6641 it and pedwarn if this results in an INTEGER_CST.
6643 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6645 * doc/install.texi: Update minimum GMP version. Remove obsolete
6646 text in MPFR section.
6648 2009-04-08 Jakub Jelinek <jakub@redhat.com>
6650 * dwarf2out.c (class_scope_p): New static inline.
6651 (class_or_namespace_scope_p): Use it.
6652 (gen_variable_die): Use DW_TAG_member tag for static data member
6653 declarations instead of DW_TAG_variable.
6656 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
6659 2009-04-08 Richard Guenther <rguenther@suse.de>
6661 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
6662 valueize random data.
6664 2009-04-08 David Edelsohn <edelsohn@gnu.org>
6666 * config.gcc (aix tm_file): Add aix-stdint.h.
6667 (aix tm clause use_gcc_stdint): Set to wrap.
6668 * config/rs6000/aix-stdint.h: New file.
6670 2009-04-08 Richard Guenther <rguenther@suse.de>
6673 * tree-dfa.c (add_referenced_var): Do not recurse into
6674 global initializers.
6675 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
6677 (fold_const_aggregate_ref): Likewise.
6679 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
6681 * recog.c (ordered_comparison_operator): New.
6682 * gensupport.c (std_preds): Add it.
6683 * doc/md.texi (Machine-Independent Predicates): Document it.
6685 2009-04-08 Jan Hubicka <jh@suse.cz>
6687 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
6688 * function.h (rtl_eh): Remove exception_handler_label_map.
6689 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
6690 remove_exception_handler_label, for_each_eh_label_1): Remove.
6691 (rtl_remove_unreachable_regions): Remove.
6692 (convert_from_eh_region_ranges): Do not remove unreachable regions.
6693 (find_exception_handler_labels): Don't build the hashtable.
6694 (maybe_remove_eh_handler): Remove.
6695 (for_each_eh_label): Rewrite to walk the tree.
6696 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
6697 * except.h (maybe_remove_eh_handler): Remove.
6698 * passes.c (init_optimization_passes): Schedule second EH cleanup
6700 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
6701 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
6703 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
6705 * genoutput.c (validate_optab_operands): New.
6706 (gen_insn, gen_expand): Call it.
6708 * genflags.c (gen_insn): Detect misused iterators.
6709 (main): Pass line_no to gen_insn, exit with status 1 on error.
6711 * genextract.c (line_no): Make global.
6712 (VEC_safe_set_locstr): Change assertion to error message.
6713 (main): Exit with status 1 on error.
6715 2009-04-08 Joseph Myers <joseph@codesourcery.com>
6719 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
6720 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
6721 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
6722 * c-convert.c (convert): Do not call fold on results of conversion
6723 functions when the result is a C_MAYBE_CONST_EXPR.
6724 * c-parser.c (c_parser_postfix_expression): Do not fold condition
6725 of __builtin_choose_expr.
6726 * c-typeck.c (remove_c_maybe_const_expr): New.
6727 (build_unary_op, build_conditional_expr, build_compound_expr,
6728 build_binary_op, c_objc_common_truthvalue_conversion): Call
6729 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
6732 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
6734 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6735 CODE to produce a new one. Add a prototype to use fold_convert_const
6737 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
6740 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
6741 mix declarations and code.
6743 2009-04-08 Ben Elliston <bje@au.ibm.com>
6745 * gcc.c: Replace `CC' with `GCC' throughout.
6747 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
6749 * doc/invoke.texi: Document Atom support.
6751 2009-04-07 Jason Merrill <jason@redhat.com>
6754 * c-common.h, c-common.c: Add flag_pretty_templates.
6755 * c-opts.c (c_common_handle_option): Set it.
6756 * c.opt: Add -fno-pretty-templates.
6757 * doc/invoke.texi (C++ Dialect Options): Likewise.
6759 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
6761 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
6762 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
6763 (ia64_expand_builtin): Likewise.
6765 2009-04-07 Martin Jambor <mjambor@suse.cz>
6767 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
6768 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
6769 ADDR_EXPRS are include too.
6771 2009-04-07 Richard Guenther <rguenther@suse.de>
6773 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
6774 decls are only used if passes as parameters or if they are
6775 local statics and the call is not to a builtin.
6776 (call_may_clobber_ref_p_1): Likewise.
6778 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
6780 * expr.c (do_store_flag): Remove last argument. Simplify code
6781 to avoid duplication of tests already done by can_compare_p.
6782 (expand_expr_real_1): Adjust caller.
6784 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
6786 * optabs.c (can_compare_p): Test the predicate of a
6787 cbranch and cstore pattern.
6789 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
6791 * expr.c (convert_move): Use emit_store_flag instead of
6794 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
6796 * config/i386/i386.c (ix86_compare_emitted): Remove.
6797 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
6798 ix86_compare_op0 like ix86_compare_emitted used to be handled.
6799 * config/i386/i386.h (ix86_compare_emitted): Remove.
6800 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
6801 instead of ix86_compare_emitted.
6802 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
6804 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
6806 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
6807 Add t-sysroot-suffix to tmake_file.
6808 * config/print-sysroot-suffix.sh: New file.
6809 * config/t-sysroot-suffix: New file.
6811 2009-04-07 Ben Elliston <bje@au.ibm.com>
6813 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
6814 as the latter produces a warning when the target does not support
6817 2009-04-07 Ben Elliston <bje@au.ibm.com>
6819 * dfp.c: Replace type punning assignments with memcpy throughout.
6820 * Makefile.in (dfp.o-warn): Remove.
6822 2009-04-07 Alan Modra <amodra@bigpond.net.au>
6825 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
6826 Include soft-fp/t-softfp after rs6000/t-linux64.
6828 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
6830 * stor-layout.c (set_sizetype): Use the full precision of their
6831 machine mode for bitsize types.
6833 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
6835 * config/i386/i386.md: Revert 2 accidental checkins.
6837 2009-04-06 Joey Ye <joey.ye@intel.com>
6838 Xuepeng Guo <xuepeng.guo@intel.com>
6839 H.J. Lu <hongjiu.lu@intel.com>
6841 Atom pipeline model, tuning and insn selection.
6842 * config.gcc (atom): Add atom config options and target.
6844 * config/i386/atom.md: New.
6846 * config/i386/i386.c (atom_cost): New cost.
6847 (m_ATOM): New macro flag.
6848 (initial_ix86_tune_features): Set m_ATOM.
6849 (x86_accumulate_outgoing_args): Likewise.
6850 (x86_arch_always_fancy_math_387): Likewise.
6851 (processor_target): Add Atom cost.
6852 (cpu_names): Add Atom cpu name.
6853 (override_options): Set Atom ISA.
6854 (ix86_issue_rate): New case PROCESSOR_ATOM.
6855 (ix86_adjust_cost): Likewise.
6857 * config/i386/i386.h (TARGET_ATOM): New target macro.
6858 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
6859 (TARGET_OPT_AGU): New target option.
6860 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
6861 (processor_type): Add PROCESSOR_ATOM.
6863 * config/i386/i386.md (cpu): Add new value "atom".
6864 (use_carry, movu): New attr.
6865 (atom.md): Include atom.md.
6866 (adddi3_carry_rex64): Set attr "use_carry".
6867 (addqi3_carry): Likewise.
6868 (addhi3_carry): Likewise.
6869 (addsi3_carry): Likewise.
6870 (*addsi3_carry_zext): Likewise.
6871 (subdi3_carry_rex64): Likewise.
6872 (subqi3_carry): Likewise.
6873 (subhi3_carry): Likewise.
6874 (subsi3_carry): Likewise.
6875 (x86_movdicc_0_m1_rex64): Likewise.
6876 (*x86_movdicc_0_m1_se): Likewise.
6877 (x86_movsicc_0_m1): Likewise.
6878 (*x86_movsicc_0_m1_se): Likewise.
6879 (*adddi_1_rex64): Emit add insn as much as possible.
6880 (*addsi_1): Likewise.
6881 (return_internal): Set atom_unit.
6882 (return_internal_long): Likewise.
6883 (return_pop_internal): Likewise.
6884 (*rcpsf2_sse): Set atom_sse_attr attr.
6885 (*qrt<mode>2_sse): Likewise.
6886 (*prefetch_sse): Likewise.
6888 * config/i386/i386-c.c (ix86_target_macros_internal): New case
6890 (ix86_target_macros_internal): Likewise.
6892 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
6893 (*prefetch_sse_rex): Likewise.
6894 (sse_rcpv4sf2): Likewise.
6895 (sse_vmrcpv4sf2): Likewise.
6896 (sse_sqrtv4sf2): Likewise.
6897 (<sse>_vmsqrt<mode>2): Likewise.
6898 (sse_ldmxcsr): Likewise.
6899 (sse_stmxcsr): Likewise.
6900 (*sse_sfence): Likewise.
6901 (sse2_clflush): Likewise.
6902 (*sse2_mfence): Likewise.
6903 (*sse2_lfence): Likewise.
6904 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
6905 (<sse>_movup<ssemodesuffixf2c>): Likewise.
6906 (avx_movdqu<avxmodesuffix>): Likewise.
6907 (avx_lddqu<avxmodesuffix>): Likewise.
6908 (sse2_movntv2di): Change attr "type" to "ssemov".
6909 (sse2_movntsi): Likewise.
6910 (rsqrtv8sf2): Change attr "type" to "sseadd".
6911 (sse3_addsubv2df3): Set attr "atom_unit".
6912 (sse3_h<plusminus_insn>v4sf3): Likewise.
6913 (*sse2_pmaddwd): Likewise.
6914 (*vec_extractv2di_1_rex64): Likewise.
6915 (*vec_extractv2di_1_avx): Likewise.
6916 (sse2_psadbw): Likewise.
6917 (ssse3_phaddwv8hi3): Likewise.
6918 (ssse3_phaddwv4hi3): Likewise.
6919 (ssse3_phadddv4si3): Likewise.
6920 (ssse3_phadddv2si3): Likewise.
6921 (ssse3_phaddswv8hi3): Likewise.
6922 (ssse3_phaddswv4hi3): Likewise.
6923 (ssse3_phsubwv8hi3): Likewise.
6924 (ssse3_phsubwv4hi3): Likewise.
6925 (ssse3_phsubdv4si3): Likewise.
6926 (ssse3_phsubdv2si3): Likewise.
6927 (ssse3_phsubswv8hi3): Likewise.
6928 (ssse3_phsubswv4hi3): Likewise.
6929 (ssse3_pmaddubsw128): Likewise.
6930 (sse3_pmaddubsw: Likewise.
6931 (ssse3_palignrti): Likewise.
6932 (ssse3_palignrdi): Likewise.
6934 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
6936 * doc/install.texi (Specific): Fix two cross-references to MinGW.
6938 2009-04-06 Richard Guenther <rguenther@suse.de>
6940 PR tree-optimization/28868
6941 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
6942 of which PHI results we inserted.
6943 (insert_into_preds_of_block): Record inserted PHIs.
6944 (eliminate): Eliminate redundant PHI nodes.
6945 (init_pre): Init inserted_phi_names.
6947 2009-04-06 Richard Guenther <rguenther@suse.de>
6949 PR tree-optimization/39643
6950 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
6951 IMAGPART_EXPRs of complex constants.
6952 (execute_fold_all_builtins): If we folded a call queue
6953 TODO_update_address_taken.
6955 2009-04-06 Jan Hubicka <jh@suse.cz>
6958 * except.c (remove_unreachable_regions): Propagate may_contain_throw
6961 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
6963 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
6965 (ic_invalidate_array): Likewise.
6967 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6969 * calls.c (emit_library_call_value_1): Fix a problem with parameter
6970 alignment for library calls.
6972 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
6974 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
6975 (mingw32 tm clause use_gcc_stdint): Set to wrap.
6976 * config/i386/mingw-stdint.h: New file.
6978 2009-04-05 Richard Guenther <rguenther@suse.de>
6980 PR tree-optimization/39648
6981 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
6982 our &A vs. &A[0] IL deficiencies.
6984 2009-04-04 Jan Hubicka <jh@suse.cz>
6986 * except.c (sjlj_find_directly_reachable_regions): Be ready for
6987 removed toplevel regions.
6988 (sjlj_mark_call_sites): Likewise.
6990 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
6992 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
6993 (cygwin tm clause use_gcc_stdint): Set to wrap.
6994 * config/i386/cygwin-stdint.h: New file.
6996 2009-04-04 Richard Guenther <rguenther@suse.de>
6998 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
6999 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
7000 single-argument PHIs if we are in loop-closed SSA form.
7001 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
7002 for the pre-condition.
7003 (slpeel_tree_peel_loop_to_edge): Likewise.
7004 (vect_build_loop_niters): Take an optional sequence to append stmts.
7005 (vect_generate_tmps_on_preheader): Likewise.
7006 (vect_do_peeling_for_loop_bound): Take extra guards for the
7008 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
7009 the cost model check.
7010 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7011 guards if we are going to peel. Do not apply versioning in that case.
7012 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
7013 (vect_do_peeling_for_loop_bound): Likewise.
7014 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
7015 loop bound only record extra pre-conditions, do not apply loop
7018 2009-04-04 Richard Guenther <rguenther@suse.de>
7020 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
7023 2009-04-04 Jan Hubicka <jh@suse.cz>
7025 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7026 last_basic_block for size of bb->index indexed array.
7027 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
7028 compute_out, link_btr_uses, build_btr_def_use_webs,
7029 build_btr_def_use_webs, migrate_btr_defs): Likewise.
7031 2009-04-04 Jan Hubicka <jh@suse.cz>
7033 * except.c (remove_eh_handler_and_replace): Break out from ...
7034 (remove_eh_handler): ... here.
7035 (bring_to_root): New function.
7036 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
7037 handled ones, bring others to root of tree.
7039 2009-04-04 Jan Hubicka <jh@suse.cz>
7041 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
7042 (all_phis_safe_to_merge): New function.
7043 (update_info): New structure.
7044 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
7045 (cleanup_empty_eh): Update SSA if possible.
7047 2009-04-04 Richard Guenther <rguenther@suse.de>
7049 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
7050 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
7051 (append_vuse): Likewise.
7053 2009-04-04 Jakub Jelinek <jakub@redhat.com>
7055 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
7056 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
7057 instead of REG_UNSAVED for DW_CFA_undefined.
7058 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
7059 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
7062 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
7065 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
7066 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
7067 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
7069 2009-04-04 Richard Guenther <rguenther@suse.de>
7071 PR tree-optimization/8781
7072 PR tree-optimization/37892
7073 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
7074 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
7075 (valueize_refs): Call it for *& valueizations.
7076 (shared_reference_ops_from_ref): Rename to ...
7077 (valueize_shared_reference_ops_from_ref): ... this and valueize.
7078 (shared_reference_ops_from_call): Rename to ...
7079 (valueize_shared_reference_ops_from_call): ... this and valueize.
7080 (vn_reference_lookup): Update.
7081 (visit_reference_op_call): Likewise.
7082 * tree-ssa-pre.c (phi_translate_1): Fold *&.
7083 (eliminate): Value-replace the call address in call statements.
7085 2009-04-04 Richard Guenther <rguenther@suse.de>
7087 PR tree-optimization/39636
7088 * tree-ssa-forwprop.c
7089 (forward_propagate_addr_into_variable_array_index): Check for
7090 GIMPLE_ASSIGN before accessing the rhs code.
7092 2009-04-03 Jason Merrill <jason@redhat.com>
7094 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
7096 2009-04-03 Steve Ellcey <sje@cup.hp.com>
7098 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
7099 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
7100 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
7101 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
7102 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
7103 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
7104 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
7105 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
7106 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
7107 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
7108 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
7109 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
7110 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
7111 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
7112 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
7113 Use fr_reg_or_fp01_operand instead of fr_register_operand
7115 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
7116 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
7117 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
7119 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
7121 PR rtl-optimization/39607
7122 PR rtl-optimization/39631
7126 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
7127 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
7128 instead of DF_LR_OUT.
7129 * ira-lives.c (process_bb_node_lives): Ditto.
7130 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
7131 instead of DF_LR_{OUT,IN}.
7132 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
7133 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
7135 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
7137 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
7138 (execute_lower_omp): Always run but take the short way out if -fopenmp
7140 (gate_lower_omp): Remove, forcing the pass manager to always run the
7141 pass and always set PROP_gimple_lomp.
7142 (pass_lower_omp): Remove gate function.
7143 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
7144 PROP_trees. Instead, require it.
7145 * ipa-cp.c (pass_ipa_cp): Likewise.
7146 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
7147 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
7148 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
7149 and PROP_gimple_leh.
7151 2009-04-03 Richard Guenther <rguenther@suse.de>
7154 PR tree-optimization/23940
7155 PR tree-optimization/33237
7158 PR tree-optimization/36201
7159 PR tree-optimization/36230
7160 PR tree-optimization/38049
7161 PR tree-optimization/38207
7162 PR tree-optimization/38230
7163 PR tree-optimization/38301
7164 PR tree-optimization/38585
7166 PR tree-optimization/38985
7167 PR tree-optimization/39299
7168 * tree-ssa-structalias.h: Remove.
7169 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
7170 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
7171 (struct vuse_element_d): Remove.
7172 (struct vuse_vec_d): Likewise.
7173 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
7174 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
7175 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
7176 VUSE_ELEMENT_VAR): Likewise.
7177 (struct voptype_d): Likewise.
7178 (NUM_VOP_FREE_BUCKETS): Likewise.
7179 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
7180 (struct stmt_operands_d): Remove.
7181 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
7182 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
7183 VDEF_NUM, VDEF_VECT): Likewise.
7184 (copy_virtual_operands): Remove.
7185 (operand_build_cmp): Likewise.
7186 (create_ssa_artificial_load_stmt): Likewise.
7187 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
7188 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
7189 vuse_index and mayuse_index members. Pack and move done and iter_type
7190 members to the front.
7191 (SSA_OP_VMAYUSE): Remove.
7192 (SSA_OP_VIRTUAL_USES): Adjust.
7193 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
7194 (unlink_stmt_vdef): Declare.
7195 (add_to_addressable_set): Remove.
7196 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
7197 (vrp_visit_stmt): Likewise.
7198 * doc/tree-ssa.texi (Alias analysis): Update.
7199 * doc/invoke.texi (max-aliased-vops): Remove docs.
7200 (avg-aliased-vops): Likewise.
7201 * tree-into-ssa.c (syms_to_rename): Remove.
7202 (need_to_update_vops_p): Likewise.
7203 (need_to_initialize_update_ssa_p): Rename to ...
7204 (update_ssa_initialized_fn): ... this. Track function we are
7206 (symbol_marked_for_renaming): Simplify.
7207 (add_new_name_mapping): Do not set need_to_update_vops_p.
7208 (dump_currdefs): Use SYMS_TO_RENAME.
7209 (rewrite_update_stmt): Always walk all uses/defs.
7210 (dump_update_ssa): Adjust.
7211 (init_update_ssa): Take function argument. Track what we are
7213 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
7214 (create_new_def_for): Initialize for cfun, assert we are initialized
7216 (mark_sym_for_renaming): Simplify.
7217 (mark_set_for_renaming): Do not initialize update-ssa.
7218 (need_ssa_update_p): Simplify. Take function argument.
7219 (name_mappings_registered_p): Assert we ask for the correct function.
7220 (name_registered_for_update_p): Likewise.
7221 (ssa_names_to_replace): Likewise.
7222 (release_ssa_name_after_update_ssa): Likewise.
7223 (update_ssa): Likewise. Use SYMS_TO_RENAME.
7224 (dump_decl_set): Do not print a newline.
7225 (debug_decl_set): Do it here.
7226 (dump_update_ssa): And here.
7227 * tree-ssa-loop-im.c (move_computations): Adjust.
7228 (movement_possibility): Likewise.
7229 (determine_max_movement): Likewise.
7230 (gather_mem_refs_stmt): Likewise.
7231 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
7233 * tree-complex.c (update_all_vops): Remove.
7234 (expand_complex_move): Adjust.
7235 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
7236 Simplify test for memory referencing statement. Exclude
7237 non-invariant ADDR_EXPRs.
7238 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
7239 * tree-loop-distribution.c (generate_memset_zero): Adjust.
7240 (rdg_flag_uses): Likewise.
7241 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
7243 (tree_optimize_tail_calls_1): Also split the
7244 edge from the entry block if we have degenerate PHI nodes in
7245 the first basic block.
7246 * tree.c (init_ttree): Remove memory-tag related code.
7247 (tree_code_size): Likewise.
7248 (tree_node_structure): Likewise.
7249 (build7_stat): Re-write to be build6_stat.
7250 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
7251 (SSA_VAR_P): Adjust.
7252 (struct tree_memory_tag): Remove.
7253 (struct tree_memory_partition_tag): Likewise.
7254 (union tree_node): Adjust.
7255 (build7): Re-write to be build6.
7256 * tree-pass.h (pass_reset_cc_flags): Remove.
7257 (TODO_update_address_taken): New flag.
7258 (pass_simple_dse): Remove.
7259 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
7260 * params.h (MAX_ALIASED_VOPS): Remove.
7261 (AVG_ALIASED_VOPS): Likewise.
7262 * omp-low.c (expand_omp_taskreg): Update SSA form.
7263 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
7264 aliases the lhs in a copy stmt.
7265 * tree-ssa-dse.c (struct address_walk_data): Remove.
7266 (memory_ssa_name_same): Likewise.
7267 (memory_address_same): Likewise.
7268 (get_kill_of_stmt_lhs): Likewise.
7269 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
7270 unused stores. Look through PHI nodes into post-dominated regions.
7271 (dse_optimize_stmt): Simplify. Properly remove stores.
7272 (tree_ssa_dse): Compute dominators.
7273 (execute_simple_dse): Remove.
7274 (pass_simple_dse): Likewise.
7275 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
7276 gimple_loaded_syms and gimple_stored_syms computation.
7277 * toplev.c (dump_memory_report): Dump alias and pta stats.
7278 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
7279 (vn_reference_eq): Likewise.
7280 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
7281 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
7282 valueize_vuses): Remove.
7283 (get_def_ref_stmt_vuses): Simplify. Rename to ...
7284 (get_def_ref_stmt_vuse): ... this.
7285 (vn_reference_lookup_2): New function.
7286 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
7287 walking equivalent vuses. Simplify.
7288 (vn_reference_lookup): Likewise.
7289 (vn_reference_insert): Likewise.
7290 (vn_reference_insert_pieces): Likewise.
7291 (visit_reference_op_call): Simplify.
7292 (visit_reference_op_load): Likewise.
7293 (visit_reference_op_store): Likewise.
7294 (init_scc_vn): Remove shared_lookup_vuses initialization.
7295 (free_scc_vn): Remove shared_lookup_vuses freeing.
7296 (sort_vuses, sort_vuses_heap): Remove.
7297 (get_ref_from_reference_ops): Export.
7298 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
7299 vector with single vuse pointer.
7300 (vn_reference_lookup_pieces, vn_reference_lookup,
7301 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
7302 (shared_vuses_from_stmt): Remove.
7303 (get_ref_from_reference_ops): Declare.
7304 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
7305 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7306 memory-tag related code.
7307 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
7308 (likely_value): Add comment, skip static-chain of call statements.
7309 (surely_varying_stmt_p): Adjust.
7310 (gimplify_and_update_call_from_tree): Likewise.
7311 (execute_fold_all_builtins): Do not rebuild alias info.
7312 (gimplify_and_update_call_from_tree): Properly update VOPs.
7313 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
7314 (copy_ref_info): Remove memory-tag related code.
7315 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
7316 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
7317 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
7319 * tree-ssa-dom.c (gimple_p): Remove typedef.
7320 (eliminate_redundant_computations): Adjust.
7321 (record_equivalences_from_stmt): Likewise.
7322 (avail_expr_hash): Likewise.
7323 (avail_expr_eq): Likewise.
7324 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
7325 (stmt_makes_single_load): Likewise.
7326 (stmt_makes_single_store): Likewise.
7327 * tree-ssa-alias.c: Rewrite completely.
7328 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
7329 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
7330 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
7331 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
7332 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
7333 Remove public functions.
7334 (pass_reset_cc_flags): Remove.
7335 (pass_build_alias): Move ...
7336 * tree-ssa-structalias.c (pass_build_alias): ... here.
7337 * tree-ssa-alias.c (may_be_aliased): Move ...
7338 * tree-flow-inline.h (may_be_aliased): ... here.
7339 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
7340 count_uses_and_derefs): Move ...
7341 * gimple.c: ... here.
7342 * gimple.h (count_uses_and_derefs): Declare.
7343 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
7344 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
7345 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
7346 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
7347 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
7348 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
7349 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
7351 * tree-dfa.c (refs_may_alias_p): Move ...
7352 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
7353 * tree-ssa-alias.h: New file.
7354 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
7355 (statement_sink_location): Likewise.
7356 * opts.c (decode_options): Do not adjust max-aliased-vops or
7357 avg-aliased-vops values.
7358 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
7359 (TV_CALL_CLOBBER): Likewise.
7360 (TV_FLOW_SENSITIVE): Likewise.
7361 (TV_FLOW_INSENSITIVE): Likewise.
7362 (TV_MEMORY_PARTITIONING): Likewise.
7363 (TV_ALIAS_STMT_WALK): New timevar.
7364 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
7365 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
7366 (get_address_description): Remove memory-tag related code.
7367 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
7368 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
7369 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
7370 and immediate uses in statements. Document.
7371 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
7372 (dump_symbols): Remove.
7373 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
7374 * alias.c (get_deref_alias_set): New function split out from ...
7375 (get_alias_set): ... here.
7376 * alias.h (get_deref_alias_set): Declare.
7377 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
7378 type parameter. Remove restrict pointer handling. Create a
7379 ref-all pointer in case type-based alias sets do not conflict.
7380 (vect_analyze_data_refs): Remove SMT related code.
7381 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
7382 (vectorizable_load): Likewise.
7383 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
7384 (DR_SYMBOL_TAG, DR_VOPS): Remove.
7385 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
7386 Ignore vops and SMTs.
7387 (dr_analyze_alias): Likewise..
7388 (free_data_ref): Likewise.
7389 (create_data_ref): Likewise.
7390 (analyze_all_data_dependences): Likewise.
7391 (get_references_in_stmt): Adjust.
7392 * tree-flow-inline.h (gimple_aliases_computed_p,
7393 gimple_addressable_vars, gimple_call_clobbered_vars,
7394 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
7395 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
7396 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
7397 gimple_mem_ref_stats): Remove.
7398 (gimple_vop): New function.
7399 (op_iter_next_use): Remove vuses and mayuses cases.
7400 (op_iter_next_def): Remove vdefs case.
7401 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
7402 (clear_and_done_ssa_iter): Do not set removed fields.
7403 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
7404 Assert we are not iterating over vuses or vdefs if not also
7405 iterating over uses or defs.
7406 (op_iter_init_use): Likewise.
7407 (op_iter_init_def): Likewise.
7408 (op_iter_next_vdef): Remove.
7409 (op_iter_next_mustdef): Likewise.
7410 (op_iter_init_vdef): Likewise.
7411 (compare_ssa_operands_equal): Likewise.
7412 (link_use_stmts_after): Handle vuse operand.
7413 (is_call_used): Use is_call_clobbered.
7414 (is_call_clobbered): Global variables are always call clobbered,
7415 query the call-clobbers bitmap.
7416 (mark_call_clobbered): Ignore global variables.
7417 (clear_call_clobbered): Likewise.
7418 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
7419 virtual operands sanity check.
7420 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
7422 (TARGET_MEM_REF): Remove TMR_TAG operand.
7423 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
7424 Remove call-clobber related code.
7425 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
7426 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
7427 partitions or escape reason.
7428 (get_single_def_stmt, get_single_def_stmt_from_phi,
7429 get_single_def_stmt_with_phi): Remove.
7430 (dump_referenced_vars): Tidy.
7431 (get_ref_base_and_extent): Allow bare decls.
7432 (collect_dfa_stats): Adjust.
7433 * graphite.c (rename_variables_in_stmt): Adjust.
7434 (graphite_copy_stmts_from_block): Likewise.
7435 (translate_clast): Likewise.
7436 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
7438 (translate_vuse_through_block): Use the oracle.
7439 (phi_translate_1): Adjust.
7440 (value_dies_in_block_x): Use the oracle. Cache the outcome
7442 (valid_in_sets): Check if the VUSE for
7443 a REFERENCE is available.
7444 (eliminate): Do not remove stmts during elimination,
7445 instead queue and remove them afterwards.
7446 (do_pre): Do not rebuild alias info.
7447 (pass_pre): Run TODO_rebuild_alias before PRE.
7448 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
7449 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
7450 (mark_all_v_defs_stmt): Remove.
7451 (mark_all_v_defs_seq): Adjust.
7452 (sra_replace): Likewise.
7453 (scalarize_use): Likewise.
7454 (scalarize_copy): Likewise.
7455 (scalarize_init): Likewise.
7456 (scalarize_ldst): Likewise.
7457 (todoflags): Remove.
7458 (tree_sra): Do not rebuild alias info.
7459 (tree_sra_early): Adjust.
7460 (pass_sra): Run TODO_update_address_taken before SRA.
7461 * tree-predcom.c (set_alias_info): Remove.
7462 (prepare_initializers_chain): Do not call it.
7463 (mark_virtual_ops_for_renaming): Adjust.
7464 (mark_virtual_ops_for_renaming_list): Remove.
7465 (initialize_root_vars): Adjust.
7466 (initialize_root_vars_lm): Likewise.
7467 (prepare_initializers_chain): Likewise.
7468 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
7469 (may_propagate_copy_into_stmt): Likewise.
7470 (merge_alias_info): Do nothing for now.
7471 (propagate_tree_value_into_stmt): Adjust.
7472 (stmt_may_generate_copy): Likewise.
7473 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
7474 not mark symbols for renaming.
7475 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
7476 with the same statement, make sure to update the new pointed-to one.
7477 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
7478 call statements, do not mark symbols for renaming.
7479 (mark_operand_necessary): Dump something.
7480 (ref_may_be_aliased): New function.
7481 (mark_aliased_reaching_defs_necessary_1): New helper function.
7482 (mark_aliased_reaching_defs_necessary): Likewise.
7483 (mark_all_reaching_defs_necessary_1): Likewise.
7484 (mark_all_reaching_defs_necessary): Likewise.
7485 (propagate_necessity): Do not process virtual PHIs. For
7486 non-aliased loads mark all reaching definitions as necessary.
7487 For aliased loads and stores mark the immediate dominating
7488 aliased clobbers as necessary.
7489 (visited): New global static.
7490 (perform_tree_ssa_dce): Free visited bitmap after propagating
7492 (remove_dead_phis): Perform simple dead virtual PHI removal.
7493 (remove_dead_stmt): Properly unlink virtual operands when
7495 (eliminate_unnecessary_stmts): Schedule PHI removal after
7497 * tree-ssa-ter.c (is_replaceable_p): Adjust.
7498 (process_replaceable): Likewise.
7499 (find_replaceable_in_bb): Likewise.
7500 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
7501 based on the single gimple vop.
7502 (verify_flow_insensitive_alias_info): Remove.
7503 (verify_flow_sensitive_alias_info): Likewise.
7504 (verify_call_clobbering): Likewise.
7505 (verify_memory_partitions): Likewise.
7506 (verify_alias_info): Likewise.
7507 (verify_ssa): Adjust..
7508 (execute_update_addresses_taken): Export. Update SSA
7509 manually. Optimize only when optimizing. Use a local bitmap.
7510 (pass_update_address_taken): Remove TODO_update_ssa, add
7512 (pass_update_address_taken): Just use TODO_update_address_taken.
7513 (init_tree_ssa): Do not initialize addressable_vars.
7514 (verify_ssa): Verify new VUSE / VDEF properties.
7515 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
7516 Do not call verify_alias_info.
7517 (delete_tree_ssa): Clear the VUSE, VDEF operands.
7518 Do not free the loaded and stored syms bitmaps. Reset the escaped
7519 and callused solutions. Do not free addressable_vars.
7520 Remove memory-tag related code.
7521 (warn_uninitialized_var): Aliases are always available.
7522 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
7523 * lambda-code.c (can_put_in_inner_loop): Adjust.
7524 (can_put_after_inner_loop): Likewise.
7525 (perfect_nestify): Likewise.
7526 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
7527 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
7528 (vectorizable_conversion): Do not mark symbols for renaming.
7529 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
7530 (expand_call_inline): Unlink the calls virtual operands before
7532 (tree_function_versioning): Do not call update_ssa if we are not
7533 updating clones. Simplify.
7534 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
7535 (propagate_with_phi): Likewise..
7536 * tree-outof-ssa.c (create_temp): Remove memory tag and call
7537 clobber code. Assert we are not aliased or global.
7538 * tree-flow.h: Include tree-ssa-alias.h
7539 (enum escape_type): Remove.
7540 (struct mem_sym_stats_d): Likewise.
7541 (struct mem_ref_stats_d): Likewise.
7542 (struct gimple_df): Add vop member. Remove global_var,
7543 call_clobbered_vars, call_used_vars, addressable_vars,
7544 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
7545 escaped and callused members.
7546 (struct ptr_info_def): Remove all members, add points-to solution
7548 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
7549 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
7550 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
7551 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
7552 (tree-ssa-alias.o): Likewise.
7553 (toplev.o): Add tree-ssa-alias.h
7554 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
7555 * gimple.c (gimple_set_bb): Fix off-by-one error.
7556 (is_gimple_reg): Do not handle memory tags.
7557 (gimple_copy): Also copy virtual operands.
7558 Delay updating the statement. Do not reset loaded and stored syms.
7559 (gimple_set_stored_syms): Remove.
7560 (gimple_set_loaded_syms): Likewise.
7561 (gimple_call_copy_skip_args): Copy the virtual operands
7562 and mark the new statement modified.
7563 * tree-ssa-structalias.c (may_alias_p): Remove.
7564 (set_uids_in_ptset): Take the alias set to prune with as
7565 parameter. Fold in the alias test of may_alias_p.
7566 (compute_points_to_sets): Compute whether a ptr is dereferenced
7568 (process_constraint): Deal with &ANYTHING on the lhs, reject all
7569 other ADDRESSOF constraints on the lhs.
7570 (get_constraint_for_component_ref): Assert that we don't get
7571 ADDRESSOF constraints from the base of the reference.
7572 Properly generate UNKNOWN_OFFSET for DEREF if needed.
7573 (struct variable_info): Remove collapsed_to member.
7574 (get_varinfo_fc): Remove.
7575 (new_var_info): Do not set collapsed_to.
7576 (dump_constraint): Do not follow cycles.
7577 (dump_constraint_graph): Likewise.
7578 (build_pred_graph): Likewise.
7579 (build_succ_graph): Likewise.
7580 (rewrite_constraints): Likewise.
7581 (do_simple_structure_copy): Remove.
7582 (do_rhs_deref_structure_copy): Remove.
7583 (do_lhs_deref_structure_copy): Remove.
7584 (collapse_rest_of_var): Remove.
7585 (do_structure_copy): Re-implement.
7586 (pta_stats): New global variable.
7587 (dump_pta_stats): New function.
7588 (struct constraint_expr): Make offset signed.
7589 (UNKNOWN_OFFSET): Define special value.
7590 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
7591 (solution_set_expand): New helper function split out from ...
7592 (do_sd_constraint): ... here.
7593 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
7594 (do_ds_constraint): Likewise.
7595 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
7596 and CALLUSED = *CALLUSED.
7597 (set_union_with_increment): Make inc argument signed.
7598 (type_safe): Remove.
7599 (get_constraint_for_ptr_offset): Handle unknown and negative
7601 (first_vi_for_offset): Handle offsets before start. Bail
7602 out early for offsets beyond the variable extent.
7603 (first_or_preceding_vi_for_offset): New function.
7604 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
7605 Together with ESCAPED = *ESCAPED this properly computes reachability.
7606 (find_what_var_points_to): New function.
7607 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
7608 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
7609 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
7610 pt_solutions_intersect): New functions.
7611 (compute_call_used_vars): Remove.
7612 (compute_may_aliases): New main entry into PTA computation.
7613 * gimple.h (gimple_p): New typedef.
7614 (struct gimple_statement_base): Remove references_memory_p.
7615 (struct gimple_statement_with_memory_ops_base): Remove
7616 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
7618 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
7619 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
7620 gimple_set_references_memory): Remove.
7621 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
7622 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
7624 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
7625 (verify_expr): Allow RESULT_DECL.
7626 (gimple_duplicate_bb): Do not copy virtual operands.
7627 (gimple_duplicate_sese_region): Adjust.
7628 (gimple_duplicate_sese_tail): Likewise.
7629 (mark_virtual_ops_in_region): Remove.
7630 (move_sese_region_to_fn): Do not call it.
7631 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
7632 and pass_simple_dse.
7633 (execute_function_todo): Handle TODO_update_address_taken,
7634 call execute_update_addresses_taken for TODO_rebuild_alias.
7635 (execute_todo): Adjust.
7636 (execute_one_pass): Init dump files early.
7637 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
7639 (create_general_new_stmt): Clear vops.
7640 * tree-ssa-reassoc.c (get_rank): Adjust.
7641 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
7642 symbols for renaming.
7643 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
7644 (PARAM_AVG_ALIASED_VOPS): Likewise.
7645 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
7646 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7647 * tree-ssa-operands.c: Simplify for new virtual operand representation.
7648 (operand_build_cmp, copy_virtual_operands,
7649 create_ssa_artificial_load_stmt, add_to_addressable_set,
7650 gimple_add_to_addresses_taken): Remove public functions.
7651 (unlink_stmt_vdef): New function.
7653 2009-04-03 Alan Modra <amodra@bigpond.net.au>
7655 * config.gcc (powerpc-*-linux*): Merge variants.
7657 2009-04-02 Chao-ying Fu <fu@mips.com>
7658 James Grosbach <james.grosbach@microchip.com>
7660 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
7661 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
7663 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
7664 keep_interrupts_masked_p, use_debug_exception_return_p.
7665 (mips_attribute_table): Add interrupt, use_shadow_register_set,
7666 keep_interrupts_masked, use_debug_exception_return.
7667 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
7668 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
7670 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
7671 (mips_print_operand): Process COP0 registers to print $0 .. $31
7672 correctly for GAS to process.
7673 (mips_interrupt_extra_call_saved_reg_p): New function.
7674 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
7676 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
7677 (mips_compute_frame_info): Add supports for interrupt context that
7678 includes doubleword accumulators and COP0 registers.
7679 (mips_for_each_saved_acc): New function.
7680 (mips_for_each_saved_gpr_and_fpr): Change the function name from
7681 mips_for_each_saved_reg.
7682 (mips_save_reg): Save accumulators.
7683 (mips_kernel_reg_p): A new for_each_rtx callback.
7684 (mips_expand_prologue): Support interrupt handlers.
7685 (mips_restore_reg): Restore accumulators.
7686 (mips_expand_epilogue): Support interrupt handlers.
7687 (mips_can_use_return_insn): Return false for interrupt handlers.
7688 (mips_epilogue_uses): New function.
7689 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
7690 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
7691 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
7692 cop0_move): New instructions.
7693 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
7694 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
7696 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
7698 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
7699 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
7700 interrupt handlers, we use K0 as the temporary register.
7701 (EPILOGUE_USES): Change to a function call.
7702 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
7703 handlers, we use K0 as the temporary register.
7705 * doc/extend.texi (Function Attributes): Document interrupt,
7706 use_shadow_register_set, keep_interrupts_masked,
7707 use_debug_exception_return for MIPS attributes.
7709 2009-04-03 Alan Modra <amodra@bigpond.net.au>
7711 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
7712 Remove a number of t-files from tmake_file.
7713 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
7714 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
7715 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7716 target_prototype, not TARGET_PROTOTYPE.
7717 (LINK_OS_GNU_SPEC): Define.
7718 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
7719 and darwin-ldoubdle.c.
7721 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7724 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
7725 (cpp_options): Ditto.
7726 (default_compilers): Ditto.
7727 (display_help): Ditto.
7728 (process_command): Ditto.
7730 (set_input): Use lbasename instead of duplicate code.
7731 (save_temps_prefix): New static for -save-temps=obj.
7732 (save_temps_length): Ditto.
7734 * doc/invoke.texi (-save-temps=obj): Document new variant to
7737 2009-04-02 Jeff Law <law@redhat.com>
7739 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
7742 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7744 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
7745 * configure: Regenerated.
7747 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
7749 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
7750 share the argument list.
7752 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
7756 2009-02-12 Diego Novillo <dnovillo@google.com>
7758 * varpool.c (debug_varpool): New.
7759 * cgraph.h (debug_varpool): Declare.
7761 2009-04-02 Jan Hubicka <jh@suse.cz>
7763 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
7766 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7768 * config/i386/i386.c (ix86_abi): Move initialization to ...
7769 (override_options): Here.
7771 2009-04-02 Christian Bruel <christian.bruel@st.com>
7773 * config/sh/sh.c (sh_dwarf_register_span): New function.
7774 (TARGET_DWARF_REGISTER_SPAN): Define.
7775 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
7777 2009-04-02 Ira Rosen <irar@il.ibm.com>
7779 PR tree-optimization/39595
7780 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
7781 interleaved loads group is not greater than the SLP group size.
7783 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
7785 * builtins.c (is_builtin_name): New.
7786 (called_as_built_in): Use is_builtin_name.
7787 * tree.h (is_builtin_name): New.
7788 * varasm.c (incorporeal_function_p): Use is_builtin_name
7790 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
7792 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
7794 2009-04-02 Dodji Seketeli <dodji@redhat.com>
7797 * c-decl.c (clone_underlying_type): Move this ...
7798 * c-common.c (set_underlying_type): ... here.
7799 Also, make sure the function properly sets TYPE_STUB_DECL() on
7800 the newly created typedef variant type.
7801 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7802 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
7805 2009-04-02 Richard Guenther <rguenther@suse.de>
7807 PR tree-optimization/37221
7808 * tree-flow.h (degenerate_phi_result): Declare.
7809 * tree-ssa-dom.c (degenerate_phi_result): Export.
7810 * tree-scalar-evolution.c (analyze_initial_condition): If
7811 the initial condition is defined by a degenerate PHI node
7812 use the degenerate value.
7814 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
7816 PR rtl-optimization/39588
7817 * combine.c (merge_outer_ops): Do not set the constant when this
7819 (simplify_shift_const_1): Do not modify it either in this case.
7821 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
7823 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
7824 tuning is deprecated if -mtune value is set to an Itanium1 variant.
7826 2009-04-01 Janis Johnson <janis187@us.ibm.com>
7829 * c-lex.c (interpret_float): Default (no suffix) is double.
7831 2009-04-1 Xinliang David Li <davidxl@google.com>
7833 * config/i386/i386.c (legitimate_constant_p): Recognize
7834 all one vector constant.
7836 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7838 * config/vax/vax.c: Add #includes to silence warnings.
7839 Change #include order to silence two warnings.
7841 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7843 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
7844 (ASM_SPEC): Pass -k to the assembler for PIC code.
7846 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7848 * config.gcc: Add vax-*-linux* to the switch.
7849 * config/vax/linux.h: New file. (TARGET_VERSION,
7850 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
7852 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7854 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
7855 Use predicate macros instead of GET_CODE() == foo.
7856 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
7857 ashlsi3, rotrsi3, <unnamed>): Likewise.
7859 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7861 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
7862 jbbccihi, jbbccisi): Remova trailing whitespace.
7863 * config/vax/constraints.md: Likewise.
7864 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7865 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
7866 * config/vax/predicates.md: Likewise.
7867 * config/vax/vax.c (print_operand_address, vax_output_int_move,
7868 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
7869 * config/vax/vax.h: Likewise.
7870 * config/vax/vax.md (nonlocal_goto): Likewise.
7872 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7874 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
7875 (indirectable_address_p, adjacent_operands_p): Add spaces around
7877 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
7879 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7881 * config/vax/vax.c (legitimate_constant_address_p,
7882 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
7883 index_term_p, reg_plus_index_p, legitimate_address_p,
7884 vax_mode_dependent_address_p): Update comments to match functions
7885 modified by the recent int->bool conversion.
7887 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7889 * config/vax/builtins.md: Update copyright message.
7890 * config/vax/constraints.md: Likewise.
7891 * config/vax/netbsd-elf.h: Likewise.
7892 * config/vax/predicates.md: Likewise.
7893 * config/vax/vax-protos.h: Likewise.
7894 * config/vax/vax.c: Likewise.
7895 * config/vax/vax.h: Likewise.
7896 * config/vax/vax.md: Likewise.
7897 * config/vax/vax.opt: Likewise.
7899 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
7901 * config/vax/builtins.md (ffssi2, ffssi2_internal,
7902 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
7903 * config/vax/constraints.md (B, R): Likewise.
7904 * config/vax/predicates.md (external_memory_operand,
7905 nonimmediate_addsub_di_operand): Likewise.
7906 * config/vax/vax.c (vax_output_int_add): Likewise.
7907 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
7908 untyped_call): Likewise.
7910 2009-04-01 Matt Thomas <matt@3am-software.com>
7912 * config/vax/predicates.md: New file.
7913 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
7914 external_const_operand, nonsymbolic_operand, external_memory_operand,
7915 indirect_memory_operand, indexed_memory_operand,
7916 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
7917 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
7919 * config/vax/constraints.md: New file.
7920 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
7922 * config/vax/builtins.md: New file.
7923 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
7924 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
7926 * config/vax/vax.opt (mqmath): Add option.
7927 * config/vax/vax.md (isfx): Extend with DI.
7928 (VAXintQH, VAXintQHSD): Define.
7929 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
7930 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
7931 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
7932 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
7933 (movdi): Update constraints and use vax_output_int_move().
7934 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
7935 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
7936 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
7937 nonlocal_goto): New.
7938 (mov<mode>): Extend accepted operand types.
7939 (subdi3_old): Rename from subdi3, change update constraints and use
7940 a new implementation.
7941 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
7942 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
7943 MOVE_RATIO, CLEAR_RATIO): Define.
7944 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
7945 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
7946 (PRINT_OPERAND): Redefine using a function instead of inlined code.
7947 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7948 (split_quadword_operands): Make static and really allow variable
7950 (print_operand_address): Update for PIC generation.
7951 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
7952 indexable_address_p, fixup_mathdi_operand,
7953 vax_expand_addsub_di_operands, adjacent_operands_p): New.
7954 (vax_float_literal, legitimate_constant_p,
7955 indirectable_constant_address_p, index_term_p,
7956 reg_plus_index_p): Return bool instead of int.
7957 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
7959 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
7961 (vax_output_conditional_branch): Indent.
7962 (legitimate_constant_address_p, indirectable_constant_address_p,
7963 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
7964 vax_mode_dependent_address_p): Return bool instead of int, update for
7966 * config/vax/vax-protos.h (legitimate_constant_address_p,
7967 legitimate_constant_p, legitimate_address_p,
7968 vax_mode_dependent_address_p): Change declaration to bool.
7969 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
7970 vax_expand_addsub_di_operands, vax_output_int_subtract,
7971 vax_output_movmemsi): Declare.
7972 (split_quadword_operands, vax_float_literal): Delete declaration.
7973 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
7974 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
7975 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
7976 ASM_OUTPUT_DWARF_PCREL): Define.
7977 (ASM_SPEC): Change definition to allow PIC generation.
7979 2009-04-01 Steve Ellcey <sje@cup.hp.com>
7981 * doc/sourcebuild.texi: Update front-end requirements.
7983 2009-04-01 Jakub Jelinek <jakub@redhat.com>
7986 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
7987 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
7988 (booldi3_internal3): Use boolean_or_operator instead of
7991 2009-04-01 Joseph Myers <joseph@codesourcery.com>
7994 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
7995 declarator whose size is not an integer constant expression but
7996 folds to an integer constant, then treat it as a constant
7999 2009-04-01 Richard Guenther <rguenther@suse.de>
8001 * fold-const.c (fold_plusminus_mult_expr): Do not fold
8002 i * 4 + 2 to (i * 2 + 1) * 2.
8004 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8007 * c-parser.c (c_parser_asm_statement): Skip until close paren and
8008 return if c_parser_asm_string_literal returned NULL.
8010 2009-04-01 Nick Clifton <nickc@redhat.com>
8012 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
8014 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
8015 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
8016 other typedefs to avoid conflicts with libgcc2.c. Define labels
8017 to gain 16-bit bit-manipulation functions from libgcc2.c and then
8019 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
8020 to gain 16-bit trapping arithmetic functions from libgcc2.c and
8023 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
8025 * varasm.c (default_function_rodata_section): Declare DOT as
8028 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
8029 Andrey Galkin <agalkin@hypercom.com>
8032 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
8033 Make object_name unique for each process.
8035 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8038 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
8039 addressable variables in the parallel that could go out of scope while
8040 running queued tasks.
8042 2009-04-01 Anatoly Sokolov <aesok@post.ru>
8044 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
8045 (CASE_VALUES_THRESHOLD): Redefine.
8046 * config/avr/avr.c (avr_override_options): Remove initialization of
8047 avr_case_values_threshold variable.
8048 (avr_case_values_threshold): Remove variable. Add new function.
8049 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
8050 * config/avr/avr.opt (mno-tablejump): Remove option.
8051 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
8053 2009-04-01 DJ Delorie <dj@redhat.com>
8055 * varasm.c (default_function_rodata_section): Don't assume
8056 anything about where the first '.' in the section name is.
8058 2009-04-01 Alan Modra <amodra@bigpond.net.au>
8060 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
8061 rs6000_emit_stack_tie.
8063 2009-03-31 Ian Lance Taylor <iant@google.com>
8065 * tree-eh.c (tree_remove_unreachable_handlers): Compare
8066 gimple_code with GIMPLE_RESX, not RESX.
8068 2009-03-31 Joseph Myers <joseph@codesourcery.com>
8070 * c-common.c (c_get_ident): New.
8071 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
8073 2009-04-01 Ben Elliston <bje@au.ibm.com>
8075 * config/rs6000/sysv4.opt (msdata): Improve option description.
8077 2009-03-31 Steve Ellcey <sje@cup.hp.com>
8079 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
8080 (divdf3_internal_lat): Remove.
8081 (divxf3_internal_lat): Remove.
8082 (divxf3_internal_thr): Remove.
8083 (divxf): Use divxf3_internal.
8084 * config/ia64/div.md (divsf3_internal_lat): New.
8085 (divdf3_internal_lat): New.
8086 (divxf3_internal): New.
8088 2009-03-31 Joseph Myers <joseph@codesourcery.com>
8091 * Makefile.in (USE_GCC_STDINT): Define.
8092 (stmp-int-hdrs): Install stdint.h if applicable.
8093 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
8095 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
8096 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
8097 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
8098 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8099 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8100 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8101 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8102 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8103 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8104 (c_common_nodes_and_builtins): Initialize
8105 underlying_wchar_type_node. Do not initialize
8106 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
8107 nodes for new types.
8108 (c_stddef_cpp_builtins): Define macros for new types.
8109 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
8111 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
8112 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
8113 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
8114 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
8115 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
8116 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
8117 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
8118 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
8119 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
8120 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
8121 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
8122 int16_type_node, int32_type_node, int64_type_node,
8123 uint8_type_node, uint16_type_node, c_uint32_type_node,
8124 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
8125 int_least32_type_node, int_least64_type_node,
8126 uint_least8_type_node, uint_least16_type_node,
8127 uint_least32_type_node, uint_least64_type_node,
8128 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
8129 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
8130 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
8131 uintptr_type_node): Define.
8132 * c-cppbuiltin.c (builtin_define_constants,
8133 builtin_define_type_minmax): New.
8134 (builtin_define_stdint_macros): Define more macros.
8135 (c_cpp_builtins): Define more limit macros.
8137 (builtin_define_type_max): Define in terms of
8138 builtin_define_type_minmax. Remove is_long parameter. All
8140 * config.gcc (use_gcc_stdint): Define.
8141 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
8142 Add newlib-stdint.h for generic targets.
8143 * config/glibc-stdint.h, config/newlib-stdint.h,
8144 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
8145 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
8146 * config/score/score.h (UINTPTR_TYPE): Define.
8147 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
8148 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
8149 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8150 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8151 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8152 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8153 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8154 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8155 * config/spu/spu.h (STDINT_LONG32): Define.
8156 * configure.ac (use_gcc_stdint): Substitute.
8157 * configure: Regenerate.
8158 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
8159 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
8160 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
8161 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
8162 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
8163 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
8164 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
8165 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
8166 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
8167 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
8168 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
8169 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
8170 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
8171 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
8172 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
8173 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
8174 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
8175 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
8176 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
8177 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
8178 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
8179 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
8180 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
8181 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8182 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8183 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8184 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8185 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8186 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
8188 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
8190 * loop-iv.c (suitable_set_for_replacement): Renamed from
8191 simplify_using_assignment; changed to return bool and to accept new
8192 args DEST and SRC. Return true iff we find a source/destination pair
8193 that can be used to make a replacement, and fill SRC and DEST if so.
8194 Remove arg ALTERED. Don't deal with altered regs here. All callers
8196 (simplify_using_initial_values): Deal with altered regs here and track
8197 more precisely the effect they have on the validity of our expression.
8199 * loop-iv.c (simplify_using_condition): A condition of the form
8200 (EQ REG CONST) can be used to simply make a substitution.
8201 (simplify_using_initial_values): Keep track of conditions we have seen
8202 and keep using them to simplify new expressions, while applying the
8203 same substitutions to them as to the expression.
8205 * simplify-rtx.c (simplify_relational_operation_1): Simplify
8206 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
8209 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
8210 changed. Use this when trying to improve the upper bound.
8211 Generate the comparison by using simplify_gen_relational.
8213 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
8215 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
8217 (simplify_using_assignment, simplify_using_initial_values): Call
8218 replace_in_expr to make replacements. Call replace_single_def_regs
8219 once on the initial version of the expression.
8221 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8224 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
8226 2009-03-31 Richard Guenther <rguenther@suse.de>
8229 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
8230 equality comparisons. Fold C - X CMP X if C % 2 == 1.
8232 2009-03-31 Richard Guenther <rguenther@suse.de>
8234 * tree.h (div_if_zero_remainder): Declare.
8235 * fold-const.c (div_if_zero_remainder): Export.
8236 * tree-ssa-forwprop.c
8237 (forward_propagate_addr_into_variable_array_index): Handle
8238 constant array index addition outside of the variable index.
8240 2009-03-31 Joseph Myers <joseph@codesourcery.com>
8243 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
8244 define_splits, floatunssi<mode>2): Require x87 conversions from
8245 DImode to be permitted.
8247 2009-03-31 Joseph Myers <joseph@codesourcery.com>
8249 PR preprocessor/15638
8250 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
8252 2009-03-31 Richard Guenther <rguenther@suse.de>
8256 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
8257 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
8258 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
8259 a separate statement.
8260 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
8261 (lookup_tmp_var): Likewise.
8262 (is_gimple_formal_tmp_or_call_rhs): Remove.
8263 (is_gimple_reg_or_call_rhs): Rename to ...
8264 (is_gimple_reg_rhs_or_call): ... this.
8265 (is_gimple_mem_or_call_rhs): Rename to ...
8266 (is_gimple_mem_rhs_or_call): ... this.
8267 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
8268 DECL_GIMPLE_REG_P only if is_formal is true.
8269 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
8270 for non-proper post-modify expression gimplification.
8271 (gimplify_self_mod_expr): For post-modify expressions gimplify
8272 the lvalue to a minimal lvalue.
8273 (rhs_predicate_for): Remove formal temp case.
8274 (gimplify_modify_expr_rhs): Likewise.
8275 (gimplify_addr_expr): Use is_gimple_reg.
8276 (gimplify_expr): Remove formal temp cases.
8277 (gimple_regimplify_operands): Likewise.
8278 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
8279 and FILTER_EXPR like constants.
8280 * gimple.c (walk_gimple_op): Fix val_only initialization, use
8282 (is_gimple_formal_tmp_rhs): Remove.
8283 (is_gimple_reg_rhs): Remove special casing.
8284 (is_gimple_mem_rhs): Fix.
8285 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
8286 (is_gimple_formal_tmp_var): Remove.
8287 (is_gimple_formal_tmp_reg): Likewise.
8288 (is_gimple_min_lval): Allow invariant component ref parts.
8289 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
8290 is_gimple_formal_tmp_reg): Remove declarations.
8291 * tree-cfg.c (verify_expr): Verify that variables with address
8292 taken do not have DECL_GIMPLE_REG_P set.
8293 * tree-mudflap.c (mf_build_check_statement_for): Use
8294 force_gimple_operand instead of gimplify_expr.
8296 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
8298 * modulo-sched.c (sms_schedule_by_order): Pass the actual
8299 schedulable rows to compute_split_row.
8301 2009-03-31 Ben Elliston <bje@au.ibm.com>
8304 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
8307 2009-03-31 Alan Modra <amodra@bigpond.net.au>
8309 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
8310 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
8311 * configure: Regenerate.
8312 * config.in: Regenerate.
8313 * config/rs6000/rs6000.opt (mtls-markers): Add.
8314 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
8315 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
8316 (tls_ld_aix, tls_ld_sysv): Likewise.
8317 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
8318 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
8320 2009-03-31 Alan Modra <amodra@bigpond.net.au>
8322 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
8324 2009-03-30 Jan Hubicka <jh@suse.cz>
8326 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
8328 (tree_remove_unreachable_handlers): Cleanup EH predecestor
8329 detection and label handling.
8331 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
8333 * ira-int.h (ira_allocno): Rename left_conflicts_num to
8334 left_conflicts_size.
8335 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
8336 ALLOCNO_LEFT_CONFLICTS_SIZE.
8338 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
8339 remove_allocno_from_bucket_and_push,
8340 allocno_spill_priority_compare, push_allocnos_to_stack,
8341 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
8342 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
8343 (setup_allocno_left_conflicts_num): Ditto. Rename to
8344 setup_allocno_left_conflicts_size.
8345 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
8346 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
8347 setup_allocno_left_conflicts_size instead of
8348 setup_allocno_left_conflicts_num.
8350 * ira-build.c (ira_create_allocno): Use
8351 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
8352 ALLOCNO_LEFT_CONFLICTS_NUM.
8354 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
8356 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
8357 instead of DF_LR_OUT.
8359 * ira-lives.c (process_bb_node_lives): Ditto.
8361 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
8362 instead of DF_LR_{OUT,IN}.
8364 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
8366 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
8368 2009-03-30 Jan Hubicka <jh@suse.cz>
8370 * except.c (label_to_region_map): Fix thinko.
8372 2009-03-30 Steve Ellcey <sje@cup.hp.com>
8375 * tree.h (tree_find_value): New declaration.
8376 * tree.c (tree_find_value): New function.
8377 * varasm.c (assemble_external): Avoid duplicate entries on lists.
8379 2009-03-30 Jakub Jelinek <jakub@redhat.com>
8382 * c-decl.c (struct c_binding): Add locus field.
8383 (bind): Add locus argument, set locus field from it.
8384 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
8385 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
8386 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
8387 implicitly_declare, undeclared_variable, lookup_label,
8388 declare_label, c_make_fname_decl, c_builtin_function,
8389 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
8392 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
8395 * config/i386/i386.c (classify_argument): Check total size of
8398 2009-03-30 Martin Jambor <mjambor@suse.cz>
8400 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
8401 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
8402 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
8405 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
8406 seen_variable_array_ref while also traversing a union.
8408 * tree-inline.c (optimize_inline_calls): Do not call
8409 cgraph_node_remove_callees.
8410 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
8411 (pass_remove_cgraph_callee_edges): New variable.
8412 * passes.c (init_optimization_passes): Add
8413 pass_remove_cgraph_callee_edges after early inlining and before all
8414 late intraprocedural passes.
8416 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
8418 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8420 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
8423 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8425 * combine.c (simplify_comparison): Use have_insn_for.
8426 * dojump.c (do_jump): Likewise.
8428 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8430 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
8431 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
8432 sparc_compare_op0 like sparc_compare_emitted used to be handled.
8433 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
8434 instead of sparc_compare_emitted.
8435 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
8436 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
8437 instead of sparc_compare_emitted.
8439 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8441 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
8442 enter/exit cfglayout mode.
8443 (pass_partition_block): Require it.
8444 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
8445 (combine_instructions): Track basic blocks instead of labels.
8446 (update_cfg_for_uncondjump): New.
8447 (try_combine): Use it. Update jumps after rescanning.
8448 (pass_combine): Require PROP_cfglayout.
8449 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
8451 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8453 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
8454 Provide/destroy PROP_cfglayout respectively.
8455 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
8456 * tree-pass.h (PROP_cfglayout): New.
8458 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8460 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
8461 fold_convert_const_fixed_from_fixed,
8462 fold_convert_const_fixed_from_int,
8463 fold_convert_const_fixed_from_real, fold_negate_const): Do not
8464 set TREE_CONSTANT_OVERFLOW.
8465 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
8466 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
8468 2009-03-30 Ira Rosen <irar@il.ibm.com>
8470 * tree-vect-loop-manip.c: New file.
8471 * tree-vectorizer.c: Update documentation and included files.
8472 (vect_loop_location): Make extern.
8473 (rename_use_op): Move to tree-vect-loop-manip.c
8474 (rename_variables_in_bb, rename_variables_in_loop,
8475 slpeel_update_phis_for_duplicate_loop,
8476 slpeel_update_phi_nodes_for_guard1,
8477 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
8478 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
8479 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
8480 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
8481 find_loop_location): Likewise.
8482 (new_stmt_vec_info): Move to tree-vect-stmts.c.
8483 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
8484 get_vectype_for_scalar_type, vect_is_simple_use,
8485 supportable_widening_operation, supportable_narrowing_operation):
8487 (bb_in_loop_p): Move to tree-vect-loop.c.
8488 (new_loop_vec_info, destroy_loop_vec_info,
8489 reduction_code_for_scalar_code, report_vect_op,
8490 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
8491 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
8492 (vect_supportable_dr_alignment): Likewise.
8493 * tree-vectorizer.h (tree-data-ref.h): Include.
8494 (vect_loop_location): Declare.
8495 Reorganize function declarations according to the new file structure.
8496 * tree-vect-loop.c: New file.
8497 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
8498 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
8499 * tree-vect-data-refs.c: New file.
8500 * tree-vect-patterns.c (timevar.h): Don't include.
8501 * tree-vect-stmts.c: New file.
8502 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
8503 tree-vect-slp.c, tree-vect-loop.c.
8504 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
8505 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
8506 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
8507 (tree-vect-analyze.o): Remove.
8508 (tree-vect-transform.o): Likewise.
8509 (tree-vect-data-refs.o): Add rule.
8510 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
8511 tree-vect-slp.o): Likewise.
8512 (tree-vect-patterns.o): Remove redundant dependencies.
8513 (tree-vectorizer.o): Likewise.
8514 * tree-vect-slp.c: New file.
8516 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8518 * optc-gen.awk: Warn if an option flag has multiple different
8521 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
8523 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
8524 -floop-block): Document dependences on PPL, CLooG and Graphite.
8526 2009-03-30 Joseph Myers <joseph@codesourcery.com>
8528 PR rtl-optimization/323
8529 * c-common.c (c_fully_fold, convert_and_check,
8530 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
8531 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
8532 * c-common.def (EXCESS_PRECISION_EXPR): New.
8533 * c-cppbuiltin.c (builtin_define_float_constants): Define
8534 constants with enough digits for long double.
8535 * c-lex.c (interpret_float): Interpret constant with excess
8536 precision where appropriate.
8537 * c-opts.c (c_common_post_options): Set
8538 flag_excess_precision_cmdline. Give an error for
8539 -fexcess-precision=standard for C++ for processors where the
8540 option is significant.
8541 * c-parser.c (c_parser_conditional_expression): Handle excess
8542 precision in condition.
8543 * c-typeck.c (convert_arguments): Handle arguments with excess
8545 (build_unary_op): Move excess precision outside operation.
8546 (build_conditional_expr): Likewise.
8547 (build_compound_expr): Likewise.
8548 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
8549 (build_modify_expr): Handle excess precision in RHS.
8550 (convert_for_assignment): Handle excess precision in converted
8552 (digest_init, output_init_element, process_init_element): Handle
8553 excess precision in initializer.
8554 (c_finish_return): Handle excess precision in return value.
8555 (build_binary_op): Handle excess precision in operands and add
8556 excess precision as needed for operation.
8557 * common.opt (-fexcess-precision=): New option.
8558 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
8559 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8560 For standard excess precision, output explicit conversion to and
8561 truncation from XFmode.
8562 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
8563 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
8564 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
8565 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
8566 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
8567 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
8568 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
8569 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
8570 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
8571 define_splits, sqrt<mode>2): Disable where appropriate for
8572 standard excess precision.
8573 * convert.c (convert_to_real): Do not shorten arithmetic to type
8574 for which excess precision would be used.
8575 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
8576 * doc/invoke.texi (-fexcess-precision=): Document option.
8577 (-mfpmath=): Correct index entry.
8578 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
8579 flag_excess_precision): New.
8580 * langhooks.c (lhd_post_options): Set
8581 flag_excess_precision_cmdline.
8582 * opts.c (common_handle_option): Handle -fexcess-precision=.
8583 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
8584 init_excess_precision): New.
8585 (lang_dependent_init_target): Call init_excess_precision.
8586 * tree.c (excess_precision_type): New.
8587 * tree.h (excess_precision_type): Declare.
8589 2009-03-30 Joseph Myers <joseph@codesourcery.com>
8592 * c-typeck.c (build_component_ref): Do not copy qualifiers from
8593 non-lvalue to component.
8595 2009-03-29 Joseph Myers <joseph@codesourcery.com>
8597 PR preprocessor/34695
8598 * Makefile.in (c-opts.o): Depend on c-tree.h.
8599 * c-common.c: Move down include of diagnostic.h.
8600 (done_lexing, c_cpp_error): New.
8601 * c-common.h (done_lexing): Declare.
8602 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
8604 * c-opts.c: Include c-tree.h.
8605 (c_common_init_options): Set preprocessor error callback.
8606 (c_common_handle_option): Do not set preprocessor
8607 inhibit_warnings, warnings_are_errors, warn_system_headers,
8608 pedantic_errors or inhibit_warnings flags.
8609 (c_common_post_options): Do not check cpp_errors (parse_in).
8610 (c_common_finish): Do not output dependencies if there were
8611 errors. Do not check return value of cpp_finish.
8612 * c-ppoutput.c (pp_file_change): Set input_location.
8613 * c-tree.h (c_cpp_error): Declare.
8614 * diagnostic.c (diagnostic_set_info_translated): Also initialize
8616 (diagnostic_build_prefix): Check override_column.
8617 * diagnostic.h (diagnostic_info): Add override_column field.
8618 (diagnostic_override_column): Define.
8620 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
8622 * c-common.c (c_expand_expr, c_staticp): Remove.
8623 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
8624 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
8625 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
8626 * c-gimplify.c (gimplify_compound_literal_expr,
8627 optimize_compound_literals_in_ctor): Remove.
8628 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
8629 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
8630 * c-semantics.c (emit_local_var): Remove.
8632 * langhooks-def.h (lhd_expand_expr): Remove.
8633 * langhooks.c (lhd_expand_expr): Remove.
8634 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
8636 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
8637 handling from c-semantics.c; don't call into langhook.
8638 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
8639 * gimplify.c (gimplify_compound_literal_expr,
8640 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
8641 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
8642 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
8643 as was done in c-gimplify.c.
8644 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
8645 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
8646 Move from c-common.h.
8647 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
8649 * tree.c (staticp): Do not call langhook.
8650 * langhooks.c (lhd_staticp): Delete.
8651 * langhooks-def.h (lhd_staticp): Delete prototype.
8652 (LANG_HOOKS_STATICP): Delete.
8653 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
8655 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
8656 instead of DECL_STMTs.
8658 2009-03-29 Joseph Myers <joseph@codesourcery.com>
8666 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
8668 (fold_call_expr): Return a NOP_EXPR from folding rather than the
8669 contained expression.
8670 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
8671 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
8672 conditional expressions for C.
8673 (decl_constant_value_for_optimization): Move from
8674 decl_constant_value_for_broken_optimization in c-typeck.c. Check
8675 whether optimizing and that the expression is a VAR_DECL not of
8676 array type instead of doing such checks in the caller. Do not
8677 check pedantic. Call gcc_unreachable for C++.
8678 * c-common.def (C_MAYBE_CONST_EXPR): New.
8679 * c-common.h (c_fully_fold, c_save_expr,
8680 decl_constant_value_for_optimization): New prototypes.
8681 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
8682 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
8683 EXPR_INT_CONST_OPERANDS): Define.
8684 * c-convert.c (convert): Strip nops from expression.
8685 * c-decl.c (groktypename): Take extra parameters expr and
8686 expr_const_operands. Update call to grokdeclarator.
8687 (start_decl): Update call to grokdeclarator. Add statement for
8688 expressions used in type of decl.
8689 (grokparm): Update call to grokdeclarator.
8690 (push_parm_decl): Update call to grokdeclarator.
8691 (build_compound_literal): Add parameter non_const and build a
8692 C_MAYBE_COSNT_EXPR if applicable.
8693 (grokdeclarator): Take extra parameters expr and
8694 expr_const_operands. Track expressions used in declaration
8695 specifiers and declarators. Fold array sizes and track whether
8696 they are constant expressions and whether they are integer
8697 constant expressions.
8698 (parser_xref_tag): Set expr and expr_const_operands fields in
8700 (grokfield): Update call to grokdeclarator.
8701 (start_function): Update call to grokdeclarator.
8702 (build_null_declspecs): Set expr and expr_const_operands fields in
8704 (declspecs_add_type): Handle expressions in typeof specifiers.
8705 * c-parser.c (c_parser_declspecs): Set expr and
8706 expr_const_operands fields for declaration specifiers.
8707 (c_parser_enum_specifier): Likewise.
8708 (c_parser_struct_or_union_specifier): Likewise.
8709 (c_parser_typeof_specifier): Likewise. Update call to
8710 groktypename. Fold expression as needed. Return expressions with
8711 type instead of adding statements.
8712 (c_parser_attributes): Update calls to c_parser_expr_list.
8713 (c_parser_statement_after_labels): Fold expression before passing
8714 to objc_build_throw_stmt.
8715 (c_parser_condition): Fold expression.
8716 (c_parser_asm_operands): Fold expression.
8717 (c_parser_conditional_expression): Use c_save_expr. Update call
8718 to build_conditional_expr.
8719 (c_parser_alignof_expression): Update call to groktypename.
8720 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
8721 original_code. Fold expression argument of va_arg. Create
8722 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
8723 argument to va_arg. Update calls to groktypename. Fold array
8724 index for offsetof. Verify that first argument to
8725 __builtin_choose_expr has integer type.
8726 (c_parser_postfix_expression_after_paren_type): Update calls to
8727 groktypename and build_compound_literal. Handle expressions with
8728 side effects in type name.
8729 (c_parser_postfix_expression_after_primary): Update call to
8730 c_parser_expr_list. Set original_code for calls to
8731 __builtin_constant_p.
8732 (c_parser_expr_list): Take extra parameter fold_p. Fold
8733 expressions if requested.
8734 (c_parser_objc_type_name): Update call to groktypename.
8735 (c_parser_objc_synchronized_statement): Fold expression.
8736 (c_parser_objc_receiver): Fold expression.
8737 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
8738 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
8739 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
8740 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
8741 (struct c_typespec): Add elements expr and expr_const_operands.
8742 (struct c_declspecs): Add elements expr and expr_const_operands.
8743 (groktypename, build_conditional_expr, build_compound_literal):
8745 (in_late_binary_op): Declare.
8746 * c-typeck.c (note_integer_operands): New function.
8747 (in_late_binary_op): New variable.
8748 (decl_constant_value_for_broken_optimization): Move to c-common.c
8749 and rename to decl_constant_value_for_optimization.
8750 (default_function_array_conversion): Do not strip nops.
8751 (default_conversion): Do not call
8752 decl_constant_value_for_broken_optimization.
8753 (build_array_ref): Do not fold result.
8754 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
8755 result when operand is a VLA.
8756 (c_expr_sizeof_type): Update call to groktypename. Handle
8757 expressions included in type name. Use C_MAYBE_CONST_EXPR for
8758 result when operand names a VLA type.
8759 (build_function_call): Update call to build_compound_literal.
8760 Only fold result for calls to __builtin_* functions. Strip
8761 NOP_EXPR from INTEGER_CST returned from such functions. Fold
8762 the function designator.
8763 (convert_arguments): Fold arguments. Update call to
8764 convert_for_assignment.
8765 (build_unary_op): Handle increment and decrement of
8766 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
8767 decrement earlier. Fold operand of increment and decrement.
8768 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
8769 built for integer operand. Wrap returns that are INTEGER_CSTs
8770 without being integer constant expressions or that have integer
8771 constant operands without being INTEGER_CSTs.
8772 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
8773 (build_conditional_expr): Add operand ifexp_bcp. Track whether
8774 result is an integer constant expression or can be used in
8775 unevaluated parts of one and avoid folding and wrap as
8776 appropriate. Fold operands before possibly doing -Wsign-compare
8778 (build_compound_expr): Wrap result for C99 if operands can be used
8779 in integer constant expressions.
8780 (build_c_cast): Update call to digest_init. Do not ignore
8781 overflow from casting floating-point constants to integers. Wrap
8782 results that could be confused with integer constant expressions,
8783 null pointer constants or floating-point constants.
8784 (c_cast_expr): Update call to groktypename. Handle expressions
8785 included in type name.
8786 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
8787 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
8788 Update calls to convert_for_assignment.
8789 (convert_for_assignment): Take new parameter
8790 null_pointer_constant. Do not strip nops or call
8791 decl_constant_value_for_broken_optimization. Set
8792 in_late_binary_op for conversions to boolean.
8793 (store_init_value): Update call to digest_init.
8794 (digest_init): Take new parameter null_pointer_constant. Do not
8795 call decl_constant_value_for_broken_optimization. pedwarn for
8796 initializers not constant expressions. Update calls to
8797 convert_for_assignment.
8798 (constructor_nonconst): New.
8799 (struct constructor_stack): Add nonconst element.
8800 (really_start_incremental_init, push_init_level, pop_init_level):
8801 Handle constructor_nonconst and nonconst element.
8802 (set_init_index): Call constant_expression_warning for array
8804 (output_init_element): Fold value. Set constructor_nonconst as
8805 applicable. pedwarn for initializers not constant expressions.
8806 Update call to digest_init. Call constant_expression_warning
8807 where constant initializers are required.
8808 (process_init_element): Use c_save_expr.
8809 (c_finish_goto_ptr): Fold expression.
8810 (c_finish_return): Fold return value. Update call to
8811 convert_for_assignment.
8812 (c_start_case): Fold switch expression.
8813 (c_process_expr_stmt): Fold expression.
8814 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
8815 ensure statement expression is not evaluated in constant expression.
8816 (build_binary_op): Track whether results are integer constant
8817 expressions or may occur in such, disable folding and wrap results
8818 as applicable. Fold operands for -Wsign-compare warnings unless
8820 (c_objc_common_truthvalue_conversion): Handle results folded to
8821 integer constants that are not integer constant expressions.
8822 * doc/extend.texi: Document when typeof operands are evaluated,
8823 that condition of __builtin_choose_expr is an integer constant
8824 expression, and more about use of __builtin_constant_p in
8827 2009-03-29 Richard Guenther <rguenther@suse.de>
8829 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8830 propagate addresses of array references.
8832 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
8834 * regmove.c (perhaps_ends_bb_p): Remove.
8835 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
8836 from INSN and check that the main loop stays within that basic block.
8837 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
8838 (regmove_forward_pass): Split out from regmove_optimize. Use
8839 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
8840 (regmove_backward_pass): Split out from regmove_optimize. Use
8841 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
8842 (regmove_optimize): Simplify.
8844 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8847 * config/i386/i386.c (classify_argument): Ignore flexible array
8848 member in struct and warn ABI change.
8850 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8852 * config/i386/i386-protos.h (ix86_agi_dependent): New.
8854 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
8855 (ix86_adjust_cost): Updated.
8857 2009-03-29 Jan Hubicka <jh@suse.cz>
8860 * tree-pass.h (pass_cleanup_eh): New function.
8861 (remove_unreachable_regions): Break code handling RTL
8862 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
8863 that can not be reached by runtime.
8864 (can_be_reached_by_runtime): New function.
8865 (label_to_region_map): New function.
8866 (num_eh_regions): New function.
8867 (rtl_remove_unreachable_regions): New function.
8868 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
8869 (remove_eh_region): New function.
8870 * except.h: Include sbitmap and vecprim.
8871 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
8872 num_eh_regions): Declare.
8873 * passes.c (init_optimization_passes): Schedule cleanup_eh.
8874 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
8875 * tree-eh.c (tree_remove_unreachable_handlers): New function.
8876 (tree_empty_eh_handler_p): New function.
8877 (cleanup_empty_eh): New function.
8878 (cleanup_eh): New function.
8879 (pass_cleanup_eh): New function.
8881 2009-03-29 Jan Hubicka <jh@suse.cz>
8883 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
8884 for removed regions.
8886 2009-03-29 Jan Hubicka <jh@suse.cz>
8888 * except.c (dump_eh_tree): Dump all datastructures.
8890 2009-03-29 Jan Hubicka <jh@suse.cz>
8892 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
8893 (duplicate_eh_regions_1): Likewise.
8894 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
8895 vector; call EH verification.
8896 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
8897 Be ready for region being removed.
8899 2009-03-29 Jan Hubicka <jh@suse.cz>
8901 * bitmap.c (bitmap_last_set_bit): New function.
8902 * bitmap.h (bitmap_last_set_bit): Declare.
8904 2009-03-29 David Ayers <ayers@fsfe.org>
8907 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
8908 by calling objc_compare_types and surpress warnings about
8909 incompatible C pointers that are compatible ObjC pointers.
8911 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
8913 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
8914 call initialize_inline_failed.
8915 (initialize_inline_failed): Move it from here ...
8916 * cgraph.c (initialize_inline_failed): ... to here.
8917 (cgraph_create_edge): Call initialize_inline_failed rather than
8918 setting inline_failed directly.
8920 2009-03-29 Ben Elliston <bje@au.ibm.com>
8923 * sysv4.opt (msdata): Improve comment.
8924 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
8925 * sysv4.h (SVR4_ASM_SPEC): Likewise.
8927 2009-03-29 Ben Elliston <bje@au.ibm.com>
8930 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
8931 load and store attributes.
8933 2009-03-29 Ben Elliston <bje@au.ibm.com>
8935 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
8936 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
8937 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
8938 * doc/extend.texi (X86 Built-in Functions): Add index entries for
8939 __builtin_infq and __builtin_huge_valq.
8941 2009-03-28 Anatoly Sokolov <aesok@post.ru>
8943 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
8945 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8946 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
8948 2009-03-28 Xinliang David Li <davidxl@google.com>
8950 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
8951 (do_dbg_cnt): New function.
8953 2009-03-28 Jan Hubicka <jh@suse.cz>
8955 Merge from pretty-ipa:
8957 2009-03-27 Jan Hubicka <jh@suse.cz>
8959 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
8960 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
8961 * passes.c (function_called_by_processed_nodes_p): New.
8962 * ipa-pure-const.c (check_call): Fix handling of operands.
8963 (analyze_function): Dump debug output for skipped bodies.
8964 (local_pure_const): Use function_called_by_processed_nodes_p.
8965 * dwarf2out.c (reference_to_unused): Use output.
8966 * passes.c (do_per_function_toporder): Likewise.
8968 2008-11-12 Jan Hubicka <jh@suse.cz>
8970 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
8971 * ipa-pure-const.c (funct_state_d): Add can throw field; make
8972 state_set_in_source enum
8973 (check_decl): Ignore memory tags; do not set fake looping flags;
8975 (check_operand, check_tree, check_rhs_var, check_lhs_var,
8976 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
8977 (check_call, analyze_function): Rewrite.
8979 (add_new_function): Update call of analyze_function.
8980 (generate_summary): Add call of analyze_function.
8981 (propagate): Propagate can_throw; handle state_set_in_source correctly.
8982 (local_pure_const): New function.
8983 (pass_local_pure_const): New pass.
8984 * ipa-inline.c (inline_transform): Set after_inlining.
8985 * tree-eh.c (stmt_can_throw_external): New.
8986 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
8987 work with aliasing built.
8988 * tree-flow.h (stmt_can_throw_external): New.
8989 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
8990 and local pure/const pass in early and late optimization queue.
8992 2009-03-28 Martin Jambor <mjambor@suse.cz>
8994 * fold-const.c (get_pointer_modulus_and_residue): New parameter
8996 (fold_binary): Allow function decl aligment consideration is the
8997 second argument is integer constant one.
8998 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
8999 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
9000 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
9002 2009-03-28 Jan Hubicka <jh@suse.cz>
9004 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
9005 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
9006 * function.h (rtl_data): Add nothrow flag.
9007 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
9008 set DECL_NOTHROW for AVAILABLE functions.
9010 2009-03-28 Jakub Jelinek <jakub@redhat.com>
9012 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
9013 following vector keyword has expansion starting with pixel or bool
9014 keyword, expand vector to __vector and pixel or bool to __pixel or
9018 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
9019 warn_if_disallowed_function_p): Removed.
9020 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
9021 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
9022 warning_if_disallowed_function_p.
9023 * flags.h (warn_if_disallowed_function_p,
9024 warn_disallowed_functions): Removed.
9025 * common.opt (Wdisallowed-function-list=): Removed.
9026 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
9028 2009-03-28 Richard Guenther <rguenther@suse.de>
9030 PR tree-optimization/38723
9031 * tree-ssa-pre.c (compute_avail): Add all default definitions to
9034 2009-03-28 Jan Hubicka <jh@suse.cz>
9036 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
9037 test introduced by my previous patch.
9039 2009-03-28 Richard Guenther <rguenther@suse.de>
9041 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
9042 the PHIs value undefined.
9044 2009-03-28 Jan Hubicka <jh@suse.cz>
9046 * tree-pass.h (pass_fixup_cfg): New pass.
9047 * ipa-inline.c (inline_transform): Set
9048 always_inline_functions_inlined/after_inlining.
9049 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
9050 (pass_fixup_cfg): New pass.
9051 * passes.c (init_optimization_passes): Add fixup_cfg.
9053 2009-03-28 Richard Guenther <rguenther@suse.de>
9055 PR tree-optimization/38458
9056 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
9057 argument use the arguments copy-of value.
9059 2009-03-28 Richard Guenther <rguenther@suse.de>
9061 PR tree-optimization/38180
9062 * tree-ssa-ccp.c (get_default_value): Simplify.
9063 (likely_value): Likewise.
9064 (surely_varying_stmt_p): Properly handle VOP case.
9065 (ccp_initialize): Likewise.
9066 (ccp_fold): Handle propagating through *&.
9067 (fold_const_aggregate_ref): Also handle decls.
9069 2009-03-28 Jan Hubicka <jh@suse.cz>
9071 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
9072 * cgraph.h (cgraph_node): Likewise.
9073 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
9074 (cgraph_reset_node): Use process flag.
9075 (cgraph_mark_functions_to_output): Likewise.
9076 (cgraph_expand_function): Likewise.
9077 (cgraph_expand_all_functions): Likewise.
9078 (cgraph_output_in_order): Likewise.
9079 * dwarf2out.c (reference_to_unused): Likewise.
9080 * passes.c do_per_function_toporder): Likewise.
9082 2009-03-28 Jan Hubicka <jh@suse.cz>
9084 Bring from lto-branch:
9086 2008-09-03 Doug Kwan <dougkwan@google.com>
9088 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
9089 enums instead of reason strings.
9090 * cgraph.c (cgraph_create_edge): Same.
9091 (cgraph_inline_failed_string): New function.
9092 * cgraph.h (cgraph_inline_failed_t): New enum type.
9093 (cgraph_inline_failed_string): New prototype.
9094 (struct cgraph_edge): Change type of INLINED_FAILED from constant
9095 char pointer to cgraph_inline_failed_t.
9096 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
9097 (cgraph_default_inline_p): Ditto.
9098 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
9099 to cgraph_inline_failed_t pointer.
9100 * cif-code.def: New file.
9101 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
9103 (cgraph_check_inline_limits): Change type of REASON to pointer to
9104 cgraph_inline_failed_t. Replace reason strings with enums.
9105 (cgraph_default_inline_p): Ditto.
9106 (cgraph_recursive_inlining_p): Ditto.
9107 (update_caller_keys): Change type of FAILED_REASON to
9108 cgraph_inline_failed_t.
9109 (cgraph_set_inline_failed): Change type of REASON to pointer to
9110 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
9111 convert enums to strings for text output.
9112 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
9113 to be of type cgraph_inline_failed_t. Replace reason strings with
9114 enums. Call cgraph_inline_failed_string to covert enums
9115 to strings for text output.
9116 (cgraph_decide_inlining): Replace reason strings with enums.
9117 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
9118 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
9120 * tree-inline.c (expand_call_inline): Change type of REASON
9121 to cgraph_inline_failed_t. Replace reason strings with enums.
9122 Call cgraph_inline_failed_string for text output.
9123 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
9126 2009-03-28 Jan Hubicka <jh@suse.cz>
9128 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
9129 cgraph_clone_node): Remove master clone handling.
9130 (cgraph_is_master_clone, cgraph_master_clone): Remove.
9131 * cgraph.h (master_clone): Remove.
9132 (cgraph_is_master_clone, cgraph_master_clone): Remove.
9133 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
9134 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9136 2009-03-28 Jan Hubicka <jh@suse.cz>
9138 * cgraph.c (cgraph_function_body_availability): Functions declared
9139 inline are always safe to assume that it is not going to be replaced.
9141 2009-03-28 Richard Guenther <rguenther@suse.de>
9143 PR tree-optimization/38513
9144 * tree-ssa-pre.c (eliminate): Remove redundant stores.
9145 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9146 EXC_PTR_EXPR and FILTER_EXPR.
9147 (get_ref_from_reference_ops): Likewise.
9149 2009-03-28 Richard Guenther <rguenther@suse.de>
9151 PR tree-optimization/38968
9152 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
9153 Use FLOOR_MOD_EXPR to compute misalignment.
9155 2009-03-28 Richard Guenther <rguenther@suse.de>
9157 PR tree-optimization/37795
9158 * tree.h (combine_comparisons): Declare.
9159 * fold-const.c (combine_comparisons): Export.
9160 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
9162 (ifcombine_iforif): Use combine_comparisons.
9164 2009-03-28 Jan Hubicka <jh@suse.cz>
9166 * tree-eh.c (inlinable_call_p): New function.
9167 (make_eh_edges): Use it.
9168 (verify_eh_edges): Use it.
9169 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
9170 * except.c (reachable_next_level): Add inlinable_function argument
9171 (sjlj_find_directly_reachable_regions): Update.
9172 (add_reachable_handler): Do not set saw_any_handlers.
9173 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
9174 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
9175 Add new inlinable call parameter.
9176 (can_throw_internal, can_throw_external): Update.
9177 * except.h (can_throw_internal_1, can_throw_external_1,
9178 foreach_reachable_handler): Update declaration.
9180 2009-03-28 Joseph Myers <joseph@codesourcery.com>
9182 * config/arm/t-arm-coff, config/h8300/coff.h,
9183 config/i386/i386-aout.h, config/i386/i386-coff.h,
9184 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
9185 config/pdp11/2bsd.h, config/rs6000/aix41.h,
9186 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
9187 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
9188 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
9189 sys-types.h: Remove.
9190 * Makefile.in: Remove protoize and fixproto support and references
9192 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
9193 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
9195 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
9196 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
9197 unprotoize$(exeext).
9198 (rest.encap): Don't depend on $(STMP_FIXPROTO)
9199 (.PHONY): Don't depend on proto.
9200 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
9201 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
9202 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
9203 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
9204 build/gen-protos.o, build/scan.o, xsys-protos.h,
9205 build/fix-header$(build_exeext), build/fix-header.o,
9206 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
9207 stmp-install-fixproto): Remove.
9208 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
9209 SYSCALLS.c or fixproto files.
9210 (install-common): Don't install protoize.
9211 (install-headers-tar, install-headers-cpio, install-headers-cp):
9212 Don't depend on $(STMP_FIXPROTO).
9213 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
9214 install fixproto files or write out fixproto settings.
9215 (uninstall): Don't uninstall protoize.
9216 * config.gcc (use_fixproto): Remove.
9217 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
9218 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
9219 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
9220 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
9221 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
9222 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
9223 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
9224 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
9225 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
9226 * config/t-vxworks (STMP_FIXPROTO): Remove.
9227 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
9228 STMP_FIXPROTO): Remove.
9229 * config.in, configure: Regenerate.
9230 * crtstuff.c (gid_t, uid_t): Don't undefine.
9231 * doc/install.texi: Change m68k-coff to m68k-elf in example.
9232 (arm-*-coff, arm-*-aout: Remove target entries.
9233 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
9234 Remove mention of AIX 4.1.
9235 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
9236 * doc/invoke.texi (Running Protoize): Remove.
9237 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
9238 (Protoize Caveats): Remove.
9239 * tsystem.h: Update comments on headers assumed to exist.
9241 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
9243 * genautomata.c: Add a new year to the copyright. Add a new
9245 (struct insn_reserv_decl): Add comments for member bypass_list.
9246 (find_bypass): Remove.
9247 (insert_bypass): New.
9248 (process_decls): Use insert_bypass.
9249 (output_internal_insn_latency_func): Output all bypasses with the
9250 same input insn in one switch case.
9252 * rtl.def (define_bypass): Describe bypass choice.
9253 * doc/md.texi (define_bypass): Ditto.
9255 2009-03-27 Richard Guenther <rguenther@suse.de>
9257 * gimplify.c (mark_addressable): Export.
9258 * tree-flow.h (mark_addressable): Declare.
9259 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
9260 * tree-ssa.c (verify_phi_args): Verify that address taken
9261 variables have TREE_ADDRESSABLE set.
9263 2009-03-27 Richard Guenther <rguenther@suse.de>
9265 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
9266 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
9267 Do not mark decls TREE_ADDRESSABLE.
9268 (build_fold_addr_expr): Adjust.
9269 (fold_addr_expr): Remove.
9270 (fold_unary): Use build_fold_addr_expr.
9271 (fold_comparison): Likewise.
9272 (split_address_to_core_and_offset): Likewise.
9273 * coverage.c (tree_coverage_counter_addr): Mark the array decl
9275 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
9276 (gimplify_modify_expr_to_memcpy): Mark source and destination
9278 * omp-low.c (create_omp_child_function): Mark the object decl
9280 (lower_rec_input_clauses): Mark the var we take the address of
9282 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
9284 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9287 * cfgexpand.c (expand_one_stack_var_at): Change alignment
9288 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
9290 2009-03-27 Richard Guenther <rguenther@suse.de>
9292 PR tree-optimization/39120
9293 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
9295 (handle_lhs_call): Process return constraints. Add escape
9296 constraints if necessary.
9297 (handle_const_call): Fill out return constraints. Make nested
9298 case more precise. Avoid consttmp if possible.
9299 (handle_pure_call): Fill out return constraints. Avoid
9300 callused if possible.
9301 (find_func_aliases): Simplify call handling.
9303 2009-03-27 Richard Guenther <rguenther@suse.de>
9305 PR tree-optimization/39120
9306 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
9307 as a representative.
9308 (solve_graph): Do propagate CALLUSED.
9309 (handle_pure_call): Use a scalar constraint from CALLUSED for
9311 (find_what_p_points_to): CALLUSED shall not appear in poins-to
9314 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9317 * c-common.c (handle_aligned_attribute): Properly check alignment
9318 overflow. Use (1U << i) instead of (1 << i).
9320 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
9322 * expr.h (get_mem_align_offset): Updated.
9324 * tree.h (tree_decl_common): Change align to "unsigned int" and
9325 move it before pointer_alias_set.
9327 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9328 Jakub Jelinek <jakub@redhat.com>
9331 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
9332 gr_register_operand with gr_reg_or_0_operand.
9333 (cmpxchg_rel_di): Likewise.
9334 (sync_lock_test_and_set<mode>): Likewise.
9336 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9338 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
9339 (true_regnum): Likewise.
9341 * rtlanal.c (subreg_info): Moved to ...
9342 * rtl.h (subreg_info): Here. New.
9343 (subreg_get_info): New.
9345 * rtlanal.c (subreg_get_info): Make it extern.
9347 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9350 * config/i386/i386.c (ix86_abi): New.
9351 (override_options): Handle -mabi=.
9352 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
9353 (ix86_call_abi_override): Likewise.
9354 (init_cumulative_args): Likewise.
9355 (function_arg_advance): Likewise.
9356 (function_arg_64): Likewise.
9357 (function_arg): Likewise.
9358 (ix86_pass_by_reference): Likewise.
9359 (ix86_function_value_regno_p): Likewise.
9360 (ix86_build_builtin_va_list_abi): Likewise.
9361 (setup_incoming_varargs_64): Likewise.
9362 (is_va_list_char_pointer): Likewise.
9363 (ix86_init_machine_status): Likewise.
9364 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
9365 (ix86_function_type_abi): Return enum calling_abi. Rewrite
9366 for 64bit. Replace DEFAULT_ABI with ix86_abi.
9367 (ix86_function_abi): Make it static and return enum calling_abi.
9368 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
9370 (ix86_fn_abi_va_list): Updated.
9372 * config/i386/i386.h (ix86_abi): New.
9373 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
9374 (CONDITIONAL_REGISTER_USAGE): Likewise.
9375 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
9376 (machine_function): Likewise.
9378 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
9380 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
9381 (STACK_BOUNDARY): Likewise.
9382 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
9384 * config/i386/i386.opt (mabi=): New.
9386 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
9387 return enum calling_abi.
9388 (ix86_function_type_abi): Likewise.
9389 (ix86_function_abi): Removed.
9391 * doc/invoke.texi: Document -mabi= option for x86.
9393 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9395 * builtins.c (real_dconstp): Delete.
9396 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
9398 2009-03-27 Dodji Seketeli <dodji@redhat.com>
9399 Jakub Jelinek <jakub@redhat.com>
9402 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
9403 (gen_subprogram_die): When a function is explicit, generate the
9404 DW_AT_explicit attribute.
9405 * langhooks.h (struct lang_hooks_for_decls): Add
9406 function_decl_explicit_p langhook.
9407 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
9408 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
9410 2009-03-27 Jakub Jelinek <jakub@redhat.com>
9412 * builtins.c (fold_builtin_memory_op): Optimize memmove
9413 into memcpy if we can prove source and destination don't overlap.
9415 * tree-inline.c: Include gt-tree-inline.h.
9416 (clone_fn_id_num): New variable.
9417 (clone_function_name): New function.
9418 (tree_function_versioning): Use it.
9419 * Makefile.in (GTFILES): Add tree-inline.c.
9421 2009-03-27 Mark Mitchell <mark@codesourcery.com>
9423 * BASE-VER: Change to 4.5.0.
9425 2009-03-27 Xinliang David Li <davidxl@google.com>
9427 PR tree-optimization/39557
9428 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
9430 2009-03-27 Xinliang David Li <davidxl@google.com>
9432 PR tree-optimization/39548
9433 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
9436 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9438 * c-common.c (pointer_int_sum): Use %wd on return from
9441 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9443 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
9444 on return from tree_low_cst.
9446 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
9449 * ginclude/stdarg.h (va_copy): Define also for
9450 __GXX_EXPERIMENTAL_CXX0X__.
9452 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9455 * builtins.h (c_strlen): Do not warn here.
9456 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
9457 * c-common.c (pointer_int_sum): Take an explicit location.
9458 Warn about offsets out of bounds.
9459 * c-common.h (pointer_int_sum): Adjust declaration.
9461 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9463 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
9466 2009-03-26 Jakub Jelinek <jakub@redhat.com>
9469 * opts.c (warn_if_disallowed_function_p): Don't assume
9470 get_callee_fndecl must return non-NULL.
9472 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
9474 PR rtl-optimization/39522
9475 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
9476 when reg_reloaded_valid is set.
9478 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9480 * config/spu/divv2df3.c: New file.
9481 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
9482 (DPBIT_FUNCS): Filter out _div_df.
9484 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
9486 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
9487 a jump insn, count that jump in the distance to the loop start.
9489 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
9492 * config/sh/sh.c (calc_live_regs): Fix condition for global
9493 registers except PIC_OFFSET_TABLE_REGNUM.
9495 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
9498 * doc/invoke.texi (-mconsole): New.
9502 (-mnop-fun-dllimport): New.
9506 (sub section "i386 and x86-64 Windows Options"): New.
9508 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
9510 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
9511 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
9513 2009-03-25 Richard Guenther <rguenther@suse.de>
9516 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
9519 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
9521 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
9522 neither of haifa/selective schedulers are working.
9524 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9526 * doc/invoke.texi (Debugging Options): Fix description of
9527 -fno-merge-debug-strings.
9529 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
9531 * config/cris/libgcc.ver: New version-script.
9532 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
9534 * configure.ac <GAS features, nop mnemonic>: Add pattern
9535 crisv32-*-* for "nop".
9536 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
9537 * configure: Regenerate.
9539 2009-03-24 Ira Rosen <irar@il.ibm.com>
9541 PR tree-optimization/39529
9542 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
9543 mark_sym_for_renaming for the tag copied to the new vector
9546 2009-03-24 Arthur Loiret <aloiret@debian.org>
9548 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
9549 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
9550 EXTRA_SPEC_FUNCTIONS.
9551 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
9552 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
9553 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
9554 -march and -mtune options.
9556 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
9558 * config/m68k/t-rtems: Add m5329 multilib.
9560 2009-03-24 Dodji Seketeli <dodji@redhat.com>
9561 Jakub Jelinek <jakub@redhat.com>
9564 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
9567 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9570 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
9571 instead of c_parser_expression_conv, if original_code isn't one of the
9572 4 allowed comparison codes, fail.
9574 2009-03-23 Richard Guenther <rguenther@suse.de>
9576 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
9577 * tree.h (struct tree_type): Likewise.
9578 * reload.h (struct insn_chain): Likewise.
9579 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
9580 * function.h (struct function): Likewise.
9581 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
9583 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9585 PR tree-optimization/39516
9586 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
9588 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
9590 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
9591 should be set true if BITS_PER_WORD of target is bigger than 32
9593 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
9595 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
9596 Translate -B-options to -rpath-link. Correct existing
9597 rpath-link and conditionalize on !nostdlib.
9599 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9601 * doc/extend.texi (Function Attributes, Variable Attributes):
9603 * doc/invoke.texi (Debugging Options, Optimize Options)
9604 (i386 and x86-64 Options, MCore Options): Likewise.
9606 2009-03-20 Jakub Jelinek <jakub@redhat.com>
9609 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
9610 it for block local namespace aliases.
9611 (gen_decl_die): Pass context_die to gen_namespace_die.
9613 2009-03-19 Jakub Jelinek <jakub@redhat.com>
9616 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
9617 minimum or maximum value.
9619 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
9621 * reginfo.c (globalize_reg): Recompute derived reg sets.
9623 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
9626 * libgcc2.c (mprotect): Do not use signed arguments for
9627 VirtualProtect, use DWORD arguments. Also fix the 'may
9628 be used uninitialized' warning for the np variable.
9630 2009-03-19 Jakub Jelinek <jakub@redhat.com>
9633 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
9634 functions using regparm calling conventions when not optimizing.
9635 (ix86_function_sseregparm): Similarly for sseregparm calling
9638 2009-03-19 Li Feng <nemokingdom@gmail.com>
9641 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
9642 dependence if the first conflict is after niter iterations.
9644 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
9647 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
9648 functions with dynamic stack-pointer adjustments.
9650 2009-03-19 Ben Elliston <bje@au.ibm.com>
9652 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
9653 option; change to -msdata=data.
9655 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9657 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
9660 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
9663 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
9665 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
9667 * doc/invoke.texi (Code Gen Options): Expand discussion of
9670 2009-03-18 Jakub Jelinek <jakub@redhat.com>
9672 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
9673 * matrix-reorg.c (struct matrix_info): Likewise.
9674 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
9675 * rtl.h (struct mem_attrs): Likewise.
9676 * df.h (struct df): Likewise.
9677 * tree-data-ref.h (struct data_dependence_relation): Likewise.
9678 * ira-int.h (struct ira_allocno): Likewise.
9679 * df-scan.c (struct df_collection_rec): Likewise.
9680 * ira.c (struct equivalence): Likewise.
9681 * function.c (struct temp_slot): Likewise.
9682 * cfgloop.h (struct loop): Likewise.
9685 * function.c (use_register_for_decl): When not optimizing, disregard
9686 register keyword for variables with types containing methods.
9688 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
9691 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
9692 (is_simple_operand): Call contains_component_ref_p before calling data
9693 reference analysis that would fail on COMPONENT_REFs.
9695 * tree-vrp.c (search_for_addr_array): Fix formatting.
9697 2009-03-18 Richard Guenther <rguenther@suse.de>
9699 * tree-vect-transform.c (vect_loop_versioning): Fold the
9700 generated comparisons.
9701 * tree-vectorizer.c (set_prologue_iterations): Likewise.
9702 (slpeel_tree_peel_loop_to_edge): Likewise.
9704 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9707 * opts.c (print_specific_help): In addition to `undocumented',
9708 accept `separate' and `joined' flags if passed alone. Describe
9709 output by the first matched one of those.
9710 (common_handle_option): Skip over empty strings.
9711 * gcc.c (display_help): Fix help string for `--help='.
9712 * doc/invoke.texi (Option Summary, Overall Options): With
9713 `--help=', classes and qualifiers can both be repeated, but
9714 only the latter can be negated. One should not pass only
9715 negated qualifiers. Fix markup and examples.
9718 2008-10-14 Jakub Jelinek <jakub@redhat.com>
9720 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
9721 and -fhelp=separate.
9723 2009-03-17 Jing Yu <jingyu@google.com>
9726 * function.h (struct rtl_data): Move is_thunk from here...
9727 (struct function): ...to here.
9728 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
9729 * varasm.c (assemble_start_function): Change is_thunk from crtl to
9731 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
9733 (alpha_does_function_need_gp, alpha_start_function): Likewise.
9734 (alpha_output_function_end_prologue): Likewise.
9735 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
9736 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
9737 (rs6000_output_function_epilogue): Likewise.
9738 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
9740 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
9743 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
9744 from different units in a single alternative.
9745 (*truncdfsf_i387): Ditto.
9746 (*truncxfsf2_mixed): Ditto.
9747 (*truncxfdf2_mixed): Ditto.
9749 2009-03-17 Jakub Jelinek <jakub@redhat.com>
9751 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
9752 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
9755 * tree-ssa-live.c (remove_unused_locals): Don't remove local
9756 unused non-artificial variables when not optimizing.
9759 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
9760 DW_TAG_imported_module even if decl is IMPORTED_DECL with
9761 NAMESPACE_DECL in its DECL_INITIAL.
9764 * optabs.c (set_user_assembler_libfunc): New function.
9765 * expr.h (set_user_assembler_libfunc): New prototype.
9766 * c-common.c: Include libfuncs.h.
9767 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
9768 for memcmp, memset, memcpy, memmove and abort.
9769 * Makefile.in (c-common.o): Depend on libfuncs.h.
9772 * dwarf2out.c (gen_inlined_enumeration_type_die,
9773 gen_inlined_structure_type_die, gen_inlined_union_type_die,
9774 gen_tagged_type_instantiation_die): Removed.
9775 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
9778 2009-03-17 Janis Johnson <janis187@us.ibm.com>
9781 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
9783 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
9784 (check-parallel-%): Ditto.
9785 (check-consistency): Ditto.
9787 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
9789 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
9790 local variable rhs by NULL_TREE.
9792 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9795 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
9797 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9800 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
9802 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9805 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
9806 for ms->sysv ABI calls only in 64bit mode.
9808 * config/i386/i386.md (untyped_call): Support 32bit.
9810 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
9812 * doc/extend.texi: Replace x86_65 with x86_64.
9814 2009-03-16 Jakub Jelinek <jakub@redhat.com>
9816 PR tree-optimization/39455
9817 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
9818 mismatches for POINTER_TYPE_P (type).
9819 (number_of_iterations_le): Likewise.
9821 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
9823 * config/picochip/picochip.c: Removed profiling support.
9824 * config/picochip/picochip.md: Removed profiling instruction.
9825 * config/picochip/picochip.h: Removed profiling builtin.
9827 2009-03-16 Joseph Myers <joseph@codesourcery.com>
9829 * doc/install.texi (--with-host-libstdcxx): Document.
9831 2009-03-14 Anatoly Sokolov <aesok@post.ru>
9834 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
9835 generate a warning if the function name does not begin with
9836 "__vector" and the function has either the 'signal' or 'interrupt'
9837 attribute, from here to ...
9838 (avr_declare_function_name): ...here. New function.
9839 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
9840 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
9842 2009-03-14 Jakub Jelinek <jakub@redhat.com>
9845 * cse.c (fold_rtx): Don't modify original const_arg1 when
9846 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
9847 separate variable instead.
9848 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
9849 from out of range shift counts.
9850 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
9852 2009-03-13 Catherine Moore <clm@codesourcery.com>
9854 * config/i386/x-mingw32 (host-mingw32.o): Replace
9855 diagnostic.h with $(DIAGNOSTIC_H).
9857 2009-03-12 Jakub Jelinek <jakub@redhat.com>
9860 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
9862 * config/i386/sync.md (sync_compare_and_swap<mode>,
9863 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
9864 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
9866 (sync_double_compare_and_swapdi_pic,
9867 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
9868 cmpxchg8b_pic_memory_operand instead of just memory_operand.
9870 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9873 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
9875 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9878 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9879 (avx_addsubv4df3): Likewise.
9880 (*avx_addsubv4sf3): Likewise.
9881 (sse3_addsubv4sf3): Likewise.
9883 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9886 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
9888 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
9891 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
9892 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
9893 registers for allocnos created from user-defined variables.
9895 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9898 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
9899 of non-integer mode as well.
9901 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
9903 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
9904 for functions for which the parameter types are unknown.
9906 2009-03-11 Jakub Jelinek <jakub@redhat.com>
9909 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9910 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
9911 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
9912 * config/i386/i386.c (ix86_local_alignment): For
9913 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
9914 long long variables on the stack to avoid dynamic realignment.
9915 Allow the first argument to be a decl rather than type.
9916 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
9918 2009-03-11 Nick Clifton <nickc@redhat.com>
9921 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
9923 Add description to mno-lsim option.
9924 * config/mcore/mcore.h: Remove comment about deprecated m4align
9926 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
9927 * doc/invoke.texi: Add description of mno-lsim and
9928 mstack-increment options.
9930 * config/fr30/fr30.opt: Document the -mno-lsim option.
9931 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
9932 and -mno-lsim options.
9934 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9936 * fold-const.c (fold_comparison): Only call fold_inf_compare
9937 if the mode supports infinities.
9939 2009-03-11 Jason Merrill <jason@redhat.com>
9942 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
9943 end already did. Notice GIMPLE_CALL modifications of the result.
9944 Don't copy debug information from an ignored decl or a decl from
9947 2009-03-10 Richard Guenther <rguenther@suse.de>
9948 Nathan Froyd <froydnj@codesourcery.com>
9951 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
9952 (__divMODE3): Likewise.
9954 2009-03-09 Jakub Jelinek <jakub@redhat.com>
9956 PR tree-optimization/39394
9957 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
9958 DECL_SIZE_UNIT of variable length FIELD_DECLs.
9960 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9962 * recog.c (verfiy_changes): Disallow renaming of hard regs in
9963 inline asms for register asm ("") declarations.
9965 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
9967 * fold-const.c (fold_unary): Fix comment.
9969 2009-03-07 Jan Hubicka <jh@suse.cz>
9972 * tree-inline.c (setup_one_parameter): Do replacement of const
9973 argument by constant in SSA form.
9975 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9978 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
9979 determine alignment passed to assign_stack_local.
9980 (assign_parms_unsplit_complex): Likewise.
9981 * except.c (sjlj_build_landing_pads): Likewise.
9983 2009-03-06 Jakub Jelinek <jakub@redhat.com>
9986 * tree-flow.h (add_referenced_var): Return bool instead of void.
9987 * tree-dfa.c (add_referenced_var): Return result of
9988 referenced_var_check_and_insert call.
9989 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
9990 of referenced_var_check_and_insert.
9993 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9994 (gen_variable_die): Emit DW_AT_location on abstract static variable's
9995 DIE, don't emit it if abstract origin already has it.
9996 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
9997 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
9999 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10001 * genpreds.c (needs_variable): Fix parentheses at variable name
10003 (write_tm_constrs_h): Indent generated code.
10005 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10007 * doc/extend.texi (Function Attributes): Add documentation
10008 for isr attributes.
10010 2009-03-06 Jakub Jelinek <jakub@redhat.com>
10013 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
10014 take locus from its DECL_SOURCE_LOCATION instead of input_location.
10016 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
10018 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
10021 2009-03-05 Jakub Jelinek <jakub@redhat.com>
10024 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
10025 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
10027 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
10029 * config/i386/i386.md (R8_REG, R9_REG): New constants.
10030 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
10031 constants instead of magic numbers.
10032 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
10034 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
10035 (x86_64_ms_abi_int_parameter_registers): Ditto.
10036 (x86_64_int_return_registers): Ditto.
10037 (ix86_maybe_switch_abi): Ditto.
10038 (ix86_expand_call): Ditto for clobbered_registers array.
10039 (ix86_hard_regno_mode_ok): Ditto.
10040 (x86_extended_QIreg_mentioned_p): Ditto.
10042 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
10044 PR tree-optimization/39349
10045 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
10047 * combine.c (gen_lowpart_for_combine): Use omode when generating
10050 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
10052 PR rtl-optimization/39235
10053 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
10055 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
10057 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
10059 2009-03-04 Richard Guenther <rguenther@suse.de>
10061 PR tree-optimization/39362
10062 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
10063 that occur in abnormal PHIs should be varying.
10065 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
10067 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
10069 (simple_iv): Take loop as an argument instead of statement.
10070 * tree-scalar-evolution.h (simple_iv): Declaration changed.
10071 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
10073 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
10075 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
10076 * matrix-reorg.c (analyze_transpose): Ditto.
10077 * tree-data-ref.c (dr_analyze_innermost): Ditto.
10078 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
10079 * tree-predcom.c (ref_at_iteration): Ditto.
10080 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
10082 2009-03-04 Richard Guenther <rguenther@suse.de>
10084 PR tree-optimization/39358
10085 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
10086 escaped_id and callused_id.
10087 (solve_graph): Likewise.
10089 2009-03-04 Richard Guenther <rguenther@suse.de>
10091 PR tree-optimization/39339
10092 * tree-sra.c (try_instantiate_multiple_fields): Make it
10093 no longer ICE on the above.
10095 2009-03-03 Joseph Myers <joseph@codesourcery.com>
10097 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
10098 that fits within Pmode.
10100 2009-03-03 Steve Ellcey <sje@cup.hp.com>
10102 PR middle-end/10109
10103 * tm.texi (LIBCALL_VALUE): Update description.
10105 2009-03-03 Steve Ellcey <sje@cup.hp.com>
10107 PR middle-end/34443
10108 * doc/extend.texi (section): Update description.
10110 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
10112 PR middle-end/39345
10113 * tree-inline.c (remapped_type): New.
10114 (can_be_nonlocal): Call remapped_type instead of remap_type.
10116 2009-03-03 Jakub Jelinek <jakub@redhat.com>
10119 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
10120 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
10122 2009-03-03 Richard Guenther <rguenther@suse.de>
10124 PR middle-end/39272
10125 * tree.c (tree_nonartificial_location): New function.
10126 * tree.h (tree_nonartificial_location): Declare.
10127 * builtins.c (expand_builtin_memory_chk): Provide location
10128 of the call location for artificial function pieces.
10129 (maybe_emit_chk_warning): Likewise.
10130 (maybe_emit_sprintf_chk_warning): Likewise.
10131 (maybe_emit_free_warning): Likewise.
10132 * expr.c (expand_expr_real_1): Likewise.
10134 2009-03-03 Jakub Jelinek <jakub@redhat.com>
10136 PR tree-optimization/39343
10137 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
10138 COMPONENT_REF t has ARRAY_TYPE.
10140 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
10142 PR middle-end/39335
10143 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
10144 when the type precision of the induction variable should be
10145 larger than the type precision of nit.
10146 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
10147 * graphite.c (graphite_loop_normal_form): Same.
10148 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
10150 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
10152 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
10153 (*call_1_rex64_ms_sysv): Use named constants instead of magic
10154 numbers to describe clobbered registers.
10155 (*call_value_0_rex64_ms_sysv): Ditto.
10156 * config/i386/mmx.md (mmx_emms): Ditto.
10157 (mmx_femms): Ditto.
10159 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
10161 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
10164 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10166 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
10167 (spu_section_type_flags): New function.
10169 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
10171 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
10172 reg_class_contents of FLOAT_REGS into a temporary.
10174 2009-03-02 Richard Guenther <rguenther@suse.de>
10175 Ira Rosen <irar@il.ibm.com>
10177 PR tree-optimization/39318
10178 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
10179 information to the vectorized statement.
10181 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
10183 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
10184 variable. Use defined names instead of magic constants for REX SSE
10187 2009-03-01 Richard Guenther <rguenther@suse.de>
10189 PR tree-optimization/39331
10190 * omp-low.c (lower_send_shared_vars): Do not receive new
10191 values for the reference of DECL_BY_REFERENCE parms or results.
10193 2009-03-01 Jan Hubicka <jh@suse.cz>
10196 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
10197 BLOCK_NONLOCALIZED_VAR): New macros.
10198 (tree_block): Add nonlocalized_vars.
10199 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
10200 gen_decl_die): Add origin argument. Allow generation of die with
10201 origin at hand only.
10202 (gen_member_die, gen_type_die_with_usage, force_decl_die,
10203 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
10205 (gen_block_die): Fix checking for unused blocks.
10206 (process_scope_var): Break out from .... ; work with origins only.
10207 (decls_for_scope) ... here; process nonlocalized list.
10208 (dwarf2out_ignore_block): Look for nonlocalized vars.
10209 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
10211 (dump_scope_block): Dump them.
10212 * tree-inline.c (remap_decls): Handle nonlocalized vars.
10213 (remap_block): Likewise.
10214 (can_be_nonlocal): New predicate.
10215 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
10217 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10219 * configure: Regenerate.
10221 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10223 * optc-gen.awk: No need to duplicate option flags twice.
10224 Reuse help texts for duplicate options which do not have any.
10226 * gcc.c (display_help): Document --version.
10228 * gcc.c (main): If print_help_list and verbose_flag, ensure
10229 driver output comes before subprocess output.
10231 * optc-gen.awk: Assign all remaining fields to help string,
10232 space-separated, for multi-line help in *.opt.
10234 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
10235 -Wno-pedantic-ms-format is for MinGW targets only.
10237 * doc/options.texi (Option file format): Fix bad indentation,
10238 restoring dropped sentence.
10240 2009-02-28 Jan Hubicka <jh@suse.cz>
10242 * tree-inline.c (tree_function_versioning): Output debug info.
10244 2009-02-28 Jan Hubicka <jh@suse.cz>
10247 * tree-inline.c (setup_one_parameter): Do not copy propagate
10248 arguments when not optimizing.
10250 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
10253 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
10254 (avx_addsubv4df3): Likewise.
10255 (*avx_addsubv4sf3): Likewise.
10256 (sse3_addsubv4sf3): Likewise.
10257 (*avx_addsubv2df3): Likewise.
10258 (sse3_addsubv2df3): Likewise.
10259 (avx_unpckhps256): Correct item selectors.
10260 (avx_unpcklps256): Likewise.
10261 (avx_unpckhpd256): Likewise.
10262 (avx_unpcklpd256): Likewise.
10264 2009-02-28 Jan Hubicka <jh@suse.cz>
10266 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
10268 (copy_arguments_for_versioning): If var is declared don't declare it.
10269 (tree_function_versioning): First setup substitutions and then copy
10272 2009-02-27 Jan Hubicka <jh@suse.cz>
10275 * cgraph.h (varpool_output_debug_info): Remove.
10276 * cgraphunit.c (varpool_output_debug_info): Remove.
10277 * dwarf2out.c (deferred_locations_struct): New struct
10278 (deferred_locations): New type.
10279 (deferred_locations_list): New static var.
10280 (deffer_location): New function.
10281 (gen_variable_die): Use it.
10282 (decls_for_scope): Output info on local static vars.
10283 (dwarf2out_finish): Process deferred locations.
10284 * varpool.c (varpool_output_debug_info): Remove.
10286 2009-02-27 Jan Hubicka <jh@suse.cz>
10289 * tree.h (TREE_PROTECTED): Fix comment.
10290 (BLOCK_HANDLER_BLOCK): Remove.
10291 (struct tree_block): Remove handler_block add body_block.
10292 (inlined_function_outer_scope_p): New.
10293 (is_body_block): Remove.
10294 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
10295 * dwarf2out.c (is_inlined_entry_point): Remove.
10296 (add_high_low_attributes): Use inlined_function_outer_scope_p.
10297 (gen_block_die): Use is_inlined_entry_point check. Remove body block
10299 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
10300 * gimplify.c (gimplify_expr): Gimplify body blocks.
10301 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
10302 block with multiple subblocks.
10303 (dump_scope_block): Prettier output; dump more flags and info.
10304 (dump_scope_blocks): New.
10305 (remove_unused_locals): Use dump_scope_blocks.
10306 * tree-flow.h (dump_scope_blocks): Declare.
10307 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
10308 * stmt.c (is_body_block): Remove.
10309 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
10310 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
10312 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
10314 PR middle-end/39308
10315 * graphite.c (graphite_loop_normal_form): Do not call
10316 number_of_iterations_exit from a gcc_assert.
10318 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10320 * config/s390/s390.c (s390_swap_cmp): Look for conditional
10321 jumps if COND is NULL.
10322 (find_cond_jump): New function.
10323 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
10324 * config/s390/s390.md: Remove z10_cobra attribute value.
10326 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
10328 * config/alpha/alpha.h (alpha_expand_mov): Return false if
10329 force_const_mem returns NULL_RTX.
10331 2009-02-26 Jan Hubicka <jh@suse.cz>
10334 * cgraph.h (varpool_output_debug_info): Remove.
10335 * cgraphunit.c (varpool_output_debug_info): Remove.
10336 * dwarf2out.c (deferred_locations_struct): New struct
10337 (deferred_locations): New type.
10338 (deferred_locations_list): New static var.
10339 (deffer_location): New function.
10340 (gen_variable_die): Use it.
10341 (decls_for_scope): Output info on local static vars.
10342 (dwarf2out_finish): Process deferred locations.
10343 * varpool.c (varpool_output_debug_info): Remove.
10345 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
10347 PR rtl-optimization/39241
10348 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
10349 to subreg_offset_representable_p.
10351 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
10353 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
10354 execute function prototype. Get f and nregs from max_reg_num
10355 and get_insns. Remove the first backward pass as it's dead,
10356 guard the forward pass by flag_expensive_optimizations.
10357 (rest_of_handle_regmove): Delete.
10358 (pass_regmove): Replace it with regmove_optimize.
10360 2009-02-25 Martin Jambor <mjambor@suse.cz>
10362 PR tree-optimization/39259
10363 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
10364 calls_alloca function flags.
10365 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
10366 calls are detected.
10368 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
10370 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
10371 flags_set_1_rtx, flags_set_1_set): Delete.
10372 (regmove_optimize): Do not call mark_flags_life_zones.
10374 2009-02-24 Julian Brown <julian@codesourcery.com>
10377 * config/arm/arm.c (require_pic_register): Only set
10378 cfun->machine->pic_reg once per function.
10380 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
10382 * doc/invoke.texi (Link Options): Document an easier way to pass
10383 options that take arguments to the GNU linker using -Xlinker and -Wl.
10385 2009-02-24 Steve Ellcey <sje@cup.hp.com>
10388 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
10390 2009-02-24 Richard Guenther <rguenther@suse.de>
10393 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
10395 2009-02-24 Richard Guenther <rguenther@suse.de>
10396 Zdenek Dvorak <ook@ucw.cz>
10398 PR tree-optimization/39233
10399 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
10400 from converting them to a generic type.
10402 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
10404 PR tree-optimization/39260
10405 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
10406 contains a condition with a real type.
10407 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
10409 2009-02-23 Jason Merrill <jason@redhat.com>
10412 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
10413 narrowing_initializer_constant_valid_p.
10414 (narrowing_initializer_constant_valid_p): Don't return
10415 null_pointer_node for adding a pointer to itself.
10417 2009-02-23 Jan Hubicka <jh@suse.cz>
10420 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
10423 2009-02-23 Jan Hubicka <jh@suse.cz>
10425 PR tree-optimization/37709
10426 * tree.c (block_ultimate_origin): Move here from dwarf2out.
10427 * tree.h (block_ultimate_origin): Declare.
10428 * dwarf2out.c (block_ultimate_origin): Move to tree.c
10429 * tree-ssa-live.c (remove_unused_scope_block_p):
10430 Eliminate blocks containig no instructions nor live variables nor
10432 (dump_scope_block): New function.
10433 (remove_unused_locals): Enable removal of dead blocks by default;
10434 enable dumping at TDF_DETAILS.
10436 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
10438 * config/i386/i386.c (classify_argument): Don't allow COImode
10440 (function_arg_advance_32): Don't allow OImode.
10441 (function_arg_32): Likewise.
10442 (function_value_32): Likewise.
10443 (return_in_memory_32): Likewise.
10444 (function_arg_64): Remove OImode comment.
10446 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
10449 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
10450 ix86_expand_vector_set for V4DImode in 64bit mode only.
10451 (ix86_expand_vector_init_one_var): Likewise.
10453 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
10455 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
10457 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10460 * loop-iv.c: Revert last change.
10461 * emit-rtl.c: Likewise.
10463 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
10466 * config/i386/i386.c (type_natural_mode): Remove an extra
10467 space in the warning message.
10468 (function_value_32): Handle 32-byte vector modes.
10469 (return_in_memory_32): Likewise.
10471 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10473 * loop-iv.c (truncate_value): New function.
10474 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
10476 (lowpart_subreg): Move to...
10477 * emit-rtl.c: ...here.
10479 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
10481 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
10482 accidental and undocumented change at revision 140860.
10484 2009-02-21 Joseph Myers <joseph@codesourcery.com>
10486 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
10487 take gimple_seq * arguments.
10488 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
10489 types_compatible_p langhook.
10491 2009-02-20 Mark Mitchell <mark@codesourcery.com>
10492 Joseph Myers <joseph@codesourcery.com>
10494 * config/arm/arm.c (arm_builtin_va_list): New function.
10495 (arm_expand_builtin_va_start): Likewise.
10496 (arm_gimplify_va_arg_expr): Likewise.
10497 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
10498 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
10499 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
10500 (va_list_type): New variable.
10501 (arm_mangle_type): Mangle va_list_type appropriately.
10503 2009-02-20 Jakub Jelinek <jakub@redhat.com>
10505 PR middle-end/39157
10506 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
10507 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
10508 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
10509 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
10510 parameter to 1000 for -O1 by default.
10511 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
10513 * loop-invariant.c: Include params.h.
10514 (move_loop_invariants): Don't call move_single_loop_invariants on
10517 2009-02-20 Jaka Mocnik <jaka@xlab.si>
10519 * calls.c (emit_library_call_value_1): Use slot_offset instead of
10520 offset when calculating bounds for indexing stack_usage_map. Fixes
10521 a buffer overflow with certain target setups.
10523 2009-02-20 Jakub Jelinek <jakub@redhat.com>
10526 * calls.c (expand_call): Clear try_tail_call if caller and callee
10527 disagree in promotion of function return value.
10529 2009-02-19 Jakub Jelinek <jakub@redhat.com>
10532 * c-common.c (c_determine_visibility): If visibility changed and
10533 DECL_RTL has been already set, call make_decl_rtl to update symbol
10536 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
10539 * varasm.c (assemble_variable): Don't check DECL_NAME when
10540 globalizing a variable.
10542 2009-02-19 Joseph Myers <joseph@codesourcery.com>
10545 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
10546 expression before any __builtin_trap call.
10547 * c-typeck.c (build_function_call): Convert and check function
10548 arguments before generating a call to a trap. Evaluate the
10549 function arguments before the trap.
10551 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
10554 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
10555 (UNSPEC_FXAM_MEM): New unspec.
10556 (fxam<mode>2_i387_with_temp): New insn and split pattern.
10557 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
10558 memory using fxam<mode>2_i387_with_temp to remove excess precision.
10560 2009-02-19 Richard Guenther <rguenther@suse.de>
10562 PR tree-optimization/39207
10563 PR tree-optimization/39074
10564 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
10565 storedanything_tree): New.
10566 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
10567 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
10568 (build_succ_graph): Add edges from STOREDANYTHING to all
10570 (init_base_vars): Initialize STOREDANYTHING.
10571 (compute_points_to_sets): Free substitution info after
10572 building the succ graph.
10573 (ipa_pta_execute): Likewise.
10575 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
10577 (do_ds_constraint): Do not add to special var or non-pointer
10579 (type_could_have_pointers): Split out from ...
10580 (could_have_pointers): ... here. For arrays use the element type.
10581 (create_variable_info_for): Initialize may_have_pointers.
10582 (new_var_info): Likewise.
10583 (handle_lhs_call): Make the HEAP variable unknown-sized.
10584 (intra_create_variable_infos): Use a type with pointers for
10585 PARM_NOALIAS, make it unknown-sized.
10587 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
10590 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
10592 2009-02-18 Jason Merrill <jason@redhat.com>
10595 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
10596 value if DECL_EXTERNAL.
10597 * tree-sra.c (sra_walk_gimple_assign): Likewise.
10598 * target.h (gcc_target::binds_local_p): Clarify "module".
10599 * tree.h (TREE_PUBLIC): Clarify "module".
10601 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
10604 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
10605 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
10607 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
10610 * c.opt (Wabi): Support C and ObjC.
10613 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
10615 * config/i386/i386.c (classify_argument): Warn once about the ABI
10616 change when passing union with long double.
10618 * doc/invoke.texi: Update -Wabi for warning psABI changes.
10620 2009-02-18 Joseph Myers <joseph@codesourcery.com>
10623 * c-parser.c (c_parser_compound_statement): Always enter and leave
10626 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10629 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
10631 2009-02-18 Jakub Jelinek <jakub@redhat.com>
10633 PR tree-optimization/36922
10634 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
10635 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
10638 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10640 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
10643 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10645 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
10647 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10649 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
10652 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
10653 Richard Sandiford <rdsandiford@googlemail.com>
10655 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
10656 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
10657 (loongson_biadd): ...this.
10659 2009-02-17 Richard Guenther <rguenther@suse.de>
10661 PR tree-optimization/39202
10662 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
10663 a var make sure to follow existing collapses.
10665 2009-02-17 Richard Guenther <rguenther@suse.de>
10667 PR middle-end/39214
10668 * langhooks.c (lhd_print_error_function): Check for NULL block.
10670 2009-02-17 Richard Guenther <rguenther@suse.de>
10672 PR tree-optimization/39204
10673 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
10676 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
10678 * config/soft-fp/double.h: Update from glibc CVS.
10680 2009-02-17 Richard Guenther <rguenther@suse.de>
10682 PR tree-optimization/39207
10683 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
10684 strict-aliasing warnings for pointers pointing to NULL.
10686 2009-02-16 Joseph Myers <joseph@codesourcery.com>
10689 * c-parser.c (c_parser_braced_init): Call pop_init_level when
10690 skipping until next close brace.
10692 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
10695 * config/i386/i386.c (ix86_expand_push): Set memory alignment
10696 to function argument boundary.
10698 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
10700 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
10701 in the lea_add. Reload eventually constraints it properly.
10702 * config/picochip/constraints.md: Remove the target constraint
10703 "b", since it is not needed anymore.
10705 2009-02-16 Jakub Jelinek <jakub@redhat.com>
10707 * gthr-dce.h: Uglify function parameter and local variable names.
10708 * gthr-gnat.h: Likewise.
10709 * gthr-mipssde.h: Likewise.
10710 * gthr-nks.h: Likewise.
10711 * gthr-posix95.h: Likewise.
10712 * gthr-posix.h: Likewise.
10713 * gthr-rtems.h: Likewise.
10714 * gthr-single.h: Likewise.
10715 * gthr-solaris.h: Likewise.
10716 * gthr-tpf.h: Likewise.
10717 * gthr-vxworks.h: Likewise.
10718 * gthr-win32.h: Likewise.
10720 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
10723 * config/i386/i386.md: Restrict the new peephole2 to move
10724 between MMX/SSE registers.
10726 2009-02-15 Richard Guenther <rguenther@suse.de>
10729 2009-02-13 Richard Guenther <rguenther@suse.de>
10731 * configure.ac: Enable LFS.
10732 * configure: Re-generate.
10733 * config.in: Likewise.
10735 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10737 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
10738 spu_srqwbyte, spu_srqwbytebc): Define.
10739 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
10740 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
10741 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
10742 "shrqby_<mode>"): New insn-and-split patterns.
10743 * config/spu/spu.c (expand_builtin_args): Determine and return
10744 number of operands using spu_builtin_description data.
10745 (spu_expand_builtin_1): Use it.
10747 2009-02-13 Steve Ellcey <sje@cup.hp.com>
10750 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
10753 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10756 * config/i386/i386.c (override_options): Correct warning
10757 messages for -malign-loops, -malign-jumps and -malign-functions.
10759 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10762 * config/i386/i386.md: Restrict the new peephole2 to move
10763 between the general purpose registers.
10765 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10768 * config/i386/i386.c (type_natural_mode): Add a new argument.
10769 Return the original mode and warn ABI change if vector size is 32byte.
10770 (function_arg_advance): Updated.
10771 (function_arg): Likewise.
10772 (ix86_function_value): Likewise.
10773 (ix86_return_in_memory): Likewise.
10774 (ix86_sol10_return_in_memory): Likewise.
10775 (ix86_gimplify_va_arg): Likewise.
10776 (function_arg_32): Don't warn ABX ABI change here.
10777 (function_arg_64): Likewise.
10779 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
10781 * loop-iv.c (implies_p): In the final case, test that operands 0
10782 of the two comparisons match.
10784 * config/bfin/bfin.c (find_prev_insn_start): New function.
10785 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
10786 (find_next_insn_start): Move.
10788 2009-02-13 Richard Guenther <rguenther@suse.de>
10790 * configure.ac: Enable LFS.
10791 * configure: Re-generate.
10792 * config.in: Likewise.
10794 2009-02-13 Joseph Myers <joseph@codesourcery.com>
10797 * c-parser.c (c_parser_parms_list_declarator): Discard pending
10798 sizes on syntax error after some arguments have been parsed.
10800 2009-02-12 Jakub Jelinek <jakub@redhat.com>
10802 * doc/invoke.texi (-fira): Remove.
10804 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10806 * caller-save.c: Replace regclass.c with reginfo.c in comments.
10807 * recog.c: Likewise.
10810 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
10812 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
10813 (umul_ppmm): Likewise.
10814 (count_leading_zeros): Likewise.
10815 (count_trailing_zeros): Likewise.
10816 (UMUL_TIME): Likewise.
10818 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10820 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
10821 soft-fp/t-softfp to tmake_file.
10823 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
10824 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
10825 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
10826 IA64_BUILTIN_INFQ]: New.
10827 (ia64_init_builtins): Initialize __builtin_infq,
10828 __builtin_fabsq and __builtin_copysignq if not HPUX.
10829 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
10830 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
10832 * config/ia64/lib1funcs.asm (__divtf3): Define only if
10834 (__fixtfti): Likewise.
10835 (__fixunstfti): Likewise.
10836 (__floattitf): Likewise.
10838 * config/ia64/libgcc-glibc.ver: New.
10839 * config/ia64/t-fprules-softfp: Likewise.
10840 * config/ia64/sfp-machine.h: Likewise.
10842 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
10843 (LIBGCC2_TF_CEXT): Likewise.
10844 (TF_SIZE): Likewise.
10845 (TARGET_INIT_LIBFUNCS): Likewise.
10847 * config/ia64/t-glibc (SHLINB_MAPFILES):
10848 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
10850 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10852 * config/i386/i386.c (construct_container): Rewrite processing
10853 BLKmode with X86_64_SSE_CLASS.
10855 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
10858 * config/i386/i386.md: Replace simplify_replace_rtx with
10859 replace_rtx in the new peephole2.
10861 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
10863 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
10864 loop unrolling do not happen at -O2.
10866 2009-02-12 Michael Matz <matz@suse.de>
10868 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
10870 2009-02-12 Jakub Jelinek <jakub@redhat.com>
10872 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
10875 2009-02-12 Ben Elliston <bje@au.ibm.com>
10877 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
10878 patterns when updating the back chain. Missed in the 2009-02-10
10881 2009-02-11 Janis Johnson <janis187@us.ibm.com>
10883 * doc/extend.texi (Decimal Floating Types): Update identifier of
10884 draft TR and list of missing support.
10886 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10888 PR middle-end/39154
10889 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
10890 bit to variable length decl's flags, add it also to its
10891 pointer replacement variable.
10893 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
10894 Jakub Jelinek <jakub@redhat.com>
10897 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
10898 (memory_blockage): New expander.
10899 (*memory_blockage): New insn pattern.
10900 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
10901 instead of general blockage at the end of function prologue when
10902 frame pointer is used to access red zone area. Do not emit blockage
10903 when profiling, it is emitted in generic code.
10904 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
10905 function epilogue when frame pointer is used to access red zone area.
10907 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
10910 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
10911 by arithmetic with memory operands.
10912 * config/i386/predicates.md (commutative_operator): New.
10914 2009-02-10 Janis Johnson <janis187@us.ibm.com>
10916 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
10919 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
10921 * alias.h (record_alias_subset): Declare.
10922 * alias.c (record_alias_subset): Make global.
10924 2009-02-10 Nick Clifton <nickc@redhat.com>
10926 * tree-parloops.c: Change license to GPLv3.
10927 * ipa-struct-reorg.c: Change license to GPLv3.
10928 * ipa-struct-reorg.h: Change license to GPLv3.
10930 2009-02-10 Steve Ellcey <sje@cup.hp.com>
10933 * c-decl.c (start_struct): Return NULL on error.
10935 2009-02-10 Jakub Jelinek <jakub@redhat.com>
10937 PR middle-end/39124
10938 * cfgloopmanip.c (remove_path): Call remove_bbs after
10939 cancel_loop_tree, not before it.
10942 * function.h (struct function): Add has_local_explicit_reg_vars bit.
10943 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
10944 VAR_DECLs were seen.
10945 * tree-ssa-live.c (remove_unused_locals): Recompute
10946 cfun->has_local_explicit_reg_vars.
10947 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
10948 copies or clearings if cfun->has_local_explicit_reg_vars.
10950 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
10953 * config/i386/i386.c (expand_prologue): Emit blockage at the end
10954 of function prologue when frame pointer is used to access
10957 2009-02-10 Richard Guenther <rguenther@suse.de>
10959 PR middle-end/39127
10960 * gimplify.c (gimple_regimplify_operands): Always look if
10961 we need to create a temporary.
10963 2009-02-10 Richard Guenther <rguenther@suse.de>
10965 PR tree-optimization/39132
10966 * tree-loop-distribution.c (todo): New global var.
10967 (generate_memset_zero): Trigger TODO_rebuild_alias.
10968 (tree_loop_distribution): Return todo.
10970 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
10973 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
10974 (x86_64_reg_class_name): Removed.
10975 (classify_argument): Return 0 if bytes > 32. Return 0 if the
10976 first one isn't X86_64_SSE_CLASS or any other ones aren't
10977 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
10978 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
10979 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
10980 and 3 X86_64_SSEUP_CLASS.
10981 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
10982 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
10984 2009-02-10 Ben Elliston <bje@au.ibm.com>
10986 * config/rs6000/rs6000.md (allocate_stack): Always use an update
10987 form instruction to update the stack back chain word, even if the
10988 user has disabled the generation of update instructions.
10989 (movdi_<mode>_update_stack): New.
10990 (movsi_update_stack): Likewise.
10991 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
10992 always use an update form instruction to update the stack back
10995 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
10997 PR middle-end/38953
10998 * graphite.c (if_region_set_false_region): After moving a region in
10999 the false branch of a condition, remove the empty dummy basic block.
11000 (gloog): Remove wrong fix for PR38953.
11002 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11004 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
11005 generation due to implicit sign extension.
11007 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11009 PR middle-end/38981
11010 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
11011 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
11013 2009-02-09 Richard Guenther <rguenther@suse.de>
11015 PR middle-end/35202
11016 * convert.c (convert_to_real): Disable (float)fn((double)x)
11017 to fnf(x) conversion if errno differences may occur and
11018 -fmath-errno is set.
11020 2009-02-07 Anatoly Sokolov <aesok@post.ru>
11022 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
11023 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11024 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11026 2009-02-06 Joseph Myers <joseph@codesourcery.com>
11029 * c-common.c (handle_alias_attribute): Disallow attribute for
11030 anything not a FUNCTION_DECL or VAR_DECL.
11032 2009-02-06 Janis Johnson <janis187@us.ibm.com>
11035 * real.c (do_compare): Special-case compare of zero against
11036 decimal float value.
11038 2009-02-06 Joseph Myers <joseph@codesourcery.com>
11041 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
11042 as indicating flexible array members unless the field itself is
11043 being declarared as the incomplete array.
11045 2009-02-06 Jan Hubicka <jh@suse.cz>
11047 PR tree-optimization/38844
11048 * ipa-inline.c (try_inline): Stop inlining recursion when edge
11049 is already inlined.
11051 2009-02-06 Richard Guenther <rguenther@suse.de>
11053 PR middle-end/38977
11054 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
11055 fork because we may expand it as __gcov_fork.
11057 2009-02-06 Nick Clifton <nickc@redhat.com>
11059 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
11061 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
11063 PR tree-optimization/35659
11064 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
11065 vn_phi_eq): Shortcut if hashcode does not match.
11066 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
11068 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
11069 and avoid iterative_hash_expr.
11070 (FOR_EACH_VALUE_ID_IN_SET): New.
11071 (value_id_compare): Remove.
11072 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
11073 sort expressions by value id.
11075 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
11078 * config/sh/predicates.md (general_movsrc_operand): Don't check
11079 the subreg of system registers here.
11081 2009-02-05 Jakub Jelinek <jakub@redhat.com>
11084 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
11085 on the copied decl.
11087 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
11089 PR rtl-optimization/39110
11090 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
11091 addresses, not aligned ones.
11093 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
11094 Richard Guenther <rguenther@suse.de>
11096 PR tree-optimization/39100
11097 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
11098 comment says and add edges.
11100 2009-02-05 Joseph Myers <joseph@codesourcery.com>
11103 * c-common.c (handle_tls_model_attribute): Ignore attribute for
11104 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
11106 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
11108 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
11109 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
11110 register_bb_in_sese, new_sese, free_sese): Moved.
11111 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
11112 outermost_loop_in_scop, build_scop_iteration_domain,
11113 expand_scalar_variables_ssa_name, get_vdef_before_scop,
11114 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
11115 Use loop_in_sese_p instead of loop_in_scop_p.
11116 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
11117 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
11118 (scopdet_basic_block_info): Fix bug in scop detection.
11119 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
11120 eq_loop_to_cloog_loop): Remove.
11121 (nb_loops_around_loop_in_scop, nb_loop
11122 ref_nb_loops): Moved here...
11123 * graphite.h (ref_nb_loops): ... from here.
11124 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
11125 (loop_domain_dim, loop_iteration_vector_dim): Remove.
11126 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
11127 * testsuite/gcc.dg/graphite/scop-19.c: New
11129 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
11130 Hans-Peter Nilsson <hp@axis.com>
11132 PR rtl-optimization/37889
11133 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
11134 Move offset handling from PLUS to before the switch. Use new
11135 arguments when considering SYMBOL_REFs too.
11136 (rtx_addr_can_trap_p): Pass dummy offset and size.
11137 (enum may_trap_p_flags): Remove.
11138 (may_trap_p_1): Pass size from MEM_SIZE.
11140 PR rtl-optimization/38921
11141 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
11142 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
11143 * rtlanal.c (may_trap_after_code_motion_p): Delete.
11144 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
11146 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
11148 AVX Programming Reference (January, 2009)
11149 * config/i386/sse.md (*vpclmulqdq): New.
11151 2009-02-04 Jakub Jelinek <jakub@redhat.com>
11153 PR tree-optimization/38977
11154 PR gcov-profile/38292
11155 * calls.c (special_function_p): Disregard __builtin_ prefix.
11157 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11159 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
11160 non-indexable addresses even before reload.
11162 2009-02-03 Joseph Myers <joseph@codesourcery.com>
11165 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
11166 as having variable size. Do not give an error for unnamed
11167 parameters with [*] declarators. Give a warning for type names
11168 with [*] declarators and mark them as variable size.
11169 * c-parser.c (c_parser_sizeof_expression): Do not give an error
11170 for sizeof applied to [*] type names.
11172 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
11175 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
11177 2009-02-03 Jakub Jelinek <jakub@redhat.com>
11179 * gcc.c (process_command): Update copyright notice dates.
11180 * gcov.c (print_version): Likewise.
11181 * gcov-dump.c (print_version): Likewise.
11182 * mips-tfile.c (main): Likewise.
11183 * mips-tdump.c (main): Likewise.
11185 2009-02-03 Joseph Myers <joseph@codesourcery.com>
11188 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
11189 for composite type involving a zero-length array type.
11191 2009-02-03 Jakub Jelinek <jakub@redhat.com>
11194 * function.c (match_asm_constraints_1): Skip over
11195 initial optional % in the constraint.
11197 PR inline-asm/39059
11198 * c-parser.c (c_parser_postfix_expression): If fixed point is not
11199 supported, don't accept FIXED_CSTs.
11200 * c-decl.c (finish_declspecs): Error if fixed point is not supported
11201 and _Sat is used without _Fract/_Accum. Set specs->type to
11202 integer_type_node for cts_fract/cts_accum if fixed point is not
11205 2009-02-02 Catherine Moore <clm@codesourcery.com>
11207 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
11209 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
11211 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
11212 (ABI_HAS_64BIT_SYMBOLS): Use it.
11213 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
11215 2009-02-02 Paul Brook <paul@codesourcery.com>
11217 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
11219 2009-02-02 Jakub Jelinek <jakub@redhat.com>
11221 PR inline-asm/39058
11222 * recog.h (asm_operand_ok): Add constraints argument.
11223 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
11224 recurse on matching constraint.
11225 (check_asm_operands): Pass constraints as 3rd argument to
11226 asm_operand_ok. Don't look up matching constraint here.
11227 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
11230 2009-02-02 Ben Elliston <bje@au.ibm.com>
11232 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
11233 TARGET_NARROW_VOLATILE_BITFIELD macro names.
11235 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11237 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
11238 information. Remove some obsolete information. Reorganize.
11240 * config/pa/fptr.c: Revert license to GPL 2.
11241 * config/pa/milli64.S: Likewise.
11243 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
11246 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
11247 LIBRARY name in, instead of hard-coding it.
11248 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
11249 extra target make frag to tmake_files according to EH model.
11250 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11251 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
11252 frags that define makefile variable EH_MODEL appropriately.
11253 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
11254 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
11255 to "-sjlj" according to type of EH configured.
11256 (LIBGCC_SONAME): Concatenate it to shared library base name.
11257 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
11258 to "_sjlj" according to type of EH configured.
11259 (LIBGCC_SONAME): Concatenate it to shared library base name.
11260 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
11261 (SHLIB_LINK): Add missing semicolon to if-else construct.
11262 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
11263 string value of "pe_dll" command-line option.
11264 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
11265 (SHLIB_SONAME): Use it when overriding t-cygming default.
11266 (SHLIB_IMPLIB): Override t-cygming default.
11267 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
11268 string value of "pe_dll" command-line option.
11270 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
11273 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
11274 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
11276 2009-01-31 Richard Guenther <rguenther@suse.de>
11278 PR tree-optimization/38937
11279 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
11280 computing the transitive closure.
11282 2009-01-30 Richard Guenther <rguenther@suse.de>
11284 PR tree-optimization/39041
11285 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11286 Propagate variable indices only if the types match for this stmt.
11288 2009-01-30 Jakub Jelinek <jakub@redhat.com>
11291 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
11292 inline but never defined.
11294 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
11296 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
11297 (*insv_h_di_reg_extimm): New insn.
11298 (*insv_l<mode>_reg_extimm): New insn.
11300 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11302 * config/picochip/picochip.c (flag_conserve_stack): set
11303 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
11304 fconserve-stack. Reduce call-overhead used by inliner.
11306 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11309 * common.opt (flag_conserve_stack): Initialised to zero.
11311 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
11314 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
11315 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
11318 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
11320 * ira-color.c (allocno_reload_assign): Update comments.
11321 * regmove.c (regmove_optimize): Likewise.
11325 2009-01-29 Robert Millan <rmh@aybabtu.com>
11327 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
11328 * config/i386/kopensolaris-gnu.h: New file. Undefine
11329 `MD_UNWIND_SUPPORT'.
11330 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
11332 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
11334 PR tree-optimization/39007
11335 * tree-loop-distribution.c (generate_builtin): Use
11336 recompute_dominator to compute the immediate dominator of the
11337 basic block just after the loop.
11339 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11341 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
11342 (ASM_OUTPUT_DWARF_PCREL): Define.
11344 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
11346 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
11347 * doc/passes.texi: Remove entries about regclass, local-alloc, and
11348 global. Modify entries about regmove and IRA.
11350 * ra-conflict.c: Remove the file.
11352 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
11354 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
11355 (pass_regclass_init): Rename to pass_reginfo_init.
11357 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
11359 * toplev.h (flag_ira): Remove.
11361 * caller-save.c (setup_save_areas): Remove flag_ira.
11363 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
11365 * global.c: Remove the file.
11367 * opts.c (decode_options): Remove flag_ira.
11369 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
11371 * regmove.c: Modify file description.
11372 (find_use_as_address, try_auto_increment): Define them only if
11373 AUTO_INC_DEC is defined.
11374 (replacement_quality, replace_in_call_usage, fixup_match_1,
11375 stable_and_no_regs_but_for_p): Remove.
11376 (reg_set_in_bb): Make it static.
11377 (regmove_optimize): Remove flag_ira and code which worked for
11380 * local-alloc.c: Remove the file.
11382 * common.opt (fira): Remove.
11384 * ira.c: Include except.h.
11385 (eliminable_regset): Move from global.c.
11386 (mark_elimination): Ditto. Remove flag_ira.
11387 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
11388 equiv_mem_modified, validate_equiv_mem_from_store,
11389 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
11390 contains_replace_regs, memref_referenced_p, memref_used_between_p,
11391 no_equiv, recorded_label_ref): Move from local-alloc.c.
11392 (update_equiv_regs): Ditto. Make it static.
11393 (print_insn_chain, print_insn_chains): Move it from global.c.
11394 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
11395 (build_insn_chain): Ditto. Make it static.
11396 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
11397 Rename to init_live_subregs.
11398 (gate_ira): Remove flag_ira.
11400 * regclass.c: Rename reginfo.c. Change file description.
11401 (FORBIDDEN_INC_DEC_CLASSES): Remove.
11402 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
11403 (init_reg_sets_1): Remove code for evaluation of
11404 reg_class_superclasses and losing_caller_save_reg_set.
11405 (init_regs): Remove init_reg_autoinc.
11406 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
11407 ok_for_base_p_nonstrict): Remove.
11408 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
11409 (pass_regclass_init): Rename to pass_reginfo_init. Modify
11410 corresponding entries.
11411 (dump_regclass, record_operand_costs, scan_one_insn,
11412 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
11413 record_address_regs, auto_inc_dec_reg_p): Remove.
11414 (gt-regclass.h): Rename to gt-reginfo.h.
11416 * rtl.h (dump_global_regs, retry_global_alloc,
11417 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
11419 * Makefile.in (RA_H): Remove.
11420 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
11421 Rename regclass.o to reginfo.o.
11422 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
11424 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
11425 (GTFILES): Rename regclass.c to reginfo.c.
11427 * passes.c (init_optimization_passes): Remove pass_local_alloc and
11428 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
11430 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
11431 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
11433 (finish_spills): Ditto. Remove code for !flag_ira.
11435 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
11437 PR middle-end/35854
11438 * doc/invoke.texi (rtl debug options): Complete rewrite.
11439 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
11441 * mode-switching.c (pass_mode_switching): Rename pass from
11442 "mode-sw" to "mode_sw".
11443 * except.c (pass_convert_to_eh_ranges): Rename pass from
11444 "eh-ranges" to "eh_ranges".
11445 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
11449 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
11450 Alexander Monakov <amonakov@ispras.ru>
11452 PR middle-end/38857
11453 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
11455 (move_exprs_to_boundary): Change return type and pass through
11456 should_move from move_op. Relax assert. Update usage ...
11457 (schedule_expr_on_boundary): ... here. Use should_move instead of
11459 (move_op_orig_expr_found): Indicate that insn was disconnected from
11461 (code_motion_process_successors): Do not call after_merge_succs
11462 callback if original expression was not found when traversing any of
11464 (code_motion_path_driver): Change return type. Update prototype.
11465 (move_op): Update comment. Add a new parameter (should_move). Update
11466 prototype. Set *should_move based on indication provided by
11467 move_op_orig_expr_found.
11469 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
11471 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
11472 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
11473 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
11474 * config/rs6000/rs6000.c (rs6000_override_options): Default
11475 avoid-indexed-addresses on for Power6, off for everything else.
11476 (avoiding_indexed_address_p): New function.
11477 (rs6000_legitimize_address): Use it.
11478 (rs6000_legitimate_address): Likewise.
11479 * config/rs6000/rs6000.md (movXX_updateX): Likewise
11481 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
11483 PR tree-optimization/38997
11484 * tree-loop-distribution.c (generate_memset_zero): Use
11485 POINTER_PLUS_EXPR for a pointer addition.
11487 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
11489 * config/s390/s390.md (bswap<mode>2): New pattern added.
11491 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11493 * config/s390/s390.md (*tls_load_31): Added type attribute.
11495 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11497 * config/s390/s390.md: Fix a few comments.
11499 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11501 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
11502 (*tm<mode>_full): Fixed z10prop attribute.
11503 (*tst<mode>_extimm): Fixed z10prop attribute.
11504 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
11505 (*tstqiCCT_cconly): Fixed z10prop attribute.
11506 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
11507 (*movsi_larl): Fixed z10prop attribute.
11508 (*movsi_zarch): Fixed z10prop attribute.
11509 (*movsi_eas): Fixed z10prop attribute.
11510 (*movhi): Fixed z10prop attribute.
11511 (*movqi): Fixed z10prop attribute.
11512 (*movstrictqi): Fixed z10prop attribute.
11513 (*mov<mode>): Fixed z10prop attribute.
11514 (*movcc): Fixed z10prop attribute.
11515 (*sethighpartdi_64): Fixed z10prop attribute.
11516 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
11517 (*negdi2_sign_cc): Fixed z10prop attribute.
11518 (*negdi2_sign): Fixed z10prop attribute.
11519 (*absdi2_sign_cc): Fixed z10prop attribute.
11520 (*absdi2_sign): Fixed z10prop attribute.
11521 (*negabsdi2_sign_cc): Fixed z10prop attribute.
11522 (*negabsdi2_sign): Fixed z10prop attribute.
11523 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
11524 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
11525 (doloop_si64): Fixed z10prop attribute.
11526 (doloop_si31): Fixed z10prop attribute.
11527 (doloop_long): Fixed z10prop attribute.
11528 (indirect_jump): Fixed z10prop attribute.
11529 (nop): Fixed z10prop attribute.
11530 (main_base_64): Fixed z10prop attribute.
11531 (reload_base_64): Fixed z10prop attribute.
11533 2009-01-28 Jakub Jelinek <jakub@redhat.com>
11535 PR rtl-optimization/38740
11536 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
11538 * config/mips/mips.c (mips_reorg): Likewise.
11540 2009-01-28 Richard Guenther <rguenther@suse.de>
11542 PR tree-optimization/38926
11543 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
11544 with the correct value id to a value.
11545 (do_regular_insertion): Use the value number of edoubleprime
11546 for the value number of the expr.
11549 2008-08-21 Richard Guenther <rguenther@suse.de>
11551 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
11552 a PHI ask VN if it is already available.
11553 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
11554 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
11556 2009-01-28 Jakub Jelinek <jakub@redhat.com>
11558 PR middle-end/38934
11559 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
11560 set to varying whenever max has TREE_OVERFLOW set, similarly
11561 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
11563 2009-01-28 Richard Guenther <rguenther@suse.de>
11565 PR middle-end/38908
11566 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
11567 uninitialized aggregate uses in call arguments.
11569 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
11571 PR tree-optimization/38984
11572 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
11573 the nothing_id variable if -fno-delete-null-pointer-checks.
11575 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
11578 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
11579 (set_got_offset_rex64): Ditto.
11581 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
11584 * doc/extend.texi: Improve local variable with asm reg.
11586 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
11588 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
11589 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
11590 was not supplied then set warn_packed_bitfield_compat to the
11591 default value of 1.
11592 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
11595 2009-01-27 Richard Guenther <rguenther@suse.de>
11597 PR tree-optimization/38503
11598 * cfgexpand.c (expand_gimple_basic_block): Ignore
11599 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
11600 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
11601 variables that cannot have TBAA applied.
11602 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
11605 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
11607 PR middle-end/38969
11608 * calls.c (initialize_argument_information): Do not wrap complex
11609 arguments in SAVE_EXPR.
11611 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
11613 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
11614 (INSTALL_LIBGCC): Revert typo commit.
11616 2009-01-26 Richard Guenther <rguenther@suse.de>
11618 PR tree-optimization/38745
11619 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
11620 from special handling.
11622 2009-01-26 Richard Guenther <rguenther@suse.de>
11624 PR tree-optimization/38745
11625 * tree-ssa.c (execute_update_addresses_taken): Do not include
11626 variables that cannot possibly be a register in not_reg_needs.
11627 Do not clear TREE_ADDRESSABLE on vars that may not become
11629 * tree-ssa.c (update_alias_info_1): Include those in the set
11630 of addressable vars.
11632 2009-01-26 Richard Guenther <rguenther@suse.de>
11634 PR middle-end/38851
11635 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
11636 * tree-ssa-dse.c: Include langhooks.h
11637 (execute_simple_dse): Remove stores with zero size.
11639 2009-01-24 Jakub Jelinek <jakub@redhat.com>
11642 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
11645 2009-01-24 Julian Brown <julian@codesourcery.com>
11647 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
11648 config/arm/linux-atomic.c.
11649 * config/arm/linux-atomic.c: New.
11651 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
11653 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
11654 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
11655 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
11657 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
11660 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
11663 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
11665 PR tree-optimization/38953
11666 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
11667 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
11668 (gloog): Split the exit of the scop when the scop exit is a loop exit.
11669 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
11672 2009-01-24 Paul Brook <paul@codesourcery.com>
11674 * config/arm/neon.md (neon_type): Move to arm.md.
11675 (neon_mov<VSTRUCT>): Add neon_type attribute.
11676 * config/arm/arm.md (neon_type): Move to here.
11677 (conds): Add "unconditioal" and use as default for NEON insns.
11679 2009-01-24 Ben Elliston <bje@au.ibm.com>
11681 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
11682 void *' warning from -Wc++-compat.
11683 * Makefile.in (dominance.o-warn): Remove.
11685 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
11687 PR tree-optimization/38932
11688 * fold-const.c (fold_unary_ignore_overflow): New.
11689 * tree.h (fold_unary_ignore_overflow): Declare.
11690 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
11691 * tree-ssa-sccvn.c (visit_reference_op_load,
11692 simplify_unary_expression): Likewise.
11694 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
11696 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
11697 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
11698 regardless of their type.
11699 * c-common.c (handle_packed_attribute): Don't ignore packed on
11701 * c.opt (Wpacked-bitfield-compat): New warning option.
11702 * stor-layout.c (place_field): Warn if offset of a field changed.
11703 * doc/extend.texi (packed): Mention the ABI change.
11704 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
11705 (Warning Options): Add it to the list.
11707 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
11709 * c-opts.c (c_common_post_options): Fix a typo in comments.
11711 2009-01-22 Steve Ellcey <sje@cup.hp.com>
11713 PR middle-end/38615
11714 * gimplify.c (gimplify_init_constructor): Fix promotion of const
11715 variables to static.
11716 * doc/invoke.texi (-fmerge-all-constants): Update description.
11718 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
11721 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
11722 (*movdi_1_rex64): Use type "mmx" for alternative 5.
11724 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
11726 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
11728 (LOCAL_ALIGNMENT): Similarly.
11730 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
11731 Joseph Myers <joseph@codesourcery.com>
11733 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
11734 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
11735 * config/arm/arm-tune.md: Regenerate.
11736 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
11739 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
11741 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
11742 version number to five.
11744 2009-01-22 Dodji Seketeli <dodji@redhat.com>
11747 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
11748 * c-common.c (set_underlying_type): Likewise.
11749 (is_typedef_decl ): Likewise
11751 (set_underlying_type): Likewise.
11752 (is_typedef_type): Likewise.
11754 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
11756 PR middle-end/38587
11757 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
11760 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11763 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
11764 (LIBGCC_SPEC): Don't define.
11765 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
11767 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
11769 PR rtl-optimization/38879
11770 * alias.c (base_alias_check): Unaligned access via AND address can
11771 alias all surrounding object types except those with sizes equal
11772 or wider than the size of unaligned access.
11774 2009-01-21 Dodji Seketeli <dodji@redhat.com>
11777 * c-decl.c (clone_underlying_type): Move this ...
11778 * c-common.c (set_underlying_type): ... here.
11779 Also, make sure the function properly sets TYPE_STUB_DECL() on
11780 the newly created typedef variant type.
11781 (is_typedef_decl ): New entry point.
11782 * tree.h: Added a new member member_types_needing_access_check to
11783 struct tree_decl_non_common.
11784 (set_underlying_type): New entry point.
11785 (is_typedef_type): Likewise.
11787 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
11789 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
11790 Check whether two instructions have memory references that
11791 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
11792 are helper functions for traversing.
11793 * alias.h (insn_alias_sets_confilict_p): New prototypes.
11794 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
11795 not to draw dependency edge for instructions with non-conflicting
11798 2009-01-20 Joseph Myers <joseph@codesourcery.com>
11801 * longlong.h: Update copyright years. Use soft-fp license notice.
11802 Sync __clz_tab declaration with glibc.
11804 2009-01-20 Steve Ellcey <sje@cup.hp.com>
11807 * doc/extend.texi (syscall_linkage): New.
11808 (version_id): Modify.
11810 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
11811 Richard Guenther <rguenther@suse.de>
11813 PR tree-optimization/38747
11814 PR tree-optimization/38748
11815 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
11816 conversion if the base address is an indirect reference and the
11817 aliasing sets could cause issues.
11819 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11821 * common.opt (fgraphite, fgraphite-identity): Add comment for
11822 explaining why these options are not documented.
11824 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11826 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
11827 gimple_call_lhs is NULL.
11829 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
11832 * emit-rtl.c (adjust_address_1): Make sure memref is never
11835 2009-01-20 Ben Elliston <bje@au.ibm.com>
11837 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
11838 const qualifier from arg parameter. Remove unnecessary cast to char *.
11839 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
11840 const qualifier from arg 2.
11842 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11844 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
11846 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
11849 * rtl.h (reinit_regs): New prototype.
11850 * regclass.c: Include ira.h.
11851 (reinit_regs): New.
11852 * Makefile.in (regclass.o): Add ira.h.
11853 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
11855 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
11858 * c-common.c (handle_aligned_attribute): Use
11859 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
11860 default alignment value.
11862 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
11864 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
11865 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
11867 * doc/extend.texi: Update __attribute__ ((aligned)). Document
11868 __BIGGEST_ALIGNMENT__.
11870 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
11872 2009-01-18 Richard Guenther <rguenther@suse.de>
11874 PR tree-optimization/38819
11875 * tree-flow.h (operation_could_trap_helper_p): Declare.
11876 * tree-eh.c (operation_could_trap_helper_p): Export.
11877 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
11878 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
11879 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
11880 are about to insert a possibly trapping instruction and fail
11883 2009-01-18 Andreas Schwab <schwab@suse.de>
11885 * doc/install.texi (Configuration): Remove obsolete paragraph
11886 about use of --with-gnu-ld with --with-gnu-as.
11888 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
11890 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
11891 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
11892 Follow spelling conventions.
11894 2009-01-18 Ben Elliston <bje@au.ibm.com>
11896 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
11897 C++ warning about implicit conversion from void * to struct
11899 (bitmap_obstack_free): Likewise for bitmap_element *.
11900 * Makefile.in (bitmap.o-warn): Remove.
11902 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
11904 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
11906 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
11907 Tobias Grosser <tobi.grosser@amd.com>
11909 * graphite.c (graphite_trans_scop_block): Do not block single
11912 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
11914 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
11915 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
11916 test with assertion.
11918 2009-01-16 Richard Guenther <rguenther@suse.de>
11920 PR tree-optimization/38835
11921 PR middle-end/36227
11922 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
11923 and INT + PTR -> (INT)(PTR p+ INT) folding.
11924 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
11926 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
11929 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
11930 the subreg from a lowpart subreg if it is also casting the value.
11932 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11933 Tobias Grosser <tobi.grosser@amd.com>
11935 * graphite.c (compare_prefix_loops): New.
11936 (build_scop_canonical_schedules): Rewritten.
11937 (graphite_transform_loops): Move build_scop_canonical_schedules
11938 after build_scop_iteration_domain.
11940 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11941 Tobias Grosser <tobi.grosser@amd.com>
11943 * graphite.c (add_conditions_to_domain): Add the loops to
11944 the dimension of the iteration domain. Do copy the domain
11945 only when it exists.
11946 (build_scop_conditions_1): Do not call add_conditions_to_domain.
11947 (add_conditions_to_constraints): New.
11948 (can_generate_code_stmt, can_generate_code): Removed.
11949 (gloog): Do not call can_generate_code.
11950 (graphite_transform_loops): Call add_conditions_to_constraints
11951 after building the iteration domain.
11953 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11955 PR tree-optimization/38789
11956 * tree-ssa-threadedge.c
11957 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11958 __builtin_constant_p.
11960 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11962 * dce.c (delete_unmarked_insns): Reversed the order that insns are
11963 examined before deleting them.
11965 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
11967 * function.c (aggregate_value_p): Correctly extract the function
11968 type from CALL_EXPR_FN lookup.
11970 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
11972 * config/picochip/picochip.c (picochip_override_options): Revert
11973 CFI asm flag disable commited previously.
11975 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
11976 Tobias Grosser <tobi.grosser@amd.com>
11977 Jan Sjodin <jan.sjodin@amd.com>
11979 * graphite.c (scan_tree_for_params): On substractions negate
11980 all the coefficients of the term.
11981 (clast_to_gcc_expression_red): New. Handle reduction expressions
11982 of more than two operands.
11983 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
11984 (get_vdef_before_scop): Handle also the case of default definitions.
11986 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
11988 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
11989 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
11990 Also use them when walking CALL_INSN_FUNCTION_USAGE.
11992 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
11993 Joey Ye <joey.ye@intel.com>
11995 PR middle-end/37843
11996 * cfgexpand.c (expand_stack_alignment): Don't update stack
11997 boundary nor check incoming stack boundary here.
11998 (gimple_expand_cfg): Update stack boundary and check incoming
11999 stack boundary here.
12001 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
12003 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
12005 2009-01-14 Jakub Jelinek <jakub@redhat.com>
12007 PR rtl-optimization/38245
12008 * calls.c (expand_call): Add stack arguments to
12009 CALL_INSN_FUNCTION_USAGE even for pure calls (when
12010 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
12011 in regs and partially in memory or BLKmode arguments.
12012 (emit_library_call_value_1): Add stack arguments to
12013 CALL_INSN_FUNCTION_USAGE even for pure calls (when
12014 ACCUMULATE_OUTGOING_ARGS).
12015 * dce.c: Include tm_p.h.
12016 (find_call_stack_args): New function.
12017 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
12019 (mark_insn): Call find_call_stack_args for CALL_Ps.
12020 (prescan_insns_for_dce): Walk insns backwards in bb rather than
12021 forwards. Allocate and free arg_stores bitmap if needed, pass it
12022 down to deletable_insn_p, don't mark stores set in arg_stores
12023 bitmap, clear the bitmap at the beginning of each bb.
12024 * Makefile.in (dce.o): Depend on $(TM_P_H).
12026 2009-01-14 Michael Meissner <gnu@the-meissners.org>
12029 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
12030 to make sure the insn is a conditional test (bug 22599). Reformat a
12033 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
12035 PR middle-end/38431
12036 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
12037 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
12038 (gloog): Do not call cleanup_tree_cfg.
12039 (graphite_transform_loops): Call cleanup_tree_cfg after all
12040 scops have been code generated.
12042 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
12043 * doc/gty.texi (Invoking the garbage collector): Added new node
12044 and section documenting ggc_collect.
12046 2009-01-14 Richard Guenther <rguenther@suse.de>
12048 PR tree-optimization/38826
12049 PR middle-end/38477
12050 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
12051 initialization notes only if we actually emitted a warning.
12052 (intra_create_variable_infos): Add constraints for a result decl
12053 that is passed by hidden reference.
12054 (build_pred_graph): Mark all related variables non-direct on
12057 2009-01-14 Nick Clifton <nickc@redhat.com>
12059 * ira-conflicts.c: Include addresses.h for the definition of
12061 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
12062 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
12064 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
12067 * Makefile.in (ira-lives.o): Add except.h.
12069 * ira-lives.c: Include except.h.
12070 (process_bb_node_lives): Process can_throw_internal.
12072 2009-01-13 Jakub Jelinek <jakub@redhat.com>
12074 PR rtl-optimization/38774
12075 * combine.c (simplify_set): When undoing cc_use change, don't do
12076 PUT_CODE on the newly created comparison, but instead put back the
12079 2009-01-13 Joseph Myers <joseph@codesourcery.com>
12081 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
12082 values. Remove duplicate arm8 entry.
12084 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
12086 PR tree-optimization/38786
12087 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
12088 the SSA_NAME case of expand_scalar_variables_expr.
12089 Set the type of an expression to the type of its assign statement.
12090 (expand_scalar_variables_expr): Also gather the scalar computation
12091 used to index the memory access. Do not pass loop_p.
12092 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
12093 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
12094 the gimple_stmt_iterator where it inserts new code.
12095 Do not pass loop_p.
12096 (copy_bb_and_scalar_dependences): Do not pass loop_p.
12097 (translate_clast): Update call to copy_bb_and_scalar_dependences.
12099 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
12101 * graphite.h (debug_value): Removed.
12102 * graphite.c (debug_value): Removed.
12104 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
12106 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
12107 ldrd/strd with two 32-bit instructions.
12109 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
12111 * config/arm/arm.c (struct processors): Pass for speed down into
12112 cost helper functions.
12113 (const_ok_for_op): Handle COMPARE and inequality nodes.
12114 (arm_rtx_costs_1): Rewrite.
12115 (arm_size_rtx_costs): Update prototype.
12116 (arm_rtx_costs): Pass speed down to helper functions.
12117 (arm_slowmul_rtx_costs): Rework cost calculations.
12118 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
12119 (arm_9e_rtx_costs): Likewise.
12121 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
12123 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
12124 relocations of local symbols wider than UNITS_PER_WORD are not valid.
12125 (alpha_legitimize_address): Do not split local symbols wider than
12126 UNITS_PER_WORD into HIGH/LO_SUM parts.
12128 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
12131 * gcc.c (process_command): Replace call to execvp with calls
12132 to pex_one and exit.
12134 2009-01-03 Anatoly Sokolov <aesok@post.ru>
12137 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
12138 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
12139 variant for devices with 3-byte PC.
12140 (__tablejump_elpm__): New.
12142 2009-01-12 Jakub Jelinek <jakub@redhat.com>
12145 * c-parser.c (c_parser_postfix_expression): Allow `->' in
12146 offsetof member-designator, handle it as `[0].'.
12148 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12150 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
12151 function when not using named sections on targets with named sections
12152 if branch distance is less than 262132.
12154 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
12156 * combine.c (combine_instructions): Recompute
12157 optimize_this_for_speed_p for each BB in the main combine loop.
12159 2009-01-12 Tomas Bily <tbily@suse.cz>
12162 * tree-loop-distribution.c (prop_phis): New function.
12163 (generate_builtin): Call prop_phis.
12164 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
12166 2009-01-12 Jakub Jelinek <jakub@redhat.com>
12168 PR tree-optimization/38807
12169 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
12170 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
12172 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
12174 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12175 subreg of op0 to the original op0.
12177 2009-01-11 Laurent GUERBY <laurent@guerby.net>
12179 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
12181 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
12184 * mips-tfile.c (parse_def): Fix parsing of def strings
12185 starting with digits.
12187 2009-01-10 Jakub Jelinek <jakub@redhat.com>
12190 * config/arm/arm.c (arm_is_long_call_p): Don't call
12191 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
12193 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
12195 * regrename.c (regrename_optimize): Fix dumping.
12196 (find_oldest_value_reg): Preserve REG_POINTER.
12197 (copy_hardreg_forward_1): Likewise.
12199 2009-01-09 Diego Novillo <dnovillo@google.com>
12201 * gimple.h (struct gimple_statement_base) <uid>: Document
12202 the restrictions on its use.
12203 (gimple_uid): Tidy.
12204 (gimple_set_uid): Tidy.
12206 2009-01-09 Jakub Jelinek <jakub@redhat.com>
12208 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
12209 zero guard even if align_bytes != 0 and count is smaller than
12212 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
12214 PR rtl-optimization/38495
12215 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
12216 (add_range_and_copies_from_move_list): Print all added ranges.
12217 Add ranges to memory optimized destination.
12219 2009-01-09 Jakub Jelinek <jakub@redhat.com>
12223 * config/i386/i386.c (override_options): Reject
12224 -mstringop-strategy=rep_8byte with -m32.
12225 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
12226 to 1. Do count comparison against epilogue_size_needed at compile
12227 time even when count_exp was constant forced into register. For
12228 size_needed don't jump to epilogue, instead just avoid aligning
12229 and invoke the body algorithm. If need_zero_guard, add zero guard
12230 even if count is non-zero, but smaller than size_needed + number of
12231 bytes that could be stored for alignment.
12232 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
12233 to 1. If need_zero_guard, add zero guard even if count is non-zero,
12234 but smaller than size_needed + number of bytes that could be stored
12235 for alignment. Compare size_needed with epilogue_size_needed instead
12236 of desired_align - align, don't adjust size_needed, pass
12237 epilogue_size_needed to the epilogue expanders.
12240 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
12242 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12244 * pa.c (last_address): Change to unsigned.
12245 (update_total_code_bytes): Change argument to unsigned. Don't
12246 check if insn addresses are set.
12247 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
12248 addresses are not set.
12249 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
12251 2009-01-09 Nick Clifton <nickc@redhat.com>
12253 * config/sh/symbian.c: Replace uses of DECL_INLINE with
12254 DECL_DECLARED_INLINE_P.
12256 2009-01-09 Jakub Jelinek <jakub@redhat.com>
12258 PR middle-end/38347
12259 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
12260 GET_MODE (op0) in operand_subword_force calls.
12262 PR middle-end/38771
12263 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
12264 fold_convert arg0 operands to TREE_TYPE (op0) first.
12266 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
12268 * params.def (ira-max-conflict-table-size): Decrease default value
12271 2009-01-08 Jakub Jelinek <jakub@redhat.com>
12273 PR tree-optimization/37031
12274 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
12276 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
12277 allocate it using gc instead of heap, use VEC_quick_push instead of
12279 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
12280 instead of heap, use VEC_quick_push instead of VEC_safe_push.
12281 * tree-data-ref.h (struct access_matrix): Change matrix to gc
12282 allocated vector from heap allocated.
12283 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
12284 * tree-loop-linear.c (linear_transform_loops): Allocate nest
12285 vector only after perfect_loop_nest_depth call.
12287 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
12288 Jan Sjodin <jan.sjodin@amd.com>
12290 PR tree-optimization/38559
12291 * graphite.c (debug_value, copy_constraint,
12292 swap_constraint_variables, scale_constraint_variable, ): New.
12293 (get_lower_bound, get_upper_bound): Removed.
12294 (graphite_trans_bb_strip_mine): Clean up this code that works
12295 only for constant number of iterations. Fully copy upper and
12296 lower bound constraints, not only the constant part of them.
12297 * graphite.h (debug_value): Declared.
12299 2009-01-08 Ira Rosen <irar@il.ibm.com>
12301 PR tree-optimization/37194
12302 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
12303 Don't add the cost of cost model guard in prologue to scalar
12304 outside cost in case of known number of iterations.
12306 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
12307 Alan Modra <amodra@bigpond.net.au>
12309 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
12310 non-word-aligned REG+CONST addressing.
12312 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
12315 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
12316 free_after_compilation when outputting a thunk.
12317 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
12318 Do not call free_after_compilation here.
12320 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
12322 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
12323 (ix86_valid_target_attribute_inner_p): Ditto.
12325 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
12327 PR tree-optimization/38492
12328 PR tree-optimization/38498
12329 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
12330 * tree-chrec.h (scev_is_linear_expression): Declared.
12331 * graphite.c (graphite_cannot_represent_loop_niter): New.
12332 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
12333 (graphite_loop_normal_form): Use gcc_assert.
12334 (scan_tree_for_params): Use CASE_CONVERT.
12335 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
12336 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
12337 Use gcc_assert. Discard scops that contain unhandled cases.
12338 (build_scop_conditions): Return a boolean status for unhandled cases.
12339 (strip_mine_profitable_p): Print the loop number, not its depth.
12340 (is_interchange_valid): Pass the depth of the loop nest, don't
12341 recompute it wrongly.
12342 (graphite_trans_bb_block): Same.
12343 (graphite_trans_bb_block): Print tentative of loop blocking.
12344 (graphite_trans_scop_block): Do not print that the loop has been
12346 (graphite_transform_loops): Do not handle scops that contain condition
12349 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
12351 AVX Programming Reference (December, 2008)
12352 * config/i386/avxintrin.h (_mm256_stream_si256): New.
12353 (_mm256_stream_pd): Likewise.
12354 (_mm256_stream_ps): Likewise.
12356 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
12357 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
12358 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
12359 (bdesc_special_args): Add __builtin_ia32_movntdq256,
12360 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
12361 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
12362 (ix86_expand_special_args_builtin): Likewise.
12364 * config/i386/sse.md (AVXMODEDI): New.
12365 (avx_movnt<mode>): Likewise.
12366 (avx_movnt<mode>): Likewise.
12367 (<sse>_movnt<mode>): Remove AVX support.
12368 (sse2_movntv2di): Likewise.
12370 2009-01-07 Richard Guenther <rguenther@suse.de>
12372 PR middle-end/38751
12373 * fold-const.c (extract_muldiv): Remove obsolete comment.
12374 (fold_plusminus_mult_expr): Undo MINUS_EXPR
12375 to PLUS_EXPR canonicalization for the canonicalization.
12377 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
12379 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
12380 hosted cross-compilers generating less efficient code.
12382 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12384 * function.h (rtl_data): Add a dbr_scheduled_p field.
12385 * reorg.c (dbr_schedule): Set it.
12386 (gate_handle_delay_slots): Check it.
12387 * config/mips/mips.c (mips_base_delayed_branch): Delete.
12388 (mips_reorg): Check flag_delayed_branch instead of
12389 mips_base_delayed_branch.
12390 (mips_override_options): Don't set mips_base_delayed_branch
12391 or flag_delayed_branch.
12393 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12395 PR rtl-optimization/38426.
12396 * ira.c (ira): Set current_function_is_leaf earlier.
12398 2009-01-06 Jakub Jelinek <jakub@redhat.com>
12400 PR rtl-optimization/38722
12401 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
12402 too early, only set a flag and modify after last possible
12405 2009-01-06 Janis Johnson <janis187@us.ibm.com>
12408 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
12409 * real.c (decimal_single_format): Correct values of emin and emax.
12410 (decimal_double_format): Ditto.
12411 (decimal_quad_format): Ditto.
12412 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
12413 computation of DECnn_MIN and DECnn_MAX for corrected values of
12414 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
12415 __DECnn_MIN__, and adjust its computation for the corrected value
12418 2009-01-06 Jan Hubicka <jh@suse.cz>
12421 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
12423 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12425 * doc/contrib.texi (Contributors): Slightly adjust the end note.
12426 Add Robert Clark to the list of testers.
12428 2009-01-06 Jan Hubicka <jh@suse.cz>
12429 Kai Tietz <kai.tietz@onevision.com>
12431 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
12432 * config/i386/i386.c (ix86_expand_call): Add clobbers.
12434 2009-01-06 Jan Hubicka <jh@suse.cz>
12435 Kai Tietz <kai.tietz@onevision.com>
12437 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
12439 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
12440 (ix86_nsaved_regs): Count only general purpose regs.
12441 (ix86_nsaved_sseregs): New.
12442 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
12443 to 16 for w64; compute padding and size of sse reg save area.
12444 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
12445 general purpose regs.
12446 (ix86_emit_save_sse_regs_using_mov): New.
12447 (ix86_expand_prologue): Save SSE regs if needed.
12448 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
12449 (ix86_emit_restore_sse_regs_using_mov): New.
12450 (ix86_expand_epilogue): Save SSE regs if needed.
12452 2009-01-06 Jan Hubicka <jh@suse.cz>
12453 Kai Tietz <kai.tietz@onevision.com>
12455 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
12456 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
12457 functions when accumulate outgoing args is off.
12459 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12462 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
12463 before using pseudos_have_intersected_live_ranges_p.
12465 * ira-int.h (ira_assert): Always define.
12467 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12469 AVX Programming Reference (December, 2008)
12470 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
12471 (_mm256_permute2_pd): Likewise.
12472 (_mm_permute2_ps): Likewise.
12473 (_mm256_permute2_ps): Likewise.
12474 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
12475 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
12477 * config/i386/i386.c (ix86_builtins): Remove
12478 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
12479 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
12480 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
12481 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
12482 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
12483 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
12484 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
12485 __builtin_ia32_vpermil2ps256.
12486 (ix86_init_mmx_sse_builtins): Updated.
12487 (ix86_expand_args_builtin): Likewise.
12489 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12491 * pa.c (output_call): Relocate non-jump insns in the delay slot of
12492 long absolute calls when generating PA 2.0 code.
12494 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
12496 PR rtl-optimization/38583
12497 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
12499 * params.def (ira-max-conflict-table-size): New.
12501 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
12503 * ira.h (ira_conflicts_p): New external definition.
12505 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
12506 table. Report this. Return result of building.
12507 (ira_build_conflicts): Use ira_conflicts_p. Check result of
12508 building conflict table.
12510 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
12511 (ira_color): Use ira_conflicts_p.
12513 * global.c: Include ira.h.
12514 (pseudo_for_reload_consideration_p, build_insn_chain): Use
12517 * Makefile.in (global.o): Add ira.h.
12519 * ira-build.c (mark_all_loops_for_removal,
12520 propagate_some_info_from_allocno): New.
12521 (remove_unnecessary_allocnos): Call
12522 propagate_some_info_from_allocno.
12523 (remove_low_level_allocnos): New.
12524 (remove_unnecessary_regions): Add parameter. Call
12525 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
12526 parameter to remove_unnecessary_regions.
12527 (ira_build): Remove all regions but root if the conflict table was
12528 not built. Update conflict hard regs for allocnos crossing calls.
12530 * ira.c (ira_conflicts_p): New global.
12531 (ira): Define and use ira_conflicts_p.
12533 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
12534 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
12535 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
12537 2009-01-06 Ben Elliston <bje@au.ibm.com>
12539 * gengtype-lex.l (YY_NO_INPUT): Define.
12541 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
12544 * c-common.c (handle_vector_size_attribute): Also reject
12545 BOOLEAN_TYPE types.
12547 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
12549 PR tree-optimization/38492
12550 * graphite.c (rename_map_elt, debug_rename_elt,
12551 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
12552 rename_map_elt_info, eq_rename_map_elts,
12553 get_new_name_from_old_name, bb_in_sese_p): Moved around.
12554 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
12555 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
12556 (sese_build_livein_liveouts): New.
12557 (new_sese, free_sese): New.
12558 (new_scop): Call new_sese.
12559 (free_scop): Call free_sese.
12560 (rename_variables_from_edge, rename_phis_end_scop): Removed.
12561 (register_old_new_names): Renamed register_old_and_new_names.
12562 (register_scop_liveout_renames, add_loop_exit_phis,
12563 insert_loop_close_phis, struct igp,
12564 default_liveout_before_guard, add_guard_exit_phis,
12565 insert_guard_phis, copy_renames): New.
12566 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
12567 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
12568 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
12569 (scop_adjust_phis_for_liveouts): New.
12570 (gloog): Call scop_adjust_phis_for_liveouts.
12572 * graphite.h (struct sese): Documented. Added fields liveout,
12573 num_ver and livein.
12574 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
12575 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
12576 (struct scop): Added field liveout_renames.
12577 (SCOP_LIVEOUT_RENAMES): New.
12579 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
12581 PR tree-optimization/38510
12582 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
12583 (translate_clast): Call recompute_all_dominators before
12585 (gloog): Call recompute_all_dominators before graphite_verify.
12587 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
12588 Jan Sjodin <jan.sjodin@amd.com>
12590 PR tree-optimization/38500
12591 * graphite.c (create_sese_edges): Call fix_loop_structure after
12594 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12596 * config.gcc: Add m32r*-*-rtems*.
12597 * config/m32r/rtems.h: New file.
12599 2009-01-05 Ben Elliston <bje@au.ibm.com>
12601 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
12602 (.po.pox): Likewise.
12603 (po/gcc.pot): Likewise.
12605 2009-01-04 David S. Miller <davem@davemloft.net>
12607 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
12608 (STARTING_FRAME_OFFSET): Always set to zero.
12610 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12612 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
12613 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
12614 fixed-point types, and vectors of the same.
12616 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12618 * config/mips/sync.md (*mb_barrier): Rename to...
12619 (*memory_barrier): ...this.
12621 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
12623 * doc/extend.texi (Function Attributes): Move @cindex after @item
12624 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
12625 and put in alphabetical order. Fix 'target' name and put in order.
12626 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
12629 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
12631 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
12632 (memory_barrier): Expand as unspec instead of unspec_volatile.
12633 Remove mem:BLK from insn operands. Use Pmode scratch register.
12634 (*memory_barrier): Define as unspec instead of unspec_volatile.
12635 Use (match_dup 0) as input operand.
12637 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
12638 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
12639 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
12640 scratch register. Remove operand 1.
12641 (*stbar): Define as unspec instead of unspec_volatile.
12642 Use (match_dup 0) as input operand, remove (const_int 8).
12643 (*membar): Define as unspec instead of unspec_volatile.
12644 Use (match_dup 0) as input operand, remove input operand 2.
12646 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
12647 (memory_barrier): Expand as unspec instead of unspec_volatile.
12648 Remove mem:BLK from insn operands. Use Pmode scratch register.
12649 (*memory_barrier): Define as unspec instead of unspec_volatile.
12650 Use (match_dup 0) as input operand.
12652 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
12653 Remove mem:BLK from insn operands. Use Pmode scratch register.
12654 Set volatile flag on operand 0.
12655 (*memory_barrier): New insn pattern.
12657 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
12659 (*memory_barrier): Use (match_dup 0) as input operand.
12661 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
12662 Remove mem:BLK from insn operands. Use Pmode scratch register.
12663 Set volatile flag on operand 0.
12664 (*mb_internal): New insn pattern.
12666 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
12668 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12670 PR middle-end/38586
12671 * function.c (struct temp_slot): Move to the section of the file
12672 that deals with temp slots. Remove field 'address'.
12673 (temp_slot_address_table): New hash table of address -> temp slot.
12674 (struct temp_slot_address_entry): New struct, items for the table.
12675 (temp_slot_address_compute_hash, temp_slot_address_hash,
12676 temp_slot_address_eq, insert_temp_slot_address): Support functions
12678 (find_temp_slot_from_address): Rewrite to use the new hash table.
12679 (remove_unused_temp_slot_addresses): Remove addresses of temp
12680 slots that have been made available.
12681 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
12682 worker function for remove_unused_temp_slot_addresses.
12683 (assign_stack_temp_for_type): Don't clear the temp slot address list.
12684 Add the temp slot address to the address -> temp slot map.
12685 (update_temp_slot_address): Update via insert_temp_slot_address.
12686 (free_temp_slots): Call remove_unused_temp_slot_addresses.
12687 (pop_temp_slots): Likewise.
12688 (init_temp_slots): Allocate the address -> temp slot map, or empty
12689 the map if it is already allocated.
12690 (prepare_function_start): Initialize temp slot processing.
12692 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12694 PR middle-end/38584
12695 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
12696 Calculate the size of all stack vars assuming no packing of stack
12697 vars will happen, replacing a quadratic algorithm with a linear one.
12699 2009-01-03 Jakub Jelinek <jakub@redhat.com>
12702 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
12705 2009-01-03 Diego Novillo <dnovillo@google.com>
12707 * doc/contrib.texi: Update contributions.
12709 2009-01-03 Jakub Jelinek <jakub@redhat.com>
12712 * builtins.c (fold_builtin_memory_op): Give up if either operand
12713 is volatile. Set srctype or desttype to non-qualified version
12717 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
12718 and FUNCTION_DECLs.
12720 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
12722 PR rtl-optimization/35805
12723 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
12724 problem if fast dce is able to remove any instructions.
12725 * dce.c (dce_process_block): Fix dump message.
12727 2009-01-02 Mark Mitchell <mark@codesourcery.com>
12730 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
12732 2009-01-02 Jakub Jelinek <jakub@redhat.com>
12734 PR middle-end/38690
12735 * tree-flow.h (op_code_prio, op_prio): New prototypes.
12736 * tree-pretty-print.c (op_code_prio): New function.
12737 (op_prio): No longer static. Use op_code_prio.
12738 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
12739 Use op_prio and op_code_prio to determine if () should be
12740 printed around operand(s) or not.
12742 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12743 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
12744 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
12745 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
12746 pp_character instead of pp_string for single letter printing.
12748 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12750 * doc/extend.texi: Fix '#pragma GCC option' typo.
12752 2009-01-02 Richard Guenther <rguenther@suse.de>
12754 * doc/install.texi (--enable-checking): Mention different
12755 default for stage1.
12756 (--enable-stage1-checking): Document.
12758 2009-01-01 Andrew Pinski <pinskia@gmail.com>
12760 PR middle-end/30142
12761 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
12762 case to be an error.
12764 2009-01-02 Ben Elliston <bje@au.ibm.com>
12766 * config/fp-bit.h (pack_d): Constify argument.
12767 * config/fp-bit.c (makenan): Constify return type. Remove casts.
12768 (isnan): Constify argument.
12770 (iszero): Likewise.
12771 (pack_d): Likewise.
12772 (_fpadd_parts): Constify return type.
12773 (_fpmul_parts): Likewise.
12774 (_fpdiv_parts): Likewise.
12776 2009-01-01 Jakub Jelinek <jakub@redhat.com>
12779 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
12780 warn about overwriting initializer with side-effects or
12781 -Woverride-init if !IMPLICIT.
12782 (output_init_element): Likewise. Pass IMPLICIT down to
12784 (process_init_element): Add IMPLICIT argument. Pass it down
12785 to output_init_element.
12786 (push_init_element, pop_init_level, set_designator): Adjust
12787 process_init_element callers.
12788 (set_nonincremental_init, set_nonincremental_init_from_string):
12789 Adjust add_pending_init callers.
12790 (output_pending_init_elements): Adjust output_init_element callers.
12791 * c-tree.h (process_init_element): Adjust prototype.
12792 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
12793 process_init_element callers.
12796 Copyright (C) 2009 Free Software Foundation, Inc.
12798 Copying and distribution of this file, with or without modification,
12799 are permitted in any medium without royalty provided the copyright
12800 notice and this notice are preserved.