1 2011-01-19 Joseph Myers <joseph@codesourcery.com>
3 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
5 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8 %{call_shared} and conditionals on these options not being passed.
9 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17 * ipa-split.c: Spelling fixes.
19 2011-01-19 Richard Henderson <rth@redhat.com>
21 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24 * longlong.h [__mn10300__] (count_leading_zeros): New.
25 [__mn10300__] (umul_ppmm, smul_ppmm): New.
26 [__mn10300__] (add_ssaaaa, subddmmss): New.
27 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
34 2011-01-19 Richard Henderson <rth@redhat.com>
36 * config/mn10300/mn10300.md (addsi3_flags): New.
37 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
38 (subsi3_flags, subc_internal, subdi3): New.
39 (subdi3_internal, *subdi3_degenerate): New.
40 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
42 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
43 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
44 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
45 * config/mn10300/mn10300-protos.h: Update.
46 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
47 (return_ret): Likewise. Rename from return_internal_regs.
48 (return_internal): Remove.
50 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
51 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
52 (mn10300_legitimate_constant_p): Likewise.
53 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
54 (mn10300_frame_size): New.
55 (mn10300_expand_prologue): Use it.
56 (mn10300_expand_epilogue): Likewise.
57 (mn10300_initial_offset): Likewise.
58 * config/mn10300/mn10300-protos.h: Update.
59 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
60 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
61 (prologue, epilogue, return_internal): Tidy output code.
62 (mn10300_store_multiple_operation, return): Likewise.
63 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
64 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
65 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
66 (load_pic, am33_load_pic): New.
67 (mn10300_load_pic0, mn10300_load_pic1): New.
69 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
70 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
71 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
72 (cc_flags_for_mode, cc_flags_for_code): New.
73 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
74 overflow flag is not valid. Validate that the flags we need
75 for the comparison are valid.
76 (mn10300_output_cmp): Remove.
77 (mn10300_output_add): New.
78 (mn10300_select_cc_mode): Use cc_flags_for_code.
79 (mn10300_split_cbranch): New.
80 (mn10300_match_ccmode): New.
81 (mn10300_split_and_operand_count): New.
82 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
84 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
85 (addsi3): ... here. Use mn10300_output_add.
87 (*am33_subsi3, *mn10300_subsi3): Merge...
88 (subsi3): ... here. Use attribute isa.
90 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
92 (*am33_andsi3, *mn10300_andsi3): Merge...
95 (andsi3 splitters): New.
96 (*am33_iorsi3, *mn10300_iorsi3): Merge...
99 (*am33_xorsi3, *mn10300_xorsi3): Merge...
101 (*xorsi3_flags): New.
102 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
103 (one_cmplsi2): ... here.
104 (*one_cmplsi2_flags): New.
105 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
106 instead of "dax" in constraints. Use mn10300_split_cbranch.
107 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
108 use matching constraints to eliminate a self-comparison.
109 (*integer_conditional_branch): Rename from integer_conditional_branch.
110 Use int_mode_flags to match CC_REG.
111 (*cbranchsi4_btst, *btstsi): New.
112 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
113 mn10300_split_cbranch.
114 (*am33_cmpsf): Rename from am33_cmpsf.
115 (*float_conditional_branch): Rename from float_conditional_branch.
116 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
117 (zero_extendqisi2): ... here.
118 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
119 (zero_extendhisi2): ... here.
120 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
121 (extendqisi2): ... here.
122 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
123 (extendhisi2): ... here.
124 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
126 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
128 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
130 (consecutive add peephole): Remove.
131 * config/mn10300/predicates.md (label_ref_operand): New.
132 (int_mode_flags): New.
133 (CCZN_comparison_operator): New.
135 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
136 (throughput_42_latency_43): New reservation.
137 (mulsidi3, umulsidi3): New expanders.
138 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
139 the MDR register to allocation; separately allocate the low and
140 high parts of the DImode result.
141 (umulsidi3_internal): Similarly.
142 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
143 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
144 (udivsi3, umodsi3): Remove.
145 (udivmodsi4, divmodsi4): New expanders.
146 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
147 (*divmodsi4): Simiarly.
150 * config/mn10300/constraints.md ("z"): New constraint.
151 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
152 (FIXED_REGISTERS): Don't fix MDR.
153 (CALL_USED_REGSITERS): Reformat nicely.
154 (REG_ALLOC_ORDER): Add MDR.
155 (enum regclass): Add MDR_REGS.
156 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
157 (IRA_COVER_CLASSES): Add MDR_REGS.
158 (REGNO_REG_CLASS): Handle MDR_REG.
159 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
160 (mn10300_register_move_cost): Likewise.
161 * config/mn10300/mn10300.md (MDR_REG): New.
162 (*movsi_internal): Handle moves to/from MDR_REGS.
164 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
166 (mn10300_secondary_reload): Tidy combination reload classes.
167 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
168 addresses for AM33. Allow symbolic offsets for reg+imm.
169 (mn10300_regno_in_class_p): New.
170 (mn10300_legitimize_reload_address): New.
171 * config/mn10300/mn10300.h (enum reg_class): Remove
172 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
173 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
175 (REG_CLASS_NAMES): Update to match.
176 (REG_CLASS_CONTENTS): Likewise.
177 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
178 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
179 (REGNO_IN_RANGE_P): Remove.
180 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
181 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
182 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
183 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
184 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
185 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
186 (REGNO_GENERAL_P): New.
187 (HAVE_POST_MODIFY_DISP): New.
188 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
189 (LEGITIMIZE_RELOAD_ADDRESS): New.
190 * config/mn10300/mn10300-protos.h: Update.
192 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
193 DATA_REGS for AM33 stack-pointer destination.
194 (mn10300_preferred_output_reload_class): Likewise.
195 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
196 into a form appropriate for ...
197 (TARGET_SECONDARY_RELOAD): New.
198 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
199 * config/mn10300/mn10300-protos.h: Update.
200 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
201 reload_insi; use the "A" constraint for the scratch; handle AM33
202 moves of sp to non-address registers.
204 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
205 (*movqi_internal): ... here.
206 (*am33_movhi, *mn10300_movhi): Merge into...
207 (*movhi_internal): ... here.
208 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
209 as the source/destination of moves from/to SP.
210 (movsf): Only allow for AM33-2.
211 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
212 any integer constant constraint. Only allow for AM33-2. Tidy
213 all of the alternative outputs.
214 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
215 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
217 (udivsi3, umodsi3): New patterns for MN103 only.
219 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
221 * doc/tm.texi.in: Spell out that a lack of register class unions
223 * doc/tm.texi: Regenerate.
225 2011-01-19 Jakub Jelinek <jakub@redhat.com>
227 PR rtl-optimization/47337
228 * dce.c (check_argument_store): New function.
229 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
231 PR tree-optimization/47290
232 * tree-eh.c (infinite_empty_loop_p): New function.
233 (cleanup_empty_eh): Use it.
235 2011-01-18 Steve Ellcey <sje@cup.hp.com>
238 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
239 (a64_expand_widen_sum): Ditto.
240 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
241 (vec_extract_evenodd_help): Ditto.
242 (vec_extract_evenv4hi): Ditto.
243 (vec_extract_oddv4hi): Ditto.
244 (vec_extract_evenv2si): Ditto.
245 (vec_extract_oddv2si): Ditto.
246 (vec_extract_evenv2sf): Ditto.
247 (vec_extract_oddv2sf): Ditto.
248 (vec_pack_trunc_v4hi: Ditto.
249 (vec_pack_trunc_v2si): Ditto.
250 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
251 (vec_interleave_highv8qi): Ditto.
253 (vec_extract_oddv8qi): Ditto.
254 (vec_interleave_lowv4hi): Ditto.
255 (vec_interleave_highv4hi): Ditto.
256 (vec_interleave_lowv2si): Ditto.
257 (vec_interleave_highv2si): Ditto.
259 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
261 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
262 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
263 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
264 (pa_c_mode_for_suffix): New.
265 (TARGET_EXPAND_BUILTIN): Define.
266 (TARGET_C_MODE_FOR_SUFFIX): Define.
267 (pa_builtins): Define.
268 (pa_init_builtins): Register __float128 type and init new support
270 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
271 * config/pa/quadlib.c (_U_Qfcopysign): New.
273 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
276 * explow.c (allocate_dynamic_stack_space): Do not assume more than
277 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
280 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
282 PR tree-optimization/47179
283 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
284 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
286 2011-01-18 Richard Guenther <rguenther@suse.de>
288 PR rtl-optimization/47216
289 * emit-rtl.c: Include tree-flow.h.
290 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
291 of replicating it with different semantics.
292 * Makefile.in (emit-rtl.o): Adjust.
294 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
296 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
298 (cortex_a9_dp): Handle neon types correctly.
300 2011-01-18 Jakub Jelinek <jakub@redhat.com>
302 PR rtl-optimization/47299
303 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
304 subtarget. Use normal multiplication if both operands are
306 * expmed.c (expand_widening_mult): Don't try to optimize constant
307 multiplication if op0 has VOIDmode. Convert op1 constant to mode
310 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
312 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
313 spacing after 'e.g.', typos, comma, hyphenation.
315 2011-01-17 Richard Henderson <rth@redhat.com>
317 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
318 (rx_restricted_mem_operand): New.
319 (rx_shift_operand): Use register_operand.
320 (rx_source_operand, rx_compare_operand): Likewise.
321 * config/rx/rx.md (addsi3_flags): New expander.
322 (adddi3): Rewrite as expander.
323 (adc_internal, *adc_flags, adddi3_internal): New patterns.
324 (subsi3_flags): New expander.
325 (subdi3): Rewrite as expander.
326 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
328 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
329 (rx_init_builtins): Remove sat builtin.
330 (rx_expand_builtin): Likewise.
331 * config/rx/rx.md (ssaddsi3): New.
332 (*sat): Rename from sat. Represent the CC_REG input.
334 * config/rx/predicates.md (rshift_operator): New.
335 * config/rx/rx.c (rx_expand_insv): Remove.
336 * config/rx/rx-protos.h: Update.
337 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
338 operand to the canonical position.
339 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
340 (*bitclr, *bitclr_in_memory): Similarly.
341 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
342 (insv): Retain the zero_extract in the expansion.
344 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
345 (bswaphi2, bitinvert, revw): Likewise.
347 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
348 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
349 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
350 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
351 (bitset, bitset_in_memory): Likewise.
352 (bitinvert, bitinvert_in_memory): Likewise.
353 (bitclr, bitclr_in_memory): Likewise.
354 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
355 (rx_strend, rx_cmpstrn): Likewise.
356 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
357 (bitop peep2 patterns): Remove.
359 * config/rx/rx.c (rx_match_ccmode): New.
360 * config/rx/rx-protos.h: Update.
361 * config/rx/rx.md (abssi2): Clobber, don't set flags.
362 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
363 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
364 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
365 (fix_truncsfsi2, floatsisf2): Likewise.
366 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
367 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
368 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
369 (*subsi3_flags, *xorsi3_flags): New.
371 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
373 * config/rx/rx.c (rx_print_operand): Remove workaround for
374 unsplit comparison operations.
376 * config/rx/rx.md (movsicc): Split after reload.
377 (*movsicc): Merge *movsieq and *movsine via match_operator.
378 (*stcc): New pattern.
380 * config/rx/rx.c (rx_float_compare_mode): Remove.
381 * config/rx/rx.h (rx_float_compare_mode): Remove.
382 * config/rx/rx.md (cstoresi4): Split after reload.
383 (*sccc): New pattern.
385 * config/rx/predicates.md (label_ref_operand): New.
386 (rx_z_comparison_operator): New.
387 (rx_zs_comparison_operator): New.
388 (rx_fp_comparison_operator): New.
389 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
390 Validate that the flags are set properly for the comparison.
391 (rx_gen_cond_branch_template): Remove.
392 (rx_cc_modes_compatible): Remove.
393 (mode_from_flags): New.
394 (flags_from_code): Rename from flags_needed_for_conditional.
395 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
396 (rx_select_cc_mode): Likewise.
397 (rx_split_fp_compare): New.
398 (rx_split_cbranch): New.
399 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
400 (*cbranchsi4): Use match_operator and rx_split_cbranch.
401 (*cbranchsf4): Similarly.
402 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
403 match_operator and rx_split_cbranch.
404 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
405 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
406 (*cmpsi): Rename from cmpsi.
407 (*tstsi): Rename from tstsi.
408 (*cmpsf): Rename from cmpsf; use CC_Fmode.
409 (*conditional_branch): Rename from conditional_branch.
410 (*reveresed_conditional_branch): Remove.
411 (b<code>): Remove expander.
412 * config/rx/rx-protos.h: Update.
414 * config/rx/rx.c (rx_compare_redundant): Remove.
415 * config/rx/rx.md (cmpsi): Don't use it.
416 * config/rx/rx-protos.h: Update.
418 * config/rx/rx-modes.def (CC_F): New mode.
419 * config/rx/rx.c (rx_select_cc_mode): New.
420 * config/rx/rx.h (SELECT_CC_MODE): Use it.
421 * config/rx/rx-protos.h: Update.
423 2011-01-17 Richard Henderson <rth@redhat.com>
425 * except.c (dump_eh_tree): Fix stray ; after for statement.
427 2011-01-17 Richard Guenther <rguenther@suse.de>
429 PR tree-optimization/47313
430 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
431 handling before copying the body. Properly deal with
432 by-reference result in SSA form.
434 2011-01-17 Ian Lance Taylor <iant@google.com>
437 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
438 (struct_value_alias_set): Don't define.
439 (sparc_option_override): Don't set sparc_sr_alias_set and
440 struct_value_alias_set.
441 (save_or_restore_regs): Use gen_frame_mem rather than calling
443 (sparc_struct_value_rtx): Likewise.
445 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
448 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
450 (_mm_maskstore_pd): Likewise.
451 (_mm_maskload_ps): Likewise.
452 (_mm_maskstore_ps): Likewise.
453 (_mm256_maskload_pd): Change mask to __m256i.
454 (_mm256_maskstore_pd): Likewise.
455 (_mm256_maskload_ps): Likewise.
456 (_mm256_maskstore_ps): Likewise.
458 * config/i386/i386-builtin-types.def: Updated.
459 (ix86_expand_special_args_builtin): Likewise.
461 * config/i386/i386.c (bdesc_special_args): Update
462 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
463 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
464 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
465 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
467 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
468 Use <avxpermvecmode> on mask register.
469 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
471 2011-01-17 Olivier Hainque <hainque@adacore.com>
472 Michael Haubenwallner <michael.haubenwallner@salomon.at>
473 Eric Botcazou <ebotcazou@adacore.com>
476 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
477 if <= USHRT_MAX in 32-bit mode.
479 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
481 * doc/install.texi (Configuration, Specific): Wrap long
482 lines in examples. Allow line wrapping in long options
483 and URLs where beneficial for PDF output.
485 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
487 * config/mips/mips.c (mips_classify_symbol): Don't return
488 SYMBOL_PC_RELATIVE for nonlocal labels.
490 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
492 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
494 2011-01-15 Jan Hubicka <jh@suse.cz>
496 PR tree-optimization/47276
497 * ipa.c (function_and_variable_visibility): Do not try to mark alias
498 declarations as needed.
500 2011-01-15 Martin Jambor <mjambor@suse.cz>
502 * common.opt (fdevirtualize): New flag.
503 * doc/invoke.texi (Option Summary): Document it.
504 * opts.c (default_options_table): Add devirtualize flag.
505 * ipa-prop.c (detect_type_change): Return immediately if
506 devirtualize flag is not set.
507 (detect_type_change_ssa): Likewise.
508 (compute_known_type_jump_func): Likewise.
509 (ipa_analyze_virtual_call_uses): Likewise.
511 2011-01-14 Martin Jambor <mjambor@suse.cz>
513 PR tree-optimization/45934
514 PR tree-optimization/46302
515 * ipa-prop.c (type_change_info): New type.
516 (stmt_may_be_vtbl_ptr_store): New function.
517 (check_stmt_for_type_change): Likewise.
518 (detect_type_change): Likewise.
519 (detect_type_change_ssa): Likewise.
520 (compute_complex_assign_jump_func): Check for dynamic type change.
521 (compute_complex_ancestor_jump_func): Likewise.
522 (compute_known_type_jump_func): Likewise.
523 (compute_scalar_jump_functions): Likewise.
524 (ipa_analyze_virtual_call_uses): Likewise.
525 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
527 2011-01-14 Joseph Myers <joseph@codesourcery.com>
529 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
530 * config/i386/i386.opt (msse5): New Alias.
532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
534 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
535 * config/sparc/linux64.h (CC1_SPEC): Likewise.
536 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
537 * config/sparc/sparc.h (CC1_SPEC): Likewise.
539 2011-01-14 Joseph Myers <joseph@codesourcery.com>
541 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
543 * config/sparc/linux64.h (CC1_SPEC): Likewise.
544 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
545 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
546 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
548 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
552 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
555 2011-01-14 Mike Stump <mikestump@comcast.net>
557 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
558 * config/fr30/fr30.md: Likweise
559 (movsi_push): Likewise.
560 (movsi_pop): Likewise.
561 (enter_func): Likewise.
562 * config/moxie/moxie.md (movsi_push): Likewise.
563 (movsi_pop): Likewise.
565 2011-01-14 Joseph Myers <joseph@codesourcery.com>
567 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
568 %{no_archive} %{exact_version}.
569 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
570 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
571 %{no_archive} %{exact_version}.
572 * config/mips/openbsd.h (LINK_SPEC): Likewise.
573 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
574 * config/mips/vxworks.h: Likewise.
576 2011-01-14 Joseph Myers <joseph@codesourcery.com>
578 * config/microblaze/microblaze.h (ASM_SPEC): Remove
581 2011-01-14 Joseph Myers <joseph@codesourcery.com>
583 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
584 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
586 2011-01-14 Joseph Myers <joseph@codesourcery.com>
588 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
591 2011-01-14 Joseph Myers <joseph@codesourcery.com>
593 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
595 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
596 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
598 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
601 2011-01-14 Joseph Myers <joseph@codesourcery.com>
603 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
604 (CC1_SPEC): Don't handle -profile.
606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
608 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
609 * config/mips/mips.h (CC1_SPEC): Likewise.
611 2011-01-14 Joseph Myers <joseph@codesourcery.com>
613 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
614 * config/mips/mips.h (CC1_SPEC): Likewise.
616 2011-01-14 Joseph Myers <joseph@codesourcery.com>
618 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
619 * config/m32r/linux.h (LINK_SPEC): Likewise.
620 * config/mips/linux.h (LINK_SPEC): Likewise.
621 * config/mips/linux64.h (LINK_SPEC): Likewise.
622 * config/sparc/linux.h (LINK_SPEC): Likewise.
623 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
624 LINK_SPEC): Likewise.
625 * config/xtensa/linux.h (LINK_SPEC): Likewise.
627 2011-01-14 Joseph Myers <joseph@codesourcery.com>
629 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
631 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
633 2011-01-14 Joseph Myers <joseph@codesourcery.com>
635 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
636 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
638 2011-01-14 Joseph Myers <joseph@codesourcery.com>
640 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
642 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
645 supports -Bstatic/-Bdynamic.
646 * configure: Regenerate.
648 2011-01-14 Jan Hubicka <jh@suse.cz>
649 Jack Howarth <howarth@bromo.med.uc.edu>
652 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
653 when checking debug_info_level. Test write_symbols instead of
654 debug_hooks->var_location when setting flag_var_tracking_uninit.
656 2011-01-14 Richard Guenther <rguenther@suse.de>
658 PR tree-optimization/47179
659 * target.def (ref_may_alias_errno): New target hook.
660 * targhooks.h (default_ref_may_alias_errno): Declare.
661 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
662 (default_ref_may_alias_errno): New function.
663 * target.h (struct ao_ref_s): Declare.
664 * tree-ssa-alias.c: Include target.h.
665 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
666 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
667 (targhooks.o): Likewise.
668 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
669 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
671 2011-01-14 Richard Guenther <rguenther@suse.de>
673 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
675 2011-01-14 Richard Guenther <rguenther@suse.de>
677 PR tree-optimization/47280
678 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
680 (tree_ssa_forward_propagate_single_use_vars): Deal with
681 CFG changes from associate_plusminus.
683 2011-01-14 Richard Guenther <rguenther@suse.de>
687 2011-01-11 Richard Guenther <rguenther@suse.de>
689 PR tree-optimization/46076
690 * tree-ssa.c (useless_type_conversion_p): Conversions from
691 unprototyped to empty argument list function types are useless.
693 2011-01-14 Richard Guenther <rguenther@suse.de>
695 PR tree-optimization/47286
696 * tree-ssa-structalias.c (new_var_info): Register variables are global.
698 2011-01-14 Martin Jambor <mjambor@suse.cz>
701 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
703 2011-01-13 Anatoly Sokolov <aesok@post.ru>
705 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
706 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
707 * config/xtensa/xtensa.c (xtensa_libcall_value,
708 xtensa_function_value_regno_p): New functions.
709 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
711 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
714 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
716 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
717 New function prototype.
718 * config/i386/winnt.c (i386_pe_assemble_visibility):
719 Warn only if attribute was specified by user.
721 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
724 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
726 (floatunsdidf2_fcfidu): Ditto.
728 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
730 * config/s390/s390.c (print_operand_address): Replace 'error' with
731 'output_operand_lossage'.
732 (print_operand): Likewise.
734 2011-01-13 Jeff Law <law@redhat.com>
736 PR rtl-optimization/39077
737 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
738 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
739 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
740 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
741 * gcse.c (prune_insertions_deletions): New function.
742 (compute_pre_data): Use it.
744 2011-01-13 Dodji Seketeli <dodji@redhat.com>
747 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
749 (prune_unused_types_mark): Use it.
751 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
753 PR rtl-optimization/45352
754 * sel-sched.c: Update copyright years.
755 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
756 in the advancing loop when we have issued issue_rate insns.
758 2011-01-12 Richard Henderson <rth@redhat.com>
760 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
761 (TARGET_MD_ASM_CLOBBERS): New.
763 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
764 (TARGET_DELEGITIMIZE_ADDRESS): New.
766 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
767 (clzsi2, *bsch): New patterns.
769 * config/mn10300/mn10300.md (INT): New mode iterator.
770 (*mov<INT>_clr): New pattern, and peep2 to generate it.
772 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
773 flag_split_wide_types.
775 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
776 (mn10300_trampoline_init): Rewrite without a template, an immediate
777 load and a direct branch.
778 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
780 2011-01-12 Anatoly Sokolov <aesok@post.ru>
782 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
783 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
784 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
785 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
787 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
790 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
793 2011-01-12 Jan Hubicka <jh@suse.cz>
796 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
797 (PLUGIN_COND_CLOSE): New macro.
798 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
800 2011-01-12 Richard Guenther <rguenther@suse.de>
803 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
804 register variables in a MEM_REF.
806 2011-01-12 Joseph Myers <joseph@codesourcery.com>
808 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
809 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
810 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
811 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
812 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
813 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
814 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
815 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
816 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
817 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
818 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
819 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
820 * config/gnu-user.h: New. Copied from linux.h.
821 (LINUX_TARGET_STARTFILE_SPEC): Rename to
822 GNU_USER_TARGET_STARTFILE_SPEC.
823 (LINUX_TARGET_ENDFILE_SPEC): Rename to
824 GNU_USER_TARGET_ENDFILE_SPEC.
825 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
826 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
827 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
828 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
829 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
830 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
831 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
832 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
833 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
834 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
835 * config/arm/linux-eabi.h (CC1_SPEC): Use
836 GNU_USER_TARGET_CC1_SPEC.
837 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
838 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
839 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
840 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
841 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
842 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
843 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
844 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
846 2011-01-12 Richard Guenther <rguenther@suse.de>
849 * doc/invoke.texi (ffast-math): Document it is turned on
852 2011-01-12 Jan Hubicka <jh@suse.cz>
854 PR tree-optimization/47233
855 * opts.c (common_handle_option): Disable ipa-reference with profile
858 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
860 * c-parser.c (c_parser_objc_at_property_declaration): Improved
863 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
865 * c-parser.c (c_lex_one_token): Updated and reindented some
866 comments. No changes in code.
868 2011-01-11 Ian Lance Taylor <iant@google.com>
870 * godump.c (go_output_var): Don't output the variable if there is
871 already a type with the same name.
873 2011-01-11 Ian Lance Taylor <iant@google.com>
875 * godump.c (go_format_type): Don't generate float80.
877 2011-01-11 Richard Henderson <rth@redhat.com>
879 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
880 declaration. Rewrite for both speed and size.
881 (mn10300_address_cost_1): Remove.
882 (mn10300_register_move_cost): New.
883 (mn10300_memory_move_cost): New.
884 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
885 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
886 extensions, shifts, BSWAP, CLZ.
887 (mn10300_wide_const_load_uses_clr): Remove.
888 (TARGET_REGISTER_MOVE_COST): New.
889 (TARGET_MEMORY_MOVE_COST): New.
890 * config/mn10300/mn10300-protos.h: Update.
891 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
893 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
894 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
895 * config/mn10300/mn10300-protos.h: Update.
896 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
897 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
898 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
899 (*test_int_bitfield, *test_byte_bitfield): Remove.
900 (*bit_test, *subreg_bit_test): Remove.
901 * config/mn10300/predicates.md (const_8bit_operand): Remove.
903 * config/mn10300/constraints.md ("c"): Rename from "A".
904 ("A", "D"): New constraint letters.
905 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
906 (fmssf4, fnmasf4, fnmssf4): Likewise.
908 * config/mn10300/mn10300.md (isa): New attribute.
909 (enabled): New attribute.
911 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
912 (abssf2, negsf2): Define only for hardware fp.
914 (addsf3, subsf3, mulsf3): Merge expander and insn.
916 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
917 (DEBUGGER_AUTO_OFFSET): Remove.
918 (DEBUGGER_ARG_OFFSET): Remove.
920 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
921 Emit register stores with the same offsets as the hardware.
922 (mn10300_store_multiple_operation): Don't check that the register
923 save offsets are monotonic.
924 * config/mn10300/mn10300-protos.h: Update.
926 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
928 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
929 in terms of the value on the stack, not the MDR register.
931 2011-01-11 Jan Hubicka <jh@suse.cz>
935 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
936 (symbol_alias_set_destroy, symbol_alias_set_contains,
937 propagate_aliases_backward): Declare.
938 * lto-streamer-out.c (struct sets): New sturcture.
939 (trivally_defined_alias): New function.
940 (output_alias_pair_p): Rewrite.
941 (output_unreferenced_globals): Fix output of alias pairs.
942 (produce_symtab): Likewise.
943 * ipa.c (function_and_variable_visibility): Set weak alias destination
945 * varasm.c (symbol_alias_set_t): Remove.
946 (symbol_alias_set_destroy): Export.
947 (propagate_aliases_forward, propagate_aliases_backward): New functions
949 (compute_visible_aliases): ... this one; remove.
950 (trivially_visible_alias): New
951 (trivially_defined_alias): New.
952 (remove_unreachable_alias_pairs): Rewrite.
953 (finish_aliases_1): Reorganize code checking if alias is defined.
954 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
957 2011-01-11 Richard Guenther <rguenther@suse.de>
959 PR tree-optimization/46076
960 * tree-ssa.c (useless_type_conversion_p): Conversions from
961 unprototyped to empty argument list function types are useless.
963 2011-01-11 Richard Guenther <rguenther@suse.de>
966 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
967 volatile MEMs as MEM_READONLY_P.
969 2011-01-11 Richard Guenther <rguenther@suse.de>
971 PR tree-optimization/47239
972 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
974 2011-01-11 Jeff Law <law@redhat.com>
976 PR tree-optimization/47086
977 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
978 IVs from statements that might throw.
980 2011-01-10 Jan Hubicka <jh@suse.cz>
983 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
985 2011-01-10 Jan Hubicka <jh@suse.cz>
988 * profile.c (read_profile_edge_counts): Ignore profile inconistency
989 when correcting profile.
991 2011-01-10 Jan Hubicka <jh@suse.cz>
994 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
996 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
997 Restore DECL_FINI_PRIORITY.
999 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1001 * doc/gimple.texi: Fix quoting of multi-word return values in
1002 @deftypefn statements. Ensure presence of return value. Wrap
1003 overlong @deftypefn lines.
1004 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1005 descriptions of removed functions.
1006 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1007 of multi-word return value in @deftypefn statement.
1009 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1011 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1012 (Conditional Expressions, Logical Operators)
1013 (Statement and operand traversals): Do not indent smallexample
1014 code. Fix duplicate function argument in example.
1016 2011-01-10 Jeff Law <law@redhat.com>
1018 PR tree-optimization/47141
1019 * ipa-split.c (split_function): Handle case where we are
1020 returning a value and the return block has a virtual operand phi.
1022 2011-01-10 Jan Hubicka <jh@suse.cz>
1024 PR tree-optimization/47234
1025 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1026 (pass_feedback_split_functions): Declare.
1027 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1029 * ipa-split.c (gate_split_functions): Update comments; disable
1030 split-functions for profile_arc_flag and branch_probabilities.
1031 (gate_feedback_split_functions): New function.
1032 (execute_feedback_split_functions): New function.
1033 (pass_feedback_split_functions): New global var.
1035 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1038 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1039 calling gimple_call_set_cannot_inline.
1041 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1043 * config/darwin-sections.def: Remove unused section.
1045 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1048 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1050 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1053 * c-parser.c (c_parser_declaration_or_fndef): Improved
1056 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1058 * config/i386/winnt.c (i386_pe_start_function): Make sure
1059 to switch back to function's section.
1061 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1065 * plugin.c: Move include of dlfcn.h from here...
1066 * system.h: ... to here.
1068 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1070 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1072 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1073 two extra empty pages in PDF output.
1075 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1078 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1079 for error recovery purposes behave as if it was not specified so
1080 that the default type is usd.
1082 2011-01-07 Jan Hubicka <jh@suse.cz>
1084 PR tree-optmization/46469
1085 * ipa.c (function_and_variable_visibility): Clear needed flags on
1086 nodes with external decls; handle weakrefs merging correctly.
1088 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1090 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1093 2011-01-07 Jan Hubicka <jh@suse.cz>
1095 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1096 and no longer claim that gold is required for linker plugin.
1097 * configure: Regenerate.
1098 * gcc.c (PLUGIN_COND): New macro.
1099 (LINK_COMMAND_SPEC): Use it.
1100 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1101 * config.in (HAVE_LTO_PLUGIN): New.
1102 * configure.ac (--with-lto-plugin): New parameter; autodetect
1105 2011-01-07 Jan Hubicka <jh@suse.cz>
1107 PR tree-optimization/46367
1108 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1109 when we can update original.
1110 (cgraph_mark_inline_edge): Sanity check.
1111 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1113 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1115 * config/spu/spu.h (ASM_COMMENT_START): Define.
1117 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1121 (SWITCH_KEEP_FOR_GCC): Likewise.
1122 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1123 (do_spec_1): Handle "%>".
1125 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1127 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1130 * config/i386/i386.c (ix86_delegitimize_address): If
1131 simplify_gen_subreg fails, return orig_x.
1134 * value-prof.c (gimple_stringop_fixed_value): Handle
1135 lhs of the call properly.
1137 2011-01-07 Jan Hubicka <jh@suse.cz>
1140 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1142 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1144 * target.def (function_switched_text_sections): New hook.
1145 * doc/tm.texi: Regenerated.
1146 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1147 * final.c (default_function_switched_text_sections): New.
1148 (final_scan_insn): Call function_switched_text_sections when a
1149 mid-function section change occurs.
1150 * output.h (default_function_switched_text_sections): Declare.
1151 * config/darwin-protos.h (darwin_function_switched_text_sections):
1153 * config/darwin.c (darwin_function_switched_text_sections): New.
1154 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1156 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1158 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1159 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1160 the secondary code fragment when outputting for DWARF == 2.
1162 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1164 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1165 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1167 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1168 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1170 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1173 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1174 when it is not empty.
1176 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1179 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1180 (case ${target}): Add btver1.
1181 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1182 -march=native recognize btver1 processors.
1183 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1184 btver1 def_and_undef
1185 * config/i386/i386.c (struct processor_costs btver1_cost): New
1187 (m_BTVER1): New definition.
1188 (m_AMD_MULTIPLE): Includes m_BTVER1.
1189 (initial_ix86_tune_features): Add btver1 tune.
1190 (processor_target_table): Add btver1 entry.
1191 (static const char *const cpu_names): Add btver1 entry.
1192 (software_prefetching_beneficial_p): Add btver1.
1193 (ix86_option_override_internal): Add btver1 instruction sets.
1194 (ix86_issue_rate): Add btver1.
1195 (ix86_adjust_cost): Add btver1.
1196 * config/i386/i386.h (TARGET_BTVER1): New definition.
1197 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1198 (enum processor_type): Add PROCESSOR_BTVER1.
1199 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1201 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1204 * config/i386/i386.c (legitimize_tls_address)
1205 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1206 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1207 (tls_initial_exec_64_sun): New pattern.
1209 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1211 * doc/invoke.texi (Overall Options): Improve wording and markup
1212 of the description of -wrapper.
1214 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1216 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1217 rdynamic, threads): New Driver options.
1219 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1222 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1223 if coming from .tdata.
1224 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1226 2011-01-06 Jan Hubicka <jh@suse.cz>
1229 * collect2.c (main): Do not enable LTOmode when plugin is active.
1231 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1234 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1235 --version output if supported.
1236 * configure: Regenerate.
1238 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1240 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1243 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1246 * c-convert.c (convert): When converting a complex expression
1247 other than COMPLEX_EXPR to a different complex type, ensure
1248 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1249 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1250 when converting COMPLEX_TYPE.
1252 2011-01-06 Ira Rosen <irar@il.ibm.com>
1254 PR tree-optimization/47139
1255 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1256 only the last reduction value is used outside the loop. Update
1259 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1261 * config/rtems.opt: New.
1262 * config.gcc (*-*-rtems*): Use rtems.opt.
1264 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1266 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1267 processors do not support 3DNow instructions.
1269 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1271 * config/spu/spu.c (spu_option_override): Set parameter
1272 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1274 2011-01-05 Jan Hubicka <jh@suse.cz>
1276 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1277 at the command line.
1279 2011-01-05 Martin Jambor <mjambor@suse.cz>
1282 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1283 deltas on streamed outgoing edges.
1284 (output_node_opt_summary): Output info for outgoing edges only when
1285 the node is in new parameter set.
1286 (output_cgraph_opt_summary): New parameter set, passed to the two
1287 aforementioned functions. Update its forward declaration and its
1290 2011-01-05 Tom Tromey <tromey@redhat.com>
1292 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1293 operator to c_finish_omp_atomic.
1294 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1295 (build_unary_op): Update.
1296 (build_modify_expr): Update.
1297 (build_asm_expr): Update.
1299 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1301 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1302 newly inserted insns.
1304 (spu_emit_branch_hint): Likewise.
1305 (insert_hbrp_for_ilb_runout): Likewise.
1306 (spu_machine_dependent_reorg): Call df_finish_pass after
1307 schedule_insns returns.
1309 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1311 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1313 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1315 PR tree-optimization/47005
1316 * tree-sra.c (struct access): Add 'non_addressable' bit.
1317 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1318 (decide_one_param_reduction): Return 0 if the parameter is passed by
1319 reference and one of the accesses in the group is non_addressable.
1321 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1323 PR tree-optimization/47056
1324 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1325 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1326 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1328 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1330 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1331 initializer. Skip view conversions from aggregate types.
1333 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1336 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1338 2011-01-04 Philipp Thomas <pth@suse.de>
1340 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1343 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1345 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1346 on empty epilogue sequences.
1348 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1350 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1351 non-static): New Driver options.
1353 2011-01-04 Jie Zhang <jie@codesourcery.com>
1356 * gcc.c (default_compilers[]): Set combinable field to 0
1357 for all assembly languages.
1359 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1361 * config/mips/loongson3a.md: New file.
1362 * config/mips/mips.md: Include loongson3a.md.
1363 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1366 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1369 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1370 instead of convert_memory_address_addr_space on the base expression.
1372 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1374 * config/spu/spu.c (spu_option_override): Update error text
1375 for bad -march= / -mtune= values.
1377 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1379 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1380 if branch-hint optimization will be performed.
1382 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1384 PR tree-optimization/47148
1385 * ipa-split.c (split_function): Convert arguments to
1386 DECL_ARG_TYPE if possible.
1388 PR tree-optimization/47155
1389 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1392 PR rtl-optimization/47157
1393 * combine.c (try_combine): If undobuf.other_insn becomes
1394 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1395 and set *new_direct_jump_p too.
1397 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1399 PR tree-optimization/47021
1400 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1402 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1404 * gcc.c (process_command): Update copyright notice dates.
1405 * gcov.c (print_version): Likewise.
1406 * gcov-dump.c (print_version): Likewise.
1407 * mips-tfile.c (main): Likewise.
1408 * mips-tdump.c (main): Likewise.
1410 2011-01-03 Martin Jambor <mjambor@suse.cz>
1412 PR tree-optimization/46801
1413 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1414 aggregate fields start at byte boundary instead of the bit-field flag.
1416 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1419 * gcc.c (main): Revert revision 168407.
1421 2011-01-03 Martin Jambor <mjambor@suse.cz>
1423 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1425 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1427 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1428 vector optab to expand vector/scalar shift, update gimple to vector.
1430 2011-01-03 Martin Jambor <mjambor@suse.cz>
1432 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1435 2011-01-03 Martin Jambor <mjambor@suse.cz>
1437 PR tree-optimization/46984
1438 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1440 (cgraph_create_indirect_edge): Fixed line length.
1441 (cgraph_indirect_call_info): Declare.
1442 (cgraph_make_edge_direct) Update declaration.
1443 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1444 (cgraph_create_indirect_edge): Use it.
1445 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
1447 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
1448 the new thunk_delta representation.
1449 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
1451 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
1452 (ipa_read_indirect_edge_info): Likewise.
1453 * lto-cgraph.c (output_edge_opt_summary): New function.
1454 (output_node_opt_summary): Call it on all outgoing edges.
1455 (input_edge_opt_summary): New function.
1456 (input_node_opt_summary): Call it on all outgoing edges.
1458 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1461 * gcc.c (main): Don't check have_o when settting combine_inputs.
1463 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
1465 * regrename.c: Add general comment describing the pass.
1466 (struct du_head): Remove 'length' field.
1467 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
1468 (regrename_optimize): Do not sort chains. Rework comments, add others.
1469 Force renaming to the preferred class (if any) in the first pass and do
1470 not consider registers that belong to it in the second pass.
1471 (create_new_chain): Do not set 'length' field.
1472 (scan_rtx_reg): Likewise.
1474 2011-01-02 Jakub Jelinek <jakub@redhat.com>
1476 PR tree-optimization/47140
1477 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
1478 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
1481 PR rtl-optimization/47028
1482 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
1483 parm_birth_insn instead of at the beginning of first bb.
1485 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
1487 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
1488 Remove the word "see" before "@pxref".
1489 * doc/rtl.texi: Remove the word "see" before "@pxref".
1491 2011-01-01 Jan Hubicka <jh@suse.cz>
1493 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
1496 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
1499 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
1502 Copyright (C) 2011 Free Software Foundation, Inc.
1504 Copying and distribution of this file, with or without modification,
1505 are permitted in any medium without royalty provided the copyright
1506 notice and this notice are preserved.