1 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3 * config/ia64/ia64.c (ia64_init_builtins): Call
4 build_function_type_list instead of builtin_function_type.
6 2011-04-21 Easwaran Raman <eraman@google.com>
8 * gcc/cfgexpand.c (stack_var): Remove OFFSET...
9 (add_stack_var): ...and its reference here...
10 (expand_stack_vars): ...and here.
11 (stack_var_cmp): Sort by descending order of size.
12 (partition_stack_vars): Change heuristic.
13 (union_stack_vars): Fix to reflect changes in
15 (dump_stack_var_partition): Add newline after each partition.
17 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18 Jeff Law <law@redhat.com>
20 * gengtype-state.c (read_a_state_token): Fix argument to
22 * gengtype.c (matching_file_name_substitute): Likewise.
24 2011-04-21 Richard Guenther <rguenther@suse.de>
27 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
30 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
32 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
34 2011-04-21 Richard Guenther <rguenther@suse.de>
36 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
39 2011-04-21 Richard Guenther <rguenther@suse.de>
41 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
42 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
43 Use DECL_P, not SSA_VAR_P.
44 (ptr_derefs_may_alias_p): Likewise.
45 (ptr_deref_may_alias_ref_p_1): Likewise.
46 (decl_refs_may_alias_p): Likewise.
47 (refs_may_alias_p_1): Likewise.
48 (ref_maybe_used_by_call_p_1): Likewise.
49 (call_may_clobber_ref_p_1): Likewise.
50 (indirect_ref_may_alias_decl_p): Assume indirect refrences
51 are either MEM_REF or TARGET_MEM_REF.
52 (indirect_refs_may_alias_p): Likewise.
53 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
54 for MEM_EXPR of indirect calls.
56 2011-04-21 Tristan Gingold <gingold@adacore.com>
58 * vmsdbgout.c (write_srccorr): Compute file length from the string.
59 (dst_file_info_struct): Remove flen field.
60 (lookup_filename): Remove code that set flen field.
62 2011-04-21 Tristan Gingold <gingold@adacore.com>
64 * config/ia64/ia64.c (ia64_start_function): Add a guard.
66 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
69 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
70 vec_extract and vec_concat for non-SSE4_1 targets.
72 2011-04-21 Richard Guenther <rguenther@suse.de>
74 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
77 2011-04-21 Joseph Myers <joseph@codesourcery.com>
79 * config/i386/cygming.h (union tree_node, TREE): Don't define or
81 (FILE): Don't undefine.
83 2011-04-21 Joseph Myers <joseph@codesourcery.com>
85 * config/alpha/alpha.c (struct machine_function): Use rtx, not
87 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
89 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
90 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
91 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
93 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
94 definitions where used.
95 * config/microblaze/microblaze.h (struct microblaze_args): Use
96 rtx, not struct rtx_def *.
97 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
99 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
100 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
101 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
102 not struct rtx_def *.
103 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
105 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
107 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
109 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
111 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
112 operand_equal_p to compare DR_BASE_ADDRESSes.
113 (vect_check_interleaving): Likewise.
115 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
118 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
119 for all Neon struct constants.
121 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
123 * target.def (legitimate_constant_p): New hook.
124 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
125 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
126 * doc/tm.texi: Regenerate.
127 * hooks.h (hook_bool_mode_rtx_true): Declare.
128 * hooks.c (hook_bool_mode_rtx_true): Define.
129 * system.h (LEGITIMATE_CONSTANT_P): Poison.
130 * calls.c (precompute_register_parameters): Replace uses of
131 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
132 (emit_library_call_value_1): Likewise.
133 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
134 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
135 * ira-costs.c (scan_one_insn): Likewise.
136 * recog.c (general_operand, immediate_operand): Likewise.
137 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
138 * reload1.c (init_eliminable_invariants): Likewise.
140 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
142 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
143 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
145 (TARGET_LEGITIMATE_CONSTANT_P): Define.
146 * config/alpha/predicates.md (input_operand): Update call to
147 alpha_legitimate_constant_p.
149 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
150 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
151 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
152 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
153 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
154 (arm_legitimate_constant_p): New functions.
155 (arm_cannot_force_const_mem): Make static.
157 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
159 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
160 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
161 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
162 instead of bfin_legitimate_constant_p.
163 (bfin_legitimate_constant_p): Make static. Add a mode argument.
164 (TARGET_LEGITIMATE_CONSTANT_P): Define.
166 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
168 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
170 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
171 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
172 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
173 (frv_legitimate_constant_p): Make static. Add a mode argument.
175 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
176 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
177 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
179 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
180 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
181 * config/i386/i386.c (legitimate_constant_p): Rename to...
182 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
184 (ix86_cannot_force_const_mem): Update accordingly.
185 (ix86_legitimate_address_p): Likewise.
186 (TARGET_LEGITIMATE_CONSTANT_P): Define.
187 * config/i386/i386.md: Update commentary.
189 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
190 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
191 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
192 (ia64_legitimate_constant_p): Make static. Add a mode argument.
194 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
196 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
197 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
198 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
199 (lm32_legitimate_constant_p): Make static. Add a mode argument.
201 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
202 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
203 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
205 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
206 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
207 (m32r_legitimate_constant_p): New function.
209 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
210 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
211 LEGITIMATE_CONSTANT_P.
212 (LEGITIMATE_CONSTANT_P): Delete.
213 * config/m68k/m68k.c (m68k_expand_prologue): Call
214 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
215 (m68k_legitimate_constant_p): New function.
216 * config/m68k/m68k.md: Update comments.
218 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
219 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
220 (mcore_legitimate_constant_p): New function.
222 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
223 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
224 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
226 (mep_legitimate_address): Update accordingly.
227 (TARGET_LEGITIMATE_CONSTANT_P): Define.
229 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
231 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
232 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
233 static. Check OP's mode for VOIDmode.
234 (microblaze_legitimate_constant_p): New function.
235 (TARGET_LEGITIMATE_CONSTANT_P): Define.
237 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
238 * config/mips/mips.c (mips_legitimate_constant_p): New function.
239 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
240 (TARGET_LEGITIMATE_CONSTANT_P): Define.
241 * config/mips/predicates.md: Update comments.
243 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
244 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
245 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
246 (mmix_legitimate_constant_p): Make static, return a bool, and take
248 (mmix_print_operand_address): Update accordingly.
250 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
252 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
253 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
254 static. Add a mode argument.
255 (TARGET_LEGITIMATE_CONSTANT_P): Define.
257 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
259 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
260 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
261 (pa_legitimate_constant_p): New function.
263 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
265 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
266 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
267 (pdp11_legitimate_constant_p): New function.
269 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
270 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
271 (rs6000_legitimate_constant_p): New function.
273 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
274 (rx_legitimate_constant_p): ...this.
275 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
276 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
277 (rx_legitimate_constant_p): ...this.
278 (TARGET_LEGITIMATE_CONSTANT_P): Define.
279 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
281 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
282 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
283 * config/s390/s390.c (legitimate_constant_p): Rename to...
284 (s390_legitimate_constant_p): ...this. Make static, return a bool,
285 and add a mode argument.
286 (TARGET_LEGITIMATE_CONSTANT_P): Define.
288 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
290 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
291 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
292 (sh_legitimate_constant_p): New function.
294 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
295 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
296 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
297 (legitimate_constant_p): Rename to...
298 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
300 (constant_address_p): Update accordingly.
302 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
303 argument and return a bool.
304 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
305 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
306 (spu_legitimate_constant_p): Add a mode argument and return a bool.
307 (spu_rtx_costs): Update accordingly.
308 * config/spu/predicates.md (vec_imm_operand): Likewise.
310 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
312 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
313 * config/v850/v850.c (v850_legitimate_constant_p): New function.
314 (TARGET_LEGITIMATE_CONSTANT_P): Define.
316 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
317 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
318 * config/vax/vax.c (legitimate_constant_p): Likewise.
320 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
321 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
322 (xtensa_legitimate_constant_p): New function.
324 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
326 * target.def (cannot_force_const_mem): Add a mode argument.
327 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
328 * doc/tm.texi: Regenerate.
329 * hooks.h (hook_bool_mode_rtx_false): Declare.
330 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
331 (hook_bool_mode_const_rtx_true): Likewise.
332 (hook_bool_mode_rtx_false): New function.
333 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
334 to be non-VOID. Update call to cannot_force_const_mem.
335 (find_reloads): Update accordingly.
336 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
337 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
339 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
340 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
341 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
342 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
343 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
344 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
345 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
346 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
347 (m68k_cannot_force_const_mem): ...this new function.
348 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
350 (mips_const_insns, mips_legitimize_const_move): Update calls.
351 (mips_secondary_reload_class): Likewise.
352 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
353 (pa_cannot_force_const_mem): ...this new function.
354 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
355 (rs6000_cannot_force_const_mem): ...this new function.
356 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
358 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
359 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
361 (xtensa_cannot_force_const_mem): ...this new function.
363 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
365 * config/mips/mips.c (mips16_build_function_stub): Call
366 build_function_type_list instead of build_function_type.
367 (mips16_build_call_stub): Likewise.
369 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
371 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
372 instead of build_function_type.
374 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
376 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
377 instead of build_function_type.
379 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
382 * config/i386/i386.md (insv): Change operand 0 constraint to
383 "register_operand". Change operand 1 and 2 constraint to
384 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
385 * config/i386/sse.md (sse4_1_pinsrb): Export.
386 (sse2_pinsrw): Ditto.
387 (sse4_1_pinsrd): Ditto.
388 (sse4_1_pinsrq): Ditto.
389 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
390 * config/i386/i386.c (ix86_expand_pinsr): New.
392 2011-04-20 Easwaran Raman <eraman@google.com>
394 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
395 containing union type only with -fstrict-aliasing.
397 2011-04-20 Jim Meyering <meyering@redhat.com>
399 Remove useless if-before-free tests.
400 * calls.c (expand_call, save_area): Likewise.
401 * cfgcleanup.c (try_forward_edges): Likewise.
402 * collect2.c (collect_execute): Likewise.
403 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
404 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
405 * coverage.c (coverage_checksum_string): Likewise.
406 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
407 * cselib.c (cselib_init): Likewise.
408 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
409 (df_set_clean_cfg): Likewise.
410 * function.c (free_after_compilation): Likewise.
411 * gcc.c (do_spec_1, main): Likewise.
412 * gcov.c (create_file_names): Likewise.
413 * gensupport.c (identify_predicable_attribute): Likewise.
414 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
415 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
416 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
417 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
418 * ipa-pure-const.c (local_pure_const): Likewise.
419 * ipa-reference.c (propagate): Likewise.
420 * ira-costs.c (free_ira_costs): Likewise.
421 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
422 * matrix-reorg.c (mat_free): Likewise.
423 * prefix.c (get_key_value): Likewise.
424 * profile.c (compute_value_histograms): Likewise.
425 * reload1.c (free_reg_equiv): Likewise.
426 * sched-deps.c (free_deps): Likewise.
427 * sel-sched-ir.c (fence_clear): Likewise.
428 * sese.c (set_rename, if_region_set_false_region): Likewise.
429 * tree-data-ref.c (free_rdg): Likewise.
430 * tree-eh.c (lower_try_finally): Likewise.
431 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
432 * tree-ssa-live.c (delete_var_map): Likewise.
433 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
434 * tree-ssa-pre.c (phi_trans_add): Likewise.
436 2011-04-20 Jakub Jelinek <jakub@redhat.com>
438 PR tree-optimization/48611
439 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
440 beyond ERT_MUST_NOT_THROW region.
442 2011-04-20 Catherine Moore <clm@codesourcery.com>
444 * config/mips/mips.opt (mfix-24k): New.
445 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
446 * config/mips/mips.md (length): Increase by 4 for stores if
448 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
449 all noreorder if fixing 24K errata.
450 * doc/invoke.texi: Document mfix-24k.
452 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
454 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
455 quad-word modes, reduce to 9-bit index range when above 1016 limit.
457 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
459 * config/arm/arm.c (arm_gen_constant): Move movw support ....
460 (const_ok_for_op): ... to here.
462 2011-04-20 Kai Tietz <ktietz@redhat.com>
464 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
465 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
467 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
469 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
471 2011-04-20 Richard Guenther <rguenther@suse.de>
473 PR tree-optimization/47892
474 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
477 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
479 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
481 2011-04-20 Tristan Gingold <gingold@adacore.com>
483 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
485 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
489 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
490 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
491 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
492 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
493 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
495 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
498 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
499 (avr_asm_named_section, avr_asm_output_aligned_common,
500 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
501 New functions to update...
502 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
503 (avr_asm_init_sections): Overwrite section callbacks for
504 data_section, bss_section.
505 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
507 (avr_file_end): ...here.
509 2011-04-20 Richard Guenther <rguenther@suse.de>
512 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
513 objects and types here. Adjust for their offset before comparing.
515 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
517 * tree-vect-stmts.c (vectorizable_store): Only chain one related
520 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
522 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
523 (GIMPLE_H): Include $(INTERNAL_FN_H).
524 (OBJS-common): Add internal-fn.o.
525 (internal-fn.o): New rule.
526 * internal-fn.def: New file.
527 * internal-fn.h: Likewise.
528 * internal-fn.c: Likewise.
529 * gimple.h: Include internal-fn.h.
530 (GF_CALL_INTERNAL): New gf_mask.
531 (gimple_statement_call): Put fntype into a union with a new
533 (gimple_build_call_internal): Declare.
534 (gimple_build_call_internal_vec): Likewise.
535 (gimple_call_same_target_p): Likewise.
536 (gimple_call_internal_p): New function.
537 (gimple_call_internal_fn): Likewise.
538 (gimple_call_fntype): Return null for internal calls.
539 (gimple_call_set_fntype): Assert that the function is not internal.
540 (gimple_call_set_fn): Likewise.
541 (gimple_call_set_fndecl): Likewise.
542 (gimple_call_set_internal_fn): New function.
543 (gimple_call_addr_fndecl): Handle null functions.
544 (gimple_call_return_type): Likewise null types.
545 * gimple.c (gimple_build_call_internal_1): New function.
546 (gimple_build_call_internal): Likewise.
547 (gimple_build_call_internal_vec): Likewise.
548 (gimple_call_same_target_p): Likewise.
549 (gimple_call_flags): Handle calls to internal functions.
550 (gimple_call_fnspec): New function.
551 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
552 (gimple_has_side_effects): Handle null functions.
553 (gimple_rhs_has_side_effects): Likewise.
554 (gimple_call_copy_skip_args): Handle calls to internal functions.
555 * cfgexpand.c (expand_call_stmt): Likewise.
556 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
557 * gimple-fold.c (gimple_fold_call): Handle null functions.
558 (gimple_fold_stmt_to_constant_1): Don't fold
559 calls to internal functions.
560 * gimple-low.c (gimple_check_call_args): Handle calls to internal
562 * gimple-pretty-print.c (dump_gimple_call): Likewise.
563 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
564 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
565 (do_warn_unused_result): Likewise.
566 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
567 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
568 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
569 the target of a call.
570 (initialize_hash_element): Update accordingly.
571 (hashable_expr_equal_p): Use gimple_call_same_target_p.
572 (iterative_hash_hashable_expr): Handle calls to internal functions.
573 (print_expr_hash_elt): Likewise.
574 * tree-ssa-pre.c (can_value_number_call): Likewise.
575 (eliminate): Handle null functions.
576 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
577 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
578 (find_func_aliases): Likewise.
579 * value-prof.c (gimple_ic_transform): Likewise.
580 (gimple_indirect_call_to_profile): Likewise.
581 * lto-streamer-in.c (input_gimple_stmt): Likewise.
582 * lto-streamer-out.c (output_gimple_stmt): Likewise.
584 2011-04-19 Jan Hubicka <jh@suse.cz>
586 * ipa-inline-transform.c (save_inline_function_body): Add comments.
587 * ipa-inline.c (inline_small_functions): Compute summaries first,
590 2011-04-19 Jan Hubicka <jh@suse.cz>
592 * cgraph.h (save_inline_function_body): Remove.
593 * ipa-inline-transform.c: New file, broke out of...
594 * ipa-inline.c: ... this one; Update toplevel comment.
595 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
597 (update_noncloned_frequencies): Move to ipa-inline-transform.c
598 (cgraph_mark_inline_edge): Rename to inline_call; move to
599 ipa-inline-transform.c.
600 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
601 move to ipa-inline-transform.c
602 (recursive_inlining, inline_small_functions, flatten_function,
603 ipa_inline, inline_always_inline_functions,
604 early_inline_small_functions): Update.
605 (inline_transform): Move to ipa-inline-transform.c.
606 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
608 * Makefile.in (ipa-inline-transform.o): New file.
609 * cgraphunit.c (save_inline_function_body): Move to
610 ipa-inline-transform.c
612 2011-04-19 DJ Delorie <dj@redhat.com>
614 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
615 registers if we already know there aren't any.
616 (m32c_emit_epilogue): Don't emit a barrier here.
617 (m32c_emit_eh_epilogue): Likewise.
618 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
619 operands at expand time.
620 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
622 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
623 duplicates. Provide aliases instead.
624 * config/m32c/prologue.md (eh_return): Emit a barrier here.
625 (eh_epilogue): Add a "(return)" here as a hint to other parts of
628 2011-04-19 Anatoly Sokolov <aesok@post.ru>
630 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
631 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
632 (general_or_i64_p, sparc_register_move_cost): New function.
634 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
636 * doc/install.texi (Configuration, --enable-threads): Remove mach.
637 Add lynx, mipssde. Sort table.
639 2011-04-19 Xinliang David Li <davidxl@google.com>
641 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
644 2011-04-19 Jakub Jelinek <jakub@redhat.com>
647 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
648 is a SUBREG with non-MODE_INT mode inside of it.
650 2011-04-19 Martin Jambor <mjambor@suse.cz>
652 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
653 also according to actual contants.
654 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
655 (gimple_fold_call): Use it.
656 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
658 2011-04-19 Martin Jambor <mjambor@suse.cz>
660 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
661 non-pointer assignments.
663 2011-04-19 Martin Jambor <mjambor@suse.cz>
665 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
666 account anc_offset and otr_type from the indirect edge info.
667 * ipa-prop.c (get_ancestor_addr_info): New function.
668 (compute_complex_ancestor_jump_func): Assignment analysis moved to
669 get_ancestor_addr_info, call it.
670 (ipa_note_param_call): Do not initialize information about polymorphic
671 calls, return the indirect call graph edge. Remove the last
672 parameter, adjust all callers.
673 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
674 parameters. Initialize polymorphic information in the indirect edge.
676 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
679 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
680 the types if they have different enumeration identifiers.
682 2011-04-19 Jan Hubicka <jh@suse.cz>
684 * cgraph.h (cgraph_optimize_for_size_p): Declare.
685 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
686 * predict.c (cgraph_optimize_for_size_p): Break out from ...
687 (optimize_function_for_size_p) ... here.
689 2011-04-19 Richard Guenther <rguenther@suse.de>
692 * tree.c (free_lang_data): Do not reset the decl-assembler-name
695 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
697 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
698 if DECL_NO_INLINE_WARNING_P is set on the function.
700 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
703 * reload1.c (inc_for_reload): Return void. All callers changed.
704 (emit_input_reload_insns): Don't try to delete previous output
705 reloads to a register, or record spill_reg_store for autoincs.
707 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
709 * gengtype.h: Updated copyright year.
710 (struct input_file_st): Add inpisplugin field.
711 (type_fileloc): New function.
713 (write_typed_struct_alloc_def): Add gcc_assert.
714 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
715 (write_typed_alloc_defns): Don't output for plugin files.
716 (input_file_by_name): Clear inpisplugin field.
717 (main): Set inpisplugin field for plugin files.
719 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
721 * gengtype-state.c (string_eq): New.
722 (read_state): Use string_eq instead of strcmp when creating the
725 2011-04-19 Wei Guozhi <carrot@google.com>
728 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
729 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
731 * config/arm/constraints.md (Uu): New constraint.
732 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
734 2011-04-19 Tristan Gingold <gingold@adacore.com>
736 * config.gcc (-*-*-*vms): Added.
737 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
739 * config/vms/vms-ld.c: New file.
740 * config/vms/vms-ar.c: New file.
741 * config/vms/t-vmsnative: New file.
743 2011-04-18 Xinliang David Li <davidxl@google.com>
745 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
747 2011-04-18 Jakub Jelinek <jakub@redhat.com>
750 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
751 if TREE_TYPE (v) is non-NULL.
753 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
754 gimple_get_virt_mehtod_for_binfo.
755 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
756 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
758 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
760 2011-04-18 Michael Matz <matz@suse.de>
761 Steve Ellcey <sje@cup.hp.com>
763 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
764 use its mode as source mode if it isn't VOIDmode.
766 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
768 * doc/passes.texi: Fill crossref nodes.
770 2011-04-18 Jim Meyering <meyering@redhat.com>
772 Fix doubled-word typos in comments and strings
773 * config/alpha/vms-unwind.h: s/for for/for/
774 * config/arm/unwind-arm.h: Likewise.
775 * config/microblaze/microblaze.c: Likewise.
776 * config/sh/constraints.md: s/in in/in/
777 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
779 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
781 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
782 (AVX_FLOAT_MODE_P): Ditto.
783 (AVX128_VEC_FLOAT_MODE_P): Ditto.
784 (AVX256_VEC_FLOAT_MODE_P): Ditto.
785 (AVX_VEC_FLOAT_MODE_P): Ditto.
786 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
787 (UNSPEC_MASKSTORE): Ditto.
788 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
789 Merge from <sse>_movmsk<ssemodesuffix> and
790 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
791 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
793 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
794 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
795 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
797 2011-04-18 Jan Hubicka <jh@suse.cz>
799 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
801 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
802 (want_inline_function_called_once_p): Break out the logic from
804 (edge_badness): Ensure that profile is not misupdated.
805 (lookup_recursive_calls): Prioritize by call frequencies.
806 (inline_small_functions): Move program size estimates here;
807 actually process whole queue even when unit growth has been
808 met. (to properly compute inline_failed reasons and for the
809 case unit size decrease.) Revisit comments on recursive inlining.
810 (ipa_inline): Remove unit summary code; first inline hot calls
811 of functions called once, cold calls next.
812 (order, nnodes): Remove unused variables.
813 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
814 (GTFILES): Remove ipa-inline.c
815 * sel-sched.c (fill_insns): Silence uninitialized var warning.
817 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
819 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
821 2011-04-18 Jie Zhang <jie@codesourcery.com>
822 Richard Earnshaw <rearnsha@arm.com>
824 * arm.c (neon_builtin_type_bits): Remove.
825 (typedef enum neon_builtin_mode): New.
826 (T_MAX): Don't define.
827 (typedef enum neon_builtin_datum): Remove bits, codes[],
828 num_vars and base_fcode. Add mode, code and fcode.
829 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
830 VAR10): Change accordingly.
831 (neon_builtin_data[]): Change accordingly
832 (arm_init_neon_builtins): Change accordingly.
833 (neon_builtin_compare): Remove.
834 (locate_neon_builtin_icode): Remove.
835 (arm_expand_neon_builtin): Change accordingly.
837 * arm.h (enum arm_builtins): Move to ...
838 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
840 * arm.c (arm_builtin_decl): Declare.
841 (TARGET_BUILTIN_DECL): Define.
842 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
843 (arm_builtin_decls[]): New.
844 (arm_init_neon_builtins): Store builtin declarations in
846 (arm_init_tls_builtins): Likewise.
847 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
848 (arm_builtin_decl): New.
850 2011-04-18 Richard Guenther <rguenther@suse.de>
852 * tree.c (upper_bound_in_type): Build properly canonicalized
854 (lower_bound_in_type): Likewise.
856 2011-04-18 Richard Guenther <rguenther@suse.de>
858 * gimple.h (gimple_call_addr_fndecl): New function.
859 (gimple_call_fndecl): Use it.
860 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
862 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
863 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
865 2011-04-18 Richard Guenther <rguenther@suse.de>
868 * tree.c (build_string): STRING_CST is now derived from tree_typed.
870 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
873 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
874 DECL_IN_CONSTANT_POOL without RTL.
876 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
877 Ira Rosen <ira.rosen@linaro.org>
880 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
881 to match neon_vzip/vuzp/vtrn_internal.
882 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
883 outputs explicitly dependent on both inputs.
884 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
886 2011-04-18 Jakub Jelinek <jakub@redhat.com>
888 PR tree-optimization/48616
889 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
890 whether the shift is by scalar or vector based on whether all SLP
891 scalar stmts have the same rhs.
893 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
895 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
898 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
900 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
903 2011-04-17 Jan Hubicka <jh@suse.cz>
905 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
906 * cgrpahunit.c (cgraph_finalize_function): Do not set
907 finalized_by_frontend.
908 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
909 finalized_by_frontend.
911 2011-04-17 Jan Hubicka <jh@suse.cz>
913 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
914 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
915 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
916 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
918 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
920 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
922 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
925 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
926 is non-null before accessing it.
927 (input_cgraph): Remove trailing spaces.
929 2011-04-17 Revital Eres <revital.eres@linaro.org>
931 * params.def (sms-min-sc): New param flag.
932 * modulo-sched.c (sms_schedule): Use it.
933 * doc/invoke.texi (sms-min-sc): Document it.
935 2011-04-17 Jan Hubicka <jh@suse.cz>
937 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
938 present, also set gimple_call_set_cannot_inline.
939 * ipa-inline.c: Update toplevel comment.
941 (cgraph_clone_inlined_nodes): Fix linebreaks.
942 (cgraph_check_inline_limits): Restructure to ...
943 (caller_growth_limits): ... this one; be more tolerant
944 on growth in nested inline chains; add explanatory comment;
945 fix stack accounting thinko introduced by previous patch.
946 (cgraph_default_inline_p): Remove.
947 (report_inline_failed_reason): New function.
948 (can_inline_edge_p): New function.
949 (can_early_inline_edge_p): New function.
950 (leaf_node_p): Move upwards in file.
951 (want_early_inline_function_p): New function.
952 (want_inline_small_function_p): New function.
953 (want_inline_self_recursive_call_p): New function.
954 (cgraph_edge_badness): Rename to ...
955 (edge_badness) ... this one; fix linebreaks.
956 (update_edge_key): Update call of edge_baddness; add
957 detailed dump about queue updates.
958 (update_caller_keys): Use can_inline_edge_p and
959 want_inline_small_function_p.
960 (cgraph_decide_recursive_inlining): Rename to...
961 (recursive_inlining): Use can_inline_edge_p and
962 want_inline_self_recursive_call_p; simplify and remove no longer
964 (cgraph_set_inline_failed): Remove.
965 (add_new_edges_to_heap): Use can_inline_edge_p and
966 want_inline_small_function_p.
967 (cgraph_decide_inlining_of_small_functions): Rename to ...
968 (inline_small_functions): ... this one; cleanup; use
969 can/want predicates; cleanup debug ouput; work edges till fibheap
970 is exhausted and do not stop once unit growth is reached; remove
971 later loop processing remaining edges.
972 (cgraph_flatten): Rename to ...
973 (flatten_function): ... this one; use can_inline_edge_p
974 and can_early_inline_edge_p predicates.
975 (cgraph_decide_inlining): Rename to ...
976 (ipa_inline): ... this one; remove unreachable nodes before
977 inlining functions called once; simplify the pass.
978 (cgraph_perform_always_inlining): Rename to ...
979 (inline_always_inline_functions): ... this one; use
980 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
981 (cgraph_decide_inlining_incrementally): Rename to ...
982 (early_inline_small_functions): ... this one; simplify
983 using new predicates; cleanup; make dumps prettier.
984 (cgraph_early_inlining): Rename to ...
985 (early_inliner): newer inline regular functions into always-inlines;
986 fix updating of call stmt summaries.
987 (pass_early_inline): Update for new names.
988 (inline_transform): Fix formating.
989 (gate_cgraph_decide_inlining): Rename to ...
990 (pass_ipa_inline): ... this one.
991 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
992 * ipa-inline-analysis.c (dump_inline_summary): Update.
993 (compute_inline_parameters): Do not compute disregard_inline_limits;
994 look for mismatching arguments.
995 (estimate_growth): Fix handlig of non-trivial self recursion.
996 (inline_read_summary): Do not read info->disregard_inline_limits.
997 (inline_write_summary): Do not write info->disregard_inline_limits.
998 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
999 and move all checks into can_inline_edge_p predicate; re-enable code
1000 comparing optimization levels.
1001 (expand_call_inline): Do not test inline_forbidden_into_p.
1002 * Makefile.in (ipa-inline.o): Update arguments.
1004 2011-04-17 Revital Eres <revital.eres@linaro.org>
1006 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1008 2011-04-17 Revital Eres <revital.eres@linaro.org>
1010 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1012 2011-04-17 Michael Matz <matz@suse.de>
1014 PR tree-optimization/48622
1016 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1017 in same order as they're written.
1019 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1021 * config/pa/predicates.md: Reorganize and simplify predicates.
1022 Eliminate duplicate code checks.
1023 (arith_operand): Rename to arith14_operand
1024 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1025 * config/pa/pa.md: Use renamed operands.
1026 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1027 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1028 arith11_operand, adddi3_operand, indexed_memory_operand,
1029 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1030 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1031 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1032 move_dest_operand, move_src_operand, prefetch_cc_operand,
1033 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1034 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1035 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1036 div_operand, int5_operand, movb_comparison_operator,
1037 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1038 arith_double_operand, ireg_operand, lhs_lshift_operand,
1039 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1040 integer_store_memory_operand): Likewise.
1041 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1042 (integer_store_memory_operand, read_only_operand,
1043 function_label_operand, borx_reg_operand,
1044 non_hard_reg_operand): Likewise.
1045 (eq_neq_comparison_operator): Delete unused operator.
1046 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1047 function_label_operand.
1048 (emit_move_sequence): Likewise.
1050 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1052 * config/i386/sse.md (sseunpackmode): New mode attribute.
1053 (ssepackmode): Ditto.
1054 (vec_pack_trunc_<mode>): Macroize expander from
1055 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1056 (vec_unpacks_lo_<mode>): Macroize expander from
1057 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1058 (vec_unpacks_hi_<mode>): Macroize expander from
1059 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1060 (vec_unpacku_lo_<mode>): Macroize expander from
1061 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1062 (vec_unpacku_hi_<mode>): Macroize expander from
1063 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1064 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1065 ix86_expand_sse4_unpack.
1066 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1068 2011-04-16 Jan Hubicka <jh@suse.cz>
1070 * cgraphbuild.c: Include ipa-inline.h.
1071 (reset_inline_failed): Use initialize_inline_failed.
1072 * cgraph.c: Include ipa-inline.h.
1073 (cgraph_create_node_1): Do not initialize estimated_growth.
1074 (initialize_inline_failed): More to ipa-inline-analysis.c
1075 (dump_cgraph_node): Do not dump inline flags.
1076 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1077 and disregard_inline_limits flags.
1078 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1079 time, size, estimated_growth.
1080 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1082 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1083 DECL_DISREGARD_INLINE_LIMITS.
1084 (cgraph_analyze_function): Do not initialize
1085 node->local.disregard_inline_limits.
1086 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1087 inlinable, versionable and disregard_inline_limits.
1088 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1089 cgraph_check_inline_limits, cgraph_default_inline_p,
1090 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1091 add_new_edges_to_heap): Update.
1092 (cgraph_decide_inlining_of_small_function): Update; set
1093 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1094 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1095 cgraph_decide_inlining_incrementally): Update.
1096 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1097 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1098 time, size and estimated_growth parameters.
1099 (estimate_edge_growth): Update.
1100 (initialize_inline_failed): Declare.
1101 * ipa-split.c: Include ipa-inline.h
1102 (execute_split_functions): Update.
1103 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1104 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1105 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1106 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1107 estimated_growth to INT_MIN.
1108 (inline_node_duplication_hook): Likewise.
1109 (dump_inline_summary): Dump new fields.
1110 (compute_inline_parameters): Update.
1111 (estimate_edge_time, estimate_time_after_inlining,
1112 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1113 inline_write_summary):
1114 (initialize_inline_failed): Move here from cgraph.c.
1115 * tree-sra.c: Include ipa-inline.h.
1116 (ipa_sra_preliminary_function_checks): Update.
1117 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1120 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1122 * config/i386/sse.md (V16): New mode iterator.
1124 (AVXMODEQI, AVXMODEDI): Remove.
1125 (sse2, sse3): New mode attribute.
1126 (mov<mode>): Use V16 mode iterator.
1127 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1128 (push<mode>1): Use V16 mode iterator.
1129 (movmisalign<mode>): Ditto.
1130 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1131 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1132 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1133 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1134 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1135 avx_movdqu<avxmodesuffix>.
1136 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1137 *avx_movdqu<avxmodesuffix>.
1138 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1139 avx_lddqu<avxmodesuffix>.
1140 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1141 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1142 avx_movnt<AVXMODEDI:mode>.
1143 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1144 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1146 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1149 * haifa-sched.c (prune_ready_list, schedule_block): Use
1150 sched_pressure_p rather than flag_sched_pressure.
1152 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1154 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1155 cgraph_get_node instead of cgraph_get_create_node.
1157 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1159 * cfgexpand.c (expand_debug_expr): Use
1160 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1162 2011-04-15 Michael Matz <matz@suse.de>
1164 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1165 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1166 * function.c (gimplify_parameters): Ditto.
1167 * gimplify.c (gimplify_vla_decl): Ditto.
1169 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1170 (gimple_call_set_alloca_for_var): New inline function.
1171 (gimple_call_alloca_for_var_p): Ditto.
1172 * gimple.c (gimple_build_call_from_tree): Remember
1173 CALL_ALLOCA_FOR_VAR_P state.
1174 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1176 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1177 calls if they were for VLA objects.
1179 2011-04-15 Martin Jambor <mjambor@suse.cz>
1181 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1184 2011-04-15 Martin Jambor <mjambor@suse.cz>
1187 * tree-emutls.c (lower_emutls_function_body): Call
1188 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1191 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1193 * c-decl.c (detect_field_duplicates): Call
1194 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1196 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1198 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1199 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1200 * ipa-pure-const.c (check_stmt): Call it.
1201 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1203 2011-04-15 Richard Guenther <rguenther@suse.de>
1205 PR tree-optimization/48290
1206 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1207 Properly decide inhibiting propagation based on the valueized
1208 operand. Do loop-closed SSA form preserving here ...
1209 (init_copy_prop): ... not here.
1211 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1214 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1215 (*ieee_smax<mode>3): Likewise.
1217 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1219 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1220 Replace match_operand with match_dup for the third operand in
1223 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1225 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1226 to track processing of conditionals. Update all callers.
1227 (try_combine, simplify_if_then_else): Update.
1229 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1231 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1234 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1236 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1237 instead of match_operand for operand 3.
1239 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1241 * recog.h (insn_operand_data): Add an "allows_mem" field.
1242 * genoutput.c (output_operand_data): Initialize it.
1243 * optabs.c (maybe_legitimize_operand_same_code): New function.
1244 (maybe_legitimize_operand): Use it when matching the original
1247 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1249 * gimplify.c: Fix issues in comments throughout.
1250 (voidify_wrapper_expr): Fix long line.
1251 (build_stack_save_restore): Likewise.
1252 (gimplify_loop_expr): Likewise.
1253 (gimplify_compound_lval): Likewise.
1254 (gimplify_init_ctor_eval): Likewise.
1255 (gimplify_modify_expr_rhs): Likewise.
1256 (omp_notice_threadprivate_variable): Likewise.
1258 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1260 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1261 original one if this is not a builtin function.
1263 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1266 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1267 offset it as needed based on top 2 bits in operands[3], change
1268 MEM mode to SFmode and mask those 2 bits away from operands[3].
1270 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1272 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1273 change from objc_declare_protocols() to objc_declare_protocol().
1275 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1277 * config/i386/sse.md (sse4_1): New mode attribute.
1278 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1279 avx_blend<ssemodesuffix><avxmodesuffix> and
1280 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1281 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1282 avx_blendv<ssemodesuffix><avxmodesuffix> and
1283 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1284 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1285 avx_dp<ssemodesuffix><avxmodesuffix> and
1286 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1287 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1288 (sse4_1_packusdw): Merge with *avx_packusdw.
1289 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1290 (sse4_1_pblendw): Merge with *avx_pblendw.
1291 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1292 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1293 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1295 (sse4_1_round<ssescalarmodesuffix>): Merge with
1296 *avx_round<ssescalarmodesuffix>.
1297 (aesenc): Merge with *avx_aesenc.
1298 (aesenclast): Merge with *avx_aesenclast.
1299 (aesdec): Merge with *avx_aesdec.
1300 (aesdeclast): Merge with *avx_aesdeclast.
1301 (pclmulqdq): Merge with *pclmulqdq.
1302 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1304 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1306 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1309 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1310 (align_local_variable): This. Update DECL_ALIGN.
1311 (add_stack_var): Updated.
1312 (expand_one_stack_var): Likewise.
1314 2011-04-14 Richard Guenther <rguenther@suse.de>
1316 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1318 (dse_initialize_block_local_data, dse_leave_block,
1319 record_voperand_set, get_stmt_uid): Likewise.
1320 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1321 (dse_optimize_stmt): Remove voperand set handling code.
1322 Simplify and improve to handle any kind of killing stmt.
1323 (dse_record_phi): Remove.
1324 (dse_enter_block): Simplify.
1325 (tree_ssa_dse): Likewise.
1326 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1328 2011-04-14 Jan Hubicka <jh@suse.cz>
1330 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1331 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1332 (cgraph_local_info): Remove inline_summary.
1333 * ipa-cp.c: Include ipa-inline.h.
1334 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1335 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1337 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1338 (input_overwrite_node): Do not set inline summary.
1339 (input_node): Do not stream inline summary.
1340 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1341 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1342 growth; we do not have inline parameters computed for that anyway.
1343 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1344 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1345 (inline_summary_t): New type and VECtor.
1346 (debug_inline_summary, dump_inline_summaries): Declare.
1347 (inline_summary): Use VOCtor.
1348 (estimate_edge_growth): Kill hack computing call stmt size directly.
1349 * lto-section-in.c (lto_section_name): Add inline section.
1350 * ipa-inline-analysis.c: Include lto-streamer.h
1351 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1352 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1353 (inline_summary_vec): Define.
1354 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1355 dump_inline_summaries): New functions.
1356 (estimate_function_body_sizes): Properly compute size/time of outgoing
1358 (compute_inline_parameters): Alloc inline_summary; do not compute
1359 size/time of incomming calls.
1360 (estimate_edge_time): Avoid missing time summary hack.
1361 (inline_read_summary): Read inline summary info.
1362 (inline_write_summary): Write inline summary info.
1363 (inline_free_summary): Free all hooks and inline summary vector.
1364 * lto-streamer.h: Add LTO_section_inline_summary section.
1365 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1366 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1368 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1370 * tree-vectorizer.h (vect_strided_store_supported): Add a
1371 HOST_WIDE_INT argument.
1372 (vect_strided_load_supported): Likewise.
1373 (vect_permute_store_chain): Return void.
1374 (vect_transform_strided_load): Likewise.
1375 (vect_permute_load_chain): Delete.
1376 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1377 count argument. Check that the count is a power of two.
1378 (vect_strided_load_supported): Likewise.
1379 (vect_permute_store_chain): Return void. Update after above changes.
1380 Assert that the access is supported.
1381 (vect_permute_load_chain): Likewise.
1382 (vect_transform_strided_load): Return void.
1383 * tree-vect-stmts.c (vectorizable_store): Update calls after
1384 above interface changes.
1385 (vectorizable_load): Likewise.
1386 (vect_analyze_stmt): Don't check for strided powers of two here.
1388 2011-04-14 Richard Guenther <rguenther@suse.de>
1390 PR tree-optimization/48590
1391 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1392 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1393 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1394 BUILT_IN_STACK_SAVE.
1395 * tree-ssa-dce.c (propagate_necessity): Handle
1396 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1398 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1400 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1403 2011-04-14 Richard Guenther <rguenther@suse.de>
1405 * tree.h (get_object_alignment_1): Declare.
1406 * builtins.c (get_object_alignment_1): Split out worker from ...
1407 (get_object_alignment): ... here.
1408 * fold-const.c (get_pointer_modulus_and_residue): Use
1409 get_object_alignment_1.
1411 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1413 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1415 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1416 parameter. Generalise code to handle arrays as well as vectors.
1417 (vect_setup_realignment): Update accordingly.
1418 * tree-vect-stmts.c (vectorizable_store): Likewise.
1419 (vectorizable_load): Likewise.
1421 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1423 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1424 within the per-copy loop.
1426 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1428 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1431 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1433 * doc/options.texi (Negative): Explicitly mention that the
1434 Negative chain must be circular.
1436 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1438 * function.h (block_chainon): Declare.
1439 * function.c (block_chainon): Define.
1441 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1442 Eric Weddington <eric.weddington@atmel.com>
1443 Georg-Johann Lay <avr@gjlay.de>
1445 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1447 (avr_init_builtins, avr_expand_builtin,
1448 avr_expand_delay_cycles, avr_expand_unop_builtin,
1449 avr_expand_binop_builtin ): New functions.
1450 (avr_builtin_id): New enum
1451 (struct avr_builtin_description): New struct
1452 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1453 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1455 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1456 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1457 UNSPECV_DELAY_CYCLES): new enumeration values
1458 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1459 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1460 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1461 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1462 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1463 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1464 "fmulsu"): New insns
1466 * config/avr/avr-c.c: fix line endings
1467 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1468 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1469 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1470 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1471 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1473 * doc/extend.texi (AVR Built-in Functions): New node
1474 (Target Builtins): Add documentation of AVR
1477 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1480 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1481 alone. Error if non-const data has attribute progmem.
1483 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1485 * tree.h (struct tree_constructor): Include tree_typed instead of
1487 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1488 TS_TYPED instead of TS_COMMON.
1490 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1492 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1493 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1494 (sse2_psadbw): Merge with *avx_psadbw.
1495 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1496 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1497 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1498 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1499 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1500 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1501 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1502 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1503 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1504 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1505 (ssse3_palignrti): Merge with *avx_palignrti.
1507 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1509 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1510 * tree-ssanames.c (fini_ssanames): VEC_free it.
1511 (make_ssa_name_fn): Update for VECness of free_ssanames.
1512 (release_ssa_name, release_dead_ssa_names): Likewise.
1513 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1515 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1516 TS_TYPED instead of TS_COMMON.
1518 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1520 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1521 statistics_counter_event.
1522 * tree-ssa-copyrename.c (stats): Define.
1523 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1524 statistics_counter_event.
1525 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1526 (bswap_stats, widen_mul_stats): Define.
1527 (insert_reciprocals): Increment rdivs_inserted.
1528 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1529 rfuncs_inserted. Add calls to statistics_counter_event.
1530 (execute_cse_sincos_1): Increment inserted.
1531 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1532 statistics_counter_event.
1533 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1534 of bswap_stats. Add calls to statistics_counter_event.
1535 (convert_mult_to_widen): Increment widen_mults_inserted.
1536 (convert_plusminus_to_widen): Increment maccs_inserted.
1537 (convert_mult_to_fma): Increment fmas_inserted.
1538 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1539 calls to statistics_counter_event.
1541 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1543 PR rtl-optimization/48455
1544 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1545 `temp_costs->mem_cost'.
1547 2011-04-13 Jan Hubicka <jh@suse.cz>
1549 * ipa-inline.h: New file.
1550 * ipa-inline-analysis.c: New file. Broken out of ...
1551 * ipa-inline.c: ... this file; update toplevel comment;
1552 include ipa-inline.h
1553 (inline_summary): Move to ipa-inline.h
1554 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1555 ipa-inline-analysis.c.
1556 (cgraph_estimate_time_after_inlining): Rename to
1557 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1558 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1559 to estimate_edge_growth.
1560 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1561 rename to estimate_size_after_inlining.
1562 (cgraph_mark_inline_edge): Update for new naming convention.
1563 (cgraph_check_inline_limits): Likewise.
1564 (cgraph_edge_badness): Likewise.
1565 (cgraph_decide_recursive_inlining): Likewise.
1566 (cgraph_decide_inlining_of_small_functions): Likewise.
1567 (cgraph_decide_inlining_incrementally): Likewise.
1568 (cgraph_estimate_growth): Rename to estimate_growth; move to
1569 ipa-inline-analysis.c.
1570 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1571 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1572 (compute_inline_parameters): Likewise.
1573 (compute_inline_parameters_for_current): Likewise.
1574 (pass_inline_parameters): Likewise.
1575 (inline_indirect_intraprocedural_analysis): Likewise.
1576 (analyze_function): Rename to inline_analyze_function; likewise.
1577 (add_new_function): Move to ipa-inline-analysis.c.
1578 (inline_generate_summary): Likewise.
1579 (inline_read_summary): Likewise.
1580 (inline_write_summary): Likewise.
1581 * Makefile.in (ipa-inline-analysis.c): New file.
1583 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1586 * configure: Regenerate.
1588 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1590 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1591 instead of tree_common.
1592 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1594 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1595 TS_TYPED rather than TS_COMMON.
1596 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1598 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1601 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1602 r20 around calls of __tablejump_elpm__
1604 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1607 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1609 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1611 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1613 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1614 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1615 (cfi_vec): New typedef.
1616 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1617 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1618 (cie_cfi_vec): New static variable.
1619 (cie_cfi_head): Delete.
1620 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1621 declaration changed. Use vector rather than list operations.
1622 (new_cfi): Don't initialize the dw_cfi_next field.
1623 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1624 rather than list operations.
1625 (lookup_cfa): Use vector rather than list operations.
1626 (output_cfis): New argument upto. Accept a cfi_vec rather than
1627 a dw_cfi_ref list head as argument. All callers changed.
1628 Iterate over the vector using upto as a maximum index.
1629 (output_all_cfis): New static function.
1630 (output_fde): Use vector rather than list operations. Use the
1631 new upto argument for output_cfis rather than manipulating a
1633 (dwarf2out_begin_prologue): Change initializations to match
1635 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1636 from the vector length rather than searching for the end of a list.
1637 Use output_all_cfis.
1638 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1640 2011-04-13 Nick Clifton <nickc@redhat.com>
1642 * config/rx/rx.md (movmemsi): Do not use this pattern when
1643 volatile pointers are involved.
1645 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1647 * config/i386/sse.md (pinsrbits): Remove.
1648 (sse2_packsswb): Merge with *avx_packsswb.
1649 (sse2_packssdw): Merge with *avx_packssdw.
1650 (sse2_packuswb): Merge with *avx_packuswb.
1651 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1652 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1653 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1654 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1655 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1656 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1657 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1658 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1659 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1660 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1661 (sse2_loadld): Merge with *avx_loadld.
1662 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1663 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1664 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1665 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1666 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1668 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1670 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1672 * print-tree.c (print_node): Likewise.
1673 * tree-inline.c (copy_tree_r): Likewise.
1674 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1675 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1676 instead of TS_COMMON.
1677 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1678 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1679 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1680 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1681 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1683 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1685 (TREE_CHAIN): Check for a TS_COMMON structure.
1686 (TREE_TYPE): Check for a TS_TYPED structure.
1688 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1690 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1691 cgraph_get_create_node instead of cgraph_node.
1693 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1695 * c-parser.c (c_parser_initelt): Updated call to
1696 objc_build_message_expr.
1697 (c_parser_postfix_expression): Likewise.
1699 2011-04-12 Kai Tietz <ktietz@redhat.com>
1701 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1702 MASK_MS_BITFIELD_LAYOUT bit.
1704 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1706 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1707 assert it is always true.
1708 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1711 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1713 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1714 compiling Objective-C to be more efficient.
1716 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1718 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1721 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1723 * recog.h, genoutput.c, optabs.c: Revert last patch.
1725 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1728 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1730 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1732 * recog.h (insn_operand_data): Add an "allows_mem" field.
1733 * genoutput.c (output_operand_data): Initialize it.
1734 * optabs.c (maybe_legitimize_operand_same_code): New function.
1735 (maybe_legitimize_operand): Use it when matching the original
1738 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1740 * genpreds.c (process_define_predicate): Move most processing
1741 to gensupport.c. Continue to validate the expression.
1742 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1743 (process_define_predicate): Move processing to gensupport.c.
1744 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1745 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1746 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1748 (valid_predicate_name_p): New function, split out from old
1749 genpreds.c:process_define_predicate.
1750 (process_define_predicate): New function, combining code from
1751 old genpreds.c and genrecog.c functions.
1752 (process_rtx): Call it for DEFINE_PREDICATE and
1753 DEFINE_SPECIAL_PREDICATE.
1755 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1757 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1758 size of a '%A' memory reference.
1759 (T_DREG, T_QREG): New neon_builtin_type_bits.
1760 (arm_init_neon_builtins): Assert that the load and store operands
1761 are neon_struct_operands.
1762 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1763 (NEON_ARG_MEMORY): New builtin_arg.
1764 (neon_dereference_pointer): New function.
1765 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1766 Handle NEON_ARG_MEMORY.
1767 (arm_expand_neon_builtin): Update after above interface changes.
1768 Use NEON_ARG_MEMORY for loads and stores.
1769 * config/arm/predicates.md (neon_struct_operand): New predicate.
1770 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1771 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1772 (V_four_elem): Tweak formatting.
1773 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1774 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1775 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1776 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1777 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1778 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1779 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1780 Use %A in the output template.
1781 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1782 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1783 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1784 the width of the memory access. Remove post-increment.
1785 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1787 2011-04-12 Nick Clifton <nickc@redhat.com>
1789 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1790 instruction for interrupt handlers if the target is the basic V850
1792 (expand_epilogue): Likewise.
1794 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1796 PR rtl-optimization/48549
1797 * combine.c (propagate_for_debug): Also stop after BB_END of
1798 this_basic_block. Process LAST and just stop processing after it.
1799 (combine_instructions): If last_combined_insn has been deleted,
1800 set last_combined_insn to its PREV_INSN.
1802 2011-04-12 Richard Guenther <rguenther@suse.de>
1804 PR tree-optimization/46076
1805 * gimple.h (struct gimple_statement_call): Add fntype field.
1806 (gimple_call_fntype): Adjust.
1807 (gimple_call_set_fntype): New function.
1808 * gimple.c (gimple_build_call_1): Set the call function type.
1809 * gimplify.c (gimplify_call_expr): Preserve the function
1810 type the frontend used for the call.
1811 (gimplify_modify_expr): Likewise.
1812 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1814 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1816 * tree-ssa.c (useless_type_conversion_p): Function pointer
1817 conversions are useless.
1819 2011-04-12 Martin Jambor <mjambor@suse.cz>
1821 * cgraph.h (cgraph_node): Remove function declaration.
1822 (cgraph_create_node): Declare.
1823 (cgraph_get_create_node): Likewise.
1824 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1825 Updated all callers.
1826 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1827 the decl does not already exist. Call cgraph_get_create_node instead
1829 (cgraph_get_create_node): New function.
1830 (cgraph_same_body_alias): Update comment.
1831 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1832 assert it does not return NULL.
1833 (cgraph_update_edges_for_call_stmt): Likewise.
1834 (cgraph_clone_edge): Likewise.
1835 (cgraph_create_virtual_clone): Likewise.
1836 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1837 instead of cgraph_node.
1838 (cgraph_add_new_function): Call cgraph_create_node or
1839 cgraph_get_create_node instead of cgraph_node.
1840 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1841 instead of cgraph_node.
1842 (record_eh_tables): Likewise.
1843 (mark_address): Likewise.
1844 (mark_load): Likewise.
1845 (build_cgraph_edges): Call cgraph_get_create_node instead
1847 (rebuild_cgraph_edges): Likewise.
1848 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1849 instead of cgraph_node.
1850 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1852 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1853 cgraph_create_node instead of cgraph_node.
1854 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1856 * lto-cgraph.c (input_node): Likewise.
1857 * lto-streamer-in.c (input_function): Likewise.
1858 * varasm.c (mark_decl_referenced): Likewise.
1859 (assemble_alias): Likewise.
1861 2011-04-12 Martin Jambor <mjambor@suse.cz>
1863 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1864 instead of cgraph_node and assert it does not return NULL.
1865 * lto-streamer-in.c (lto_read_body): Likewise.
1866 * omp-low.c (new_omp_context): Likewise.
1867 (create_task_copyfn): Likewise.
1868 * tree-emutls.c (lower_emutls_function_body): Likewise.
1869 * matrix-reorg.c (transform_allocation_sites): Likewise.
1871 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1874 * c-typeck.c (build_asm_expr): Error out on attempts to use
1875 void type outputs or inputs for constraints that allow reg or
1878 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1879 Richard Earnshaw <rearnsha@arm.com>
1882 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1883 to use sign-magnitude offsets. Reject unsupported unaligned
1884 cases. Add detailed description in comments.
1885 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1886 condition from TARGET_32BIT to TARGET_ARM.
1888 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1890 * tree.h (struct typed_tree): New.
1891 (struct tree_common): Include it instead of tree_base.
1892 (TREE_TYPE): Update for new location of type field.
1893 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1894 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1895 (union tree_node): Add typed field.
1896 * treestruct.def (TS_TYPED): New.
1897 * lto-streamer.c (check_handled_ts_structures): Handle it.
1898 * tree.c (MARK_TS_TYPED): New macro.
1899 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1901 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1903 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1904 (force_nonfallthru): Do not alter the loop nest if no basic block
1907 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1909 * config/i386/sse.md (VI): New mode iterator.
1911 (AVX256MODEI): Ditto.
1912 (AVXMODEF4P): Ditto.
1913 (avxvecpsmode): Ditto.
1914 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1915 (sse2_andnot<mode>3): New expander.
1916 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1917 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1918 (<any_logic:code><mode>3): Use VI mode iterator.
1919 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1920 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1921 (*andnottf3): Handle AVX three-operand constraints.
1922 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1924 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1925 Robert Millan <rmh@gnu.org>
1927 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1928 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1929 GNU_USER_DYNAMIC_LINKER64): Define.
1930 (REG_NAME): Don't undefine.
1931 (MD_UNWIND_SUPPORT): Undefine.
1932 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1933 (REG_NAME): Don't undefine.
1934 (MD_UNWIND_SUPPORT): Undefine.
1935 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1937 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1939 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1940 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1942 2011-04-11 Xinliang David Li <davidxl@google.com>
1944 * value-profile.c (check_ic_target): New function.
1945 (gimple_ic_transform): Sanity check indirect call target.
1946 * gimple-low.c (gimple_check_call_args): Interface change.
1947 (gimple_check_call_matching_types): New function.
1948 * tree-inline.c (tree_can_inline_p): Call new function.
1950 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1952 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1953 tree-pretty-print.h & realmpfr.h.
1955 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1958 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1959 (setup_allocno_and_important_classes): Ditto.
1961 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1963 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1964 GNU_USER_DYNAMIC_LINKER.
1965 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1967 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1968 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1969 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1970 GNU_USER_TARGET_OS_CPP_BUILTINS.
1971 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1973 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1975 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1976 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1977 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1978 GNU_USER_TARGET_OS_CPP_BUILTINS.
1979 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1980 GNU_USER_DYNAMIC_LINKER.
1981 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1982 GNU_USER_TARGET_OS_CPP_BUILTINS.
1983 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1984 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1985 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1986 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1987 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1988 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1989 GNU_USER_DYNAMIC_LINKER64): Remove.
1990 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1993 GNU_USER_DYNAMIC_LINKER.
1994 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1995 GNU_USER_TARGET_OS_CPP_BUILTINS.
1996 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1997 GNU_USER_TARGET_OS_CPP_BUILTINS.
1998 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1999 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2000 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2001 GNU_USER_TARGET_OS_CPP_BUILTINS.
2002 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2003 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2004 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2005 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2006 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2007 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2008 GNU_USER_DYNAMIC_LINKER.
2009 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2010 GNU_USER_TARGET_OS_CPP_BUILTINS.
2011 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2013 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2014 GNU_USER_DYNAMIC_LINKER.
2015 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2017 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2020 GNU_USER_DYNAMIC_LINKER.
2021 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2022 GNU_USER_DYNAMIC_LINKERN32.
2023 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2024 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2025 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2026 GNU_USER_DYNAMIC_LINKER32.
2027 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2030 GNU_USER_DYNAMIC_LINKER.
2031 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2033 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2035 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2036 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2037 GNU_USER_DYNAMIC_LINKER32.
2038 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2039 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2040 GNU_USER_DYNAMIC_LINKER.
2041 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2043 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2044 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2045 GNU_USER_DYNAMIC_LINKER64.
2046 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2047 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2048 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2049 GNU_USER_DYNAMIC_LINKER.
2050 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2052 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2053 GNU_USER_DYNAMIC_LINKER.
2054 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2056 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2057 GNU_USER_DYNAMIC_LINKER32.
2058 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2059 GNU_USER_DYNAMIC_LINKER64.
2060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2061 GNU_USER_DYNAMIC_LINKER64.
2062 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2064 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2068 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2070 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2071 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2072 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2073 GNU_USER_DYNAMIC_LINKER.
2074 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2075 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2076 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2077 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2078 GNU_USER_DYNAMIC_LINKER64.
2079 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2080 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2081 GNU_USER_LINK_EMULATION.
2082 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2083 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2084 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2085 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2086 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2087 CPP_SPEC, CC1_SPEC): Remove.
2088 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2089 (GNU_USER_DYNAMIC_LINKER): Define.
2090 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2091 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2092 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2093 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2094 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2095 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2096 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2097 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2098 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2099 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2100 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2101 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2102 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2103 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2104 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2105 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2106 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2107 GNU_USER_DYNAMIC_LINKER.
2108 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2109 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2110 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2111 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2112 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2113 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2114 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2115 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2116 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2117 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2119 2011-04-11 Kai Tietz <ktietz@redhat.com>
2123 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2124 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2126 (ix86_is_msabi_thiscall): Removed.
2127 (ix86_is_type_thiscall): Likewise.
2128 (ix86_get_callcvt): New function.
2129 (ix86_comp_type_attributes): Simplify check.
2130 (ix86_function_regparm): Use ix86_get_callcvt for calling
2131 convention attribute checks.
2132 (ix86_return_pops_args): Likewise.
2133 (ix86_static_chain): Likewise.
2134 (x86_this_parameter): Likewise.
2135 (x86_output_mi_thunk): Likewise.
2136 (ix86_function_type_abi): Optimize check for types without attributes.
2137 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2138 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2139 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2141 (IX86_BASE_CALLCVT): Helper macro.
2142 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2143 Use ix86_get_callcvt for calling convention attribute checks and avoid
2144 symbol-decoration for stdcall in TARGET_RTD case.
2145 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2147 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2150 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2152 * config/i386/sse.md (VI_128): New mode iterator.
2153 (VI12_128): Rename from SSEMODE12.
2154 (VI14_128): Rename from SSEMODE14.
2155 (VI124_128): New mode iterator.
2156 (VI24_128): Rename from SSEMODE248.
2157 (VI248_128): Rename from SSEMODE248.
2158 (SSEMODE124C8): Remove.
2159 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2160 (*sse2_<plusminus_insn><mode>3): Merge with
2161 *avx_<plusminus_insn><mode>3.
2162 (*mulv8hi3): Merge with *avx_mulv8hi3.
2163 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2164 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2165 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2166 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2167 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2168 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2169 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2170 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2171 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2172 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2173 (*<smaxmin:code>v8hi3): Ditto.
2174 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2175 (*<smaxmin:code>v16qi3): Ditto.
2176 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2177 (*sse2_eq<mode>3): Ditto.
2178 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2179 (*sse2_gt<mode>3): Ditto.
2180 (vcondv2di): Split out of vcond<mode>.
2181 (vconduv2di): Split out of vcondu<mode>.
2183 2011-04-11 Richard Guenther <rguenther@suse.de>
2185 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2186 before calling tree_low_cst.
2188 2011-04-11 Richard Guenther <rguenther@suse.de>
2190 * stor-layout.c (layout_type): Compute all array index size operations
2191 in the original type.
2192 (initialize_sizetypes): Add comment.
2193 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2195 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2197 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2199 2011-04-11 Martin Jambor <mjambor@suse.cz>
2201 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2202 of cgraph_node, handle NULL return value.
2203 (cgraph_global_info): Likewise.
2204 (cgraph_rtl_info): Likewise.
2205 * tree-inline.c (estimate_num_insns): Likewise.
2206 * gimplify.c (unshare_body): Likewise.
2207 (unvisit_body): Likewise.
2208 (gimplify_body): Likewise.
2209 * predict.c (optimize_function_for_size_p): Likewise.
2210 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2211 (call_may_clobber_ref_p_1): Likewise.
2212 * varasm.c (function_section_1): Likewise.
2213 (assemble_start_function): Likewise.
2215 2011-04-11 Martin Jambor <mjambor@suse.cz>
2217 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2219 * final.c (rest_of_clean_state): Likewise.
2220 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2221 * passes.c (pass_init_dump_file): Likewise.
2222 (execute_all_ipa_transforms): Likewise.
2223 (function_called_by_processed_nodes_p): Likewise.
2224 * predict.c (maybe_hot_frequency_p): Likewise.
2225 (probably_never_executed_bb_p): Likewise.
2226 (compute_function_frequency): Likewise.
2227 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2228 (unnest_nesting_tree_1): Likewise.
2229 (lower_nested_functions): Likewise.
2230 * tree-optimize.c (execute_fixup_cfg): Likewise.
2231 (tree_rest_of_compilation): Likewise.
2232 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2233 * tree-sra.c (ipa_early_sra): Likewise.
2234 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2235 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2236 * ipa.c (record_cdtor_fn): Likewise.
2237 * ipa-inline.c (cgraph_early_inlining): Likewise.
2238 (compute_inline_parameters_for_current): Likewise.
2239 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2240 * ipa-pure-const.c (local_pure_const): Likewise.
2241 * ipa-split.c (split_function): Likewise.
2242 (execute_split_functions): Likewise.
2243 * cgraphbuild.c (build_cgraph_edges): Likewise.
2244 (rebuild_cgraph_edges): Likewise.
2245 (cgraph_rebuild_references): Likewise.
2246 (remove_cgraph_callee_edges): Likewise.
2247 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2248 (verify_cgraph_node): Likewise.
2249 (cgraph_analyze_functions): Likewise.
2250 (cgraph_preserve_function_body_p): Likewise.
2251 (save_inline_function_body): Likewise.
2252 (save_inline_function_body): Likewise.
2253 * tree-inline.c (copy_bb): Likewise.
2254 (optimize_inline_calls): Likewise.
2256 2011-04-11 Martin Jambor <mjambor@suse.cz>
2258 PR tree-optimization/48195
2259 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2260 ipa_check_create_edge_args.
2261 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2262 ipa_check_create_edge_args.
2263 * ipa-inline.c (inline_generate_summary): Do not call
2264 ipa_check_create_node_params and ipa_check_create_edge_args.
2265 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2266 ipa_check_create_edge_args.
2268 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2270 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2272 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2273 * function.c (record_hard_reg_sets): Likewise.
2274 * ira.c (compute_regs_asm_clobbered): Likewise.
2275 * sched-deps.c (sched_analyze_1): Likewise.
2276 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2278 2011-04-09 Xinliang David Li <davidxl@google.com>
2280 PR tree-optimization/PR48484
2281 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2282 has_valid_pred lazily
2284 2011-04-09 Duncan Sands <baldrick@free.fr>
2286 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2288 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2290 * combine.c (combine_validate_cost): Adjust comments. Set registered
2291 cost of I0 to zero at the end, if any.
2293 2011-04-08 Xinliang David Li <davidxl@google.com>
2295 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2296 to insane profile data.
2298 2011-04-08 Xinliang David Li <davidxl@google.com>
2300 * ipa-cp.c (ipcp_update_profiling): Correct
2301 negative scale factor due to insane profile data.
2303 2011-04-08 Xinliang David Li <davidxl@google.com>
2305 * final.c (dump_basic_block_info): New function.
2306 (final): Dump basic block.
2307 (final_scan_insn): Remove old dump.
2309 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2312 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2315 2011-04-08 Michael Matz <matz@suse.de>
2318 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2320 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2321 * rtl.h (rebuild_jump_labels_chain): Declare.
2322 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2323 insns inserted on edges.
2325 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2327 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2328 * config/arm/arm-arches.def: New.
2329 * config/arm/arm-opts.h: New.
2330 * config/arm/genopt.sh: New.
2331 * config/arm/arm-tables.opt: New (generated).
2332 * config/arm/arm.c (arm_handle_option, arm_target_help,
2333 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2334 (all_architectures): Get most table contents from arm-arches.def.
2335 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2336 arm_selected_tune here.
2337 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2338 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2339 (march=, mcpu=, mtune=): Use Enum and Var.
2340 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2341 (arm.o): Update dependencies.
2343 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2345 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2347 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2348 (write_typed_alloc_defns): Likewise.
2349 (main): Calls write_typed_alloc_defns with output_header.
2351 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2354 * ira-color.c (setup_profitable_hard_regs): Add comments.
2355 Don't take prohibited hard regs into account.
2356 (setup_conflict_profitable_regs): Rename to
2357 get_conflict_profitable_regs.
2358 (check_hard_reg_p): Check prohibited hard regs.
2360 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2362 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2363 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2364 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2366 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2369 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2370 move from floating point to shift amount register.
2371 (emit_move_sequence): Remove secondary reload support for floating
2372 point to shift amount amount register copies.
2373 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2374 amount register copies.
2375 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2376 register, return false if mode isn't a scalar integer mode.
2377 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2379 2011-04-08 Richard Guenther <rguenther@suse.de>
2381 * gimple.c (gimple_call_flags): Remove kludge.
2383 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2385 * sel-sched.c (sel_region_init): Move call to
2386 sel_setup_region_sched_flags after setup_current_loop_nest.
2388 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2390 PR rtl-optimization/48272
2391 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2392 init_insn_reg_pressure_info. Adjust a caller.
2393 * sched-int.h (init_insn_reg_pressure_info): Declare.
2394 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2395 when sched-pressure is enabled.
2397 2011-04-08 Richard Guenther <rguenther@suse.de>
2399 * gimple.c (gimple_set_modified): Do not queue calls to
2400 MODIFIED_NORETURN_CALLS here ...
2401 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2403 2011-04-08 Richard Guenther <rguenther@suse.de>
2406 * toplev.c (lang_dependent_init): Do not open asm_out_file
2407 in WPA mode, nor perform debug machinery initialization.
2408 (finalize): Do not unlink asm_out_file in WPA mode.
2410 2011-04-08 Richard Guenther <rguenther@suse.de>
2412 * gimple.h (gimple_call_fntype): New function.
2413 (gimple_call_return_type): Use it.
2414 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2415 * gimple-low.c (gimple_check_call_args): Likewise.
2416 * gimple.c (gimple_call_flags): Likewise.
2417 (gimple_call_arg_flags): Likewise.
2418 (gimple_call_return_flags): Likewise.
2419 * tree-cfg.c (verify_gimple_call): Likewise.
2420 (do_warn_unused_result): Likewise.
2421 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2422 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2424 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2426 PR rtl-optimization/48235
2427 * sel-sched.c (code_motion_process_successors): Recompute the last
2428 insn in basic block if control flow changed.
2429 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2430 Update condition for ilist_remove.
2432 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2434 PR rtl-optimization/48302
2435 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2436 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2437 it to record added preheader blocks.
2438 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2439 on to sel_add_loop_preheaders.
2440 (sel_region_init): Move call to setup_current_loop_nest after
2443 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2446 * cfgloop.h (loop_has_exit_edges): New helper.
2447 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2449 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2450 that have no exit edges.
2452 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2454 PR rtl-optimization/48442
2455 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2456 all callers. Adjust assert.
2458 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2460 PR tree-optimization/48377
2461 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2462 is_packed to true even for types with smaller TYPE_ALIGN than
2465 2011-04-08 Richard Guenther <rguenther@suse.de>
2468 * doc/tm.texi: Re-generate.
2470 2011-04-08 Wei Guozhi <carrot@google.com>
2473 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2474 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2475 * config/arm/arm.md (*push_multi): Change the length computation to
2478 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2480 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2481 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2482 * doc/tm.texi: Regenerate.
2483 * system.h (ASM_OUTPUT_BSS): Poison.
2484 * varasm.c (asm_output_bss): Remove function.
2485 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2487 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2488 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2489 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2490 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2492 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2494 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2496 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2498 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2500 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2503 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2505 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2506 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2507 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2509 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2510 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2511 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2512 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2513 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2514 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2515 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2516 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2517 options. Don't map other m68k options manually. Don't handle
2518 old-style options as canonical.
2519 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2520 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2522 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2524 * basic-block.h (force_nonfallthru): Move to...
2525 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2526 (force_nonfallthru): ...here.
2527 * cfghooks.c (force_nonfallthru): New function.
2528 * cfgrtl.c (force_nonfallthru): Rename into...
2529 (rtl_force_nonfallthru): ...this.
2530 (commit_one_edge_insertion): Do not set AUX field.
2531 (commit_edge_insertions): Do not discover new basic blocks.
2532 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2533 (cfg_layout_rtl_cfg_hooks): Likewise.
2534 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2535 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2536 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2538 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2540 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2543 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2545 * config/i386/sse.md: Update copyright year.
2546 (avxcvtvecmode): Remove.
2547 (sse_movhlps): Merge with *avx_movhlps.
2548 (sse_movlhps): Merge with *avx_movlhps.
2549 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2550 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2551 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2552 (sse_loadhps): Merge with *avx_loadhps.
2553 (sse_storelps): Merge with *avx_storelps.
2554 (sse_loadlps): Merge with *avx_loadlps.
2555 (sse_movss): Merge with *avx_movss.
2556 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2557 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2558 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2559 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2560 (vec_set<mode>_0): Ditto.
2561 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2562 (sse4_1_insertps): Merge with *avx_insertps.
2563 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2564 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2565 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2566 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2567 (sse2_storehpd): Merge with *avx_storehpd.
2568 (sse2_loadhpd): Merge with *avx_loadhpd.
2569 (sse2_loadlpd): Merge with *avx_loadlpd.
2570 (sse2_movsd): Merge with *avx_movsd.
2571 (*vec_concatv2df): Merge with *vec_concatv2df.
2573 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2576 * combine.c (combine_instructions): Add last_combined_insn,
2577 update it if insn is after it, pass it to all try_combine calls.
2578 (try_combine): Add last_combined_insn parameter, pass it instead of
2579 i3 to propagate_for_debug.
2581 2011-04-07 Nick Clifton <nickc@redhat.com>
2583 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2584 to handle MDR <-> data register transfers.
2585 (movhi_internal): Likewise.
2587 2011-04-07 Alan Modra <amodra@gmail.com>
2589 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2590 previous stack info.
2592 2011-04-07 Tom de Vries <tom@codesourcery.com>
2595 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2596 flow_find_cross_jump. Swap variables to implement backward replacement.
2597 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2599 2011-04-07 Tom de Vries <tom@codesourcery.com>
2602 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2603 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2605 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2606 src1 or src2. Redirect edges to the last basic block. Update
2607 frequency and count on multiple basic blocks in case of fallthru.
2609 2011-04-07 Tom de Vries <tom@codesourcery.com>
2612 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2614 (old_insns_match_p): Change return type. Replace return false/true
2615 with return dir_none/dir_both. Use can_replace_by.
2616 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2617 direction from dir_p. Register replacement direction in dir, last_dir
2618 and afterlast_dir. Handle new return type of old_insns_match_p using
2619 merge_dir. Return replacement direction in dir_p.
2620 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2621 return type of old_insns_match_p.
2622 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2623 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2624 flow_find_cross_jump.
2625 * basic-block.h (enum replace_direction): New type.
2626 (flow_find_cross_jump): Add parameter to declaration.
2628 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2630 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2631 (AVXMODEDCVTPS2DQ): Ditto.
2632 (VEC_FLOAT_MODE): Ditto.
2633 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2634 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2635 (<any_logic:code><mode>3): Use VF mode iterator.
2636 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2637 Use VF mode iterator.
2638 (copysign<mode>3): Use VF mode iterator.
2639 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2640 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2641 (*<any_logic:code><MODEF:mode>3): Merge with
2642 *avx_<any_logic:code><MODEF:mode>3.
2643 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2644 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2645 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2646 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2647 (sse2_cvtdq2ps): Use %v modifier.
2648 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2649 (avx_cvtps2dq<avxmodesuffix>): Remove.
2650 (sse2_cvtps2dq): Use %v modifier.
2651 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2652 (avx_cvttps2dq<avxmodesuffix>): Remove.
2653 (sse2_cvttps2dq): Use %v modifier.
2654 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2655 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2656 (sse2_cvtsd2siq): Fix insn template.
2657 (sse2_cvtsd2siq_2): Ditto.
2658 (sse2_cvttsd2siq): Ditto.
2659 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2660 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2662 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2664 * gcov-io.c: Use GCC Runtime Library Exception.
2666 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2669 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2670 as base_reg whatever register reg has been eliminated to, instead
2671 of hardcoding STACK_POINTER_REGNUM.
2673 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2675 * doc/tm.texi.in: Document C target hooks as separate from general
2677 * doc/tm.texi: Regenerate.
2678 * genhooks.c (struct hook_desc): Add docname field.
2679 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2681 (hook_array): Include c-target.def.
2682 (emit_documentation): Use docname field in output.
2683 (emit_init_macros): Take docname argument. Only emit definitions
2684 for hooks matching docname.
2685 (main): Expect additional arguments in all cases. Pass argument
2686 to emit_init_macros.
2687 * target.def: Move initial macro definitions and comments to
2688 target-hooks-macros.h.
2689 (gcc_targetcm): Move to c-family/c-target.def.
2690 * target.h (targetcm): Move declaration to c-family/c-target.h.
2691 * targhooks.c (default_handle_c_option): Move to
2693 * targhooks.h (default_handle_c_option): Move declaration to
2694 c-family/c-common.h.
2695 * target-hooks-macros.h: New file.
2696 * config.gcc (target_has_targetcm): Define and use to add to
2697 c_target_objs and cxx_target_objs.
2698 * config/default-c.c: New file.
2699 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2700 of target.h and target-def.h.
2701 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2702 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2703 darwin_check_cfstring_format_arg): Make static.
2704 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2705 TARGET_STRING_OBJECT_REF_TYPE_P,
2706 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2707 * config/darwin-protos.h (darwin_objc_construct_string,
2708 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2710 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2711 TARGET_STRING_OBJECT_REF_TYPE_P,
2712 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2713 * config/t-darwin (darwin-c.o): Update dependencies.
2714 * system.h (TARGET_HAS_TARGETCM): Poison.
2715 * Makefile.in (TARGET_H): Update.
2716 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2717 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2718 (default-c.o): New target.
2719 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2720 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2721 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2723 (build/genhooks.o): Update dependencies.
2725 2011-04-06 Richard Guenther <rguenther@suse.de>
2727 * ipa-inline.c (enum inlining_mode): Remove.
2728 (cgraph_flatten): Use some other token.
2729 (cgraph_edge_early_inlinable_p): New function, split out from ...
2730 (cgraph_perform_always_inlining): New function, split out from ...
2731 (cgraph_decide_inlining_incrementally): ... here.
2732 (cgraph_mark_inline_edge): Adjust.
2733 (cgraph_early_inlining): Re-structure.
2734 (pass_early_inline): Require SSA form.
2736 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2737 Julian Brown <julian@codesourcery.com>
2738 Mark Shinwell <shinwell@codesourcery.com>
2740 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2741 LO_REGS only for Thumb-1.
2742 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2743 be used in short instructions when optimising for size on Thumb-2.
2745 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2747 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2748 associated with user returns to be preserved.
2750 2011-04-06 Tristan Gingold <gingold@adacore.com>
2752 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2753 symbol_queue_size, DBXOUT_DECR_NESTING,
2754 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2755 if XCOFF_DEBUGGING_INFO.
2757 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2759 * config/i386/i386.md (attribute isa): New.
2760 (attribute enabled): New.
2761 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2762 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2763 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2764 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2765 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2766 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2767 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2768 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2770 * config/i386/sse.md (VF): New mode iterator.
2774 (SSEMODEF4): Remove.
2775 (attribute sse): Handle V8SF and V4DF modes.
2776 (<absneg:code><mode>2): Use VF mode iterator.
2777 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2779 (<plusminus_insn><mode>3): Use VF mode iterator.
2780 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2781 Use VF mode iterator.
2782 (<sse>_vm<plusminus_insn><mode>3): Merge with
2783 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2784 (mul<mode>3): Use VF mode iterator.
2785 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2786 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2788 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2789 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2790 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2791 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2793 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2794 Use VF1 mode iterator.
2795 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2796 (sqrt<VF2:mode>2): New expander.
2797 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2798 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2799 and sqrtv2df2. Use VF mode iterator.
2800 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2802 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2803 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2804 Use VF1 mode iterator.
2805 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2806 (<smaxmin:code><mode>3): Use VF mode iterator.
2807 (*<smaxmin:code><mode>3_finite): Merge with
2808 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2809 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2810 (<sse>_vm<smaxmin:code><mode>2): Merge with
2811 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2812 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2814 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2816 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2817 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2818 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2819 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2820 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2822 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2823 Use VF_128 mode iterator.
2824 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2826 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2827 VF_128 mode iterator.
2828 (vcond<mode>): Use VF mode iterator.
2829 * config/i386/predicates.md (sse_comparison_operator): Merge with
2830 avx_comparison_float_operator. Do not declare as special_predicate.
2831 * config/i386/i386.c (struct builtin_description): Update for renamed
2833 (ix86_expand_args_builtin): Ditto.
2834 (ix86_expand_sse_compare_mask): Ditto.
2836 2011-04-06 Richard Guenther <rguenther@suse.de>
2838 * tree-inline.c (estimate_num_insns): For calls simply account
2839 for all passed arguments and a used return value.
2841 2011-04-06 Richard Guenther <rguenther@suse.de>
2843 PR tree-optimization/47663
2844 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2845 call_stmt_time fields.
2846 (cgraph_edge_inlinable_p): Declare.
2847 (cgraph_edge_recursive_p): New inline function.
2848 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2849 (cgraph_clone_edge): Copy it.
2850 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2851 Account for call stmt time.
2852 (cgraph_estimate_time_after_inlining): Take edge argument.
2853 (cgraph_estimate_edge_growth): Account call stmt size.
2854 (cgraph_estimate_size_after_inlining): Take edge argument.
2855 (cgraph_mark_inline_edge): Adjust.
2856 (cgraph_check_inline_limits): Likewise.
2857 (cgraph_recursive_inlining_p): Remove.
2858 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2859 (cgraph_decide_recursive_inlining): Take edge argument and
2861 (cgraph_decide_inlining_of_small_functions): Do not avoid
2862 diags for recursive inlining here.
2863 (cgraph_flatten): Adjust.
2864 (cgraph_decide_inlining_incrementally): Likewise.
2865 (estimate_function_body_sizes): Remove call cost handling.
2866 (compute_inline_parameters): Initialize caller edge call costs.
2867 (cgraph_estimate_edge_growth): New function.
2868 (cgraph_estimate_growth): Use it.
2869 (cgraph_edge_badness): Likewise.
2870 (cgraph_check_inline_limits): Take an edge argument.
2871 (cgraph_decide_inlining_of_small_functions): Adjust.
2872 (cgraph_decide_inlining): Likewise.
2873 * tree-inline.c (estimate_num_insns): Only account for call
2874 return value if it is used.
2875 (expand_call_inline): Avoid diagnostics on recursive inline
2877 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2878 (input_edge): Input edge call costs.
2880 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2882 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2884 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2886 * doc/invoke.texi (Spec Files): Fix typo.
2888 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2890 * profile.c (branch_prob): Move declaration of local variable. Remove
2891 obsolete ??? comment. Expand the location explicitly instead of using
2892 the LOCATION_FILE and LOCATION_LINE macros.
2894 2011-04-06 Wei Guozhi <carrot@google.com>
2897 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2898 (arm_cond_branch): Likewise.
2899 (arm_cond_branch_reversed): Likewise.
2900 (arm_jump): Likewise.
2901 (push_multi): Likewise.
2902 * config/arm/constraints.md (Py): New constraint.
2904 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2907 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2909 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2910 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2911 #ifdef DBX_DEBUGGING_INFO.
2913 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2916 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2917 if old and new states differ.
2919 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2921 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2922 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2923 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2924 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2925 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2927 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2928 ColdFire options to -mcpu= options.
2930 2011-04-05 Jeff Law <law@redhat.com>
2932 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2933 check if BB is a successor of LOOP->header and return
2934 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2936 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2938 * cprop.c (struct reg_use): Remove.
2939 (reg_use_table): Make an array of RTX.
2940 (find_used_regs, constprop_register, local_cprop_pass,
2941 bypass_block): Simplify users of reg_use_table.
2942 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2943 on one of the uses found by find_used_regs.
2945 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2948 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2951 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2953 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2955 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2957 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2960 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2962 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2964 * combine.c: Include obstack.h.
2965 (struct insn_link): Define.
2966 (uid_log_links): Adjust type.
2967 (FOR_EACH_LOG_LINK): New macro.
2968 (insn_link_obstack): Declare.
2969 (alloc_insn_link): Define.
2970 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2971 type of link variables.
2972 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2973 (try_combine, record_promoted_values, distribute_notes): Likewise.
2974 (distribute_links): Likewise. Tweak prototype.
2975 (clear_log_links): Delete.
2976 (adjust_for_new_dest): Call alloc_insn_link.
2977 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2979 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2981 * gcse.c (modify_mem_list): Convert to an array of VECs.
2982 (canon_modify_mem_list, compute_transp): Tweak formatting.
2983 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2984 (load_killed_in_block_p): Likewise.
2985 (record_last_mem_set_info): Likewise.
2986 (clear_modify_mem_tables): Likewise.
2988 2011-04-05 Tom de Vries <tom@codesourcery.com>
2991 * function.c (emit_use_return_register_into_block): Only define if
2994 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2996 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2998 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3000 * config/rx/rx-opts.h: New.
3001 * config/rx/rx.c (rx_cpu_type): Remove.
3002 (rx_handle_option): Don't assert that global structures are in
3003 use. Access variables via opts pointer. Defer most handling of
3004 OPT_mint_register_. Use error_at.
3005 (rx_option_override): Handle deferred OPT_mint_register_ here.
3006 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3007 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3008 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3009 (rx_cpu_types): New Enum and EnumValue entries.
3010 (mint-register=): Use Defer and use Var accordingly.
3012 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3014 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3015 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3016 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3018 (debug_free_queue, debug_nesting, symbol_queue_index):
3020 * dbxout.c: ...to here. Make static.
3022 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3024 * gcse.c (modify_pair): Define. Define a VEC of it.
3025 (canon_modify_mem_list): Convert to an array of VECs.
3026 (free_insn_expr_list_list): Delete.
3027 (clear_modify_mem_tables): Call VEC_free instead.
3028 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3029 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3030 (canon_list_insert, compute_transp): Likewise.
3032 2011-04-05 Tom de Vries <tom@codesourcery.com>
3035 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3038 2011-04-05 Tom de Vries <tom@codesourcery.com>
3041 * function.c (emit_use_return_register_into_block): New function.
3042 (thread_prologue_and_epilogue_insns): Use
3043 emit_use_return_register_into_block.
3045 2011-04-05 Tom de Vries <tom@codesourcery.com>
3048 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3051 2011-04-05 Tom de Vries <tom@codesourcery.com>
3053 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3055 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3057 * config/arm/arm.md (define_constants for unspec): Replace with
3059 (define_constants for unspecv): Replace with define_c_enum.
3060 * config/arm/neon.md (define_constants for unspec): Replace with
3063 2011-04-04 Richard Henderson <rth@redhat.com>
3066 * dwarf2out.c (output_line_info): Always emit line info from
3067 at least one section.
3068 (dwarf2out_init): Create text_section_line_info here ...
3069 (set_cur_line_info_table): ... not here.
3071 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3074 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3077 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3079 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3081 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3082 (expr_equiv_p): Remove.
3083 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3084 (hash_scan_set): Update call to insert_set_in_table.
3085 (dump_hash_table): Dump <dest, src> pair.
3086 (lookup_set): Simplify. Lookup <dest, src> pair.
3087 (compute_transp): Remove, fold heavily simplified code into...
3088 (compute_local_properties): ...here. Expect COMP and TRANSP
3090 (find_avail_set): Take set directly from struct expr.
3091 (find_bypass-set): Likewise.
3092 (bypass_block): Likewise.
3093 (cprop_insn): Likewise. Remove redundant INSN_P test.
3095 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3096 checks on form of COND from find_implicit_sets to here.
3097 (find_implicit_sets): Cleanup control flow. Split critical edges
3098 if it exposes implicit sets. Allocate/resize implicit_sets as
3100 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3101 changed something. Run df_analyze after find_implicit_sets if any
3102 edges were split. Do not allocate implicit_sets here.
3104 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3105 (gcse_obstack): Renamed to cprop_obstack.
3106 (GNEW, GNEWVEC, GNEWVAR): Remove.
3108 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3109 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3110 (gcse_alloc): Likewise, and rename to cprop_alloc.
3111 (alloc_gcse_men, free_gcse_mem): Remove.
3112 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3113 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3114 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3116 * cprop.c (oprs_not_set_p): Remove.
3117 (mark_set, mark_clobber): Remove.
3118 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3119 (reg_not_set_p): New function.
3120 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3121 (cprop_insn): Likewise.
3122 (cprop_jump): Use FOR_EACH_EDGE.
3124 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3127 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3128 (rank_for_schedule): Use scheduled_insns vector instead of
3129 last_scheduled_insn.
3130 (ok_for_early_queue_removal): Likewise.
3131 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3133 (choose_ready): Likewise.
3134 (commit_schedule): Use VEC_iterate.
3135 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3136 a dbg_cnt, use it and ensure the first insn is in the ready list.
3137 (haifa_sched_init): Allocate scheduled_insns.
3138 (sched_extend_ready_list): Don't allocate it; reserve space.
3139 (haifa_sched_finish): Free it.
3141 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3143 * optc-gen.awk: Always remove type from Variable entry before
3144 recording in var_seen.
3146 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3148 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3149 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3150 call to tidy_fallthru_edges.
3152 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3154 * doc/options.texi (ToLower): Document.
3155 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3156 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3157 * opts.h (cl_option): Add cl_tolower field.
3158 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3159 arguments with lowercase strings.
3160 * config/rx/rx.opt (mcpu=): Add ToLower.
3161 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3164 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3166 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3168 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3170 * config/vax/vax.c: Include reload.h.
3172 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3174 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3175 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3176 (sparc_preferred_reload_class): New function.
3178 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3181 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3182 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3184 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3186 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3187 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3189 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3191 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3192 (ASM_OUTPUT_ALIGNED_BSS): Define.
3194 2011-04-03 Michael Matz <matz@suse.de>
3196 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3197 and next_slot members.
3198 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3199 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3200 (lto_streamer_cache_append): Declare.
3201 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3202 unsigned index, remove offset parameter, ensure that we append
3203 or update existing entries.
3204 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3205 parameter, update next_slot for append.
3206 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3208 (lto_streamer_cache_insert_at): Likewise.
3209 (lto_streamer_cache_append): New function.
3210 (lto_streamer_cache_lookup): Use unsigned index.
3211 (lto_streamer_cache_get): Likewise.
3212 (lto_record_common_node): Don't test tree_node_can_be_shared.
3213 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3214 (lto_streamer_cache_delete): Don't free offsets member.
3215 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3216 (lto_output_string_with_length): Use lto_output_data_stream.
3217 (lto_output_tree_header): Remove ix parameter, don't write it.
3218 (lto_output_builtin_tree): Likewise.
3219 (lto_write_tree): Adjust callers to above, don't track and write
3220 offset, write unsigned index.
3221 (output_unreferenced_globals): Don't emit all global vars.
3222 (write_global_references): Use unsigned indices.
3223 (lto_output_decl_state_refs): Likewise.
3224 (write_symbol): Likewise.
3225 * lto-streamer-in.c (lto_input_chain): Move earlier.
3226 (input_function): Use unsigned index.
3227 (input_alias_pairs): Don't read and then ignore all global vars.
3228 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3229 don't pass it back, use lto_streamer_cache_append.
3230 (lto_register_var_decl_in_symtab): Use unsigned index.
3231 (lto_register_function_decl_in_symtab): Likewise.
3232 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3234 (lto_get_builtin_tree): Don't read index, use
3235 lto_streamer_cache_append.
3236 (lto_read_tree): Adjust call to lto_materialize_tree.
3238 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3239 don't use function calls in arguments to MIN.
3241 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3244 * gimple.c (gimple_type_leader_entry): Mark deletable.
3246 2011-04-03 Alan Modra <amodra@gmail.com>
3248 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3250 2011-04-03 Michael Matz <matz@suse.de>
3252 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3254 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3256 2011-04-03 Michael Matz <matz@suse.de>
3258 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3259 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3260 without function context.
3261 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3262 current_function_decl and cfun.
3264 2011-04-03 Michael Matz <matz@suse.de>
3266 * tree.c (decl_init_priority_insert): Don't create entry for
3268 (decl_fini_priority_insert): Ditto.
3269 (fields_compatible_p, find_compatible_field): Remove.
3270 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3271 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3273 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3275 * combine.c (try_combine): Remove useless local variable.
3277 2011-04-03 Richard Guenther <rguenther@suse.de>
3278 Ira Rosen <ira.rosen@linaro.org>
3280 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3281 non-variable offsets and compare the remaining bases of the two
3282 accesses instead of looking for exact same data-ref.
3284 2011-04-02 Kai Tietz <ktietz@redhat.com>
3287 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3289 * i386.c (ix86_is_msabi_thiscall): New helper function.
3290 (ix86_is_type_thiscall): New helper function.
3291 (ix86_comp_type_attributes): Handle thiscall for method-functions
3293 (init_cumulative_args): Likewise.
3294 (find_drap_reg): Likewise.
3295 (ix86_static_chain): Likewise.
3296 (x86_this_parameter): Likewise.
3297 (x86_output_mi_thunk): Likewise.
3299 2011-04-01 Olivier Hainque <hainque@adacore.com>
3300 Nicolas Setton <setton@adacore.com>
3301 Eric Botcazou <ebotcazou@adacore.com>
3303 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3304 (add_gnat_descriptive_type_attribute): New function.
3305 (gen_array_type_die): Call it.
3306 (gen_enumeration_type_die): Likewise.
3307 (gen_struct_or_union_type_die): Likewise.
3308 (modified_type_die): Likewise.
3309 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3310 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3311 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3313 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3316 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3317 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3320 2011-03-17 Richard Guenther <rguenther@suse.de>
3323 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3324 origin for decls in other ltrans units.
3325 (input_varpool_node): Likewise.
3327 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3330 * expr.c (expand_assignment): Handle all possibilities
3331 if TO_RTX is CONCAT.
3332 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3333 (store_split_bit_field): If SUBREG_REG (op0) or
3334 op0 itself has smaller mode than word, return it
3335 for offset 0 and const0_rtx for out-of-bounds stores.
3336 If word is const0_rtx, skip it.
3338 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3340 * config/h8300/h8300.c (print_operand_address): Rename to...
3341 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3342 Call h8300_print_operand and h8300_print_operand_address instead of
3343 print_operand and print_operand_address. Declare.
3344 (print_operand): Renake to...
3345 (h8300_print_operand): ...this. Make static. Adjust comments.
3346 Call h8300_print_operand instead of print_operand. Declare.
3347 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3348 (h8300_register_move_cost): Likewise.
3349 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3350 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3351 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3352 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3353 * config/h8300/h8300-protos.h (print_operand): Delete.
3354 (print_operand_address): Delete.
3356 2011-04-01 Richard Henderson <rth@redhat.com>
3359 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3360 in strict mode before dwarf4. Re-order tests to early out
3361 before switching sections.
3363 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3365 * config/h8300/constraints.md: New file.
3366 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3367 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3368 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3369 * config/h8300/predicates.md (bit_operand): Likewise.
3370 (incdec_operand): Use satisfies_constraint_M and
3371 satisfies_constraint_O. Don't use C code block.
3372 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3373 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3374 (compute_mov_length): Use satisfies_constraint_G.
3375 (fix_bit_operand): Use satisfies_constraint_U.
3376 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3377 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3378 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3379 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3380 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3381 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3382 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3383 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3384 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3385 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3386 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3387 (EXTRA_MEMORY_CONSTRAINT): Delete.
3389 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3390 Michael Meissner <meissner@linux.vnet.ibm.com>
3393 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3394 operands, as per the specifications.
3396 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3397 (vec_extract_evenv4sf): Ditto.
3398 (vec_extract_evenv8hi): Ditto.
3399 (vec_extract_evenv16qi): Ditto.
3400 (vec_extract_oddv4si): Ditto.
3402 2011-03-31 Mark Wielaard <mjw@redhat.com>
3404 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3405 high_pc attribute if the CU has no associated code. Only output
3406 DW_AT_entry_pc for CU if not generating strict dwarf and
3409 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3411 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3412 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3414 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3415 * final.c (final_start_function): Call the new function rather
3416 than using a NULL argument for dwarf2out_frame_debug.
3418 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3419 that contains the prologue.
3421 * haifa-sched.c (queue_insn): New arg REASON. All callers
3422 changed. Print it in debugging output.
3424 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3426 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3427 Split most of the code into...
3428 (begin_move_insn): ... here. New function.
3429 (ebb_sched_info): Add a pointer to it.
3430 * haifa-sched.c (scheduled_insns): New static variable.
3431 (sched_extend_ready_list): Allocate it.
3432 (schedule_block): Use it to record the order of scheduled insns.
3433 Perform RTL changes to move insns only after all scheduling
3434 decisions have been made.
3435 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3436 begin_move_insn field.
3437 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3438 * sched-int.h (struct haifa_sched_info): Remove second argument
3439 from begin_schedule_ready hook. Add new member begin_move_insn.
3440 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3441 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3443 * haifa-sched.c (prune_ready_list): New function, broken out of
3445 (schedule_block): Use it.
3447 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3449 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3451 2011-04-01 Kai Tietz <ktietz@redhat.com>
3453 * config.gcc (*-*-mingw*): Allow as option the
3454 posix threading model.
3455 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3456 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3458 (CPP_SPEC): Add pthread/no-pthread handling.
3459 (LIB_SPEC): Likewise.
3460 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3461 (LIB_SPEC): Likewise.
3462 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3463 flag to pass -pthread option for shared libgcc build.
3464 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3465 for shared libgcc build.
3466 * config/i386/t-mingw-pthread: New file.
3467 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3468 New define to enable use of library pthread by default.
3469 * config/i386/mingw.opt (pthread): New driver option.
3470 (no-pthread): New driver option.
3471 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3472 * config/i386/mingw-w64.opt: Likewise.
3474 2011-04-01 Gary Funck <gary@intrepid.com>
3476 * c-decl.c (grokdeclarator): Fix formatting.
3478 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3480 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3481 instead of n_operands.
3482 (set_storage_via_setmem): Likewise.
3483 * optabs.c (maybe_gen_insn): Likewise.
3484 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3485 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3486 (mips_expand_builtin_direct): Likewise.
3487 * config/spu/spu.c (expand_builtin_args): Likewise.
3489 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3491 * recog.h (insn_data_d): Add n_generator_args.
3492 * genoutput.c (data): Likewise.
3493 (output_insn_data): Print it.
3494 (max_opno, num_dups): Delete.
3495 (scan_operands): Just fill in "d->operand[...]".
3496 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3498 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3500 * gensupport.h (pattern_stats): New structure.
3501 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3502 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3503 (max_operand_1, max_operand_vec): Delete.
3504 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3506 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3508 * emit-rtl.c (emit_pattern_after_setloc): New function.
3509 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3510 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3511 (emit_pattern_after): New function.
3512 (emit_insn_after, emit_jump_insn_after): Call it.
3513 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3514 (emit_pattern_before_setloc): New function.
3515 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3516 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3518 (emit_pattern_before): New function.
3519 (emit_insn_before, emit_jump_insn_before): Call it.
3520 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3522 2011-03-31 Richard Henderson <rth@redhat.com>
3524 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3525 (dw_separate_line_info_entry): Remove.
3526 (enum dw_line_info_opcode): New.
3527 (dw_line_info_entry): Use it.
3528 (dw_line_info_table, dw_line_info_table_p): New.
3529 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3530 (line_info_table, line_info_label_num): Remove.
3531 (line_info_table_in_use): Remove.
3532 (separate_line_info_table): Remove.
3533 (separate_line_info_table_allocated): Remove.
3534 (separate_line_info_table_in_use): Remove.
3535 (LINE_INFO_TABLE_INCREMENT): Remove.
3536 (line_info_label_num): New.
3537 (cur_line_info_table): New.
3538 (text_section_line_info, cold_text_section_line_info): New.
3539 (separate_line_info): New.
3540 (SEPARATE_LINE_CODE_LABEL): Remove.
3541 (print_dwarf_line_table): Remove.
3542 (debug_dwarf): Don't dump it.
3543 (output_one_line_info_table): New.
3544 (output_line_info): Use it.
3545 (new_line_info_table): New.
3546 (set_cur_line_info_table): New.
3547 (dwarf2out_switch_text_section): Use it.
3548 (dwarf2out_begin_function): Likewise.
3549 (push_dw_line_info_entry): New.
3550 (dwarf2out_source_line): Rewrite for new line info tables.
3551 (dwarf2out_init): Remove dead initailizations.
3553 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3555 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3557 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3558 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3559 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3560 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3561 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3562 * opt-functions.awk (flag_init, switch_bit_fields): New.
3563 (switch_flags): Don't handle flags moved to bit-fields. Don't
3564 generate CL_MISSING_OK or CL_SAVE.
3565 * optc-gen.awk: Update to generate bit-field output as well as
3567 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3568 bit-field instead of CL_REJECT_DRIVER flag.
3569 * opts-common.c (generate_canonical_option,
3570 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3571 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3572 instead of CL_REJECT_NEGATIVE flag.
3573 * toplev.c (print_switch_values): Use cl_report bit-field instead
3576 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3578 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3579 a zero minimum index only if it is redundant.
3581 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3583 PR rtl-optimization/48381
3584 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3585 instead of ira_class_hard_reg_index for calculating conflicting
3588 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3590 * cprop.c: Clean up hash table building.
3591 (reg_avail_info): Remove.
3592 (oprs_available_p): Remove.
3593 (record_last_reg_set_info): Remove.
3594 (record_last_set_info): Remove.
3595 (reg_available_p): New function.
3596 (gcse_constant_p): Do not treat unfolded conditions as constants.
3597 (make_set_regs_unavailable): New function.
3598 (hash_scan_set): Simplify with new reg_available_p.
3599 (compute_hash_table_work): Traverse insns stream only once.
3600 Do not compute reg_avail_info. Traverse insns in reverse order.
3601 Record implicit sets after recording explicit sets from the block.
3603 2011-03-31 Michael Matz <matz@suse.de>
3605 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3607 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3609 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3610 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3611 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3612 (h8300_mode_dependent_address_p): New function.
3613 (h8300_get_index): Make static.
3615 2011-03-31 Jeff Law <law@redhat.com>
3617 * reload1.c (elimination_effects): Fix typo in recent change.
3619 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3620 typo potentially leading to null pointer dereference.
3622 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3623 (setup_save_areas): Corresponding changes to avoid useless
3626 * jump.c (reversed_comparison_code_parts): Avoid successive return
3627 statements when REVERSE_CONDITION is defined.
3629 * expr.c (expand_assignment): Avoid useless assignments.
3630 (expand_expr_real_1): Likewise.
3631 (expand_expr_real_2): Avoid useless statements.
3633 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3635 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3637 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3640 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3642 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3645 * doc/tm.texi.in (TARGET_VERSION): Remove.
3646 * doc/tm.texi: Regenerate.
3647 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3648 * collect2.c (main): Don't use TARGET_VERSION.
3649 * mips-tdump.c (main): Don't use TARGET_VERSION.
3650 * mips-tfile.c (main): Don't use TARGET_VERSION.
3651 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3652 * config/rs6000/vxworksae.h: Remove.
3653 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3654 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3655 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3656 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3657 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3658 * config/arm/arm.h (TARGET_VERSION): Remove.
3659 * config/arm/coff.h (TARGET_VERSION): Remove.
3660 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3661 * config/arm/elf.h (TARGET_VERSION): Remove.
3662 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3663 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3664 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3665 * config/arm/pe.h (TARGET_VERSION): Remove.
3666 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3667 * config/arm/semi.h (TARGET_VERSION): Remove.
3668 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3669 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3670 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3671 * config/avr/avr.h (TARGET_VERSION): Remove.
3672 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3673 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3674 * config/frv/frv.h (TARGET_VERSION): Remove.
3675 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3676 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3677 * config/i386/darwin.h (TARGET_VERSION): Remove.
3678 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3679 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3680 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3681 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3682 * config/i386/gnu.h (TARGET_VERSION): Remove.
3683 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3684 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3685 * config/i386/linux.h (TARGET_VERSION): Remove.
3686 * config/i386/linux64.h (TARGET_VERSION): Remove.
3687 * config/i386/lynx.h (TARGET_VERSION): Remove.
3688 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3689 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3690 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3691 * config/i386/netware.h (TARGET_VERSION): Remove.
3692 * config/i386/nto.h (TARGET_VERSION): Remove.
3693 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3694 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3695 * config/ia64/elf.h (TARGET_VERSION): Remove.
3696 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3697 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3698 * config/ia64/linux.h (TARGET_VERSION): Remove.
3699 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3700 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3701 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3702 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3703 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3704 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3705 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3706 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3707 * config/m68k/linux.h (TARGET_VERSION): Remove.
3708 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3709 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3710 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3711 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3712 * config/mep/mep.h (TARGET_VERSION): Remove.
3713 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3714 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3715 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3716 * config/mips/linux.h (TARGET_VERSION): Remove.
3717 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3718 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3719 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3720 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3721 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3722 * config/pa/pa.h (TARGET_VERSION): Remove.
3723 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3724 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3725 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3726 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3727 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3728 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3729 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3730 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3731 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3732 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3733 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3734 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3735 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3736 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3737 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3738 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3739 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3740 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3741 * config/s390/linux.h (TARGET_VERSION): Remove.
3742 * config/s390/s390.h (TARGET_VERSION): Remove.
3743 * config/s390/tpf.h (TARGET_VERSION): Remove.
3744 * config/score/score.h (TARGET_VERSION): Remove.
3745 * config/sh/linux.h (TARGET_VERSION): Remove.
3746 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3747 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3748 * config/sh/sh.h (TARGET_VERSION): Remove.
3749 * config/sh/sh64.h (TARGET_VERSION): Remove.
3750 * config/sh/superh.h (TARGET_VERSION): Remove.
3751 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3752 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3753 * config/sparc/linux.h (TARGET_VERSION): Remove.
3754 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3755 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3756 TARGET_NAME32, TARGET_NAME): Remove.
3757 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3758 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3759 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3760 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3761 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3762 * config/spu/spu.h (TARGET_VERSION): Remove.
3763 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3764 * config/v850/v850.h (TARGET_VERSION): Remove.
3765 * config/vax/linux.h (TARGET_VERSION): Remove.
3766 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3767 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3768 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3770 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3773 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3774 frame-related from frame-unrelated adjustments to the stack pointer.
3776 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3778 * common.opt (fdebug-types-section): Move earlier.
3779 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3781 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3783 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3786 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3788 * tree.h (CASE_CHAIN): Define.
3789 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3790 (gimple_redirect_edge_and_branch): Likewise.
3792 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3795 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3798 2011-03-30 Jeff Law <law@redhat.com>
3800 * PR bootstrap/48371
3801 * reload1.c (reload): Fix botch in last change.
3803 * reload.h (struct reload): Fix typo introduced in last change.
3805 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3807 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3808 Undocumented. Remove help text.
3809 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3812 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3814 * doc/options.texi (NegativeAlias): Document.
3815 (Alias): Mention NegativeAlias.
3816 * opt-functions.awk: Handle NegativeAlias.
3817 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3818 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3819 * opts.h (CL_NEGATIVE_ALIAS): Define.
3820 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3821 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3823 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3825 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3826 mno-spe and mno-isel instead of mspe=no and -misel=no.
3828 2011-03-29 Mark Wielaard <mjw@redhat.com>
3830 * common.opt (fdebug-types-section): New flag.
3831 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3832 * dwarf2out.c (use_debug_types): New define.
3833 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3834 (print_die): Guard output of type unit signatures using
3836 (build_abbrev_table): Replace assert of dwarf_version >= 4
3837 with assert on use_debug_types.
3838 (size_of_die): Likewise.
3839 (unmark_dies): Likewise.
3840 (value_format): Decide AT_ref_external form on use_debug_types.
3841 (output_die): Replace dwarf_version version check guard with
3842 use_debug_types where appropriate.
3843 (modified_type_die): Likewise.
3844 (gen_reference_type_die): Likewise.
3845 (dwarf2out_start_source_file): Likewise.
3846 (dwarf2out_end_source_file): Likewise.
3847 (prune_unused_types_walk_attribs): Likewise.
3848 (dwarf2out_finish): Likewise.
3850 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3852 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3854 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3856 PR rtl-optimization/48332
3857 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3858 mode of input operand N and modeN to its actual mode.
3860 2011-03-30 Jeff Law <law@redhat.com>
3862 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3863 define accessor macro.
3864 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3865 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3866 (reg_equiv_init): Likewise.
3867 (reg_equivs_size): New variable.
3868 (reg_equiv_init_size): Remove.
3869 (allocate_initial_values): Move prototype to here from....
3870 * integrate.h (allocate_initial_values): Remove prototype.
3871 * integrate.c: Include reload.h.
3872 (allocate_initial_values): Corresponding changes.
3873 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3874 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3875 (update_equiv_regs): Corresponding changes.
3876 (ira): Corresponding changes.
3877 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3878 (push_secondary_reload): Corresponding changes.
3879 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3880 (make_memloc, find_reloads_address): Corresponding changes.
3881 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3882 (find_reloads_address_1): Corresponding changes.
3883 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3884 (refers_to_regno_for_reload_p): Corresponding changes.
3885 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3886 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3887 * reload1.c: Include ggc.h.
3888 (grow_reg_equivs): New function.
3889 (replace_pseudos_in, reload): Corresponding changes.
3890 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3891 (eliminate_regs_1, elimination_effects): Corresponding changes.
3892 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3893 (delete_output_reload): Likewise.
3894 * caller-save.c (mark_referenced_regs): Corresponding changes.
3895 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3896 * frv/predicates.md (frv_load_operand): Corresponding changes.
3897 * microblaze/microblaze.c (double_memory_operand): Corresponding
3899 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3900 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3901 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3902 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3903 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3905 * pa/pa.c (emit_move_sequence): Corresponding changes.
3906 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3908 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3911 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3912 structure modes. Don't check neon_vector_mem_operand for
3913 vector or structure modes.
3915 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3916 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3919 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3920 operand 1 and reshuffle the operands to match.
3921 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3923 2011-03-30 Christian Schüler <cschueler@gmx.de>
3926 * config/c.opt (F): Added 'Driver' to -F option.
3929 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3931 * config/darwin.opt: Added '-arch' option.
3933 2011-03-30 Nick Clifton <nickc@redhat.com>
3935 * config/rx/rx.md: Add peepholes and patterns to combine
3936 extending loads and simple arithmetic instructions.
3937 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3938 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3939 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3940 modes to use pre-decrement and post-increment addressing.
3941 (rx_is_restricted_memory_address): Add range checking of REG+INT
3943 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3944 (rx_memory_move_cost): Adjust cost of stores.
3945 (rx_adjust_insn_length): New function.
3947 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3950 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3951 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3952 matching arg00/arg01 types.
3954 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3956 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3957 last_location to UNKNOWN_LOCATION.
3959 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3962 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3965 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3966 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3969 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3971 (sparc_cpu): Likewise.
3972 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3975 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3979 PR rtl-optimization/48345
3980 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3981 hard regs for given mode from profitable regs when doing secondary
3984 2011-03-29 Jeff Law <law@redhat.com>
3987 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3988 do_not_duplicate field.
3989 (lookup_redirection_data): Corresponding changes.
3990 (create_duplicates): Always create a template block.
3991 (redirect_edges): Remove code which reused the original block
3992 when it was going to become unreachable code.
3993 (thread_block): Don't set do_not_duplicate field.
3995 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3997 * lto-opts.c (register_user_option_p, lto_register_user_option):
3998 Make type argument unsigned.
3999 * lto-streamer.h (lto_register_user_option): Make type argument
4001 * opth-gen.awk: Make CL_* macros unsigned.
4002 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4003 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4004 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4005 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4006 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4007 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4008 (find_opt): Make lang_mask argument unsigned.
4010 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4012 PR rtl-optimization/48331
4013 PR rtl-optimization/48334
4014 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4015 for any used algorithm.
4017 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4019 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4022 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4024 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4025 (alpha_option_override): Don't set alpha_sr_alias_set.
4026 (emit_frame_store_1): Use gen_frame_mem rather than calling
4028 (alpha_expand_epilogue): Ditto.
4030 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4032 PR tree-optimization/48290
4033 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4034 vectorization, check that relevant phis in the basic block after
4035 the inner loop are really inner loop's exit phis.
4037 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4040 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4041 (cached_dw_loc_list_def): New structure.
4042 (cached_dw_loc_list): New typedef.
4043 (cached_dw_loc_list_table): New variable.
4044 (cached_dw_loc_list_table_hash): New function.
4045 (cached_dw_loc_list_table_eq): Likewise.
4046 (add_location_or_const_value_attribute): Take a bool cache_p.
4047 Cache the list when the parameter is true.
4048 (gen_formal_parameter_die): Update caller.
4049 (gen_variable_die): Likewise.
4050 (dwarf2out_finish): Likewise.
4051 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4052 while generating debug info for the decl.
4053 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4054 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4055 (resolve_addr): Cache the result of resolving a chain of
4058 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4060 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4061 conflict object hard regset nodes have intersecting hard reg sets.
4063 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4064 after regstat_init_n_sets_and_refs.
4066 * ira.c: Add more comments at the top.
4067 (setup_stack_reg_pressure_class, setup_pressure_classes):
4068 Add comments how we compute the register pressure classes.
4069 (setup_allocno_and_important_classes): Add more comments.
4070 (setup_class_translate_array, reorder_important_classes)
4071 (setup_reg_class_relations): Add comments.
4073 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4076 * ira-color.c: Add 2011 to the Copyright line.
4077 (assign_hard_reg): Add more comments.
4078 (improve_allocation): Ditto.
4080 * ira-costs.c: Add 2011 to the Copyright line.
4081 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4083 (setup_regno_cost_classes_by_mode): Ditto.
4085 Initial patches from ira-improv branch:
4087 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4089 * ira-build.c (ira_create_object): Remove initialization of
4090 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4091 (ira_create_allocno): Remove initialization of
4092 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4093 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4094 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4095 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4096 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4097 Initialize ALLOCNO_ADD_DATA.
4098 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4099 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4101 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4102 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4104 * ira.c (ira_reallocate): Remove.
4105 (setup_pressure_classes): Call
4106 ira_init_register_move_cost_if_necessary. Use
4107 ira_register_move_cost instead of ira_get_register_move_cost.
4108 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4109 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4111 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4112 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4113 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4114 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4115 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4116 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4118 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4119 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4120 (struct allocno_color_data): New.
4121 (allocno_color_data_t): New typedef.
4122 (allocno_color_data): New definition.
4123 (ALLOCNO_COLOR_DATA): New macro.
4124 (struct object_color_data): New.
4125 (object_color_data_t): New typedef.
4126 (object_color_data): New definition.
4127 (OBJECT_COLOR_DATA): New macro.
4128 (update_copy_costs, calculate_allocno_spill_cost): Call
4129 ira_init_register_move_cost_if_necessary. Use
4130 ira_register_move_cost instead of ira_get_register_move_cost.
4131 (move_spill_restore, update_curr_costs): Ditto.
4132 (allocno_spill_priority): Make it inline.
4133 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4134 (struct coalesce_data, coalesce_data_t): New.
4135 (allocno_coalesce_data): New definition.
4136 (ALLOCNO_COALESCE_DATA): New macro.
4137 (merge_allocnos, coalesced_allocno_conflict_p): Use
4138 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4139 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4140 (coalesce_allocnos): Ditto.
4141 (setup_coalesced_allocno_costs_and_nums): Ditto.
4142 (collect_spilled_coalesced_allocnos): Ditto.
4143 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4144 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4145 (coalesce_spill_slots): Ditto.
4146 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4147 free allocno_coalesce_data.
4149 * ira-conflicts.c: Fix formatting.
4150 (process_regs_for_copy): Call
4151 ira_init_register_move_cost_if_necessary. Use
4152 ira_register_move_cost instead of ira_get_register_move_cost.
4153 (build_object_conflicts): Optimize.
4155 * ira-costs.c (record_reg_classes): Optimize. Call
4156 ira_init_register_move_cost_if_necessary. Use
4157 ira_register_move_cost, ira_may_move_in_cost, and
4158 ira_may_move_out_cost instead of ira_get_register_move_cost and
4159 ira_get_may_move_cost.
4160 (record_address_regs): Ditto.
4161 (scan_one_insn): Optimize.
4162 (find_costs_and_classes): Optimize.
4163 (process_bb_node_for_hard_reg_moves): Call
4164 ira_init_register_move_cost_if_necessary. Use
4165 ira_register_move_cost instead of ira_get_register_move_cost.
4167 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4168 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4169 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4170 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4172 (ira_initiate_emit_data, ira_finish_emit_data)
4173 (create_new_allocno): New functions.
4174 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4175 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4176 Use ira_register_move_cost instead of ira_get_register_move_cost.
4178 * ira-int.h: Fix some comments.
4179 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4180 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4181 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4182 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4184 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4185 bitfield after mode. Make hard_regno a short int. Make
4186 hard_regno short. Remove first_coalesced_allocno and
4187 next_coalesced_allocno. Move mem_optimized_dest_p,
4188 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4189 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4190 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4191 temp, colorable_p. Add new member add_data.
4192 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4193 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4194 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4195 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4196 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4197 (ALLOCNO_ADD_DATA): New macro.
4198 (ira_emit_data_t): New typedef.
4199 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4200 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4201 from struct ira_allocno.
4202 (ALLOCNO_EMIT_DATA): New macro.
4203 (ira_allocno_emit_data, allocno_emit_reg): New.
4204 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4205 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4206 (OBJECT_ADD_DATA): New macro.
4207 (ira_reallocate): Remove.
4208 (ira_initiate_emit_data, ira_finish_emit_data): New.
4209 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4210 (ira_init_register_move_cost_if_necessary): New.
4211 (ira_object_conflict_iter_next): Merge into
4212 ira_object_conflict_iter_cond.
4213 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4215 * ira-live.c (process_single_reg_class_operands): Call
4216 ira_init_register_move_cost_if_necessary. Use
4217 ira_register_move_cost instead of ira_get_register_move_cost.
4219 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4221 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4223 * ira-costs.c: Fix formatting.
4224 (cost_classes, cost_classes_num): Remove.
4225 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4226 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4227 (cost_classes_del, cost_classes_htab): New.
4228 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4229 (initiate_regno_cost_classes, setup_cost_classes): New.
4230 (setup_regno_cost_classes_by_aclass): New.
4231 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4232 (record_reg_classes): Use regno_cost_classes instead of
4233 cost_classes. Move checking opposite operand up.
4234 (record_address_regs): Use regno_cost_classes
4235 instead of cost_classes.
4236 (scan_one_insn): Ditto. Use always general register.
4237 (print_allocno_costs): Use regno_cost_classes instead of
4239 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4240 (find_costs_and_classes): Set up cost classes for each registers.
4241 Use also their mode for this. Use regno_cost_classes instead of
4243 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4245 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4246 (ira_costs, ira_set_pseudo_classes): Call
4247 initiate_regno_cost_classes and finish_regno_cost_classes.
4249 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4251 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4253 * target.def (ira_cover_classes): Remove.
4255 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4257 * doc/tm.texi.in: Ditto.
4259 * ira-conflicts.c: Remove mentioning cover classes from the file.
4260 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4261 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4263 * targhooks.c (default_ira_cover_classes): Remove.
4265 * targhooks.h (default_ira_cover_classes): Ditto.
4267 * haifa-sched.c: Remove mentioning cover classes from the file.
4268 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4269 ira_pressure_classes and ira_pressure_classes_num instead of
4270 ira_reg_class_cover_size and ira_reg_class_cover. Use
4271 sched_regno_pressure_class instead of sched_regno_cover_class.
4272 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4273 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4275 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4276 classes from the file.
4277 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4278 (struct object_hard_regs, struct object_hard_regs_node): New.
4279 (struct ira_object): New members profitable_hard_regs,
4280 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4281 (struct ira_allocno): Rename cover_class to aclass. Rename
4282 cover_class_cost and updated_cover_class_cost to class_cost and
4283 updated_class_cost. Remove splay_removed_p and
4284 left_conflict_size. Add new members colorable_p.
4285 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4286 (ALLOCNO_COLORABLE_P): New macro.
4287 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4288 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4289 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4290 (OBJECT_...): Rename parameter C to O.
4291 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4292 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4293 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4294 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4295 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4296 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4297 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4298 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4299 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4300 x_ira_reg_class_subunion.
4301 (ira_max_memory_move_cost, ira_max_register_move_cost)
4302 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4303 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4304 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4305 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4306 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4307 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4308 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4309 (ira_tune_allocno_costs_and_cover_classes): Rename to
4310 ira_tune_allocno_costs.
4311 (ira_debug_hard_regs_forest): New.
4312 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4313 (ira_object_conflict_iter_next): Fix comments.
4314 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4315 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4316 cover_class to aclass.
4317 (ira_allocate_and_accumulate_costs): Ditto.
4318 (ira_allocate_and_set_or_copy_costs): Ditto.
4320 * opts.c (decode_options): Remove ira_cover_class check.
4322 * ira-color.c: Remove mentioning cover classes from the file. Use
4323 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4324 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4325 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4326 (splay-tree.h): Remove include.
4327 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4328 before copy_freq_compare_func.
4329 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4330 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4332 (hard_regs_roots, hard_regs_node_vec): Ditto.
4333 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4334 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4335 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4336 (create_new_object_hard_regs_node): Ditto.
4337 (add_new_object_hard_regs_node_to_forest): Ditto.
4338 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4339 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4341 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4342 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4343 (remove_unused_object_hard_regs_nodes): Ditto.
4344 (enumerate_object_hard_regs_nodes): Ditto.
4345 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4346 (object_hard_regs_subnode_t): Ditto.
4347 (struct object_hard_regs_subnode): Ditto.
4348 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4349 (setup_object_hard_regs_subnode_index): Ditto.
4350 (get_object_hard_regs_subnodes_num): Ditto.
4351 (form_object_hard_regs_nodes_forest): Ditto.
4352 (finish_object_hard_regs_nodes_tree): Ditto.
4353 (finish_object_hard_regs_nodes_forest): Ditto.
4354 (allocnos_have_intersected_live_ranges_p): Rename to
4355 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4356 (pseudos_have_intersected_live_ranges_p): Rename to
4357 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4358 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4359 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4360 (update_copy_costs): Remove assert. Skip cost update if the hard
4361 reg does not belong the class.
4362 (assign_hard_reg): Process only profitable hard regs.
4363 (uncolorable_allocnos_num): Make it scalar.
4364 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4365 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4366 and ira_reg_class_max_nregs.
4367 (bucket_allocno_compare_func): Check frequency first.
4368 (sort_bucket): Add compare function as a parameter.
4369 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4370 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4371 (push_allocno_to_stack): Rewrite for checking new allocno
4373 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4374 (push_only_colorable): Pass new parameter to sort_bucket.
4375 (push_allocno_to_spill): Remove.
4376 (allocno_spill_priority_compare): Make it inline and rewrite.
4377 (splay_tree_allocate, splay_tree_free): Remove.
4378 (allocno_spill_sort_compare): New function.
4379 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4380 build and use splay tree. Choose first allocno in uncolorable
4381 allocno bucket to spill. Remove setting spill cost.
4382 (all_conflicting_hard_regs): Remove.
4383 (setup_allocno_available_regs_num): Check only profitable hard
4384 regs. Print info about hard regs nodes.
4385 (setup_allocno_left_conflicts_size): Remove.
4386 (put_allocno_into_bucket): Don't call
4387 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4388 (improve_allocation): New.
4389 (color_allocnos): Call setup_profitable_hard_regs,
4390 form_object_hard_regs_nodes_forest, improve_allocation,
4391 finish_object_hard_regs_nodes_forest. Setup spill cost.
4392 (print_loop_title): Use pressure classes.
4393 (color_allocnso): Ditto.
4394 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4395 and allocnos_for_spilling.
4396 (ira_sort_regnos_for_alter_reg): Don't setup members
4397 {first,next}_coalesced_allocno.
4398 (color): Remove allocating and freeing removed_splay_allocno_vec.
4399 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4400 prohibited_class_mode_regs.
4402 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4404 (update_allocno_pressure_excess_length): Use pressure classes.
4405 (inc_register_pressure, dec_register_pressure): Check for pressure
4407 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4408 pressure class. Use ira_reg_class_nregs instead of
4409 ira_reg_class_max_nregs.
4410 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4411 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4412 (single_reg_class): Use ira_reg_class_nregs instead of
4413 ira_reg_class_max_nregs.
4414 (process_bb_node_lives): Use pressure classes.
4416 * ira-emit.c: Remove mentioning cover classes from the file. Use
4417 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4418 (change_loop): Use pressure classes.
4419 (modify_move_list): Call ira_set_allocno_class instead of
4420 ira_set_allocno_cover_class.
4422 * ira-build.c: Remove mentioning cover classes from the file. Use
4423 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4424 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4425 ALLOCNO_UPDATED_CLASS_COST instead of
4426 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4427 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4428 (ira_create_allocno): Remove initialization of
4429 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4430 ALLOCNO_COLORABLE_P.
4431 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4432 Update conflict regs for the objects.
4433 (create_cap_allocno): Remove assert. Don't propagate
4434 ALLOCNO_AVAILABLE_REGS_NUM.
4435 (ira_free_allocno_costs): New function.
4436 (finish_allocno): Change a part of code into call of
4437 ira_free_allocno_costs.
4438 (low_pressure_loop_node_p): Use pressure classes.
4439 (object_range_compare_func): Don't compare classes.
4440 (setup_min_max_conflict_allocno_ids): Ditto.
4442 * loop-invariant.c: Remove mentioning cover classes from the file.
4443 Use ira_pressure_classes and ira_pressure_classes_num instead of
4444 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4445 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4446 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4447 Use reg_allocno_class instead of reg_cover_class.
4448 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4449 STACK_REG_COVER_CLASS.
4450 (get_regno_cover_class): Rename to get_regno_pressure_class.
4451 (move_loop_invariants): Initialize and finalize regstat.
4453 * ira.c: Remove mentioning cover classes from the file. Add
4454 comments about coloring without cover classes. Use ALLOCNO_CLASS
4455 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4456 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4457 setup_class_subset_and_memory_move_costs.
4458 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4459 (setup_cover_and_important_classes): Rename to
4460 setup_allocno_and_important_classes.
4461 (setup_class_translate_array): New.
4462 (setup_class_translate): Call it for allocno and pressure classes.
4463 (cover_class_order): Rename to allocno_class_order.
4464 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4465 of ira_class_translate.
4466 (reorder_important_classes): Set up ira_important_class_nums.
4467 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4468 (print_class_cover): Rename to print_classes. Add parameter.
4469 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4470 Print pressure classes too.
4471 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4472 setup_reg_subclasses.
4473 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4474 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4475 (setup_prohibited_class_mode_regs): Use
4476 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4477 (clarify_prohibited_class_mode_regs): New function.
4478 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4479 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4480 (ira_init_once): Initialize them.
4481 (free_register_move_costs): Process them.
4482 (ira_init): Move calls of find_reg_classes and
4483 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4484 Call clarify_prohibited_class_mode_regs.
4485 (ira_no_alloc_reg): Remove.
4486 (too_high_register_pressure_p): Use pressure classes.
4488 * sched-deps.c: Remove mentioning cover classes from the file.
4489 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4490 ira_pressure_classes and ira_pressure_classes_num instead of
4491 ira_reg_class_cover_size and ira_reg_class_cover.
4492 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4493 sched_regno_pressure_class instead of sched_regno_cover_class.
4494 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4495 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4497 * ira.h: Add 2010 to Copyright.
4498 (ira_no_alloc_reg): Remove external.
4499 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4500 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4501 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4502 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4503 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4504 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4505 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4506 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4507 x_ira_no_alloc_regs.
4508 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4509 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4510 ira_allocno_classes_num and ira_allocno_classes.
4511 (ira_class_translate): Rename to ira_allocno_class_translate.
4512 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4513 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4514 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4515 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4516 (ira_no_alloc_regs): New.
4518 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4519 classes from the file. Use ALLOCNO_CLASS instead of
4520 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4521 ALLOCNO_COVER_CLASS_COST.
4522 (regno_cover_class): Rename to regno_aclass.
4523 (record_reg_classes): Use ira_reg_class_subunion instead of
4524 ira_reg_class_union.
4525 (record_address_regs): Check overflow.
4526 (scan_one_insn): Ditto.
4527 (print_allocno_costs): Print total mem cost fore regional allocation.
4528 (print_pseudo_costs): Use REG_N_REFS.
4529 (find_costs_and_classes): Use classes intersected with them on the
4530 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4531 ira_reg_class_union. Use ira_allocno_class_translate and
4532 regno_aclass instead of ira_class_translate and regno_cover_class.
4533 Modify code for finding regno_aclass. Setup preferred classes for
4535 (setup_allocno_cover_class_and_costs): Rename to
4536 setup_allocno_class_and_costs. Use regno_aclass instead of
4537 regno_cover_class. Use ira_set_allocno_class instead of
4538 ira_set_allocno_cover_class.
4539 (init_costs, finish_costs): Use regno_aclass instead of
4541 (ira_costs): Use setup_allocno_class_and_costs instead of
4542 setup_allocno_cover_class_and_costs.
4543 (ira_tune_allocno_costs_and_cover_classes): Rename to
4544 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4545 by processing objects. Use ira_reg_class_max_nregs instead of
4546 ira_reg_class_nregs.
4548 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4550 * sched-int.h: Remove mentioning cover classes from the file.
4551 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4553 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4554 classes from the file.
4555 (struct reg_pref): Rename coverclass into allocnoclass.
4556 (reg_cover_class): Rename to reg_allocno_class.
4558 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4560 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4562 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4564 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4566 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4568 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4570 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4572 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4574 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4576 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4578 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4579 (i386_ira_cover_classes): Ditto.
4581 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4583 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4585 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4587 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4589 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4591 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4593 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4594 (mips_ira_cover_classes): Ditto.
4596 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4598 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4600 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4602 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4604 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4606 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4607 (IRA_COVER_CLASSES_VSX): Ditto.
4609 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4610 (rs6000_ira_cover_classes): Ditto.
4612 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4614 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4616 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4618 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4620 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4622 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4624 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4626 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4628 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4630 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4632 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4635 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4636 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4637 dw_fde_unlikely_section_end_label, cold_in_std_section,
4638 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4639 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4641 (output_fde): Use dw_fde_second_{begin,end} if second is
4642 true, otherwise dw_fde_{begin,end}.
4643 (output_call_frame_info): Test dw_fde_second_begin != NULL
4644 instead of dw_fde_switched_sections.
4645 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4646 fields, initialize new fields. Initialize in_std_section
4647 unconditionally from the first partition.
4648 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4649 dw_fde_second_begin is non-NULL.
4650 (dwarf2out_switch_text_section): Stop initializing removed
4651 dw_fde_struct fields, initialize new fields, initialize
4652 also dw_fde_end here. Set dw_fde_switch_cfi even when
4653 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4654 (struct var_loc_list_def): Add last_before_switch field.
4655 (arange_table, arange_table_allocated, arange_table_in_use,
4656 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4657 (size_of_aranges): Count !in_std_section and !second_in_std_section
4658 hunks in fdes, instead of looking at arange_table_in_use.
4659 (output_aranges): Add aranges_length argument, don't call
4660 size_of_aranges here. Instead of using aranges_table*
4661 emit ranges for fdes when !in_std_section resp.
4662 !second_in_std_section.
4663 (dw_loc_list): Break ranges crossing section switch.
4664 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4665 use dw_fde_second_end instead of dw_fde_end as end of last range.
4666 (gen_subprogram_die): Don't call add_arange. Use
4667 dw_fde_{begin,end} for first partition and if switched
4668 section dw_fde_second_{begin,end} for the second.
4669 (var_location_switch_text_section_1,
4670 var_location_switch_text_section): New functions.
4671 (dwarf2out_begin_function): Initialize cold_text_section even
4672 when function_section () isn't text_section.
4673 (prune_unused_types): Don't walk arange_table.
4674 (dwarf2out_finish): Don't needlessly test
4675 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4676 If info_section_emitted, call size_of_aranges and if it indicates
4677 non-empty .debug_aranges, call output_aranges with the computed
4678 size. Stop using removed dw_fde_struct fields, use
4679 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4683 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4684 create ENTRY_VALUE if incoming or address of incoming's MEM
4686 * dwarf2out.c (mem_loc_descriptor): Don't emit
4687 DW_OP_GNU_entry_value of DW_OP_fbreg.
4688 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4689 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4690 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4691 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4693 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4694 is a REG_P or MEM_P with REG_P address, compute hash directly
4695 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4696 (preserve_only_constants): Don't clear VALUES forwaring
4697 ENTRY_VALUE to some other VALUE.
4699 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4701 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4704 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4706 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4707 block before expanding the statement.
4708 (expand_gimple_stmt_1): Likewise. Set them here...
4709 (expand_gimple_stmt): ...and not here. Tidy.
4710 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4713 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4715 * Makefile.in: New rule for cprop.o.
4716 * gcse.c: Move constant/copy propagation to cprop.c.
4717 (compute_local_properties): Only handle expression tables.
4718 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4719 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4720 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4721 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4722 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4723 compute_cprop_data, find_used_regs, try_replace_reg,
4724 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4725 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4726 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4727 find_bypass_set, reg_killed_on_edge, bypass_block,
4728 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4729 execute_rtl_cprop, pass_rtl_cprop): Move to...
4730 * cprop.c: ...here. New file, constant/copy propagation for RTL
4731 moved from gcse.c to here with minor cleanups in duplicated code.
4733 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4735 * config/i386/i386.c (flag_opts): Fix a typo in
4736 -mavx256-split-unaligned-store.
4738 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4740 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4741 LIBCALL_VALUE): Remove macros.
4742 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4743 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4744 (h8300_function_value, h8300_libcall_value,
4745 h8300_function_value_regno_p): New functions.
4747 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4749 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4751 2011-03-28 Jeff Law <law@redhat.com>
4753 * tree-ssa-threadupdate.c (redirect_edges): Call
4754 create_edge_and_update_destination_phis as needed.
4755 (create_edge_and_update_destination_phis): Accept new BB argument.
4756 All callers updated.
4757 (thread_block): Do not update the profile when threading around
4758 intermediate blocks.
4759 (thread_single_edge): Likewise.
4760 (determine_bb_domination_status): If BB is not a successor of the
4761 loop header, return NONDOMINATING.
4762 (register_jump_thread): Note when we register a jump thread around
4763 an intermediate block.
4764 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4765 (thread_across_edge): Use it.
4767 2011-03-28 Tristan Gingold <gingold@adacore.com>
4769 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4770 when for_return is 2.
4772 2011-03-28 Jeff Law <law@redhat.com>
4774 * var-tracking.c (canonicalize_values_mark): Delete unused
4776 (canonicalize_values_star, set_variable_part): Likewise.
4777 (clobber_variable_part, delete_variable_part): Likewise.
4779 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4781 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4783 2011-03-28 Martin Jambor <mjambor@suse.cz>
4785 * tree-inline.c (expand_call_inline): Do not check that destination
4787 (optimize_inline_calls): Assert that destination node is analyzed.
4788 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4789 not call tree_lowering_passes.
4790 * cgraph.h (cgraph_analyze_function): Declare.
4791 * cgraphunit.c (cgraph_analyze_function): Make public.
4793 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4795 * config/sparc/sparc-opts.h: New.
4796 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4797 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4798 (sparc_option_override): Store processor_type enumeration rather
4799 than string in cpu_default. Remove name and enumeration from
4800 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4801 without using sparc_select. Use target_flags_explicit instead of
4803 * config/sparc/sparc.h (enum processor_type): Move to
4805 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4806 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4807 HeaderInclude entry.
4808 (mcpu=, mtune=): Use Var and Enum.
4809 (sparc_processor_type): New Enum and EnumValue entries.
4811 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4812 Iain Sandoe <iains@gcc.gnu.org>
4815 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4817 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4819 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4820 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4821 Insert new statements at it in lieu of STMT.
4822 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4823 * tree-vect-stmts.c (vectorizable_store): Likewise.
4824 (vectorizable_load): Likewise.
4826 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4828 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4833 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4835 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4836 unaligned 256bit load/store.
4837 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4838 (*avx_movdqu<avxmodesuffix>): Likewise.
4840 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4843 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4844 * config/pa/pa.md (iordi3): Use new predicate in expander.
4847 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4849 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4850 FUNCTION_VALUE_REGNO_P): Remove macros.
4851 * config/mips/mips-protos.h (mips_function_value): Remove.
4852 * config/mips/mips.c (mips_function_value): Rename to...
4853 (mips_function_value_1): ... this. Make static. Handle receiving
4854 the function type in 'fn_decl_or_type' argument.
4855 (mips_function_value, mips_libcall_value,
4856 mips_function_value_regno_p): New function.
4857 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4858 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4860 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4862 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4863 and -mavx256-split-unaligned-store.
4864 (ix86_option_override_internal): Split 32-byte AVX unaligned
4865 load/store by default.
4866 (ix86_avx256_split_vector_move_misalign): New.
4867 (ix86_expand_vector_move_misalign): Use it.
4869 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4870 -mavx256-split-unaligned-store.
4872 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4873 256bit load/store. Generate unaligned store on misaligned memory
4875 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4877 (*avx_movdqu<avxmodesuffix>): Likewise.
4879 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4880 -mavx256-split-unaligned-store.
4882 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4885 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4888 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4890 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4891 opno arguments with an expand_operand. Use create_input_operand.
4892 (mips_prepare_builtin_target): Delete.
4893 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4895 (mips_expand_builtin_direct): Use create_output_operand and
4896 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4897 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4898 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4900 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4902 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4904 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4906 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4908 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4909 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4910 basic blocks and call commit_edge_insertions directly.
4911 (fixup_abnormal_edges): Move from here to...
4912 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4913 on the edges and return whether some have actually been inserted.
4914 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4917 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4919 PR rtl-optimization/48144
4920 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4921 (merge_expr_data): ... here.
4922 (av_set_intersect): Rename to av_set_code_motion_filter.
4923 Update all callers. Call merge_history_vect when an expression
4924 is found in both sets.
4925 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4927 2011-03-26 Alan Modra <amodra@gmail.com>
4929 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4930 cmodel medium addresses.
4931 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4932 64-bit gpr loads and stores.
4933 (rs6000_secondary_reload_ppc64): New function.
4934 * config/rs6000/rs6000-protos.h: Declare it.
4935 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4937 2011-03-26 Alan Modra <amodra@gmail.com>
4940 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4941 GNU Go in traceback table.
4943 2011-03-25 Richard Henderson <rth@redhat.com>
4945 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4946 if there are exactly 6 operands.
4947 (set_storage_via_setmem): Similarly.
4949 2011-03-25 Kai Tietz <ktietz@redhat.com>
4951 * collect2.c (write_c_file_stat): Handle backslash
4952 as right-hand directory separator.
4953 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4954 checking just for slash.
4955 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4956 instead of checking for trailing slash.
4957 * gcc.c (record_temp_file): Use filename_cmp instead
4959 (do_spec_1): Likewise.
4960 (replace_outfile_spec_function): Likewise.
4961 (is_directory): Use filename_ncmp instead of strncmp.
4962 (print_multilib_info): Likewise.
4963 * gcov.c (find_source): Use filename_cmp instead
4965 (make_gcov_file_name): Fix order of slash/backslash
4967 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4968 (add_standard_paths): Likewise.
4969 * mips-tfile.c (saber_stop): Handle backslash.
4970 * prefix.c (update_path): Use filename_ncmp instead of
4972 * profile.c (output_location): Use filename_cmp instead
4974 * read-md.c (handle_toplevel_file): Handle backslash.
4975 * tlink.c (frob_extension): Likewise.
4976 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4978 * tree-dump.c (dequeue_and_dump): Handle backslash.
4979 * tree.c (get_file_function_name): Likewise.
4980 * gengtype.c (read_input_list): Likewise.
4981 (get_file_realbasename): Likewise.
4982 (get_output_file_with_visibility): Use filename_cmp
4985 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4987 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4990 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4992 * fold-const.c (expr_location_or): New function.
4993 (fold_truth_not_expr): Call it.
4995 2011-03-25 Jeff Law <law@redhat.com>
4997 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4999 * c-family/c-common.c (def_fn_type): Likewise.
5000 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5001 * emit-rtl.c (gen_rtvec): Likewise.
5002 * lto/lto-lang.c (def_fn_type): Likewise.
5004 2011-03-25 Richard Guenther <rguenther@suse.de>
5006 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5007 also generate copies.
5008 (fini_copy_prop): Handle constant values properly.
5010 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5012 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5013 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5014 (hash_loc_operands, compare_loc_operands): Handle
5015 DW_OP_GNU_entry_value.
5017 2011-03-25 Kai Tietz <ktietz@redhat.com>
5019 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5020 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5021 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5022 comment and use macro TARGET_64BIT_MS_ABI instead.
5023 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5024 and change default behavior for 32-bit MS_ABI.
5025 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5026 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5028 (ix86_cfun_abi): Likewise.
5029 (ix86_maybe_switch_abi): Adjust comment.
5030 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5031 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5032 instead of checking for SYSV_ABI.
5033 (ix86_nsaved_sseregs): Likewise.
5034 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5036 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5037 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5038 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5039 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5040 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5042 2011-03-25 Richard Guenther <rguenther@suse.de>
5044 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5045 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5046 (verify_gimple): Remove.
5047 * tree-cfg.c (verify_gimple_call): Merge verification
5049 (verify_gimple_phi): Merge verification from verify_stmts.
5050 (verify_gimple_label): New function.
5051 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5052 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5053 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5054 (verify_stmts): Rename to verify_gimple_in_cfg.
5055 (verify_gimple_in_cfg): New function.
5056 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5057 * tree-ssa.c (verify_ssa): Likewise.
5058 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5060 2011-03-25 Richard Guenther <rguenther@suse.de>
5062 * passes.c (init_optimization_passes): Add FRE pass after
5065 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5066 Andrew Stubbs <ams@codesourcery.com>
5068 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5070 (arm_movdi_vfp_cortexa8): New pattern.
5071 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5072 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5073 instructions when tuning for Cortex-A8. Set attribute "arch".
5074 * config/arm/arm.md: Move include arm-tune.md up a bit.
5075 (define_attr "arch"): Add "onlya8" and "nota8" values.
5076 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5078 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5082 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5084 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5085 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5086 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5087 * passes.c (init_optimization_passes): Move
5088 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5090 2011-03-25 Kai Tietz <ktietz@redhat.com>
5092 * c-typeck.c (comptypes_internal): Replace target
5093 hook call of comp_type_attributes by version in tree.c file.
5094 * gimple.c (gimple_types_compatible_p_1): Likewise.
5095 * tree-ssa.c (useless_type_conversion_p): Likewise.
5096 * tree.c (build_type_attribute_qual_variant): Likewise.
5097 (attribute_value_equal): New static helper function.
5098 (comp_type_attributes): New function.
5099 (merge_attributes): Use attribute_value_equal for comparison.
5100 (attribute_list_contained): Likewise.
5101 * tree.h (comp_type_attributes): New prototype.
5103 2011-03-25 Richard Guenther <rguenther@suse.de>
5105 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5106 of complex types at -O0.
5107 (verify_gimple_assign_binary): Likewise.
5108 (verify_gimple_assign_ternary): Likewise.
5110 2011-03-24 Mark Wielaard <mjw@redhat.com>
5112 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5113 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5115 2011-03-24 Mark Wielaard <mjw@redhat.com>
5118 * dwarf2out.c (output_abbrev_section): Only write table when
5119 abbrev_die_table_in_use > 1.
5121 2011-02-24 Richard Henderson <rth@redhat.com>
5123 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5124 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5125 (alpha_expand_unaligned_load_words): Use extql.
5126 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5127 (emit_insxl): Handle all modes for consistency.
5129 2011-02-24 Richard Henderson <rth@redhat.com>
5131 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5132 (alpha_expand_unaligned_load): Likewise.
5133 (alpha_expand_unaligned_store): Likewise.
5134 (alpha_expand_unaligned_load_words): Likewise.
5135 (alpha_expand_unaligned_store_words): Likewise.
5136 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5137 (alpha_split_lock_test_and_set_12): Likewise.
5138 (print_operand, alpha_fold_builtin_extxx): Likewise.
5139 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5140 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5141 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5142 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5143 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5144 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5145 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5146 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5147 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5148 (extwl, extll, extql): Similarly.
5149 (inswh, inslh, insqh): Similarly.
5150 (mskbl, mskwl, mskll, mskql): Similarly.
5151 (mskwh, msklh, mskqh): Similarly.
5153 2011-02-24 Richard Henderson <rth@redhat.com>
5155 * config/alpha/alpha.md (attribute isa): Add er, ner.
5156 (attribute enabled): Handle them.
5157 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5159 2011-02-24 Richard Henderson <rth@redhat.com>
5161 * config/alpha/alpha.md (attribute isa): Add vms.
5162 (attribute enabled): Handle it.
5163 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5164 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5165 (*movtf): Rename from *movtf_internal for consistency.
5166 (*movsi): Merge with *movsi_nt_vms.
5167 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5168 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5169 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5170 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5172 2011-02-24 Richard Henderson <rth@redhat.com>
5174 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5175 (extendqisi2, extendhisi2): Likewise.
5176 (extendqidi2): Simplify BWX/non-BWX expansions.
5177 (extendhidi2): Similarly.
5179 2011-02-24 Richard Henderson <rth@redhat.com>
5181 * config/alpha/alpha.md (attribute isa): New.
5182 (attribute enabled): New.
5183 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5184 (zero_extendqisi2, zero_extendqidi2): Similarly.
5185 (zero_extendhisi2, zero_extendhidi2): Similarly.
5186 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5188 2011-02-24 Richard Henderson <rth@redhat.com>
5190 * config/alpha/predicates.md (input_operand): Revert last change;
5191 update comment to mention 32-bit VMS rather than Windows.
5193 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5195 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5196 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5197 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5198 * passes.c (init_optimization_passes): Move
5199 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5201 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5203 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5205 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5207 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5210 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5213 * simplify-rtx.c (simplify_const_unary_operation): Call
5214 real_convert when changing mode class with FLOAT_EXTEND.
5216 2011-03-24 Nick Clifton <nickc@redhat.com>
5218 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5219 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5220 * config/rx/rx.c (rx_option_override): Set align_jumps,
5221 align_loops and align_labels if not set by the user.
5222 (rx_align_for_label): New function.
5223 (rx_max_skip_for_label): New function.
5224 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5225 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5226 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5227 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5228 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5230 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5232 PR rtl-optimization/48263
5233 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5234 and original commutative_p handling. Use maybe_gen_insn.
5236 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5238 * reload.c (find_reloads_subreg_address): Add address_reloaded
5239 parameter and return true there if the full address has been
5241 (find_reloads_toplev): Pass address_reloaded flag.
5242 (find_reloads_address_1): Don't use address_reloaded parameter.
5244 2011-03-24 Jeff Law <law@redhat.com>
5246 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5247 unused variable "ann".
5248 (remove_unused_locals): Likewise.
5250 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5253 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5256 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5258 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5259 for invalid symbolic addresses.
5260 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5263 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5265 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5266 the argument in calls to fold_truth_not_expr.
5268 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5270 * tree.c (record_node_allocation_statistics): New function.
5271 (make_node_stat, copy_node_stat, build_string): Call it.
5272 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5273 (build1_stat, build_omp_clause): Likewise.
5275 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5277 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5280 2011-03-24 Richard Guenther <rguenther@suse.de>
5282 PR tree-optimization/48271
5283 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5284 blocks that still exist.
5286 2011-03-24 Richard Guenther <rguenther@suse.de>
5288 PR tree-optimization/48270
5289 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5290 not free datarefs before ddrs.
5292 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5294 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5295 from the address built for a reference with variable offset.
5297 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5300 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5301 alternatives that can be handled with movq or movabsq insn.
5302 (*movdf_internal): Disable for !TARGET_64BIT.
5303 (*movdf_internal_nointeger): Ditto.
5304 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5306 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5308 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5309 (FUNCTION_ARG_ADVANCE): Likewise.
5310 * tm.texi.in: Change references to them to hook references.
5311 * tm.texi: Regenerate.
5312 * targhooks.c (default_function_arg): Eliminate check for target macro.
5313 (default_function_incoming_arg): Likewise.
5314 (default_function_arg_advance): Likewise.
5315 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5316 (function_arg_advance): Likewise.
5317 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5319 2011-03-24 Richard Guenther <rguenther@suse.de>
5322 * tree-object-size.c (addr_object_size): Do not double-account
5323 for MEM_REF offsets.
5325 2011-03-24 Diego Novillo <dnovillo@google.com>
5327 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5328 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5329 (lto_input_data_block): Move from lto-opts.c. Make extern.
5331 (lto_input_string): Rename from input_string. Make extern.
5333 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5334 output_string_with_length.
5335 Output 0 to indicate a non-NULL string. Update all callers to
5337 (lto_output_string): Rename from output_string. Make extern.
5339 (lto_output_decl_state_streams): Make extern.
5340 (lto_output_decl_state_refs): Make extern.
5341 * lto-streamer.h (lto_input_string): Declare.
5342 (lto_input_data_block): Declare.
5343 (lto_output_string): Declare.
5344 (lto_output_string_with_length): Declare.
5345 (lto_output_decl_state_streams): Declare.
5346 (lto_output_decl_state_refs): Declare.
5348 2011-03-24 Richard Guenther <rguenther@suse.de>
5350 PR tree-optimization/46562
5351 * tree.c (build_invariant_address): New function.
5352 * tree.h (build_invariant_address): Declare.
5353 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5354 a renamed function moved ...
5355 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5356 Take valueization callback parameter.
5357 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5358 * gimple-fold.h: New file.
5359 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5360 (ccp_fold, fold_const_aggregate_ref,
5361 fold_ctor_reference, fold_nonarray_ctor_reference,
5362 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5363 get_base_constructor): Move ...
5364 * gimple-fold.c: ... here.
5365 (gimple_fold_stmt_to_constant_1): New function
5366 split out from ccp_fold. Take a valueization callback parameter.
5367 Valueize all operands.
5368 (gimple_fold_stmt_to_constant): New wrapper function.
5369 (fold_const_aggregate_ref_1): New function split out from
5370 fold_const_aggregate_ref. Take a valueization callback parameter.
5371 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5372 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5373 invariant POINTER_PLUS_EXPRs to invariant form.
5374 (vn_valueize): New function.
5375 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5376 * tree-vrp.c (vrp_valueize): New function.
5377 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5378 to fold statements to constants.
5379 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5380 function declarations.
5381 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5382 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5384 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5386 * config/h8300/predicates.md (jump_address_operand): Fix register
5389 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5391 * doc/invoke.texi (max-stores-to-sink): Document.
5392 * params.h (MAX_STORES_TO_SINK): Define.
5393 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5394 if either vectorization or if-conversion is disabled.
5395 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5396 tree-vect-data-refs.c vect_equal_offsets.
5397 (dr_equal_offsets_p): New function.
5398 (find_data_references_in_bb): Remove static.
5399 * tree-data-ref.h (find_data_references_in_bb): Declare.
5400 (dr_equal_offsets_p): Likewise.
5401 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5402 (vect_drs_dependent_in_basic_block): Update calls to
5404 (vect_check_interleaving): Likewise.
5405 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5406 (cond_if_else_store_replacement): Rename to...
5407 (cond_if_else_store_replacement_1): ... this. Change arguments and
5409 (cond_if_else_store_replacement): New function.
5410 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5411 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5413 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5416 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5417 to subtract lower bound instead of GEN_INT().
5419 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5424 * doc/extend.texi (Alignment): Move section to match order in TOC.
5425 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5426 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5428 2011-03-23 Jeff Law <law@redhat.com>
5430 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5431 before removing the edge.
5433 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5434 it may have been freed by redirect_branch_edge or
5435 redirect_edge_succ_nodup.
5437 2011-03-23 Richard Guenther <rguenther@suse.de>
5439 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5440 (check_va_list_escapes): Likewise.
5441 (check_all_va_list_escapes): Likewise.
5443 2011-03-23 Richard Guenther <rguenther@suse.de>
5445 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5446 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5447 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5448 (alias.o): Likewise.
5449 (ipa-type-escape.o): Remove.
5450 (ipa-struct-reorg.o): Likewise.
5451 (GTFILES): Remove ipa-struct-reorg.c.
5452 * alias.c: Do not include ipa-type-escape.h.
5453 * tree-ssa-alias.c: Likewise.
5454 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5455 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5456 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5457 and ipa-type-escape passes.
5458 * tree-pass.h (pass_ipa_type_escape): Remove.
5459 (pass_ipa_struct_reorg): Likewise.
5460 * ipa-struct-reorg.h: Remove.
5461 * ipa-struct-reorg.c: Likewise.
5462 * ipa-type-escape.h: Likewise.
5463 * ipa-type-escape.c: Likewise.
5464 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5465 (--param struct-reorg-cold-struct-ratio): Likewise.
5466 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5467 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5468 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5470 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5472 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5473 cpu attribute value.
5474 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5475 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5476 * config/s390/s390.c (processor_flags_table): New constant array.
5477 (s390_handle_arch_option): Remove.
5478 (s390_handle_option): Remove s390_handle_arch_option invocations
5479 and OPT_mwarn_framesize_ handling.
5480 (s390_option_override): Remove s390_handle_arch_option invocation.
5481 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5483 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5484 * config/s390/s390.opt (s390_tune, s390_arch)
5485 (march=): Replace s390_arch_option enum and values with
5486 processor_type. Set variable name to s390_arch. Set
5487 initialization value.
5488 (mtune=): Replace s390_arch_option with processor_type. Set
5489 variable name to s390_tune. Set initialization value.
5491 2011-03-23 Julian Brown <julian@codesourcery.com>
5493 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5494 accesses which are not naturally aligned.
5496 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5499 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5501 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5503 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5504 parameter from "int" to "enum insn_code".
5505 (expand_operand_type): New enum.
5506 (expand_operand): New structure.
5507 (create_expand_operand): New function.
5508 (create_fixed_operand, create_output_operand): Likewise
5509 (create_input_operand, create_convert_operand_to): Likewise.
5510 (create_convert_operand_from, create_address_operand): Likewise.
5511 (create_integer_operand): Likewise.
5512 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5513 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5514 (expand_insn, expand_jump_insn): Likewise.
5515 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5516 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5517 (expand_movstr, expand_builtin___clear_cache): Likewise.
5518 (expand_builtin_lock_release): Likewise.
5519 * explow.c (allocate_dynamic_stack_space): Likewise.
5520 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5521 and use the default handling in that case.
5522 * expmed.c (check_predicate_volatile_ok): Delete.
5523 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5524 (emit_cstore): Likewise.
5525 * expr.c (emit_block_move_via_movmem): Likewise.
5526 (set_storage_via_setmem, expand_assignment): Likewise.
5527 (emit_storent_insn, try_casesi): Likewise.
5528 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5529 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5530 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5531 (expand_twoval_unop, expand_twoval_binop): Likewise.
5532 (expand_unop_direct, emit_indirect_jump): Likewise.
5533 (emit_conditional_move, vector_compare_rtx): Likewise.
5534 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5535 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5536 (expand_sync_lock_test_and_set): Likewise.
5537 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5538 (emit_unop_insn): Likewise.
5539 (expand_copysign_absneg): Change icode to an insn_code.
5540 (create_convert_operand_from_type): New function.
5541 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5542 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5543 (expand_insn, expand_jump_insn): Likewise.
5544 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5545 than const_int_operand for operand 2.
5547 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5549 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5552 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5554 * emit-rtl.c (emit_pattern_before_noloc): New function.
5555 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5556 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5557 (emit_pattern_after_noloc): New function.
5558 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5559 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5561 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5563 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5564 (__ffsDI2): Likewise.
5566 2011-03-22 Richard Henderson <rth@redhat.com>
5568 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5569 of !TARGET_ABI_OPEN_VMS.
5570 (alpha_trampoline_init, alpha_start_function): Likewise.
5571 (alpha_expand_epilogue, alpha_file_start): Likewise.
5572 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5573 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5574 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5575 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5576 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5578 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5580 * config/s390/s390-opts.h: New.
5581 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5582 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5583 s390_stack_guard): Remove.
5584 (s390_handle_arch_option): Return void. Take enum
5585 s390_arch_option value instead of string and searching array.
5586 (s390_handle_option): Don't assert that global structures are in
5587 use. Access variables via opts pointer. Use error_at. Don't use
5588 sscanf for -mstack-guard= or -mstack-size=. Update call to
5589 s390_handle_arch_option.
5590 (s390_option_override): Update call to s390_handle_arch_option.
5591 (s390_emit_prologue): Use %d format for s390_stack_size in
5592 diagnostic. Use %wd for HOST_WIDE_INT.
5593 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5594 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5595 * config/s390/s390.opt (config/s390/s390-opts.h): New
5596 HeaderInclude entry.
5597 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5598 s390_arch_flags, s390_warn_framesize): New Variable entries.
5599 (s390_arch_option): New Enum and EnumValue entries.
5600 (march=): Use Enum instead of Var.
5601 (mstack-guard=, mstack-size=): Use UInteger and Var.
5604 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5606 * config/score/score.c (score_handle_option): Don't assert that
5607 global structures are in use. Access target_flags via opts
5608 pointer. Use value of -march= option to determine target_flags
5610 * config/score/score.opt (march=): Use Enum.
5611 (score_arch): New Enum and EnumValue entries.
5613 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5615 * config/mep/mep.c (option_mtiny_specified): Remove.
5616 (mep_option_override): Move register handling for -mivc2 from
5617 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5618 instead of option_mtiny_specified.
5619 (mep_handle_option): Access target_flags via opts pointer. Don't
5620 assert that global structures are in use. Defer part of -mivc2
5621 handling and move it to mep_option_override.
5622 * config/mep/mep.opt (IVC2): New Mask entry.
5623 (mivc2): Use Var and Defer instead of Mask.
5625 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5627 * config/v850/v850-opts.h: New.
5628 * config/v850/v850.c (small_memory): Replace with
5629 small_memory_physical_max array. Make that array static const.
5630 (v850_handle_memory_option): Take integer value of argument. Take
5631 gcc_options pointer, option text and location. Return void.
5632 Update for changes to small memory structures.
5633 (v850_handle_option): Access target_flags via opts pointer. Don't
5634 assert that global structures are in use. Update calls to
5635 v850_handle_memory_option.
5636 (v850_encode_data_area): Update references to small memory settings.
5637 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5638 (enum small_memory_type): Move to v850-opts.h.
5639 * config/v850/v850.opt (config/v850/v850-opts.h): New
5640 HeaderInclude entry.
5641 (small_memory_max): New Variable entry.
5642 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5643 (mtda, mzda): Likewise.
5645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5647 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5648 pointer. Don't assert that global structures are in use.
5650 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5652 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5653 via opts pointer. Don't assert that global structures are in use.
5655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5657 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5658 (munix=93): Use Var.
5659 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5660 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5661 * config/pa/pa-opts.h: New.
5662 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5663 (pa_handle_option): Don't assert that global structures are in
5664 use. Access target_flags via opts pointer. Don't handle
5665 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5667 (pa_option_override): Handle deferred OPT_mfixed_range_.
5669 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5671 * config/mn10300/mn10300-opts.h: New.
5672 * config/mn10300/mn10300.c (mn10300_processor,
5673 mn10300_tune_string): Remove.
5674 (mn10300_handle_option): Don't assert that global structures are
5675 in use. Access mn10300_processor via opts pointer. Don't handle
5677 * config/mn10300/mn10300.h (enum processor_type): Move to
5679 (mn10300_processor): Remove.
5680 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5681 HeaderInclude entry.
5682 (mn10300_processor): New Variable entry.
5685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5687 * config/microblaze/microblaze.c: Don't include opts.h.
5688 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5689 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5690 (mno-clearbss): Use Var and Warn.
5692 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5694 * config/m32r/m32r-opts.h: New.
5695 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5696 (m32r_handle_option): Don't assert that global structures are in
5697 use. Access target_flags and m32r_cache_flush_func via opts
5698 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5699 OPT_mno_flush_trap here.
5700 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5701 include of m32r-opts.h.
5702 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5703 HeaderInclude entry.
5704 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5705 (mmodel=): Use Enum and Var.
5706 (m32r_model): New Enum and EnumValue entries.
5707 (mno-flush-trap): Use Var.
5708 (msdata=): Use Enum and Var.
5709 (m32r_sdata): New Enum and EnumValue entries.
5711 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5713 * config/m32c/m32c.c: Don't include opts.h.
5714 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5715 m32c_handle_option): Remove.
5716 (m32c_option_override): Check global_options_set.x_target_memregs
5717 instead of target_memregs_set.
5718 * config/m32c/m32c.h (target_memregs): Remove.
5719 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5724 * config/iq2000/iq2000-opts.h: New.
5725 * config/iq2000/iq2000.c: Don't include opts.h.
5726 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5727 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5728 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5729 HeaderInclude entry.
5730 (iq2000_tune): New Variable entry.
5731 (march=): Add comment. Use Enum.
5732 (iq2000_arch): New Enum and EnumValue entries.
5733 (mcpu=): Use Enum and Var.
5734 (iq2000_tune): New Enum and EnumValue entries.
5736 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5738 * config/ia64/ia64-opts.h: New.
5739 * config/ia64/ia64.c (ia64_tune): Remove.
5740 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5742 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5743 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5744 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5745 HeaderInclude entry.
5746 (ia64_tune): New Variable entry.
5747 (mfixed-range=): Use Defer and Var.
5748 (mtune=): Use Enum and Var.
5749 (ia64_tune): New Enum and EnumValue entries.
5751 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5753 * config/frv/frv-opts.h: New.
5754 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5756 (frv_cpu_type): Remove.
5757 * config/frv/frv.c: Don't include opts.h.
5758 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5759 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5760 (frv_cpu_type): New Variable entry.
5761 (frv_cpu): New Enum and EnumValue entries.
5763 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5765 * config/cris/cris.c (cris_handle_option): Access target_flags via
5766 opts pointer. Don't assert that global structures are in use.
5767 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5768 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5770 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5772 * config/bfin/bfin-opts.h: New.
5773 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5774 bfin_si_revision, bfin_workarounds): Remove.
5775 (bfin_cpus): Make static const.
5776 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5777 not bfin_lib_id_given.
5778 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5779 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5780 pointer. Use error_at. Don't assert that global structures are in use.
5781 * config/bfin/bfin.h: Include bfin-opts.h.
5782 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5783 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5784 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5785 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5790 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5791 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5792 or -msoft-float here.
5793 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5794 -msoft-float and -mhard-float.
5795 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5796 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5798 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5800 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5801 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5803 (LIBGCC_SPEC): Don't handle -msoft-float.
5804 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5806 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5808 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5809 -mfloat-abi=*, not -msoft-float and -mhard-float.
5810 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5812 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5813 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5814 mhard-float and msoft-float.
5815 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5816 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5817 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5818 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5820 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5821 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5823 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5825 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5828 2011-03-22 Richard Henderson <rth@redhat.com>
5830 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5831 TARGET_ABI_WINDOWS_NT.
5832 (alpha_output_function_end_prologue): Likewise.
5833 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5834 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5835 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5836 (trap, *movsi_nt_vms): Likewise.
5837 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5838 (*tablejump_osf_nt_internal): Remove.
5839 * config/alpha/predicates.md (input_operand): Only test Pmode.
5841 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5843 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5844 via opts pointer. Use error_at. Don't assert that global
5845 structures are in use.
5847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5849 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5850 (ix86_handle_option): Access ix86_isa_flags and
5851 ix86_isa_flags_explicit via opts pointer. Don't assert that
5852 global structures are in use.
5853 (ix86_function_specific_save, ix86_function_specific_restore):
5854 Update ix86_isa_flags_explicit field name.
5855 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5856 (ix86_isa_flags_explicit): Rename TargetSave entry to
5857 x_ix86_isa_flags_explicit.
5859 2011-03-22 Richard Henderson <rth@redhat.com>
5861 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5862 (alpha_option_override, direct_return): Likewise.
5863 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5864 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5865 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5866 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5867 (alpha_expand_epilogue, alpha_end_function): Likewise.
5868 (alpha_init_libfuncs): Likewise.
5869 (struct machine_function): Remove unicosmk members.
5870 (print_operand) ['t']: Remove.
5871 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5872 unicosmk_output_module_name, unicosmk_output_common,
5873 current_section_align, unicosmk_output_text_section_asm_op,
5874 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5875 unicosmk_section_type_flags, unicosmk_unique_section,
5876 unicosmk_asm_named_section, unicosmk_insert_attributes,
5877 unicosmk_output_align, unicosmk_defer_case_vector,
5878 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5879 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5880 unicosmk_output_ssib, unicosmk_add_call_info_word,
5881 unicosmk_extern_head, unicosmk_output_default_externs,
5882 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5883 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5884 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5885 * config/alpha/alpha-protos.h: Update.
5886 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5887 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5888 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5889 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5890 (*mulsi_se, mulvsi3): Likewise.
5891 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5892 (*divmodsi_internal, call, call_value, realign): Likewise.
5893 (moddi3, umoddi3): Likewise; remove duplicate expander.
5894 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5895 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5896 (*movdi_nofix): Remove r/U alternative.
5897 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5898 * config/alpha/constraints.md ("U"): Remove.
5899 * config/alpha/predicates.md (call_operand"): Don't test
5900 TARGET_ABI_UNICOSMK.
5902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5904 * target.def (handle_option): Take gcc_options and
5905 cl_decoded_option pointers and location_t.
5906 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5907 * doc/tm.texi: Regenerate.
5908 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5909 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5910 * lto-opts.c (lto_reissue_options): Generate option structure for
5911 targetm.handle_option call.
5912 * opts.c (target_handle_option): Update call to
5913 targetm.handle_option. Remove assertions about values now passed
5915 * targhooks.c (default_target_handle_option): New.
5916 * targhooks.h (default_target_handle_option): Declare.
5917 * config/alpha/alpha.c: Include opts.h.
5918 (alpha_handle_option): Update to new hook interface.
5919 * config/arm/arm.c: Include opts.h.
5920 (arm_handle_option): Update to new hook interface.
5921 * config/arm/t-arm (arm.o): Update dependencies.
5922 * config/bfin/bfin.c: Include opts.h.
5923 (bfin_handle_option): Update to new hook interface.
5924 * config/cris/cris.c: Include opts.h.
5925 (cris_handle_option): Update to new hook interface.
5926 * config/frv/frv.c: Include opts.h.
5927 (frv_handle_option): Update to new hook interface.
5928 * config/i386/i386.c: Include opts.h.
5929 (ix86_handle_option): Update to new hook interface.
5930 (ix86_valid_target_attribute_inner_p): Generate option structure
5931 for call to ix86_handle_option.
5932 * config/i386/t-i386 (i386.o): Update dependencies.
5933 * config/ia64/ia64.c: Include opts.h.
5934 (ia64_handle_option): Update to new hook interface.
5935 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5936 * config/iq2000/iq2000.c: Include opts.h.
5937 (iq2000_handle_option): Update to new hook interface.
5938 * config/m32c/m32c.c: Include opts.h.
5939 (m32c_handle_option): Update to new hook interface.
5940 * config/m32r/m32r.c: Include opts.h.
5941 (m32r_handle_option): Update to new hook interface.
5942 * config/m68k/m68k.c: Include opts.h.
5943 (m68k_handle_option): Update to new hook interface.
5944 * config/mep/mep.c: Include opts.h.
5945 (mep_handle_option): Update to new hook interface.
5946 * config/microblaze/microblaze.c: Include opts.h.
5947 (microblaze_handle_option): Update to new hook interface.
5948 * config/mips/mips.c: Include opts.h.
5949 (mips_handle_option): Update to new hook interface.
5950 * config/mn10300/mn10300.c: Include opts.h.
5951 (mn10300_handle_option): Update to new hook interface.
5952 * config/pa/pa.c: Include opts.h.
5953 (pa_handle_option): Update to new hook interface.
5954 * config/pdp11/pdp11.c: Include opts.h.
5955 (pdp11_handle_option): Update to new hook interface.
5956 * config/rs6000/rs6000.c: Include opts.h.
5957 (rs6000_handle_option): Update to new hook interface.
5958 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5959 * config/rx/rx.c: Include opts.h.
5960 (rx_handle_option): Update to new hook interface.
5961 * config/s390/s390.c: Include opts.h.
5962 (s390_handle_option): Update to new hook interface.
5963 * config/score/score.c: Include opts.h.
5964 (score_handle_option): Update to new hook interface.
5965 * config/sh/sh.c: Include opts.h.
5966 (sh_handle_option): Update to new hook interface.
5967 * config/sparc/sparc.c: Include opts.h.
5968 (sparc_handle_option): Update to new hook interface.
5969 * config/v850/v850.c: Include opts.h.
5970 (v850_handle_option): Update to new hook interface.
5972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5974 * gcc.c (driver_unknown_option_callback): Only permit and save
5975 unknown -Wno- options.
5976 (driver_wrong_lang_callback): Save options directly instead of via
5977 driver_unknown_option_callback.
5979 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5981 * combine.c (simplify_set): Try harder to find the best CC mode when
5982 simplifying a nested COMPARE on the RHS.
5984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5986 * config/alpha/gnu.h: Remove.
5987 * config/arc: Remove directory.
5988 * config/arm/netbsd.h: Remove.
5989 * config/arm/t-pe: Remove.
5990 * config/crx: Remove directory.
5991 * config/i386/netbsd.h: Remove.
5992 * config/m68hc11: Remove directory.
5993 * config/m68k/uclinux-oldabi.h: Remove.
5994 * config/mcore/mcore-pe.h: Remove.
5995 * config/mcore/t-mcore-pe: Remove.
5996 * config/netbsd-aout.h: Remove.
5997 * config/rs6000/gnu.h: Remove.
5998 * config/sh/sh-symbian.h: Remove.
5999 * config/sh/symbian-base.c: Remove.
6000 * config/sh/symbian-c.c: Remove.
6001 * config/sh/symbian-cxx.c: Remove.
6002 * config/sh/symbian-post.h: Remove.
6003 * config/sh/symbian-pre.h: Remove.
6004 * config/sh/t-symbian: Remove.
6005 * config/svr3.h: Remove.
6006 * config/vax/netbsd.h: Remove.
6007 * config.build: Don't handle i[34567]86-*-pe.
6008 * config.gcc: Remove handling of deprecations for most deprecated
6010 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6011 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6012 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6013 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6014 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6015 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6017 * config.host: Don't handle i[34567]86-*-pe.
6018 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6019 (ASM_SPEC32): Don't handle -mcall-gnu.
6020 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6022 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6023 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6024 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6025 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6026 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6027 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6028 conditional on SYMBIAN.
6029 * configure.ac: Don't handle powerpc*-*-gnu*.
6030 * configure: Regenerate.
6031 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6032 * doc/install-old.texi (m6811, m6812): Don't mention.
6033 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6034 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6035 (m68k-uclinuxoldabi): Don't mention.
6036 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6038 (-mcall-gnu): Remove.
6039 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6040 families): Remove constraint documentation.
6042 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6044 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6045 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6046 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6048 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6050 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6051 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6052 * config/avr/avr.c (init_cumulative_args)
6053 (avr_function_arg_advance): Use it.
6054 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6056 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6057 (avr_function_ok_for_sibcall): ...this new function.
6058 (avr_lookup_function_attribute1): New static Function.
6059 (avr_naked_function_p, interrupt_function_p)
6060 (signal_function_p, avr_OS_task_function_p)
6061 (avr_OS_main_function_p): Use it.
6062 * config/avr/avr.md ("sibcall", "sibcall_value")
6063 ("sibcall_epilogue"): New expander.
6064 ("*call_insn", "*call_value_insn"): New insn.
6065 ("call_insn", "call_value_insn"): Remove
6066 ("call", "call_value", "epilogue"): Change expander to handle
6069 2011-03-21 Nick Clifton <nickc@redhat.com>
6071 * doc/invoke.texi (Overall Options): Move closing brace to end of
6073 (Optimization Options): Add missing @gol.
6074 (Directory Options): Likewise.
6075 (i386 and x86-64 Options): Likewise.
6076 (RS6000 and PowerPC Options): Likewise.
6077 (i386 and x86-64 Windows Options): Likewise.
6078 (V850 Options): Add text missing from descriptions.
6080 2011-03-22 Richard Henderson <rth@redhat.com>
6082 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6083 (avr_incoming_return_addr_rtx): New.
6084 (emit_push_byte): New.
6085 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6086 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6087 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6088 (emit_pop_byte): New.
6089 (expand_epilogue): Use it. Pop frame pointer by bytes.
6090 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6091 (INCOMING_RETURN_ADDR_RTX): New.
6092 (INCOMING_FRAME_SP_OFFSET): New.
6093 (ARG_POINTER_CFA_OFFSET): New.
6094 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6095 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6098 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6100 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6102 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6103 (FUNCTION_ARG_ADVANCE): Likewise.
6104 * tm.texi.in: Change references to them to hook references.
6105 * tm.texi: Regenerate.
6106 * targhooks.c (default_function_arg): Eliminate check for target
6108 (default_function_incoming_arg): Likewise.
6109 (default_function_arg_advance): Likewise.
6110 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6111 (function_arg_advance): Likewise.
6112 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6114 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6116 * tree.c (build_call_1): New function.
6117 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6119 2011-03-22 Richard Guenther <rguenther@suse.de>
6121 PR tree-optimization/48228
6122 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6123 for single-arg PHIs.
6125 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6127 PR rtl-optimization/48143
6128 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6129 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6130 sse2_cvtps2pd): Likewise.
6132 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6134 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6136 2011-03-22 Richard Guenther <rguenther@suse.de>
6138 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6139 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6140 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6141 and REALIGN_LOAD_EXPR.
6142 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6143 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6144 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6145 DOT_PROD_EXPR case ...
6146 (expand_expr_real_2): ... here.
6147 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6148 and REALIGN_LOAD_EXPR.
6149 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6150 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6151 (vect_create_epilog_for_reduction): Likewise.
6152 (vectorizable_reduction): Likewise.
6153 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6154 * tree-vect-stmts.c (vectorizable_load): Likewise.
6156 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6158 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6160 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6162 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6163 handling for PLTOFF/GOTOFF.
6165 2011-03-22 Nick Clifton <nickc@redhat.com>
6167 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6168 trailing backslash from the end of the macro definition.
6170 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6172 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6175 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6177 * expr.h (prepare_operand): Move to...
6178 * optabs.h (prepare_operand): ...here and change the insn code
6179 parameter from "int" to "enum insn_code".
6180 (insn_operand_matches): Declare.
6181 * expr.c (init_expr_target): Use insn_operand_matches.
6182 (compress_float_constant): Likewise.
6183 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6184 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6185 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6186 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6188 (gen_cond_trap): Likewise.
6189 (prepare_operand): Likewise. Change icode to an insn_code.
6190 (insn_operand_matches): New function.
6191 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6192 * reload1.c (gen_reload): Likewise.
6193 * targhooks.c (default_secondary_reload): Likewise.
6195 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6197 * config/alpha/alpha.md (unspec): New define_c_enum.
6200 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6203 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6204 between a call and its CALL_ARG_LOCATION note.
6206 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6208 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6210 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6214 * c-common.c (shorten_compare): If primopN is first sign-extended
6215 to opN and then zero-extended to result type, set primopN to opN.
6217 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6219 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6220 for barrier handlers.
6222 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6224 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6225 UNSPEC constants to be in the unspec enumeration, and redefine
6226 all UNSPECV constants to be in the unspecv enumeration, so that
6227 dumps print which unspec/unspec_volatile this is.
6228 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6229 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6230 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6231 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6232 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6234 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6235 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6236 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6237 * config/rs6000/sync.md (isync, lwsync): Ditto.
6239 2011-03-21 Richard Guenther <rguenther@suse.de>
6241 * params.def (lto-min-partition): Fix typo.
6243 2011-03-21 Richard Guenther <rguenther@suse.de>
6246 * c-decl.c (grokdeclarator): Drop to the main variant only
6247 for array types. Drop flag_gen_aux_info check.
6249 2011-03-21 Richard Guenther <rguenther@suse.de>
6251 PR translation/47911
6252 * params.def (lto-partitions): Fix typo.
6253 (lto-min-partition): Fix wording.
6255 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6257 * config/rs6000/t-freebsd: Remove duplication from file.
6259 2011-03-21 Richard Guenther <rguenther@suse.de>
6262 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6264 2011-03-21 Richard Guenther <rguenther@suse.de>
6267 * params.def (lto-partitions): Require at least 1 partition.
6269 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6271 * gthr-solaris.h: Remove.
6272 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6273 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6274 (LIB_SPEC): Likewise.
6275 * config/sol2.opt (threads): Remove.
6276 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6277 (sparc*-*-solaris2*): Likewise.
6278 * configure.ac (enable_threads): Enable solaris support.
6279 * configure: Regenerate.
6280 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6281 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6284 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6286 * config.gcc: Obsolete *-*-solaris2.8*.
6287 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6289 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6292 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6293 reference. Solaris 8 perl works.
6295 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6298 * doc/install.texi (Prerequisites): Move jar etc. up.
6299 Explain support library version requirements.
6301 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6304 * doc/install.texi (Prerequisites): Move Perl to build
6305 requirements. Always necessary on Solaris 2 with Sun ld.
6307 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6309 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6311 (Specific, i?86-*-solaris2.[89]): Likewise.
6312 (Specific, i?86-*-solaris2.10): Likewise.
6313 (Specific, mips-sgi-irix6): Likewise.
6314 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6315 Update for binutils 2.21.
6317 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6319 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6320 Allow -fuse-linker-plugin for non-default plugin linker.
6321 * configure: Regenerate.
6323 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6326 * gengtype.c (files_rules): Added rule for cp/parser.h.
6328 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6331 * config/s390/s390.c (s390_delegitimize_address): Don't call
6332 lowpart_subreg if orig_x has BLKmode.
6334 2011-03-21 Kai Tietz <ktietz@redhat.com>
6337 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6338 * tree.h (attribute_spec): Add new member affects_type_identity.
6339 * attribs.c (empty_attribute_table): Adjust attribute_spec
6341 * config/alpha/alpha.c: Likewise.
6342 * config/arc/arc.c: Likewise.
6343 * config/arm/arm.c: Likewise.
6344 * config/avr/avr.c: Likewise.
6345 * config/bfin/bfin.c: Likewise.
6346 * config/crx/crx.c: Likewise.
6347 * config/darwin.h: Likewise.
6348 * config/h8300/h8300.c: Likewise.
6349 * config/i386/cygming.h: Likewise.
6350 * config/i386/i386.c: Likewise.
6351 * config/ia64/ia64.c: Likewise.
6352 * config/m32c/m32c.c: Likewise.
6353 * config/m32r/m32r.c: Likewise.
6354 * config/m68hc11/m68hc11.c: Likewise.
6355 * config/m68k/m68k.c: Likewise.
6356 * config/mcore/mcore.c: Likewise.
6357 * config/mep/mep.c: Likewise.
6358 * config/microblaze/microblaze.c: Likewise.
6359 * config/mips/mips.c: Likewise.
6360 * config/rs6000/rs6000.c: Likewise.
6361 * config/rx/rx.c: Likewise.
6362 * config/sh/sh.c: Likewise.
6363 * config/sol2.h: Likewise.
6364 * config/sparc/sparc.c: Likewise.
6365 * config/spu/spu.c: Likewise.
6366 * config/stormy16/stormy16.c: Likewise.
6367 * config/v850/v850.c: Likewise.
6369 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6371 * simplify-rtx.c (simplify_binary_operation_1): Handle
6372 (xor (and A B) C) case when B and C are both constants.
6374 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6376 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6378 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6381 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6383 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6385 PR rtl-optimization/48156
6386 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6387 assume df and df_lr are not NULL.
6389 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6392 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6393 between a call and its CALL_ARG_LOCATION note.
6395 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6398 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6399 between a call and its corresponding CALL_ARG_LOCATION note.
6401 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6403 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6404 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6405 * haifa-sched.c (setup_ref_regs): Ditto.
6406 * caller-save.c (add_used_regs_1): Ditto.
6407 * dse.c (look_for_hardregs): Ditto.
6408 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6409 * sched-rgn.c (check_live_1): Ditto.
6411 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6413 * c-decl.c (diagnose_mismatched_decls): Give an error for
6414 redefining a typedef with variably modified type.
6416 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6418 * c-decl.c (grokfield): Don't allow typedefs for structures or
6419 unions with no tag by default.
6420 * doc/extend.texi (Unnamed Fields): Update.
6422 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6424 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6425 Rewrite using indirect functions.
6426 (lwp_slwpcb): Ditto.
6427 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6428 (avx_vinsertf128<mode>): Ditto.
6430 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6432 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6435 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6437 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6438 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6440 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6442 PR rtl-optimization/48170
6443 * gcse.c (hoist_code): Remove bogus asserts.
6445 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6447 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6448 computation for prologue/epilogue.
6450 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6452 * Makefile.in (check-consistency): Remove.
6454 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6457 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6458 arange_table_in_use is 0, but either text_section_used or
6459 cold_text_section_used is true. Don't call it if
6460 !info_section_emitted.
6462 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6464 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6465 FUNCTION_VALUE_REGNO_P): Remove.
6466 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6468 * config/avr/avr.c (avr_ret_register): Make static inline.
6469 (avr_function_value_regno_p): New function.
6470 (avr_libcall_value): Make static. Add 'func' argument.
6471 (avr_function_value): Make static. Rename 'func' argument to
6472 'fn_decl_or_type', forward it to avr_libcall_value. Call
6473 avr_ret_register function instead of RET_REGISTER macro.
6474 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6476 2011-03-18 Jason Merrill <jason@redhat.com>
6479 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6481 2011-03-18 Richard Guenther <rguenther@suse.de>
6483 * doc/install.texi (--enable-gold): Remove.
6484 (--with-plugin-ld): Document.
6485 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6487 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6490 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6491 again after expansion changes.
6493 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6495 * combine.c (try_combine): Do simplification only call of
6496 subst() on i2 even when i1 is present. Update comments.
6498 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6500 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6501 and UNSPEC_PCREL_SYMOFF.
6503 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6505 * config/s390/s390.md: Use define_c_enum for the unspec constant
6508 2011-03-18 Richard Henderson <rth@redhat.com>
6509 Jakub Jelinek <jakub@redhat.com>
6512 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6513 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6515 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6518 * combine.c (cant_combine_insn_p): Don't check zero/sign
6519 extended hard registers.
6521 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6524 * combine.c (cant_combine_insn_p): Check zero/sign extended
6527 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6529 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6530 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6531 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6532 Change return type to bool.
6533 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6535 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6538 * var-tracking.c (prepare_call_arguments): If CALL target
6539 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6540 pc instead of looking it up using cselib_lookup and use
6541 Pmode for it if x has VOIDmode.
6542 * dwarf2out.c (gen_subprogram_die): If also both first and
6543 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6546 * function.c (assign_parms): For data.passed_pointer parms
6547 use MEM of data.entry_parm instead of data.entry_parm itself
6548 as DECL_INCOMING_RTL.
6549 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6550 also when passed and declared mode is the same, DECL_RTL
6551 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6554 2011-03-16 Jeff Law <law@redhat.com>
6556 PR rtl-optimization/37273
6557 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6558 handle them like argument loads from stack slots. Do not double
6559 count memory for memory constants and argument loads from stack slots.
6561 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6564 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6566 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6569 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6571 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6574 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6576 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6577 Clear call_arg_locations and call_arg_loc_last always.
6580 * var-tracking.c (prepare_call_arguments): If argument needs to be
6581 passed by reference, adjust argtype and mode.
6583 2011-03-17 Richard Guenther <rguenther@suse.de>
6586 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6587 a value make sure to fold the statement.
6589 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6592 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6593 return condition with !cfun->calls_alloca.
6595 2011-03-17 Richard Guenther <rguenther@suse.de>
6598 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6599 origin for decls in other ltrans units.
6600 (input_varpool_node): Likewise.
6602 2011-03-17 Richard Guenther <rguenther@suse.de>
6605 * tree-object-size.c (compute_object_offset): Properly return
6606 the offset operand of MEM_REFs as sizetype.
6608 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6610 PR rtl-optimization/48141
6611 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6612 * dse.c: Include params.h.
6613 (active_local_stores_len): New variable.
6614 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6616 (record_store, check_mem_read_rtx): Decrease it when removing
6618 (scan_insn): Likewise. Increase it when adding to chain, if it
6619 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6620 set active_local_stores to NULL before the addition.
6621 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6623 PR rtl-optimization/48141
6624 * dse.c (record_store): If no positions are needed in an insn
6625 that cannot be deleted, at least unchain it from active_local_stores.
6627 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6630 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6631 (lookup_type_die_strip_naming_typedef): ... here.
6632 (get_context_die): Use it.
6633 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6634 the anonymous struct named by the naming typedef.
6636 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6639 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6640 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6642 2011-03-16 Jeff Law <law@redhat.com>
6644 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6645 check for operands of conditional. Allow type to be a pointer.
6647 2011-03-16 Richard Guenther <rguenther@suse.de>
6649 PR tree-optimization/48149
6650 * fold-const.c (fold_binary_loc): Fold
6651 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6653 2011-03-16 Richard Guenther <rguenther@suse.de>
6655 PR tree-optimization/26134
6656 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6657 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6658 (non_rewritable_mem_ref_base): Handle complex type component
6659 accesses, constrain offsets for vector and complex extracts
6662 2011-03-16 Richard Guenther <rguenther@suse.de>
6664 PR tree-optimization/48146
6665 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6666 operands avoiding the need for renaming.
6668 2011-03-16 Richard Guenther <rguenther@suse.de>
6670 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6671 constant folding. Move MEM_REF canonicalization first.
6672 Rely on fold_const_aggregate_ref for initializer folding.
6673 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6675 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6678 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6679 arg0/arg1 or their arguments are always fold converted to matching
6682 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6685 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6688 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6689 Handle in-tree gold.
6690 (ld_vers): Extract binutils version for gold.
6691 (gcc_cv_ld_hidden): Handle gold here.
6692 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6693 * configure: Regenerate.
6694 * config.in: Regenerate.
6695 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6696 -fuse-linker-plugin otherwise.
6697 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6698 (LINK_COMMAND_SPEC): Use it.
6699 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6701 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6703 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6704 * calls.c: Remove debug.h include.
6705 (emit_call_1): Don't call virtual_call_token debug hook.
6706 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6707 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6708 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6709 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6710 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6711 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6712 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6713 dwarf2out_virtual_call): Remove.
6714 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6715 copy_call_info and virtual_call hooks.
6716 (dwarf2out_init): Don't initialize vcall_insn_table,
6717 debug_dcall_section and debug_vcall_section.
6718 (prune_unused_types): Don't mark nodes from dcall_table.
6719 (dwarf2out_finish): Don't output dcall or vcall tables.
6720 * final.c (final_scan_insn): Don't call direct_call or
6721 virtual_call debug hooks.
6722 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6723 virtual_call_token, copy_call_info and virtual_call hooks.
6724 (debug_nothing_uid): Remove prototype.
6725 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6726 copy_call_info and virtual_call hooks.
6727 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6728 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6729 * debug.c (do_nothing_debug_hooks): Likewise.
6730 (debug_nothing_uid): Remove.
6731 * doc/invoke.texi (-fenable-icf-debug): Remove.
6732 * common.opt (-fenable-icf-debug): Likewise.
6734 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6735 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6736 call's MEM. Handle functions returning aggregate through a hidden
6737 first pointer. For virtual calls add clobbered pc to call arguments
6739 * dwarf2out.c (gen_subprogram_die): Emit
6740 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6744 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6745 * rtl.h (ENTRY_VALUE_EXP): Define.
6746 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6747 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6748 * print-rtl.c (print_rtx): Likewise.
6749 * gengtype.c (adjust_field_rtx_def): Likewise.
6750 * var-tracking.c (vt_add_function_parameter): Adjust
6751 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6752 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6753 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6754 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6755 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6757 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6758 Call var_location debug hook even on CALL_INSNs.
6759 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6760 * rtl.def (ENTRY_VALUE): New.
6761 * dwarf2out.c: Include cfglayout.h.
6762 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6763 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6764 (struct call_arg_loc_node): New type.
6765 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6766 tail_call_site_count): New variables.
6767 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6768 DW_TAG_GNU_call_site_parameter.
6769 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6770 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6771 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6772 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6773 and DW_AT_GNU_all_source_call_sites.
6774 (mem_loc_descriptor): Handle ENTRY_VALUE.
6775 (add_src_coords_attributes): Don't add enything if
6776 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6777 (dwarf2out_abstract_function): Save and clear call_arg_location,
6778 call_site_count and tail_call_site_count around dwarf2out_decl call.
6779 (gen_call_site_die): New function.
6780 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6781 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6782 (dwarf2out_function_decl): Clear call_arg_locations,
6783 call_arg_loc_last, set call_site_count and tail_call_site_count
6784 to -1 and free block_map.
6785 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6786 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6787 followed by any real instructions.
6788 (dwarf2out_begin_function): Set call_site_count and
6789 tail_call_site_count to 0.
6790 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6791 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6792 attempt to force a DIE for it and worst case remove the attribute.
6793 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6794 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6796 * var-tracking.c: Include tm_p.h.
6797 (vt_stack_adjustments): For calls call note_register_arguments.
6798 (argument_reg_set): New variable.
6799 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6800 ensure the VALUE is resolved.
6801 (call_arguments): New variable.
6802 (prepare_call_arguments): New function.
6803 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6804 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6805 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6806 always use the best expression.
6807 (vt_expand_loc): Add ignore_cur_loc argument.
6808 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6809 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6810 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6812 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6813 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6814 argument. Don't call cselib_preserve_only_values and
6816 (note_register_arguments): New function.
6817 (vt_initialize): Compute argument_reg_set. Call
6818 vt_add_function_parameters before processing basic blocks instead of
6819 afterwards. For calls call prepare_call_arguments before calling
6820 cselib_process_insn.
6821 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6822 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6823 (var-tracking.o): Depend on $(TM_P_H).
6824 * cfglayout.h (insn_scope): New prototype.
6825 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6826 * cfglayout.c (insn_scope): No longer static.
6827 * insn-notes.def (CALL_ARG_LOCATION): New.
6828 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6829 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6830 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6831 nothing for DECL_EXTERNAL BLOCK_VARS.
6833 2011-03-16 Alan Modra <amodra@gmail.com>
6836 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6837 create invalid offset address for vsx splat insn.
6838 * config/rs6000/predicates.md (splat_input_operand): New.
6839 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6841 2011-03-15 Xinliang David Li <davidxl@google.com>
6844 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6845 (normalize_preds): New function.
6846 (is_use_properly_guarded): Normalize def predicates.
6848 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6851 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6852 in the output template.
6854 2011-03-15 Richard Guenther <rguenther@suse.de>
6857 * tree-pretty-print.c (dump_function_declaration): Properly
6858 dump unprototyped and varargs function types.
6860 2011-03-15 Richard Guenther <rguenther@suse.de>
6862 PR tree-optimization/13954
6863 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6866 2011-03-15 Richard Guenther <rguenther@suse.de>
6868 PR tree-optimization/48037
6869 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6870 selects into BIT_FIELD_REFs.
6871 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6874 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6876 PR tree-optimization/48129
6877 * builtins.c (fold_builtin_snprintf): Convert to type of
6878 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6879 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6881 2011-03-15 Richard Guenther <rguenther@suse.de>
6883 PR tree-optimization/41490
6884 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6885 value but with VUSE.
6886 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6888 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6889 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6890 * tree-tailcall.c (find_tail_calls): Ignore returns.
6892 2011-03-15 Richard Guenther <rguenther@suse.de>
6895 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6896 or variable-indexed array accesses when in gimple form.
6898 2011-03-15 Richard Guenther <rguenther@suse.de>
6900 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6902 2011-03-15 Alan Modra <amodra@gmail.com>
6905 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6906 presume symbol_refs without a symbol_ref_decl are suitably
6907 aligned, nor other trees we may see here. Handle anchor symbols.
6908 (legitimate_constant_pool_address_p): Comment. Add mode param.
6909 Check cmodel=medium addresses. Adjust all calls.
6910 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6911 creating cmodel=medium optimized access to locals.
6912 * config/rs6000/constraints.md (R): Pass QImode to
6913 legitimate_constant_pool_address_p.
6914 * config/rs6000/predicates.md (input_operand): Pass mode to
6915 legitimate_constant_pool_address_p.
6916 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6919 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6922 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6923 64-bit constants being loaded into registers other than GPRs such
6924 as loading 0 into a VSX register.
6926 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6928 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6930 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6933 * builtins.c (fold_builtin_snprintf): New function.
6934 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6935 (fold_builtin_4): Likewise.
6938 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6939 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6940 and C - X == X also strip nops from +/-/p+ operand.
6941 When optimizing -X == C, fold C to arg0's type.
6944 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6945 emit it as add_AT_int instead of add_AT_unsigned.
6947 2011-03-14 Tom Tromey <tromey@redhat.com>
6949 * unwind-dw2.c: Include sys/sdt.h if it exists.
6950 (_Unwind_DebugHook): Use STAP_PROBE2.
6951 * config.in, configure: Rebuild.
6952 * configure.ac: Check for sys/sdt.h.
6954 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6956 * config/i386/i386.md (ROUND_FLOOR): New constant.
6957 (ROUND_CEIL): Ditto.
6958 (ROUND_TRUNC): Ditto.
6959 (ROUND_MXCSR): Ditto.
6960 (ROUND_NO_EXC): Ditto.
6961 (rint<mode>2): Use new defines instead of numerical constants.
6962 (floor<mode>2): Ditto.
6963 (ceil<mode>2): Ditto.
6964 (btrunc<mode>2): Ditto.
6965 * config/i386/i386-builtin-types.def: Define ROUND function type
6967 * config/i386/i386.c (enum ix86_builtins): Add
6968 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6969 (struct builtin_description): Add
6970 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6971 (ix86_expand_sse_round): New static function.
6972 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6974 (ix86_builtin_vectorized_function): Handle
6975 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6977 2011-03-14 Tom Tromey <tromey@redhat.com>
6979 * c-parser.c (c_parser_asm_string_literal): Clear
6980 warn_overlength_strings.
6982 2011-03-14 Tom Tromey <tromey@redhat.com>
6984 * c-parser.c (disable_extension_diagnostics): Save
6985 warn_overlength_strings.
6986 (restore_extension_diagnostics): Restore warn_overlength_strings.
6988 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6990 * BASE-VER: Change to 4.7.0.
6992 2011-03-14 Richard Guenther <rguenther@suse.de>
6995 * tree.c (build_vector_from_val): Adjust assert to requirements
6998 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7001 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7003 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7005 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7006 terms of target_flags_explicit. Adjust copyright year.
7008 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7009 * config/rs6000/t-freebsd: New file. Add override for
7012 2011-03-13 Chris Demetriou <cgd@google.com>
7014 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7015 (-fno-diagnostics-show-option): this, to reflect current default.
7016 (-Werror=): Update text about -fno-diagnostics-show-option.
7018 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7021 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7022 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7023 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7024 mode is not V2DImode or V2DFmode.
7025 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7026 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7027 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7029 (movdi_internal64): Likewise.
7031 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7033 PR tree-optimization/47127
7034 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7036 (set_cloog_options): Same.
7037 (scop_to_clast): Same.
7038 (print_clast_stmt): Do not call cloog_state_malloc and
7040 (print_generated_program): Same.
7042 * graphite-clast-to-gimple.h (cloog_state): Declared.
7043 (scop_to_clast): Adjust declaration.
7044 * graphite.c (cloog_state): Defined here.
7045 (graphite_initialize): Call cloog_state_malloc.
7046 (graphite_finalize): Call cloog_state_free.
7048 2011-03-11 Jason Merrill <jason@redhat.com>
7050 * attribs.c (lookup_attribute_spec): Take const_tree.
7053 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7055 * config/sparc/sparc.c (sparc_option_override): Use
7056 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7058 2011-03-11 Richard Guenther <rguenther@suse.de>
7060 PR tree-optimization/48067
7061 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7062 multiplication result will be only used once on the target
7065 2011-03-11 Richard Guenther <rguenther@suse.de>
7067 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7069 2011-03-11 Richard Guenther <rguenther@suse.de>
7072 * tree.c (find_decls_types_r): Do not walk types only reachable
7073 from IDENTIFIER_NODEs.
7075 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7078 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7079 all vnode->force_output nodes as needed.
7081 2011-03-11 Jason Merrill <jason@redhat.com>
7084 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7085 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7087 2011-03-11 Martin Jambor <mjambor@suse.cz>
7089 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7092 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7094 PR tree-optimization/48063
7095 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7096 inline functions called once if !tree_can_inline_p (node->callers).
7098 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7100 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7102 * config/score/score3.c: Delete.
7103 * config/score/score3.h: Delete.
7104 * config/score/mul-div.S: Delete.
7105 * config/score/sfp-machine.h: Add new file.
7106 * config/score/constraints.md: Add new file.
7107 * config/score/t-score-softfp: Add new file.
7108 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7109 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7110 (score7_extra_constraint): Delete.
7111 (score7_option_override): Remove unused code.
7112 * config/score/score.c: Remove score3 and score5 define and code.
7113 * config/score/score.h: Remove score3 and score5 define and code.
7114 * config/score/score.md: Remove score3 template and unusual insn.
7115 * config/score/score.opt: Remove score3 and score5 options.
7117 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7119 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7120 when _HPUX_SOURCE is defined.
7121 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7123 2011-03-10 Jason Merrill <jason@redhat.com>
7126 * stor-layout.c (layout_type): Don't set structural equality
7127 on arrays of incomplete type.
7128 * tree.c (type_hash_eq): Handle comparing them properly.
7130 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7133 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7134 result mode matches original rtl mode.
7136 2011-03-10 Nick Clifton <nickc@redhat.com>
7138 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7139 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7141 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7143 PR rtl-optimization/47866
7144 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7145 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7146 if target wasn't scalar.
7147 * function.c (assign_stack_temp_for_type): Assert that neither
7148 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7149 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7151 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7153 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7155 * config/s390/s390-protos.h (s390_label_align): New prototype.
7156 * config/s390/s390.c (s390_label_align): New function.
7157 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7159 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7162 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7163 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7164 (output_vec_const_move): Ditto.
7166 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7168 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7169 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7170 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7171 Change 'rclass' argument and result type to reg_class_t.
7172 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7174 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7176 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7177 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7178 (TARGET_MEMORY_MOVE_COST): Define.
7179 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7181 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7184 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7187 PR tree-optimization/48022
7188 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7191 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7194 * var-tracking.c (find_use_val): Return NULL for
7195 cui->sets && cui->store_p BLKmode MEMs.
7197 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7199 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7201 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7202 xstormy16_print_operand_address): Remove.
7203 * config/stormy16/stormy16.c (xstormy16_print_operand,
7204 xstormy16_print_operand_address): Make static.
7205 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7207 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7210 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7211 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7214 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7217 * cfgloopmanip.c (fix_bb_placements): Return immediately
7218 if FROM is BASE_LOOP's header.
7220 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7222 * gimplify.c (gimplify_function_tree): Fix building calls
7223 to __builtin_return_address.
7225 2011-03-07 Alan Modra <amodra@gmail.com>
7227 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7228 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7229 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7230 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7232 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7233 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7234 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7235 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7236 * config/rs6000/rs6000.c
7237 (rs6000_elf_end_indicate_exec_stack): Rename to..
7238 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7239 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7240 (rs6000_file_start): ..here.
7241 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7242 file scope variables.
7243 (call_ABI_of_interest): New function.
7244 (init_cumulative_args): Set above vars when function return value
7245 is a float, vector, or small struct.
7246 (rs6000_function_arg_advance_1): Likewise for function args.
7247 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7248 references float args.
7250 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7252 * doc/cfg.texi: Remove "See" before @ref.
7253 * doc/invoke.texi: Likewise.
7255 2011-03-05 Jason Merrill <jason@redhat.com>
7257 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7259 2011-03-05 Anthony Green <green@moxielogic.com>
7261 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7263 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7265 PR rtl-optimization/47899
7266 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7267 to flow_loop_nested_p when moving the loop upward.
7269 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7272 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7274 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7276 PR tree-optimization/47967
7277 * ipa-cp.c (build_const_val): Return NULL instead of creating
7278 VIEW_CONVERT_EXPR for mismatching sizes.
7279 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7280 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7281 give up on versioning.
7283 2011-03-05 Alan Modra <amodra@gmail.com>
7286 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7287 full cmodel medium/large lo_sum + high addresses.
7289 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7291 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7292 pool references in UNSPEC_LTREL_OFFSET.
7294 2011-03-04 Jan Hubicka <jh@suse.cz>
7297 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7298 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7299 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7301 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7302 cgraph_add_thunk): Add node pointers.
7303 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7304 associated to right node.
7305 (input_node): Update use of cgraph_same_body_alias
7306 and cgraph_add_thunk.
7308 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7310 * config/i386/i386.opt (mprefer-avx128): New flag.
7311 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7312 modes when the flag -mprefer-avx128 is on.
7314 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7316 * dwarf2out.c (compare_loc_operands): Fix address handling.
7318 2011-03-04 Alan Modra <amodra@gmail.com>
7320 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7322 2011-03-04 Richard Guenther <rguenther@suse.de>
7325 * expmed.c (extract_bit_field_1): Prefer vector modes that
7326 vec_extract patterns can handle.
7328 2011-03-04 Richard Guenther <rguenther@suse.de>
7331 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7333 2011-03-04 Richard Henderson <rth@redhat.com>
7335 * explow.c (emit_stack_save): Remove 'after' parameter.
7336 (emit_stack_restore): Likewise.
7337 * expr.h: Update to match.
7338 * builtins.c, calls.c, stmt.c: Likewise.
7339 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7340 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7341 * function.c (expand_function_end): Insert the emit_stack_save
7342 sequence before parm_birth_insn instead of after.
7344 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7346 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7347 (ssse3_pmaddubsw128): Ditto.
7348 (ssse3_pmaddubsw): Ditto.
7350 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7352 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7354 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7357 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7358 on TYPE_SIZE_UNIT if it is a DECL.
7361 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7362 first operand is not is_gimple_mem_ref_addr, try to fold it.
7363 If the operand still isn't is_gimple_mem_ref_addr, clear
7366 2011-03-03 Richard Guenther <rguenther@suse.de>
7369 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7371 (refs_may_alias_p_1): For release branches return true if
7372 we are confused by our input.
7374 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7376 * config/s390/s390.c (s390_function_value): Rename to ...
7377 (s390_function_and_libcall_value): ... this.
7378 (s390_function_value): New function.
7379 (s390_libcall_value): New function.
7380 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7381 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7382 target macro definitions.
7383 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7385 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7387 * config/i386/freebsd64.h (CC1_SPEC): Define.
7388 * config/i386/linux64.h (CC1_SPEC): Define.
7389 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7391 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7393 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7395 * config/stormy16/stormy16.c: Include reload.h.
7396 (xstormy16_memory_move_cost): New function.
7397 (TARGET_MEMORY_MOVE_COST): Define.
7399 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7401 PR rtl-optimization/47925
7402 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7403 with side effects. Remove the more-specific check for volatile asms.
7405 2011-03-02 Alan Modra <amodra@gmail.com>
7408 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7409 toc relative addresses for valid offsets.
7411 2011-03-01 Richard Guenther <rguenther@suse.de>
7413 PR tree-optimization/47890
7414 * tree-vect-loop.c (get_initial_def_for_induction): Set
7415 related stmt properly.
7417 2011-03-01 Richard Guenther <rguenther@suse.de>
7420 * lto-streamer.c (lto_record_common_node): Also register
7423 2011-03-01 Richard Guenther <rguenther@suse.de>
7426 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7427 Do not stream DECL_ABSTRACT_ORIGIN.
7428 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7429 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7430 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7431 Do not stream DECL_ABSTRACT_ORIGIN.
7432 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7433 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7435 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7437 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7438 FUNCTION_VALUE_REGNO_P): Remove.
7439 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7440 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7441 Add 'outgoing' argument.
7442 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7444 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7445 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7447 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7450 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7451 (lookup_filename): Likewise.
7452 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7454 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7455 Jakub Jelinek <jakub@redhat.com>
7458 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7459 (assign_stack_local_1): Change last argument type to int.
7460 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7461 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7462 don't record padding space into frame_space_list nor use those areas.
7463 (assign_stack_local): Adjust caller.
7464 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7465 of assign_stack_local, pass 0 as last argument.
7466 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7469 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7472 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7473 Use target address_mode and pointer_mode hooks instead of hardcoded
7474 Pmode and ptr_mode. Handle some simple cases of extending if
7475 POINTERS_EXTEND_UNSIGNED < 0.
7476 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7477 Call convert_debug_memory_address.
7478 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7479 convert_debug_memory_address.
7482 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7483 * configure: Regenerated.
7484 * config.in: Regenerated.
7485 * varasm.c (default_function_section): Return NULL
7486 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7488 2011-02-28 Martin Jambor <mjambor@suse.cz>
7490 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7491 the description to match the printed values.
7493 2011-02-28 Richard Guenther <rguenther@suse.de>
7495 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7496 of the copied scope tree.
7498 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7500 * doc/extend.texi (Function Attributes): Avoid deeply (and
7501 wrongly) nested tables.
7503 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7506 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7507 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7508 r isn't op0 nor op1.
7510 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7512 * config/avr/avr.md: Remove magic comment for emacs.
7514 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7517 * config/avr/avr.c (avr_option_override): Use error on bad options.
7518 (avr_help): New function.
7519 (TARGET_HELP): Define.
7521 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7524 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7525 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7527 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7529 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7530 (ARM Options): Ditto.
7531 (i386 and x86-64 Options): Ditto.
7532 (RX Options): Ditto.
7533 (SPARC Options): Ditto.
7535 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7537 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7538 FreeBSD 6 and later. Generally use cpu generic.
7540 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7542 * doc/cpp.texi: Update copyright years.
7544 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7547 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7549 2011-02-25 Jon Beniston <jon@beniston.com>
7552 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7553 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7554 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7555 (lm32_block_move_inline): Add type cast to remove warning.
7556 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7557 (gen_int_relational): Move declarations to start of function.
7559 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7561 PR tree-optimization/45470
7562 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7563 can throw internally only.
7564 * tree-vect-stmts.c (vectorizable_call): Likewise.
7566 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7568 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7569 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7570 * config/stormy16/stormy16-protos.h
7571 (xstormy16_preferred_reload_class): Remove.
7572 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7573 static. Change 'rclass' argument and return type to reg_class_t.
7574 (TARGET_PREFERRED_RELOAD_CLASS,
7575 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7577 2011-02-24 Richard Guenther <rguenther@suse.de>
7579 * lto-streamer-in.c (input_bb): Do not find referenced vars
7580 in debug statements.
7582 2011-02-23 Jason Merrill <jason@redhat.com>
7584 * common.opt (fabi-version): Document v5 and v6.
7586 2011-02-23 Richard Guenther <rguenther@suse.de>
7588 PR tree-optimization/47849
7589 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7591 2011-02-23 Jie Zhang <jie@codesourcery.com>
7593 * opts-common.c (decode_cmdline_option): Print empty string
7594 argument as "" in decoded->orig_option_with_args_text.
7595 * gcc.c (execute): Print empty string argument as ""
7596 in the verbose output.
7597 (do_spec_1): Keep empty string argument.
7599 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7601 * config.gcc: Declare score-* and crx-* obsolete.
7603 2011-02-23 Jie Zhang <jie@codesourcery.com>
7605 PR rtl-optimization/47763
7606 * web.c (web_main): Ignore naked clobber when replacing register.
7608 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7610 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7613 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7616 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7618 2011-02-22 Mike Stump <mikestump@comcast.net>
7620 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7622 * configure: Regenerate.
7624 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7626 PR rtl-optimization/46002
7627 * ira-color.c (update_copy_costs): Change class intersection
7628 test to reg_class_contents[] test of 'hard_regno'.
7630 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7632 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7634 * config/hpux11.opt (mt): Likewise.
7635 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7636 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7637 * config/vax/elf.opt (mno-asm-pic): Likewise.
7638 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7640 2011-02-21 Mike Stump <mikestump@comcast.net>
7643 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7644 tree so we can get save the type.
7645 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7646 for CFString instead of trying to use past the end of the builtins.
7647 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7648 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7649 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7650 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7651 Rename to darwin_builtin_cfstring.
7652 (darwin_init_cfstring_builtins): Return the built type.
7654 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7657 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7658 (_mm256_insert_epi64): Use _mm_insert_epi64.
7660 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7662 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7663 * config/stormy16/stormy16-protos.h
7664 (xstormy16_mode_dependent_address_p): Remove.
7665 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7666 Make static. Change return type to bool. Change argument type to
7667 const_rtx. Remove dead code.
7668 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7670 2011-02-21 Richard Guenther <rguenther@suse.de>
7673 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7674 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7675 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7677 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7678 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7680 2011-02-20 Richard Guenther <rguenther@suse.de>
7683 * tree.c (free_lang_data_in_decl): Clean builtins from
7684 the TU decl BLOCK_VARS.
7686 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7690 * haifa-sched.c (fix_tick_ready): Skip tick computation
7693 2011-02-19 Richard Guenther <rguenther@suse.de>
7696 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7697 Remove lazy BLOCK_VARS streaming.
7698 (lto_input_ts_block_tree_pointers): Likewise.
7699 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7701 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7703 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7705 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7707 * config/i386/biarch32.h, config/i386/mach.h,
7708 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7710 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7713 * config/i386/i386.md (peephole2 for shift and plus): Use
7714 operands[1] original mode in the first insn.
7716 2011-02-18 Mike Stump <mikestump@comcast.net>
7718 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7720 2011-02-18 Jan Hubicka <jh@suse.cz>
7723 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7724 to zero when the function is not inlinable at all.
7726 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7728 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7729 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7730 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7731 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7732 * config/pa/t-pa64: Likewise.
7733 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7735 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7738 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7740 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7743 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7745 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7747 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7748 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7749 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7750 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7751 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7752 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7753 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7754 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7755 m32r_legitimate_address_p): New functions.
7756 * config/m32r/constraints.md (constraint "S"): Don't use
7757 STORE_PREINC_PREDEC_P.
7758 (constraint "U"): Don't use LOAD_POSTINC_P.
7760 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7762 PR rtl-optimization/46178
7763 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7764 compute ira_hard_regno_cover_class[].
7766 2011-02-18 Richard Guenther <rguenther@suse.de>
7769 * lto-streamer.h (lto_global_var_decls): Declare.
7770 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7771 statics for global var processing.
7773 2011-02-18 Richard Guenther <rguenther@suse.de>
7775 PR tree-optimization/47737
7776 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7777 edge dominance check.
7779 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7782 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7783 avoid invalid rtx sharing.
7785 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7787 * doc/cpp.texi (Obsolete Features): Add background on the
7788 origin of assertions.
7790 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7792 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7794 * config/darwin.c (output_objc_section_asm_op): Added support for
7796 (is_objc_metadata): New.
7797 (darwin_objc2_section): New.
7798 (darwin_objc1_section): New.
7799 (machopic_select_section): Added support for ABI v1 and v2.
7800 (darwin_emit_objc_zeroed): New.
7801 (darwin_output_aligned_bss): Detect objc metadata and treat it
7803 (darwin_asm_output_aligned_decl_common): Same.
7804 (darwin_asm_output_aligned_decl_local): Same.
7805 * config/darwin-sections.def: Updated for ABI v1 and v2.
7806 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7807 compiling Objective-C code for the NeXT runtime, default to using
7808 ABI version 0 for 32-bit, and version 2 for 64-bit.
7810 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7812 * common.opt (optimize_fast): New Variable.
7813 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7814 instead of local variable ofast.
7816 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7818 * doc/invoke.texi (fobjc-abi-version): Documented.
7819 (fobjc-nilcheck): Documented.
7820 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7823 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7826 * common.opt (export-dynamic): New Driver option.
7827 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7829 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7831 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7833 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7834 Jan Hubicka <jh@suse.cz>
7838 * cfgexpand.c (account_used_vars_for_block): Remove.
7839 (estimated_stack_frame_size): Use referenced vars.
7840 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7841 that were referenced in the original function. Test src_fn
7842 rather than cfun. Drop redundant get_var_ann.
7843 (setup_one_parameter): Drop redundant get_var_ann.
7844 (declare_return_variable): Likewise.
7845 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7846 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7847 * ipa-inline.c (compute_inline_parameters): Do not compute
7848 disregard_inline_limits here.
7849 (compute_inlinable_for_current, pass_inlinable): New.
7850 (pass_inline_parameters): Require PROP_referenced_vars.
7851 * cgraphunit.c (cgraph_process_new_functions): Don't run
7852 compute_inline_parameters explicitly unless function is in SSA form.
7853 (cgraph_analyze_function): Set .disregard_inline_limits.
7854 * tree-sra.c (convert_callers): Compute inliner parameters
7855 only for functions already in SSA form.
7857 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7859 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7860 -mlittle-endian-data.
7862 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7864 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7865 -mno-fpu, not -fpu and -no-fpu.
7866 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7867 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7869 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7872 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7873 input reload with PLUS RTX.
7875 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7877 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7878 of InverseVar(MDMX).
7880 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7882 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7885 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7887 * config/mn10300/mn10300.opt (mno-crt0): New.
7889 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7891 * config/m68k/uclinux.opt (static-libc): New Driver option.
7893 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7895 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7897 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7899 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7900 %{muser-extend-enabled}.
7902 2011-02-16 Richard Guenther <rguenther@suse.de>
7904 PR tree-optimization/47738
7905 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7906 the TODO from tree_predictive_commoning.
7908 2011-02-15 Jeff Law <law@redhat.com>
7911 2011-01-25 Jeff Law <law@redhat.com>
7913 PR rtl-optimization/37273
7914 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7915 handle them like argument loads from stack slots. Do not double
7916 count memory for memory constants and argument loads from stack slots.
7918 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7921 * combine.c (cant_combine_insn_p): Revert the last change.
7923 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7926 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7927 mode for vector constants. Remove code that checks for TImode.
7929 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7933 * cgraph.h (compute_inline_parameters): Return void.
7934 * ipa-inline.c (compute_inline_parameters): Adjust.
7936 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7940 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7942 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7943 * ipa-inline.c (compute_inline_parameters): Adjust.
7945 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7949 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7950 Adjust all users. Pass FN to...
7951 * tree-flow-inline.h (first_referenced_var): ... this. Add
7953 * ipa-struct-reorg.c: Adjust.
7954 * tree-dfa.c: Adjust.
7955 * tree-into-ssa.c: Adjust.
7956 * tree-sra.c: Adjust.
7957 * tree-ssa-alias.c: Adjust.
7958 * tree-ssa-live.c: Adjust.
7959 * tree-ssa.c: Adjust.
7960 * tree-ssanames.c: Adjust.
7961 * tree-tailcall.c: Adjust.
7963 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7967 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7969 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7970 * tree-flow-inline.h: Adjust.
7971 * gimple-pretty-print.c: Adjust.
7972 * tree-into-ssa.c: Adjust.
7973 * tree-ssa.c: Adjust.
7974 * cfgexpand.c: Adjust.
7976 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7978 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7979 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7980 (EXTRA_CONSTRAINT): Delete.
7981 * config/iq2000/constraints.md: New file.
7982 * config/iq2000/iq2000.md: Include it.
7983 (define_insn ""): Delete.
7984 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7985 unsupported constraint letters from patterns.
7986 (call_value, call_value_internal1): Likewise.
7987 (call_value_multiple_internal1): Likewise.
7989 2011-02-15 Nick Clifton <nickc@redhat.com>
7991 * config/mn10300/mn10300.c: Include tm-constrs.h.
7992 (struct liw_data): New data structure describing an LIW candidate
7994 (extract_bundle): Use struct liw_data. Allow small integer
7995 operands for some instructions.
7996 (check_liw_constraints): Use struct liw_data. Remove swapped
7997 parameter. Add comments describing the checks. Fix bug when
7998 assigning the source of liw1 to the source of liw2.
7999 (liw_candidate): Delete. Code moved into extract_bundle.
8000 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8002 * config/mn10300/predicates.md (liw_operand): New predicate.
8003 Allows registers and small integer constants.
8004 * config/mn10300/constraints.md (O): New constraint. Accetps
8005 integers in the range -8 to +7 inclusive.
8006 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8007 for moving a small integer into a register. Give this alternative
8009 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8010 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8011 using the J,K,L and M constraints,
8012 (liw): Remove SI mode on second operands to allow for HI and QI
8014 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8017 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8020 * combine.c (cant_combine_insn_p): Check zero/sign extended
8023 2011-02-15 Richard Guenther <rguenther@suse.de>
8025 PR tree-optimization/47743
8026 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8027 for a non-type-compatible VN lookup bail out.
8029 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8031 * config/fr30/constraints.md: New file.
8032 * config/fr30/fr30.md: Include it.
8033 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8034 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8035 (EXTRA_CONSTRAINT): Delete.
8037 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8039 * config/frv/constraints.md: New file.
8040 * config/frv/predicates.md: Include it.
8041 * config/frv/frv.c (reg_class_from_letter): Delete.
8042 (frv_option_override): Don't initialize it.
8043 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8044 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8045 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8046 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8047 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8048 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8049 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8050 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8051 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8052 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8053 (REG_CLASS_FROM_CONSTRAINT): Delete.
8055 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8058 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8059 if frame size is 0 in a leaf function.
8061 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8064 * config/alpha/host-osf.c: New file.
8065 * config/alpha/x-osf: New file.
8066 * config.host (alpha*-dec-osf*): Use it.
8068 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8070 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8071 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8072 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8073 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8075 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8077 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8079 * config/stormy16/constraints.md: New file.
8080 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8081 Use satisfies_constraint_Q and satisfies_constraint_R.
8082 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8084 (xstormy16_legitiamte_address_p): Declare.
8085 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8086 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8087 (EXTRA_CONSTRAINT): Delete.
8088 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8090 (xstormy16_extra_constraint_p): Delete.
8092 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8094 PR tree-optimization/46494
8095 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8096 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8097 (pass_rtl_loop_done): Add TODO_verify_flow.
8098 * fwprop.c (pass_rtl_fwprop): Likewise.
8099 * modulo-sched.c (pass_sms): Likewise.
8100 * tree-ssa-dom.c (pass_dominator): Likewise.
8101 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8102 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8103 (pass_tree_loop_done): Likewise.
8104 * tree-ssa-pre.c (execute_pre): Likewise.
8105 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8106 * tree-ssa-sink.c (pass_sink_code): Likewise.
8107 * tree-vrp.c (pass_vrp): Likewise.
8109 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8111 * config/v850/constraints.md: New file.
8112 * config/v850/v850.md: Include it.
8113 * config/v850/predicates.md (reg_or_0_operand): Use
8114 satisfies_constraint_G.
8115 (special_symbolref_operand): Use satisfies_constraint_K.
8116 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8117 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8118 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8119 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8120 (EXTRA_CONSTRAINT): Delete.
8121 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8122 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8123 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8125 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8128 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8131 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8133 * config/mcore/constraints.md: New file.
8134 * config/mcore/mcore.md: Include it.
8135 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8136 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8137 (REG_CLASS_FROM_LETTER): Delete.
8138 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8139 insn_const_int_ok_for_constraint.
8140 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8141 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8142 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8143 (EXTRA_CONSTRAINT): Delete.
8145 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8148 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8149 (IS_SIGHANDLER): Define.
8150 (sparc64_is_sighandler): New function, split off from
8151 sparc64_fallback_frame_state.
8152 (sparc_is_sighandler): New function, split off from
8153 sparc_fallback_frame_state.
8154 (sparc64_fallback_frame_state): Merge with ...
8155 (sparc_fallback_frame_state): ... this into ...
8156 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8157 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8158 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8159 stack instead of hardcoded offsets.
8161 2011-02-14 Andriy Gapon <avg@freebsd.org>
8164 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8166 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8168 * configure: Regenerate.
8170 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8173 * gcc.c (asm_options): Correct spec matching --target-help.
8175 2011-02-12 Martin Jambor <mjambor@suse.cz>
8177 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8178 to gimple call error.
8180 2011-02-12 Mike Stump <mikestump@comcast.net>
8182 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8183 comments in backslash regions.
8185 2011-02-12 Mike Stump <mikestump@comcast.net>
8186 Jakub Jelinek <jakub@redhat.com>
8187 Iain Sandoe <iains@gcc.gnu.org>
8190 * dwarf2out.c (output_cfa_loc): When required, apply the
8191 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8192 (output_loc_sequence): Likewise.
8193 (output_loc_operands_raw): Likewise.
8194 (output_loc_sequence_raw): Likewise.
8195 (output_cfa_loc): Likewise.
8196 (output_loc_list): Suppress register number adjustment when
8197 calling output_loc_sequence()
8198 (output_die): Likewise.
8200 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8202 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8204 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8205 xtensa_memory_move_cost): New functions.
8206 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8208 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8211 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8212 in the current directory.
8213 * configure: Rebuilt.
8215 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8217 * config/darwin.c (darwin_override_options): Add a hunk missed
8218 from the commit of r168571. Trim comment line lengths and
8219 correct indents of the preceding block.
8221 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8223 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8226 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8228 * common.opt (nostartfiles): New Driver option.
8230 2011-02-11 Xinliang David Li <davidxl@google.com>
8232 PR tree-optimization/47707
8233 * tree-chrec.c (convert_affine_scev): Keep type precision.
8235 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8237 PR tree-optimization/47420
8238 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8240 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8242 PR rtl-optimization/47614
8243 * rtl.h (check_for_inc_dec): Declare.
8244 * dse.c (check_for_inc_dec): Externalize...
8245 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8246 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8248 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8251 * gcc.c (main): Do not compile inputs if there were errors in
8253 * opts-common.c (read_cmdline_option): Check for wrong language
8254 after other error checks.
8256 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8258 * cgraph.c: Fix comment typos.
8259 * cgraph.h: Likewise.
8260 * cgraphunit.c: Likewise.
8261 * ipa-cp.c: Likewise.
8262 * ipa-inline.c: Likewise.
8263 * ipa-prop.c: Likewise.
8264 * ipa-pure-const.c: Likewise.
8265 * ipa-ref.c: Likewise.
8266 * ipa-reference.c: Likewise.
8268 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8271 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8273 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8276 * doc/sourcebuild.texi (Require Support): Document
8277 dg-require-ascii-locale.
8279 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8281 * doc/lto.texi (Write summary): Fix missing parentheses.
8283 2011-02-10 DJ Delorie <dj@redhat.com>
8285 * config/m32c/m32c.c (m32c_option_override): Disable
8286 -fcombine-stack-adjustments until flag value tracking and compare
8287 optimization can be rewritten.
8289 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8291 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8293 (PROCESSOR_DEFAULT64): Likewise.
8295 2011-02-10 Richard Henderson <rth@redhat.com>
8297 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8298 change from 2011-02-03.
8299 * config/rx/rx.c (flags_from_code): Likewise.
8300 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8301 is valid, n/pz otherwise.
8302 (rx_select_cc_mode): Return CCmode if Y is not zero.
8304 2011-02-10 Richard Guenther <rguenther@suse.de>
8306 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8308 2011-02-10 Richard Guenther <rguenther@suse.de>
8310 PR tree-optimization/47677
8311 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8313 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8316 * combine.c (make_compound_operation): Only change shifts into
8317 multiplication for SCALAR_INT_MODE_P.
8319 2011-02-10 Jie Zhang <jie@codesourcery.com>
8323 2011-02-05 Jie Zhang <jie@codesourcery.com>
8325 * web.c (entry_register): Don't clobber the number of the
8326 first uninitialized reference in used[].
8328 2011-02-09 Richard Guenther <rguenther@suse.de>
8330 PR tree-optimization/47664
8331 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8334 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8338 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8340 (PROCESSOR_DEFAULT64): Same.
8341 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8343 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8345 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8347 2011-02-09 Martin Jambor <mjambor@suse.cz>
8350 * tree-sra.c (struct access): New flags grp_scalar_read and
8351 grp_scalar_write. Changed description of assignment read and write
8353 (dump_access): Dump new flags, reorder all of them.
8354 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8355 to detect multiple scalar reads.
8356 (analyze_access_subtree): Use the new scalar read write flags instead
8357 of the old flags. Adjusted comments.
8359 2011-02-08 DJ Delorie <dj@redhat.com>
8362 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8365 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8367 * config/m68k/uclinux.opt: New.
8368 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8370 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8372 * config/cris/elf.opt (sim): New Driver option.
8374 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8376 * config/xtensa/elf.opt: New.
8377 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8379 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8381 * config/vax/elf.opt: New.
8382 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8384 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8386 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8388 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8390 * config/gnu-user.opt: New.
8391 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8392 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8393 *-*-uclinux*): Use gnu-user.opt.
8395 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8397 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8398 * config/i386/gnu.h (CPP_SPEC): Likewise.
8400 2011-02-08 Ian Lance Taylor <iant@google.com>
8402 * common.opt (fcx-limited-range): Add SetByCombined flag.
8403 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8404 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8405 (fassociative-math, freciprocal-math): Likewise.
8406 (funsafe-math-optimizations): Likewise.
8407 * opth-gen.awk: Handle SetByCombined.
8408 * optc-gen.awk: Likewise.
8409 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8410 (set_unsafe_math_optimizations_flags): Likewise.
8411 * doc/options.texi (Option properties): Document SetByCombined.
8413 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8415 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8416 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8417 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8418 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8419 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8421 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8423 PR tree-optimization/46834
8424 PR tree-optimization/46994
8425 PR tree-optimization/46995
8426 * graphite-sese-to-poly.c (used_outside_reduction): New.
8427 (detect_commutative_reduction): Call used_outside_reduction.
8428 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8429 translate_scalar_reduction_to_array only when at least one
8430 loop-phi/close-phi tuple has been detected.
8432 2011-02-08 Richard Guenther <rguenther@suse.de>
8435 * tree-vect-generic.c (expand_vector_operations_1): Update
8437 (expand_vector_operations): ... not here. Cleanup EH info
8438 and the CFG if required.
8440 2011-02-08 Richard Guenther <rguenther@suse.de>
8442 PR tree-optimization/47641
8443 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8444 require type compatibility.
8446 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8448 * gimple-low.c (lower_function_body): Don't remove the location of
8449 the return statement here.
8450 (lower_gimple_return): Do it here instead but only if the return
8451 statement is actually used twice.
8453 2011-02-08 Richard Guenther <rguenther@suse.de>
8455 PR tree-optimization/47632
8456 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8457 unused up_to_stmt parameter, return whether cfg-cleanup is
8458 necessary, remove EH info properly.
8459 (forward_propagate_into_gimple_cond): Adjust caller.
8460 (forward_propagate_into_cond): Likewise.
8461 (forward_propagate_comparison): Likewise.
8462 (tree_ssa_forward_propagate_single_use_vars): Make
8463 forward_propagate_comparison case similar to the two others.
8465 2011-02-08 Nick Clifton <nickc@redhat.com>
8467 * config/mn10300/mn10300.opt (mliw): New command line option.
8468 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8469 (liw_bundling): New automaton.
8470 (liw): New attribute.
8471 (liw_op): New attribute.
8472 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8473 (movsi_internal): Add LIW attributes.
8477 (addsi3): Separate register and immediate alternatives.
8482 (lshrsi3): Likewise.
8483 (ashrsi3): Likewise.
8485 * config/mn10300/mn10300.c (liw_op_names): New
8486 (mn10300_print_operand): Handle 'W' operand descriptor.
8487 (extract_bundle): New function.
8488 (check_liw_constraints): New function.
8489 (liw_candidate): New function.
8490 (mn10300_bundle_liw): New function.
8491 (mn10300_reorg): New function.
8492 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8493 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8494 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8495 __LIW__ or __NO_LIW__.
8496 * doc/invoke.texi: Describe the -mliw command line option.
8498 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8500 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8501 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8502 pthread_mutex_unlock): Remove.
8503 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8504 * config/pa/t-pa64: Likewise.
8505 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8506 shared libc if not linking against libpthread.
8507 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8509 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8512 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8513 on 10.6 and later to ensure that we always use the unwinder from
8514 the system. Only add -no_compact_unwind when tarteting darwin
8517 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8520 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8521 (vec_interleave_lowv2sf): Ditto.
8522 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8523 (vec_extract_oddv2sf): Ditto.
8525 2011-02-07 Mike Stump <mikestump@comcast.net>
8528 Add __ieee_divdc3 entry point.
8529 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8531 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8532 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8533 * config/darwin.c (darwin_rename_builtins): Add.
8534 * config/darwin-protos.h (darwin_rename_builtins): Add.
8536 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8539 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8542 2011-02-07 Mike Stump <mikestump@comcast.net>
8544 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8546 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8549 * config/avr/libgcc.S (exit): Move .endfunc
8551 2011-02-07 Richard Guenther <rguenther@suse.de>
8553 PR tree-optimization/47615
8554 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8555 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8556 (run_scc_vn): Initialize it.
8557 (visit_reference_op_load): Use it.
8558 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8560 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8562 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8563 DImode trapping arithmetic libfuncs.
8565 2011-02-07 Richard Guenther <rguenther@suse.de>
8567 PR tree-optimization/47621
8568 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8570 (execute_update_addresses_taken): ... here. Make it more
8571 conservative in what we accept.
8573 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8575 * config/sparc/freebsd.h (ASM_SPEC): Define.
8576 * config/sparc/vxworks.h (ASM_SPEC): Define.
8578 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8580 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8582 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8584 * doc/invoke.texi: Remove reference to compiler internals from
8587 * reg-notes.def: Remove REG_VALUE_PROFILE.
8588 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8590 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8593 * varasm.c (default_section_type_flags): If decl is NULL,
8594 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8596 2011-02-05 Jie Zhang <jie@codesourcery.com>
8599 * web.c (entry_register): Don't clobber the number of the
8600 first uninitialized reference in used[].
8602 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8604 PR tree-optimization/46194
8605 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8606 (build_classic_dist_vector_1): Do not represent classic distance
8607 vectors when the access functions are variating in different loops.
8609 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8611 * config/mips/iris6.opt: New.
8612 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8614 2011-02-04 Richard Henderson <rth@redhat.com>
8615 Steve Ellcey <sje@cup.hp.com>
8618 * config/ia64/predicates.md (mux1_brcst_element): New.
8619 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8620 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8621 (ia64_unpack_sign): New.
8622 (ia64_expand_unpack): Rewrite using new routines.
8623 (ia64_expand_widen_sum): Ditto.
8624 (ia64_expand_dot_prod_v8qi): Ditto.
8625 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8626 routines, add endian check.
8627 (pmpy2_even): Rename from pmpy2_r, add endian check.
8628 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8629 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8630 (vec_widen_smult_hi_v4hi): Ditto.
8631 (vec_widen_umult_lo_v4hi): Ditto.
8632 (vec_widen_umult_hi_v4hi): Ditto.
8633 (mulv2si3): Change endian checks.
8634 (sdot_prodv4hi): Rewrite with new calls.
8635 (udot_prodv4hi): New.
8636 (vec_pack_ssat_v4hi): Add endian check.
8637 (vec_pack_usat_v4hi): Ditto.
8638 (vec_pack_ssat_v2si): Ditto.
8639 (max1_even): Rename from max1_r, add endian check.
8640 (max1_odd): Rename from max1_l, add endian check.
8641 (*mux1_rev): Format change.
8643 (*mux1_shuf): Ditto.
8645 (*mux1_brcst_v8qi): Use new predicate.
8646 (vec_extract_evenv8qi): Remove endian check.
8647 (vec_extract_oddv8qi): Ditto.
8648 (vec_interleave_lowv4hi): Format change.
8649 (vec_interleave_highv4hi): Ditto.
8650 (mix2_even): Rename from mix2_r, add endian check.
8651 (mix2_odd): Rename from mux2_l, add endian check.
8652 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8653 (vec_extract_evenodd_helper): Format change.
8654 (vec_extract_evenv4hi): Remove endian check.
8655 (vec_extract_oddv4hi): Remove endian check.
8656 (vec_interleave_lowv2si): Format change.
8657 (vec_interleave_highv2si): Format change.
8658 (vec_initv2si): Remove endian check.
8659 (vecinit_v2si): Add endian check.
8660 (reduc_splus_v2sf): Add endian check.
8661 (reduc_smax_v2sf): Ditto.
8662 (reduc_smin_v2sf): Ditto.
8663 (vec_initv2sf): Remove endian check.
8664 (fpack): Add endian check.
8665 (fswap): Add endian check.
8666 (vec_interleave_highv2sf): Add endian check.
8667 (vec_interleave_lowv2sf): Add endian check.
8668 (fmix_lr): Add endian check.
8669 (vec_setv2sf): Format change.
8670 (*vec_extractv2sf_0_be): Use shift to extract operand.
8671 (*vec_extractv2sf_1_be): New.
8672 (vec_pack_trunc_v4hi): Add endian check.
8673 (vec_pack_trunc_v2si): Format change.
8675 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8678 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8679 do bb, locus and block comparison and disallow loads if it is not set.
8680 (stmt_is_replaceable_p): New function.
8681 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8683 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8684 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8686 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8688 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8690 * config/rs6000/xilinx.opt: New.
8691 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8693 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8695 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8697 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8699 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8700 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8701 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8702 secondary_reload_info, xtensa_secondary_reload): Remove.
8703 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8704 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8705 (xtensa_preferred_reload_class): Make static. Change return and
8706 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8707 Use CONST_DOUBLE_P predicate.
8708 (xtensa_preferred_output_reload_class): New function.
8709 (xtensa_secondary_reload): Make static.
8711 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8713 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8714 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8715 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8717 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8720 * output.h (SECTION_RELRO): Define.
8721 (SECTION_MACH_DEP): Adjust.
8722 (get_variable_section): New prototype.
8723 * varpool.c (varpool_finalize_named_section_flags): New function.
8724 (varpool_assemble_pending_decls): Call it.
8725 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8726 * cgraphunit.c (cgraph_output_in_order): Call
8727 varpool_finalize_named_section_flags.
8728 * varasm.c (get_section): Allow section flags conflicts between
8729 relro and read-only sections if the section hasn't been declared yet.
8730 Set SECTION_OVERRIDE after diagnosing section type conflict.
8731 (get_variable_section): No longer static.
8732 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8733 readonly sections that need relocations.
8734 (decl_readonly_section_1): New function.
8735 (decl_readonly_section): Use it.
8738 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8739 Steve Ellcey <sje@cup.hp.com>
8742 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8743 if section attribute used.
8745 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8747 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8748 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8749 (darwin_init_sections): Remove assertion.
8751 2011-02-03 Nick Clifton <nickc@redhat.com>
8753 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8755 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8756 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8757 instead of "n" and "pz".
8758 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8761 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8764 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8765 fma, expand FMA_EXPR as fma{,f,l} call.
8768 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8769 copy them into a unsigned char variable and pass address of it to
8770 lto_output_data_stream.
8773 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8774 around backend_init_target and lang_dependent_init_target calls.
8775 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8776 (verify_cgraph_node): Don't call set_cfun here. Use
8777 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8778 Set error_found for incorrectly represented calls to thunks.
8780 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8783 PR rtl-optimization/43494
8784 * rtl.h (for_each_inc_dec_fn): New type.
8785 (for_each_inc_dec): Declare.
8786 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8787 (for_each_inc_dec_find_inc_dec): New fn.
8788 (for_each_inc_dec_find_mem): New fn.
8789 (for_each_inc_dec): New fn.
8790 * dse.c (struct insn_size): Remove.
8791 (replace_inc_dec, replace_inc_dec_mem): Remove.
8792 (emit_inc_dec_insn_before): New fn.
8793 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8794 (canon_address): Pass mem modes to cselib_lookup.
8795 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8796 (cselib_lookup_from_insn): Likewise.
8797 (cselib_subst_to_values): Likewise.
8798 * cselib.c (find_slot_memmode): New var.
8799 (cselib_find_slot): New fn. Use it instead of
8800 htab_find_slot_with_hash everywhere.
8801 (entry_and_rtx_equal_p): Use find_slot_memmode.
8802 (autoinc_split): New fn.
8803 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8804 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8805 Deal with autoinc. Special-case recursion into MEMs.
8806 (cselib_hash_rtx): Likewise.
8807 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8808 address and MEM modes.
8809 (cselib_subst_to_values): Add memmode, pass it on.
8811 (cselib_lookup): Add memmode argument, pass it on.
8812 (cselib_lookup_from_insn): Add memmode.
8813 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8814 (struct cselib_record_autoinc_data): New.
8815 (cselib_record_autoinc_cb): New fn.
8816 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8817 mode to cselib_lookup. Reset autoinced REGs here instead of...
8818 (cselib_process_insn): ... here.
8819 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8821 (add_uses): Likewise, also to cselib_subst_to_values.
8822 (add_stores): Likewise.
8823 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8824 cselib_subst_to_values.
8825 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8826 * gcse.c (do_local_cprop): Adjusted.
8827 * postreload.c (reload_cse_simplify_set): Adjusted.
8828 (reload_cse_simplify_operands): Adjusted.
8829 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8831 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8833 PR tree-optimization/45122
8834 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8835 unsafe assumptions when there's more than one loop exit.
8837 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8840 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8841 Document using vector double with the load/store builtins, and
8842 that the load/store builtins always use Altivec instructions.
8844 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8845 to use altivec memory instructions, even on VSX.
8846 (vector_altivec_store_<mode>): Ditto.
8848 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8851 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8852 V2DF, V2DI support to load/store overloaded builtins.
8854 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8855 altivec load/store builtins for V2DF/V2DI types.
8857 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8858 set avoid indexed addresses on power6 if -maltivec.
8859 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8860 vector_altivec_load/vector_altivec_store builtins.
8861 (altivec_expand_st_builtin): Ditto.
8862 (altivec_expand_builtin): Add VSX memory builtins.
8863 (rs6000_init_builtins): Add V2DI types to internal types.
8864 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8865 load/store builtins.
8866 (rs6000_address_for_altivec): Insure memory address is appropriate
8869 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8870 vec_vsx_ld and vec_vsx_st.
8871 (vsx_store_<mode>): Ditto.
8873 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8874 variables to hold long long types for VSX vector memory builtins.
8875 (RS6000_BTI_unsigned_long_long): Ditto.
8876 (long_long_integer_type_internal_node): Ditti.
8877 (long_long_unsigned_type_internal_node): Ditti.
8879 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8880 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8881 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8883 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8885 (vec_vsx_st): Ditto.
8887 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8889 * config/pa/pa-hpux10.opt: New.
8890 * config/hpux11.opt (pthread): New Driver option.
8891 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8892 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8894 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8896 * config/ia64/vms.opt: New.
8897 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8899 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8902 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8903 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8904 generator functions.
8905 (vsx_floatuns<VSi><mode>2): Ditto.
8906 (vsx_fix_trunc<mode><VSi>2): Ditto.
8907 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8909 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8911 * config/i386/djgpp.opt (posix): New Driver option.
8913 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8915 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8916 Move to the unsupported targets list.
8918 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8920 PR rtl-optimization/47525
8921 * df-scan.c: Update copyright years.
8922 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8923 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8925 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8927 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8928 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8929 (ASM_OUTPUT_ASCII): Remove.
8930 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8932 2011-02-02 Jeff Law <law@redhat.com>
8935 * reload.c (find_reloads_address): Handle reg+d address where both
8936 components are invalid by reloading the entire address.
8938 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8939 Richard Guenther <rguenther@suse.de>
8941 PR tree-optimization/40979
8943 * passes.c (init_optimization_passes): After LIM call copy_prop
8944 and DCE to clean up.
8945 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8947 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8949 PR tree-optimization/47576
8950 PR tree-optimization/47555
8951 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8952 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8953 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8954 * tree-scalar-evolution.c (follow_ssa_edge): Use
8955 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8957 2011-02-02 Richard Guenther <rguenther@suse.de>
8959 PR tree-optimization/47566
8960 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8962 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8966 * tree-inline.c (declare_return_variable): Remove unused caller
8971 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8972 * cfgexpand.c (account_used_vars_for_block): Use them.
8973 * tree-nrv.c (tree_nrv): Likewise.
8974 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8975 (dump_scope_block): Likewise.
8976 (remove_unused_locals): Likewise.
8980 * tree-inline.c (declare_return_variable): Add result decl to
8981 local decls only once.
8982 * gimple-low.c (record_vars_into): Mark newly-created variables
8985 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8991 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8993 (no_real_insns_p, schedule_block, set_priorities): Drop special
8994 treatment of boundary debug insns.
8995 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8996 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8997 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8998 (BOUNDARY_DEBUG_INSN_P): Likewise.
8999 (SCHEDULE_DEBUG_INSN_P): Likewise.
9000 * sched-rgn.c (init_ready_list): Drop special treatment of
9001 boundary debug insns.
9002 * final.c (rest_of_clean_state): Clear notes' BB.
9004 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9006 * config/openbsd.opt (assert=): New Driver option.
9008 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9010 * config/i386/nto.opt: New.
9011 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9013 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9015 * config/i386/netware.opt: New.
9016 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9018 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9020 * config/interix.opt (posix): New Driver option.
9022 2011-02-01 DJ Delorie <dj@redhat.com>
9024 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9026 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9029 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9031 PR tree-optimization/47561
9032 * toplev.c (process_options): Print the Graphite flags. Add
9033 flag_loop_flatten to the list of options requiring Graphite.
9035 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9037 * config/i386/cygming.opt (posix): New Driver option.
9039 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9041 * config/arm/vxworks.opt: New.
9042 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9044 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9046 * config/alpha/elf.opt: New.
9047 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9048 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9050 2011-02-01 Richard Guenther <rguenther@suse.de>
9052 PR tree-optimization/47559
9053 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9054 store-motion on references that can throw.
9056 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9058 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9059 * tree-pass.h (TDF_CSELIB): New macro.
9060 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9061 cselib_lookup): Check for it rather than for TDF_DETAILS.
9063 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9066 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9069 * opts.c (finish_options): Don't add x_aux_base_name if it is
9072 2011-02-01 Richard Guenther <rguenther@suse.de>
9074 PR tree-optimization/47555
9076 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9078 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9080 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9083 * config/lm32/t-lm32: Add multilib for all CPU options.
9085 2011-02-01 Richard Guenther <rguenther@suse.de>
9087 PR tree-optimization/47541
9088 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9089 sure to have a field at offset zero.
9091 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9093 * config/arc/arc.opt (EB, EL): New Driver options.
9095 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9097 * config/alpha/osf5.opt: New.
9098 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9100 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9102 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9104 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9106 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9108 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9109 is an alias of -floop-interchange and that it requires the
9110 Graphite infrastructure.
9111 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9112 flag_loop_interchange based on the value of flag_tree_loop_linear.
9114 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9115 Richard Guenther <rguenther@suse.de>
9117 PR tree-optimization/47538
9118 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9119 type instead of r1type, except for comparisons. For right
9120 shifts and comparisons punt if there are mismatches in
9121 sizetype vs. non-sizetype types.
9123 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9125 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9128 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9130 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9132 * configure: Regenerate.
9134 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9136 * configure.ac (gcc_cv_ld_static_option): Define.
9137 (gcc_cv_ld_dynamic_option): Define.
9138 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9140 (HAVE_LD_STATIC_DYNAMIC): Update message.
9141 (LD_STATIC_OPTION): Define.
9142 (LD_DYNAMIC_OPTION): Define.
9143 * configure: Regenerate.
9144 * config.in: Regenerate.
9145 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9146 HAVE_LD_STATIC_DYNAMIC]: Use them.
9148 2011-01-31 Nick Clifton <nickc@redhat.com>
9150 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9151 registers inside interrupt handlers if the handler is not a leaf
9154 2011-01-31 Nick Clifton <nickc@redhat.com>
9156 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9157 reg_renumber returning an INVALID_REGNUM.
9159 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9162 * doc/install.texi: Document host options discarded when cross
9163 configuring target libraries.
9165 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9168 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9171 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9173 (no_real_insns_p, schedule_block, set_priorities): Drop special
9174 treatment of boundary debug insns.
9175 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9176 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9177 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9178 (BOUNDARY_DEBUG_INSN_P): Likewise.
9179 (SCHEDULE_DEBUG_INSN_P): Likewise.
9180 * sched-rgn.c (init_ready_list): Drop special treatment of
9181 boundary debug insns.
9182 * final.c (rest_of_clean-state): Clear notes' BB.
9184 2011-01-31 Alan Modra <amodra@gmail.com>
9186 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9187 toc relative expressions as we do in print_operand_address.
9189 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9191 * doc/extend.texi: Follow spelling conventions.
9192 * doc/invoke.texi: Fix a typo.
9194 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9196 * config/hpux11.opt: New.
9197 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9198 ia64*-*-hpux*): Use hpux11.opt.
9200 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9202 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9205 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9207 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9210 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9212 * doc/install.texi (Binaries): Remove outdated reference for
9213 Motorola 68HC11/68HC12 downloads.
9215 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9217 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9220 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9223 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9226 2011-01-28 Ahmad Sharif <asharif@google.com>
9228 * value-prof.c (check_counter): Corrected error message.
9230 2011-01-29 Jie Zhang <jie@codesourcery.com>
9232 * config/arm/arm.c (arm_legitimize_reload_address): New.
9233 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9234 arm_legitimize_reload_address.
9235 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9237 2011-01-28 Ian Lance Taylor <iant@google.com>
9239 * godump.c (go_define): Ignore macros whose definitions include
9240 two adjacent operands.
9242 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9245 * varasm.c (force_const_mem): Store copy of x in desc->constant
9246 instead of x itself.
9247 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9248 itself into REG_EQUAL note.
9250 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9252 * config/freebsd.opt (posix, rdynamic): New Driver options.
9254 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9256 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9258 * configure: Regenerate.
9260 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9262 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9263 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9265 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9267 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9268 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9269 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9270 (s390_preferred_reload_class): Make static. Change return and
9271 'rclass' argument type to reg_class_t.
9273 2011-01-27 Jan Hubicka <jh@suse.cz>
9276 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9277 (process_function_and_variable_attributes): Check defined weakrefs.
9279 2011-01-27 Martin Jambor <mjambor@suse.cz>
9281 PR tree-optimization/47228
9282 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9283 build_ref_for_offset.
9285 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9287 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9289 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9291 PR rtl-optimization/46856
9292 * postreload.c (reload_combine_recognize_const_pattern): Do not
9293 separate cc0 setter and user on cc0 targets.
9295 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9298 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9299 passed a VOID_TYPE expression, immediately emit an error and
9300 return error_mark_node.
9302 2011-01-26 Jeff Law <law@redhat.com>
9304 PR rtl-optimization/47464
9305 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9306 rather than may_trap_p as needed.
9308 2011-01-26 DJ Delorie <dj@redhat.com>
9310 PR rtl-optimization/46878
9311 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9312 setter/user dependency as well.
9314 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9316 PR rtl-optimization/44469
9317 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9318 after removing trivially dead basic blocks.
9320 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9322 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9323 * config/frv/frv.h (LINK_SPEC): Likewise.
9324 * config/i386/netware.h (LINK_SPEC): Likewise.
9325 * config/m68k/linux.h (ASM_SPEC): Likewise.
9326 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9327 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9328 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9329 * config/sparc/linux.h (ASM_SPEC): Likewise.
9330 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9331 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9333 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9335 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9336 * config/frv/frv.h (ASM_SPEC): Likewise.
9337 * config/m68k/linux.h (ASM_SPEC): Likewise.
9338 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9339 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9340 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9341 * config/sparc/linux.h (ASM_SPEC): Likewise.
9342 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9343 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9345 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9347 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9348 * config/frv/frv.h (LINK_SPEC): Likewise.
9349 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9351 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9353 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9354 * config/frv/frv.h (ASM_SPEC): Likewise.
9355 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9356 * config/m68k/linux.h (ASM_SPEC): Likewise.
9357 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9358 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9359 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9360 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9361 * config/sparc/linux.h (ASM_SPEC): Likewise.
9362 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9363 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9364 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9366 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9369 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9371 (vec_extract_evenodd_help): Ditto.
9372 (vec_extract_evenv4hi): Ditto.
9373 (vec_extract_oddv4hi): Ditto.
9374 (vec_interleave_lowv2si): Ditto.
9375 (vec_interleave_highv2si): Ditto.
9376 (vec_extract_evenv2si): Ditto.
9377 (vec_extract_oddv2si: Ditto.
9378 (vec_pack_trunc_v2si): Ditto.
9380 2011-01-22 Jan Hubicka <jh@suse.cz>
9383 * cgraph.h (cgraph_local_info): New field can_change_signature.
9384 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9385 signature can change.
9386 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9388 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9389 (cgraph_function_versioning): We can not change signature of functions
9390 that don't allow that.
9391 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9392 (lto_input_node): Likewise.
9393 * ipa-inline.c (compute_inline_parameters): Compute
9394 local.can_change_signature.
9395 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9396 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9397 functions that can not change signature.
9398 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9399 init_cumulative_args): Do not use local calling conventions
9400 for functions that can not change signature.
9402 2011-01-22 Jan Hubicka <jh@suse.cz>
9404 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9406 2011-01-26 Richard Guenther <rguenther@suse.de>
9408 PR tree-optimization/47190
9409 * cgraphunit.c (process_common_attributes): New function.
9410 (process_function_and_variable_attributes): Use it.
9412 2011-01-26 Richard Guenther <rguenther@suse.de>
9415 * cgraphbuild.c (record_eh_tables): Record reference to personality
9418 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9421 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9422 non-debug insns from moving up.
9424 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9427 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9428 t-dlldir{,-x} fragment for build and add it to tmake_file.
9429 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9430 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9431 * config/i386/t-dlldir: New file.
9432 (SHLIB_DLLDIR): Define.
9433 * config/i386/t-dlldir-x: New file.
9434 (SHLIB_DLLDIR): Define.
9435 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9436 (SHLIB_INSTALL): Use it.
9438 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9441 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9442 lower bound of the allowed Thumb-2 coprocessor load/store
9443 index range to -256. Add explaining comment.
9445 2011-01-25 Ian Lance Taylor <iant@google.com>
9447 * godump.c (go_define): Improve lexing of macro expansion to only
9448 accept expressions which match Go spec.
9450 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9453 * tree.c (handle_dll_attribute): Handle it.
9454 * doc/extend.texi (@item dllexport): Mention it.
9455 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9457 2011-01-25 Ian Lance Taylor <iant@google.com>
9459 PR tree-optimization/26854
9460 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9461 (decl_jump_unsafe): Move higher in file, with no other change.
9462 (bind): Set has_jump_unsafe_decl if appropriate.
9463 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9464 (check_earlier_gotos): Likewise.
9465 (c_check_switch_jump_warnings): Likewise.
9467 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9469 * doc/invoke.texi (Warning Options): Add missing hyphen.
9470 (-fprofile-dir): Minor grammatical fixes.
9471 (-fbranch-probabilities): Likewise.
9473 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9477 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9479 (no_real_insns_p, schedule_block, set_priorities): Drop special
9480 treatment of boundary debug insns.
9481 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9482 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9483 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9484 (BOUNDARY_DEBUG_INSN_P): Likewise.
9485 (SCHEDULE_DEBUG_INSN_P): Likewise.
9486 * sched-rgn.c (init_ready_list): Drop special treatment of
9487 boundary debug insns.
9488 * final.c (rest_of_clean-state): Clear notes' BB.
9490 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9492 * Makefile.in (LAMBDA_H): Removed.
9493 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9494 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9495 lambda-trans.o, and tree-loop-linear.o.
9496 (lto-symtab.o): Remove dependence on LAMBDA_H.
9497 (tree-loop-linear.o): Remove rule.
9498 (lambda-mat.o): Same.
9499 (lambda-trans.o): Same.
9500 (lambda-code.o): Same.
9501 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9502 (tree-vect-slp.o): Same.
9503 * hwint.h (gcd): Moved here.
9504 (least_common_multiple): Same.
9505 * lambda-code.c: Removed.
9506 * lambda-mat.c: Removed.
9507 * lambda-trans.c: Removed.
9508 * lambda.h: Removed.
9509 * tree-loop-linear.c: Removed.
9510 * lto-symtab.c: Do not include lambda.h.
9511 * omega.c (gcd): Removed.
9512 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9513 * tree-data-ref.c (print_lambda_vector): Moved here.
9514 (lambda_vector_copy): Same.
9515 (lambda_matrix_copy): Same.
9516 (lambda_matrix_id): Same.
9517 (lambda_vector_first_nz): Same.
9518 (lambda_matrix_row_add): Same.
9519 (lambda_matrix_row_exchange): Same.
9520 (lambda_vector_mult_const): Same.
9521 (lambda_vector_negate): Same.
9522 (lambda_matrix_row_negate): Same.
9523 (lambda_vector_equal): Same.
9524 (lambda_matrix_right_hermite): Same.
9525 * tree-data-ref.h: Do not include lambda.h.
9526 (lambda_vector): Moved here.
9527 (lambda_matrix): Same.
9528 (dependence_level): Same.
9529 (lambda_transform_legal_p): Removed declaration.
9530 (lambda_collect_parameters): Same.
9531 (lambda_compute_access_matrices): Same.
9532 (lambda_vector_gcd): Same.
9533 (lambda_vector_new): Same.
9534 (lambda_vector_clear): Same.
9535 (lambda_vector_lexico_pos): Same.
9536 (lambda_vector_zerop): Same.
9537 (lambda_matrix_new): Same.
9538 * tree-flow.h (least_common_multiple): Removed declaration.
9539 * tree-parloops.c (lambda_trans_matrix): Moved here.
9541 (LTM_ROWSIZE): Same.
9542 (LTM_COLSIZE): Same.
9543 (LTM_DENOMINATOR): Same.
9544 (lambda_trans_matrix_new): Same.
9545 (lambda_matrix_vector_mult): Same.
9546 (lambda_transform_legal_p): Same.
9547 * tree-pass.h (pass_linear_transform): Removed declaration.
9548 * tree-ssa-loop.c (tree_linear_transform): Removed.
9549 (gate_tree_linear_transform): Removed.
9550 (pass_linear_transform): Removed.
9551 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9552 flag_loop_interchange.
9554 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9556 PR tree-optimization/47265
9557 PR tree-optimization/47443
9558 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9559 if name still has some uses.
9561 2011-01-25 Martin Jambor <mjambor@suse.cz>
9563 PR tree-optimization/47382
9564 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9565 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9567 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9569 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9570 sjlj_except_unwind_info.
9572 2011-01-25 Richard Guenther <rguenther@suse.de>
9574 PR tree-optimization/47426
9575 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9576 visible functions results escape.
9578 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9581 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9582 (arm_get_frame_offsets): Use it.
9584 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9585 Jakub Jelinek <jakub@redhat.com>
9587 PR tree-optimization/47271
9588 * tree-if-conv.c (bb_postdominates_preds): New.
9589 (if_convertible_bb_p): Call bb_postdominates_preds.
9590 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9591 (predicate_scalar_phi): Call bb_postdominates_preds.
9593 2011-01-25 Nick Clifton <nickc@redhat.com>
9595 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9596 * config/rx/rx.c (rx_function_value): Likewise.
9597 (rx_promote_function_mode): Likewise.
9598 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9599 in order to make it legitimate.
9600 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9601 make sure that the first operand is the same as the result register.
9602 (addsi3_unspec): Delete.
9603 (subdi3): Do not accept immediate operands.
9604 (subdi3_internal): Likewise.
9606 2011-01-25 Jeff Law <law@redhat.com>
9608 PR rtl-optimization/37273
9609 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9610 handle them like argument loads from stack slots. Do not double
9611 count memory for memory constants and argument loads from stack slots.
9613 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9615 PR tree-optimization/47427
9616 PR tree-optimization/47428
9617 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9618 coalesce if the new root var would be TREE_READONLY.
9620 2011-01-25 Richard Guenther <rguenther@suse.de>
9623 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9624 correct type for TBAA.
9626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9628 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9629 (close_phi_written_to_memory): Call for_each_index with
9630 dr_indices_valid_in_loop.
9632 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9634 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9635 when it is initialized.
9637 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9639 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9640 call to graphite_find_data_references_in_stmt.
9641 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9642 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9643 call to graphite_find_data_references_in_stmt.
9644 (analyze_drs_in_stmts): Same.
9645 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9646 in which the scalar analysis of indices is performed.
9647 (create_data_ref): Same. Update call to dr_analyze_indices.
9648 (find_data_references_in_stmt): Update call to create_data_ref.
9649 (graphite_find_data_references_in_stmt): Same.
9650 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9652 (create_data_ref): Same.
9653 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9654 call to create_data_ref.
9656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9658 * graphite-sese-to-poly.c (build_poly_scop): Move
9659 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9661 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9663 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9664 VAR_DECL, PARM_DECL, and RESULT_DECL.
9666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9668 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9670 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9671 that have already been marked as PBB_IS_REDUCTION.
9673 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9675 * graphite-scop-detection.c (same_close_phi_node): New.
9676 (remove_duplicate_close_phi): New.
9677 (make_close_phi_nodes_unique): New.
9678 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9682 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9683 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9684 of both data references to be the same.
9686 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9688 * graphite-dependences.c (build_lexicographical_constraint): Remove
9690 (build_lexicographical_constraint): Adjust call to
9691 ppl_powerset_is_empty.
9692 (dependence_polyhedron): Same.
9693 (graphite_legal_transform_dr): Same.
9694 (graphite_carried_dependence_level_k): Same.
9695 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9697 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9699 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9701 * graphite-sese-to-poly.c
9702 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9703 (close_phi_written_to_memory): New.
9704 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9709 * doc/install.texi: Update the expected version number of PPL to 0.11.
9710 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9711 #if PPL_VERSION_MINOR < 11.
9713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9715 * graphite-dependences.c: Include graphite-cloog-util.h.
9716 (new_poly_ddr): Inlined into dependence_polyhedron.
9717 (free_poly_ddr): Moved close by new_poly_ddr.
9718 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9719 Early return NULL when ppl_powerset_is_empty returns true.
9720 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9721 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9722 (graphite_legal_transform_dr): Call new_poly_ddr.
9723 (graphite_carried_dependence_level_k): Same.
9724 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9725 (dot_transformed_deps_stmt_1): Removed.
9726 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9727 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9728 (dot_deps_1): Call dot_deps_2.
9729 * Makefile.in (graphite-dependences.o): Add missing dependence on
9730 graphite-cloog-util.h.
9732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9734 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9735 (build_lexicographical_constraint): Same.
9736 (dependence_polyhedron_1): Same.
9737 (graphite_legal_transform_dr): Same.
9738 (graphite_carried_dependence_level_k): Same.
9739 * graphite-ppl.c (ppl_powerset_is_empty): New.
9740 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9741 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9745 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9746 the "a followed by b" relation and document it.
9748 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9750 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9751 iteration when the bag of constraints is empty.
9753 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9755 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9759 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9760 nest and two loop depths as parameters.
9761 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9762 lst_perfect_nestify.
9764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9766 * graphite-dependences.c (print_pddr): Call
9767 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9769 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9771 * graphite-ppl.c (debug_gmp_value): New.
9772 * graphite-ppl.h (debug_gmp_value): Declared.
9774 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9776 * doc/install.texi: Document availability of cloog-0.16.
9778 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9780 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9781 invalid postdominance info.
9783 2011-01-24 Jan Hubicka <jh@suse.cz>
9786 * doc/extend.texi (weak pragma): Drop claim that it must
9787 appear before definition.
9788 * varasm.c (merge_weak, declare_weak): Only sanity check
9789 that DECL is not output at a time it is declared weak.
9791 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9793 * machmode.def: Fixed comments.
9795 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9797 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9799 2011-01-24 Paul Koning <ni1d@arrl.net>
9801 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9804 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9807 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9808 (block_info): Add scanned and prev.
9809 (move_or_delete_vzeroupper_2): Return if the basic block
9810 has been scanned and the upper 128bit state is unchanged
9812 (move_or_delete_vzeroupper_1): Return true if the exit
9814 (move_or_delete_vzeroupper): Visit basic blocks using the
9815 work-list based algorithm based on vt_find_locations in
9818 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9820 2011-01-24 Nick Clifton <nickc@redhat.com>
9822 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9823 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9824 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9825 then define __v850e1__.
9826 * doc/invoke.texi: Document -mv850es.
9828 2011-01-24 Richard Henderson <rth@redhat.com>
9830 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9831 compound unordered comparisons.
9832 * config/rx/rx.c (rx_split_fp_compare): Remove.
9833 * config/rx/rx-protos.h: Update.
9834 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9835 (cbranchsf4): Don't call rx_split_fp_compare.
9836 (*cbranchsf4): Use rx_split_cbranch.
9837 (*cmpsf): Don't accept "i" constraint.
9838 (*conditional_branch): Only valid after reload.
9839 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9841 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9844 * config/rs6000/altivec.md (vector constant splitters): Add
9845 support for creating vector single precision constants if -mvsx is
9846 used and we would create the constant using Altivec primitives.
9848 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9849 Richard Sandiford <rdsandiford@googlemail.com>
9851 PR rtl-optimization/47166
9852 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9853 mechanism for PRE_MODIFY and POST_MODIFY.
9854 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9857 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9859 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9861 2011-01-22 Jan Hubicka <jh@suse.cz>
9864 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9866 2011-01-22 Jan Hubicka <jh@suse.cz>
9868 PR tree-optimization/43884
9870 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9871 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9873 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9875 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9876 * config/s390/s390.c (s390_register_move_cost,
9877 s390_memory_move_cost): New.
9878 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9880 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9883 * except.c (sjlj_assign_call_site_values): Move setting the
9884 crtl->uses_eh_lsda flag to ...
9885 (sjlj_mark_call_sites): ... here.
9886 (sjlj_emit_function_enter): Support NULL dispatch label.
9887 (sjlj_build_landing_pads): In a function with no landing pads
9888 that still has must-not-throw regions, generate code to register
9889 a personality function with empty LSDA.
9891 2011-01-21 Richard Henderson <rth@redhat.com>
9893 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9895 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9897 * compare-elim.c: New file.
9898 * Makefile.in (OBJS-common): Add it.
9899 (compare-elim.o): New.
9900 * common.opt (fcompare-elim): New.
9901 * opts.c (default_options_table): Add OPT_fcompare_elim.
9902 * tree-pass.h (pass_compare_elim_after_reload): New.
9903 * passes.c (init_optimization_passes): Add it.
9904 * recog.h: Protect against re-inclusion.
9905 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9906 * doc/invoke.texi (-fcompare-elim): Document it.
9907 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9908 * doc/tm.texi: Rebuild.
9910 2011-01-22 Nick Clifton <nickc@redhat.com>
9912 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9913 rx_split_fp_compare.
9915 2011-01-22 Nick Clifton <nickc@redhat.com>
9917 * config/rx/rx.md (UNSPEC_CONST): New.
9918 (deallocate_and_return): Wrap the amount popped off the stack in
9919 an UNSPEC_CONST in order to stop it being rejected by
9920 -mmax-constant-size.
9921 (pop_and_return): Add a "(return)" rtx.
9922 (call): Drop the immediate operand.
9923 (call_internal): Likewise.
9924 (call_value): Likewise.
9925 (call_value_internal): Likewise.
9926 (sibcall_internal): Likewise.
9927 (sibcall_value_internal): Likewise.
9928 (sibcall): Likewise. Generate an explicit call using
9930 (sibcall_value): Likewise.
9931 (mov<>): FAIL if a constant operand is not legitimate.
9932 (addsi3_unpsec): New pattern.
9934 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9935 (ok_for_max_constant): New function.
9936 (gen_safe_add): New function.
9937 (rx_expand_prologue): Use gen_safe_add.
9938 (rx_expand_epilogue): Likewise.
9939 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9942 2011-01-21 Jeff Law <law@redhat.com>
9944 PR tree-optimization/47053
9945 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9946 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9947 statements are deleted.
9948 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9949 is nonempty, then purge dead edges and cleanup the CFG.
9951 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9955 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9957 * tree-dfa.c (create_var_ann): Mark variable as used.
9959 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9962 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9963 notes from other section in hot/cold partitioning even if
9964 last_action is -3. Increment call_site_base.
9966 PR rtl-optimization/47366
9967 * fwprop.c (forward_propagate_into): Return bool. If
9968 any changes are made, -fnon-call-exceptions is used and
9969 REG_EH_REGION note is present, call purge_dead_edges
9970 and return true if it purged anything.
9971 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9972 any EH edges were purged.
9974 2011-01-21 Jeff Law <law@redhat.com>
9976 PR rtl-optimization/41619
9977 * caller-save.c (setup_save_areas): Break out code to determine
9978 which hard regs are live across calls by examining the reload chains
9979 so that it is always used.
9980 Eliminate code which checked REG_N_CALLS_CROSSED.
9982 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9984 PR tree-optimization/47355
9985 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9986 NOP has non-debug uses beyond PHIs in new_bb.
9988 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9991 * cfgexpand.c (account_used_vars_for_block): Only account vars
9992 that are annotated as used.
9993 (estimated_stack_frame_size): Don't set TREE_USED.
9994 * tree-dfa.c (create_var_ann): Mark variable as used.
9996 2011-01-21 Richard Guenther <rguenther@suse.de>
9999 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10001 2011-01-21 Richard Guenther <rguenther@suse.de>
10003 PR tree-optimization/47365
10004 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10005 (vn_reference_lookup_pieces): Adjust.
10006 (vn_reference_lookup): Likewise.
10007 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10008 (vn_reference_lookup_3): Only look through kills if in
10009 VN_WALKREWRITE mode.
10010 (vn_reference_lookup_pieces): Adjust.
10011 (vn_reference_lookup): Likewise.
10012 (visit_reference_op_load): Likewise.
10013 (visit_reference_op_store): Likewise.
10014 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10015 (compute_avail): Likewise.
10016 (eliminate): Likewise.
10018 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10020 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10021 DECL_IGNORED_P non-reg vars if they are used.
10023 PR tree-optimization/47391
10024 * varpool.c (const_value_known_p): Return false if
10027 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10030 * config/i386/i386.c (ix86_local_alignment): Handle
10031 case for va_list_type_node is nil.
10032 (ix86_canonical_va_list_type): Likewise.
10034 2011-01-21 Alan Modra <amodra@gmail.com>
10036 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10037 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10039 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10041 * config/arm/arm.md (define_attr type): Rename f_load
10042 and f_store to f_fpa_load and f_fpa_store. Update.
10043 (write_conflict): Deal with rename fallout.
10044 (*push_fp_multi): Likewise.
10045 * config/arm/fpa.md (f_load): Use f_fpa_load.
10046 (f_store): Use f_fpa_store.
10047 (*movsf_fpa): Likewise.
10048 (*movdf_fpa): Likewise.
10049 (*movxf_fpa): Likewise.
10050 (*thumb2_movsf_fpa): Likewise.
10051 (*thumb2_movdf_fpa): Likewise.
10052 (*thumb2_movxf_fpa): Likewise.
10053 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10054 f_loadd and f_stored.
10055 (*thumb2_movdi_vfp): Likewise.
10056 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10057 (*thumb2_movsi_vfp): Likewise.
10058 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10059 Use f_loads instead of f_load.
10060 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10062 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10064 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10065 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10066 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10067 (xtensa_mode_dependent_address_p): New function.
10068 (constantpool_address_p): Make static. Change return type to bool.
10069 Change argument type to const_rtx. Use CONST_INT_P predicate.
10071 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10074 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10076 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10079 * cfgexpand.c (expand_debug_expr): Instead of generating
10080 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10083 2011-01-20 Richard Guenther <rguenther@suse.de>
10085 PR middle-end/47370
10086 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10087 the pointer operand of MEM_REFs.
10089 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10091 PR tree-optimization/46130
10092 * ipa-split.c (consider_split): If return_bb contains non-virtual
10093 PHIs other than for retval or if split_function would not adjust it,
10096 2011-01-20 Richard Guenther <rguenther@suse.de>
10098 PR tree-optimization/47167
10099 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10100 Revert previous change, only avoid enumeral type changes.
10102 2011-01-19 Mike Stump <mikestump@comcast.net>
10104 * doc/tm.texi.in (BRANCH_COST): Englishify.
10105 * doc/tm.texi (BRANCH_COST): Likewise.
10107 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10110 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10111 (gen_scheduled_generic_parms_dies): New functions.
10112 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10113 generation for the end of CU compilation.
10114 (dwarf2out_finish): Generate template parameters DIEs here.
10116 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10119 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10120 debug bind stmt on merge edges.
10122 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10126 * function.c (instantiate_expr): Instantiate incoming rtl of
10127 implicit arguments, and recurse on VALUE_EXPRs.
10128 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10129 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10131 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10133 * c-parser.c (c_parser_for_statement): Initialize
10134 collection_expression.
10136 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10138 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10140 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10142 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10143 (LINK_SHLIB_SPEC): Don't use %(link_path).
10144 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10146 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10148 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10149 (NO_SHARED_LIB_SUPPORT): Remove.
10150 (LINK_SHLIB_SPEC): Remove one conditional definition.
10152 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10154 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10156 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10157 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10158 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10159 %{call_shared} and conditionals on these options not being passed.
10160 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10163 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10165 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10168 * ipa-split.c: Spelling fixes.
10170 2011-01-19 Richard Henderson <rth@redhat.com>
10172 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10173 (*mulsi3): Likewise.
10175 * longlong.h [__mn10300__] (count_leading_zeros): New.
10176 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10177 [__mn10300__] (add_ssaaaa, subddmmss): New.
10178 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10179 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10181 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10183 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10185 2011-01-19 Richard Henderson <rth@redhat.com>
10187 * config/mn10300/mn10300.md (addsi3_flags): New.
10188 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10189 (subsi3_flags, subc_internal, subdi3): New.
10190 (subdi3_internal, *subdi3_degenerate): New.
10191 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10193 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10194 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10195 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10196 * config/mn10300/mn10300-protos.h: Update.
10197 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10198 (return_ret): Likewise. Rename from return_internal_regs.
10199 (return_internal): Remove.
10201 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10202 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10203 (mn10300_legitimate_constant_p): Likewise.
10204 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10205 (mn10300_frame_size): New.
10206 (mn10300_expand_prologue): Use it.
10207 (mn10300_expand_epilogue): Likewise.
10208 (mn10300_initial_offset): Likewise.
10209 * config/mn10300/mn10300-protos.h: Update.
10210 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10211 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10212 (prologue, epilogue, return_internal): Tidy output code.
10213 (mn10300_store_multiple_operation, return): Likewise.
10214 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10215 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10216 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10217 (load_pic, am33_load_pic): New.
10218 (mn10300_load_pic0, mn10300_load_pic1): New.
10220 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10221 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10222 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10223 (cc_flags_for_mode, cc_flags_for_code): New.
10224 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10225 overflow flag is not valid. Validate that the flags we need
10226 for the comparison are valid.
10227 (mn10300_output_cmp): Remove.
10228 (mn10300_output_add): New.
10229 (mn10300_select_cc_mode): Use cc_flags_for_code.
10230 (mn10300_split_cbranch): New.
10231 (mn10300_match_ccmode): New.
10232 (mn10300_split_and_operand_count): New.
10233 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10235 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10236 (addsi3): ... here. Use mn10300_output_add.
10237 (*addsi3_flags): New.
10238 (*am33_subsi3, *mn10300_subsi3): Merge...
10239 (subsi3): ... here. Use attribute isa.
10240 (*subsi3_flags): New.
10241 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10243 (*am33_andsi3, *mn10300_andsi3): Merge...
10244 (andsi3): ... here.
10245 (*andsi3_flags): New.
10246 (andsi3 splitters): New.
10247 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10248 (iorsi3): ... here.
10249 (*iorsi3_flags): New.
10250 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10251 (xorsi3): ... here.
10252 (*xorsi3_flags): New.
10253 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10254 (one_cmplsi2): ... here.
10255 (*one_cmplsi2_flags): New.
10256 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10257 instead of "dax" in constraints. Use mn10300_split_cbranch.
10258 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10259 use matching constraints to eliminate a self-comparison.
10260 (*integer_conditional_branch): Rename from integer_conditional_branch.
10261 Use int_mode_flags to match CC_REG.
10262 (*cbranchsi4_btst, *btstsi): New.
10263 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10264 mn10300_split_cbranch.
10265 (*am33_cmpsf): Rename from am33_cmpsf.
10266 (*float_conditional_branch): Rename from float_conditional_branch.
10267 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10268 (zero_extendqisi2): ... here.
10269 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10270 (zero_extendhisi2): ... here.
10271 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10272 (extendqisi2): ... here.
10273 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10274 (extendhisi2): ... here.
10275 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10276 (ashlsi3): ... here.
10277 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10278 (lshrsi3): ... here.
10279 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10280 (ashrsi3): ... here.
10281 (consecutive add peephole): Remove.
10282 * config/mn10300/predicates.md (label_ref_operand): New.
10283 (int_mode_flags): New.
10284 (CCZN_comparison_operator): New.
10286 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10287 (throughput_42_latency_43): New reservation.
10288 (mulsidi3, umulsidi3): New expanders.
10289 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10290 the MDR register to allocation; separately allocate the low and
10291 high parts of the DImode result.
10292 (umulsidi3_internal): Similarly.
10293 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10294 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10295 (udivsi3, umodsi3): Remove.
10296 (udivmodsi4, divmodsi4): New expanders.
10297 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10298 (*divmodsi4): Simiarly.
10299 (ext_internal): New.
10301 * config/mn10300/constraints.md ("z"): New constraint.
10302 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10303 (FIXED_REGISTERS): Don't fix MDR.
10304 (CALL_USED_REGSITERS): Reformat nicely.
10305 (REG_ALLOC_ORDER): Add MDR.
10306 (enum regclass): Add MDR_REGS.
10307 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10308 (IRA_COVER_CLASSES): Add MDR_REGS.
10309 (REGNO_REG_CLASS): Handle MDR_REG.
10310 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10311 (mn10300_register_move_cost): Likewise.
10312 * config/mn10300/mn10300.md (MDR_REG): New.
10313 (*movsi_internal): Handle moves to/from MDR_REGS.
10315 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10317 (mn10300_secondary_reload): Tidy combination reload classes.
10318 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10319 addresses for AM33. Allow symbolic offsets for reg+imm.
10320 (mn10300_regno_in_class_p): New.
10321 (mn10300_legitimize_reload_address): New.
10322 * config/mn10300/mn10300.h (enum reg_class): Remove
10323 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10324 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10325 SP_OR_GENERAL_REGS.
10326 (REG_CLASS_NAMES): Update to match.
10327 (REG_CLASS_CONTENTS): Likewise.
10328 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10329 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10330 (REGNO_IN_RANGE_P): Remove.
10331 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10332 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10333 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10334 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10335 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10336 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10337 (REGNO_GENERAL_P): New.
10338 (HAVE_POST_MODIFY_DISP): New.
10339 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10340 (LEGITIMIZE_RELOAD_ADDRESS): New.
10341 * config/mn10300/mn10300-protos.h: Update.
10343 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10344 DATA_REGS for AM33 stack-pointer destination.
10345 (mn10300_preferred_output_reload_class): Likewise.
10346 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10347 into a form appropriate for ...
10348 (TARGET_SECONDARY_RELOAD): New.
10349 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10350 * config/mn10300/mn10300-protos.h: Update.
10351 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10352 reload_insi; use the "A" constraint for the scratch; handle AM33
10353 moves of sp to non-address registers.
10355 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10356 (*movqi_internal): ... here.
10357 (*am33_movhi, *mn10300_movhi): Merge into...
10358 (*movhi_internal): ... here.
10359 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10360 as the source/destination of moves from/to SP.
10361 (movsf): Only allow for AM33-2.
10362 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10363 any integer constant constraint. Only allow for AM33-2. Tidy
10364 all of the alternative outputs.
10365 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10366 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10368 (udivsi3, umodsi3): New patterns for MN103 only.
10370 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10372 * doc/tm.texi.in: Spell out that a lack of register class unions
10374 * doc/tm.texi: Regenerate.
10376 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10378 PR rtl-optimization/47337
10379 * dce.c (check_argument_store): New function.
10380 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10382 PR tree-optimization/47290
10383 * tree-eh.c (infinite_empty_loop_p): New function.
10384 (cleanup_empty_eh): Use it.
10386 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10389 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10390 (a64_expand_widen_sum): Ditto.
10391 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10392 (vec_extract_evenodd_help): Ditto.
10393 (vec_extract_evenv4hi): Ditto.
10394 (vec_extract_oddv4hi): Ditto.
10395 (vec_extract_evenv2si): Ditto.
10396 (vec_extract_oddv2si): Ditto.
10397 (vec_extract_evenv2sf): Ditto.
10398 (vec_extract_oddv2sf): Ditto.
10399 (vec_pack_trunc_v4hi: Ditto.
10400 (vec_pack_trunc_v2si): Ditto.
10401 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10402 (vec_interleave_highv8qi): Ditto.
10404 (vec_extract_oddv8qi): Ditto.
10405 (vec_interleave_lowv4hi): Ditto.
10406 (vec_interleave_highv4hi): Ditto.
10407 (vec_interleave_lowv2si): Ditto.
10408 (vec_interleave_highv2si): Ditto.
10410 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10412 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10413 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10414 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10415 (pa_c_mode_for_suffix): New.
10416 (TARGET_EXPAND_BUILTIN): Define.
10417 (TARGET_C_MODE_FOR_SUFFIX): Define.
10418 (pa_builtins): Define.
10419 (pa_init_builtins): Register __float128 type and init new support
10421 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10422 * config/pa/quadlib.c (_U_Qfcopysign): New.
10424 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10426 PR middle-end/46894
10427 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10428 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10431 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10433 PR tree-optimization/47179
10434 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10435 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10437 2011-01-18 Richard Guenther <rguenther@suse.de>
10439 PR rtl-optimization/47216
10440 * emit-rtl.c: Include tree-flow.h.
10441 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10442 of replicating it with different semantics.
10443 * Makefile.in (emit-rtl.o): Adjust.
10445 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10447 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10448 (cortex_a9_dp): Handle neon types correctly.
10450 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10452 PR rtl-optimization/47299
10453 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10454 subtarget. Use normal multiplication if both operands are constants.
10455 * expmed.c (expand_widening_mult): Don't try to optimize constant
10456 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10459 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10461 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10462 spacing after 'e.g.', typos, comma, hyphenation.
10464 2011-01-17 Richard Henderson <rth@redhat.com>
10466 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10467 (rx_restricted_mem_operand): New.
10468 (rx_shift_operand): Use register_operand.
10469 (rx_source_operand, rx_compare_operand): Likewise.
10470 * config/rx/rx.md (addsi3_flags): New expander.
10471 (adddi3): Rewrite as expander.
10472 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10473 (subsi3_flags): New expander.
10474 (subdi3): Rewrite as expander.
10475 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10477 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10478 (rx_init_builtins): Remove sat builtin.
10479 (rx_expand_builtin): Likewise.
10480 * config/rx/rx.md (ssaddsi3): New.
10481 (*sat): Rename from sat. Represent the CC_REG input.
10483 * config/rx/predicates.md (rshift_operator): New.
10484 * config/rx/rx.c (rx_expand_insv): Remove.
10485 * config/rx/rx-protos.h: Update.
10486 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10487 operand to the canonical position.
10488 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10489 (*bitclr, *bitclr_in_memory): Similarly.
10490 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10491 (insv): Retain the zero_extract in the expansion.
10493 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10494 (bswaphi2, bitinvert, revw): Likewise.
10496 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10497 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10498 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10499 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10500 (bitset, bitset_in_memory): Likewise.
10501 (bitinvert, bitinvert_in_memory): Likewise.
10502 (bitclr, bitclr_in_memory): Likewise.
10503 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10504 (rx_strend, rx_cmpstrn): Likewise.
10505 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10506 (bitop peep2 patterns): Remove.
10508 * config/rx/rx.c (rx_match_ccmode): New.
10509 * config/rx/rx-protos.h: Update.
10510 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10511 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10512 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10513 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10514 (fix_truncsfsi2, floatsisf2): Likewise.
10515 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10516 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10517 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10518 (*subsi3_flags, *xorsi3_flags): New.
10520 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10522 * config/rx/rx.c (rx_print_operand): Remove workaround for
10523 unsplit comparison operations.
10525 * config/rx/rx.md (movsicc): Split after reload.
10526 (*movsicc): Merge *movsieq and *movsine via match_operator.
10527 (*stcc): New pattern.
10529 * config/rx/rx.c (rx_float_compare_mode): Remove.
10530 * config/rx/rx.h (rx_float_compare_mode): Remove.
10531 * config/rx/rx.md (cstoresi4): Split after reload.
10532 (*sccc): New pattern.
10534 * config/rx/predicates.md (label_ref_operand): New.
10535 (rx_z_comparison_operator): New.
10536 (rx_zs_comparison_operator): New.
10537 (rx_fp_comparison_operator): New.
10538 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10539 Validate that the flags are set properly for the comparison.
10540 (rx_gen_cond_branch_template): Remove.
10541 (rx_cc_modes_compatible): Remove.
10542 (mode_from_flags): New.
10543 (flags_from_code): Rename from flags_needed_for_conditional.
10544 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10545 (rx_select_cc_mode): Likewise.
10546 (rx_split_fp_compare): New.
10547 (rx_split_cbranch): New.
10548 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10549 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10550 (*cbranchsf4): Similarly.
10551 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10552 match_operator and rx_split_cbranch.
10553 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10554 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10555 (*cmpsi): Rename from cmpsi.
10556 (*tstsi): Rename from tstsi.
10557 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10558 (*conditional_branch): Rename from conditional_branch.
10559 (*reveresed_conditional_branch): Remove.
10560 (b<code>): Remove expander.
10561 * config/rx/rx-protos.h: Update.
10563 * config/rx/rx.c (rx_compare_redundant): Remove.
10564 * config/rx/rx.md (cmpsi): Don't use it.
10565 * config/rx/rx-protos.h: Update.
10567 * config/rx/rx-modes.def (CC_F): New mode.
10568 * config/rx/rx.c (rx_select_cc_mode): New.
10569 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10570 * config/rx/rx-protos.h: Update.
10572 2011-01-17 Richard Henderson <rth@redhat.com>
10574 * except.c (dump_eh_tree): Fix stray ; after for statement.
10576 2011-01-17 Richard Guenther <rguenther@suse.de>
10578 PR tree-optimization/47313
10579 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10580 handling before copying the body. Properly deal with
10581 by-reference result in SSA form.
10583 2011-01-17 Ian Lance Taylor <iant@google.com>
10586 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10587 (struct_value_alias_set): Don't define.
10588 (sparc_option_override): Don't set sparc_sr_alias_set and
10589 struct_value_alias_set.
10590 (save_or_restore_regs): Use gen_frame_mem rather than calling
10592 (sparc_struct_value_rtx): Likewise.
10594 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10597 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10598 (_mm_maskstore_pd): Likewise.
10599 (_mm_maskload_ps): Likewise.
10600 (_mm_maskstore_ps): Likewise.
10601 (_mm256_maskload_pd): Change mask to __m256i.
10602 (_mm256_maskstore_pd): Likewise.
10603 (_mm256_maskload_ps): Likewise.
10604 (_mm256_maskstore_ps): Likewise.
10606 * config/i386/i386-builtin-types.def: Updated.
10607 (ix86_expand_special_args_builtin): Likewise.
10609 * config/i386/i386.c (bdesc_special_args): Update
10610 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10611 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10612 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10613 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10615 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10616 Use <avxpermvecmode> on mask register.
10617 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10619 2011-01-17 Olivier Hainque <hainque@adacore.com>
10620 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10621 Eric Botcazou <ebotcazou@adacore.com>
10624 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10625 if <= USHRT_MAX in 32-bit mode.
10627 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10629 * doc/install.texi (Configuration, Specific): Wrap long
10630 lines in examples. Allow line wrapping in long options
10631 and URLs where beneficial for PDF output.
10633 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10635 * config/mips/mips.c (mips_classify_symbol): Don't return
10636 SYMBOL_PC_RELATIVE for nonlocal labels.
10638 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10640 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10642 2011-01-15 Jan Hubicka <jh@suse.cz>
10644 PR tree-optimization/47276
10645 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10646 declarations as needed.
10648 2011-01-15 Martin Jambor <mjambor@suse.cz>
10650 * common.opt (fdevirtualize): New flag.
10651 * doc/invoke.texi (Option Summary): Document it.
10652 * opts.c (default_options_table): Add devirtualize flag.
10653 * ipa-prop.c (detect_type_change): Return immediately if
10654 devirtualize flag is not set.
10655 (detect_type_change_ssa): Likewise.
10656 (compute_known_type_jump_func): Likewise.
10657 (ipa_analyze_virtual_call_uses): Likewise.
10659 2011-01-14 Martin Jambor <mjambor@suse.cz>
10661 PR tree-optimization/45934
10662 PR tree-optimization/46302
10663 * ipa-prop.c (type_change_info): New type.
10664 (stmt_may_be_vtbl_ptr_store): New function.
10665 (check_stmt_for_type_change): Likewise.
10666 (detect_type_change): Likewise.
10667 (detect_type_change_ssa): Likewise.
10668 (compute_complex_assign_jump_func): Check for dynamic type change.
10669 (compute_complex_ancestor_jump_func): Likewise.
10670 (compute_known_type_jump_func): Likewise.
10671 (compute_scalar_jump_functions): Likewise.
10672 (ipa_analyze_virtual_call_uses): Likewise.
10673 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10675 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10677 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10678 * config/i386/i386.opt (msse5): New Alias.
10680 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10682 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10683 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10684 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10685 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10687 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10689 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10691 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10692 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10693 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10694 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10696 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10698 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10700 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10702 2011-01-14 Mike Stump <mikestump@comcast.net>
10704 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10705 * config/fr30/fr30.md: Likweise
10706 (movsi_push): Likewise.
10707 (movsi_pop): Likewise.
10708 (enter_func): Likewise.
10709 * config/moxie/moxie.md (movsi_push): Likewise.
10710 (movsi_pop): Likewise.
10712 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10714 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10715 %{no_archive} %{exact_version}.
10716 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10717 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10718 %{no_archive} %{exact_version}.
10719 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10720 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10721 * config/mips/vxworks.h: Likewise.
10723 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10725 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10729 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10730 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10734 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10737 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10739 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10741 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10742 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10744 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10745 Don't handle -shlib.
10747 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10749 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10750 (CC1_SPEC): Don't handle -profile.
10752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10754 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10755 * config/mips/mips.h (CC1_SPEC): Likewise.
10757 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10759 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10760 * config/mips/mips.h (CC1_SPEC): Likewise.
10762 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10764 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10765 * config/m32r/linux.h (LINK_SPEC): Likewise.
10766 * config/mips/linux.h (LINK_SPEC): Likewise.
10767 * config/mips/linux64.h (LINK_SPEC): Likewise.
10768 * config/sparc/linux.h (LINK_SPEC): Likewise.
10769 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10770 LINK_SPEC): Likewise.
10771 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10773 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10775 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10777 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10779 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10781 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10782 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10786 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10788 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10790 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10791 supports -Bstatic/-Bdynamic.
10792 * configure: Regenerate.
10794 2011-01-14 Jan Hubicka <jh@suse.cz>
10795 Jack Howarth <howarth@bromo.med.uc.edu>
10798 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10799 when checking debug_info_level. Test write_symbols instead of
10800 debug_hooks->var_location when setting flag_var_tracking_uninit.
10802 2011-01-14 Richard Guenther <rguenther@suse.de>
10804 PR tree-optimization/47179
10805 * target.def (ref_may_alias_errno): New target hook.
10806 * targhooks.h (default_ref_may_alias_errno): Declare.
10807 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10808 (default_ref_may_alias_errno): New function.
10809 * target.h (struct ao_ref_s): Declare.
10810 * tree-ssa-alias.c: Include target.h.
10811 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10812 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10813 (targhooks.o): Likewise.
10814 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10815 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10817 2011-01-14 Richard Guenther <rguenther@suse.de>
10819 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10821 2011-01-14 Richard Guenther <rguenther@suse.de>
10823 PR tree-optimization/47280
10824 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10825 return CFG changes.
10826 (tree_ssa_forward_propagate_single_use_vars): Deal with
10827 CFG changes from associate_plusminus.
10829 2011-01-14 Richard Guenther <rguenther@suse.de>
10831 PR middle-end/47281
10833 2011-01-11 Richard Guenther <rguenther@suse.de>
10835 PR tree-optimization/46076
10836 * tree-ssa.c (useless_type_conversion_p): Conversions from
10837 unprototyped to empty argument list function types are useless.
10839 2011-01-14 Richard Guenther <rguenther@suse.de>
10841 PR tree-optimization/47286
10842 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10844 2011-01-14 Martin Jambor <mjambor@suse.cz>
10846 PR middle-end/46823
10847 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10849 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10851 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10852 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10853 * config/xtensa/xtensa.c (xtensa_libcall_value,
10854 xtensa_function_value_regno_p): New functions.
10855 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10857 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10860 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10862 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10863 New function prototype.
10864 * config/i386/winnt.c (i386_pe_assemble_visibility):
10865 Warn only if attribute was specified by user.
10867 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10870 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10872 (floatunsdidf2_fcfidu): Ditto.
10874 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10876 * config/s390/s390.c (print_operand_address): Replace 'error' with
10877 'output_operand_lossage'.
10878 (print_operand): Likewise.
10880 2011-01-13 Jeff Law <law@redhat.com>
10882 PR rtl-optimization/39077
10883 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10884 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10885 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10886 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10887 * gcse.c (prune_insertions_deletions): New function.
10888 (compute_pre_data): Use it.
10890 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10893 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10895 (prune_unused_types_mark): Use it.
10897 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10899 PR rtl-optimization/45352
10900 * sel-sched.c: Update copyright years.
10901 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10902 in the advancing loop when we have issued issue_rate insns.
10904 2011-01-12 Richard Henderson <rth@redhat.com>
10906 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10907 (TARGET_MD_ASM_CLOBBERS): New.
10909 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10910 (TARGET_DELEGITIMIZE_ADDRESS): New.
10912 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10913 (clzsi2, *bsch): New patterns.
10915 * config/mn10300/mn10300.md (INT): New mode iterator.
10916 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10918 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10919 flag_split_wide_types.
10921 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10922 (mn10300_trampoline_init): Rewrite without a template, an immediate
10923 load and a direct branch.
10924 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10926 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10928 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10929 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10930 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10931 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10933 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10936 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10939 2011-01-12 Jan Hubicka <jh@suse.cz>
10942 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10943 (PLUGIN_COND_CLOSE): New macro.
10944 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10946 2011-01-12 Richard Guenther <rguenther@suse.de>
10949 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10950 register variables in a MEM_REF.
10952 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10954 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10955 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10956 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10957 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10958 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10959 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10960 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10961 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10962 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10963 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10964 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10965 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10966 * config/gnu-user.h: New. Copied from linux.h.
10967 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10968 GNU_USER_TARGET_STARTFILE_SPEC.
10969 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10970 GNU_USER_TARGET_ENDFILE_SPEC.
10971 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10972 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10973 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10974 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10975 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10976 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10977 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10978 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10979 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10980 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10981 * config/arm/linux-eabi.h (CC1_SPEC): Use
10982 GNU_USER_TARGET_CC1_SPEC.
10983 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10984 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10985 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10986 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10987 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10988 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10989 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10990 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10992 2011-01-12 Richard Guenther <rguenther@suse.de>
10995 * doc/invoke.texi (ffast-math): Document it is turned on
10998 2011-01-12 Jan Hubicka <jh@suse.cz>
11000 PR tree-optimization/47233
11001 * opts.c (common_handle_option): Disable ipa-reference with profile
11004 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11006 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11009 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11011 * c-parser.c (c_lex_one_token): Updated and reindented some
11012 comments. No changes in code.
11014 2011-01-11 Ian Lance Taylor <iant@google.com>
11016 * godump.c (go_output_var): Don't output the variable if there is
11017 already a type with the same name.
11019 2011-01-11 Ian Lance Taylor <iant@google.com>
11021 * godump.c (go_format_type): Don't generate float80.
11023 2011-01-11 Richard Henderson <rth@redhat.com>
11025 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11026 declaration. Rewrite for both speed and size.
11027 (mn10300_address_cost_1): Remove.
11028 (mn10300_register_move_cost): New.
11029 (mn10300_memory_move_cost): New.
11030 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11031 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11032 extensions, shifts, BSWAP, CLZ.
11033 (mn10300_wide_const_load_uses_clr): Remove.
11034 (TARGET_REGISTER_MOVE_COST): New.
11035 (TARGET_MEMORY_MOVE_COST): New.
11036 * config/mn10300/mn10300-protos.h: Update.
11037 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11039 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11040 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11041 * config/mn10300/mn10300-protos.h: Update.
11042 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11043 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11044 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11045 (*test_int_bitfield, *test_byte_bitfield): Remove.
11046 (*bit_test, *subreg_bit_test): Remove.
11047 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11049 * config/mn10300/constraints.md ("c"): Rename from "A".
11050 ("A", "D"): New constraint letters.
11051 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11052 (fmssf4, fnmasf4, fnmssf4): Likewise.
11054 * config/mn10300/mn10300.md (isa): New attribute.
11055 (enabled): New attribute.
11057 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11058 (abssf2, negsf2): Define only for hardware fp.
11059 (sqrtsf2): Reformat.
11060 (addsf3, subsf3, mulsf3): Merge expander and insn.
11062 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11063 (DEBUGGER_AUTO_OFFSET): Remove.
11064 (DEBUGGER_ARG_OFFSET): Remove.
11066 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11067 Emit register stores with the same offsets as the hardware.
11068 (mn10300_store_multiple_operation): Don't check that the register
11069 save offsets are monotonic.
11070 * config/mn10300/mn10300-protos.h: Update.
11072 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11074 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11075 in terms of the value on the stack, not the MDR register.
11077 2011-01-11 Jan Hubicka <jh@suse.cz>
11081 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11082 (symbol_alias_set_destroy, symbol_alias_set_contains,
11083 propagate_aliases_backward): Declare.
11084 * lto-streamer-out.c (struct sets): New sturcture.
11085 (trivally_defined_alias): New function.
11086 (output_alias_pair_p): Rewrite.
11087 (output_unreferenced_globals): Fix output of alias pairs.
11088 (produce_symtab): Likewise.
11089 * ipa.c (function_and_variable_visibility): Set weak alias destination
11091 * varasm.c (symbol_alias_set_t): Remove.
11092 (symbol_alias_set_destroy): Export.
11093 (propagate_aliases_forward, propagate_aliases_backward): New functions
11095 (compute_visible_aliases): ... this one; remove.
11096 (trivially_visible_alias): New
11097 (trivially_defined_alias): New.
11098 (remove_unreachable_alias_pairs): Rewrite.
11099 (finish_aliases_1): Reorganize code checking if alias is defined.
11100 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11103 2011-01-11 Richard Guenther <rguenther@suse.de>
11105 PR tree-optimization/46076
11106 * tree-ssa.c (useless_type_conversion_p): Conversions from
11107 unprototyped to empty argument list function types are useless.
11109 2011-01-11 Richard Guenther <rguenther@suse.de>
11111 PR middle-end/45235
11112 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11113 volatile MEMs as MEM_READONLY_P.
11115 2011-01-11 Richard Guenther <rguenther@suse.de>
11117 PR tree-optimization/47239
11118 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11120 2011-01-11 Jeff Law <law@redhat.com>
11122 PR tree-optimization/47086
11123 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11124 IVs from statements that might throw.
11126 2011-01-10 Jan Hubicka <jh@suse.cz>
11129 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11131 2011-01-10 Jan Hubicka <jh@suse.cz>
11134 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11135 when correcting profile.
11137 2011-01-10 Jan Hubicka <jh@suse.cz>
11140 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11141 DECL_FINI_PRIORITY.
11142 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11143 Restore DECL_FINI_PRIORITY.
11145 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11147 * doc/gimple.texi: Fix quoting of multi-word return values in
11148 @deftypefn statements. Ensure presence of return value. Wrap
11149 overlong @deftypefn lines.
11150 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11151 descriptions of removed functions.
11152 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11153 of multi-word return value in @deftypefn statement.
11155 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11157 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11158 (Conditional Expressions, Logical Operators)
11159 (Statement and operand traversals): Do not indent smallexample
11160 code. Fix duplicate function argument in example.
11162 2011-01-10 Jeff Law <law@redhat.com>
11164 PR tree-optimization/47141
11165 * ipa-split.c (split_function): Handle case where we are
11166 returning a value and the return block has a virtual operand phi.
11168 2011-01-10 Jan Hubicka <jh@suse.cz>
11170 PR tree-optimization/47234
11171 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11172 (pass_feedback_split_functions): Declare.
11173 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11175 * ipa-split.c (gate_split_functions): Update comments; disable
11176 split-functions for profile_arc_flag and branch_probabilities.
11177 (gate_feedback_split_functions): New function.
11178 (execute_feedback_split_functions): New function.
11179 (pass_feedback_split_functions): New global var.
11181 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11184 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11185 calling gimple_call_set_cannot_inline.
11187 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11189 * config/darwin-sections.def: Remove unused section.
11191 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11194 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11196 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11199 * c-parser.c (c_parser_declaration_or_fndef): Improved
11202 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11204 * config/i386/winnt.c (i386_pe_start_function): Make sure
11205 to switch back to function's section.
11207 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11211 * plugin.c: Move include of dlfcn.h from here...
11212 * system.h: ... to here.
11214 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11216 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11218 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11219 two extra empty pages in PDF output.
11221 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11224 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11225 for error recovery purposes behave as if it was not specified so
11226 that the default type is usd.
11228 2011-01-07 Jan Hubicka <jh@suse.cz>
11230 PR tree-optmization/46469
11231 * ipa.c (function_and_variable_visibility): Clear needed flags on
11232 nodes with external decls; handle weakrefs merging correctly.
11234 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11236 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11239 2011-01-07 Jan Hubicka <jh@suse.cz>
11241 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11242 and no longer claim that gold is required for linker plugin.
11243 * configure: Regenerate.
11244 * gcc.c (PLUGIN_COND): New macro.
11245 (LINK_COMMAND_SPEC): Use it.
11246 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11247 * config.in (HAVE_LTO_PLUGIN): New.
11248 * configure.ac (--with-lto-plugin): New parameter; autodetect
11251 2011-01-07 Jan Hubicka <jh@suse.cz>
11253 PR tree-optimization/46367
11254 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11255 when we can update original.
11256 (cgraph_mark_inline_edge): Sanity check.
11257 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11259 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11261 * config/spu/spu.h (ASM_COMMENT_START): Define.
11263 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11266 * gcc.c (%>S): New.
11267 (SWITCH_KEEP_FOR_GCC): Likewise.
11268 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11269 (do_spec_1): Handle "%>".
11271 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11273 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11276 * config/i386/i386.c (ix86_delegitimize_address): If
11277 simplify_gen_subreg fails, return orig_x.
11280 * value-prof.c (gimple_stringop_fixed_value): Handle
11281 lhs of the call properly.
11283 2011-01-07 Jan Hubicka <jh@suse.cz>
11286 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11288 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11290 * target.def (function_switched_text_sections): New hook.
11291 * doc/tm.texi: Regenerated.
11292 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11293 * final.c (default_function_switched_text_sections): New.
11294 (final_scan_insn): Call function_switched_text_sections when a
11295 mid-function section change occurs.
11296 * output.h (default_function_switched_text_sections): Declare.
11297 * config/darwin-protos.h (darwin_function_switched_text_sections):
11299 * config/darwin.c (darwin_function_switched_text_sections): New.
11300 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11302 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11304 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11305 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11306 the secondary code fragment when outputting for DWARF == 2.
11308 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11310 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11311 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11313 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11314 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11316 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11319 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11320 when it is not empty.
11322 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11325 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11326 (case ${target}): Add btver1.
11327 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11328 -march=native recognize btver1 processors.
11329 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11330 btver1 def_and_undef
11331 * config/i386/i386.c (struct processor_costs btver1_cost): New
11333 (m_BTVER1): New definition.
11334 (m_AMD_MULTIPLE): Includes m_BTVER1.
11335 (initial_ix86_tune_features): Add btver1 tune.
11336 (processor_target_table): Add btver1 entry.
11337 (static const char *const cpu_names): Add btver1 entry.
11338 (software_prefetching_beneficial_p): Add btver1.
11339 (ix86_option_override_internal): Add btver1 instruction sets.
11340 (ix86_issue_rate): Add btver1.
11341 (ix86_adjust_cost): Add btver1.
11342 * config/i386/i386.h (TARGET_BTVER1): New definition.
11343 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11344 (enum processor_type): Add PROCESSOR_BTVER1.
11345 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11347 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11350 * config/i386/i386.c (legitimize_tls_address)
11351 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11352 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11353 (tls_initial_exec_64_sun): New pattern.
11355 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11357 * doc/invoke.texi (Overall Options): Improve wording and markup
11358 of the description of -wrapper.
11360 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11362 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11363 rdynamic, threads): New Driver options.
11365 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11368 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11369 if coming from .tdata.
11370 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11372 2011-01-06 Jan Hubicka <jh@suse.cz>
11375 * collect2.c (main): Do not enable LTOmode when plugin is active.
11377 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11380 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11381 --version output if supported.
11382 * configure: Regenerate.
11384 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11386 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11389 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11392 * c-convert.c (convert): When converting a complex expression
11393 other than COMPLEX_EXPR to a different complex type, ensure
11394 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11395 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11396 when converting COMPLEX_TYPE.
11398 2011-01-06 Ira Rosen <irar@il.ibm.com>
11400 PR tree-optimization/47139
11401 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11402 only the last reduction value is used outside the loop. Update
11405 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11407 * config/rtems.opt: New.
11408 * config.gcc (*-*-rtems*): Use rtems.opt.
11410 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11412 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11413 processors do not support 3DNow instructions.
11415 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11417 * config/spu/spu.c (spu_option_override): Set parameter
11418 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11420 2011-01-05 Jan Hubicka <jh@suse.cz>
11422 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11423 at the command line.
11425 2011-01-05 Martin Jambor <mjambor@suse.cz>
11428 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11429 deltas on streamed outgoing edges.
11430 (output_node_opt_summary): Output info for outgoing edges only when
11431 the node is in new parameter set.
11432 (output_cgraph_opt_summary): New parameter set, passed to the two
11433 aforementioned functions. Update its forward declaration and its
11436 2011-01-05 Tom Tromey <tromey@redhat.com>
11438 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11439 operator to c_finish_omp_atomic.
11440 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11441 (build_unary_op): Update.
11442 (build_modify_expr): Update.
11443 (build_asm_expr): Update.
11445 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11447 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11448 newly inserted insns.
11449 (pad_bb): Likewise.
11450 (spu_emit_branch_hint): Likewise.
11451 (insert_hbrp_for_ilb_runout): Likewise.
11452 (spu_machine_dependent_reorg): Call df_finish_pass after
11453 schedule_insns returns.
11455 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11457 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11459 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11461 PR tree-optimization/47005
11462 * tree-sra.c (struct access): Add 'non_addressable' bit.
11463 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11464 (decide_one_param_reduction): Return 0 if the parameter is passed by
11465 reference and one of the accesses in the group is non_addressable.
11467 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11469 PR tree-optimization/47056
11470 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11471 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11472 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11474 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11476 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11477 initializer. Skip view conversions from aggregate types.
11479 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11482 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11484 2011-01-04 Philipp Thomas <pth@suse.de>
11486 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11489 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11491 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11492 on empty epilogue sequences.
11494 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11496 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11497 non-static): New Driver options.
11499 2011-01-04 Jie Zhang <jie@codesourcery.com>
11502 * gcc.c (default_compilers[]): Set combinable field to 0
11503 for all assembly languages.
11505 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11507 * config/mips/loongson3a.md: New file.
11508 * config/mips/mips.md: Include loongson3a.md.
11509 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11512 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11514 PR middle-end/47017
11515 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11516 instead of convert_memory_address_addr_space on the base expression.
11518 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11520 * config/spu/spu.c (spu_option_override): Update error text
11521 for bad -march= / -mtune= values.
11523 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11525 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11526 if branch-hint optimization will be performed.
11528 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11530 PR tree-optimization/47148
11531 * ipa-split.c (split_function): Convert arguments to
11532 DECL_ARG_TYPE if possible.
11534 PR tree-optimization/47155
11535 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11536 when computing uns.
11538 PR rtl-optimization/47157
11539 * combine.c (try_combine): If undobuf.other_insn becomes
11540 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11541 and set *new_direct_jump_p too.
11543 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11545 PR tree-optimization/47021
11546 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11548 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11550 * gcc.c (process_command): Update copyright notice dates.
11551 * gcov.c (print_version): Likewise.
11552 * gcov-dump.c (print_version): Likewise.
11553 * mips-tfile.c (main): Likewise.
11554 * mips-tdump.c (main): Likewise.
11556 2011-01-03 Martin Jambor <mjambor@suse.cz>
11558 PR tree-optimization/46801
11559 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11560 aggregate fields start at byte boundary instead of the bit-field flag.
11562 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11565 * gcc.c (main): Revert revision 168407.
11567 2011-01-03 Martin Jambor <mjambor@suse.cz>
11569 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11571 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11573 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11574 vector optab to expand vector/scalar shift, update gimple to vector.
11576 2011-01-03 Martin Jambor <mjambor@suse.cz>
11578 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11581 2011-01-03 Martin Jambor <mjambor@suse.cz>
11583 PR tree-optimization/46984
11584 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11586 (cgraph_create_indirect_edge): Fixed line length.
11587 (cgraph_indirect_call_info): Declare.
11588 (cgraph_make_edge_direct) Update declaration.
11589 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11590 (cgraph_create_indirect_edge): Use it.
11591 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11593 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11594 the new thunk_delta representation.
11595 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11597 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11598 (ipa_read_indirect_edge_info): Likewise.
11599 * lto-cgraph.c (output_edge_opt_summary): New function.
11600 (output_node_opt_summary): Call it on all outgoing edges.
11601 (input_edge_opt_summary): New function.
11602 (input_node_opt_summary): Call it on all outgoing edges.
11604 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11607 * gcc.c (main): Don't check have_o when settting combine_inputs.
11609 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11611 * regrename.c: Add general comment describing the pass.
11612 (struct du_head): Remove 'length' field.
11613 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11614 (regrename_optimize): Do not sort chains. Rework comments, add others.
11615 Force renaming to the preferred class (if any) in the first pass and do
11616 not consider registers that belong to it in the second pass.
11617 (create_new_chain): Do not set 'length' field.
11618 (scan_rtx_reg): Likewise.
11620 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11622 PR tree-optimization/47140
11623 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11624 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11625 to bit_value_binop.
11627 PR rtl-optimization/47028
11628 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11629 parm_birth_insn instead of at the beginning of first bb.
11631 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11633 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11634 Remove the word "see" before "@pxref".
11635 * doc/rtl.texi: Remove the word "see" before "@pxref".
11637 2011-01-01 Jan Hubicka <jh@suse.cz>
11639 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11642 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11645 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11648 Copyright (C) 2011 Free Software Foundation, Inc.
11650 Copying and distribution of this file, with or without modification,
11651 are permitted in any medium without royalty provided the copyright
11652 notice and this notice are preserved.